v39

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "clp"

Variables

This section is empty.

Functions

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

Types

type Asset

type Asset struct {
	Symbol string `json:"symbol"`
}

type GenesisState

type GenesisState struct {
	Params                Params             `json:"params" yaml:"params"`
	AddressWhitelist      []sdk.AccAddress   `json:"address_whitelist"`
	PoolList              Pools              `json:"pool_list"`
	LiquidityProviderList LiquidityProviders `json:"liquidity_provider_list"`
}

type LiquidityProvider

type LiquidityProvider struct {
	Asset                    Asset          `json:"asset"`
	LiquidityProviderUnits   sdk.Uint       `json:"liquidity_provider_units"`
	LiquidityProviderAddress sdk.AccAddress `json:"liquidity_provider_address"`
}

type LiquidityProviders

type LiquidityProviders []LiquidityProvider

type Params

type Params struct {
	MinCreatePoolThreshold uint `json:"min_create_pool_threshold"`
}

Params - used for initializing default parameter for clp at genesis

type Pool

type Pool struct {
	ExternalAsset        Asset    `json:"external_asset"`
	NativeAssetBalance   sdk.Uint `json:"native_asset_balance"`
	ExternalAssetBalance sdk.Uint `json:"external_asset_balance"`
	PoolUnits            sdk.Uint `json:"pool_units"`
}

type Pools

type Pools []Pool

Jump to

Keyboard shortcuts

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