Search
Preparing search index...
The search index is not available
Mirror.js
Options
All
Public
Public/Protected
All
Inherited
Menu
Mirror.js
contracts/TerraswapPair
TerraswapPair
Class TerraswapPair
Hierarchy
ContractClient
TerraswapPair
Index
Constructors
constructor
Properties
codeID
contract
Address
key
lcd
Accessors
wallet
Methods
get
Pair
get
Pool
get
Reverse
Simulation
get
Simulation
init
provide
Liquidity
swap
withdraw
Liquidity
Constructors
constructor
new
Terraswap
Pair
(
options
:
Partial
<
{
codeID
:
number
;
contractAddress
:
string
;
key
:
Key
;
lcd
:
LCDClient
}
>
)
:
TerraswapPair
Parameters
options:
Partial
<
{
codeID
:
number
;
contractAddress
:
string
;
key
:
Key
;
lcd
:
LCDClient
}
>
Returns
TerraswapPair
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
get
Pair
get
Pair
(
)
:
Promise
<
PairResponse
>
Returns
Promise
<
PairResponse
>
get
Pool
get
Pool
(
)
:
Promise
<
PoolResponse
>
Returns
Promise
<
PoolResponse
>
get
Reverse
Simulation
get
Reverse
Simulation
(
ask_asset
:
Asset
<
AssetInfo
>
)
:
Promise
<
ReverseSimulationResponse
>
Parameters
ask_asset:
Asset
<
AssetInfo
>
Returns
Promise
<
ReverseSimulationResponse
>
get
Simulation
get
Simulation
(
offer_asset
:
Asset
<
AssetInfo
>
)
:
Promise
<
SimulationResponse
>
Parameters
offer_asset:
Asset
<
AssetInfo
>
Returns
Promise
<
SimulationResponse
>
init
init
(
init_msg
:
InitMsg
, migratable
:
boolean
)
:
MsgInstantiateContract
Parameters
init_msg:
InitMsg
migratable:
boolean
Returns
MsgInstantiateContract
provide
Liquidity
provide
Liquidity
(
assets
:
[
Asset
<
AssetInfo
>
,
Asset
<
AssetInfo
>
]
)
:
MsgExecuteContract
Parameters
assets:
[
Asset
<
AssetInfo
>
,
Asset
<
AssetInfo
>
]
Returns
MsgExecuteContract
swap
swap
(
offer_asset
:
Asset
<
AssetInfo
>
, params
:
{
belief_price
?:
undefined
|
string
|
number
|
Decimal
;
max_spread
?:
undefined
|
string
|
number
|
Decimal
;
to
?:
undefined
|
string
}
)
:
MsgExecuteContract
Parameters
offer_asset:
Asset
<
AssetInfo
>
params:
{
belief_price
?:
undefined
|
string
|
number
|
Decimal
;
max_spread
?:
undefined
|
string
|
number
|
Decimal
;
to
?:
undefined
|
string
}
Optional
belief_
price
?:
undefined
|
string
|
number
|
Decimal
Optional
max_
spread
?:
undefined
|
string
|
number
|
Decimal
Optional
to
?:
undefined
|
string
Returns
MsgExecuteContract
withdraw
Liquidity
withdraw
Liquidity
(
amount
:
Value
, lp_token
:
TerraswapToken
)
:
MsgExecuteContract
Parameters
amount:
Value
lp_token:
TerraswapToken
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
contracts/
Terraswap
Pair
Terraswap
Pair
contracts/
Terraswap
Token
utils/
Asset
utils/
Empty
Key
utils/
Empty
Object
Terraswap
Pair
constructor
codeID
contract
Address
key
lcd
wallet
get
Pair
get
Pool
get
Reverse
Simulation
get
Simulation
init
provide
Liquidity
swap
withdraw
Liquidity