Documentation ¶
Index ¶
- Variables
- type BurnParam
- type CancelParam
- type ClaimParam
- type CloseParam
- type DelegateParam
- type DiscardParam
- type DismissParam
- type GrantParam
- type IssueParam
- type LockParam
- type ProposeParam
- type RegisterParam
- type RequestParam
- type RetractParam
- type RevokeParam
- type SetupParam
- type Signature
- type StakeParam
- type TransferParam
- type Tx
- type TxBase
- func (t *TxBase) Check() (uint32, string)
- func (t *TxBase) Execute(store *store.Store) (uint32, string, []abci.Event)
- func (t *TxBase) GetFee() types.Currency
- func (t *TxBase) GetLastHeight() int64
- func (t *TxBase) GetSender() crypto.Address
- func (t *TxBase) GetType() string
- func (t *TxBase) Sign(privKey crypto.PrivKey) error
- func (t *TxBase) Verify() bool
- type TxBurn
- type TxCancel
- type TxClaim
- type TxClose
- type TxDelegate
- type TxDiscard
- type TxDismiss
- type TxGrant
- type TxIssue
- type TxLock
- type TxPropose
- type TxRegister
- type TxRequest
- type TxRetract
- type TxRevoke
- type TxSetup
- type TxStake
- type TxToSign
- type TxTransfer
- type TxVote
- type TxWithdraw
- type VoteParam
- type WithdrawParam
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // config values from the app ConfigAMOApp = types.AMOAppConfig{ LockupPeriod: defaultLockupPeriod, MaxValidators: defaultMaxValidators, } // state from the app StateNextDraftID = defaultNextDraftID StateBlockHeight = defaultBlockHeight StateProtocolVersion = defaultProtocolVersion )
Functions ¶
This section is empty.
Types ¶
type CancelParam ¶ added in v1.2.0
type ClaimParam ¶ added in v1.7.0
type ClaimParam struct { Target string `json:"target"` Document json.RawMessage `json:"document"` }
type CloseParam ¶ added in v1.4.1
type CloseParam struct {
Storage uint32 `json:"storage"`
}
type DelegateParam ¶ added in v1.2.0
type DiscardParam ¶ added in v1.2.0
type DismissParam ¶ added in v1.7.0
type DismissParam struct {
Target string `json:"target"`
}
type GrantParam ¶ added in v1.2.0
type IssueParam ¶ added in v1.4.1
type ProposeParam ¶ added in v1.4.1
type ProposeParam struct { DraftID uint32 `json:"draft_id"` Config json.RawMessage `json:"config,omitempty"` Desc string `json:"desc"` }
type RegisterParam ¶ added in v1.2.0
type RequestParam ¶ added in v1.2.0
type RequestParam struct { Target tmbytes.HexBytes `json:"target"` Payment types.Currency `json:"payment"` Recipient crypto.Address `json:"recipient,omitempty"` Dealer crypto.Address `json:"dealer,omitempty"` DealerFee types.Currency `json:"dealer_fee,omitempty"` Extra json.RawMessage `json:"extra,omitempty"` }
type RetractParam ¶ added in v1.2.0
type RevokeParam ¶ added in v1.2.0
type SetupParam ¶ added in v1.4.1
type Signature ¶
type Signature struct { PubKey p256.PubKeyP256 `json:"pubkey"` SigBytes tmbytes.HexBytes `json:"sig_bytes"` }
type StakeParam ¶ added in v1.2.0
type TransferParam ¶ added in v1.2.0
type Tx ¶
type Tx interface { // accessors GetType() string GetSender() crypto.Address GetFee() types.Currency GetLastHeight() int64 // ops Sign(privKey crypto.PrivKey) error Verify() bool Check() (uint32, string) Execute(store *store.Store) (uint32, string, []abci.Event) // contains filtered or unexported methods }
type TxBase ¶ added in v1.2.0
type TxBase struct { Type string `json:"type"` Sender crypto.Address `json:"sender"` Fee types.Currency `json:"fee"` LastHeight string `json:"last_height"` // num as string Payload json.RawMessage `json:"payload"` // TODO: change to txparam Signature Signature `json:"signature"` }
func (*TxBase) GetLastHeight ¶ added in v1.3.0
type TxCancel ¶
type TxCancel struct { TxBase Param CancelParam `json:"-"` }
type TxClaim ¶ added in v1.7.0
type TxClaim struct { TxBase Param ClaimParam `json:"-"` }
type TxClose ¶ added in v1.4.1
type TxClose struct { TxBase Param CloseParam `json:"-"` }
type TxDelegate ¶
type TxDelegate struct { TxBase Param DelegateParam `json:"-"` }
func (*TxDelegate) Check ¶ added in v1.2.0
func (t *TxDelegate) Check() (uint32, string)
type TxDiscard ¶
type TxDiscard struct { TxBase Param DiscardParam `json:"-"` }
type TxDismiss ¶ added in v1.7.0
type TxDismiss struct { TxBase Param DismissParam `json:"-"` }
type TxGrant ¶
type TxGrant struct { TxBase Param GrantParam `json:"-"` }
type TxIssue ¶ added in v1.4.1
type TxIssue struct { TxBase Param IssueParam `json:"-"` }
type TxPropose ¶ added in v1.4.1
type TxPropose struct { TxBase Param ProposeParam `json:"-"` }
type TxRegister ¶
type TxRegister struct { TxBase Param RegisterParam `json:"-"` }
func (*TxRegister) Check ¶ added in v1.2.0
func (t *TxRegister) Check() (uint32, string)
type TxRequest ¶
type TxRequest struct { TxBase Param RequestParam `json:"-"` }
type TxRetract ¶
type TxRetract struct { TxBase Param RetractParam `json:"-"` }
type TxRevoke ¶
type TxRevoke struct { TxBase Param RevokeParam `json:"-"` }
type TxSetup ¶ added in v1.4.1
type TxSetup struct { TxBase Param SetupParam `json:"-"` }
type TxStake ¶
type TxStake struct { TxBase Param StakeParam `json:"-"` }
type TxTransfer ¶
type TxTransfer struct { TxBase Param TransferParam `json:"-"` }
func (*TxTransfer) Check ¶ added in v1.2.0
func (t *TxTransfer) Check() (uint32, string)
type TxWithdraw ¶
type TxWithdraw struct { TxBase Param WithdrawParam `json:"-"` }
func (*TxWithdraw) Check ¶ added in v1.2.0
func (t *TxWithdraw) Check() (uint32, string)
type WithdrawParam ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.