Documentation ¶
Index ¶
- func ParseBigInt(i *big.Int, s string) error
- type Address
- type AddressParam
- type Block
- type BlockHeader
- type BlockHeaderResult
- type BlockHeightParam
- type BlockNotification
- type BlockRequest
- type CallData
- type CallParam
- type ClaimFee
- type DataHashParam
- type EventFilter
- type EventLog
- type EventLogStr
- type EventNotification
- type EventNotificationLog
- type EventRequest
- type ExecuteCall
- type HexBytes
- type HexInt
- type NetworkInfo
- type ProofEventsParam
- type ProofResultParam
- type RecvMessage
- type RevertMessage
- type SendMessage
- type SetAdmin
- type SetFee
- type TransactionHashParam
- type TransactionParam
- type TransactionResult
- type TxResult
- type WSEvent
- type WSResponse
- type WsReadCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressParam ¶
type Block ¶
type Block struct { // BlockHash HexBytes `json:"block_hash" validate:"required,t_hash"` // Version HexInt `json:"version" validate:"required,t_int"` Height int64 `json:"height" validate:"required,t_int"` Timestamp int64 `json:"time_stamp" validate:"required,t_int"` // Proposer HexBytes `json:"peer_id" validate:"optional,t_addr_eoa"` // PrevID HexBytes `json:"prev_block_hash" validate:"required,t_hash"` // NormalTransactionsHash HexBytes `json:"merkle_tree_root_hash" validate:"required,t_hash"` NormalTransactions []struct { TxHash HexBytes `json:"txHash"` // Version HexInt `json:"version"` From Address `json:"from"` To Address `json:"to"` // Value HexInt `json:"value,omitempty" ` // StepLimit HexInt `json:"stepLimit"` // TimeStamp HexInt `json:"timestamp"` // NID HexInt `json:"nid,omitempty"` // Nonce HexInt `json:"nonce,omitempty"` // Signature HexBytes `json:"signature"` DataType string `json:"dataType,omitempty"` Data json.RawMessage `json:"data,omitempty"` } `json:"confirmed_transaction_list"` }
type BlockHeader ¶
type BlockHeaderResult ¶
type BlockHeightParam ¶
type BlockHeightParam struct {
Height HexInt `json:"height" validate:"required,t_int"`
}
type BlockNotification ¶
type BlockRequest ¶
type BlockRequest struct { Height HexInt `json:"height"` EventFilters []*EventFilter `json:"eventFilters,omitempty"` }
type CallData ¶
type CallData struct { Method string `json:"method"` Params interface{} `json:"params,omitempty"` }
type CallParam ¶
type DataHashParam ¶
type DataHashParam struct {
Hash HexBytes `json:"hash" validate:"required,t_hash"`
}
type EventFilter ¶
type EventLogStr ¶
type EventNotification ¶
type EventNotificationLog ¶ added in v1.2.0
type EventRequest ¶
type EventRequest struct { EventFilter []*EventFilter `json:"eventFilters"` Height HexInt `json:"height"` Logs HexInt `json:"logs"` ProgressInterval HexInt `json:"progressInterval"` }
type ExecuteCall ¶ added in v1.1.0
type HexInt ¶
type HexInt string
T_INT
func NewHexString ¶ added in v1.2.9
NewHexString returns a HexInt from a string
type NetworkInfo ¶ added in v1.2.9
type NetworkInfo struct { Platform string `json:"platform"` NetworkID HexInt `json:"nid" validate:"required,t_int"` Channel string `json:"channel"` Height HexInt `json:"latest"` }
NetworkInfo is the struct for network information
type ProofEventsParam ¶
type ProofResultParam ¶
type RecvMessage ¶
type RevertMessage ¶ added in v1.1.0
type RevertMessage struct {
Sn HexInt `json:"_sn"`
}
type SendMessage ¶
type TransactionHashParam ¶
type TransactionHashParam struct {
Hash HexBytes `json:"txHash" validate:"required,t_hash"`
}
type TransactionParam ¶
type TransactionParam struct { Version HexInt `json:"version" validate:"required,t_int"` FromAddress Address `json:"from" validate:"required,t_addr_eoa"` ToAddress Address `json:"to" validate:"required,t_addr"` Value HexInt `json:"value,omitempty" validate:"optional,t_int"` StepLimit HexInt `json:"stepLimit,omitempty" validate:"optional,t_int"` Timestamp HexInt `json:"timestamp" validate:"required,t_int"` NetworkID HexInt `json:"nid" validate:"required,t_int"` Nonce HexInt `json:"nonce,omitempty" validate:"optional,t_int"` Signature string `json:"signature,omitempty" validate:"optional,t_sig"` DataType string `json:"dataType,omitempty" validate:"optional,call|deploy|message"` Data CallData `json:"data,omitempty"` TxHash HexBytes `json:"-"` }
type TransactionResult ¶
type TransactionResult struct { To Address `json:"to"` CumulativeStepUsed HexInt `json:"cumulativeStepUsed"` StepUsed HexInt `json:"stepUsed"` StepPrice HexInt `json:"stepPrice"` EventLogs []EventLogStr `json:"eventLogs"` LogsBloom HexBytes `json:"logsBloom"` Status HexInt `json:"status"` Failure *struct { CodeValue HexInt `json:"code"` MessageValue string `json:"message"` } `json:"failure,omitempty"` SCOREAddress Address `json:"scoreAddress,omitempty"` BlockHash HexBytes `json:"blockHash" validate:"required,t_hash"` BlockHeight HexInt `json:"blockHeight" validate:"required,t_int"` TxIndex HexInt `json:"txIndex" validate:"required,t_int"` TxHash HexBytes `json:"txHash" validate:"required,t_int"` }
type WSResponse ¶
type WsReadCallback ¶
Click to show internal directories.
Click to hide internal directories.