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 -
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) GetSigners ¶
func (msg MsgAddTargets) GetSigners() []sdk.AccAddress
GetSigners -
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) GetSigners ¶
func (msg MsgDeployNonce) GetSigners() []sdk.AccAddress
GetSigners -
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 -
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) ValidateBasic ¶
func (msg MsgUpdateTargets) ValidateBasic() sdk.Error
ValidateBasic -
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 -
Click to show internal directories.
Click to hide internal directories.