Documentation ¶
Overview ¶
nolint
nolint
Index ¶
- Variables
- func BaseGas(method uint8) uint64
- func ExecGas(method uint8) uint64
- func LoadGas() uint64
- func Register(registry *registry.Registry)
- type SpawnArguments
- type SpendArguments
- type Wallet
- func (s *Wallet) BaseGas(method uint8) uint64
- func (t *Wallet) DecodeScale(dec *scale.Decoder) (total int, err error)
- func (t *Wallet) EncodeScale(enc *scale.Encoder) (total int, err error)
- func (s *Wallet) ExecGas(method uint8) uint64
- func (s *Wallet) LoadGas() uint64
- func (s *Wallet) MaxSpend(method uint8, args any) (uint64, error)
- func (s *Wallet) Spend(host core.Host, args *SpendArguments) error
- func (s *Wallet) Verify(host core.Host, raw []byte, dec *scale.Decoder) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TemplateAddress is an address of the Wallet template. TemplateAddress core.Address )
Functions ¶
Types ¶
type SpawnArguments ¶
SpawnArguments ...
func (*SpawnArguments) DecodeScale ¶
func (t *SpawnArguments) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*SpawnArguments) EncodeScale ¶
func (t *SpawnArguments) EncodeScale(enc *scale.Encoder) (total int, err error)
type SpendArguments ¶
SpendArguments ...
func (*SpendArguments) DecodeScale ¶
func (t *SpendArguments) DecodeScale(dec *scale.Decoder) (total int, err error)
func (*SpendArguments) EncodeScale ¶
func (t *SpendArguments) EncodeScale(enc *scale.Encoder) (total int, err error)
type Wallet ¶
Wallet is a single-key wallet.
func (*Wallet) DecodeScale ¶
func (*Wallet) EncodeScale ¶
Click to show internal directories.
Click to hide internal directories.