Documentation ¶
Index ¶
- func ChangeAdmin(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk.AccAddress, ...) error
- func ConvertSdkCoinToWasmCoin(coin sdk.Coin) wasmvmtypes.Coin
- func ConvertSdkCoinsToWasmCoins(coins []sdk.Coin) wasmvmtypes.Coins
- func CustomMessageDecorator(gammKeeper *gammkeeper.Keeper, bank *bankkeeper.BaseKeeper, ...) func(wasmkeeper.Messenger) wasmkeeper.Messenger
- func CustomQuerier(osmoKeeper *QueryPlugin) func(ctx sdk.Context, request json.RawMessage) ([]byte, error)
- func GetFullDenom(contract string, subDenom string) (string, error)
- func PerformBurn(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk.AccAddress, ...) error
- func PerformCreateDenom(f *tokenfactorykeeper.Keeper, b *bankkeeper.BaseKeeper, ctx sdk.Context, ...) error
- func PerformMint(f *tokenfactorykeeper.Keeper, b *bankkeeper.BaseKeeper, ctx sdk.Context, ...) error
- func PerformSwap(keeper *gammkeeper.Keeper, ctx sdk.Context, contractAddr sdk.AccAddress, ...) (*wasmbindings.SwapAmount, error)
- func RegisterCustomPlugins(gammKeeper *gammkeeper.Keeper, bank *bankkeeper.BaseKeeper, ...) []wasmkeeper.Option
- type CustomMessenger
- type QueryPlugin
- func (qp QueryPlugin) EstimateSwap(ctx sdk.Context, estimateSwap *wasmbindings.EstimateSwap) (*wasmbindings.SwapAmount, error)
- func (qp QueryPlugin) GetPoolState(ctx sdk.Context, poolID uint64) (*wasmbindings.PoolAssets, error)
- func (qp QueryPlugin) GetSpotPrice(ctx sdk.Context, spotPrice *wasmbindings.SpotPrice) (*sdk.Dec, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeAdmin ¶
func ChangeAdmin(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk.AccAddress, changeAdmin *wasmbindings.ChangeAdmin) error
func ConvertSdkCoinToWasmCoin ¶
func ConvertSdkCoinToWasmCoin(coin sdk.Coin) wasmvmtypes.Coin
ConvertSdkCoinToWasmCoin converts a sdk type coin to a wasm vm type coin
func ConvertSdkCoinsToWasmCoins ¶
func ConvertSdkCoinsToWasmCoins(coins []sdk.Coin) wasmvmtypes.Coins
ConvertSdkCoinsToWasmCoins converts sdk type coins to wasm vm type coins
func CustomMessageDecorator ¶
func CustomMessageDecorator(gammKeeper *gammkeeper.Keeper, bank *bankkeeper.BaseKeeper, tokenFactory *tokenfactorykeeper.Keeper) func(wasmkeeper.Messenger) wasmkeeper.Messenger
func CustomQuerier ¶
func CustomQuerier(osmoKeeper *QueryPlugin) func(ctx sdk.Context, request json.RawMessage) ([]byte, error)
func GetFullDenom ¶
GetFullDenom is a function, not method, so the message_plugin can use it
func PerformBurn ¶
func PerformBurn(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractAddr sdk.AccAddress, burn *wasmbindings.BurnTokens) error
func PerformCreateDenom ¶
func PerformCreateDenom(f *tokenfactorykeeper.Keeper, b *bankkeeper.BaseKeeper, ctx sdk.Context, contractAddr sdk.AccAddress, createDenom *wasmbindings.CreateDenom) error
func PerformMint ¶
func PerformMint(f *tokenfactorykeeper.Keeper, b *bankkeeper.BaseKeeper, ctx sdk.Context, contractAddr sdk.AccAddress, mint *wasmbindings.MintTokens) error
func PerformSwap ¶
func PerformSwap(keeper *gammkeeper.Keeper, ctx sdk.Context, contractAddr sdk.AccAddress, swap *wasmbindings.SwapMsg) (*wasmbindings.SwapAmount, error)
PerformSwap can be used both for the real swap, and the EstimateSwap query
func RegisterCustomPlugins ¶
func RegisterCustomPlugins( gammKeeper *gammkeeper.Keeper, bank *bankkeeper.BaseKeeper, tokenFactory *tokenfactorykeeper.Keeper, ) []wasmkeeper.Option
Types ¶
type CustomMessenger ¶
type CustomMessenger struct {
// contains filtered or unexported fields
}
func (*CustomMessenger) DispatchMsg ¶
func (m *CustomMessenger) DispatchMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, msg wasmvmtypes.CosmosMsg) ([]sdk.Event, [][]byte, error)
type QueryPlugin ¶
type QueryPlugin struct {
// contains filtered or unexported fields
}
func NewQueryPlugin ¶
func NewQueryPlugin( gammK *gammkeeper.Keeper, ) *QueryPlugin
NewQueryPlugin constructor
func (QueryPlugin) EstimateSwap ¶
func (qp QueryPlugin) EstimateSwap(ctx sdk.Context, estimateSwap *wasmbindings.EstimateSwap) (*wasmbindings.SwapAmount, error)
func (QueryPlugin) GetPoolState ¶
func (qp QueryPlugin) GetPoolState(ctx sdk.Context, poolID uint64) (*wasmbindings.PoolAssets, error)
func (QueryPlugin) GetSpotPrice ¶
func (qp QueryPlugin) GetSpotPrice(ctx sdk.Context, spotPrice *wasmbindings.SpotPrice) (*sdk.Dec, error)
Click to show internal directories.
Click to hide internal directories.