Documentation
¶
Index ¶
- Constants
- type BalanceLock
- type CallForceTransfer
- type CallTransferAll
- type CallTransferAlowDeath
- type CallTransferKeepAlive
- type EventDeposit
- type EventDustLost
- type EventEndowed
- type EventTransfer
- type EventWithdraw
- type Reasons
- type StorageInactiveIssuance
- type StorageLocks
- func (this *StorageLocks) Fetch(blockStorage interfaces.BlockStorageT, key StorageLocksKey) (prim.Option[StorageLocksEntry], error)
- func (this *StorageLocks) FetchAll(blockStorage interfaces.BlockStorageT) ([]StorageLocksEntry, error)
- func (this *StorageLocks) MapKeyHasher() uint8
- func (this *StorageLocks) PalletName() string
- func (this *StorageLocks) StorageName() string
- type StorageLocksEntry
- type StorageLocksKey
- type StorageTotalIssuance
Constants ¶
const PalletIndex = 6
const PalletName = "Balances"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceLock ¶
type CallForceTransfer ¶
type CallForceTransfer struct { Source prim.MultiAddress Dest prim.MultiAddress Value metadata.Balance `scale:"compact"` }
Exactly as `TransferAlowDeath`, except the origin must be root and the source account may be specified.
func (CallForceTransfer) CallIndex ¶
func (this CallForceTransfer) CallIndex() uint8
func (CallForceTransfer) CallName ¶
func (this CallForceTransfer) CallName() string
func (CallForceTransfer) PalletIndex ¶
func (this CallForceTransfer) PalletIndex() uint8
func (CallForceTransfer) PalletName ¶
func (this CallForceTransfer) PalletName() string
type CallTransferAll ¶
type CallTransferAll struct { Dest prim.MultiAddress KeepAlive bool }
Transfer the entire transferable balance from the caller account.
NOTE: This function only attempts to transfer _transferable_ balances. This means that any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be transferred by this function.
func (CallTransferAll) CallIndex ¶
func (this CallTransferAll) CallIndex() uint8
func (CallTransferAll) CallName ¶
func (this CallTransferAll) CallName() string
func (CallTransferAll) PalletIndex ¶
func (this CallTransferAll) PalletIndex() uint8
func (CallTransferAll) PalletName ¶
func (this CallTransferAll) PalletName() string
type CallTransferAlowDeath ¶
type CallTransferAlowDeath struct { Dest prim.MultiAddress Value uint128.Uint128 `scale:"compact"` }
Transfer some liquid free balance to another account.
`transfer_allow_death` will set the `FreeBalance` of the sender and receiver. If the sender's account is below the existential deposit as a result of the transfer, the account will be reaped.
The dispatch origin for this call must be `Signed` by the transactor.
func (CallTransferAlowDeath) CallIndex ¶
func (this CallTransferAlowDeath) CallIndex() uint8
func (CallTransferAlowDeath) CallName ¶
func (this CallTransferAlowDeath) CallName() string
func (CallTransferAlowDeath) PalletIndex ¶
func (this CallTransferAlowDeath) PalletIndex() uint8
func (CallTransferAlowDeath) PalletName ¶
func (this CallTransferAlowDeath) PalletName() string
type CallTransferKeepAlive ¶
type CallTransferKeepAlive struct { Dest prim.MultiAddress Value metadata.Balance `scale:"compact"` }
Same as the `TransferAlowDeath` call, but with a check that the transfer will not kill the origin account.
func (CallTransferKeepAlive) CallIndex ¶
func (this CallTransferKeepAlive) CallIndex() uint8
func (CallTransferKeepAlive) CallName ¶
func (this CallTransferKeepAlive) CallName() string
func (CallTransferKeepAlive) PalletIndex ¶
func (this CallTransferKeepAlive) PalletIndex() uint8
func (CallTransferKeepAlive) PalletName ¶
func (this CallTransferKeepAlive) PalletName() string
type EventDeposit ¶
type EventDeposit struct { Who primitives.AccountId Amount metadata.Balance }
Some amount was deposited (e.g. for transaction fees).
func (EventDeposit) EventIndex ¶
func (this EventDeposit) EventIndex() uint8
func (EventDeposit) EventName ¶
func (this EventDeposit) EventName() string
func (EventDeposit) PalletIndex ¶
func (this EventDeposit) PalletIndex() uint8
func (EventDeposit) PalletName ¶
func (this EventDeposit) PalletName() string
type EventDustLost ¶
type EventDustLost struct { Account primitives.AccountId Amount metadata.Balance }
An account was removed whose balance was non-zero but below ExistentialDeposit, resulting in an outright loss.
func (EventDustLost) EventIndex ¶
func (this EventDustLost) EventIndex() uint8
func (EventDustLost) EventName ¶
func (this EventDustLost) EventName() string
func (EventDustLost) PalletIndex ¶
func (this EventDustLost) PalletIndex() uint8
func (EventDustLost) PalletName ¶
func (this EventDustLost) PalletName() string
type EventEndowed ¶
type EventEndowed struct { Account primitives.AccountId FreeBalance metadata.Balance }
An account was created with some free balance.
func (EventEndowed) EventIndex ¶
func (this EventEndowed) EventIndex() uint8
func (EventEndowed) EventName ¶
func (this EventEndowed) EventName() string
func (EventEndowed) PalletIndex ¶
func (this EventEndowed) PalletIndex() uint8
func (EventEndowed) PalletName ¶
func (this EventEndowed) PalletName() string
type EventTransfer ¶
type EventTransfer struct { From primitives.AccountId To primitives.AccountId Amount metadata.Balance }
Transfer succeeded.
func (EventTransfer) EventIndex ¶
func (this EventTransfer) EventIndex() uint8
func (EventTransfer) EventName ¶
func (this EventTransfer) EventName() string
func (EventTransfer) PalletIndex ¶
func (this EventTransfer) PalletIndex() uint8
func (EventTransfer) PalletName ¶
func (this EventTransfer) PalletName() string
type EventWithdraw ¶
type EventWithdraw struct { Who primitives.AccountId Amount metadata.Balance }
Some amount was withdrawn from the account (e.g. for transaction fees).
func (EventWithdraw) EventIndex ¶
func (this EventWithdraw) EventIndex() uint8
func (EventWithdraw) EventName ¶
func (this EventWithdraw) EventName() string
func (EventWithdraw) PalletIndex ¶
func (this EventWithdraw) PalletIndex() uint8
func (EventWithdraw) PalletName ¶
func (this EventWithdraw) PalletName() string
type StorageInactiveIssuance ¶
type StorageInactiveIssuance struct {
Value Balance
}
func (*StorageInactiveIssuance) Fetch ¶
func (this *StorageInactiveIssuance) Fetch(blockStorage interfaces.BlockStorageT) (prim.Option[StorageInactiveIssuance], error)
func (*StorageInactiveIssuance) PalletName ¶
func (this *StorageInactiveIssuance) PalletName() string
func (*StorageInactiveIssuance) StorageName ¶
func (this *StorageInactiveIssuance) StorageName() string
type StorageLocks ¶
type StorageLocks struct {
Value []BalanceLock
}
func (*StorageLocks) Fetch ¶
func (this *StorageLocks) Fetch(blockStorage interfaces.BlockStorageT, key StorageLocksKey) (prim.Option[StorageLocksEntry], error)
func (*StorageLocks) FetchAll ¶
func (this *StorageLocks) FetchAll(blockStorage interfaces.BlockStorageT) ([]StorageLocksEntry, error)
func (*StorageLocks) MapKeyHasher ¶
func (this *StorageLocks) MapKeyHasher() uint8
func (*StorageLocks) PalletName ¶
func (this *StorageLocks) PalletName() string
func (*StorageLocks) StorageName ¶
func (this *StorageLocks) StorageName() string
type StorageLocksEntry ¶
type StorageLocksEntry = StorageEntry[StorageLocksKey, StorageLocks]
type StorageLocksKey ¶
type StorageTotalIssuance ¶
type StorageTotalIssuance struct {
Value Balance
}
func (*StorageTotalIssuance) Fetch ¶
func (this *StorageTotalIssuance) Fetch(blockStorage interfaces.BlockStorageT) (prim.Option[StorageTotalIssuance], error)
func (*StorageTotalIssuance) PalletName ¶
func (this *StorageTotalIssuance) PalletName() string
func (*StorageTotalIssuance) StorageName ¶
func (this *StorageTotalIssuance) StorageName() string