@picon-finance/dlmm-sdk 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/instructions/acceptAdminAuthority.d.ts +12 -11
- package/dist/generated/instructions/acceptAdminAuthority.d.ts.map +1 -1
- package/dist/generated/instructions/acceptAdminAuthority.js +16 -4
- package/dist/generated/instructions/claimFee.d.ts +19 -18
- package/dist/generated/instructions/claimFee.d.ts.map +1 -1
- package/dist/generated/instructions/claimFee.js +52 -12
- package/dist/generated/instructions/claimProtocolFee.d.ts +30 -29
- package/dist/generated/instructions/claimProtocolFee.d.ts.map +1 -1
- package/dist/generated/instructions/claimProtocolFee.js +90 -20
- package/dist/generated/instructions/closePosition.d.ts +18 -17
- package/dist/generated/instructions/closePosition.d.ts.map +1 -1
- package/dist/generated/instructions/closePosition.js +38 -10
- package/dist/generated/instructions/createAdminConfig.d.ts +18 -17
- package/dist/generated/instructions/createAdminConfig.d.ts.map +1 -1
- package/dist/generated/instructions/createAdminConfig.js +54 -12
- package/dist/generated/instructions/createBinArray.d.ts +16 -15
- package/dist/generated/instructions/createBinArray.d.ts.map +1 -1
- package/dist/generated/instructions/createBinArray.js +28 -10
- package/dist/generated/instructions/createPool.d.ts +30 -29
- package/dist/generated/instructions/createPool.d.ts.map +1 -1
- package/dist/generated/instructions/createPool.js +98 -22
- package/dist/generated/instructions/deleteBinArray.d.ts +18 -17
- package/dist/generated/instructions/deleteBinArray.d.ts.map +1 -1
- package/dist/generated/instructions/deleteBinArray.js +54 -12
- package/dist/generated/instructions/depositByWeight.d.ts +19 -18
- package/dist/generated/instructions/depositByWeight.d.ts.map +1 -1
- package/dist/generated/instructions/depositByWeight.js +52 -12
- package/dist/generated/instructions/openPosition.d.ts +28 -27
- package/dist/generated/instructions/openPosition.d.ts.map +1 -1
- package/dist/generated/instructions/openPosition.js +64 -16
- package/dist/generated/instructions/resetAdminAuthority.d.ts +16 -15
- package/dist/generated/instructions/resetAdminAuthority.d.ts.map +1 -1
- package/dist/generated/instructions/resetAdminAuthority.js +44 -10
- package/dist/generated/instructions/setMetadataUpdateAuthority.d.ts +12 -11
- package/dist/generated/instructions/setMetadataUpdateAuthority.d.ts.map +1 -1
- package/dist/generated/instructions/setMetadataUpdateAuthority.js +24 -6
- package/dist/generated/instructions/setPoolDynamicFeeConfig.d.ts +14 -13
- package/dist/generated/instructions/setPoolDynamicFeeConfig.d.ts.map +1 -1
- package/dist/generated/instructions/setPoolDynamicFeeConfig.js +26 -8
- package/dist/generated/instructions/setPoolProtocolShare.d.ts +14 -13
- package/dist/generated/instructions/setPoolProtocolShare.d.ts.map +1 -1
- package/dist/generated/instructions/setPoolProtocolShare.js +26 -8
- package/dist/generated/instructions/swapExactIn.d.ts +15 -14
- package/dist/generated/instructions/swapExactIn.d.ts.map +1 -1
- package/dist/generated/instructions/swapExactIn.js +36 -9
- package/dist/generated/instructions/swapExactOut.d.ts +15 -14
- package/dist/generated/instructions/swapExactOut.d.ts.map +1 -1
- package/dist/generated/instructions/swapExactOut.js +36 -9
- package/dist/generated/instructions/syncPool.d.ts +7 -6
- package/dist/generated/instructions/syncPool.d.ts.map +1 -1
- package/dist/generated/instructions/syncPool.js +4 -3
- package/dist/generated/instructions/transferAdminAuthority.d.ts +12 -11
- package/dist/generated/instructions/transferAdminAuthority.d.ts.map +1 -1
- package/dist/generated/instructions/transferAdminAuthority.js +24 -6
- package/dist/generated/instructions/withdraw.d.ts +19 -18
- package/dist/generated/instructions/withdraw.d.ts.map +1 -1
- package/dist/generated/instructions/withdraw.js +52 -12
- package/package.json +5 -5
- package/src/generated/instructions/acceptAdminAuthority.ts +68 -25
- package/src/generated/instructions/claimFee.ts +218 -83
- package/src/generated/instructions/claimProtocolFee.ts +346 -131
- package/src/generated/instructions/closePosition.ts +160 -61
- package/src/generated/instructions/createAdminConfig.ts +172 -63
- package/src/generated/instructions/createBinArray.ts +124 -51
- package/src/generated/instructions/createPool.ts +354 -133
- package/src/generated/instructions/deleteBinArray.ts +172 -63
- package/src/generated/instructions/depositByWeight.ts +218 -83
- package/src/generated/instructions/openPosition.ts +300 -117
- package/src/generated/instructions/resetAdminAuthority.ts +138 -51
- package/src/generated/instructions/setMetadataUpdateAuthority.ts +74 -27
- package/src/generated/instructions/setPoolDynamicFeeConfig.ts +98 -39
- package/src/generated/instructions/setPoolProtocolShare.ts +98 -39
- package/src/generated/instructions/swapExactIn.ts +155 -60
- package/src/generated/instructions/swapExactOut.ts +155 -60
- package/src/generated/instructions/syncPool.ts +37 -12
- package/src/generated/instructions/transferAdminAuthority.ts +74 -27
- package/src/generated/instructions/withdraw.ts +218 -83
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from "@solana/program-client-core";
|
|
9
10
|
import { PICON_DLMM_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
10
11
|
export declare const CLOSE_POSITION_DISCRIMINATOR: ReadonlyUint8Array;
|
|
11
12
|
export declare function getClosePositionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -24,26 +25,26 @@ export type ClosePositionInstructionDataArgs = {};
|
|
|
24
25
|
export declare function getClosePositionInstructionDataEncoder(): FixedSizeEncoder<ClosePositionInstructionDataArgs>;
|
|
25
26
|
export declare function getClosePositionInstructionDataDecoder(): FixedSizeDecoder<ClosePositionInstructionData>;
|
|
26
27
|
export declare function getClosePositionInstructionDataCodec(): FixedSizeCodec<ClosePositionInstructionDataArgs, ClosePositionInstructionData>;
|
|
27
|
-
export type ClosePositionAsyncInput<TAccountOwner extends
|
|
28
|
-
owner:
|
|
29
|
-
position?:
|
|
30
|
-
positionMint:
|
|
31
|
-
positionTokenAccount:
|
|
32
|
-
tokenProgram?:
|
|
28
|
+
export type ClosePositionAsyncInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountPosition extends InstructionAccountInput = InstructionAccountInput, TAccountPositionMint extends InstructionAccountInput = InstructionAccountInput, TAccountPositionTokenAccount extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
29
|
+
owner: TAccountOwner;
|
|
30
|
+
position?: TAccountPosition;
|
|
31
|
+
positionMint: TAccountPositionMint;
|
|
32
|
+
positionTokenAccount: TAccountPositionTokenAccount;
|
|
33
|
+
tokenProgram?: TAccountTokenProgram;
|
|
33
34
|
};
|
|
34
|
-
export declare function getClosePositionInstructionAsync<TAccountOwner extends
|
|
35
|
+
export declare function getClosePositionInstructionAsync<TAccountOwner extends InstructionSignerInput, TAccountPosition extends InstructionAccountInput, TAccountPositionMint extends InstructionAccountInput, TAccountPositionTokenAccount extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: ClosePositionAsyncInput<TAccountOwner, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountTokenProgram>, config?: {
|
|
35
36
|
programAddress?: TProgramAddress;
|
|
36
|
-
}): Promise<ClosePositionInstruction<TProgramAddress, TAccountOwner, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountTokenProgram
|
|
37
|
-
export type ClosePositionInput<TAccountOwner extends
|
|
38
|
-
owner:
|
|
39
|
-
position:
|
|
40
|
-
positionMint:
|
|
41
|
-
positionTokenAccount:
|
|
42
|
-
tokenProgram?:
|
|
37
|
+
}): Promise<ClosePositionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountPosition, InstructionAccountInputAddress<TAccountPosition>>, ResolvedInstructionAccountMeta<TAccountPositionMint, InstructionAccountInputAddress<TAccountPositionMint>>, ResolvedInstructionAccountMeta<TAccountPositionTokenAccount, InstructionAccountInputAddress<TAccountPositionTokenAccount>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>>>;
|
|
38
|
+
export type ClosePositionInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountPosition extends InstructionAccountInput = InstructionAccountInput, TAccountPositionMint extends InstructionAccountInput = InstructionAccountInput, TAccountPositionTokenAccount extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
39
|
+
owner: TAccountOwner;
|
|
40
|
+
position: TAccountPosition;
|
|
41
|
+
positionMint: TAccountPositionMint;
|
|
42
|
+
positionTokenAccount: TAccountPositionTokenAccount;
|
|
43
|
+
tokenProgram?: TAccountTokenProgram;
|
|
43
44
|
};
|
|
44
|
-
export declare function getClosePositionInstruction<TAccountOwner extends
|
|
45
|
+
export declare function getClosePositionInstruction<TAccountOwner extends InstructionSignerInput, TAccountPosition extends InstructionAccountInput, TAccountPositionMint extends InstructionAccountInput, TAccountPositionTokenAccount extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: ClosePositionInput<TAccountOwner, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountTokenProgram>, config?: {
|
|
45
46
|
programAddress?: TProgramAddress;
|
|
46
|
-
}): ClosePositionInstruction<TProgramAddress, TAccountOwner, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountTokenProgram
|
|
47
|
+
}): ClosePositionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountPosition, InstructionAccountInputAddress<TAccountPosition>>, ResolvedInstructionAccountMeta<TAccountPositionMint, InstructionAccountInputAddress<TAccountPositionMint>>, ResolvedInstructionAccountMeta<TAccountPositionTokenAccount, InstructionAccountInputAddress<TAccountPositionTokenAccount>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>>;
|
|
47
48
|
export type ParsedClosePositionInstruction<TProgram extends string = typeof PICON_DLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
48
49
|
programAddress: Address<TProgram>;
|
|
49
50
|
accounts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"closePosition.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/closePosition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"closePosition.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/closePosition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KA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ePositionInstructionAsync(input, config) {
|
|
30
30
|
// Program address.
|
|
31
31
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
32
|
+
// Account meta helper.
|
|
33
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
32
34
|
// Original accounts.
|
|
33
35
|
const originalAccounts = {
|
|
34
|
-
owner: { value: input.owner ?? null, isWritable: true },
|
|
35
|
-
position: {
|
|
36
|
-
|
|
36
|
+
owner: { value: input.owner ?? null, isSigner: true, isWritable: true },
|
|
37
|
+
position: {
|
|
38
|
+
value: input.position ?? null,
|
|
39
|
+
isSigner: false,
|
|
40
|
+
isWritable: true,
|
|
41
|
+
},
|
|
42
|
+
positionMint: {
|
|
43
|
+
value: input.positionMint ?? null,
|
|
44
|
+
isSigner: false,
|
|
45
|
+
isWritable: true,
|
|
46
|
+
},
|
|
37
47
|
positionTokenAccount: {
|
|
38
48
|
value: input.positionTokenAccount ?? null,
|
|
49
|
+
isSigner: false,
|
|
39
50
|
isWritable: true,
|
|
40
51
|
},
|
|
41
|
-
tokenProgram: {
|
|
52
|
+
tokenProgram: {
|
|
53
|
+
value: input.tokenProgram ?? null,
|
|
54
|
+
isSigner: false,
|
|
55
|
+
isWritable: false,
|
|
56
|
+
},
|
|
42
57
|
};
|
|
43
58
|
const accounts = originalAccounts;
|
|
44
59
|
// Resolve default values.
|
|
@@ -51,7 +66,6 @@ export async function getClosePositionInstructionAsync(input, config) {
|
|
|
51
66
|
accounts.tokenProgram.value =
|
|
52
67
|
"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
|
|
53
68
|
}
|
|
54
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
55
69
|
return Object.freeze({
|
|
56
70
|
accounts: [
|
|
57
71
|
getAccountMeta("owner", accounts.owner),
|
|
@@ -67,16 +81,31 @@ export async function getClosePositionInstructionAsync(input, config) {
|
|
|
67
81
|
export function getClosePositionInstruction(input, config) {
|
|
68
82
|
// Program address.
|
|
69
83
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
84
|
+
// Account meta helper.
|
|
85
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
70
86
|
// Original accounts.
|
|
71
87
|
const originalAccounts = {
|
|
72
|
-
owner: { value: input.owner ?? null, isWritable: true },
|
|
73
|
-
position: {
|
|
74
|
-
|
|
88
|
+
owner: { value: input.owner ?? null, isSigner: true, isWritable: true },
|
|
89
|
+
position: {
|
|
90
|
+
value: input.position ?? null,
|
|
91
|
+
isSigner: false,
|
|
92
|
+
isWritable: true,
|
|
93
|
+
},
|
|
94
|
+
positionMint: {
|
|
95
|
+
value: input.positionMint ?? null,
|
|
96
|
+
isSigner: false,
|
|
97
|
+
isWritable: true,
|
|
98
|
+
},
|
|
75
99
|
positionTokenAccount: {
|
|
76
100
|
value: input.positionTokenAccount ?? null,
|
|
101
|
+
isSigner: false,
|
|
77
102
|
isWritable: true,
|
|
78
103
|
},
|
|
79
|
-
tokenProgram: {
|
|
104
|
+
tokenProgram: {
|
|
105
|
+
value: input.tokenProgram ?? null,
|
|
106
|
+
isSigner: false,
|
|
107
|
+
isWritable: false,
|
|
108
|
+
},
|
|
80
109
|
};
|
|
81
110
|
const accounts = originalAccounts;
|
|
82
111
|
// Resolve default values.
|
|
@@ -84,7 +113,6 @@ export function getClosePositionInstruction(input, config) {
|
|
|
84
113
|
accounts.tokenProgram.value =
|
|
85
114
|
"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
|
|
86
115
|
}
|
|
87
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
88
116
|
return Object.freeze({
|
|
89
117
|
accounts: [
|
|
90
118
|
getAccountMeta("owner", accounts.owner),
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from "@solana/program-client-core";
|
|
9
10
|
import { PICON_DLMM_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
10
11
|
export declare const CREATE_ADMIN_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
|
|
11
12
|
export declare function getCreateAdminConfigDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -24,26 +25,26 @@ export type CreateAdminConfigInstructionDataArgs = {};
|
|
|
24
25
|
export declare function getCreateAdminConfigInstructionDataEncoder(): FixedSizeEncoder<CreateAdminConfigInstructionDataArgs>;
|
|
25
26
|
export declare function getCreateAdminConfigInstructionDataDecoder(): FixedSizeDecoder<CreateAdminConfigInstructionData>;
|
|
26
27
|
export declare function getCreateAdminConfigInstructionDataCodec(): FixedSizeCodec<CreateAdminConfigInstructionDataArgs, CreateAdminConfigInstructionData>;
|
|
27
|
-
export type CreateAdminConfigAsyncInput<TAccountDeployer extends
|
|
28
|
-
deployer:
|
|
29
|
-
adminConfig?:
|
|
30
|
-
program?:
|
|
31
|
-
programData:
|
|
32
|
-
systemProgram?:
|
|
28
|
+
export type CreateAdminConfigAsyncInput<TAccountDeployer extends InstructionSignerInput = InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput, TAccountProgramData extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
29
|
+
deployer: TAccountDeployer;
|
|
30
|
+
adminConfig?: TAccountAdminConfig;
|
|
31
|
+
program?: TAccountProgram;
|
|
32
|
+
programData: TAccountProgramData;
|
|
33
|
+
systemProgram?: TAccountSystemProgram;
|
|
33
34
|
};
|
|
34
|
-
export declare function getCreateAdminConfigInstructionAsync<TAccountDeployer extends
|
|
35
|
+
export declare function getCreateAdminConfigInstructionAsync<TAccountDeployer extends InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TAccountProgramData extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: CreateAdminConfigAsyncInput<TAccountDeployer, TAccountAdminConfig, TAccountProgram, TAccountProgramData, TAccountSystemProgram>, config?: {
|
|
35
36
|
programAddress?: TProgramAddress;
|
|
36
|
-
}): Promise<CreateAdminConfigInstruction<TProgramAddress, TAccountDeployer, TAccountAdminConfig, TAccountProgram, TAccountProgramData, TAccountSystemProgram
|
|
37
|
-
export type CreateAdminConfigInput<TAccountDeployer extends
|
|
38
|
-
deployer:
|
|
39
|
-
adminConfig:
|
|
40
|
-
program?:
|
|
41
|
-
programData:
|
|
42
|
-
systemProgram?:
|
|
37
|
+
}): Promise<CreateAdminConfigInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountDeployer, InstructionAccountInputAddress<TAccountDeployer>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>, ResolvedInstructionAccountMeta<TAccountProgramData, InstructionAccountInputAddress<TAccountProgramData>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>>>;
|
|
38
|
+
export type CreateAdminConfigInput<TAccountDeployer extends InstructionSignerInput = InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput, TAccountProgramData extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
39
|
+
deployer: TAccountDeployer;
|
|
40
|
+
adminConfig: TAccountAdminConfig;
|
|
41
|
+
program?: TAccountProgram;
|
|
42
|
+
programData: TAccountProgramData;
|
|
43
|
+
systemProgram?: TAccountSystemProgram;
|
|
43
44
|
};
|
|
44
|
-
export declare function getCreateAdminConfigInstruction<TAccountDeployer extends
|
|
45
|
+
export declare function getCreateAdminConfigInstruction<TAccountDeployer extends InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TAccountProgramData extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: CreateAdminConfigInput<TAccountDeployer, TAccountAdminConfig, TAccountProgram, TAccountProgramData, TAccountSystemProgram>, config?: {
|
|
45
46
|
programAddress?: TProgramAddress;
|
|
46
|
-
}): CreateAdminConfigInstruction<TProgramAddress, TAccountDeployer, TAccountAdminConfig, TAccountProgram, TAccountProgramData, TAccountSystemProgram
|
|
47
|
+
}): CreateAdminConfigInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountDeployer, InstructionAccountInputAddress<TAccountDeployer>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>, ResolvedInstructionAccountMeta<TAccountProgramData, InstructionAccountInputAddress<TAccountProgramData>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>>;
|
|
47
48
|
export type ParsedCreateAdminConfigInstruction<TProgram extends string = typeof PICON_DLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
48
49
|
programAddress: Address<TProgram>;
|
|
49
50
|
accounts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAdminConfig.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/createAdminConfig.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"createAdminConfig.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/createAdminConfig.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAWL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAE3B,KAAK,8BAA8B,EACpC,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE,eAAO,MAAM,iCAAiC,EAAE,kBACK,CAAC;AAEtD,wBAAgB,sCAAsC,IAAI,kBAAkB,CAI3E;AAED,MAAM,MAAM,4BAA4B,CACtC,QAAQ,SAAS,MAAM,GAAG,OAAO,0BAA0B,EAC3D,gBAAgB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAA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O,0BAA0B,EAC3D,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE,IACnE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC3B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACjC,CAAC;IACF,IAAI,EAAE,gCAAgC,CAAC;CACxC,CAAC;AAEF,wBAAgB,iCAAiC,CAC/C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,kCAAkC,CAAC,QAAQ,EAAE,aAAa,CAAC,CA2B7D"}
|
|
@@ -27,13 +27,35 @@ export function getCreateAdminConfigInstructionDataCodec() {
|
|
|
27
27
|
export async function getCreateAdminConfigInstructionAsync(input, config) {
|
|
28
28
|
// Program address.
|
|
29
29
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
30
|
+
// Account meta helper.
|
|
31
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
30
32
|
// Original accounts.
|
|
31
33
|
const originalAccounts = {
|
|
32
|
-
deployer: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
deployer: {
|
|
35
|
+
value: input.deployer ?? null,
|
|
36
|
+
isSigner: true,
|
|
37
|
+
isWritable: true,
|
|
38
|
+
},
|
|
39
|
+
adminConfig: {
|
|
40
|
+
value: input.adminConfig ?? null,
|
|
41
|
+
isSigner: false,
|
|
42
|
+
isWritable: true,
|
|
43
|
+
},
|
|
44
|
+
program: {
|
|
45
|
+
value: input.program ?? null,
|
|
46
|
+
isSigner: false,
|
|
47
|
+
isWritable: false,
|
|
48
|
+
},
|
|
49
|
+
programData: {
|
|
50
|
+
value: input.programData ?? null,
|
|
51
|
+
isSigner: false,
|
|
52
|
+
isWritable: false,
|
|
53
|
+
},
|
|
54
|
+
systemProgram: {
|
|
55
|
+
value: input.systemProgram ?? null,
|
|
56
|
+
isSigner: false,
|
|
57
|
+
isWritable: false,
|
|
58
|
+
},
|
|
37
59
|
};
|
|
38
60
|
const accounts = originalAccounts;
|
|
39
61
|
// Resolve default values.
|
|
@@ -48,7 +70,6 @@ export async function getCreateAdminConfigInstructionAsync(input, config) {
|
|
|
48
70
|
accounts.systemProgram.value =
|
|
49
71
|
"11111111111111111111111111111111";
|
|
50
72
|
}
|
|
51
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
52
73
|
return Object.freeze({
|
|
53
74
|
accounts: [
|
|
54
75
|
getAccountMeta("deployer", accounts.deployer),
|
|
@@ -64,13 +85,35 @@ export async function getCreateAdminConfigInstructionAsync(input, config) {
|
|
|
64
85
|
export function getCreateAdminConfigInstruction(input, config) {
|
|
65
86
|
// Program address.
|
|
66
87
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
88
|
+
// Account meta helper.
|
|
89
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
67
90
|
// Original accounts.
|
|
68
91
|
const originalAccounts = {
|
|
69
|
-
deployer: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
92
|
+
deployer: {
|
|
93
|
+
value: input.deployer ?? null,
|
|
94
|
+
isSigner: true,
|
|
95
|
+
isWritable: true,
|
|
96
|
+
},
|
|
97
|
+
adminConfig: {
|
|
98
|
+
value: input.adminConfig ?? null,
|
|
99
|
+
isSigner: false,
|
|
100
|
+
isWritable: true,
|
|
101
|
+
},
|
|
102
|
+
program: {
|
|
103
|
+
value: input.program ?? null,
|
|
104
|
+
isSigner: false,
|
|
105
|
+
isWritable: false,
|
|
106
|
+
},
|
|
107
|
+
programData: {
|
|
108
|
+
value: input.programData ?? null,
|
|
109
|
+
isSigner: false,
|
|
110
|
+
isWritable: false,
|
|
111
|
+
},
|
|
112
|
+
systemProgram: {
|
|
113
|
+
value: input.systemProgram ?? null,
|
|
114
|
+
isSigner: false,
|
|
115
|
+
isWritable: false,
|
|
116
|
+
},
|
|
74
117
|
};
|
|
75
118
|
const accounts = originalAccounts;
|
|
76
119
|
// Resolve default values.
|
|
@@ -82,7 +125,6 @@ export function getCreateAdminConfigInstruction(input, config) {
|
|
|
82
125
|
accounts.systemProgram.value =
|
|
83
126
|
"11111111111111111111111111111111";
|
|
84
127
|
}
|
|
85
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
86
128
|
return Object.freeze({
|
|
87
129
|
accounts: [
|
|
88
130
|
getAccountMeta("deployer", accounts.deployer),
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from "@solana/program-client-core";
|
|
9
10
|
import { PICON_DLMM_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
10
11
|
export declare const CREATE_BIN_ARRAY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
11
12
|
export declare function getCreateBinArrayDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -28,28 +29,28 @@ export type CreateBinArrayInstructionDataArgs = {
|
|
|
28
29
|
export declare function getCreateBinArrayInstructionDataEncoder(): FixedSizeEncoder<CreateBinArrayInstructionDataArgs>;
|
|
29
30
|
export declare function getCreateBinArrayInstructionDataDecoder(): FixedSizeDecoder<CreateBinArrayInstructionData>;
|
|
30
31
|
export declare function getCreateBinArrayInstructionDataCodec(): FixedSizeCodec<CreateBinArrayInstructionDataArgs, CreateBinArrayInstructionData>;
|
|
31
|
-
export type CreateBinArrayAsyncInput<TAccountPayer extends
|
|
32
|
-
payer:
|
|
33
|
-
pool:
|
|
34
|
-
binArray?:
|
|
35
|
-
systemProgram?:
|
|
32
|
+
export type CreateBinArrayAsyncInput<TAccountPayer extends InstructionSignerInput = InstructionSignerInput, TAccountPool extends InstructionAccountInput = InstructionAccountInput, TAccountBinArray extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
33
|
+
payer: TAccountPayer;
|
|
34
|
+
pool: TAccountPool;
|
|
35
|
+
binArray?: TAccountBinArray;
|
|
36
|
+
systemProgram?: TAccountSystemProgram;
|
|
36
37
|
index: CreateBinArrayInstructionDataArgs["index"];
|
|
37
38
|
idempotent: CreateBinArrayInstructionDataArgs["idempotent"];
|
|
38
39
|
};
|
|
39
|
-
export declare function getCreateBinArrayInstructionAsync<TAccountPayer extends
|
|
40
|
+
export declare function getCreateBinArrayInstructionAsync<TAccountPayer extends InstructionSignerInput, TAccountPool extends InstructionAccountInput, TAccountBinArray extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: CreateBinArrayAsyncInput<TAccountPayer, TAccountPool, TAccountBinArray, TAccountSystemProgram>, config?: {
|
|
40
41
|
programAddress?: TProgramAddress;
|
|
41
|
-
}): Promise<CreateBinArrayInstruction<TProgramAddress, TAccountPayer, TAccountPool, TAccountBinArray, TAccountSystemProgram
|
|
42
|
-
export type CreateBinArrayInput<TAccountPayer extends
|
|
43
|
-
payer:
|
|
44
|
-
pool:
|
|
45
|
-
binArray:
|
|
46
|
-
systemProgram?:
|
|
42
|
+
}): Promise<CreateBinArrayInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>, ResolvedInstructionAccountMeta<TAccountPool, InstructionAccountInputAddress<TAccountPool>>, ResolvedInstructionAccountMeta<TAccountBinArray, InstructionAccountInputAddress<TAccountBinArray>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>>>;
|
|
43
|
+
export type CreateBinArrayInput<TAccountPayer extends InstructionSignerInput = InstructionSignerInput, TAccountPool extends InstructionAccountInput = InstructionAccountInput, TAccountBinArray extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
44
|
+
payer: TAccountPayer;
|
|
45
|
+
pool: TAccountPool;
|
|
46
|
+
binArray: TAccountBinArray;
|
|
47
|
+
systemProgram?: TAccountSystemProgram;
|
|
47
48
|
index: CreateBinArrayInstructionDataArgs["index"];
|
|
48
49
|
idempotent: CreateBinArrayInstructionDataArgs["idempotent"];
|
|
49
50
|
};
|
|
50
|
-
export declare function getCreateBinArrayInstruction<TAccountPayer extends
|
|
51
|
+
export declare function getCreateBinArrayInstruction<TAccountPayer extends InstructionSignerInput, TAccountPool extends InstructionAccountInput, TAccountBinArray extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: CreateBinArrayInput<TAccountPayer, TAccountPool, TAccountBinArray, TAccountSystemProgram>, config?: {
|
|
51
52
|
programAddress?: TProgramAddress;
|
|
52
|
-
}): CreateBinArrayInstruction<TProgramAddress, TAccountPayer, TAccountPool, TAccountBinArray, TAccountSystemProgram
|
|
53
|
+
}): CreateBinArrayInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountPayer, InstructionAccountInputAddress<TAccountPayer>>, ResolvedInstructionAccountMeta<TAccountPool, InstructionAccountInputAddress<TAccountPool>>, ResolvedInstructionAccountMeta<TAccountBinArray, InstructionAccountInputAddress<TAccountBinArray>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>>;
|
|
53
54
|
export type ParsedCreateBinArrayInstruction<TProgram extends string = typeof PICON_DLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
54
55
|
programAddress: Address<TProgram>;
|
|
55
56
|
accounts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBinArray.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/createBinArray.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAeL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"createBinArray.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/createBinArray.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAeL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,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AAgB,EAChB,8BAA8B,CAAC,gBAAgB,CAAC,CACjD,EACD,8BAA8B,CAC5B,qBAAqB,EACrB,8BAA8B,CAAC,qBAAqB,CAAC,CACtD,CACF,CAkEA;AAED,MAAM,MAAM,+BAA+B,CACzC,QAAQ,SAAS,MAAM,GAAG,OAAO,0BAA0B,EAC3D,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE,IACnE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACvB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC3B,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACjC,CAAC;IACF,IAAI,EAAE,6BAA6B,CAAC;CACrC,CAAC;AAEF,wBAAgB,8BAA8B,CAC5C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,+BAA+B,CAAC,QAAQ,EAAE,aAAa,CAAC,CA0B1D"}
|
|
@@ -33,12 +33,22 @@ export function getCreateBinArrayInstructionDataCodec() {
|
|
|
33
33
|
export async function getCreateBinArrayInstructionAsync(input, config) {
|
|
34
34
|
// Program address.
|
|
35
35
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
36
|
+
// Account meta helper.
|
|
37
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
36
38
|
// Original accounts.
|
|
37
39
|
const originalAccounts = {
|
|
38
|
-
payer: { value: input.payer ?? null, isWritable: true },
|
|
39
|
-
pool: { value: input.pool ?? null, isWritable: false },
|
|
40
|
-
binArray: {
|
|
41
|
-
|
|
40
|
+
payer: { value: input.payer ?? null, isSigner: true, isWritable: true },
|
|
41
|
+
pool: { value: input.pool ?? null, isSigner: false, isWritable: false },
|
|
42
|
+
binArray: {
|
|
43
|
+
value: input.binArray ?? null,
|
|
44
|
+
isSigner: false,
|
|
45
|
+
isWritable: true,
|
|
46
|
+
},
|
|
47
|
+
systemProgram: {
|
|
48
|
+
value: input.systemProgram ?? null,
|
|
49
|
+
isSigner: false,
|
|
50
|
+
isWritable: false,
|
|
51
|
+
},
|
|
42
52
|
};
|
|
43
53
|
const accounts = originalAccounts;
|
|
44
54
|
// Original args.
|
|
@@ -54,7 +64,6 @@ export async function getCreateBinArrayInstructionAsync(input, config) {
|
|
|
54
64
|
accounts.systemProgram.value =
|
|
55
65
|
"11111111111111111111111111111111";
|
|
56
66
|
}
|
|
57
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
58
67
|
return Object.freeze({
|
|
59
68
|
accounts: [
|
|
60
69
|
getAccountMeta("payer", accounts.payer),
|
|
@@ -69,12 +78,22 @@ export async function getCreateBinArrayInstructionAsync(input, config) {
|
|
|
69
78
|
export function getCreateBinArrayInstruction(input, config) {
|
|
70
79
|
// Program address.
|
|
71
80
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
81
|
+
// Account meta helper.
|
|
82
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
72
83
|
// Original accounts.
|
|
73
84
|
const originalAccounts = {
|
|
74
|
-
payer: { value: input.payer ?? null, isWritable: true },
|
|
75
|
-
pool: { value: input.pool ?? null, isWritable: false },
|
|
76
|
-
binArray: {
|
|
77
|
-
|
|
85
|
+
payer: { value: input.payer ?? null, isSigner: true, isWritable: true },
|
|
86
|
+
pool: { value: input.pool ?? null, isSigner: false, isWritable: false },
|
|
87
|
+
binArray: {
|
|
88
|
+
value: input.binArray ?? null,
|
|
89
|
+
isSigner: false,
|
|
90
|
+
isWritable: true,
|
|
91
|
+
},
|
|
92
|
+
systemProgram: {
|
|
93
|
+
value: input.systemProgram ?? null,
|
|
94
|
+
isSigner: false,
|
|
95
|
+
isWritable: false,
|
|
96
|
+
},
|
|
78
97
|
};
|
|
79
98
|
const accounts = originalAccounts;
|
|
80
99
|
// Original args.
|
|
@@ -84,7 +103,6 @@ export function getCreateBinArrayInstruction(input, config) {
|
|
|
84
103
|
accounts.systemProgram.value =
|
|
85
104
|
"11111111111111111111111111111111";
|
|
86
105
|
}
|
|
87
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
88
106
|
return Object.freeze({
|
|
89
107
|
accounts: [
|
|
90
108
|
getAccountMeta("payer", accounts.payer),
|