Documentation ¶
Index ¶
- Variables
- type BalanceAndNonce
- type BlockList
- type BlockchainInfo
- type ContractValue
- type DSBlock
- type DsHeader
- type HashAndNum
- type MicroBlockInfo
- type MinerInfo
- type ParamConstructor
- type PendingTxnResult
- type PendingTxns
- type ShardInfo
- type ShardingStructure
- type State
- type Transaction
- type TransactionException
- type TransactionMessage
- type TransactionReceipt
- type TransactionStatus
- type Transactions
- type Transition
- type TxBlock
- type TxBlockBody
- type TxBlockHeader
Constants ¶
This section is empty.
Variables ¶
View Source
var PendingTxnError = map[int]string{
0: "Txn was already processed and confirmed",
1: "Pending - nonce too high",
2: "Pending - blk gas limit exceeded",
3: "Pending - consensus failure",
4: "Error - txn not found",
10: "Dropped - math error",
11: "Dropped - scilla invocation error",
12: "Dropped - account init error",
13: "Dropped - invalid source account",
14: "Dropped - gas limit too high",
15: "Dropped - txn type unknown",
16: "Dropped - txn in wrong shard",
17: "Dropped - account in wrong shard",
18: "Dropped - code size too large",
19: "Dropped - txn verification error",
20: "Dropped - gas limit too low",
21: "Dropped - insuff balance",
22: "Dropped - insuff gas for checker",
23: "Dropped - duplicate txn found",
24: "Dropped - txn w/ higher gas found",
25: "Dropped - invalid dest account",
26: "Dropped - state addition error",
}
Functions ¶
This section is empty.
Types ¶
type BalanceAndNonce ¶
type BlockList ¶
type BlockList struct { Data []HashAndNum `json:"data"` MaxPages int `json:"maxPages"` }
type BlockchainInfo ¶
type ContractValue ¶
type HashAndNum ¶
type MicroBlockInfo ¶
type ParamConstructor ¶
type PendingTxnResult ¶
type PendingTxns ¶
type PendingTxns struct {
Txns []*TransactionStatus
}
type ShardingStructure ¶
type ShardingStructure struct {
NumPeers []int
}
type Transaction ¶
type TransactionException ¶
type TransactionMessage ¶
type TransactionMessage struct { Amount string `json:"_amount"` Recipient string `json:"_recipient"` Tag string `json:"_tag"` Params []ContractValue `json:"params"` }
type TransactionReceipt ¶
type TransactionReceipt struct { Accept bool `json:"accept"` Errors interface{} `json:"errors"` Exceptions []TransactionException `json:"exceptions"` Success bool `json:"success"` CumulativeGas string `json:"cumulative_gas"` EpochNum string `json:"epoch_num"` EventLogs []interface{} `json:"event_logs"` Transitions []Transition `json:"transitions"` }
type TransactionStatus ¶
type Transactions ¶
type Transactions struct {
TxnHashes []string
}
type Transition ¶
type Transition struct { Accept bool `json:"accept"` Addr string `json:"addr"` Depth int `json:"depth"` Msg TransactionMessage `json:"msg"` }
type TxBlock ¶
type TxBlock struct { Header TxBlockHeader `json:"header"` Body TxBlockBody `json:"body"` }
type TxBlockBody ¶
type TxBlockBody struct { BlockHash string HeaderSign string MicroBlockInfos []MicroBlockInfo }
Click to show internal directories.
Click to hide internal directories.