Search
Preparing search index...
The search index is not available
Mirror.js
Options
All
Public
Public/Protected
All
Inherited
Menu
Mirror.js
contracts/TerraswapFactory
TerraswapFactory
Class TerraswapFactory
Hierarchy
ContractClient
TerraswapFactory
Index
Constructors
constructor
Properties
codeID
contract
Address
key
lcd
Accessors
wallet
Methods
create
Pair
get
Config
get
Pair
get
Pairs
init
update
Config
Constructors
constructor
new
Terraswap
Factory
(
options
:
Partial
<
{
codeID
:
number
;
contractAddress
:
string
;
key
:
Key
;
lcd
:
LCDClient
}
>
)
:
TerraswapFactory
Parameters
options:
Partial
<
{
codeID
:
number
;
contractAddress
:
string
;
key
:
Key
;
lcd
:
LCDClient
}
>
Returns
TerraswapFactory
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
create
Pair
create
Pair
(
asset_infos
:
[
AssetInfo
,
AssetInfo
]
, init_hook
?:
InitHook
)
:
MsgExecuteContract
Parameters
asset_infos:
[
AssetInfo
,
AssetInfo
]
Optional
init_hook:
InitHook
Returns
MsgExecuteContract
get
Config
get
Config
(
)
:
Promise
<
ConfigResponse
>
Returns
Promise
<
ConfigResponse
>
get
Pair
get
Pair
(
asset_infos
:
[
AssetInfo
,
AssetInfo
]
)
:
Promise
<
PairResponse
>
Parameters
asset_infos:
[
AssetInfo
,
AssetInfo
]
Returns
Promise
<
PairResponse
>
get
Pairs
get
Pairs
(
start_after
?:
[
AssetInfo
,
AssetInfo
]
, limit
?:
number
)
:
Promise
<
PairsResponse
>
Parameters
Optional
start_after:
[
AssetInfo
,
AssetInfo
]
Optional
limit:
number
Returns
Promise
<
PairsResponse
>
init
init
(
init_msg
:
InitMsg
, migratable
:
boolean
)
:
MsgInstantiateContract
Parameters
init_msg:
InitMsg
migratable:
boolean
Returns
MsgInstantiateContract
update
Config
update
Config
(
config
:
{
owner
?:
undefined
|
string
;
pair_code_id
?:
undefined
|
number
;
token_code_id
?:
undefined
|
number
}
)
:
MsgExecuteContract
Parameters
config:
{
owner
?:
undefined
|
string
;
pair_code_id
?:
undefined
|
number
;
token_code_id
?:
undefined
|
number
}
Optional
owner
?:
undefined
|
string
Optional
pair_
code_
id
?:
undefined
|
number
Optional
token_
code_
id
?:
undefined
|
number
Returns
MsgExecuteContract
Exports
client/
Mirror
contracts/
Contract
Client
contracts/
Mirror
Airdrop
contracts/
Mirror
Collector
contracts/
Mirror
Community
contracts/
Mirror
Factory
contracts/
Mirror
Gov
contracts/
Mirror
Mint
contracts/
Mirror
Oracle
contracts/
Mirror
Staking
contracts/
Terraswap
Factory
Terraswap
Factory
contracts/
Terraswap
Pair
contracts/
Terraswap
Token
utils/
Asset
utils/
Empty
Key
utils/
Empty
Object
Terraswap
Factory
constructor
codeID
contract
Address
key
lcd
wallet
create
Pair
get
Config
get
Pair
get
Pairs
init
update
Config