@picon-finance/dlmm-sdk 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/instructions/acceptAdminAuthority.d.ts +12 -11
- package/dist/generated/instructions/acceptAdminAuthority.d.ts.map +1 -1
- package/dist/generated/instructions/acceptAdminAuthority.js +16 -4
- package/dist/generated/instructions/claimFee.d.ts +19 -18
- package/dist/generated/instructions/claimFee.d.ts.map +1 -1
- package/dist/generated/instructions/claimFee.js +52 -12
- package/dist/generated/instructions/claimProtocolFee.d.ts +30 -29
- package/dist/generated/instructions/claimProtocolFee.d.ts.map +1 -1
- package/dist/generated/instructions/claimProtocolFee.js +90 -20
- package/dist/generated/instructions/closePosition.d.ts +18 -17
- package/dist/generated/instructions/closePosition.d.ts.map +1 -1
- package/dist/generated/instructions/closePosition.js +38 -10
- package/dist/generated/instructions/createAdminConfig.d.ts +18 -17
- package/dist/generated/instructions/createAdminConfig.d.ts.map +1 -1
- package/dist/generated/instructions/createAdminConfig.js +54 -12
- package/dist/generated/instructions/createBinArray.d.ts +16 -15
- package/dist/generated/instructions/createBinArray.d.ts.map +1 -1
- package/dist/generated/instructions/createBinArray.js +28 -10
- package/dist/generated/instructions/createPool.d.ts +30 -29
- package/dist/generated/instructions/createPool.d.ts.map +1 -1
- package/dist/generated/instructions/createPool.js +98 -22
- package/dist/generated/instructions/deleteBinArray.d.ts +18 -17
- package/dist/generated/instructions/deleteBinArray.d.ts.map +1 -1
- package/dist/generated/instructions/deleteBinArray.js +54 -12
- package/dist/generated/instructions/depositByWeight.d.ts +19 -18
- package/dist/generated/instructions/depositByWeight.d.ts.map +1 -1
- package/dist/generated/instructions/depositByWeight.js +52 -12
- package/dist/generated/instructions/openPosition.d.ts +28 -27
- package/dist/generated/instructions/openPosition.d.ts.map +1 -1
- package/dist/generated/instructions/openPosition.js +64 -16
- package/dist/generated/instructions/resetAdminAuthority.d.ts +16 -15
- package/dist/generated/instructions/resetAdminAuthority.d.ts.map +1 -1
- package/dist/generated/instructions/resetAdminAuthority.js +44 -10
- package/dist/generated/instructions/setMetadataUpdateAuthority.d.ts +12 -11
- package/dist/generated/instructions/setMetadataUpdateAuthority.d.ts.map +1 -1
- package/dist/generated/instructions/setMetadataUpdateAuthority.js +24 -6
- package/dist/generated/instructions/setPoolDynamicFeeConfig.d.ts +14 -13
- package/dist/generated/instructions/setPoolDynamicFeeConfig.d.ts.map +1 -1
- package/dist/generated/instructions/setPoolDynamicFeeConfig.js +26 -8
- package/dist/generated/instructions/setPoolProtocolShare.d.ts +14 -13
- package/dist/generated/instructions/setPoolProtocolShare.d.ts.map +1 -1
- package/dist/generated/instructions/setPoolProtocolShare.js +26 -8
- package/dist/generated/instructions/swapExactIn.d.ts +15 -14
- package/dist/generated/instructions/swapExactIn.d.ts.map +1 -1
- package/dist/generated/instructions/swapExactIn.js +36 -9
- package/dist/generated/instructions/swapExactOut.d.ts +15 -14
- package/dist/generated/instructions/swapExactOut.d.ts.map +1 -1
- package/dist/generated/instructions/swapExactOut.js +36 -9
- package/dist/generated/instructions/syncPool.d.ts +7 -6
- package/dist/generated/instructions/syncPool.d.ts.map +1 -1
- package/dist/generated/instructions/syncPool.js +4 -3
- package/dist/generated/instructions/transferAdminAuthority.d.ts +12 -11
- package/dist/generated/instructions/transferAdminAuthority.d.ts.map +1 -1
- package/dist/generated/instructions/transferAdminAuthority.js +24 -6
- package/dist/generated/instructions/withdraw.d.ts +19 -18
- package/dist/generated/instructions/withdraw.d.ts.map +1 -1
- package/dist/generated/instructions/withdraw.js +52 -12
- package/package.json +5 -5
- package/src/generated/instructions/acceptAdminAuthority.ts +68 -25
- package/src/generated/instructions/claimFee.ts +218 -83
- package/src/generated/instructions/claimProtocolFee.ts +346 -131
- package/src/generated/instructions/closePosition.ts +160 -61
- package/src/generated/instructions/createAdminConfig.ts +172 -63
- package/src/generated/instructions/createBinArray.ts +124 -51
- package/src/generated/instructions/createPool.ts +354 -133
- package/src/generated/instructions/deleteBinArray.ts +172 -63
- package/src/generated/instructions/depositByWeight.ts +218 -83
- package/src/generated/instructions/openPosition.ts +300 -117
- package/src/generated/instructions/resetAdminAuthority.ts +138 -51
- package/src/generated/instructions/setMetadataUpdateAuthority.ts +74 -27
- package/src/generated/instructions/setPoolDynamicFeeConfig.ts +98 -39
- package/src/generated/instructions/setPoolProtocolShare.ts +98 -39
- package/src/generated/instructions/swapExactIn.ts +155 -60
- package/src/generated/instructions/swapExactOut.ts +155 -60
- package/src/generated/instructions/syncPool.ts +37 -12
- package/src/generated/instructions/transferAdminAuthority.ts +74 -27
- package/src/generated/instructions/withdraw.ts +218 -83
|
@@ -51,36 +51,76 @@ export function getDepositByWeightInstructionDataCodec() {
|
|
|
51
51
|
export function getDepositByWeightInstruction(input, config) {
|
|
52
52
|
// Program address.
|
|
53
53
|
const programAddress = config?.programAddress ?? PICON_DLMM_PROGRAM_ADDRESS;
|
|
54
|
+
// Account meta helper.
|
|
55
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
54
56
|
// Original accounts.
|
|
55
57
|
const originalAccounts = {
|
|
56
|
-
owner: { value: input.owner ?? null, isWritable: false },
|
|
57
|
-
pool: { value: input.pool ?? null, isWritable: true },
|
|
58
|
-
position: {
|
|
58
|
+
owner: { value: input.owner ?? null, isSigner: true, isWritable: false },
|
|
59
|
+
pool: { value: input.pool ?? null, isSigner: false, isWritable: true },
|
|
60
|
+
position: {
|
|
61
|
+
value: input.position ?? null,
|
|
62
|
+
isSigner: false,
|
|
63
|
+
isWritable: true,
|
|
64
|
+
},
|
|
59
65
|
positionTokenAccount: {
|
|
60
66
|
value: input.positionTokenAccount ?? null,
|
|
67
|
+
isSigner: false,
|
|
68
|
+
isWritable: false,
|
|
69
|
+
},
|
|
70
|
+
tokenMintX: {
|
|
71
|
+
value: input.tokenMintX ?? null,
|
|
72
|
+
isSigner: false,
|
|
73
|
+
isWritable: false,
|
|
74
|
+
},
|
|
75
|
+
tokenMintY: {
|
|
76
|
+
value: input.tokenMintY ?? null,
|
|
77
|
+
isSigner: false,
|
|
61
78
|
isWritable: false,
|
|
62
79
|
},
|
|
63
|
-
tokenMintX: { value: input.tokenMintX ?? null, isWritable: false },
|
|
64
|
-
tokenMintY: { value: input.tokenMintY ?? null, isWritable: false },
|
|
65
80
|
tokenOwnerAccountX: {
|
|
66
81
|
value: input.tokenOwnerAccountX ?? null,
|
|
82
|
+
isSigner: false,
|
|
67
83
|
isWritable: true,
|
|
68
84
|
},
|
|
69
85
|
tokenOwnerAccountY: {
|
|
70
86
|
value: input.tokenOwnerAccountY ?? null,
|
|
87
|
+
isSigner: false,
|
|
88
|
+
isWritable: true,
|
|
89
|
+
},
|
|
90
|
+
tokenVaultX: {
|
|
91
|
+
value: input.tokenVaultX ?? null,
|
|
92
|
+
isSigner: false,
|
|
93
|
+
isWritable: true,
|
|
94
|
+
},
|
|
95
|
+
tokenVaultY: {
|
|
96
|
+
value: input.tokenVaultY ?? null,
|
|
97
|
+
isSigner: false,
|
|
98
|
+
isWritable: true,
|
|
99
|
+
},
|
|
100
|
+
tokenProgramX: {
|
|
101
|
+
value: input.tokenProgramX ?? null,
|
|
102
|
+
isSigner: false,
|
|
103
|
+
isWritable: false,
|
|
104
|
+
},
|
|
105
|
+
tokenProgramY: {
|
|
106
|
+
value: input.tokenProgramY ?? null,
|
|
107
|
+
isSigner: false,
|
|
108
|
+
isWritable: false,
|
|
109
|
+
},
|
|
110
|
+
lowerBinArray: {
|
|
111
|
+
value: input.lowerBinArray ?? null,
|
|
112
|
+
isSigner: false,
|
|
113
|
+
isWritable: true,
|
|
114
|
+
},
|
|
115
|
+
upperBinArray: {
|
|
116
|
+
value: input.upperBinArray ?? null,
|
|
117
|
+
isSigner: false,
|
|
71
118
|
isWritable: true,
|
|
72
119
|
},
|
|
73
|
-
tokenVaultX: { value: input.tokenVaultX ?? null, isWritable: true },
|
|
74
|
-
tokenVaultY: { value: input.tokenVaultY ?? null, isWritable: true },
|
|
75
|
-
tokenProgramX: { value: input.tokenProgramX ?? null, isWritable: false },
|
|
76
|
-
tokenProgramY: { value: input.tokenProgramY ?? null, isWritable: false },
|
|
77
|
-
lowerBinArray: { value: input.lowerBinArray ?? null, isWritable: true },
|
|
78
|
-
upperBinArray: { value: input.upperBinArray ?? null, isWritable: true },
|
|
79
120
|
};
|
|
80
121
|
const accounts = originalAccounts;
|
|
81
122
|
// Original args.
|
|
82
123
|
const args = { ...input };
|
|
83
|
-
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
84
124
|
return Object.freeze({
|
|
85
125
|
accounts: [
|
|
86
126
|
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 OPEN_POSITION_DISCRIMINATOR: ReadonlyUint8Array;
|
|
11
12
|
export declare function getOpenPositionDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -34,40 +35,40 @@ export type OpenPositionInstructionDataArgs = {
|
|
|
34
35
|
export declare function getOpenPositionInstructionDataEncoder(): FixedSizeEncoder<OpenPositionInstructionDataArgs>;
|
|
35
36
|
export declare function getOpenPositionInstructionDataDecoder(): FixedSizeDecoder<OpenPositionInstructionData>;
|
|
36
37
|
export declare function getOpenPositionInstructionDataCodec(): FixedSizeCodec<OpenPositionInstructionDataArgs, OpenPositionInstructionData>;
|
|
37
|
-
export type OpenPositionAsyncInput<TAccountOwner extends
|
|
38
|
-
owner:
|
|
39
|
-
pool:
|
|
40
|
-
position?:
|
|
41
|
-
positionMint:
|
|
42
|
-
positionTokenAccount?:
|
|
43
|
-
adminConfig?:
|
|
44
|
-
metadataUpdateAuthority:
|
|
45
|
-
tokenProgram?:
|
|
46
|
-
associatedTokenProgram?:
|
|
47
|
-
systemProgram?:
|
|
38
|
+
export type OpenPositionAsyncInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountPool extends InstructionAccountInput = InstructionAccountInput, TAccountPosition extends InstructionAccountInput = InstructionAccountInput, TAccountPositionMint extends InstructionSignerInput = InstructionSignerInput, TAccountPositionTokenAccount extends InstructionAccountInput = InstructionAccountInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput, TAccountMetadataUpdateAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountAssociatedTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
39
|
+
owner: TAccountOwner;
|
|
40
|
+
pool: TAccountPool;
|
|
41
|
+
position?: TAccountPosition;
|
|
42
|
+
positionMint: TAccountPositionMint;
|
|
43
|
+
positionTokenAccount?: TAccountPositionTokenAccount;
|
|
44
|
+
adminConfig?: TAccountAdminConfig;
|
|
45
|
+
metadataUpdateAuthority: TAccountMetadataUpdateAuthority;
|
|
46
|
+
tokenProgram?: TAccountTokenProgram;
|
|
47
|
+
associatedTokenProgram?: TAccountAssociatedTokenProgram;
|
|
48
|
+
systemProgram?: TAccountSystemProgram;
|
|
48
49
|
lowerBinId: OpenPositionInstructionDataArgs["lowerBinId"];
|
|
49
50
|
upperBinId: OpenPositionInstructionDataArgs["upperBinId"];
|
|
50
51
|
};
|
|
51
|
-
export declare function getOpenPositionInstructionAsync<TAccountOwner extends
|
|
52
|
+
export declare function getOpenPositionInstructionAsync<TAccountOwner extends InstructionSignerInput, TAccountPool extends InstructionAccountInput, TAccountPosition extends InstructionAccountInput, TAccountPositionMint extends InstructionSignerInput, TAccountPositionTokenAccount extends InstructionAccountInput, TAccountAdminConfig extends InstructionAccountInput, TAccountMetadataUpdateAuthority extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountAssociatedTokenProgram extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: OpenPositionAsyncInput<TAccountOwner, TAccountPool, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountAdminConfig, TAccountMetadataUpdateAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
52
53
|
programAddress?: TProgramAddress;
|
|
53
|
-
}): Promise<OpenPositionInstruction<TProgramAddress, TAccountOwner, TAccountPool, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountAdminConfig, TAccountMetadataUpdateAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram
|
|
54
|
-
export type OpenPositionInput<TAccountOwner extends
|
|
55
|
-
owner:
|
|
56
|
-
pool:
|
|
57
|
-
position:
|
|
58
|
-
positionMint:
|
|
59
|
-
positionTokenAccount:
|
|
60
|
-
adminConfig:
|
|
61
|
-
metadataUpdateAuthority:
|
|
62
|
-
tokenProgram?:
|
|
63
|
-
associatedTokenProgram?:
|
|
64
|
-
systemProgram?:
|
|
54
|
+
}): Promise<OpenPositionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountPool, InstructionAccountInputAddress<TAccountPool>>, ResolvedInstructionAccountMeta<TAccountPosition, InstructionAccountInputAddress<TAccountPosition>>, ResolvedInstructionAccountMeta<TAccountPositionMint, InstructionAccountInputAddress<TAccountPositionMint>>, ResolvedInstructionAccountMeta<TAccountPositionTokenAccount, InstructionAccountInputAddress<TAccountPositionTokenAccount>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>, ResolvedInstructionAccountMeta<TAccountMetadataUpdateAuthority, InstructionAccountInputAddress<TAccountMetadataUpdateAuthority>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountAssociatedTokenProgram, InstructionAccountInputAddress<TAccountAssociatedTokenProgram>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>>>;
|
|
55
|
+
export type OpenPositionInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountPool extends InstructionAccountInput = InstructionAccountInput, TAccountPosition extends InstructionAccountInput = InstructionAccountInput, TAccountPositionMint extends InstructionSignerInput = InstructionSignerInput, TAccountPositionTokenAccount extends InstructionAccountInput = InstructionAccountInput, TAccountAdminConfig extends InstructionAccountInput = InstructionAccountInput, TAccountMetadataUpdateAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountAssociatedTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
56
|
+
owner: TAccountOwner;
|
|
57
|
+
pool: TAccountPool;
|
|
58
|
+
position: TAccountPosition;
|
|
59
|
+
positionMint: TAccountPositionMint;
|
|
60
|
+
positionTokenAccount: TAccountPositionTokenAccount;
|
|
61
|
+
adminConfig: TAccountAdminConfig;
|
|
62
|
+
metadataUpdateAuthority: TAccountMetadataUpdateAuthority;
|
|
63
|
+
tokenProgram?: TAccountTokenProgram;
|
|
64
|
+
associatedTokenProgram?: TAccountAssociatedTokenProgram;
|
|
65
|
+
systemProgram?: TAccountSystemProgram;
|
|
65
66
|
lowerBinId: OpenPositionInstructionDataArgs["lowerBinId"];
|
|
66
67
|
upperBinId: OpenPositionInstructionDataArgs["upperBinId"];
|
|
67
68
|
};
|
|
68
|
-
export declare function getOpenPositionInstruction<TAccountOwner extends
|
|
69
|
+
export declare function getOpenPositionInstruction<TAccountOwner extends InstructionSignerInput, TAccountPool extends InstructionAccountInput, TAccountPosition extends InstructionAccountInput, TAccountPositionMint extends InstructionSignerInput, TAccountPositionTokenAccount extends InstructionAccountInput, TAccountAdminConfig extends InstructionAccountInput, TAccountMetadataUpdateAuthority extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountAssociatedTokenProgram extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof PICON_DLMM_PROGRAM_ADDRESS>(input: OpenPositionInput<TAccountOwner, TAccountPool, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountAdminConfig, TAccountMetadataUpdateAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
69
70
|
programAddress?: TProgramAddress;
|
|
70
|
-
}): OpenPositionInstruction<TProgramAddress, TAccountOwner, TAccountPool, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountAdminConfig, TAccountMetadataUpdateAuthority, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram
|
|
71
|
+
}): OpenPositionInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountPool, InstructionAccountInputAddress<TAccountPool>>, ResolvedInstructionAccountMeta<TAccountPosition, InstructionAccountInputAddress<TAccountPosition>>, ResolvedInstructionAccountMeta<TAccountPositionMint, InstructionAccountInputAddress<TAccountPositionMint>>, ResolvedInstructionAccountMeta<TAccountPositionTokenAccount, InstructionAccountInputAddress<TAccountPositionTokenAccount>>, ResolvedInstructionAccountMeta<TAccountAdminConfig, InstructionAccountInputAddress<TAccountAdminConfig>>, ResolvedInstructionAccountMeta<TAccountMetadataUpdateAuthority, InstructionAccountInputAddress<TAccountMetadataUpdateAuthority>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountAssociatedTokenProgram, InstructionAccountInputAddress<TAccountAssociatedTokenProgram>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>>;
|
|
71
72
|
export type ParsedOpenPositionInstruction<TProgram extends string = typeof PICON_DLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
72
73
|
programAddress: Address<TProgram>;
|
|
73
74
|
accounts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openPosition.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/openPosition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAeL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"openPosition.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/openPosition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAeL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB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AAC,CAAC,CAAC,CAAC;QACvB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC3B,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,oBAAoB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACvC,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1C,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,sBAAsB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACzC,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACjC,CAAC;IACF,IAAI,EAAE,2BAA2B,CAAC;CACnC,CAAC;AAEF,wBAAgB,4BAA4B,CAC1C,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,6BAA6B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAgCxD"}
|
|
@@ -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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AAC,CAAC;IAClC,QAAQ,EAAE;QACR,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC3B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC9B,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1B,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;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.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,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;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,iBAAiB,SAAS,MAAM,GAC5B,qBAAqB,CAAC,iBAAiB,CAAC,GACtC,iBAAiB,CAAC,iBAAiB,CAAC,GACtC,iBAAiB;IACrB,mBAAmB,SAAS,MAAM,GAC9B,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