forked from mito-systems/sol-mem-gen
Update type for remainingAccountsInfo
This commit is contained in:
parent
bfda39830a
commit
e04c43baca
12
package-lock.json
generated
12
package-lock.json
generated
@ -27,6 +27,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/big.js": "^6.2.2",
|
"@types/big.js": "^6.2.2",
|
||||||
"@types/bn.js": "^5.1.6",
|
"@types/bn.js": "^5.1.6",
|
||||||
|
"@types/bs58": "^4.0.4",
|
||||||
"@types/node": "^20",
|
"@types/node": "^20",
|
||||||
"@types/react": "^18",
|
"@types/react": "^18",
|
||||||
"@types/react-dom": "^18",
|
"@types/react-dom": "^18",
|
||||||
@ -954,6 +955,17 @@
|
|||||||
"@types/node": "*"
|
"@types/node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@types/bs58": {
|
||||||
|
"version": "4.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/bs58/-/bs58-4.0.4.tgz",
|
||||||
|
"integrity": "sha512-0IEpMFXXQi2zXaXl9GJ3sRwQo0uEkD+yFOv+FnAU5lkPtcu6h61xb7jc2CFPEZ5BUOaiP13ThuGc9HD4R8lR5g==",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": "*",
|
||||||
|
"base-x": "^3.0.6"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@types/connect": {
|
"node_modules/@types/connect": {
|
||||||
"version": "3.4.38",
|
"version": "3.4.38",
|
||||||
"resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",
|
"resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/big.js": "^6.2.2",
|
"@types/big.js": "^6.2.2",
|
||||||
"@types/bn.js": "^5.1.6",
|
"@types/bn.js": "^5.1.6",
|
||||||
|
"@types/bs58": "^4.0.4",
|
||||||
"@types/node": "^20",
|
"@types/node": "^20",
|
||||||
"@types/react": "^18",
|
"@types/react": "^18",
|
||||||
"@types/react-dom": "^18",
|
"@types/react-dom": "^18",
|
||||||
|
@ -116,7 +116,7 @@ export async function createVestingPlanV2(params: CreateVestingPlanParams) {
|
|||||||
ASSOCIATED_TOKEN_PROGRAM_ID
|
ASSOCIATED_TOKEN_PROGRAM_ID
|
||||||
);
|
);
|
||||||
|
|
||||||
let remainingAccountsInfo;
|
let remainingAccountsInfo: OptionRemainingAccountsInfoData | null = null;
|
||||||
let remainingAccounts: AccountMeta[] = [];
|
let remainingAccounts: AccountMeta[] = [];
|
||||||
if (tokenProgram == TOKEN_2022_PROGRAM_ID) {
|
if (tokenProgram == TOKEN_2022_PROGRAM_ID) {
|
||||||
let inputTransferHookAccounts =
|
let inputTransferHookAccounts =
|
||||||
@ -196,8 +196,7 @@ export async function createVestingPlanV2(params: CreateVestingPlanParams) {
|
|||||||
|
|
||||||
return escrow;
|
return escrow;
|
||||||
}
|
}
|
||||||
|
throw error;
|
||||||
throw new Error;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -227,7 +226,7 @@ export async function claimTokenV2(params: ClaimTokenParamsV2) {
|
|||||||
ASSOCIATED_TOKEN_PROGRAM_ID
|
ASSOCIATED_TOKEN_PROGRAM_ID
|
||||||
);
|
);
|
||||||
|
|
||||||
let remainingAccountsInfo;
|
let remainingAccountsInfo: OptionRemainingAccountsInfoData | null = null;
|
||||||
let remainingAccounts: AccountMeta[] | undefined = [];
|
let remainingAccounts: AccountMeta[] | undefined = [];
|
||||||
if (tokenProgram == TOKEN_2022_PROGRAM_ID) {
|
if (tokenProgram == TOKEN_2022_PROGRAM_ID) {
|
||||||
let claimTransferHookAccounts =
|
let claimTransferHookAccounts =
|
||||||
|
Loading…
Reference in New Issue
Block a user