sdk

package
v0.2.18-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TxVersion is the only version supported at genesis.
	TxVersion = scale.U8(0)

	// MethodSpawn ...
	MethodSpawn = scale.U8(core.MethodSpawn)
	// MethodSpend ...
	MethodSpend = scale.U8(core.MethodSpend)
)

Functions

func Encode

func Encode(fields ...scale.Encodable) []byte

Types

type Opt

type Opt func(*Options)

Opt modifies Options.

func WithGasPrice

func WithGasPrice(price uint64) Opt

WithGasPrice modifies GasPrice.

type Options

type Options struct {
	GasPrice uint64
}

Options to modify common transaction fields.

func Defaults

func Defaults() *Options

Defaults returns default Options.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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