- addLiquidity
- approve
- deposit
- depositTokensNeededBalance
- getAgentPrincipal
- getLPBalances
- getPairList
- getTokenBalance
- getTokenBalances
- getTokenList
- removeLiquidity
- swap
- withdraw
▸ addLiquidity(params
): Promise
<void
>
Name | Type |
---|---|
params |
AddLiquidityParams |
Promise
<void
>
▸ approve(params
): Promise
<void
>
Name | Type |
---|---|
params |
ApproveParams |
Promise
<void
>
▸ deposit(params
): Promise
<void
>
Name | Type |
---|---|
params |
DepositParams |
Promise
<void
>
▸ depositTokensNeededBalance(params
): Promise
<void
>
Name | Type | Description |
---|---|---|
params |
DepositTokensNeededBalanceParams |
Promise
<void
>
▸ getAgentPrincipal(): Promise
<Principal
>
Promise
<Principal
>
▸ getLPBalances(principalId?
): Promise
<Balances
>
Name | Type | Description |
---|---|---|
principalId? |
string |
Promise
<Balances
>
▸ getPairList(): Promise
<List
>
Promise
<List
>
▸ getTokenBalance(params
): Promise
<Balance
>
Name | Type |
---|---|
params |
GetTokenBalanceParams |
Promise
<Balance
>
▸ getTokenBalances(principalId?
): Promise
<BalanceList
>
Name | Type | Description |
---|---|---|
principalId? |
string |
Promise
<BalanceList
>
▸ getTokenList(): Promise
<MetadataList
>
Promise
<MetadataList
>
▸ removeLiquidity(params
): Promise
<void
>
Name | Type |
---|---|
params |
RemoveLiquidityParams |
Promise
<void
>
▸ swap(params
): Promise
<void
>
Name | Type |
---|---|
params |
SwapParams |
Promise
<void
>
▸ withdraw(params
): Promise
<void
>
Name | Type |
---|---|
params |
WithdrawParams |
Promise
<void
>
• balanceList: null
| BalanceList
= null
• pairList: null
| List
= null
• tokenList: null
| MetadataList
= null
• new SwapCanisterController(swapActor
)
Name | Type | Description |
---|---|---|
swapActor |
SwapActor |