Search
Preparing search index...
The search index is not available
Mirror.js
Options
All
Public
Public/Protected
All
Inherited
Menu
Mirror.js
contracts/MirrorFactory
MirrorFactory
Class MirrorFactory
Hierarchy
ContractClient
MirrorFactory
Index
Constructors
constructor
Properties
codeID
contract
Address
key
lcd
Accessors
wallet
Methods
distribute
get
Config
get
Distribution
Info
init
migrate
Asset
pass
Command
post
Initialize
terraswap
Creation
Hook
update
Config
whitelist
Constructors
constructor
new
Mirror
Factory
(
options
:
Partial
<
{
codeID
:
number
;
contractAddress
:
string
;
key
:
Key
;
lcd
:
LCDClient
}
>
)
:
MirrorFactory
Parameters
options:
Partial
<
{
codeID
:
number
;
contractAddress
:
string
;
key
:
Key
;
lcd
:
LCDClient
}
>
Returns
MirrorFactory
Properties
Optional
codeID
codeID
:
undefined
|
number
Optional
contract
Address
contract
Address
:
undefined
|
string
key
key
:
Key
Optional
lcd
lcd
:
undefined
|
LCDClient
Accessors
wallet
get
wallet
(
)
:
Wallet
Returns
Wallet
Methods
distribute
distribute
(
)
:
MsgExecuteContract
Returns
MsgExecuteContract
get
Config
get
Config
(
)
:
Promise
<
ConfigResponse
>
Returns
Promise
<
ConfigResponse
>
get
Distribution
Info
get
Distribution
Info
(
)
:
Promise
<
DistributionInfoResponse
>
Returns
Promise
<
DistributionInfoResponse
>
init
init
(
init_msg
:
InitMsg
, migratable
:
boolean
)
:
MsgInstantiateContract
Parameters
init_msg:
InitMsg
migratable:
boolean
Returns
MsgInstantiateContract
migrate
Asset
migrate
Asset
(
name
:
string
, symbol
:
string
, from_token
:
string
, end_price
:
Value
)
:
MsgExecuteContract
Parameters
name:
string
symbol:
string
from_token:
string
end_price:
Value
Returns
MsgExecuteContract
pass
Command
pass
Command
(
contract_addr
:
string
, msg
:
any
)
:
MsgExecuteContract
Parameters
contract_addr:
string
msg:
any
Returns
MsgExecuteContract
post
Initialize
post
Initialize
(
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
terraswap
Creation
Hook
terraswap
Creation
Hook
(
asset_token
:
string
)
:
MsgExecuteContract
Parameters
asset_token:
string
Returns
MsgExecuteContract
update
Config
update
Config
(
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
Exports
client/
Mirror
contracts/
Contract
Client
contracts/
Mirror
Airdrop
contracts/
Mirror
Collector
contracts/
Mirror
Community
contracts/
Mirror
Factory
Mirror
Factory
contracts/
Mirror
Gov
contracts/
Mirror
Mint
contracts/
Mirror
Oracle
contracts/
Mirror
Staking
contracts/
Terraswap
Factory
contracts/
Terraswap
Pair
contracts/
Terraswap
Token
utils/
Asset
utils/
Empty
Key
utils/
Empty
Object
Mirror
Factory
constructor
codeID
contract
Address
key
lcd
wallet
distribute
get
Config
get
Distribution
Info
init
migrate
Asset
pass
Command
post
Initialize
terraswap
Creation
Hook
update
Config
whitelist