Documentation ¶
Index ¶
- Constants
- func NewAminoCodec() *amino.Codec
- type Envelope
- func (env *Envelope) Decode(bs []byte) error
- func (env *Envelope) Encode() ([]byte, error)
- func (env *Envelope) GenerateReceipt() *Receipt
- func (env *Envelope) Hash() []byte
- func (env *Envelope) Marshal() ([]byte, error)
- func (env *Envelope) MarshalTo(data []byte) (int, error)
- func (env *Envelope) Sign(signers ...crypto.Signer) error
- func (env *Envelope) Size() int
- func (env *Envelope) String() string
- func (env *Envelope) Unmarshal(bs []byte) error
- func (env *Envelope) UnmarshalJSON(data []byte) error
- func (env *Envelope) Verify() error
- type Receipt
Constants ¶
View Source
const ( Ok = 0 Failed = 1 )
Variables ¶
This section is empty.
Functions ¶
func NewAminoCodec ¶
Types ¶
type Envelope ¶
type Envelope struct { ChainID string `json:"chainId"` Type tx.Type `json:"type"` Tx tx.Tx `json:"tx"` Signatories []crypto.Signatory `json:"signatories,omitempty"` // contains filtered or unexported fields }
Envelope contains both the signable Tx and the signatures for each input (in signatories)
func (*Envelope) GenerateReceipt ¶
Generate a transaction Receipt containing the Tx hash. Returned by ABCI methods.
func (*Envelope) Sign ¶
Sign the Tx by adding Signatories containing the signatures for each Input. Signder for each input must be provided (in any order).
func (*Envelope) UnmarshalJSON ¶
Marshaling/Unmarshaling methods
type Receipt ¶
type Receipt struct { Type tx.Type `json:"type"` Hash binary.HexBytes `json:"hash"` Status int `json:"status"` Height int64 `json:"height,omitempty"` GasUsed uint64 `json:"gasUsed,omitempty"` GasWanted uint64 `json:"gasWanted,omitempty"` ContractAddress *crypto.Address `json:"contractAddress,omitempty"` Logs evm.Logs `json:"logs,omitempty"` Output binary.HexBytes `json:"output,omitempty"` }
Transaction receipt
Click to show internal directories.
Click to hide internal directories.