Documentation
¶
Index ¶
- Variables
- type BurnParam
- type CancelParam
- type ClaimParam
- type CloseParam
- type CredentialMin
- type DIDClaimParam
- type DIDDismissParam
- type DIDIssueParam
- type DIDRevokeParam
- type DelegateParam
- type DiscardParam
- type DismissParam
- type Document
- type GrantParam
- type IssueParam
- type LockParam
- type ProposeParam
- type PublicKeyJwk
- type RegisterParam
- type RequestParam
- type RetractParam
- type RevokeParam
- type SetupParam
- type Signature
- type StakeParam
- type TransferParam
- type TransferParamV5
- 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 TxDIDClaim
- type TxDIDDismiss
- type TxDIDIssue
- type TxDIDRevoke
- 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 TxTransferV5
- func (t *TxTransferV5) Check() (uint32, string)
- func (t *TxTransferV5) Execute(store *store.Store) (uint32, string, []abci.Event)
- func (t *TxTransferV5) TransferCoin(store *store.Store, txParam TransferParamV5) (uint32, string, []abci.Event)
- func (t *TxTransferV5) TransferParcel(store *store.Store, txParam TransferParamV5) (uint32, string, []abci.Event)
- type TxVote
- type TxWithdraw
- type VerificationMethod
- 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 CredentialMin ¶ added in v1.9.0
type CredentialMin struct { Id string `json:"id"` Issuer string `json:"issuer"` Issued string `json:"issued"` }
minimal struct to handle Credential
type DIDClaimParam ¶ added in v1.9.0
type DIDDismissParam ¶ added in v1.9.0
type DIDDismissParam struct {
Target string `json:"target"`
}
type DIDIssueParam ¶ added in v1.9.0
type DIDIssueParam struct { Target string `json:"target"` Credential json.RawMessage `json:"credential"` }
type DIDRevokeParam ¶ added in v1.9.0
type DIDRevokeParam struct {
Target string `json:"target"`
}
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 Document ¶ added in v1.9.0
type Document struct { Context string `json:"@context,omitempty"` Id string `json:"id"` Controller string `json:"controller,omitempty"` VerificationMethod []VerificationMethod `json:"verificationMethod"` Authentication string `json:"authentication"` AssertionMethod string `json:"assertionMethod,omitempty"` }
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 PublicKeyJwk ¶ added in v1.9.0
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 TransferParamV5 ¶ added in v1.8.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 TxDIDClaim ¶ added in v1.9.0
type TxDIDClaim struct { TxBase Param DIDClaimParam `json:"-"` }
func (*TxDIDClaim) Check ¶ added in v1.9.0
func (t *TxDIDClaim) Check() (uint32, string)
type TxDIDDismiss ¶ added in v1.9.0
type TxDIDDismiss struct { TxBase Param DIDDismissParam `json:"-"` }
func (*TxDIDDismiss) Check ¶ added in v1.9.0
func (t *TxDIDDismiss) Check() (uint32, string)
type TxDIDIssue ¶ added in v1.9.0
type TxDIDIssue struct { TxBase Param DIDIssueParam `json:"-"` }
func (*TxDIDIssue) Check ¶ added in v1.9.0
func (t *TxDIDIssue) Check() (uint32, string)
type TxDIDRevoke ¶ added in v1.9.0
type TxDIDRevoke struct { TxBase Param DIDRevokeParam `json:"-"` }
func (*TxDIDRevoke) Check ¶ added in v1.9.0
func (t *TxDIDRevoke) Check() (uint32, string)
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)
func (*TxTransfer) TransferCoin ¶ added in v1.8.0
func (t *TxTransfer) TransferCoin(store *store.Store, txParam TransferParam) (uint32, string, []abci.Event)
type TxTransferV5 ¶ added in v1.8.0
type TxTransferV5 struct { TxBase Param TransferParamV5 `json:"-"` }
func (*TxTransferV5) Check ¶ added in v1.8.0
func (t *TxTransferV5) Check() (uint32, string)
func (*TxTransferV5) TransferCoin ¶ added in v1.8.0
func (t *TxTransferV5) TransferCoin(store *store.Store, txParam TransferParamV5) (uint32, string, []abci.Event)
func (*TxTransferV5) TransferParcel ¶ added in v1.8.0
func (t *TxTransferV5) TransferParcel(store *store.Store, txParam TransferParamV5) (uint32, string, []abci.Event)
type TxWithdraw ¶
type TxWithdraw struct { TxBase Param WithdrawParam `json:"-"` }
func (*TxWithdraw) Check ¶ added in v1.2.0
func (t *TxWithdraw) Check() (uint32, string)
type VerificationMethod ¶ added in v1.9.0
type VerificationMethod struct { Id string `json:"id"` Type string `json:"type"` Controller string `json:"controller,omitempty"` PublicKeyJwk PublicKeyJwk `json:"publicKeyJwk"` }
type WithdrawParam ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.