swap

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 17 Imported by: 3

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/sentinel-official/hub/x/swap/types ALIASGEN: github.com/sentinel-official/hub/x/swap/keeper ALIASGEN: github.com/sentinel-official/hub/x/swap/querier

Index

Constants

View Source
const (
	EthereumHashLength  = types.EthereumHashLength
	AttributeKeyTxHash  = types.AttributeKeyTxHash
	AttributeKeyAddress = types.AttributeKeyAddress
	AttributeKeyAmount  = types.AttributeKeyAmount
	ModuleName          = types.ModuleName
	QuerierRoute        = types.QuerierRoute
	DefaultParamspace   = types.DefaultParamspace
	DefaultSwapEnabled  = types.DefaultSwapEnabled
	DefaultSwapDenom    = types.DefaultSwapDenom
	QuerySwap           = types.QuerySwap
	QuerySwaps          = types.QuerySwaps
)

Variables

View Source
var (
	// functions aliases
	RegisterCodec       = types.RegisterCodec
	BytesToHash         = types.BytesToHash
	NewGenesisState     = types.NewGenesisState
	DefaultGenesisState = types.DefaultGenesisState
	SwapKey             = types.SwapKey
	NewMsgSwap          = types.NewMsgSwap
	NewParams           = types.NewParams
	DefaultParams       = types.DefaultParams
	ParamsKeyTable      = types.ParamsKeyTable
	NewQuerySwapParams  = types.NewQuerySwapParams
	NewQuerySwapsParams = types.NewQuerySwapsParams
	NewKeeper           = keeper.NewKeeper
	NewQuerier          = querier.NewQuerier

	// variable aliases
	ModuleCdc             = types.ModuleCdc
	ErrorMarshal          = types.ErrorMarshal
	ErrorUnmarshal        = types.ErrorUnmarshal
	ErrorUnknownMsgType   = types.ErrorUnknownMsgType
	ErrorUnknownQueryType = types.ErrorUnknownQueryType
	ErrorInvalidField     = types.ErrorInvalidField
	ErrorSwapIsDisabled   = types.ErrorSwapIsDisabled
	ErrorUnauthorized     = types.ErrorUnauthorized
	ErrorDuplicateSwap    = types.ErrorDuplicateSwap
	EventTypeSet          = types.EventTypeSet
	ParamsSubspace        = types.ParamsSubspace
	RouterKey             = types.RouterKey
	StoreKey              = types.StoreKey
	EventModuleName       = types.EventModuleName
	SwapKeyPrefix         = types.SwapKeyPrefix
	DefaultApproveBy      = types.DefaultApproveBy
	KeySwapEnabled        = types.KeySwapEnabled
	KeySwapDenom          = types.KeySwapDenom
	KeyApproveBy          = types.KeyApproveBy
)

Functions

func ExportGenesis

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

func InitGenesis

func InitGenesis(ctx sdk.Context, k keeper.Keeper, state types.GenesisState)

func NewHandler

func NewHandler(k keeper.Keeper) sdk.Handler

func ValidateGenesis

func ValidateGenesis(state types.GenesisState) error

Types

type AppModule

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

func NewAppModule

func NewAppModule(k keeper.Keeper) AppModule

func (AppModule) BeginBlock

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

func (AppModule) EndBlock

func (AppModule) ExportGenesis

func (a AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

func (AppModule) GenerateGenesisState

func (a AppModule) GenerateGenesisState(_ *module.SimulationState)

func (AppModule) InitGenesis

func (a AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

func (AppModule) NewHandler

func (a AppModule) NewHandler() sdk.Handler

func (AppModule) NewQuerierHandler

func (a AppModule) NewQuerierHandler() sdk.Querier

func (AppModule) ProposalContents

func (AppModule) QuerierRoute

func (a AppModule) QuerierRoute() string

func (AppModule) RandomizedParams

func (a AppModule) RandomizedParams(_ *rand.Rand) []xsimulation.ParamChange

func (AppModule) RegisterInvariants

func (a AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

func (AppModule) RegisterStoreDecoder

func (a AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry)

func (AppModule) Route

func (a AppModule) Route() string

func (AppModule) WeightedOperations

func (a AppModule) WeightedOperations(_ module.SimulationState) []xsimulation.WeightedOperation

type AppModuleBasic

type AppModuleBasic struct{}

func (AppModuleBasic) DefaultGenesis

func (a AppModuleBasic) DefaultGenesis() json.RawMessage

func (AppModuleBasic) GetQueryCmd

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

func (AppModuleBasic) GetTxCmd

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

func (AppModuleBasic) Name

func (a AppModuleBasic) Name() string

func (AppModuleBasic) RegisterCodec

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

func (AppModuleBasic) RegisterRESTRoutes

func (a AppModuleBasic) RegisterRESTRoutes(context context.CLIContext, router *mux.Router)

func (AppModuleBasic) ValidateGenesis

func (a AppModuleBasic) ValidateGenesis(data json.RawMessage) error

type EthereumHash

type EthereumHash = types.EthereumHash

type GenesisState

type GenesisState = types.GenesisState

type Keeper

type Keeper = keeper.Keeper

type MsgSwap

type MsgSwap = types.MsgSwap

type Params

type Params = types.Params

type QuerySwapParams

type QuerySwapParams = types.QuerySwapParams

type QuerySwapsParams

type QuerySwapsParams = types.QuerySwapsParams

type Swap

type Swap = types.Swap

type Swaps

type Swaps = types.Swaps

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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