@picon-finance/dlmm-sdk 2.0.2 → 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/entities/dlmm_program.d.ts +1 -1
- package/dist/entities/dlmm_program.d.ts.map +1 -1
- package/dist/entities/dlmm_program.js +2 -2
- package/dist/entities/pool.d.ts +1 -1
- package/dist/entities/pool.d.ts.map +1 -1
- 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 +8 -8
- package/src/entities/dlmm_program.ts +3 -3
- 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
|
@@ -35,27 +35,52 @@ export function getOpenPositionInstructionDataCodec() {
|
|
|
35
35
|
export async function getOpenPositionInstructionAsync(input, config) {
|
|
36
36
|
// Program address.
|
|
37
37
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
38
|
+
// Account meta helper.
|
|
39
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
38
40
|
// Original accounts.
|
|
39
41
|
const originalAccounts = {
|
|
40
|
-
owner: { value: input.owner ?? null, isWritable: true },
|
|
41
|
-
pool: { value: input.pool ?? null, isWritable: false },
|
|
42
|
-
position: {
|
|
43
|
-
|
|
42
|
+
owner: { value: input.owner ?? null, isSigner: true, isWritable: true },
|
|
43
|
+
pool: { value: input.pool ?? null, isSigner: false, isWritable: false },
|
|
44
|
+
position: {
|
|
45
|
+
value: input.position ?? null,
|
|
46
|
+
isSigner: false,
|
|
47
|
+
isWritable: true,
|
|
48
|
+
},
|
|
49
|
+
positionMint: {
|
|
50
|
+
value: input.positionMint ?? null,
|
|
51
|
+
isSigner: true,
|
|
52
|
+
isWritable: true,
|
|
53
|
+
},
|
|
44
54
|
positionTokenAccount: {
|
|
45
55
|
value: input.positionTokenAccount ?? null,
|
|
56
|
+
isSigner: false,
|
|
46
57
|
isWritable: true,
|
|
47
58
|
},
|
|
48
|
-
adminConfig: {
|
|
59
|
+
adminConfig: {
|
|
60
|
+
value: input.adminConfig ?? null,
|
|
61
|
+
isSigner: false,
|
|
62
|
+
isWritable: false,
|
|
63
|
+
},
|
|
49
64
|
metadataUpdateAuthority: {
|
|
50
65
|
value: input.metadataUpdateAuthority ?? null,
|
|
66
|
+
isSigner: false,
|
|
67
|
+
isWritable: false,
|
|
68
|
+
},
|
|
69
|
+
tokenProgram: {
|
|
70
|
+
value: input.tokenProgram ?? null,
|
|
71
|
+
isSigner: false,
|
|
51
72
|
isWritable: false,
|
|
52
73
|
},
|
|
53
|
-
tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
|
|
54
74
|
associatedTokenProgram: {
|
|
55
75
|
value: input.associatedTokenProgram ?? null,
|
|
76
|
+
isSigner: false,
|
|
77
|
+
isWritable: false,
|
|
78
|
+
},
|
|
79
|
+
systemProgram: {
|
|
80
|
+
value: input.systemProgram ?? null,
|
|
81
|
+
isSigner: false,
|
|
56
82
|
isWritable: false,
|
|
57
83
|
},
|
|
58
|
-
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
59
84
|
};
|
|
60
85
|
const accounts = originalAccounts;
|
|
61
86
|
// Original args.
|
|
@@ -91,7 +116,6 @@ export async function getOpenPositionInstructionAsync(input, config) {
|
|
|
91
116
|
accounts.systemProgram.value =
|
|
92
117
|
"11111111111111111111111111111111";
|
|
93
118
|
}
|
|
94
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
95
119
|
return Object.freeze({
|
|
96
120
|
accounts: [
|
|
97
121
|
getAccountMeta("owner", accounts.owner),
|
|
@@ -112,27 +136,52 @@ export async function getOpenPositionInstructionAsync(input, config) {
|
|
|
112
136
|
export function getOpenPositionInstruction(input, config) {
|
|
113
137
|
// Program address.
|
|
114
138
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
139
|
+
// Account meta helper.
|
|
140
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
115
141
|
// Original accounts.
|
|
116
142
|
const originalAccounts = {
|
|
117
|
-
owner: { value: input.owner ?? null, isWritable: true },
|
|
118
|
-
pool: { value: input.pool ?? null, isWritable: false },
|
|
119
|
-
position: {
|
|
120
|
-
|
|
143
|
+
owner: { value: input.owner ?? null, isSigner: true, isWritable: true },
|
|
144
|
+
pool: { value: input.pool ?? null, isSigner: false, isWritable: false },
|
|
145
|
+
position: {
|
|
146
|
+
value: input.position ?? null,
|
|
147
|
+
isSigner: false,
|
|
148
|
+
isWritable: true,
|
|
149
|
+
},
|
|
150
|
+
positionMint: {
|
|
151
|
+
value: input.positionMint ?? null,
|
|
152
|
+
isSigner: true,
|
|
153
|
+
isWritable: true,
|
|
154
|
+
},
|
|
121
155
|
positionTokenAccount: {
|
|
122
156
|
value: input.positionTokenAccount ?? null,
|
|
157
|
+
isSigner: false,
|
|
123
158
|
isWritable: true,
|
|
124
159
|
},
|
|
125
|
-
adminConfig: {
|
|
160
|
+
adminConfig: {
|
|
161
|
+
value: input.adminConfig ?? null,
|
|
162
|
+
isSigner: false,
|
|
163
|
+
isWritable: false,
|
|
164
|
+
},
|
|
126
165
|
metadataUpdateAuthority: {
|
|
127
166
|
value: input.metadataUpdateAuthority ?? null,
|
|
167
|
+
isSigner: false,
|
|
168
|
+
isWritable: false,
|
|
169
|
+
},
|
|
170
|
+
tokenProgram: {
|
|
171
|
+
value: input.tokenProgram ?? null,
|
|
172
|
+
isSigner: false,
|
|
128
173
|
isWritable: false,
|
|
129
174
|
},
|
|
130
|
-
tokenProgram: { value: input.tokenProgram ?? null, isWritable: false },
|
|
131
175
|
associatedTokenProgram: {
|
|
132
176
|
value: input.associatedTokenProgram ?? null,
|
|
177
|
+
isSigner: false,
|
|
178
|
+
isWritable: false,
|
|
179
|
+
},
|
|
180
|
+
systemProgram: {
|
|
181
|
+
value: input.systemProgram ?? null,
|
|
182
|
+
isSigner: false,
|
|
133
183
|
isWritable: false,
|
|
134
184
|
},
|
|
135
|
-
systemProgram: { value: input.systemProgram ?? null, isWritable: false },
|
|
136
185
|
};
|
|
137
186
|
const accounts = originalAccounts;
|
|
138
187
|
// Original args.
|
|
@@ -150,7 +199,6 @@ export function getOpenPositionInstruction(input, config) {
|
|
|
150
199
|
accounts.systemProgram.value =
|
|
151
200
|
"11111111111111111111111111111111";
|
|
152
201
|
}
|
|
153
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
154
202
|
return Object.freeze({
|
|
155
203
|
accounts: [
|
|
156
204
|
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 RESET_ADMIN_AUTHORITY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
11
12
|
export declare function getResetAdminAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -23,24 +24,24 @@ export type ResetAdminAuthorityInstructionDataArgs = {};
|
|
|
23
24
|
export declare function getResetAdminAuthorityInstructionDataEncoder(): FixedSizeEncoder<ResetAdminAuthorityInstructionDataArgs>;
|
|
24
25
|
export declare function getResetAdminAuthorityInstructionDataDecoder(): FixedSizeDecoder<ResetAdminAuthorityInstructionData>;
|
|
25
26
|
export declare function getResetAdminAuthorityInstructionDataCodec(): FixedSizeCodec<ResetAdminAuthorityInstructionDataArgs, ResetAdminAuthorityInstructionData>;
|
|
26
|
-
export type ResetAdminAuthorityAsyncInput<TAccountDeployer extends
|
|
27
|
-
deployer:
|
|
28
|
-
adminConfig?:
|
|
29
|
-
program?:
|
|
30
|
-
programData:
|
|
27
|
+
export type ResetAdminAuthorityAsyncInput<TAccountDeployer extends InstructionSignerInput = InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput, TAccountProgramData extends InstructionAccountInput = InstructionAccountInput> = {
|
|
28
|
+
deployer: TAccountDeployer;
|
|
29
|
+
adminConfig?: TAccountAdminConfig;
|
|
30
|
+
program?: TAccountProgram;
|
|
31
|
+
programData: TAccountProgramData;
|
|
31
32
|
};
|
|
32
|
-
export declare function getResetAdminAuthorityInstructionAsync<TAccountDeployer extends
|
|
33
|
+
export declare function getResetAdminAuthorityInstructionAsync<TAccountDeployer extends InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TAccountProgramData extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: ResetAdminAuthorityAsyncInput<TAccountDeployer, TAccountAdminConfig, TAccountProgram, TAccountProgramData>, config?: {
|
|
33
34
|
programAddress?: TProgramAddress;
|
|
34
|
-
}): Promise<ResetAdminAuthorityInstruction<TProgramAddress, TAccountDeployer, TAccountAdminConfig, TAccountProgram, TAccountProgramData
|
|
35
|
-
export type ResetAdminAuthorityInput<TAccountDeployer extends
|
|
36
|
-
deployer:
|
|
37
|
-
adminConfig:
|
|
38
|
-
program?:
|
|
39
|
-
programData:
|
|
35
|
+
}): Promise<ResetAdminAuthorityInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountDeployer, InstructionAccountInputAddress<TAccountDeployer>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>, ResolvedInstructionAccountMeta<TAccountProgramData, InstructionAccountInputAddress<TAccountProgramData>>>>;
|
|
36
|
+
export type ResetAdminAuthorityInput<TAccountDeployer extends InstructionSignerInput = InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput, TAccountProgramData extends InstructionAccountInput = InstructionAccountInput> = {
|
|
37
|
+
deployer: TAccountDeployer;
|
|
38
|
+
adminConfig: TAccountAdminConfig;
|
|
39
|
+
program?: TAccountProgram;
|
|
40
|
+
programData: TAccountProgramData;
|
|
40
41
|
};
|
|
41
|
-
export declare function getResetAdminAuthorityInstruction<TAccountDeployer extends
|
|
42
|
+
export declare function getResetAdminAuthorityInstruction<TAccountDeployer extends InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TAccountProgramData extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: ResetAdminAuthorityInput<TAccountDeployer, TAccountAdminConfig, TAccountProgram, TAccountProgramData>, config?: {
|
|
42
43
|
programAddress?: TProgramAddress;
|
|
43
|
-
}): ResetAdminAuthorityInstruction<TProgramAddress, TAccountDeployer, TAccountAdminConfig, TAccountProgram, TAccountProgramData
|
|
44
|
+
}): ResetAdminAuthorityInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountDeployer, InstructionAccountInputAddress<TAccountDeployer>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>, ResolvedInstructionAccountMeta<TAccountProgramData, InstructionAccountInputAddress<TAccountProgramData>>>;
|
|
44
45
|
export type ParsedResetAdminAuthorityInstruction<TProgram extends string = typeof PICON_DLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
45
46
|
programAddress: Address<TProgram>;
|
|
46
47
|
accounts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resetAdminAuthority.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/resetAdminAuthority.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":"resetAdminAuthority.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/resetAdminAuthority.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,CA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,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC/B,CAAC;IACF,IAAI,EAAE,kCAAkC,CAAC;CAC1C,CAAC;AAEF,wBAAgB,mCAAmC,CACjD,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,oCAAoC,CAAC,QAAQ,EAAE,aAAa,CAAC,CA4B/D"}
|
|
@@ -30,12 +30,30 @@ export function getResetAdminAuthorityInstructionDataCodec() {
|
|
|
30
30
|
export async function getResetAdminAuthorityInstructionAsync(input, config) {
|
|
31
31
|
// Program address.
|
|
32
32
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
33
|
+
// Account meta helper.
|
|
34
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
33
35
|
// Original accounts.
|
|
34
36
|
const originalAccounts = {
|
|
35
|
-
deployer: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
deployer: {
|
|
38
|
+
value: input.deployer ?? null,
|
|
39
|
+
isSigner: true,
|
|
40
|
+
isWritable: true,
|
|
41
|
+
},
|
|
42
|
+
adminConfig: {
|
|
43
|
+
value: input.adminConfig ?? null,
|
|
44
|
+
isSigner: false,
|
|
45
|
+
isWritable: true,
|
|
46
|
+
},
|
|
47
|
+
program: {
|
|
48
|
+
value: input.program ?? null,
|
|
49
|
+
isSigner: false,
|
|
50
|
+
isWritable: false,
|
|
51
|
+
},
|
|
52
|
+
programData: {
|
|
53
|
+
value: input.programData ?? null,
|
|
54
|
+
isSigner: false,
|
|
55
|
+
isWritable: false,
|
|
56
|
+
},
|
|
39
57
|
};
|
|
40
58
|
const accounts = originalAccounts;
|
|
41
59
|
// Resolve default values.
|
|
@@ -46,7 +64,6 @@ export async function getResetAdminAuthorityInstructionAsync(input, config) {
|
|
|
46
64
|
accounts.program.value =
|
|
47
65
|
"pDLMMk3KW3CUSxE1Wgjhx3jSmm2spe6Ry7Mq2HT26rC";
|
|
48
66
|
}
|
|
49
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
50
67
|
return Object.freeze({
|
|
51
68
|
accounts: [
|
|
52
69
|
getAccountMeta("deployer", accounts.deployer),
|
|
@@ -61,12 +78,30 @@ export async function getResetAdminAuthorityInstructionAsync(input, config) {
|
|
|
61
78
|
export function getResetAdminAuthorityInstruction(input, config) {
|
|
62
79
|
// Program address.
|
|
63
80
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
81
|
+
// Account meta helper.
|
|
82
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
64
83
|
// Original accounts.
|
|
65
84
|
const originalAccounts = {
|
|
66
|
-
deployer: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
85
|
+
deployer: {
|
|
86
|
+
value: input.deployer ?? null,
|
|
87
|
+
isSigner: true,
|
|
88
|
+
isWritable: true,
|
|
89
|
+
},
|
|
90
|
+
adminConfig: {
|
|
91
|
+
value: input.adminConfig ?? null,
|
|
92
|
+
isSigner: false,
|
|
93
|
+
isWritable: true,
|
|
94
|
+
},
|
|
95
|
+
program: {
|
|
96
|
+
value: input.program ?? null,
|
|
97
|
+
isSigner: false,
|
|
98
|
+
isWritable: false,
|
|
99
|
+
},
|
|
100
|
+
programData: {
|
|
101
|
+
value: input.programData ?? null,
|
|
102
|
+
isSigner: false,
|
|
103
|
+
isWritable: false,
|
|
104
|
+
},
|
|
70
105
|
};
|
|
71
106
|
const accounts = originalAccounts;
|
|
72
107
|
// Resolve default values.
|
|
@@ -74,7 +109,6 @@ export function getResetAdminAuthorityInstruction(input, config) {
|
|
|
74
109
|
accounts.program.value =
|
|
75
110
|
"pDLMMk3KW3CUSxE1Wgjhx3jSmm2spe6Ry7Mq2HT26rC";
|
|
76
111
|
}
|
|
77
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
78
112
|
return Object.freeze({
|
|
79
113
|
accounts: [
|
|
80
114
|
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 ReadonlySignerAccount, type ReadonlyUint8Array, type
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount } 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 SET_METADATA_UPDATE_AUTHORITY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
11
12
|
export declare function getSetMetadataUpdateAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -24,22 +25,22 @@ export type SetMetadataUpdateAuthorityInstructionDataArgs = {
|
|
|
24
25
|
export declare function getSetMetadataUpdateAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetMetadataUpdateAuthorityInstructionDataArgs>;
|
|
25
26
|
export declare function getSetMetadataUpdateAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetMetadataUpdateAuthorityInstructionData>;
|
|
26
27
|
export declare function getSetMetadataUpdateAuthorityInstructionDataCodec(): FixedSizeCodec<SetMetadataUpdateAuthorityInstructionDataArgs, SetMetadataUpdateAuthorityInstructionData>;
|
|
27
|
-
export type SetMetadataUpdateAuthorityAsyncInput<TAccountAuthority extends
|
|
28
|
-
authority:
|
|
29
|
-
adminConfig?:
|
|
28
|
+
export type SetMetadataUpdateAuthorityAsyncInput<TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput> = {
|
|
29
|
+
authority: TAccountAuthority;
|
|
30
|
+
adminConfig?: TAccountAdminConfig;
|
|
30
31
|
metadataUpdateAuthority: SetMetadataUpdateAuthorityInstructionDataArgs["metadataUpdateAuthority"];
|
|
31
32
|
};
|
|
32
|
-
export declare function getSetMetadataUpdateAuthorityInstructionAsync<TAccountAuthority extends
|
|
33
|
+
export declare function getSetMetadataUpdateAuthorityInstructionAsync<TAccountAuthority extends InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetMetadataUpdateAuthorityAsyncInput<TAccountAuthority, TAccountAdminConfig>, config?: {
|
|
33
34
|
programAddress?: TProgramAddress;
|
|
34
|
-
}): Promise<SetMetadataUpdateAuthorityInstruction<TProgramAddress, TAccountAuthority, TAccountAdminConfig
|
|
35
|
-
export type SetMetadataUpdateAuthorityInput<TAccountAuthority extends
|
|
36
|
-
authority:
|
|
37
|
-
adminConfig:
|
|
35
|
+
}): Promise<SetMetadataUpdateAuthorityInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>>>;
|
|
36
|
+
export type SetMetadataUpdateAuthorityInput<TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput> = {
|
|
37
|
+
authority: TAccountAuthority;
|
|
38
|
+
adminConfig: TAccountAdminConfig;
|
|
38
39
|
metadataUpdateAuthority: SetMetadataUpdateAuthorityInstructionDataArgs["metadataUpdateAuthority"];
|
|
39
40
|
};
|
|
40
|
-
export declare function getSetMetadataUpdateAuthorityInstruction<TAccountAuthority extends
|
|
41
|
+
export declare function getSetMetadataUpdateAuthorityInstruction<TAccountAuthority extends InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetMetadataUpdateAuthorityInput<TAccountAuthority, TAccountAdminConfig>, config?: {
|
|
41
42
|
programAddress?: TProgramAddress;
|
|
42
|
-
}): SetMetadataUpdateAuthorityInstruction<TProgramAddress, TAccountAuthority, TAccountAdminConfig
|
|
43
|
+
}): SetMetadataUpdateAuthorityInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>>;
|
|
43
44
|
export type ParsedSetMetadataUpdateAuthorityInstruction<TProgram extends string = typeof PICON_DLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
44
45
|
programAddress: Address<TProgram>;
|
|
45
46
|
accounts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setMetadataUpdateAuthority.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/setMetadataUpdateAuthority.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAaL,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,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"setMetadataUpdateAuthority.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/setMetadataUpdateAuthority.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EAAE,6CAA6C,CAAC,yBAAyB,CAAC,CAAC;CACnG,CAAC;AAEF,wBAAgB,wCAAwC,CACtD,iBAAiB,SAAS,sBAAsB,EAChD,mBAAmB,SAAS,uBAAuB,EACnD,eAAe,SAAS,OAAO,GAAG,OAAO,0BAA0B,EAEnE,KAAK,EAAE,+BAA+B,CACpC,iBAAiB,EACjB,mBAAmB,CACpB,EACD,MAAM,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,eAAe,CAAA;CAAE,GAC5C,qCAAqC,CACtC,eAAe,EACf,8BAA8B,CAC5B,iBAAiB,EACjB,8BAA8B,CAAC,iBAAiB,CAAC,CAClD,EACD,8BAA8B,CAC5B,mBAAmB,EACnB,8BAA8B,CAAC,mBAAmB,CAAC,CACpD,CACF,CAgDA;AAED,MAAM,MAAM,2CAA2C,CACrD,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,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC5B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC/B,CAAC;IACF,IAAI,EAAE,yCAAyC,CAAC;CACjD,CAAC;AAEF,wBAAgB,0CAA0C,CACxD,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,2CAA2C,CAAC,QAAQ,EAAE,aAAa,CAAC,CAuBtE"}
|
|
@@ -34,10 +34,20 @@ export function getSetMetadataUpdateAuthorityInstructionDataCodec() {
|
|
|
34
34
|
export async function getSetMetadataUpdateAuthorityInstructionAsync(input, config) {
|
|
35
35
|
// Program address.
|
|
36
36
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
37
|
+
// Account meta helper.
|
|
38
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
37
39
|
// Original accounts.
|
|
38
40
|
const originalAccounts = {
|
|
39
|
-
authority: {
|
|
40
|
-
|
|
41
|
+
authority: {
|
|
42
|
+
value: input.authority ?? null,
|
|
43
|
+
isSigner: true,
|
|
44
|
+
isWritable: false,
|
|
45
|
+
},
|
|
46
|
+
adminConfig: {
|
|
47
|
+
value: input.adminConfig ?? null,
|
|
48
|
+
isSigner: false,
|
|
49
|
+
isWritable: true,
|
|
50
|
+
},
|
|
41
51
|
};
|
|
42
52
|
const accounts = originalAccounts;
|
|
43
53
|
// Original args.
|
|
@@ -46,7 +56,6 @@ export async function getSetMetadataUpdateAuthorityInstructionAsync(input, confi
|
|
|
46
56
|
if (!accounts.adminConfig.value) {
|
|
47
57
|
accounts.adminConfig.value = await findAdminConfigPda({ programAddress });
|
|
48
58
|
}
|
|
49
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
50
59
|
return Object.freeze({
|
|
51
60
|
accounts: [
|
|
52
61
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -59,15 +68,24 @@ export async function getSetMetadataUpdateAuthorityInstructionAsync(input, confi
|
|
|
59
68
|
export function getSetMetadataUpdateAuthorityInstruction(input, config) {
|
|
60
69
|
// Program address.
|
|
61
70
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
71
|
+
// Account meta helper.
|
|
72
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
62
73
|
// Original accounts.
|
|
63
74
|
const originalAccounts = {
|
|
64
|
-
authority: {
|
|
65
|
-
|
|
75
|
+
authority: {
|
|
76
|
+
value: input.authority ?? null,
|
|
77
|
+
isSigner: true,
|
|
78
|
+
isWritable: false,
|
|
79
|
+
},
|
|
80
|
+
adminConfig: {
|
|
81
|
+
value: input.adminConfig ?? null,
|
|
82
|
+
isSigner: false,
|
|
83
|
+
isWritable: true,
|
|
84
|
+
},
|
|
66
85
|
};
|
|
67
86
|
const accounts = originalAccounts;
|
|
68
87
|
// Original args.
|
|
69
88
|
const args = { ...input };
|
|
70
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
71
89
|
return Object.freeze({
|
|
72
90
|
accounts: [
|
|
73
91
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -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 ReadonlySignerAccount, 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 ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount } 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
|
import { type DynamicFeeConfig, type DynamicFeeConfigArgs } from "../types/index.js";
|
|
11
12
|
export declare const SET_POOL_DYNAMIC_FEE_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
|
|
@@ -26,24 +27,24 @@ export type SetPoolDynamicFeeConfigInstructionDataArgs = {
|
|
|
26
27
|
export declare function getSetPoolDynamicFeeConfigInstructionDataEncoder(): FixedSizeEncoder<SetPoolDynamicFeeConfigInstructionDataArgs>;
|
|
27
28
|
export declare function getSetPoolDynamicFeeConfigInstructionDataDecoder(): FixedSizeDecoder<SetPoolDynamicFeeConfigInstructionData>;
|
|
28
29
|
export declare function getSetPoolDynamicFeeConfigInstructionDataCodec(): FixedSizeCodec<SetPoolDynamicFeeConfigInstructionDataArgs, SetPoolDynamicFeeConfigInstructionData>;
|
|
29
|
-
export type SetPoolDynamicFeeConfigAsyncInput<TAccountAuthority extends
|
|
30
|
-
authority:
|
|
31
|
-
adminConfig?:
|
|
32
|
-
pool:
|
|
30
|
+
export type SetPoolDynamicFeeConfigAsyncInput<TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput, TAccountPool extends InstructionAccountInput = InstructionAccountInput> = {
|
|
31
|
+
authority: TAccountAuthority;
|
|
32
|
+
adminConfig?: TAccountAdminConfig;
|
|
33
|
+
pool: TAccountPool;
|
|
33
34
|
config: SetPoolDynamicFeeConfigInstructionDataArgs["config"];
|
|
34
35
|
};
|
|
35
|
-
export declare function getSetPoolDynamicFeeConfigInstructionAsync<TAccountAuthority extends
|
|
36
|
+
export declare function getSetPoolDynamicFeeConfigInstructionAsync<TAccountAuthority extends InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput, TAccountPool extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetPoolDynamicFeeConfigAsyncInput<TAccountAuthority, TAccountAdminConfig, TAccountPool>, config?: {
|
|
36
37
|
programAddress?: TProgramAddress;
|
|
37
|
-
}): Promise<SetPoolDynamicFeeConfigInstruction<TProgramAddress, TAccountAuthority, TAccountAdminConfig, TAccountPool
|
|
38
|
-
export type SetPoolDynamicFeeConfigInput<TAccountAuthority extends
|
|
39
|
-
authority:
|
|
40
|
-
adminConfig:
|
|
41
|
-
pool:
|
|
38
|
+
}): Promise<SetPoolDynamicFeeConfigInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>, ResolvedInstructionAccountMeta<TAccountPool, InstructionAccountInputAddress<TAccountPool>>>>;
|
|
39
|
+
export type SetPoolDynamicFeeConfigInput<TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput, TAccountPool extends InstructionAccountInput = InstructionAccountInput> = {
|
|
40
|
+
authority: TAccountAuthority;
|
|
41
|
+
adminConfig: TAccountAdminConfig;
|
|
42
|
+
pool: TAccountPool;
|
|
42
43
|
config: SetPoolDynamicFeeConfigInstructionDataArgs["config"];
|
|
43
44
|
};
|
|
44
|
-
export declare function getSetPoolDynamicFeeConfigInstruction<TAccountAuthority extends
|
|
45
|
+
export declare function getSetPoolDynamicFeeConfigInstruction<TAccountAuthority extends InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput, TAccountPool extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetPoolDynamicFeeConfigInput<TAccountAuthority, TAccountAdminConfig, TAccountPool>, config?: {
|
|
45
46
|
programAddress?: TProgramAddress;
|
|
46
|
-
}): SetPoolDynamicFeeConfigInstruction<TProgramAddress, TAccountAuthority, TAccountAdminConfig, TAccountPool
|
|
47
|
+
}): SetPoolDynamicFeeConfigInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>, ResolvedInstructionAccountMeta<TAccountPool, InstructionAccountInputAddress<TAccountPool>>>;
|
|
47
48
|
export type ParsedSetPoolDynamicFeeConfigInstruction<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":"setPoolDynamicFeeConfig.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/setPoolDynamicFeeConfig.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,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"setPoolDynamicFeeConfig.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/setPoolDynamicFeeConfig.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,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,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;AAClE,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,yCAAyC,EAAE,kBACF,CAAC;AAEvD,wBAAgB,4CAA4C,IAAI,kBAAkB,CAIjF;AAED,MAAM,MAAM,kCAAkC,CAC5C,QAAQ,SAAS,MAAM,GAAG,OAAO,0BAA0B,EAC3D,iBAAiB,SAAS,MAAM,GAAG,WAAW,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,cAAc,CAAC,EAAE,eAAe,CAAA;CAAE,GAC5C,kCAAkC,CACnC,eAAe,EACf,8BAA8B,CAC5B,iBAAiB,EACjB,8BAA8B,CAAC,iBAAiB,CAAC,CAClD,EACD,8BAA8B,CAC5B,mBAAmB,EACnB,8BAA8B,CAAC,mBAAmB,CAAC,CACpD,EACD,8BAA8B,CAC5B,YAAY,EACZ,8BAA8B,CAAC,YAAY,CAAC,CAC7C,CACF,CAsDA;AAED,MAAM,MAAM,wCAAwC,CAClD,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,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC5B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACxB,CAAC;IACF,IAAI,EAAE,sCAAsC,CAAC;CAC9C,CAAC;AAEF,wBAAgB,uCAAuC,CACrD,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,wCAAwC,CAAC,QAAQ,EAAE,aAAa,CAAC,CA2BnE"}
|
|
@@ -35,11 +35,21 @@ export function getSetPoolDynamicFeeConfigInstructionDataCodec() {
|
|
|
35
35
|
export async function getSetPoolDynamicFeeConfigInstructionAsync(input, config) {
|
|
36
36
|
// Program address.
|
|
37
37
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
38
|
+
// Account meta helper.
|
|
39
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
38
40
|
// Original accounts.
|
|
39
41
|
const originalAccounts = {
|
|
40
|
-
authority: {
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
authority: {
|
|
43
|
+
value: input.authority ?? null,
|
|
44
|
+
isSigner: true,
|
|
45
|
+
isWritable: false,
|
|
46
|
+
},
|
|
47
|
+
adminConfig: {
|
|
48
|
+
value: input.adminConfig ?? null,
|
|
49
|
+
isSigner: false,
|
|
50
|
+
isWritable: false,
|
|
51
|
+
},
|
|
52
|
+
pool: { value: input.pool ?? null, isSigner: false, isWritable: true },
|
|
43
53
|
};
|
|
44
54
|
const accounts = originalAccounts;
|
|
45
55
|
// Original args.
|
|
@@ -48,7 +58,6 @@ export async function getSetPoolDynamicFeeConfigInstructionAsync(input, config)
|
|
|
48
58
|
if (!accounts.adminConfig.value) {
|
|
49
59
|
accounts.adminConfig.value = await findAdminConfigPda({ programAddress });
|
|
50
60
|
}
|
|
51
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
52
61
|
return Object.freeze({
|
|
53
62
|
accounts: [
|
|
54
63
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -62,16 +71,25 @@ export async function getSetPoolDynamicFeeConfigInstructionAsync(input, config)
|
|
|
62
71
|
export function getSetPoolDynamicFeeConfigInstruction(input, config) {
|
|
63
72
|
// Program address.
|
|
64
73
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
74
|
+
// Account meta helper.
|
|
75
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
65
76
|
// Original accounts.
|
|
66
77
|
const originalAccounts = {
|
|
67
|
-
authority: {
|
|
68
|
-
|
|
69
|
-
|
|
78
|
+
authority: {
|
|
79
|
+
value: input.authority ?? null,
|
|
80
|
+
isSigner: true,
|
|
81
|
+
isWritable: false,
|
|
82
|
+
},
|
|
83
|
+
adminConfig: {
|
|
84
|
+
value: input.adminConfig ?? null,
|
|
85
|
+
isSigner: false,
|
|
86
|
+
isWritable: false,
|
|
87
|
+
},
|
|
88
|
+
pool: { value: input.pool ?? null, isSigner: false, isWritable: true },
|
|
70
89
|
};
|
|
71
90
|
const accounts = originalAccounts;
|
|
72
91
|
// Original args.
|
|
73
92
|
const args = { ...input };
|
|
74
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
75
93
|
return Object.freeze({
|
|
76
94
|
accounts: [
|
|
77
95
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -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 ReadonlySignerAccount, 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 ReadonlySignerAccount, type ReadonlyUint8Array, type WritableAccount } 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 SET_POOL_PROTOCOL_SHARE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
11
12
|
export declare function getSetPoolProtocolShareDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -25,24 +26,24 @@ export type SetPoolProtocolShareInstructionDataArgs = {
|
|
|
25
26
|
export declare function getSetPoolProtocolShareInstructionDataEncoder(): FixedSizeEncoder<SetPoolProtocolShareInstructionDataArgs>;
|
|
26
27
|
export declare function getSetPoolProtocolShareInstructionDataDecoder(): FixedSizeDecoder<SetPoolProtocolShareInstructionData>;
|
|
27
28
|
export declare function getSetPoolProtocolShareInstructionDataCodec(): FixedSizeCodec<SetPoolProtocolShareInstructionDataArgs, SetPoolProtocolShareInstructionData>;
|
|
28
|
-
export type SetPoolProtocolShareAsyncInput<TAccountAuthority extends
|
|
29
|
-
authority:
|
|
30
|
-
adminConfig?:
|
|
31
|
-
pool:
|
|
29
|
+
export type SetPoolProtocolShareAsyncInput<TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput, TAccountPool extends InstructionAccountInput = InstructionAccountInput> = {
|
|
30
|
+
authority: TAccountAuthority;
|
|
31
|
+
adminConfig?: TAccountAdminConfig;
|
|
32
|
+
pool: TAccountPool;
|
|
32
33
|
protocolShare: SetPoolProtocolShareInstructionDataArgs["protocolShare"];
|
|
33
34
|
};
|
|
34
|
-
export declare function getSetPoolProtocolShareInstructionAsync<TAccountAuthority extends
|
|
35
|
+
export declare function getSetPoolProtocolShareInstructionAsync<TAccountAuthority extends InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput, TAccountPool extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetPoolProtocolShareAsyncInput<TAccountAuthority, TAccountAdminConfig, TAccountPool>, config?: {
|
|
35
36
|
programAddress?: TProgramAddress;
|
|
36
|
-
}): Promise<SetPoolProtocolShareInstruction<TProgramAddress, TAccountAuthority, TAccountAdminConfig, TAccountPool
|
|
37
|
-
export type SetPoolProtocolShareInput<TAccountAuthority extends
|
|
38
|
-
authority:
|
|
39
|
-
adminConfig:
|
|
40
|
-
pool:
|
|
37
|
+
}): Promise<SetPoolProtocolShareInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>, ResolvedInstructionAccountMeta<TAccountPool, InstructionAccountInputAddress<TAccountPool>>>>;
|
|
38
|
+
export type SetPoolProtocolShareInput<TAccountAuthority extends InstructionSignerInput = InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput, TAccountPool extends InstructionAccountInput = InstructionAccountInput> = {
|
|
39
|
+
authority: TAccountAuthority;
|
|
40
|
+
adminConfig: TAccountAdminConfig;
|
|
41
|
+
pool: TAccountPool;
|
|
41
42
|
protocolShare: SetPoolProtocolShareInstructionDataArgs["protocolShare"];
|
|
42
43
|
};
|
|
43
|
-
export declare function getSetPoolProtocolShareInstruction<TAccountAuthority extends
|
|
44
|
+
export declare function getSetPoolProtocolShareInstruction<TAccountAuthority extends InstructionSignerInput, TAccountAdminConfig extends InstructionAccountInput, TAccountPool extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetPoolProtocolShareInput<TAccountAuthority, TAccountAdminConfig, TAccountPool>, config?: {
|
|
44
45
|
programAddress?: TProgramAddress;
|
|
45
|
-
}): SetPoolProtocolShareInstruction<TProgramAddress, TAccountAuthority, TAccountAdminConfig, TAccountPool
|
|
46
|
+
}): SetPoolProtocolShareInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAuthority, InstructionAccountInputAddress<TAccountAuthority>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>, ResolvedInstructionAccountMeta<TAccountPool, InstructionAccountInputAddress<TAccountPool>>>;
|
|
46
47
|
export type ParsedSetPoolProtocolShareInstruction<TProgram extends string = typeof PICON_DLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
47
48
|
programAddress: Address<TProgram>;
|
|
48
49
|
accounts: {
|