@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.
Files changed (83) hide show
  1. package/dist/entities/dlmm_program.d.ts +1 -1
  2. package/dist/entities/dlmm_program.d.ts.map +1 -1
  3. package/dist/entities/dlmm_program.js +2 -2
  4. package/dist/entities/pool.d.ts +1 -1
  5. package/dist/entities/pool.d.ts.map +1 -1
  6. package/dist/generated/instructions/acceptAdminAuthority.d.ts +12 -11
  7. package/dist/generated/instructions/acceptAdminAuthority.d.ts.map +1 -1
  8. package/dist/generated/instructions/acceptAdminAuthority.js +16 -4
  9. package/dist/generated/instructions/claimFee.d.ts +19 -18
  10. package/dist/generated/instructions/claimFee.d.ts.map +1 -1
  11. package/dist/generated/instructions/claimFee.js +52 -12
  12. package/dist/generated/instructions/claimProtocolFee.d.ts +30 -29
  13. package/dist/generated/instructions/claimProtocolFee.d.ts.map +1 -1
  14. package/dist/generated/instructions/claimProtocolFee.js +90 -20
  15. package/dist/generated/instructions/closePosition.d.ts +18 -17
  16. package/dist/generated/instructions/closePosition.d.ts.map +1 -1
  17. package/dist/generated/instructions/closePosition.js +38 -10
  18. package/dist/generated/instructions/createAdminConfig.d.ts +18 -17
  19. package/dist/generated/instructions/createAdminConfig.d.ts.map +1 -1
  20. package/dist/generated/instructions/createAdminConfig.js +54 -12
  21. package/dist/generated/instructions/createBinArray.d.ts +16 -15
  22. package/dist/generated/instructions/createBinArray.d.ts.map +1 -1
  23. package/dist/generated/instructions/createBinArray.js +28 -10
  24. package/dist/generated/instructions/createPool.d.ts +30 -29
  25. package/dist/generated/instructions/createPool.d.ts.map +1 -1
  26. package/dist/generated/instructions/createPool.js +98 -22
  27. package/dist/generated/instructions/deleteBinArray.d.ts +18 -17
  28. package/dist/generated/instructions/deleteBinArray.d.ts.map +1 -1
  29. package/dist/generated/instructions/deleteBinArray.js +54 -12
  30. package/dist/generated/instructions/depositByWeight.d.ts +19 -18
  31. package/dist/generated/instructions/depositByWeight.d.ts.map +1 -1
  32. package/dist/generated/instructions/depositByWeight.js +52 -12
  33. package/dist/generated/instructions/openPosition.d.ts +28 -27
  34. package/dist/generated/instructions/openPosition.d.ts.map +1 -1
  35. package/dist/generated/instructions/openPosition.js +64 -16
  36. package/dist/generated/instructions/resetAdminAuthority.d.ts +16 -15
  37. package/dist/generated/instructions/resetAdminAuthority.d.ts.map +1 -1
  38. package/dist/generated/instructions/resetAdminAuthority.js +44 -10
  39. package/dist/generated/instructions/setMetadataUpdateAuthority.d.ts +12 -11
  40. package/dist/generated/instructions/setMetadataUpdateAuthority.d.ts.map +1 -1
  41. package/dist/generated/instructions/setMetadataUpdateAuthority.js +24 -6
  42. package/dist/generated/instructions/setPoolDynamicFeeConfig.d.ts +14 -13
  43. package/dist/generated/instructions/setPoolDynamicFeeConfig.d.ts.map +1 -1
  44. package/dist/generated/instructions/setPoolDynamicFeeConfig.js +26 -8
  45. package/dist/generated/instructions/setPoolProtocolShare.d.ts +14 -13
  46. package/dist/generated/instructions/setPoolProtocolShare.d.ts.map +1 -1
  47. package/dist/generated/instructions/setPoolProtocolShare.js +26 -8
  48. package/dist/generated/instructions/swapExactIn.d.ts +15 -14
  49. package/dist/generated/instructions/swapExactIn.d.ts.map +1 -1
  50. package/dist/generated/instructions/swapExactIn.js +36 -9
  51. package/dist/generated/instructions/swapExactOut.d.ts +15 -14
  52. package/dist/generated/instructions/swapExactOut.d.ts.map +1 -1
  53. package/dist/generated/instructions/swapExactOut.js +36 -9
  54. package/dist/generated/instructions/syncPool.d.ts +7 -6
  55. package/dist/generated/instructions/syncPool.d.ts.map +1 -1
  56. package/dist/generated/instructions/syncPool.js +4 -3
  57. package/dist/generated/instructions/transferAdminAuthority.d.ts +12 -11
  58. package/dist/generated/instructions/transferAdminAuthority.d.ts.map +1 -1
  59. package/dist/generated/instructions/transferAdminAuthority.js +24 -6
  60. package/dist/generated/instructions/withdraw.d.ts +19 -18
  61. package/dist/generated/instructions/withdraw.d.ts.map +1 -1
  62. package/dist/generated/instructions/withdraw.js +52 -12
  63. package/package.json +8 -8
  64. package/src/entities/dlmm_program.ts +3 -3
  65. package/src/generated/instructions/acceptAdminAuthority.ts +68 -25
  66. package/src/generated/instructions/claimFee.ts +218 -83
  67. package/src/generated/instructions/claimProtocolFee.ts +346 -131
  68. package/src/generated/instructions/closePosition.ts +160 -61
  69. package/src/generated/instructions/createAdminConfig.ts +172 -63
  70. package/src/generated/instructions/createBinArray.ts +124 -51
  71. package/src/generated/instructions/createPool.ts +354 -133
  72. package/src/generated/instructions/deleteBinArray.ts +172 -63
  73. package/src/generated/instructions/depositByWeight.ts +218 -83
  74. package/src/generated/instructions/openPosition.ts +300 -117
  75. package/src/generated/instructions/resetAdminAuthority.ts +138 -51
  76. package/src/generated/instructions/setMetadataUpdateAuthority.ts +74 -27
  77. package/src/generated/instructions/setPoolDynamicFeeConfig.ts +98 -39
  78. package/src/generated/instructions/setPoolProtocolShare.ts +98 -39
  79. package/src/generated/instructions/swapExactIn.ts +155 -60
  80. package/src/generated/instructions/swapExactOut.ts +155 -60
  81. package/src/generated/instructions/syncPool.ts +37 -12
  82. package/src/generated/instructions/transferAdminAuthority.ts +74 -27
  83. 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: { value: input.position ?? null, isWritable: true },
43
- positionMint: { value: input.positionMint ?? null, isWritable: true },
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: { value: input.adminConfig ?? null, isWritable: false },
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: { value: input.position ?? null, isWritable: true },
120
- positionMint: { value: input.positionMint ?? null, isWritable: true },
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: { value: input.adminConfig ?? null, isWritable: false },
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 TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
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 string = string, TAccountAdminConfig extends string = string, TAccountProgram extends string = string, TAccountProgramData extends string = string> = {
27
- deployer: TransactionSigner<TAccountDeployer>;
28
- adminConfig?: Address<TAccountAdminConfig>;
29
- program?: Address<TAccountProgram>;
30
- programData: Address<TAccountProgramData>;
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 string, TAccountAdminConfig extends string, TAccountProgram extends string, TAccountProgramData extends string, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: ResetAdminAuthorityAsyncInput<TAccountDeployer, TAccountAdminConfig, TAccountProgram, TAccountProgramData>, config?: {
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 string = string, TAccountAdminConfig extends string = string, TAccountProgram extends string = string, TAccountProgramData extends string = string> = {
36
- deployer: TransactionSigner<TAccountDeployer>;
37
- adminConfig: Address<TAccountAdminConfig>;
38
- program?: Address<TAccountProgram>;
39
- programData: Address<TAccountProgramData>;
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 string, TAccountAdminConfig extends string, TAccountProgram extends string, TAccountProgramData extends string, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: ResetAdminAuthorityInput<TAccountDeployer, TAccountAdminConfig, TAccountProgram, TAccountProgramData>, config?: {
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,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAMrB,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE,eAAO,MAAM,mCAAmC,EAAE,kBACI,CAAC;AAEvD,wBAAgB,wCAAwC,IAAI,kBAAkB,CAI7E;AAED,MAAM,MAAM,8BAA8B,CACxC,QAAQ,SAAS,MAAM,GAAG,OAAO,0BAA0B,EAC3D,gBAAgB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC9D,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,eAAe,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAClD,6CAA6C,EAC/C,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,kBAAkB,SAAS,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC5D,WAAW,CAAC,QAAQ,CAAC,GACvB,mBAAmB,CAAC,kBAAkB,CAAC,GACvC,uBAAuB,CACrB;IACE,gBAAgB,SAAS,MAAM,GAC3B,qBAAqB,CAAC,gBAAgB,CAAC,GACrC,iBAAiB,CAAC,gBAAgB,CAAC,GACrC,gBA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AAQ,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;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"}
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,CAAC;AAErC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE,eAAO,MAAM,mCAAmC,EAAE,kBACI,CAAC;AAEvD,wBAAgB,wCAAwC,IAAI,kBAAkB,CAI7E;AAED,MAAM,MAAM,8BAA8B,CACxC,QAAQ,SAAS,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,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: { value: input.deployer ?? null, isWritable: true },
36
- adminConfig: { value: input.adminConfig ?? null, isWritable: true },
37
- program: { value: input.program ?? null, isWritable: false },
38
- programData: { value: input.programData ?? null, isWritable: false },
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: { value: input.deployer ?? null, isWritable: true },
67
- adminConfig: { value: input.adminConfig ?? null, isWritable: true },
68
- program: { value: input.program ?? null, isWritable: false },
69
- programData: { value: input.programData ?? null, isWritable: false },
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 TransactionSigner, type WritableAccount } from "@solana/kit";
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 string = string, TAccountAdminConfig extends string = string> = {
28
- authority: TransactionSigner<TAccountAuthority>;
29
- adminConfig?: Address<TAccountAdminConfig>;
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 string, TAccountAdminConfig extends string, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetMetadataUpdateAuthorityAsyncInput<TAccountAuthority, TAccountAdminConfig>, config?: {
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 string = string, TAccountAdminConfig extends string = string> = {
36
- authority: TransactionSigner<TAccountAuthority>;
37
- adminConfig: Address<TAccountAdminConfig>;
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 string, TAccountAdminConfig extends string, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetMetadataUpdateAuthorityInput<TAccountAuthority, TAccountAdminConfig>, config?: {
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,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AAMrB,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE,eAAO,MAAM,2CAA2C,EAAE,kBACP,CAAC;AAEpD,wBAAgB,+CAA+C,IAAI,kBAAkB,CAIpF;AAED,MAAM,MAAM,qCAAqC,CAC/C,QAAQ,SAAS,MAAM,GAAG,OAAO,0BAA0B,EAC3D,iBAAiB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC/D,mBAAmB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EACjE,kBAAkB,SAAS,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC5D,WAAW,CAAC,QAAQ,CAAC,GACvB,mBAAmB,CAAC,kBAAkB,CAAC,GACvC,uBAAuB,CACrB;IACE,i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ateAuthorityInstructionAsync(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: { value: input.authority ?? null, isWritable: false },
40
- adminConfig: { value: input.adminConfig ?? null, isWritable: true },
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: { value: input.authority ?? null, isWritable: false },
65
- adminConfig: { value: input.adminConfig ?? null, isWritable: true },
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 TransactionSigner, type WritableAccount } from "@solana/kit";
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 string = string, TAccountAdminConfig extends string = string, TAccountPool extends string = string> = {
30
- authority: TransactionSigner<TAccountAuthority>;
31
- adminConfig?: Address<TAccountAdminConfig>;
32
- pool: Address<TAccountPool>;
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 string, TAccountAdminConfig extends string, TAccountPool extends string, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetPoolDynamicFeeConfigAsyncInput<TAccountAuthority, TAccountAdminConfig, TAccountPool>, config?: {
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 string = string, TAccountAdminConfig extends string = string, TAccountPool extends string = string> = {
39
- authority: TransactionSigner<TAccountAuthority>;
40
- adminConfig: Address<TAccountAdminConfig>;
41
- pool: Address<TAccountPool>;
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 string, TAccountAdminConfig extends string, TAccountPool extends string, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetPoolDynamicFeeConfigInput<TAccountAuthority, TAccountAdminConfig, TAccountPool>, config?: {
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":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BAA8B,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: { value: input.authority ?? null, isWritable: false },
41
- adminConfig: { value: input.adminConfig ?? null, isWritable: false },
42
- pool: { value: input.pool ?? null, isWritable: true },
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: { value: input.authority ?? null, isWritable: false },
68
- adminConfig: { value: input.adminConfig ?? null, isWritable: false },
69
- pool: { value: input.pool ?? null, isWritable: true },
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 TransactionSigner, type WritableAccount } from "@solana/kit";
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 string = string, TAccountAdminConfig extends string = string, TAccountPool extends string = string> = {
29
- authority: TransactionSigner<TAccountAuthority>;
30
- adminConfig?: Address<TAccountAdminConfig>;
31
- pool: Address<TAccountPool>;
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 string, TAccountAdminConfig extends string, TAccountPool extends string, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetPoolProtocolShareAsyncInput<TAccountAuthority, TAccountAdminConfig, TAccountPool>, config?: {
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 string = string, TAccountAdminConfig extends string = string, TAccountPool extends string = string> = {
38
- authority: TransactionSigner<TAccountAuthority>;
39
- adminConfig: Address<TAccountAdminConfig>;
40
- pool: Address<TAccountPool>;
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 string, TAccountAdminConfig extends string, TAccountPool extends string, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: SetPoolProtocolShareInput<TAccountAuthority, TAccountAdminConfig, TAccountPool>, config?: {
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: {