diff --git a/models/transaction.go b/models/transaction.go index 67d9363..69c2d06 100644 --- a/models/transaction.go +++ b/models/transaction.go @@ -5,6 +5,21 @@ import ( "time" ) +const TxTypeSend = 1 +const TxTypeSellCoin = 2 +const TxTypeSellAllCoin = 3 +const TxTypeBuyCoin = 4 +const TxTypeCreateCoin = 5 +const TxTypeDeclareCandidacy = 6 +const TxTypeDelegate = 7 +const TxTypeUnbound = 8 +const TxTypeRedeemCheck = 9 +const TxTypeSetCandidateOnline = 10 +const TxTypeSetCandidateOffline = 11 +const TxTypeMultiSig = 12 +const TxTypeMultiSend = 13 +const TxTypeEditCandidate = 14 + type Transaction struct { ID uint64 `json:"id" pg:",pk"` FromAddressID uint64 `json:"from_address_id"`