sdk/js: support surprise new wasm parameters
This commit is contained in:
parent
24c5b17267
commit
f5aad60600
|
@ -29,7 +29,7 @@ export default async function addLiquidity(
|
|||
to_mint,
|
||||
liquidity_token_account,
|
||||
lp_share_token_account,
|
||||
amount
|
||||
amount.valueOf()
|
||||
)
|
||||
);
|
||||
const transaction = new Transaction().add(approvalIx, ix);
|
||||
|
|
|
@ -29,7 +29,7 @@ export default async function claimShares(
|
|||
to_mint,
|
||||
output_token_account,
|
||||
lp_share_token_account,
|
||||
amount
|
||||
amount.valueOf()
|
||||
)
|
||||
);
|
||||
const transaction = new Transaction().add(approvalIx, ix);
|
||||
|
|
|
@ -29,7 +29,7 @@ export default async function migrateTokens(
|
|||
to_mint,
|
||||
input_token_account,
|
||||
output_token_account,
|
||||
amount
|
||||
amount.valueOf()
|
||||
)
|
||||
);
|
||||
const transaction = new Transaction().add(approvalIx, ix);
|
||||
|
|
|
@ -29,7 +29,7 @@ export default async function removeLiquidity(
|
|||
to_mint,
|
||||
liquidity_token_account,
|
||||
lp_share_token_account,
|
||||
amount
|
||||
amount.valueOf()
|
||||
)
|
||||
);
|
||||
const transaction = new Transaction().add(approvalIx, ix);
|
||||
|
|
|
@ -308,7 +308,7 @@ export async function transferNativeSol(
|
|||
ancillaryKeypair.publicKey.toString(),
|
||||
WSOL_ADDRESS,
|
||||
nonce,
|
||||
amount,
|
||||
amount.valueOf(),
|
||||
relayerFee,
|
||||
targetAddress,
|
||||
coalesceChainId(targetChain),
|
||||
|
@ -322,7 +322,7 @@ export async function transferNativeSol(
|
|||
ancillaryKeypair.publicKey.toString(),
|
||||
WSOL_ADDRESS,
|
||||
nonce,
|
||||
amount,
|
||||
amount.valueOf(),
|
||||
relayerFee,
|
||||
targetAddress,
|
||||
coalesceChainId(targetChain)
|
||||
|
@ -409,7 +409,7 @@ export async function transferFromSolana(
|
|||
fromAddress,
|
||||
mintAddress,
|
||||
nonce,
|
||||
amount,
|
||||
amount.valueOf(),
|
||||
relayerFee,
|
||||
targetAddress,
|
||||
coalesceChainId(targetChain),
|
||||
|
@ -423,7 +423,7 @@ export async function transferFromSolana(
|
|||
fromAddress,
|
||||
mintAddress,
|
||||
nonce,
|
||||
amount,
|
||||
amount.valueOf(),
|
||||
relayerFee,
|
||||
targetAddress,
|
||||
coalesceChainId(targetChain)
|
||||
|
@ -439,7 +439,7 @@ export async function transferFromSolana(
|
|||
originChainId as number, // checked by isSolanaNative
|
||||
originAddress as Uint8Array, // checked by throw
|
||||
nonce,
|
||||
amount,
|
||||
amount.valueOf(),
|
||||
relayerFee,
|
||||
targetAddress,
|
||||
coalesceChainId(targetChain),
|
||||
|
@ -455,7 +455,7 @@ export async function transferFromSolana(
|
|||
originChainId as number, // checked by isSolanaNative
|
||||
originAddress as Uint8Array, // checked by throw
|
||||
nonce,
|
||||
amount,
|
||||
amount.valueOf(),
|
||||
relayerFee,
|
||||
targetAddress,
|
||||
coalesceChainId(targetChain)
|
||||
|
|
Loading…
Reference in New Issue