Documentation ¶
Overview ¶
nolint
nolint
Index ¶
- Constants
- Variables
- func Register(registry *registry.Registry)
- type SpawnArguments
- type SpendArguments
- type Wallet
- 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) 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 ¶
View Source
const ( // BaseGas is a cost of Parse and Verify methods. BaseGas = 100 // FixedGasSpawn is consumed from principal in case of successful spawn. FixedGasSpawn = 100 // FixedGasSpend is consumed from principal in case of successful spend. FixedGasSpend = 100 )
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.