executor

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package executor implements wrappers around starname module keeper that are used to perform actions on objects stored inside the crud.Store

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

Account defines an account executor

func NewAccount

func NewAccount(ctx sdk.Context, k keeper.Keeper, account types.Account) *Account

func (*Account) AddCertificate

func (a *Account) AddCertificate(cert []byte)

AddCertificate adds a certificate to the account

func (*Account) Create

func (a *Account) Create()

Create creates an account

func (*Account) Delete

func (a *Account) Delete()

Delete deletes the account

func (*Account) DeleteCertificate

func (a *Account) DeleteCertificate(index int)

DeleteCertificate deletes the certificate of the account at the provided index

func (*Account) Renew

func (a *Account) Renew()

Renew renews an account

func (*Account) ReplaceResources

func (a *Account) ReplaceResources(newTargets []types.Resource)

ReplaceResources replaces account's resources

func (*Account) State

func (a *Account) State() types.Account

State returns the current state of the account

func (*Account) Transfer

func (a *Account) Transfer(newOwner sdk.AccAddress, reset bool)

Transfer transfers the account to the provided owner with information reset if reset is true

func (*Account) UpdateMetadata

func (a *Account) UpdateMetadata(newMetadata string)

UpdateMetadata updates account's metadata

type Domain

type Domain struct {
	// contains filtered or unexported fields
}

Domain defines the domain keeper executor

func NewDomain

func NewDomain(ctx sdk.Context, k keeper.Keeper, dom types.Domain) *Domain

NewDomain returns is domain's constructor

func (*Domain) Create

func (d *Domain) Create()

Create creates a new domain

func (*Domain) Delete

func (d *Domain) Delete()

Delete deletes a domain from the kvstore

func (*Domain) Renew

func (d *Domain) Renew(accValidUntil ...int64)

Renew renews a domain based on the configuration

func (*Domain) Transfer

func (d *Domain) Transfer(flag types.TransferFlag, newOwner sdk.AccAddress)

Transfer transfers a domain given a flag and an owner

Jump to

Keyboard shortcuts

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