Osmosis Proxy

Proxy to Osmosis SDK module functions. Enforces max supplies for tokens created by Membrane. Calculates the liquidity multiplier for Positions contracts.

InstantiateMsg

pub struct InstantiateMsg {}

ExecuteMsg

CreateDenom

Create native asset denom using Osmosis' tokenfactory

#[cw_serde]
pub enum ExecuteMsg {
    CreateDenom {
        subdenom: String,        
        max_supply: Option<Uint128>,
    }
}
Key
Type
Description

subdenom

String

Subdenom for native asset

*max_supply

Uint128

Token max supply enforced by the contract

* = optional

ChangeAdmin

Change Admin for owned tokenfactory denom

Key
Type
Description

denom

String

Owned denom to edit

new_admin_address

String

Admin address to migrate ownership to

MintTokens

Mint tokens for owned token denoms

Key
Type
Description

denom

String

Token denom to mint

amount

Uint128

Amount to mint

mint_to_address

String

Address to mint tokens to

BurnTokens

Burn tokens from a denom owned by the contract

Key
Type
Description

denom

String

Token denom to burn

amount

Uint128

Amount to mint

burn_from_address

String

Address to burn tokens from

CreateOsmosisGauge

Create an incentive gauge for an Osmosis pool

Key
Type
Description

gauge_msg

MsgCreateGauge

CreateGauge message from osmosis-std

EditTokenMaxSupply

Edit contract enforced token max supply

Key
Type
Description

denom

String

Denom's max to edit

max_supply

Uint128

New max supply

UpdateConfig

Update the contract configuration

Key
Type
Descripiton

*owner

Owner

New contract owner

add_owner

bool

Add or remove new owner

*liquidity_multiplier

Decimal

Debt Token liquidity multiplier to create mint limits

*debt_auction

String

Debt Auction address

*positions_contract

String

Positions Contract address

*liquidity_contract

String

Liquidity Contract address

*oracle_contract

String

Oracle contract address

* = optional

EditOwner

Edit restrictions for a contract owner

Key
Type
Description

owner

String

Owner in to edit

*stability_pool_ratio

Decimal

Allocate SP cap space to an Owner's debt cap

*non_token_contract_auth

bool

Toggle authority for non-token executables

* = optional

QueryMsg

Config

Returns the contract configuration

GetOwner

Return Owner parameters

Key
Type
Description

owner

String

Owner to query

GetDenom

Returns full denom of the tokenfactory token representing the subdenom

Key
Type
Description

creator_address

String

Admin address of token denom

subdenom

String

Token subdenom

GetContractDenoms

Returns list of denoms saved in state

Key
Type
Description

*limit

u32

Object limit

* = optional

PoolState

Returns a list all tokens traded on it with current liquidity (spot) for a given pool ID. As well as the total number of LP shares and their denom.

Key
Type
Description

id

u64

Pool identifier

GetTokenInfo

Returns current supply and max supply for token denoms created with the contract

Key
Type
Description

denom

String

Token denom

Last updated