node

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log      hs.LogConf `json:"log"`
	RPC      string     `json:"rpc"`
	Contract string     `json:"contract"`
	Mnemonic string     `json:"mnemonic"`
	Account  int        `json:"account"`
}

type Node

type Node struct {
	Sugar *zap.SugaredLogger
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *Node

func (*Node) AddAirdrop

func (n *Node) AddAirdrop(ctx context.Context, owners []common.Address, amount uint8) error

func (*Node) AddWhitelist

func (n *Node) AddWhitelist(ctx context.Context, owners []common.Address, amount uint8) error

func (*Node) AirdropQuota

func (n *Node) AirdropQuota(ctx context.Context, owner common.Address) (Quota, error)

func (*Node) Init

func (n *Node) Init(ctx context.Context) error

func (*Node) MintQuota

func (n *Node) MintQuota(ctx context.Context, owner common.Address) (Quota, error)

func (*Node) Pause

func (n *Node) Pause(ctx context.Context) error

func (*Node) Paused

func (n *Node) Paused(ctx context.Context) (bool, error)

func (*Node) Phase

func (n *Node) Phase(ctx context.Context) (int8, error)

func (*Node) SetPhase

func (n *Node) SetPhase(ctx context.Context, newPhase int8) error

func (*Node) Unpause

func (n *Node) Unpause(ctx context.Context) error

type Quota

type Quota struct {
	Minted uint8
	Cap    uint8
}

Jump to

Keyboard shortcuts

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