Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new MirrorFactory(options: Partial<{ codeID: number; contractAddress: string; key: Key; lcd: LCDClient }>): MirrorFactory

Properties

Optional codeID

codeID: undefined | number

Optional contractAddress

contractAddress: undefined | string

key

key: Key

Optional lcd

lcd: undefined | LCDClient

Accessors

wallet

  • get wallet(): Wallet

Methods

distribute

  • distribute(): MsgExecuteContract

getConfig

getDistributionInfo

init

  • init(init_msg: InitMsg, migratable: boolean): MsgInstantiateContract

migrateAsset

  • migrateAsset(name: string, symbol: string, from_token: string, end_price: Value): MsgExecuteContract

passCommand

  • passCommand(contract_addr: string, msg: any): MsgExecuteContract

postInitialize

  • postInitialize(owner: string, terraswap_factory: string, mirror_token: string, staking_contract: string, oracle_contract: string, mint_contract: string, commission_collector: string): MsgExecuteContract
  • Parameters

    • owner: string
    • terraswap_factory: string
    • mirror_token: string
    • staking_contract: string
    • oracle_contract: string
    • mint_contract: string
    • commission_collector: string

    Returns MsgExecuteContract

terraswapCreationHook

  • terraswapCreationHook(asset_token: string): MsgExecuteContract

updateConfig

  • updateConfig(config: { distribution_schedule?: undefined | [number, number, string][]; owner?: undefined | string; token_code_id?: undefined | number }): MsgExecuteContract
  • Parameters

    • config: { distribution_schedule?: undefined | [number, number, string][]; owner?: undefined | string; token_code_id?: undefined | number }
      • Optional distribution_schedule?: undefined | [number, number, string][]
      • Optional owner?: undefined | string
      • Optional token_code_id?: undefined | number

    Returns MsgExecuteContract

whitelist

  • whitelist(name: string, symbol: string, oracle_feeder: string, params: { auction_discount: Value; min_collateral_ratio: Value }): MsgExecuteContract
  • Parameters

    • name: string
    • symbol: string
    • oracle_feeder: string
    • params: { auction_discount: Value; min_collateral_ratio: Value }
      • auction_discount: Value
      • min_collateral_ratio: Value

    Returns MsgExecuteContract