Documentation
¶
Index ¶
- func ConvertFromHexToInt(h string) (*int, error)
- func GetChangesFromEvents(response *SubscriptionResponse) ([]any, error)
- func GetFieldFromAny(name string, src any) (any, error)
- func GetMessageByIndex(moduleIdx, errorIdx int, meta *types.MetadataStruct) string
- func VoucherParamsToProto(params *VoucherParams) *proto.VoucherParams
- type BasicParams
- type Data
- type EncodedVoucherIssue
- type Event
- type FinalizedResponse
- type FrameSystemAccountInfo
- type InBlockResponse
- type ResponseError
- type RpcGenericRequest
- type RpcGenericResponse
- type SubscriptionResponse
- type VoucherParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFromHexToInt ¶ added in v1.0.0
func GetChangesFromEvents ¶ added in v1.0.0
func GetChangesFromEvents(response *SubscriptionResponse) ([]any, error)
func GetMessageByIndex ¶ added in v1.0.0
func GetMessageByIndex(moduleIdx, errorIdx int, meta *types.MetadataStruct) string
func VoucherParamsToProto ¶ added in v1.0.0
func VoucherParamsToProto(params *VoucherParams) *proto.VoucherParams
Types ¶
type BasicParams ¶ added in v1.0.0
type EncodedVoucherIssue ¶ added in v1.0.0
type EncodedVoucherIssue struct {
EncodedCall string `json:"encoded_call"`
}
func EncodedCallFromProto ¶ added in v1.0.0
func EncodedCallFromProto(pb *proto.EncodedVoucherIssue) *EncodedVoucherIssue
type Event ¶ added in v1.0.0
type Event struct {
EventID string `json:"event_id"`
ModuleID string `json:"module_id"`
EventIndex int `json:"event_idx"`
ExtrinsicIndex int `json:"extrinsic_idx"`
Params []scalecodec.EventParam `json:"params"`
}
type FinalizedResponse ¶ added in v1.0.0
type FinalizedResponse struct {
Finalized string `json:"finalized"`
}
type FrameSystemAccountInfo ¶ added in v0.1.2
type InBlockResponse ¶ added in v1.0.0
type InBlockResponse struct {
InBlock string `json:"inBlock"`
}
type ResponseError ¶ added in v1.0.0
type RpcGenericRequest ¶
type RpcGenericRequest struct {
Jsonrpc any `json:"jsonrpc"`
Id any `json:"id"`
Method string `json:"method"`
Params any `json:"params,omitempty"`
}
func (*RpcGenericRequest) MarshalBody ¶
func (rpc *RpcGenericRequest) MarshalBody() ([]byte, error)
type RpcGenericResponse ¶
type SubscriptionResponse ¶ added in v1.0.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.