types

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deposit

type Deposit struct {
	ID          uint64
	Status      DepositStatus
	Src         mint.PublicKey
	Tx          mint.Digest
	Dst         common.Address
	Token       mint.Token
	Amount      *amount.Amount
	NextCheckAt time.Time
}

Deposit is MNT transaction received to specific deposit address

type DepositStatus

type DepositStatus uint8

DepositStatus enum

const (
	// DepositEnqueued means MNT transactions has been just received
	DepositEnqueued DepositStatus = iota + 1
	// DepositRequested means MNTP emission request has been sent to the external service (ethsvc)
	DepositRequested
	// DepositFailed means MNTP emission request failed
	DepositFailed
)

func (DepositStatus) String

func (ds DepositStatus) String() string

String is Stringer implementation

type Wallet

type Wallet struct {
	User     mint.PublicKey
	Ethereum common.Address
}

Wallet is mint:ethereum (swap source:destination) adresses pair

Jump to

Keyboard shortcuts

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