types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address string

type Currency

type Currency struct {
	big.Int
}

func (*Currency) String

func (c *Currency) String() string

func (*Currency) UnmarshalJSON

func (c *Currency) UnmarshalJSON(b []byte) error

type Delegate

type Delegate struct {
	Delegator Address  `json:"delegator"`
	Delegatee Address  `json:"delegatee"`
	Amount    Currency `json:"amount"`
}

type Parcel

type Parcel struct {
	Owner   Address `json:"owner"`
	Custody string  `json:"custody"`
	Info    string  `json:"info,omitempty"`
}

type PubKeyEd25519

type PubKeyEd25519 []byte

type Request

type Request struct {
	Payment Currency  `json:"payment"`
	Exp     time.Time `json:"exp"`
}

type Stake

type Stake struct {
	Validator PubKeyEd25519 `json:"validator"`
	Amount    Currency      `json:"amount"`
	Delegates []Delegate    `json:"delegates"`
}

type Usage

type Usage struct {
	Custody string    `json:"custody"`
	Exp     time.Time `json:"exp"`
}

Jump to

Keyboard shortcuts

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