types

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DefaultCodespace -
	DefaultCodespace sdk.CodespaceType = ModuleName

	// CodeRoundDoesNotExist -
	CodeRoundDoesNotExist sdk.CodeType = 101
)
View Source
const (
	// ModuleName -
	ModuleName = "rand"

	// StoreKey -
	StoreKey = ModuleName

	// QuerierRoute -
	QuerierRoute = ModuleName
)
View Source
const RouterKey = ModuleName

RouterKey -

Variables

View Source
var ModuleCdc = codec.New()

ModuleCdc -

Functions

func ErrRoundDoesNotExist

func ErrRoundDoesNotExist(codespace sdk.CodespaceType) sdk.Error

ErrRoundDoesNotExist -

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

RegisterCodec -

Types

type MsgAddTargets

type MsgAddTargets struct {
	ID      string
	Owner   sdk.AccAddress
	Targets []string
}

MsgAddTargets -

func NewMsgAddTargets

func NewMsgAddTargets(id string, owner sdk.AccAddress, targets []string) MsgAddTargets

NewMsgAddTargets -

func (MsgAddTargets) GetSignBytes

func (msg MsgAddTargets) GetSignBytes() []byte

GetSignBytes -

func (MsgAddTargets) GetSigners

func (msg MsgAddTargets) GetSigners() []sdk.AccAddress

GetSigners -

func (MsgAddTargets) Route

func (msg MsgAddTargets) Route() string

Route -

func (MsgAddTargets) Type

func (msg MsgAddTargets) Type() string

Type -

func (MsgAddTargets) ValidateBasic

func (msg MsgAddTargets) ValidateBasic() sdk.Error

ValidateBasic - 모집단 추가 ValidateBasic

type MsgDeployNonce

type MsgDeployNonce struct {
	ID    string
	Owner sdk.AccAddress
	Nonce string
}

MsgDeployNonce -

func NewMsgDeployNonce

func NewMsgDeployNonce(id string, owner sdk.AccAddress, nonce string) MsgDeployNonce

NewMsgDeployNonce -

func (MsgDeployNonce) GetSignBytes

func (msg MsgDeployNonce) GetSignBytes() []byte

GetSignBytes -

func (MsgDeployNonce) GetSigners

func (msg MsgDeployNonce) GetSigners() []sdk.AccAddress

GetSigners -

func (MsgDeployNonce) Route

func (msg MsgDeployNonce) Route() string

Route -

func (MsgDeployNonce) Type

func (msg MsgDeployNonce) Type() string

Type -

func (MsgDeployNonce) ValidateBasic

func (msg MsgDeployNonce) ValidateBasic() sdk.Error

ValidateBasic -

type MsgNewRound

type MsgNewRound struct {
	ID            string
	Difficulty    uint8
	Owner         sdk.AccAddress
	Nonce         string
	NonceHash     string
	Targets       []string
	DepositCoin   sdk.Coin
	ScheduledTime time.Time
}

MsgNewRound -

func NewMsgNewRound

func NewMsgNewRound(id string, difficulty uint8, owner sdk.AccAddress, nonceHash string, targets []string, scheduledTime time.Time) MsgNewRound

NewMsgNewRound -

func (MsgNewRound) GetSignBytes

func (msg MsgNewRound) GetSignBytes() []byte

GetSignBytes -

func (MsgNewRound) GetSigners

func (msg MsgNewRound) GetSigners() []sdk.AccAddress

GetSigners -

func (MsgNewRound) Route

func (msg MsgNewRound) Route() string

Route -

func (MsgNewRound) Type

func (msg MsgNewRound) Type() string

Type -

func (MsgNewRound) ValidateBasic

func (msg MsgNewRound) ValidateBasic() sdk.Error

ValidateBasic -

type MsgUpdateTargets

type MsgUpdateTargets struct {
	ID      string
	Owner   sdk.AccAddress
	Targets []string
}

MsgUpdateTargets -

func NewMsgUpdateTargets

func NewMsgUpdateTargets(id string, owner sdk.AccAddress, targets []string) MsgUpdateTargets

NewMsgUpdateTargets -

func (MsgUpdateTargets) GetSignBytes

func (msg MsgUpdateTargets) GetSignBytes() []byte

GetSignBytes -

func (MsgUpdateTargets) GetSigners

func (msg MsgUpdateTargets) GetSigners() []sdk.AccAddress

GetSigners -

func (MsgUpdateTargets) Route

func (msg MsgUpdateTargets) Route() string

Route -

func (MsgUpdateTargets) Type

func (msg MsgUpdateTargets) Type() string

Type -

func (MsgUpdateTargets) ValidateBasic

func (msg MsgUpdateTargets) ValidateBasic() sdk.Error

ValidateBasic -

type Nonce

type Nonce struct {
	Nonce     string `json:"nonce"`
	NonceHash string `json:"nonce_hash"`
}

Nonce -

func (Nonce) String

func (n Nonce) String() string

type QueryResRoundIDs

type QueryResRoundIDs []string

QueryResRoundIDs -

func (QueryResRoundIDs) String

func (r QueryResRoundIDs) String() string

type Round

type Round struct {
	ID            string         `json:"id"`
	Difficulty    uint8          `json:"difficulty"`
	Owner         sdk.AccAddress `json:"owner"`
	Nonce         string         `json:"nonce"`
	NonceHash     string         `json:"nonce_hash"`
	Targets       []string       `json:"targets"`
	DepositCoin   sdk.Coin       `jsong:"deposit_coin"`
	ScheduledTime time.Time      `json:"scheduled_time"`
}

Round -

func (Round) String

func (r Round) String() string

type Rounds

type Rounds []*Round

Rounds -

Jump to

Keyboard shortcuts

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