dispatchables

package
v0.0.1-rc-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DepositIntoExisting

func DepositIntoExisting(who types.Address32, value sc.U128) (types.Balance, types.DispatchError)

DepositIntoExisting deposits `value` into the free balance of an existing target account `who`. If `value` is 0, it does nothing.

func Withdraw

func Withdraw(who types.Address32, value sc.U128, reasons sc.U8, liveness types.ExistenceRequirement) (types.Balance, types.DispatchError)

Withdraw withdraws `value` free balance from `who`, respecting existence requirements. Does not do anything if value is 0.

Types

type DustCleanerValue

type DustCleanerValue struct {
	AccountId         types.Address32
	NegativeImbalance NegativeImbalance
}

func (DustCleanerValue) Bytes

func (dcv DustCleanerValue) Bytes() []byte

func (DustCleanerValue) Drop

func (dcv DustCleanerValue) Drop()

func (DustCleanerValue) Encode

func (dcv DustCleanerValue) Encode(buffer *bytes.Buffer)

type ForceFreeCall

type ForceFreeCall struct {
	primitives.Callable
}

func NewForceFreeCall

func NewForceFreeCall(args sc.VaryingData) ForceFreeCall

func (ForceFreeCall) Args

func (c ForceFreeCall) Args() sc.VaryingData

func (ForceFreeCall) BaseWeight

func (_ ForceFreeCall) BaseWeight(b ...any) types.Weight

func (ForceFreeCall) Bytes

func (c ForceFreeCall) Bytes() []byte

func (ForceFreeCall) ClassifyDispatch

func (_ ForceFreeCall) ClassifyDispatch(baseWeight types.Weight) types.DispatchClass

func (ForceFreeCall) DecodeArgs

func (c ForceFreeCall) DecodeArgs(buffer *bytes.Buffer) primitives.Call

func (ForceFreeCall) Encode

func (c ForceFreeCall) Encode(buffer *bytes.Buffer)

func (ForceFreeCall) FunctionIndex

func (c ForceFreeCall) FunctionIndex() sc.U8

func (ForceFreeCall) IsInherent

func (_ ForceFreeCall) IsInherent() bool

func (ForceFreeCall) ModuleIndex

func (c ForceFreeCall) ModuleIndex() sc.U8

func (ForceFreeCall) PaysFee

func (_ ForceFreeCall) PaysFee(baseWeight types.Weight) types.Pays

func (ForceFreeCall) WeightInfo

func (_ ForceFreeCall) WeightInfo(baseWeight types.Weight) types.Weight

type ForceTransferCall

type ForceTransferCall struct {
	primitives.Callable
}

func NewForceTransferCall

func NewForceTransferCall(args sc.VaryingData) ForceTransferCall

func (ForceTransferCall) Args

func (c ForceTransferCall) Args() sc.VaryingData

func (ForceTransferCall) BaseWeight

func (_ ForceTransferCall) BaseWeight(b ...any) types.Weight

func (ForceTransferCall) Bytes

func (c ForceTransferCall) Bytes() []byte

func (ForceTransferCall) ClassifyDispatch

func (_ ForceTransferCall) ClassifyDispatch(baseWeight types.Weight) types.DispatchClass

func (ForceTransferCall) DecodeArgs

func (c ForceTransferCall) DecodeArgs(buffer *bytes.Buffer) primitives.Call

func (ForceTransferCall) Encode

func (c ForceTransferCall) Encode(buffer *bytes.Buffer)

func (ForceTransferCall) FunctionIndex

func (c ForceTransferCall) FunctionIndex() sc.U8

func (ForceTransferCall) IsInherent

func (_ ForceTransferCall) IsInherent() bool

func (ForceTransferCall) ModuleIndex

func (c ForceTransferCall) ModuleIndex() sc.U8

func (ForceTransferCall) PaysFee

func (_ ForceTransferCall) PaysFee(baseWeight types.Weight) types.Pays

func (ForceTransferCall) WeightInfo

func (_ ForceTransferCall) WeightInfo(baseWeight types.Weight) types.Weight

type NegativeImbalance

type NegativeImbalance struct {
	types.Balance
}

func NewNegativeImbalance

func NewNegativeImbalance(balance types.Balance) NegativeImbalance

func (NegativeImbalance) Drop

func (ni NegativeImbalance) Drop()

type PositiveImbalance

type PositiveImbalance struct {
	types.Balance
}

func NewPositiveImbalance

func NewPositiveImbalance(balance types.Balance) PositiveImbalance

func (PositiveImbalance) Drop

func (pi PositiveImbalance) Drop()

type SetBalanceCall

type SetBalanceCall struct {
	primitives.Callable
}

func NewSetBalanceCall

func NewSetBalanceCall(args sc.VaryingData) SetBalanceCall

func (SetBalanceCall) Args

func (c SetBalanceCall) Args() sc.VaryingData

func (SetBalanceCall) BaseWeight

func (_ SetBalanceCall) BaseWeight(b ...any) types.Weight

func (SetBalanceCall) Bytes

func (c SetBalanceCall) Bytes() []byte

func (SetBalanceCall) ClassifyDispatch

func (_ SetBalanceCall) ClassifyDispatch(baseWeight types.Weight) types.DispatchClass

func (SetBalanceCall) DecodeArgs

func (c SetBalanceCall) DecodeArgs(buffer *bytes.Buffer) primitives.Call

func (SetBalanceCall) Encode

func (c SetBalanceCall) Encode(buffer *bytes.Buffer)

func (SetBalanceCall) FunctionIndex

func (c SetBalanceCall) FunctionIndex() sc.U8

func (SetBalanceCall) IsInherent

func (_ SetBalanceCall) IsInherent() bool

func (SetBalanceCall) ModuleIndex

func (c SetBalanceCall) ModuleIndex() sc.U8

func (SetBalanceCall) PaysFee

func (_ SetBalanceCall) PaysFee(baseWeight types.Weight) types.Pays

func (SetBalanceCall) WeightInfo

func (_ SetBalanceCall) WeightInfo(baseWeight types.Weight) types.Weight

type TransferAllCall

type TransferAllCall struct {
	primitives.Callable
}

func NewTransferAllCall

func NewTransferAllCall(args sc.VaryingData) TransferAllCall

func (TransferAllCall) Args

func (c TransferAllCall) Args() sc.VaryingData

func (TransferAllCall) BaseWeight

func (_ TransferAllCall) BaseWeight(b ...any) types.Weight

func (TransferAllCall) Bytes

func (c TransferAllCall) Bytes() []byte

func (TransferAllCall) ClassifyDispatch

func (_ TransferAllCall) ClassifyDispatch(baseWeight types.Weight) types.DispatchClass

func (TransferAllCall) DecodeArgs

func (c TransferAllCall) DecodeArgs(buffer *bytes.Buffer) primitives.Call

func (TransferAllCall) Encode

func (c TransferAllCall) Encode(buffer *bytes.Buffer)

func (TransferAllCall) FunctionIndex

func (c TransferAllCall) FunctionIndex() sc.U8

func (TransferAllCall) IsInherent

func (_ TransferAllCall) IsInherent() bool

func (TransferAllCall) ModuleIndex

func (c TransferAllCall) ModuleIndex() sc.U8

func (TransferAllCall) PaysFee

func (_ TransferAllCall) PaysFee(baseWeight types.Weight) types.Pays

func (TransferAllCall) WeightInfo

func (_ TransferAllCall) WeightInfo(baseWeight types.Weight) types.Weight

type TransferCall

type TransferCall struct {
	primitives.Callable
}

func NewTransferCall

func NewTransferCall(args sc.VaryingData) TransferCall

func (TransferCall) Args

func (c TransferCall) Args() sc.VaryingData

func (TransferCall) BaseWeight

func (_ TransferCall) BaseWeight(b ...any) types.Weight

func (TransferCall) Bytes

func (c TransferCall) Bytes() []byte

func (TransferCall) ClassifyDispatch

func (_ TransferCall) ClassifyDispatch(baseWeight types.Weight) types.DispatchClass

func (TransferCall) DecodeArgs

func (c TransferCall) DecodeArgs(buffer *bytes.Buffer) primitives.Call

func (TransferCall) Encode

func (c TransferCall) Encode(buffer *bytes.Buffer)

func (TransferCall) FunctionIndex

func (c TransferCall) FunctionIndex() sc.U8

func (TransferCall) IsInherent

func (_ TransferCall) IsInherent() bool

func (TransferCall) ModuleIndex

func (c TransferCall) ModuleIndex() sc.U8

func (TransferCall) PaysFee

func (_ TransferCall) PaysFee(baseWeight types.Weight) types.Pays

func (TransferCall) WeightInfo

func (_ TransferCall) WeightInfo(baseWeight types.Weight) types.Weight

type TransferKeepAliveCall

type TransferKeepAliveCall struct {
	primitives.Callable
}

func NewTransferKeepAliveCall

func NewTransferKeepAliveCall(args sc.VaryingData) TransferKeepAliveCall

func (TransferKeepAliveCall) Args

func (TransferKeepAliveCall) BaseWeight

func (_ TransferKeepAliveCall) BaseWeight(b ...any) types.Weight

func (TransferKeepAliveCall) Bytes

func (c TransferKeepAliveCall) Bytes() []byte

func (TransferKeepAliveCall) ClassifyDispatch

func (_ TransferKeepAliveCall) ClassifyDispatch(baseWeight types.Weight) types.DispatchClass

func (TransferKeepAliveCall) DecodeArgs

func (c TransferKeepAliveCall) DecodeArgs(buffer *bytes.Buffer) primitives.Call

func (TransferKeepAliveCall) Encode

func (c TransferKeepAliveCall) Encode(buffer *bytes.Buffer)

func (TransferKeepAliveCall) FunctionIndex

func (c TransferKeepAliveCall) FunctionIndex() sc.U8

func (TransferKeepAliveCall) IsInherent

func (_ TransferKeepAliveCall) IsInherent() bool

func (TransferKeepAliveCall) ModuleIndex

func (c TransferKeepAliveCall) ModuleIndex() sc.U8

func (TransferKeepAliveCall) PaysFee

func (_ TransferKeepAliveCall) PaysFee(baseWeight types.Weight) types.Pays

func (TransferKeepAliveCall) WeightInfo

func (_ TransferKeepAliveCall) WeightInfo(baseWeight types.Weight) types.Weight

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL