base

package
v0.0.0-...-84712ed Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PubKeyPrefix   = collections.NewPrefix(0)
	SequencePrefix = collections.NewPrefix(1)
)

Functions

func NewAccount

func NewAccount(name string, handlerMap *signing.HandlerMap) accountstd.AccountCreatorFunc

Types

type Account

type Account struct {
	PubKey   collections.Item[secp256k1.PubKey]
	Sequence collections.Sequence
	// contains filtered or unexported fields
}

Account implements a base account.

func (Account) Authenticate

Authenticate implements the authentication flow of an abstracted base account.

func (Account) Init

func (a Account) Init(ctx context.Context, msg *v1.MsgInit) (*v1.MsgInitResponse, error)

func (Account) QuerySequence

func (a Account) QuerySequence(ctx context.Context, _ *v1.QuerySequence) (*v1.QuerySequenceResponse, error)

func (Account) RegisterExecuteHandlers

func (a Account) RegisterExecuteHandlers(builder *accountstd.ExecuteBuilder)

func (Account) RegisterInitHandler

func (a Account) RegisterInitHandler(builder *accountstd.InitBuilder)

func (Account) RegisterQueryHandlers

func (a Account) RegisterQueryHandlers(builder *accountstd.QueryBuilder)

func (Account) SwapPubKey

func (a Account) SwapPubKey(ctx context.Context, msg *v1.MsgSwapPubKey) (*v1.MsgSwapPubKeyResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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