Documentation ¶
Index ¶
- Constants
- Variables
- func DataParamValidation(sl validator.StructLevel)
- func DebugMethodRepository(mtr *metric.JsonrpcMetric) *jsonrpc.MethodRepository
- func MethodRepository(mtr *metric.JsonrpcMetric) *jsonrpc.MethodRepository
- func RegisterValidationRule(v *jsonrpc.Validator)
- func RosettaMethodRepository(mtr *metric.JsonrpcMetric) *jsonrpc.MethodRepository
- type AddressParam
- type BTPMessagesParam
- type BTPQueryParam
- type BlockHashParam
- type BlockHeightParam
- type CallParam
- type DataHashParam
- type HeightParam
- type MissingTransactionInfo
- type ProofEventsParam
- type ProofResultParam
- type RosettaTraceParam
- type ScoreAddressParam
- type TransactionHashParam
- type TransactionParam
- type TransactionParamForEstimate
Constants ¶
View Source
const (
ConfigShowPatchTransaction = false
)
View Source
const (
Version = 3
)
Variables ¶
Functions ¶
func DataParamValidation ¶
func DataParamValidation(sl validator.StructLevel)
func DebugMethodRepository ¶
func DebugMethodRepository(mtr *metric.JsonrpcMetric) *jsonrpc.MethodRepository
func MethodRepository ¶
func MethodRepository(mtr *metric.JsonrpcMetric) *jsonrpc.MethodRepository
func RegisterValidationRule ¶
func RosettaMethodRepository ¶ added in v1.2.13
func RosettaMethodRepository(mtr *metric.JsonrpcMetric) *jsonrpc.MethodRepository
Types ¶
type AddressParam ¶
type BTPMessagesParam ¶ added in v1.3.0
type BTPQueryParam ¶ added in v1.3.0
type BlockHashParam ¶
type BlockHeightParam ¶
type CallParam ¶
type CallParam struct { FromAddress jsonrpc.Address `json:"from,omitempty" validate:"optional,t_addr_eoa"` ToAddress jsonrpc.Address `json:"to" validate:"required,t_addr_score"` DataType string `json:"dataType" validate:"required,call"` Data interface{} `json:"data"` Height jsonrpc.HexInt `json:"height,omitempty" validate:"optional,t_int"` }
type DataHashParam ¶
type HeightParam ¶ added in v1.2.9
type MissingTransactionInfo ¶ added in v1.3.2
type ProofEventsParam ¶
type ProofResultParam ¶
type RosettaTraceParam ¶ added in v1.2.13
type ScoreAddressParam ¶
type TransactionHashParam ¶
type TransactionParam ¶
type TransactionParam struct { Version jsonrpc.HexInt `json:"version" validate:"required,t_int"` FromAddress jsonrpc.Address `json:"from" validate:"required,t_addr_eoa"` ToAddress jsonrpc.Address `json:"to" validate:"required,t_addr"` Value jsonrpc.HexInt `json:"value,omitempty" validate:"optional,t_int"` StepLimit jsonrpc.HexInt `json:"stepLimit" validate:"required,t_int"` Timestamp jsonrpc.HexInt `json:"timestamp" validate:"required,t_int"` NetworkID jsonrpc.HexInt `json:"nid" validate:"required,t_int"` Nonce jsonrpc.HexInt `json:"nonce,omitempty" validate:"optional,t_int"` Signature string `json:"signature" validate:"required,t_sig"` DataType string `json:"dataType,omitempty" validate:"optional,call|deploy|message|deposit"` Data interface{} `json:"data,omitempty"` }
type TransactionParamForEstimate ¶
type TransactionParamForEstimate struct { Version jsonrpc.HexInt `json:"version" validate:"required,t_int"` FromAddress jsonrpc.Address `json:"from" validate:"required,t_addr_eoa"` ToAddress jsonrpc.Address `json:"to" validate:"required,t_addr"` Value jsonrpc.HexInt `json:"value,omitempty" validate:"optional,t_int"` Timestamp jsonrpc.HexInt `json:"timestamp" validate:"required,t_int"` NetworkID jsonrpc.HexInt `json:"nid" validate:"required,t_int"` Nonce jsonrpc.HexInt `json:"nonce,omitempty" validate:"optional,t_int"` DataType string `json:"dataType,omitempty" validate:"optional,call|deploy|message|deposit"` Data interface{} `json:"data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.