Skip to content

Commit

Permalink
tx types
Browse files Browse the repository at this point in the history
  • Loading branch information
daniildulin committed Mar 5, 2020
1 parent be19ade commit 5a0a25c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions models/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 5a0a25c

Please sign in to comment.