Documentation
¶
Index ¶
- func ConvertFromHexToInt(h string) (*int, error)
- func GetFieldFromAny(name string, src any) (any, error)
- func GetMessageByIndex(moduleIdx, errorIdx int, meta *types.MetadataStruct) string
- func IsFinalized(resp *SubscriptionResponse) bool
- func VoucherParamsToProto(params *VoucherParams) *proto.VoucherParams
- type ActiveProgram
- type BalancesEvent
- type BasicParams
- type Changes
- type ChangesResponse
- type Code
- type Data
- type Details
- type EncodedVoucherIssue
- type Event
- type ExtrinsicSuccess
- type FinalizedResponse
- type FrameSystemAccountInfo
- type GasCalculateResult
- type InBlockResponse
- type Mailbox
- type Message
- type MessageError
- type Program
- type ResponseError
- type Result
- type RpcGenericRequest
- type RpcGenericResponse
- type SubscriptionResponse
- type TransactionPaymentEvent
- type TreasuryEvent
- type VoucherParams
- type Weight
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFromHexToInt ¶ added in v1.0.0
func GetMessageByIndex ¶ added in v1.0.0
func GetMessageByIndex(moduleIdx, errorIdx int, meta *types.MetadataStruct) string
func IsFinalized ¶ added in v1.0.2
func IsFinalized(resp *SubscriptionResponse) bool
func VoucherParamsToProto ¶ added in v1.0.0
func VoucherParamsToProto(params *VoucherParams) *proto.VoucherParams
Types ¶
type ActiveProgram ¶ added in v1.0.2
type BalancesEvent ¶ added in v1.0.2
type BasicParams ¶ added in v1.0.0
type Changes ¶ added in v1.0.2
type Changes struct {
ChangeHash string
}
func GetChangesFromEvents ¶ added in v1.0.0
func GetChangesFromEvents(response *SubscriptionResponse) (*Changes, error)
type ChangesResponse ¶ added in v1.0.2
type Code ¶ added in v1.0.2
type Code struct {
Success string `json:"success,omitempty"`
Error *MessageError `json:"error,omitempty"`
}
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 ExtrinsicSuccess ¶ added in v1.0.3
type FinalizedResponse ¶ added in v1.0.0
type FinalizedResponse struct {
Finalized string `json:"finalized"`
}
type FrameSystemAccountInfo ¶ added in v0.1.2
type GasCalculateResult ¶ added in v1.0.2
type InBlockResponse ¶ added in v1.0.0
type InBlockResponse struct {
InBlock string `json:"inBlock"`
}
type Mailbox ¶ added in v1.0.3
type Mailbox struct {
Id string `json:"id,omitempty"`
Source string `json:"source,omitempty"`
Destination string `json:"destination,omitempty"`
Payload string `json:"payload,omitempty"`
Value string `json:"value,omitempty"`
Start float64 `json:"start,omitempty"`
Finish float64 `json:"finish,omitempty"`
}
type MessageError ¶ added in v1.0.2
type MessageError struct {
Execution string `json:"execution"`
}
type Program ¶ added in v1.0.2
type Program struct {
Status string
Terminated string
Active *ActiveProgram `json:"active,omitempty"`
ProgramId string
}
func NewProgram ¶ added in v1.0.2
func NewProgram(status, programId, terminated string, program *ActiveProgram) *Program
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
type TransactionPaymentEvent ¶ added in v1.0.2
type TreasuryEvent ¶ added in v1.0.2
type VoucherParams ¶ added in v1.0.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.