@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
|
@@ -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 EXPIRE_INTENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
12
|
export declare function getExpireIntentDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type ExpireIntentInstruction<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, 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 ExpireIntentInstruction<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, 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,
|
|
@@ -18,6 +18,7 @@ export type ExpireIntentInstruction<TProgram extends string = typeof INTENT_ENGI
|
|
|
18
18
|
TAccountRefundTo extends string ? WritableAccount<TAccountRefundTo> : TAccountRefundTo,
|
|
19
19
|
TAccountCanonicalRefund extends string ? ReadonlyAccount<TAccountCanonicalRefund> : TAccountCanonicalRefund,
|
|
20
20
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
21
|
+
TAccountMintCap extends string ? WritableAccount<TAccountMintCap> : TAccountMintCap,
|
|
21
22
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
22
23
|
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
23
24
|
...TRemainingAccounts
|
|
@@ -32,7 +33,7 @@ export type ExpireIntentInstructionDataArgs = {
|
|
|
32
33
|
export declare function getExpireIntentInstructionDataEncoder(): Encoder<ExpireIntentInstructionDataArgs>;
|
|
33
34
|
export declare function getExpireIntentInstructionDataDecoder(): Decoder<ExpireIntentInstructionData>;
|
|
34
35
|
export declare function getExpireIntentInstructionDataCodec(): Codec<ExpireIntentInstructionDataArgs, ExpireIntentInstructionData>;
|
|
35
|
-
export type ExpireIntentAsyncInput<TAccountCranker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
36
|
+
export type ExpireIntentAsyncInput<TAccountCranker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
36
37
|
cranker: TAccountCranker;
|
|
37
38
|
intent: TAccountIntent;
|
|
38
39
|
vault?: TAccountVault;
|
|
@@ -40,14 +41,15 @@ export type ExpireIntentAsyncInput<TAccountCranker extends InstructionSignerInpu
|
|
|
40
41
|
refundTo: TAccountRefundTo;
|
|
41
42
|
canonicalRefund: TAccountCanonicalRefund;
|
|
42
43
|
tokenProgram?: TAccountTokenProgram;
|
|
44
|
+
mintCap?: TAccountMintCap;
|
|
43
45
|
eventAuthority: TAccountEventAuthority;
|
|
44
46
|
program: TAccountProgram;
|
|
45
47
|
ext: ExpireIntentInstructionDataArgs["ext"];
|
|
46
48
|
};
|
|
47
|
-
export declare function getExpireIntentInstructionAsync<TAccountCranker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: ExpireIntentAsyncInput<TAccountCranker, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountCanonicalRefund, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
49
|
+
export declare function getExpireIntentInstructionAsync<TAccountCranker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: ExpireIntentAsyncInput<TAccountCranker, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountCanonicalRefund, TAccountTokenProgram, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
48
50
|
programAddress?: TProgramAddress;
|
|
49
|
-
}): Promise<ExpireIntentInstruction<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<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
50
|
-
export type ExpireIntentInput<TAccountCranker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
51
|
+
}): Promise<ExpireIntentInstruction<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<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
52
|
+
export type ExpireIntentInput<TAccountCranker extends InstructionSignerInput = InstructionSignerInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput = InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput = InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
51
53
|
cranker: TAccountCranker;
|
|
52
54
|
intent: TAccountIntent;
|
|
53
55
|
vault: TAccountVault;
|
|
@@ -55,13 +57,14 @@ export type ExpireIntentInput<TAccountCranker extends InstructionSignerInput = I
|
|
|
55
57
|
refundTo: TAccountRefundTo;
|
|
56
58
|
canonicalRefund: TAccountCanonicalRefund;
|
|
57
59
|
tokenProgram?: TAccountTokenProgram;
|
|
60
|
+
mintCap?: TAccountMintCap;
|
|
58
61
|
eventAuthority: TAccountEventAuthority;
|
|
59
62
|
program: TAccountProgram;
|
|
60
63
|
ext: ExpireIntentInstructionDataArgs["ext"];
|
|
61
64
|
};
|
|
62
|
-
export declare function getExpireIntentInstruction<TAccountCranker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: ExpireIntentInput<TAccountCranker, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountCanonicalRefund, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
65
|
+
export declare function getExpireIntentInstruction<TAccountCranker extends InstructionSignerInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountRefundTo extends InstructionAccountInput, TAccountCanonicalRefund extends InstructionAccountInput, TAccountTokenProgram extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: ExpireIntentInput<TAccountCranker, TAccountIntent, TAccountVault, TAccountInputMint, TAccountRefundTo, TAccountCanonicalRefund, TAccountTokenProgram, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
63
66
|
programAddress?: TProgramAddress;
|
|
64
|
-
}): ExpireIntentInstruction<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<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
67
|
+
}): ExpireIntentInstruction<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<TAccountTokenProgram, InstructionAccountInputAddress<TAccountTokenProgram>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
65
68
|
export type ParsedExpireIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
66
69
|
programAddress: Address<TProgram>;
|
|
67
70
|
accounts: {
|
|
@@ -72,8 +75,9 @@ export type ParsedExpireIntentInstruction<TProgram extends string = typeof INTEN
|
|
|
72
75
|
refundTo: TAccountMetas[4];
|
|
73
76
|
canonicalRefund: TAccountMetas[5];
|
|
74
77
|
tokenProgram: TAccountMetas[6];
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
mintCap?: TAccountMetas[7] | undefined;
|
|
79
|
+
eventAuthority: TAccountMetas[8];
|
|
80
|
+
program: TAccountMetas[9];
|
|
77
81
|
};
|
|
78
82
|
data: ExpireIntentInstructionData;
|
|
79
83
|
};
|
|
@@ -60,6 +60,11 @@ export async function getExpireIntentInstructionAsync(input, config) {
|
|
|
60
60
|
isSigner: false,
|
|
61
61
|
isWritable: false,
|
|
62
62
|
},
|
|
63
|
+
mintCap: {
|
|
64
|
+
value: input.mintCap ?? null,
|
|
65
|
+
isSigner: false,
|
|
66
|
+
isWritable: true,
|
|
67
|
+
},
|
|
63
68
|
eventAuthority: {
|
|
64
69
|
value: input.eventAuthority ?? null,
|
|
65
70
|
isSigner: false,
|
|
@@ -93,6 +98,7 @@ export async function getExpireIntentInstructionAsync(input, config) {
|
|
|
93
98
|
getAccountMeta("refundTo", accounts.refundTo),
|
|
94
99
|
getAccountMeta("canonicalRefund", accounts.canonicalRefund),
|
|
95
100
|
getAccountMeta("tokenProgram", accounts.tokenProgram),
|
|
101
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
96
102
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
97
103
|
getAccountMeta("program", accounts.program),
|
|
98
104
|
],
|
|
@@ -130,6 +136,11 @@ export function getExpireIntentInstruction(input, config) {
|
|
|
130
136
|
isSigner: false,
|
|
131
137
|
isWritable: false,
|
|
132
138
|
},
|
|
139
|
+
mintCap: {
|
|
140
|
+
value: input.mintCap ?? null,
|
|
141
|
+
isSigner: false,
|
|
142
|
+
isWritable: true,
|
|
143
|
+
},
|
|
133
144
|
eventAuthority: {
|
|
134
145
|
value: input.eventAuthority ?? null,
|
|
135
146
|
isSigner: false,
|
|
@@ -158,6 +169,7 @@ export function getExpireIntentInstruction(input, config) {
|
|
|
158
169
|
getAccountMeta("refundTo", accounts.refundTo),
|
|
159
170
|
getAccountMeta("canonicalRefund", accounts.canonicalRefund),
|
|
160
171
|
getAccountMeta("tokenProgram", accounts.tokenProgram),
|
|
172
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
161
173
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
162
174
|
getAccountMeta("program", accounts.program),
|
|
163
175
|
],
|
|
@@ -166,10 +178,10 @@ export function getExpireIntentInstruction(input, config) {
|
|
|
166
178
|
});
|
|
167
179
|
}
|
|
168
180
|
export function parseExpireIntentInstruction(instruction) {
|
|
169
|
-
if (instruction.accounts.length <
|
|
181
|
+
if (instruction.accounts.length < 10) {
|
|
170
182
|
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
171
183
|
actualAccountMetas: instruction.accounts.length,
|
|
172
|
-
expectedAccountMetas:
|
|
184
|
+
expectedAccountMetas: 10,
|
|
173
185
|
});
|
|
174
186
|
}
|
|
175
187
|
let accountIndex = 0;
|
|
@@ -178,6 +190,12 @@ export function parseExpireIntentInstruction(instruction) {
|
|
|
178
190
|
accountIndex += 1;
|
|
179
191
|
return accountMeta;
|
|
180
192
|
};
|
|
193
|
+
const getNextOptionalAccount = () => {
|
|
194
|
+
const accountMeta = getNextAccount();
|
|
195
|
+
return accountMeta.address === INTENT_ENGINE_PROGRAM_ADDRESS
|
|
196
|
+
? undefined
|
|
197
|
+
: accountMeta;
|
|
198
|
+
};
|
|
181
199
|
return {
|
|
182
200
|
programAddress: instruction.programAddress,
|
|
183
201
|
accounts: {
|
|
@@ -188,6 +206,7 @@ export function parseExpireIntentInstruction(instruction) {
|
|
|
188
206
|
refundTo: getNextAccount(),
|
|
189
207
|
canonicalRefund: getNextAccount(),
|
|
190
208
|
tokenProgram: getNextAccount(),
|
|
209
|
+
mintCap: getNextOptionalAccount(),
|
|
191
210
|
eventAuthority: getNextAccount(),
|
|
192
211
|
program: getNextAccount(),
|
|
193
212
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expireIntent.js","sourceRoot":"","sources":["../../../../generated/client/instructions/expireIntent.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,GAAG,EAAE,EAAE,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":"expireIntent.js","sourceRoot":"","sources":["../../../../generated/client/instructions/expireIntent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,cAA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B,eAAe,EAAE,cAAc,EAAE;YACjC,YAAY,EAAE,cAAc,EAAE;YAC9B,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,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 FILL_ATTESTED_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
12
|
export declare function getFillAttestedDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type FillAttestedInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountSolver extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountPayee extends string | AccountMeta<string> = string, TAccountFeeTo extends string | AccountMeta<string> = string, TAccountPartnerTo extends string | AccountMeta<string> = string, TAccountJudgeTo extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountInstructions extends string | AccountMeta<string> = string, TAccountClaims extends string | AccountMeta<string> = string, TAccountStakeTo 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<[
|
|
13
|
+
export type FillAttestedInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountSolver extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountPayee extends string | AccountMeta<string> = string, TAccountFeeTo extends string | AccountMeta<string> = string, TAccountPartnerTo extends string | AccountMeta<string> = string, TAccountJudgeTo extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountInstructions extends string | AccountMeta<string> = string, TAccountClaims extends string | AccountMeta<string> = string, TAccountStakeTo extends string | AccountMeta<string> = string, 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
|
TAccountSolver extends string ? ReadonlySignerAccount<TAccountSolver> & AccountSignerMeta<TAccountSolver> : TAccountSolver,
|
|
15
15
|
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
16
16
|
TAccountIntent extends string ? WritableAccount<TAccountIntent> : TAccountIntent,
|
|
@@ -24,6 +24,7 @@ export type FillAttestedInstruction<TProgram extends string = typeof INTENT_ENGI
|
|
|
24
24
|
TAccountInstructions extends string ? ReadonlyAccount<TAccountInstructions> : TAccountInstructions,
|
|
25
25
|
TAccountClaims extends string ? WritableAccount<TAccountClaims> : TAccountClaims,
|
|
26
26
|
TAccountStakeTo extends string ? WritableAccount<TAccountStakeTo> : TAccountStakeTo,
|
|
27
|
+
TAccountMintCap extends string ? WritableAccount<TAccountMintCap> : TAccountMintCap,
|
|
27
28
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
28
29
|
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
29
30
|
...TRemainingAccounts
|
|
@@ -44,7 +45,7 @@ export type FillAttestedInstructionDataArgs = {
|
|
|
44
45
|
export declare function getFillAttestedInstructionDataEncoder(): Encoder<FillAttestedInstructionDataArgs>;
|
|
45
46
|
export declare function getFillAttestedInstructionDataDecoder(): Decoder<FillAttestedInstructionData>;
|
|
46
47
|
export declare function getFillAttestedInstructionDataCodec(): Codec<FillAttestedInstructionDataArgs, FillAttestedInstructionData>;
|
|
47
|
-
export type FillAttestedAsyncInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountPayee extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
48
|
+
export type FillAttestedAsyncInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountPayee extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
48
49
|
solver: TAccountSolver;
|
|
49
50
|
config?: TAccountConfig;
|
|
50
51
|
intent: TAccountIntent;
|
|
@@ -58,6 +59,7 @@ export type FillAttestedAsyncInput<TAccountSolver extends InstructionSignerInput
|
|
|
58
59
|
instructions: TAccountInstructions;
|
|
59
60
|
claims?: TAccountClaims;
|
|
60
61
|
stakeTo?: TAccountStakeTo;
|
|
62
|
+
mintCap?: TAccountMintCap;
|
|
61
63
|
eventAuthority: TAccountEventAuthority;
|
|
62
64
|
program: TAccountProgram;
|
|
63
65
|
amountIn: FillAttestedInstructionDataArgs["amountIn"];
|
|
@@ -65,10 +67,10 @@ export type FillAttestedAsyncInput<TAccountSolver extends InstructionSignerInput
|
|
|
65
67
|
maxFeeBps: FillAttestedInstructionDataArgs["maxFeeBps"];
|
|
66
68
|
ext: FillAttestedInstructionDataArgs["ext"];
|
|
67
69
|
};
|
|
68
|
-
export declare function getFillAttestedInstructionAsync<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountPayee extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillAttestedAsyncInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountPayee, TAccountFeeTo, TAccountPartnerTo, TAccountJudgeTo, TAccountInputTokenProgram, TAccountInstructions, TAccountClaims, TAccountStakeTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
70
|
+
export declare function getFillAttestedInstructionAsync<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountPayee extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillAttestedAsyncInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountPayee, TAccountFeeTo, TAccountPartnerTo, TAccountJudgeTo, TAccountInputTokenProgram, TAccountInstructions, TAccountClaims, TAccountStakeTo, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
69
71
|
programAddress?: TProgramAddress;
|
|
70
|
-
}): Promise<FillAttestedInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountPayee, InstructionAccountInputAddress<TAccountPayee>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountJudgeTo, InstructionAccountInputAddress<TAccountJudgeTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
71
|
-
export type FillAttestedInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountPayee extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
72
|
+
}): Promise<FillAttestedInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountPayee, InstructionAccountInputAddress<TAccountPayee>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountJudgeTo, InstructionAccountInputAddress<TAccountJudgeTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
73
|
+
export type FillAttestedInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountPayee extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
72
74
|
solver: TAccountSolver;
|
|
73
75
|
config?: TAccountConfig;
|
|
74
76
|
intent: TAccountIntent;
|
|
@@ -82,6 +84,7 @@ export type FillAttestedInput<TAccountSolver extends InstructionSignerInput = In
|
|
|
82
84
|
instructions: TAccountInstructions;
|
|
83
85
|
claims?: TAccountClaims;
|
|
84
86
|
stakeTo?: TAccountStakeTo;
|
|
87
|
+
mintCap?: TAccountMintCap;
|
|
85
88
|
eventAuthority: TAccountEventAuthority;
|
|
86
89
|
program: TAccountProgram;
|
|
87
90
|
amountIn: FillAttestedInstructionDataArgs["amountIn"];
|
|
@@ -89,9 +92,9 @@ export type FillAttestedInput<TAccountSolver extends InstructionSignerInput = In
|
|
|
89
92
|
maxFeeBps: FillAttestedInstructionDataArgs["maxFeeBps"];
|
|
90
93
|
ext: FillAttestedInstructionDataArgs["ext"];
|
|
91
94
|
};
|
|
92
|
-
export declare function getFillAttestedInstruction<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountPayee extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillAttestedInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountPayee, TAccountFeeTo, TAccountPartnerTo, TAccountJudgeTo, TAccountInputTokenProgram, TAccountInstructions, TAccountClaims, TAccountStakeTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
95
|
+
export declare function getFillAttestedInstruction<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountPayee extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillAttestedInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountPayee, TAccountFeeTo, TAccountPartnerTo, TAccountJudgeTo, TAccountInputTokenProgram, TAccountInstructions, TAccountClaims, TAccountStakeTo, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
93
96
|
programAddress?: TProgramAddress;
|
|
94
|
-
}): FillAttestedInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountPayee, InstructionAccountInputAddress<TAccountPayee>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountJudgeTo, InstructionAccountInputAddress<TAccountJudgeTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
97
|
+
}): FillAttestedInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountPayee, InstructionAccountInputAddress<TAccountPayee>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountJudgeTo, InstructionAccountInputAddress<TAccountJudgeTo>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
95
98
|
export type ParsedFillAttestedInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
96
99
|
programAddress: Address<TProgram>;
|
|
97
100
|
accounts: {
|
|
@@ -108,8 +111,9 @@ export type ParsedFillAttestedInstruction<TProgram extends string = typeof INTEN
|
|
|
108
111
|
instructions: TAccountMetas[10];
|
|
109
112
|
claims?: TAccountMetas[11] | undefined;
|
|
110
113
|
stakeTo?: TAccountMetas[12] | undefined;
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
mintCap?: TAccountMetas[13] | undefined;
|
|
115
|
+
eventAuthority: TAccountMetas[14];
|
|
116
|
+
program: TAccountMetas[15];
|
|
113
117
|
};
|
|
114
118
|
data: FillAttestedInstructionData;
|
|
115
119
|
};
|
|
@@ -80,6 +80,11 @@ export async function getFillAttestedInstructionAsync(input, config) {
|
|
|
80
80
|
isSigner: false,
|
|
81
81
|
isWritable: true,
|
|
82
82
|
},
|
|
83
|
+
mintCap: {
|
|
84
|
+
value: input.mintCap ?? null,
|
|
85
|
+
isSigner: false,
|
|
86
|
+
isWritable: true,
|
|
87
|
+
},
|
|
83
88
|
eventAuthority: {
|
|
84
89
|
value: input.eventAuthority ?? null,
|
|
85
90
|
isSigner: false,
|
|
@@ -119,6 +124,7 @@ export async function getFillAttestedInstructionAsync(input, config) {
|
|
|
119
124
|
getAccountMeta("instructions", accounts.instructions),
|
|
120
125
|
getAccountMeta("claims", accounts.claims),
|
|
121
126
|
getAccountMeta("stakeTo", accounts.stakeTo),
|
|
127
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
122
128
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
123
129
|
getAccountMeta("program", accounts.program),
|
|
124
130
|
],
|
|
@@ -170,6 +176,11 @@ export function getFillAttestedInstruction(input, config) {
|
|
|
170
176
|
isSigner: false,
|
|
171
177
|
isWritable: true,
|
|
172
178
|
},
|
|
179
|
+
mintCap: {
|
|
180
|
+
value: input.mintCap ?? null,
|
|
181
|
+
isSigner: false,
|
|
182
|
+
isWritable: true,
|
|
183
|
+
},
|
|
173
184
|
eventAuthority: {
|
|
174
185
|
value: input.eventAuthority ?? null,
|
|
175
186
|
isSigner: false,
|
|
@@ -204,6 +215,7 @@ export function getFillAttestedInstruction(input, config) {
|
|
|
204
215
|
getAccountMeta("instructions", accounts.instructions),
|
|
205
216
|
getAccountMeta("claims", accounts.claims),
|
|
206
217
|
getAccountMeta("stakeTo", accounts.stakeTo),
|
|
218
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
207
219
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
208
220
|
getAccountMeta("program", accounts.program),
|
|
209
221
|
],
|
|
@@ -212,10 +224,10 @@ export function getFillAttestedInstruction(input, config) {
|
|
|
212
224
|
});
|
|
213
225
|
}
|
|
214
226
|
export function parseFillAttestedInstruction(instruction) {
|
|
215
|
-
if (instruction.accounts.length <
|
|
227
|
+
if (instruction.accounts.length < 16) {
|
|
216
228
|
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
217
229
|
actualAccountMetas: instruction.accounts.length,
|
|
218
|
-
expectedAccountMetas:
|
|
230
|
+
expectedAccountMetas: 16,
|
|
219
231
|
});
|
|
220
232
|
}
|
|
221
233
|
let accountIndex = 0;
|
|
@@ -246,6 +258,7 @@ export function parseFillAttestedInstruction(instruction) {
|
|
|
246
258
|
instructions: getNextAccount(),
|
|
247
259
|
claims: getNextOptionalAccount(),
|
|
248
260
|
stakeTo: getNextOptionalAccount(),
|
|
261
|
+
mintCap: getNextOptionalAccount(),
|
|
249
262
|
eventAuthority: getNextAccount(),
|
|
250
263
|
program: getNextAccount(),
|
|
251
264
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fillAttested.js","sourceRoot":"","sources":["../../../../generated/client/instructions/fillAttested.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,aAAa,EACb,aAAa,EACb,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,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG;CACtC,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":"fillAttested.js","sourceRoot":"","sources":["../../../../generated/client/instructions/fillAttested.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,aAAa,EACb,aAAa,EACb,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,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG;CACtC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC;IAC/C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,2BAA2B,CAC5B,CAAC;AACJ,CAAC;AA8FD,MAAM,UAAU,qCAAqC;IACnD,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC,UAAU,EAAE,aAAa,EAAE,CAAC;QAC7B,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC;QAC3B,CAAC,WAAW,EAAE,aAAa,EAAE,CAAC;QAC9B,CAAC,KAAK,EAAE,oBAAoB,CAAC,eAAe,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;KAClE,CAAC,EACF,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,G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EAAE,cAAc,EAAE;YACxB,MAAM,EAAE,cAAc,EAAE;YACxB,MAAM,EAAE,cAAc,EAAE;YACxB,KAAK,EAAE,cAAc,EAAE;YACvB,SAAS,EAAE,cAAc,EAAE;YAC3B,KAAK,EAAE,cAAc,EAAE;YACvB,KAAK,EAAE,sBAAsB,EAAE;YAC/B,SAAS,EAAE,sBAAsB,EAAE;YACnC,OAAO,EAAE,sBAAsB,EAAE;YACjC,iBAAiB,EAAE,cAAc,EAAE;YACnC,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,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 FILL_ATTESTED_COMMITTEE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
12
12
|
export declare function getFillAttestedCommitteeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
-
export type FillAttestedCommitteeInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountSolver extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountPayee extends string | AccountMeta<string> = string, TAccountFeeTo extends string | AccountMeta<string> = string, TAccountPartnerTo extends string | AccountMeta<string> = string, TAccountJudgeTo extends string | AccountMeta<string> = string, TAccountCommittee extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountInstructions extends string | AccountMeta<string> = string, TAccountClaims extends string | AccountMeta<string> = string, TAccountStakeTo 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<[
|
|
13
|
+
export type FillAttestedCommitteeInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountSolver extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountIntent extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountPayee extends string | AccountMeta<string> = string, TAccountFeeTo extends string | AccountMeta<string> = string, TAccountPartnerTo extends string | AccountMeta<string> = string, TAccountJudgeTo extends string | AccountMeta<string> = string, TAccountCommittee extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountInstructions extends string | AccountMeta<string> = string, TAccountClaims extends string | AccountMeta<string> = string, TAccountStakeTo extends string | AccountMeta<string> = string, 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
|
TAccountSolver extends string ? ReadonlySignerAccount<TAccountSolver> & AccountSignerMeta<TAccountSolver> : TAccountSolver,
|
|
15
15
|
TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
|
|
16
16
|
TAccountIntent extends string ? WritableAccount<TAccountIntent> : TAccountIntent,
|
|
@@ -25,6 +25,7 @@ export type FillAttestedCommitteeInstruction<TProgram extends string = typeof IN
|
|
|
25
25
|
TAccountInstructions extends string ? ReadonlyAccount<TAccountInstructions> : TAccountInstructions,
|
|
26
26
|
TAccountClaims extends string ? WritableAccount<TAccountClaims> : TAccountClaims,
|
|
27
27
|
TAccountStakeTo extends string ? WritableAccount<TAccountStakeTo> : TAccountStakeTo,
|
|
28
|
+
TAccountMintCap extends string ? WritableAccount<TAccountMintCap> : TAccountMintCap,
|
|
28
29
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
29
30
|
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
30
31
|
...TRemainingAccounts
|
|
@@ -47,7 +48,7 @@ export type FillAttestedCommitteeInstructionDataArgs = {
|
|
|
47
48
|
export declare function getFillAttestedCommitteeInstructionDataEncoder(): Encoder<FillAttestedCommitteeInstructionDataArgs>;
|
|
48
49
|
export declare function getFillAttestedCommitteeInstructionDataDecoder(): Decoder<FillAttestedCommitteeInstructionData>;
|
|
49
50
|
export declare function getFillAttestedCommitteeInstructionDataCodec(): Codec<FillAttestedCommitteeInstructionDataArgs, FillAttestedCommitteeInstructionData>;
|
|
50
|
-
export type FillAttestedCommitteeAsyncInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountPayee extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput = InstructionAccountInput, TAccountCommittee extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
51
|
+
export type FillAttestedCommitteeAsyncInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountPayee extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput = InstructionAccountInput, TAccountCommittee extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
51
52
|
solver: TAccountSolver;
|
|
52
53
|
config?: TAccountConfig;
|
|
53
54
|
intent: TAccountIntent;
|
|
@@ -62,6 +63,7 @@ export type FillAttestedCommitteeAsyncInput<TAccountSolver extends InstructionSi
|
|
|
62
63
|
instructions: TAccountInstructions;
|
|
63
64
|
claims?: TAccountClaims;
|
|
64
65
|
stakeTo?: TAccountStakeTo;
|
|
66
|
+
mintCap?: TAccountMintCap;
|
|
65
67
|
eventAuthority: TAccountEventAuthority;
|
|
66
68
|
program: TAccountProgram;
|
|
67
69
|
amountIn: FillAttestedCommitteeInstructionDataArgs["amountIn"];
|
|
@@ -70,10 +72,10 @@ export type FillAttestedCommitteeAsyncInput<TAccountSolver extends InstructionSi
|
|
|
70
72
|
signers: FillAttestedCommitteeInstructionDataArgs["signers"];
|
|
71
73
|
ext: FillAttestedCommitteeInstructionDataArgs["ext"];
|
|
72
74
|
};
|
|
73
|
-
export declare function getFillAttestedCommitteeInstructionAsync<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountPayee extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput, TAccountCommittee extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillAttestedCommitteeAsyncInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountPayee, TAccountFeeTo, TAccountPartnerTo, TAccountJudgeTo, TAccountCommittee, TAccountInputTokenProgram, TAccountInstructions, TAccountClaims, TAccountStakeTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
75
|
+
export declare function getFillAttestedCommitteeInstructionAsync<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountPayee extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput, TAccountCommittee extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillAttestedCommitteeAsyncInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountPayee, TAccountFeeTo, TAccountPartnerTo, TAccountJudgeTo, TAccountCommittee, TAccountInputTokenProgram, TAccountInstructions, TAccountClaims, TAccountStakeTo, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
74
76
|
programAddress?: TProgramAddress;
|
|
75
|
-
}): Promise<FillAttestedCommitteeInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountPayee, InstructionAccountInputAddress<TAccountPayee>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountJudgeTo, InstructionAccountInputAddress<TAccountJudgeTo>>, ResolvedInstructionAccountMeta<TAccountCommittee, InstructionAccountInputAddress<TAccountCommittee>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
76
|
-
export type FillAttestedCommitteeInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountPayee extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput = InstructionAccountInput, TAccountCommittee extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
77
|
+
}): Promise<FillAttestedCommitteeInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountPayee, InstructionAccountInputAddress<TAccountPayee>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountJudgeTo, InstructionAccountInputAddress<TAccountJudgeTo>>, ResolvedInstructionAccountMeta<TAccountCommittee, InstructionAccountInputAddress<TAccountCommittee>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
|
|
78
|
+
export type FillAttestedCommitteeInput<TAccountSolver extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountPayee extends InstructionAccountInput = InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput = InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput = InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput = InstructionAccountInput, TAccountCommittee extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountInstructions extends InstructionAccountInput = InstructionAccountInput, TAccountClaims extends InstructionAccountInput = InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
|
|
77
79
|
solver: TAccountSolver;
|
|
78
80
|
config?: TAccountConfig;
|
|
79
81
|
intent: TAccountIntent;
|
|
@@ -88,6 +90,7 @@ export type FillAttestedCommitteeInput<TAccountSolver extends InstructionSignerI
|
|
|
88
90
|
instructions: TAccountInstructions;
|
|
89
91
|
claims?: TAccountClaims;
|
|
90
92
|
stakeTo?: TAccountStakeTo;
|
|
93
|
+
mintCap?: TAccountMintCap;
|
|
91
94
|
eventAuthority: TAccountEventAuthority;
|
|
92
95
|
program: TAccountProgram;
|
|
93
96
|
amountIn: FillAttestedCommitteeInstructionDataArgs["amountIn"];
|
|
@@ -96,9 +99,9 @@ export type FillAttestedCommitteeInput<TAccountSolver extends InstructionSignerI
|
|
|
96
99
|
signers: FillAttestedCommitteeInstructionDataArgs["signers"];
|
|
97
100
|
ext: FillAttestedCommitteeInstructionDataArgs["ext"];
|
|
98
101
|
};
|
|
99
|
-
export declare function getFillAttestedCommitteeInstruction<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountPayee extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput, TAccountCommittee extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillAttestedCommitteeInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountPayee, TAccountFeeTo, TAccountPartnerTo, TAccountJudgeTo, TAccountCommittee, TAccountInputTokenProgram, TAccountInstructions, TAccountClaims, TAccountStakeTo, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
102
|
+
export declare function getFillAttestedCommitteeInstruction<TAccountSolver extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountPayee extends InstructionAccountInput, TAccountFeeTo extends InstructionAccountInput, TAccountPartnerTo extends InstructionAccountInput, TAccountJudgeTo extends InstructionAccountInput, TAccountCommittee extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountInstructions extends InstructionAccountInput, TAccountClaims extends InstructionAccountInput, TAccountStakeTo extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: FillAttestedCommitteeInput<TAccountSolver, TAccountConfig, TAccountIntent, TAccountVault, TAccountInputMint, TAccountPayee, TAccountFeeTo, TAccountPartnerTo, TAccountJudgeTo, TAccountCommittee, TAccountInputTokenProgram, TAccountInstructions, TAccountClaims, TAccountStakeTo, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
100
103
|
programAddress?: TProgramAddress;
|
|
101
|
-
}): FillAttestedCommitteeInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountPayee, InstructionAccountInputAddress<TAccountPayee>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountJudgeTo, InstructionAccountInputAddress<TAccountJudgeTo>>, ResolvedInstructionAccountMeta<TAccountCommittee, InstructionAccountInputAddress<TAccountCommittee>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
104
|
+
}): FillAttestedCommitteeInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountSolver, InstructionAccountInputAddress<TAccountSolver>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountPayee, InstructionAccountInputAddress<TAccountPayee>>, ResolvedInstructionAccountMeta<TAccountFeeTo, InstructionAccountInputAddress<TAccountFeeTo>>, ResolvedInstructionAccountMeta<TAccountPartnerTo, InstructionAccountInputAddress<TAccountPartnerTo>>, ResolvedInstructionAccountMeta<TAccountJudgeTo, InstructionAccountInputAddress<TAccountJudgeTo>>, ResolvedInstructionAccountMeta<TAccountCommittee, InstructionAccountInputAddress<TAccountCommittee>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountInstructions, InstructionAccountInputAddress<TAccountInstructions>>, ResolvedInstructionAccountMeta<TAccountClaims, InstructionAccountInputAddress<TAccountClaims>>, ResolvedInstructionAccountMeta<TAccountStakeTo, InstructionAccountInputAddress<TAccountStakeTo>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
|
|
102
105
|
export type ParsedFillAttestedCommitteeInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
103
106
|
programAddress: Address<TProgram>;
|
|
104
107
|
accounts: {
|
|
@@ -116,8 +119,9 @@ export type ParsedFillAttestedCommitteeInstruction<TProgram extends string = typ
|
|
|
116
119
|
instructions: TAccountMetas[11];
|
|
117
120
|
claims?: TAccountMetas[12] | undefined;
|
|
118
121
|
stakeTo?: TAccountMetas[13] | undefined;
|
|
119
|
-
|
|
120
|
-
|
|
122
|
+
mintCap?: TAccountMetas[14] | undefined;
|
|
123
|
+
eventAuthority: TAccountMetas[15];
|
|
124
|
+
program: TAccountMetas[16];
|
|
121
125
|
};
|
|
122
126
|
data: FillAttestedCommitteeInstructionData;
|
|
123
127
|
};
|
|
@@ -88,6 +88,11 @@ export async function getFillAttestedCommitteeInstructionAsync(input, config) {
|
|
|
88
88
|
isSigner: false,
|
|
89
89
|
isWritable: true,
|
|
90
90
|
},
|
|
91
|
+
mintCap: {
|
|
92
|
+
value: input.mintCap ?? null,
|
|
93
|
+
isSigner: false,
|
|
94
|
+
isWritable: true,
|
|
95
|
+
},
|
|
91
96
|
eventAuthority: {
|
|
92
97
|
value: input.eventAuthority ?? null,
|
|
93
98
|
isSigner: false,
|
|
@@ -128,6 +133,7 @@ export async function getFillAttestedCommitteeInstructionAsync(input, config) {
|
|
|
128
133
|
getAccountMeta("instructions", accounts.instructions),
|
|
129
134
|
getAccountMeta("claims", accounts.claims),
|
|
130
135
|
getAccountMeta("stakeTo", accounts.stakeTo),
|
|
136
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
131
137
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
132
138
|
getAccountMeta("program", accounts.program),
|
|
133
139
|
],
|
|
@@ -184,6 +190,11 @@ export function getFillAttestedCommitteeInstruction(input, config) {
|
|
|
184
190
|
isSigner: false,
|
|
185
191
|
isWritable: true,
|
|
186
192
|
},
|
|
193
|
+
mintCap: {
|
|
194
|
+
value: input.mintCap ?? null,
|
|
195
|
+
isSigner: false,
|
|
196
|
+
isWritable: true,
|
|
197
|
+
},
|
|
187
198
|
eventAuthority: {
|
|
188
199
|
value: input.eventAuthority ?? null,
|
|
189
200
|
isSigner: false,
|
|
@@ -219,6 +230,7 @@ export function getFillAttestedCommitteeInstruction(input, config) {
|
|
|
219
230
|
getAccountMeta("instructions", accounts.instructions),
|
|
220
231
|
getAccountMeta("claims", accounts.claims),
|
|
221
232
|
getAccountMeta("stakeTo", accounts.stakeTo),
|
|
233
|
+
getAccountMeta("mintCap", accounts.mintCap),
|
|
222
234
|
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
223
235
|
getAccountMeta("program", accounts.program),
|
|
224
236
|
],
|
|
@@ -227,10 +239,10 @@ export function getFillAttestedCommitteeInstruction(input, config) {
|
|
|
227
239
|
});
|
|
228
240
|
}
|
|
229
241
|
export function parseFillAttestedCommitteeInstruction(instruction) {
|
|
230
|
-
if (instruction.accounts.length <
|
|
242
|
+
if (instruction.accounts.length < 17) {
|
|
231
243
|
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
232
244
|
actualAccountMetas: instruction.accounts.length,
|
|
233
|
-
expectedAccountMetas:
|
|
245
|
+
expectedAccountMetas: 17,
|
|
234
246
|
});
|
|
235
247
|
}
|
|
236
248
|
let accountIndex = 0;
|
|
@@ -262,6 +274,7 @@ export function parseFillAttestedCommitteeInstruction(instruction) {
|
|
|
262
274
|
instructions: getNextAccount(),
|
|
263
275
|
claims: getNextOptionalAccount(),
|
|
264
276
|
stakeTo: getNextOptionalAccount(),
|
|
277
|
+
mintCap: getNextOptionalAccount(),
|
|
265
278
|
eventAuthority: getNextAccount(),
|
|
266
279
|
program: getNextAccount(),
|
|
267
280
|
},
|