swap

package
v0.6.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 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

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
	DefaultApproveBy    = types.DefaultApproveBy
)

Variables

View Source
var (
	// functions aliases
	RegisterLegacyAminoCodec                = types.RegisterLegacyAminoCodec
	RegisterInterfaces                      = types.RegisterInterfaces
	BytesToHash                             = types.BytesToHash
	NewGenesisState                         = types.NewGenesisState
	DefaultGenesisState                     = types.DefaultGenesisState
	SwapKey                                 = types.SwapKey
	NewMsgSwapRequest                       = types.NewMsgSwapRequest
	NewMsgServiceClient                     = types.NewMsgServiceClient
	RegisterMsgServiceServer                = types.RegisterMsgServiceServer
	NewParams                               = types.NewParams
	DefaultParams                           = types.DefaultParams
	ParamsKeyTable                          = types.ParamsKeyTable
	NewQuerySwapRequest                     = types.NewQuerySwapRequest
	NewQuerySwapsRequest                    = types.NewQuerySwapsRequest
	NewQueryServiceClient                   = types.NewQueryServiceClient
	RegisterQueryServiceServer              = types.RegisterQueryServiceServer
	RegisterQueryServiceHandlerServer       = types.RegisterQueryServiceHandlerServer
	RegisterQueryServiceHandlerFromEndpoint = types.RegisterQueryServiceHandlerFromEndpoint
	RegisterQueryServiceHandler             = types.RegisterQueryServiceHandler
	RegisterQueryServiceHandlerClient       = types.RegisterQueryServiceHandlerClient
	NewKeeper                               = keeper.NewKeeper
	NewMsgServiceServer                     = keeper.NewMsgServiceServer
	NewQueryServiceServer                   = keeper.NewQueryServiceServer

	// 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
	ErrInvalidLengthGenesis        = types.ErrInvalidLengthGenesis
	ErrIntOverflowGenesis          = types.ErrIntOverflowGenesis
	ErrUnexpectedEndOfGroupGenesis = types.ErrUnexpectedEndOfGroupGenesis
	ParamsSubspace                 = types.ParamsSubspace
	RouterKey                      = types.RouterKey
	StoreKey                       = types.StoreKey
	PrecisionLoss                  = types.PrecisionLoss
	EventModuleName                = types.EventModuleName
	SwapKeyPrefix                  = types.SwapKeyPrefix
	ErrInvalidLengthMsg            = types.ErrInvalidLengthMsg
	ErrIntOverflowMsg              = types.ErrIntOverflowMsg
	ErrUnexpectedEndOfGroupMsg     = types.ErrUnexpectedEndOfGroupMsg
	KeySwapEnabled                 = types.KeySwapEnabled
	KeySwapDenom                   = types.KeySwapDenom
	KeyApproveBy                   = types.KeyApproveBy
	ErrInvalidLengthParams         = types.ErrInvalidLengthParams
	ErrIntOverflowParams           = types.ErrIntOverflowParams
	ErrUnexpectedEndOfGroupParams  = types.ErrUnexpectedEndOfGroupParams
	ErrInvalidLengthQuerier        = types.ErrInvalidLengthQuerier
	ErrIntOverflowQuerier          = types.ErrIntOverflowQuerier
	ErrUnexpectedEndOfGroupQuerier = types.ErrUnexpectedEndOfGroupQuerier
	ErrInvalidLengthSwap           = types.ErrInvalidLengthSwap
	ErrIntOverflowSwap             = types.ErrIntOverflowSwap
	ErrUnexpectedEndOfGroupSwap    = types.ErrUnexpectedEndOfGroupSwap
)

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

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, cdc codec.JSONMarshaler) json.RawMessage

func (AppModule) GenerateGenesisState

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

func (AppModule) InitGenesis

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

func (AppModule) LegacyQuerierHandler added in v0.6.0

func (a AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier

func (AppModule) ProposalContents

func (AppModule) QuerierRoute

func (a AppModule) QuerierRoute() string

func (AppModule) RandomizedParams

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

func (AppModule) RegisterInvariants

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

func (AppModule) RegisterServices added in v0.6.0

func (a AppModule) RegisterServices(configurator module.Configurator)

func (AppModule) RegisterStoreDecoder

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

func (AppModule) Route

func (a AppModule) Route() sdk.Route

func (AppModule) WeightedOperations

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

type AppModuleBasic

type AppModuleBasic struct{}

func (AppModuleBasic) DefaultGenesis

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

func (AppModuleBasic) GetQueryCmd

func (a AppModuleBasic) GetQueryCmd() *cobra.Command

func (AppModuleBasic) GetTxCmd

func (a AppModuleBasic) GetTxCmd() *cobra.Command

func (AppModuleBasic) Name

func (a AppModuleBasic) Name() string

func (AppModuleBasic) RegisterGRPCGatewayRoutes added in v0.6.0

func (a AppModuleBasic) RegisterGRPCGatewayRoutes(ctx client.Context, mux *runtime.ServeMux)

func (AppModuleBasic) RegisterInterfaces added in v0.6.0

func (a AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)

func (AppModuleBasic) RegisterLegacyAminoCodec added in v0.6.0

func (a AppModuleBasic) RegisterLegacyAminoCodec(amino *codec.LegacyAmino)

func (AppModuleBasic) RegisterRESTRoutes

func (a AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router)

func (AppModuleBasic) ValidateGenesis

func (a AppModuleBasic) ValidateGenesis(cdc codec.JSONMarshaler, _ client.TxEncodingConfig, message json.RawMessage) error

type EthereumHash

type EthereumHash = types.EthereumHash

type GenesisState

type GenesisState = types.GenesisState

type Keeper

type Keeper = keeper.Keeper

type MsgServiceClient

type MsgServiceClient = types.MsgServiceClient

type MsgServiceServer

type MsgServiceServer = types.MsgServiceServer

type MsgSwapRequest

type MsgSwapRequest = types.MsgSwapRequest

type MsgSwapResponse

type MsgSwapResponse = types.MsgSwapResponse

type Params

type Params = types.Params

type QueryServiceClient

type QueryServiceClient = types.QueryServiceClient

type QueryServiceServer

type QueryServiceServer = types.QueryServiceServer

type QuerySwapRequest

type QuerySwapRequest = types.QuerySwapRequest

type QuerySwapResponse

type QuerySwapResponse = types.QuerySwapResponse

type QuerySwapsRequest

type QuerySwapsRequest = types.QuerySwapsRequest

type QuerySwapsResponse

type QuerySwapsResponse = types.QuerySwapsResponse

type Swap

type Swap = types.Swap

type Swaps

type Swaps = types.Swaps

type UnimplementedMsgServiceServer

type UnimplementedMsgServiceServer = types.UnimplementedMsgServiceServer

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer = types.UnimplementedQueryServiceServer

Directories

Path Synopsis
client
cli
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

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