@intent-engine/core 0.1.42 → 0.1.43
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/client/accounts/config.d.ts +4 -0
- package/dist/generated/client/accounts/config.js +5 -1
- package/dist/generated/client/accounts/config.js.map +1 -1
- package/dist/generated/client/accounts/intent.d.ts +6 -2
- package/dist/generated/client/accounts/intent.js +8 -4
- package/dist/generated/client/accounts/intent.js.map +1 -1
- package/dist/generated/client/accounts/mintCap.d.ts +6 -0
- package/dist/generated/client/accounts/mintCap.js +8 -2
- package/dist/generated/client/accounts/mintCap.js.map +1 -1
- package/dist/generated/client/accounts/profile.d.ts +2 -2
- package/dist/generated/client/accounts/profile.js +2 -2
- package/dist/generated/client/accounts/profile.js.map +1 -1
- package/dist/generated/client/accounts/standby.d.ts +2 -0
- package/dist/generated/client/accounts/standby.js +4 -2
- package/dist/generated/client/accounts/standby.js.map +1 -1
- package/dist/generated/client/errors/intentEngine.d.ts +25 -1
- package/dist/generated/client/errors/intentEngine.js +36 -0
- package/dist/generated/client/errors/intentEngine.js.map +1 -1
- package/dist/generated/client/events/accountMigrated.d.ts +38 -0
- package/dist/generated/client/events/accountMigrated.js +50 -0
- package/dist/generated/client/events/accountMigrated.js.map +1 -0
- package/dist/generated/client/events/committeeFloorSet.d.ts +26 -0
- package/dist/generated/client/events/committeeFloorSet.js +38 -0
- package/dist/generated/client/events/committeeFloorSet.js.map +1 -0
- package/dist/generated/client/events/index.d.ts +3 -0
- package/dist/generated/client/events/index.js +3 -0
- package/dist/generated/client/events/index.js.map +1 -1
- package/dist/generated/client/events/legacyClosed.d.ts +30 -0
- package/dist/generated/client/events/legacyClosed.js +42 -0
- package/dist/generated/client/events/legacyClosed.js.map +1 -0
- package/dist/generated/client/events/mintCapSet.d.ts +4 -0
- package/dist/generated/client/events/mintCapSet.js +4 -0
- package/dist/generated/client/events/mintCapSet.js.map +1 -1
- package/dist/generated/client/events/profileSet.d.ts +1 -0
- package/dist/generated/client/events/profileSet.js +2 -0
- package/dist/generated/client/events/profileSet.js.map +1 -1
- package/dist/generated/client/instructions/beginFill.d.ts +13 -9
- package/dist/generated/client/instructions/beginFill.js +15 -2
- package/dist/generated/client/instructions/beginFill.js.map +1 -1
- package/dist/generated/client/instructions/cancelIntent.d.ts +13 -9
- package/dist/generated/client/instructions/cancelIntent.js +15 -2
- package/dist/generated/client/instructions/cancelIntent.js.map +1 -1
- package/dist/generated/client/instructions/claimJob.d.ts +13 -9
- package/dist/generated/client/instructions/claimJob.js +15 -2
- package/dist/generated/client/instructions/claimJob.js.map +1 -1
- package/dist/generated/client/instructions/closeIntent.d.ts +13 -9
- package/dist/generated/client/instructions/closeIntent.js +21 -2
- package/dist/generated/client/instructions/closeIntent.js.map +1 -1
- package/dist/generated/client/instructions/closeLegacy.d.ts +61 -0
- package/dist/generated/client/instructions/closeLegacy.js +113 -0
- package/dist/generated/client/instructions/closeLegacy.js.map +1 -0
- package/dist/generated/client/instructions/createIntent.d.ts +14 -10
- package/dist/generated/client/instructions/createIntent.js +15 -2
- package/dist/generated/client/instructions/createIntent.js.map +1 -1
- package/dist/generated/client/instructions/createIntentSigned.d.ts +14 -10
- package/dist/generated/client/instructions/createIntentSigned.js +15 -2
- package/dist/generated/client/instructions/createIntentSigned.js.map +1 -1
- package/dist/generated/client/instructions/expireIntent.d.ts +13 -9
- package/dist/generated/client/instructions/expireIntent.js +21 -2
- package/dist/generated/client/instructions/expireIntent.js.map +1 -1
- package/dist/generated/client/instructions/fillAttested.d.ts +13 -9
- package/dist/generated/client/instructions/fillAttested.js +15 -2
- package/dist/generated/client/instructions/fillAttested.js.map +1 -1
- package/dist/generated/client/instructions/fillAttestedCommittee.d.ts +13 -9
- package/dist/generated/client/instructions/fillAttestedCommittee.js +15 -2
- package/dist/generated/client/instructions/fillAttestedCommittee.js.map +1 -1
- package/dist/generated/client/instructions/fillAttestedSplit.d.ts +13 -9
- package/dist/generated/client/instructions/fillAttestedSplit.js +15 -2
- package/dist/generated/client/instructions/fillAttestedSplit.js.map +1 -1
- package/dist/generated/client/instructions/fillAttestedSplitCommittee.d.ts +13 -9
- package/dist/generated/client/instructions/fillAttestedSplitCommittee.js +15 -2
- package/dist/generated/client/instructions/fillAttestedSplitCommittee.js.map +1 -1
- package/dist/generated/client/instructions/fillIntent.d.ts +13 -9
- package/dist/generated/client/instructions/fillIntent.js +15 -2
- package/dist/generated/client/instructions/fillIntent.js.map +1 -1
- package/dist/generated/client/instructions/index.d.ts +3 -0
- package/dist/generated/client/instructions/index.js +3 -0
- package/dist/generated/client/instructions/index.js.map +1 -1
- package/dist/generated/client/instructions/migrate.d.ts +52 -0
- package/dist/generated/client/instructions/migrate.js +109 -0
- package/dist/generated/client/instructions/migrate.js.map +1 -0
- package/dist/generated/client/instructions/setCommitteeFloor.d.ts +53 -0
- package/dist/generated/client/instructions/setCommitteeFloor.js +96 -0
- package/dist/generated/client/instructions/setCommitteeFloor.js.map +1 -0
- package/dist/generated/client/instructions/setMintCap.d.ts +4 -0
- package/dist/generated/client/instructions/setMintCap.js +2 -0
- package/dist/generated/client/instructions/setMintCap.js.map +1 -1
- package/dist/generated/client/instructions/standBy.d.ts +13 -9
- package/dist/generated/client/instructions/standBy.js +15 -2
- package/dist/generated/client/instructions/standBy.js.map +1 -1
- package/dist/generated/client/programs/intentEngine.d.ts +158 -137
- package/dist/generated/client/programs/intentEngine.js +194 -137
- package/dist/generated/client/programs/intentEngine.js.map +1 -1
- package/dist/generated/client/types/profileFields.d.ts +1 -0
- package/dist/generated/client/types/profileFields.js +2 -0
- package/dist/generated/client/types/profileFields.js.map +1 -1
- package/dist/src/claims.d.ts +2 -2
- package/dist/src/committee-floors.d.ts +21 -0
- package/dist/src/committee-floors.js +27 -0
- package/dist/src/committee-floors.js.map +1 -0
- package/dist/src/committee.d.ts +4 -4
- package/dist/src/committee.js +14 -17
- package/dist/src/committee.js.map +1 -1
- package/dist/src/encryption-key.d.ts +28 -0
- package/dist/src/encryption-key.js +94 -0
- package/dist/src/encryption-key.js.map +1 -0
- package/dist/src/events.d.ts +4 -1
- package/dist/src/events.js +5 -1
- package/dist/src/events.js.map +1 -1
- package/dist/src/fill-builders.d.ts +7 -5
- package/dist/src/fill-builders.js +4 -0
- package/dist/src/fill-builders.js.map +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent-builders.d.ts +8 -6
- package/dist/src/intent-builders.js +6 -1
- package/dist/src/intent-builders.js.map +1 -1
- package/dist/src/memo.d.ts +7 -1
- package/dist/src/memo.js +18 -4
- package/dist/src/memo.js.map +1 -1
- package/dist/src/migrate.d.ts +25 -0
- package/dist/src/migrate.js +46 -0
- package/dist/src/migrate.js.map +1 -0
- package/dist/src/mint-caps.d.ts +5 -1
- package/dist/src/mint-caps.js +13 -2
- package/dist/src/mint-caps.js.map +1 -1
- package/dist/src/profile.d.ts +2 -0
- package/dist/src/profile.js +13 -4
- package/dist/src/profile.js.map +1 -1
- package/dist/src/sealed-delivery.d.ts +54 -10
- package/dist/src/sealed-delivery.js +183 -55
- package/dist/src/sealed-delivery.js.map +1 -1
- package/dist/src/sealed.d.ts +1 -0
- package/dist/src/sealed.js +2 -2
- package/dist/src/sealed.js.map +1 -1
- package/dist/src/sig.d.ts +17 -4
- package/dist/src/sig.js +80 -10
- package/dist/src/sig.js.map +1 -1
- package/dist/src/state.d.ts +3 -3
- package/dist/src/state.js +3 -3
- package/dist/src/versions.d.ts +56 -0
- package/dist/src/versions.js +126 -0
- package/dist/src/versions.js.map +1 -0
- package/generated/idl.json +567 -6
- package/package.json +2 -1
|
@@ -61,6 +61,11 @@ export async function getCancelIntentInstructionAsync(input, config) {
|
|
|
61
61
|
isSigner: false,
|
|
62
62
|
isWritable: true,
|
|
63
63
|
},
|
|
64
|
+
mintCap: {
|
|
65
|
+
value: input.mintCap ?? null,
|
|
66
|
+
isSigner: false,
|
|
67
|
+
isWritable: true,
|
|
68
|
+
},
|
|
64
69
|
eventAuthority: {
|
|
65
70
|
value: input.eventAuthority ?? null,
|
|
66
71
|
isSigner: false,
|
|
@@ -95,6 +100,7 @@ export async function getCancelIntentInstructionAsync(input, config) {
|
|
|
95
100
|
getAccountMeta("tokenProgram", accounts.tokenProgram),
|
|
96
101
|
getAccountMeta("claims", accounts.claims),
|
|
97
102
|
getAccountMeta("stakeTo", accounts.stakeTo),
|
|
103
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
98
104
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
99
105
|
getAccountMeta("program", accounts.program),
|
|
100
106
|
],
|
|
@@ -133,6 +139,11 @@ export function getCancelIntentInstruction(input, config) {
|
|
|
133
139
|
isSigner: false,
|
|
134
140
|
isWritable: true,
|
|
135
141
|
},
|
|
142
|
+
mintCap: {
|
|
143
|
+
value: input.mintCap ?? null,
|
|
144
|
+
isSigner: false,
|
|
145
|
+
isWritable: true,
|
|
146
|
+
},
|
|
136
147
|
eventAuthority: {
|
|
137
148
|
value: input.eventAuthority ?? null,
|
|
138
149
|
isSigner: false,
|
|
@@ -162,6 +173,7 @@ export function getCancelIntentInstruction(input, config) {
|
|
|
162
173
|
getAccountMeta("tokenProgram", accounts.tokenProgram),
|
|
163
174
|
getAccountMeta("claims", accounts.claims),
|
|
164
175
|
getAccountMeta("stakeTo", accounts.stakeTo),
|
|
176
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
165
177
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
166
178
|
getAccountMeta("program", accounts.program),
|
|
167
179
|
],
|
|
@@ -170,10 +182,10 @@ export function getCancelIntentInstruction(input, config) {
|
|
|
170
182
|
});
|
|
171
183
|
}
|
|
172
184
|
export function parseCancelIntentInstruction(instruction) {
|
|
173
|
-
if (instruction.accounts.length <
|
|
185
|
+
if (instruction.accounts.length < 11) {
|
|
174
186
|
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
175
187
|
actualAccountMetas: instruction.accounts.length,
|
|
176
|
-
expectedAccountMetas:
|
|
188
|
+
expectedAccountMetas: 11,
|
|
177
189
|
});
|
|
178
190
|
}
|
|
179
191
|
let accountIndex = 0;
|
|
@@ -199,6 +211,7 @@ export function parseCancelIntentInstruction(instruction) {
|
|
|
199
211
|
tokenProgram: getNextAccount(),
|
|
200
212
|
claims: getNextOptionalAccount(),
|
|
201
213
|
stakeTo: getNextOptionalAccount(),
|
|
214
|
+
mintCap: getNextOptionalAccount(),
|
|
202
215
|
eventAuthority: getNextAccount(),
|
|
203
216
|
program: getNextAccount(),
|
|
204
217
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancelIntent.js","sourceRoot":"","sources":["../../../../generated/client/instructions/cancelIntent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,2BAA2B,GAAuB,IAAI,UAAU,CAAC;IAC5E,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC;IAC/C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,2BAA2B,CAC5B,CAAC;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"cancelIntent.js","sourceRoot":"","sources":["../../../../generated/client/instructions/cancelIntent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,2BAA2B,GAAuB,IAAI,UAAU,CAAC;IAC5E,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC;IAC/C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,2BAA2B,CAC5B,CAAC;AACJ,CAAC;AAkED,MAAM,UAAU,qCAAqC;IACnD,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC,KAAK,EAAE,oBAAoB,CAAC,eAAe,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;KAClE,CAAC,EACF,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,2BAA2B,EAAE,CAAC,CACtE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qCAAqC;IACnD,OAAO,gBAAgB,CAAC;QACtB,CAAC,eAAe,EAAE,cA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,WAAW,CAAC,QAA0B,CAAC,YAAY,CAAE,CAAC;QAC3E,YAAY,IAAI,CAAC,CAAC;QAClB,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IACF,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAClC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;QACrC,OAAO,WAAW,CAAC,OAAO,KAAK,6BAA6B;YAC1D,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,WAAW,CAAC;IAClB,CAAC,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,KAAK,EAAE,cAAc,EAAE;YACvB,MAAM,EAAE,cAAc,EAAE;YACxB,KAAK,EAAE,cAAc,EAAE;YACvB,SAAS,EAAE,cAAc,EAAE;YAC3B,QAAQ,EAAE,cAAc,EAAE;YAC1B,YAAY,EAAE,cAAc,EAAE;YAC9B,MAAM,EAAE,sBAAsB,EAAE;YAChC,OAAO,EAAE,sBAAsB,EAAE;YACjC,OAAO,EAAE,sBAAsB,EAAE;YACjC,cAAc,EAAE,cAAc,EAAE;YAChC,OAAO,EAAE,cAAc,EAAE;SAC1B;QACD,IAAI,EAAE,qCAAqC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KACvE,CAAC;AACJ,CAAC"}
|
|
@@ -10,12 +10,13 @@ import { type InstructionAccountInput, type InstructionAccountInputAddress, type
|
|
|
10
10
|
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
11
|
export declare const CLAIM_JOB_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
12
|
export declare function getClaimJobDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type ClaimJobInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountWorker extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
export type ClaimJobInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountWorker extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountBoard extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
14
|
TAccountWorker extends string ? WritableSignerAccount<TAccountWorker> & AccountSignerMeta<TAccountWorker> : TAccountWorker,
|
|
15
15
|
TAccountIntent extends string ? ReadonlyAccount<TAccountIntent> : TAccountIntent,
|
|
16
16
|
TAccountBoard extends string ? WritableAccount<TAccountBoard> : TAccountBoard,
|
|
17
17
|
TAccountOwner extends string ? WritableAccount<TAccountOwner> : TAccountOwner,
|
|
18
18
|
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
19
|
+
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
19
20
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
20
21
|
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
21
22
|
...TRemainingAccounts
|
|
@@ -30,32 +31,34 @@ export type ClaimJobInstructionDataArgs = {
|
|
|
30
31
|
export declare function getClaimJobInstructionDataEncoder(): FixedSizeEncoder<ClaimJobInstructionDataArgs>;
|
|
31
32
|
export declare function getClaimJobInstructionDataDecoder(): FixedSizeDecoder<ClaimJobInstructionData>;
|
|
32
33
|
export declare function getClaimJobInstructionDataCodec(): FixedSizeCodec<ClaimJobInstructionDataArgs, ClaimJobInstructionData>;
|
|
33
|
-
export type ClaimJobAsyncInput<TAccountWorker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountBoard extends InstructionAccountInput = InstructionAccountInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
34
|
+
export type ClaimJobAsyncInput<TAccountWorker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountBoard extends InstructionAccountInput = InstructionAccountInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
34
35
|
worker: TAccountWorker;
|
|
35
36
|
intent: TAccountIntent;
|
|
36
37
|
board?: TAccountBoard;
|
|
37
38
|
owner: TAccountOwner;
|
|
38
39
|
systemProgram?: TAccountSystemProgram;
|
|
40
|
+
config?: TAccountConfig;
|
|
39
41
|
eventAuthority: TAccountEventAuthority;
|
|
40
42
|
program: TAccountProgram;
|
|
41
43
|
secs: ClaimJobInstructionDataArgs["secs"];
|
|
42
44
|
};
|
|
43
|
-
export declare function getClaimJobInstructionAsync<TAccountWorker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountBoard extends InstructionAccountInput, TAccountOwner extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: ClaimJobAsyncInput<TAccountWorker, TAccountIntent, TAccountBoard, TAccountOwner, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
45
|
+
export declare function getClaimJobInstructionAsync<TAccountWorker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountBoard extends InstructionAccountInput, TAccountOwner extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: ClaimJobAsyncInput<TAccountWorker, TAccountIntent, TAccountBoard, TAccountOwner, TAccountSystemProgram, TAccountConfig, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
44
46
|
programAddress?: TProgramAddress;
|
|
45
|
-
}): Promise<ClaimJobInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountWorker, InstructionAccountInputAddress<TAccountWorker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountBoard, InstructionAccountInputAddress<TAccountBoard>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
46
|
-
export type ClaimJobInput<TAccountWorker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountBoard extends InstructionAccountInput = InstructionAccountInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
47
|
+
}): Promise<ClaimJobInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountWorker, InstructionAccountInputAddress<TAccountWorker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountBoard, InstructionAccountInputAddress<TAccountBoard>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
48
|
+
export type ClaimJobInput<TAccountWorker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountBoard extends InstructionAccountInput = InstructionAccountInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
47
49
|
worker: TAccountWorker;
|
|
48
50
|
intent: TAccountIntent;
|
|
49
51
|
board: TAccountBoard;
|
|
50
52
|
owner: TAccountOwner;
|
|
51
53
|
systemProgram?: TAccountSystemProgram;
|
|
54
|
+
config?: TAccountConfig;
|
|
52
55
|
eventAuthority: TAccountEventAuthority;
|
|
53
56
|
program: TAccountProgram;
|
|
54
57
|
secs: ClaimJobInstructionDataArgs["secs"];
|
|
55
58
|
};
|
|
56
|
-
export declare function getClaimJobInstruction<TAccountWorker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountBoard extends InstructionAccountInput, TAccountOwner extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: ClaimJobInput<TAccountWorker, TAccountIntent, TAccountBoard, TAccountOwner, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
59
|
+
export declare function getClaimJobInstruction<TAccountWorker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountBoard extends InstructionAccountInput, TAccountOwner extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: ClaimJobInput<TAccountWorker, TAccountIntent, TAccountBoard, TAccountOwner, TAccountSystemProgram, TAccountConfig, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
57
60
|
programAddress?: TProgramAddress;
|
|
58
|
-
}): ClaimJobInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountWorker, InstructionAccountInputAddress<TAccountWorker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountBoard, InstructionAccountInputAddress<TAccountBoard>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
61
|
+
}): ClaimJobInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountWorker, InstructionAccountInputAddress<TAccountWorker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountBoard, InstructionAccountInputAddress<TAccountBoard>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
59
62
|
export type ParsedClaimJobInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
60
63
|
programAddress: Address<TProgram>;
|
|
61
64
|
accounts: {
|
|
@@ -64,8 +67,9 @@ export type ParsedClaimJobInstruction<TProgram extends string = typeof INTENT_EN
|
|
|
64
67
|
board: TAccountMetas[2];
|
|
65
68
|
owner: TAccountMetas[3];
|
|
66
69
|
systemProgram: TAccountMetas[4];
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
config: TAccountMetas[5];
|
|
71
|
+
eventAuthority: TAccountMetas[6];
|
|
72
|
+
program: TAccountMetas[7];
|
|
69
73
|
};
|
|
70
74
|
data: ClaimJobInstructionData;
|
|
71
75
|
};
|
|
@@ -46,6 +46,7 @@ export async function getClaimJobInstructionAsync(input, config) {
|
|
|
46
46
|
isSigner: false,
|
|
47
47
|
isWritable: false,
|
|
48
48
|
},
|
|
49
|
+
config: { value: input.config ?? null, isSigner: false, isWritable: false },
|
|
49
50
|
eventAuthority: {
|
|
50
51
|
value: input.eventAuthority ?? null,
|
|
51
52
|
isSigner: false,
|
|
@@ -70,6 +71,10 @@ export async function getClaimJobInstructionAsync(input, config) {
|
|
|
70
71
|
accounts.systemProgram.value =
|
|
71
72
|
"11111111111111111111111111111111";
|
|
72
73
|
}
|
|
74
|
+
if (!accounts.config.value) {
|
|
75
|
+
accounts.config.value =
|
|
76
|
+
"6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz";
|
|
77
|
+
}
|
|
73
78
|
return Object.freeze({
|
|
74
79
|
accounts: [
|
|
75
80
|
getAccountMeta("worker", accounts.worker),
|
|
@@ -77,6 +82,7 @@ export async function getClaimJobInstructionAsync(input, config) {
|
|
|
77
82
|
getAccountMeta("board", accounts.board),
|
|
78
83
|
getAccountMeta("owner", accounts.owner),
|
|
79
84
|
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
85
|
+
getAccountMeta("config", accounts.config),
|
|
80
86
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
81
87
|
getAccountMeta("program", accounts.program),
|
|
82
88
|
],
|
|
@@ -100,6 +106,7 @@ export function getClaimJobInstruction(input, config) {
|
|
|
100
106
|
isSigner: false,
|
|
101
107
|
isWritable: false,
|
|
102
108
|
},
|
|
109
|
+
config: { value: input.config ?? null, isSigner: false, isWritable: false },
|
|
103
110
|
eventAuthority: {
|
|
104
111
|
value: input.eventAuthority ?? null,
|
|
105
112
|
isSigner: false,
|
|
@@ -119,6 +126,10 @@ export function getClaimJobInstruction(input, config) {
|
|
|
119
126
|
accounts.systemProgram.value =
|
|
120
127
|
"11111111111111111111111111111111";
|
|
121
128
|
}
|
|
129
|
+
if (!accounts.config.value) {
|
|
130
|
+
accounts.config.value =
|
|
131
|
+
"6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz";
|
|
132
|
+
}
|
|
122
133
|
return Object.freeze({
|
|
123
134
|
accounts: [
|
|
124
135
|
getAccountMeta("worker", accounts.worker),
|
|
@@ -126,6 +137,7 @@ export function getClaimJobInstruction(input, config) {
|
|
|
126
137
|
getAccountMeta("board", accounts.board),
|
|
127
138
|
getAccountMeta("owner", accounts.owner),
|
|
128
139
|
getAccountMeta("systemProgram", accounts.systemProgram),
|
|
140
|
+
getAccountMeta("config", accounts.config),
|
|
129
141
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
130
142
|
getAccountMeta("program", accounts.program),
|
|
131
143
|
],
|
|
@@ -134,10 +146,10 @@ export function getClaimJobInstruction(input, config) {
|
|
|
134
146
|
});
|
|
135
147
|
}
|
|
136
148
|
export function parseClaimJobInstruction(instruction) {
|
|
137
|
-
if (instruction.accounts.length <
|
|
149
|
+
if (instruction.accounts.length < 8) {
|
|
138
150
|
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
139
151
|
actualAccountMetas: instruction.accounts.length,
|
|
140
|
-
expectedAccountMetas:
|
|
152
|
+
expectedAccountMetas: 8,
|
|
141
153
|
});
|
|
142
154
|
}
|
|
143
155
|
let accountIndex = 0;
|
|
@@ -154,6 +166,7 @@ export function parseClaimJobInstruction(instruction) {
|
|
|
154
166
|
board: getNextAccount(),
|
|
155
167
|
owner: getNextAccount(),
|
|
156
168
|
systemProgram: getNextAccount(),
|
|
169
|
+
config: getNextAccount(),
|
|
157
170
|
eventAuthority: getNextAccount(),
|
|
158
171
|
program: getNextAccount(),
|
|
159
172
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claimJob.js","sourceRoot":"","sources":["../../../../generated/client/instructions/claimJob.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,M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AAC,WAAW,CAAC,IAAI,CAAC;KACnE,CAAC;AACJ,CAAC"}
|
|
@@ -10,7 +10,7 @@ import { type InstructionAccountInput, type InstructionAccountInputAddress, type
|
|
|
10
10
|
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
11
|
export declare const CLOSE_INTENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
12
|
export declare function getCloseIntentDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type CloseIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountCranker extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountRefundTo extends string | AccountMeta<string> = string, TAccountCanonicalRefund extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountRentPayer extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
export type CloseIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountCranker extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountRefundTo extends string | AccountMeta<string> = string, TAccountCanonicalRefund extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountRentPayer extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountMintCap extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
14
|
TAccountCranker extends string ? WritableSignerAccount<TAccountCranker> & AccountSignerMeta<TAccountCranker> : TAccountCranker,
|
|
15
15
|
TAccountIntent extends string ? WritableAccount<TAccountIntent> : TAccountIntent,
|
|
16
16
|
TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault,
|
|
@@ -20,6 +20,7 @@ export type CloseIntentInstruction<TProgram extends string = typeof INTENT_ENGIN
|
|
|
20
20
|
TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
|
|
21
21
|
TAccountRentPayer extends string ? WritableAccount<TAccountRentPayer> : TAccountRentPayer,
|
|
22
22
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
23
|
+
TAccountMintCap extends string ? WritableAccount<TAccountMintCap> : TAccountMintCap,
|
|
23
24
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
24
25
|
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
25
26
|
...TRemainingAccounts
|
|
@@ -34,7 +35,7 @@ export type CloseIntentInstructionDataArgs = {
|
|
|
34
35
|
export declare function getCloseIntentInstructionDataEncoder(): Encoder<CloseIntentInstructionDataArgs>;
|
|
35
36
|
export declare function getCloseIntentInstructionDataDecoder(): Decoder<CloseIntentInstructionData>;
|
|
36
37
|
export declare function getCloseIntentInstructionDataCodec(): Codec<CloseIntentInstructionDataArgs, CloseIntentInstructionData>;
|
|
37
|
-
export type CloseIntentAsyncInput<TAccountCranker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput = InstructionAccountInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountRentPayer extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
38
|
+
export type CloseIntentAsyncInput<TAccountCranker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput = InstructionAccountInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountRentPayer extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
38
39
|
cranker: TAccountCranker;
|
|
39
40
|
intent: TAccountIntent;
|
|
40
41
|
vault?: TAccountVault;
|
|
@@ -44,14 +45,15 @@ export type CloseIntentAsyncInput<TAccountCranker extends InstructionSignerInput
|
|
|
44
45
|
owner: TAccountOwner;
|
|
45
46
|
rentPayer: TAccountRentPayer;
|
|
46
47
|
tokenProgram?: TAccountTokenProgram;
|
|
48
|
+
mintCap?: TAccountMintCap;
|
|
47
49
|
eventAuthority: TAccountEventAuthority;
|
|
48
50
|
program: TAccountProgram;
|
|
49
51
|
ext: CloseIntentInstructionDataArgs["ext"];
|
|
50
52
|
};
|
|
51
|
-
export declare function getCloseIntentInstructionAsync<TAccountCranker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput, TAccountOwner extends InstructionAccountInput, TAccountRentPayer extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CloseIntentAsyncInput<TAccountCranker, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountCanonicalRefund, TAccountOwner, TAccountRentPayer, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
53
|
+
export declare function getCloseIntentInstructionAsync<TAccountCranker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput, TAccountOwner extends InstructionAccountInput, TAccountRentPayer extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CloseIntentAsyncInput<TAccountCranker, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountCanonicalRefund, TAccountOwner, TAccountRentPayer, TAccountTokenProgram, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
52
54
|
programAddress?: TProgramAddress;
|
|
53
|
-
}): Promise<CloseIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountCranker, InstructionAccountInputAddress<TAccountCranker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountRefundTo, InstructionAccountInputAddress<TAccountRefundTo>>, ResolvedInstructionAccountMeta<TAccountCanonicalRefund, InstructionAccountInputAddress<TAccountCanonicalRefund>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountRentPayer, InstructionAccountInputAddress<TAccountRentPayer>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
54
|
-
export type CloseIntentInput<TAccountCranker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput = InstructionAccountInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountRentPayer extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
55
|
+
}): Promise<CloseIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountCranker, InstructionAccountInputAddress<TAccountCranker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountRefundTo, InstructionAccountInputAddress<TAccountRefundTo>>, ResolvedInstructionAccountMeta<TAccountCanonicalRefund, InstructionAccountInputAddress<TAccountCanonicalRefund>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountRentPayer, InstructionAccountInputAddress<TAccountRentPayer>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
56
|
+
export type CloseIntentInput<TAccountCranker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput = InstructionAccountInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountRentPayer extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
55
57
|
cranker: TAccountCranker;
|
|
56
58
|
intent: TAccountIntent;
|
|
57
59
|
vault: TAccountVault;
|
|
@@ -61,13 +63,14 @@ export type CloseIntentInput<TAccountCranker extends InstructionSignerInput = In
|
|
|
61
63
|
owner: TAccountOwner;
|
|
62
64
|
rentPayer: TAccountRentPayer;
|
|
63
65
|
tokenProgram?: TAccountTokenProgram;
|
|
66
|
+
mintCap?: TAccountMintCap;
|
|
64
67
|
eventAuthority: TAccountEventAuthority;
|
|
65
68
|
program: TAccountProgram;
|
|
66
69
|
ext: CloseIntentInstructionDataArgs["ext"];
|
|
67
70
|
};
|
|
68
|
-
export declare function getCloseIntentInstruction<TAccountCranker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput, TAccountOwner extends InstructionAccountInput, TAccountRentPayer extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CloseIntentInput<TAccountCranker, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountCanonicalRefund, TAccountOwner, TAccountRentPayer, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
71
|
+
export declare function getCloseIntentInstruction<TAccountCranker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput, TAccountOwner extends InstructionAccountInput, TAccountRentPayer extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CloseIntentInput<TAccountCranker, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountCanonicalRefund, TAccountOwner, TAccountRentPayer, TAccountTokenProgram, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
69
72
|
programAddress?: TProgramAddress;
|
|
70
|
-
}): CloseIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountCranker, InstructionAccountInputAddress<TAccountCranker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountRefundTo, InstructionAccountInputAddress<TAccountRefundTo>>, ResolvedInstructionAccountMeta<TAccountCanonicalRefund, InstructionAccountInputAddress<TAccountCanonicalRefund>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountRentPayer, InstructionAccountInputAddress<TAccountRentPayer>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
73
|
+
}): CloseIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountCranker, InstructionAccountInputAddress<TAccountCranker>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountRefundTo, InstructionAccountInputAddress<TAccountRefundTo>>, ResolvedInstructionAccountMeta<TAccountCanonicalRefund, InstructionAccountInputAddress<TAccountCanonicalRefund>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountRentPayer, InstructionAccountInputAddress<TAccountRentPayer>>, ResolvedInstructionAccountMeta<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
71
74
|
export type ParsedCloseIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
72
75
|
programAddress: Address<TProgram>;
|
|
73
76
|
accounts: {
|
|
@@ -80,8 +83,9 @@ export type ParsedCloseIntentInstruction<TProgram extends string = typeof INTENT
|
|
|
80
83
|
owner: TAccountMetas[6];
|
|
81
84
|
rentPayer: TAccountMetas[7];
|
|
82
85
|
tokenProgram: TAccountMetas[8];
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
mintCap?: TAccountMetas[9] | undefined;
|
|
87
|
+
eventAuthority: TAccountMetas[10];
|
|
88
|
+
program: TAccountMetas[11];
|
|
85
89
|
};
|
|
86
90
|
data: CloseIntentInstructionData;
|
|
87
91
|
};
|
|
@@ -66,6 +66,11 @@ export async function getCloseIntentInstructionAsync(input, config) {
|
|
|
66
66
|
isSigner: false,
|
|
67
67
|
isWritable: false,
|
|
68
68
|
},
|
|
69
|
+
mintCap: {
|
|
70
|
+
value: input.mintCap ?? null,
|
|
71
|
+
isSigner: false,
|
|
72
|
+
isWritable: true,
|
|
73
|
+
},
|
|
69
74
|
eventAuthority: {
|
|
70
75
|
value: input.eventAuthority ?? null,
|
|
71
76
|
isSigner: false,
|
|
@@ -101,6 +106,7 @@ export async function getCloseIntentInstructionAsync(input, config) {
|
|
|
101
106
|
getAccountMeta("owner", accounts.owner),
|
|
102
107
|
getAccountMeta("rentPayer", accounts.rentPayer),
|
|
103
108
|
getAccountMeta("tokenProgram", accounts.tokenProgram),
|
|
109
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
104
110
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
105
111
|
getAccountMeta("program", accounts.program),
|
|
106
112
|
],
|
|
@@ -144,6 +150,11 @@ export function getCloseIntentInstruction(input, config) {
|
|
|
144
150
|
isSigner: false,
|
|
145
151
|
isWritable: false,
|
|
146
152
|
},
|
|
153
|
+
mintCap: {
|
|
154
|
+
value: input.mintCap ?? null,
|
|
155
|
+
isSigner: false,
|
|
156
|
+
isWritable: true,
|
|
157
|
+
},
|
|
147
158
|
eventAuthority: {
|
|
148
159
|
value: input.eventAuthority ?? null,
|
|
149
160
|
isSigner: false,
|
|
@@ -174,6 +185,7 @@ export function getCloseIntentInstruction(input, config) {
|
|
|
174
185
|
getAccountMeta("owner", accounts.owner),
|
|
175
186
|
getAccountMeta("rentPayer", accounts.rentPayer),
|
|
176
187
|
getAccountMeta("tokenProgram", accounts.tokenProgram),
|
|
188
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
177
189
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
178
190
|
getAccountMeta("program", accounts.program),
|
|
179
191
|
],
|
|
@@ -182,10 +194,10 @@ export function getCloseIntentInstruction(input, config) {
|
|
|
182
194
|
});
|
|
183
195
|
}
|
|
184
196
|
export function parseCloseIntentInstruction(instruction) {
|
|
185
|
-
if (instruction.accounts.length <
|
|
197
|
+
if (instruction.accounts.length < 12) {
|
|
186
198
|
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
187
199
|
actualAccountMetas: instruction.accounts.length,
|
|
188
|
-
expectedAccountMetas:
|
|
200
|
+
expectedAccountMetas: 12,
|
|
189
201
|
});
|
|
190
202
|
}
|
|
191
203
|
let accountIndex = 0;
|
|
@@ -194,6 +206,12 @@ export function parseCloseIntentInstruction(instruction) {
|
|
|
194
206
|
accountIndex += 1;
|
|
195
207
|
return accountMeta;
|
|
196
208
|
};
|
|
209
|
+
const getNextOptionalAccount = () => {
|
|
210
|
+
const accountMeta = getNextAccount();
|
|
211
|
+
return accountMeta.address === INTENT_ENGINE_PROGRAM_ADDRESS
|
|
212
|
+
? undefined
|
|
213
|
+
: accountMeta;
|
|
214
|
+
};
|
|
197
215
|
return {
|
|
198
216
|
programAddress: instruction.programAddress,
|
|
199
217
|
accounts: {
|
|
@@ -206,6 +224,7 @@ export function parseCloseIntentInstruction(instruction) {
|
|
|
206
224
|
owner: getNextAccount(),
|
|
207
225
|
rentPayer: getNextAccount(),
|
|
208
226
|
tokenProgram: getNextAccount(),
|
|
227
|
+
mintCap: getNextOptionalAccount(),
|
|
209
228
|
eventAuthority: getNextAccount(),
|
|
210
229
|
program: getNextAccount(),
|
|
211
230
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"closeIntent.js","sourceRoot":"","sources":["../../../../generated/client/instructions/closeIntent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,0BAA0B,GAAuB,IAAI,UAAU,CAAC;IAC3E,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;CACrC,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC;IAC9C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,0BAA0B,CAC3B,CAAC;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"closeIntent.js","sourceRoot":"","sources":["../../../../generated/client/instructions/closeIntent.ts"],"names":[],"mappings":"A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
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from "@solana/kit";
|
|
9
|
+
import { type InstructionAccountInput, type InstructionAccountInputAddress, type ResolvedInstructionAccountMeta } from "@solana/kit/program-client-core";
|
|
10
|
+
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
11
|
+
export declare const CLOSE_LEGACY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
|
+
export declare function getCloseLegacyDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type CloseLegacyInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountAccount extends string | AccountMeta<string> = string, TAccountPayee extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountStakeTo extends string | AccountMeta<string> = string, TAccountFeeTo extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountAccount extends string ? WritableAccount<TAccountAccount> : TAccountAccount,
|
|
15
|
+
TAccountPayee extends string ? WritableAccount<TAccountPayee> : TAccountPayee,
|
|
16
|
+
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
17
|
+
TAccountVault extends string ? ReadonlyAccount<TAccountVault> : TAccountVault,
|
|
18
|
+
TAccountIntent extends string ? ReadonlyAccount<TAccountIntent> : TAccountIntent,
|
|
19
|
+
TAccountStakeTo extends string ? WritableAccount<TAccountStakeTo> : TAccountStakeTo,
|
|
20
|
+
TAccountFeeTo extends string ? WritableAccount<TAccountFeeTo> : TAccountFeeTo,
|
|
21
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
22
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
23
|
+
...TRemainingAccounts
|
|
24
|
+
]>;
|
|
25
|
+
export type CloseLegacyInstructionData = {
|
|
26
|
+
discriminator: ReadonlyUint8Array;
|
|
27
|
+
};
|
|
28
|
+
export type CloseLegacyInstructionDataArgs = {};
|
|
29
|
+
export declare function getCloseLegacyInstructionDataEncoder(): FixedSizeEncoder<CloseLegacyInstructionDataArgs>;
|
|
30
|
+
export declare function getCloseLegacyInstructionDataDecoder(): FixedSizeDecoder<CloseLegacyInstructionData>;
|
|
31
|
+
export declare function getCloseLegacyInstructionDataCodec(): FixedSizeCodec<CloseLegacyInstructionDataArgs, CloseLegacyInstructionData>;
|
|
32
|
+
export type CloseLegacyInput<TAccountAccount extends InstructionAccountInput = InstructionAccountInput, TAccountPayee extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
33
|
+
account: TAccountAccount;
|
|
34
|
+
payee: TAccountPayee;
|
|
35
|
+
config?: TAccountConfig;
|
|
36
|
+
vault?: TAccountVault;
|
|
37
|
+
intent?: TAccountIntent;
|
|
38
|
+
stakeTo?: TAccountStakeTo;
|
|
39
|
+
feeTo?: TAccountFeeTo;
|
|
40
|
+
eventAuthority: TAccountEventAuthority;
|
|
41
|
+
program: TAccountProgram;
|
|
42
|
+
};
|
|
43
|
+
export declare function getCloseLegacyInstruction<TAccountAccount extends InstructionAccountInput, TAccountPayee extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CloseLegacyInput<TAccountAccount, TAccountPayee, TAccountConfig, TAccountVault, TAccountIntent, TAccountStakeTo, TAccountFeeTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
44
|
+
programAddress?: TProgramAddress;
|
|
45
|
+
}): CloseLegacyInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAccount, InstructionAccountInputAddress<TAccountAccount>>, ResolvedInstructionAccountMeta<TAccountPayee, InstructionAccountInputAddress<TAccountPayee>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
46
|
+
export type ParsedCloseLegacyInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
47
|
+
programAddress: Address<TProgram>;
|
|
48
|
+
accounts: {
|
|
49
|
+
account: TAccountMetas[0];
|
|
50
|
+
payee: TAccountMetas[1];
|
|
51
|
+
config?: TAccountMetas[2] | undefined;
|
|
52
|
+
vault?: TAccountMetas[3] | undefined;
|
|
53
|
+
intent?: TAccountMetas[4] | undefined;
|
|
54
|
+
stakeTo?: TAccountMetas[5] | undefined;
|
|
55
|
+
feeTo?: TAccountMetas[6] | undefined;
|
|
56
|
+
eventAuthority: TAccountMetas[7];
|
|
57
|
+
program: TAccountMetas[8];
|
|
58
|
+
};
|
|
59
|
+
data: CloseLegacyInstructionData;
|
|
60
|
+
};
|
|
61
|
+
export declare function parseCloseLegacyInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseLegacyInstruction<TProgram, TAccountMetas>;
|