coin_price_bet

package
v0.0.0-...-cc252f9 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = types.ModuleName
	RouterKey  = types.RouterKey
	StoreKey   = types.StoreKey
)
View Source
const PRICE_PING_BLOCK_MOD int64 = 1000

Variables

View Source
var (
	NewKeeper     = keeper.NewKeeper
	RegisterCodec = types.RegisterCodec
	NewQuerier    = keeper.NewQuerier
	GetCoins      = types.GetCoins
)
View Source
var ENQ uint32 = 0x05
View Source
var EOT uint32 = 0x04
View Source
var ETX uint32 = 0x03

Functions

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState) []abci.ValidatorUpdate

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

NewHandler creates the msg handler of this module, as required by Cosmos-SDK standard.

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

func NewAppModule

func NewAppModule(k Keeper) AppModule

NewAppModule creates a new AppModule Object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

func (AppModule) EndBlock

func (am AppModule) EndBlock(ctx sdk.Context, block abci.RequestEndBlock) []abci.ValidatorUpdate

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONMarshaler) json.RawMessage

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONMarshaler, data json.RawMessage) []abci.ValidatorUpdate

func (AppModule) Name

func (AppModule) Name() string

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

func (AppModule) Route

func (am AppModule) Route() string

type AppModuleBasic

type AppModuleBasic struct{}

AppModule Basics object

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis(cdc codec.JSONMarshaler) json.RawMessage

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

Get the root query command of this module

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

Get the root tx command of this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

Register rest routes

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(cdc codec.JSONMarshaler, bz json.RawMessage) error

Validation check of the Genesis

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

Encoder stores the information necessary for the encoding functions

func NewEncoder

func NewEncoder() Encoder

NewEncoder returns an empty Encoder struct

func (*Encoder) EncodeBytes

func (encoder *Encoder) EncodeBytes(value []byte)

EncodeBytes takes a `[]byte` variable and encodes it into a byte array

func (*Encoder) EncodeSigned16

func (encoder *Encoder) EncodeSigned16(value int16)

EncodeSigned16 takes an `int16` variable and encodes it into a byte array

func (*Encoder) EncodeSigned32

func (encoder *Encoder) EncodeSigned32(value int32)

EncodeSigned32 takes an `int32` variable and encodes it into a byte array

func (*Encoder) EncodeSigned64

func (encoder *Encoder) EncodeSigned64(value int64)

EncodeSigned64 takes an `int64` variable and encodes it into a byte array

func (*Encoder) EncodeSigned8

func (encoder *Encoder) EncodeSigned8(value int8)

EncodeSigned8 takes an `int8` variable and encodes it into a byte array

func (*Encoder) EncodeString

func (encoder *Encoder) EncodeString(value string)

EncodeString takes a `string` variable and encodes it into a byte array

func (*Encoder) EncodeU16

func (encoder *Encoder) EncodeU16(value uint16)

EncodeU16 takes an `uint16` variable and encodes it into a byte array

func (*Encoder) EncodeU32

func (encoder *Encoder) EncodeU32(value uint32)

EncodeU32 takes an `uint32` variable and encodes it into a byte array

func (*Encoder) EncodeU64

func (encoder *Encoder) EncodeU64(value uint64)

EncodeU64 takes an `uint64` variable and encodes it into a byte array

func (*Encoder) EncodeU8

func (encoder *Encoder) EncodeU8(value uint8)

EncodeU8 takes an `uint8` variable and encodes it into a byte array

func (*Encoder) GetEncodedData

func (encoder *Encoder) GetEncodedData() []byte

GetEncodedData returns the `data` byte slice containing all the previously encoded data

type GenesisState

type GenesisState struct {
}

GenesisState is the vbstreetz state that must be provided at genesis.

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState returns the default genesis state.

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState

func NewGenesisState

func NewGenesisState() GenesisState

NewGenesisState creates a new genesis state.

type Keeper

type Keeper = keeper.Keeper

type MsgPayout

type MsgPayout = types.MsgPayout

type MsgPlaceBet

type MsgPlaceBet = types.MsgPlaceBet

type MsgSetSourceChannel

type MsgSetSourceChannel = types.MsgSetSourceChannel

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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