Fix type definitions for TokenSwap class (#809)
This commit is contained in:
parent
fec7794c22
commit
9ddcd77f3e
|
@ -84,11 +84,12 @@ declare module '@solana/spl-token-swap' {
|
|||
authority: PublicKey,
|
||||
tokenAccountA: PublicKey,
|
||||
tokenAccountB: PublicKey,
|
||||
tokenPool: PublicKey,
|
||||
poolToken: PublicKey,
|
||||
mintA: PublicKey,
|
||||
mintB: PublicKey,
|
||||
feeAccount: PublicKey,
|
||||
tokenAccountPool: PublicKey,
|
||||
swapProgramId: PublicKey,
|
||||
tokenProgramId: PublicKey,
|
||||
nonce: number,
|
||||
curveType: number,
|
||||
|
@ -100,7 +101,6 @@ declare module '@solana/spl-token-swap' {
|
|||
ownerWithdrawFeeDenominator: number,
|
||||
hostFeeNumerator: number,
|
||||
hostFeeDenominator: number,
|
||||
swapProgramId: PublicKey,
|
||||
): Promise<TokenSwap>;
|
||||
|
||||
swap(
|
||||
|
@ -130,14 +130,9 @@ declare module '@solana/spl-token-swap' {
|
|||
): TransactionInstruction;
|
||||
|
||||
deposit(
|
||||
authority: PublicKey,
|
||||
sourceA: PublicKey,
|
||||
sourceB: PublicKey,
|
||||
intoA: PublicKey,
|
||||
intoB: PublicKey,
|
||||
poolToken: PublicKey,
|
||||
userAccountA: PublicKey,
|
||||
userAccountB: PublicKey,
|
||||
poolAccount: PublicKey,
|
||||
tokenProgramId: PublicKey,
|
||||
poolTokenAmount: number | Numberu64,
|
||||
maximumTokenA: number | Numberu64,
|
||||
maximumTokenB: number | Numberu64,
|
||||
|
|
|
@ -46,7 +46,6 @@ declare module '@solana/spl-token-swap' {
|
|||
): Promise<number>;
|
||||
|
||||
static createInitSwapInstruction(
|
||||
programId: PublicKey,
|
||||
tokenSwapAccount: Account,
|
||||
authority: PublicKey,
|
||||
tokenAccountA: PublicKey,
|
||||
|
@ -55,6 +54,7 @@ declare module '@solana/spl-token-swap' {
|
|||
feeAccount: PublicKey,
|
||||
tokenAccountPool: PublicKey,
|
||||
tokenProgramId: PublicKey,
|
||||
swapProgramId: PublicKey,
|
||||
nonce: number,
|
||||
curveType: number,
|
||||
tradeFeeNumerator: number,
|
||||
|
@ -81,11 +81,12 @@ declare module '@solana/spl-token-swap' {
|
|||
authority: PublicKey,
|
||||
tokenAccountA: PublicKey,
|
||||
tokenAccountB: PublicKey,
|
||||
tokenPool: PublicKey,
|
||||
poolToken: PublicKey,
|
||||
mintA: PublicKey,
|
||||
mintB: PublicKey,
|
||||
feeAccount: PublicKey,
|
||||
tokenAccountPool: PublicKey,
|
||||
swapProgramId: PublicKey,
|
||||
tokenProgramId: PublicKey,
|
||||
nonce: number,
|
||||
curveType: number,
|
||||
|
@ -97,7 +98,6 @@ declare module '@solana/spl-token-swap' {
|
|||
ownerWithdrawFeeDenominator: number,
|
||||
hostFeeNumerator: number,
|
||||
hostFeeDenominator: number,
|
||||
programId: PublicKey,
|
||||
): Promise<TokenSwap>;
|
||||
|
||||
swap(
|
||||
|
@ -127,14 +127,9 @@ declare module '@solana/spl-token-swap' {
|
|||
): TransactionInstruction;
|
||||
|
||||
deposit(
|
||||
authority: PublicKey,
|
||||
sourceA: PublicKey,
|
||||
sourceB: PublicKey,
|
||||
intoA: PublicKey,
|
||||
intoB: PublicKey,
|
||||
poolToken: PublicKey,
|
||||
userAccountA: PublicKey,
|
||||
userAccountB: PublicKey,
|
||||
poolAccount: PublicKey,
|
||||
tokenProgramId: PublicKey,
|
||||
poolTokenAmount: number | Numberu64,
|
||||
maximumTokenA: number | Numberu64,
|
||||
maximumTokenB: number | Numberu64,
|
||||
|
|
Loading…
Reference in New Issue