Documentation ¶
Index ¶
- Variables
- func CreatePayload(meta *Metadata, encodedCall []byte) (*extrinsic.Payload, error)
- func NewCall(m *Metadata, call string, args ...interface{}) (types.Call, error)
- type CallMeta
- type Metadata
- type TxInput
- func (input *TxInput) GetDriver() xc.Driver
- func (input *TxInput) GetVariant() xc.TxVariantInputType
- func (input *TxInput) IndependentOf(other xc.TxInput) (independent bool)
- func (input *TxInput) SafeFromDoubleSend(others ...xc.TxInput) (safe bool)
- func (input *TxInput) SetGasFeePriority(other xc.GasFeePriority) error
- func (input *TxInput) Staking()
- func (input *TxInput) Unstaking()
- func (input *TxInput) Withdrawing()
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalPayloadMutatorFns = map[extensions.SignedExtensionName]extrinsic.PayloadMutatorFn{ "SubtensorSignedExtension": func(payload *extrinsic.Payload) {}, "CommitmentsSignedExtension": func(payload *extrinsic.Payload) {}, }
Functions ¶
func CreatePayload ¶
Replaces "github.com/centrifuge/go-substrate-rpc-client/v4/extrinsic".createPayload
Types ¶
type Metadata ¶
type Metadata struct { Calls []*CallMeta `json:"calls"` SignedExtensions []extensions.SignedExtensionName `json:"signed_extensions"` }
type TxInput ¶
type TxInput struct { xc.TxInputEnvelope Meta Metadata `json:"meta,omitempty"` GenesisHash types.Hash `json:"genesis_hash,omitempty"` CurHash types.Hash `json:"current_hash,omitempty"` Rv types.RuntimeVersion `json:"runtime_version,omitempty"` CurrentHeight uint64 `json:"current_height,omitempty"` Tip uint64 `json:"tip,omitempty"` Nonce uint64 `json:"account_nonce,omitempty"` }
TxInput for Substrate
func (*TxInput) GetVariant ¶
func (input *TxInput) GetVariant() xc.TxVariantInputType
func (*TxInput) IndependentOf ¶
func (*TxInput) SafeFromDoubleSend ¶
func (*TxInput) SetGasFeePriority ¶
func (input *TxInput) SetGasFeePriority(other xc.GasFeePriority) error
func (*TxInput) Withdrawing ¶
func (input *TxInput) Withdrawing()
Click to show internal directories.
Click to hide internal directories.