Documentation
¶
Index ¶
Constants ¶
View Source
const (
RecentTxLimit = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clause ¶
type Clause struct {
To *meter.Address `json:"to"`
Value math.HexOrDecimal256 `json:"value"`
Token byte `json:"token"`
Data string `json:"data"`
}
Clause for json marshal
type Event ¶
type Event struct {
Address meter.Address `json:"address"`
Topics []meter.Bytes32 `json:"topics"`
Data string `json:"data"`
}
Event event.
type Output ¶
type Output struct {
ContractAddress *meter.Address `json:"contractAddress"`
Events []*Event `json:"events"`
Transfers []*Transfer `json:"transfers"`
}
Output output of clause execution.
type Receipt ¶
type Receipt struct {
GasUsed uint64 `json:"gasUsed"`
GasPayer meter.Address `json:"gasPayer"`
Paid *math.HexOrDecimal256 `json:"paid"`
Reward *math.HexOrDecimal256 `json:"reward"`
Reverted bool `json:"reverted"`
Meta LogMeta `json:"meta"`
Outputs []*Output `json:"outputs"`
}
Receipt for json marshal
type SignedTx ¶
type SignedTx struct {
UnSignedTx
Signature string `json:"signature"`
}
type Transaction ¶
type Transaction struct {
ID meter.Bytes32 `json:"id"`
ChainTag byte `json:"chainTag"`
BlockRef string `json:"blockRef"`
Expiration uint32 `json:"expiration"`
Clauses Clauses `json:"clauses"`
GasPriceCoef uint8 `json:"gasPriceCoef"`
Gas uint64 `json:"gas"`
Origin meter.Address `json:"origin"`
Nonce math.HexOrDecimal64 `json:"nonce"`
DependsOn *meter.Bytes32 `json:"dependsOn"`
Size uint32 `json:"size"`
Meta TxMeta `json:"meta"`
}
Transaction transaction
type Transactions ¶
type Transactions struct {
// contains filtered or unexported fields
}
type Transfer ¶
type Transfer struct {
Sender meter.Address `json:"sender"`
Recipient meter.Address `json:"recipient"`
Amount *math.HexOrDecimal256 `json:"amount"`
Token uint32 `json:"token"`
}
Transfer transfer log.
type UnSignedTx ¶
type UnSignedTx struct {
ChainTag uint8 `json:"chainTag"`
BlockRef string `json:"blockRef"`
Expiration uint32 `json:"expiration"`
Clauses Clauses `json:"clauses"`
GasPriceCoef uint8 `json:"gasPriceCoef"`
Gas uint64 `json:"gas"`
DependsOn *meter.Bytes32 `json:"dependsOn"`
Nonce math.HexOrDecimal64 `json:"nonce"`
}
Click to show internal directories.
Click to hide internal directories.