@intent-engine/core 0.1.26 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/generated/client/accounts/claimBoard.d.ts +50 -0
  2. package/dist/generated/client/accounts/claimBoard.js +77 -0
  3. package/dist/generated/client/accounts/claimBoard.js.map +1 -0
  4. package/dist/generated/client/accounts/committee.d.ts +48 -0
  5. package/dist/generated/client/accounts/committee.js +75 -0
  6. package/dist/generated/client/accounts/committee.js.map +1 -0
  7. package/dist/generated/client/accounts/config.d.ts +2 -0
  8. package/dist/generated/client/accounts/config.js +4 -2
  9. package/dist/generated/client/accounts/config.js.map +1 -1
  10. package/dist/generated/client/accounts/index.d.ts +4 -0
  11. package/dist/generated/client/accounts/index.js +4 -0
  12. package/dist/generated/client/accounts/index.js.map +1 -1
  13. package/dist/generated/client/accounts/intent.d.ts +2 -0
  14. package/dist/generated/client/accounts/intent.js +4 -2
  15. package/dist/generated/client/accounts/intent.js.map +1 -1
  16. package/dist/generated/client/accounts/mintCap.d.ts +48 -0
  17. package/dist/generated/client/accounts/mintCap.js +75 -0
  18. package/dist/generated/client/accounts/mintCap.js.map +1 -0
  19. package/dist/generated/client/accounts/profile.d.ts +48 -0
  20. package/dist/generated/client/accounts/profile.js +81 -0
  21. package/dist/generated/client/accounts/profile.js.map +1 -0
  22. package/dist/generated/client/errors/intentEngine.d.ts +31 -1
  23. package/dist/generated/client/errors/intentEngine.js +45 -0
  24. package/dist/generated/client/errors/intentEngine.js.map +1 -1
  25. package/dist/generated/client/events/capsRequiredSet.d.ts +22 -0
  26. package/dist/generated/client/events/capsRequiredSet.js +32 -0
  27. package/dist/generated/client/events/capsRequiredSet.js.map +1 -0
  28. package/dist/generated/client/events/claimDropped.d.ts +28 -0
  29. package/dist/generated/client/events/claimDropped.js +40 -0
  30. package/dist/generated/client/events/claimDropped.js.map +1 -0
  31. package/dist/generated/client/events/claimsClosed.d.ts +23 -0
  32. package/dist/generated/client/events/claimsClosed.js +38 -0
  33. package/dist/generated/client/events/claimsClosed.js.map +1 -0
  34. package/dist/generated/client/events/claimsOpened.d.ts +30 -0
  35. package/dist/generated/client/events/claimsOpened.js +42 -0
  36. package/dist/generated/client/events/claimsOpened.js.map +1 -0
  37. package/dist/generated/client/events/committeeAttested.d.ts +24 -0
  38. package/dist/generated/client/events/committeeAttested.js +40 -0
  39. package/dist/generated/client/events/committeeAttested.js.map +1 -0
  40. package/dist/generated/client/events/committeeCreated.d.ts +25 -0
  41. package/dist/generated/client/events/committeeCreated.js +42 -0
  42. package/dist/generated/client/events/committeeCreated.js.map +1 -0
  43. package/dist/generated/client/events/index.d.ts +11 -0
  44. package/dist/generated/client/events/index.js +11 -0
  45. package/dist/generated/client/events/index.js.map +1 -1
  46. package/dist/generated/client/events/jobClaimed.d.ts +30 -0
  47. package/dist/generated/client/events/jobClaimed.js +42 -0
  48. package/dist/generated/client/events/jobClaimed.js.map +1 -0
  49. package/dist/generated/client/events/mintCapSet.d.ts +36 -0
  50. package/dist/generated/client/events/mintCapSet.js +48 -0
  51. package/dist/generated/client/events/mintCapSet.js.map +1 -0
  52. package/dist/generated/client/events/profileClosed.d.ts +22 -0
  53. package/dist/generated/client/events/profileClosed.js +32 -0
  54. package/dist/generated/client/events/profileClosed.js.map +1 -0
  55. package/dist/generated/client/events/profileSet.d.ts +26 -0
  56. package/dist/generated/client/events/profileSet.js +50 -0
  57. package/dist/generated/client/events/profileSet.js.map +1 -0
  58. package/dist/generated/client/events/stakeMoved.d.ts +32 -0
  59. package/dist/generated/client/events/stakeMoved.js +44 -0
  60. package/dist/generated/client/events/stakeMoved.js.map +1 -0
  61. package/dist/generated/client/instructions/claimJob.d.ts +72 -0
  62. package/dist/generated/client/instructions/claimJob.js +163 -0
  63. package/dist/generated/client/instructions/claimJob.js.map +1 -0
  64. package/dist/generated/client/instructions/closeProfile.d.ts +55 -0
  65. package/dist/generated/client/instructions/closeProfile.js +131 -0
  66. package/dist/generated/client/instructions/closeProfile.js.map +1 -0
  67. package/dist/generated/client/instructions/createCommittee.d.ts +76 -0
  68. package/dist/generated/client/instructions/createCommittee.js +163 -0
  69. package/dist/generated/client/instructions/createCommittee.js.map +1 -0
  70. package/dist/generated/client/instructions/createIntent.d.ts +13 -9
  71. package/dist/generated/client/instructions/createIntent.js +21 -2
  72. package/dist/generated/client/instructions/createIntent.js.map +1 -1
  73. package/dist/generated/client/instructions/createIntentByAgent.d.ts +13 -9
  74. package/dist/generated/client/instructions/createIntentByAgent.js +21 -2
  75. package/dist/generated/client/instructions/createIntentByAgent.js.map +1 -1
  76. package/dist/generated/client/instructions/createIntentSigned.d.ts +13 -9
  77. package/dist/generated/client/instructions/createIntentSigned.js +15 -2
  78. package/dist/generated/client/instructions/createIntentSigned.js.map +1 -1
  79. package/dist/generated/client/instructions/createProfile.d.ts +65 -0
  80. package/dist/generated/client/instructions/createProfile.js +162 -0
  81. package/dist/generated/client/instructions/createProfile.js.map +1 -0
  82. package/dist/generated/client/instructions/dropClaim.d.ts +59 -0
  83. package/dist/generated/client/instructions/dropClaim.js +128 -0
  84. package/dist/generated/client/instructions/dropClaim.js.map +1 -0
  85. package/dist/generated/client/instructions/fillAttested.d.ts +17 -9
  86. package/dist/generated/client/instructions/fillAttested.js +20 -2
  87. package/dist/generated/client/instructions/fillAttested.js.map +1 -1
  88. package/dist/generated/client/instructions/fillAttestedCommittee.d.ts +124 -0
  89. package/dist/generated/client/instructions/fillAttestedCommittee.js +271 -0
  90. package/dist/generated/client/instructions/fillAttestedCommittee.js.map +1 -0
  91. package/dist/generated/client/instructions/fillAttestedSplit.d.ts +22 -17
  92. package/dist/generated/client/instructions/fillAttestedSplit.js +24 -7
  93. package/dist/generated/client/instructions/fillAttestedSplit.js.map +1 -1
  94. package/dist/generated/client/instructions/fillAttestedSplitCommittee.d.ts +157 -0
  95. package/dist/generated/client/instructions/fillAttestedSplitCommittee.js +373 -0
  96. package/dist/generated/client/instructions/fillAttestedSplitCommittee.js.map +1 -0
  97. package/dist/generated/client/instructions/index.d.ts +12 -0
  98. package/dist/generated/client/instructions/index.js +12 -0
  99. package/dist/generated/client/instructions/index.js.map +1 -1
  100. package/dist/generated/client/instructions/openClaims.d.ts +72 -0
  101. package/dist/generated/client/instructions/openClaims.js +160 -0
  102. package/dist/generated/client/instructions/openClaims.js.map +1 -0
  103. package/dist/generated/client/instructions/setCapsRequired.d.ts +50 -0
  104. package/dist/generated/client/instructions/setCapsRequired.js +93 -0
  105. package/dist/generated/client/instructions/setCapsRequired.js.map +1 -0
  106. package/dist/generated/client/instructions/setMintCap.d.ts +84 -0
  107. package/dist/generated/client/instructions/setMintCap.js +188 -0
  108. package/dist/generated/client/instructions/setMintCap.js.map +1 -0
  109. package/dist/generated/client/instructions/settleClaims.d.ts +63 -0
  110. package/dist/generated/client/instructions/settleClaims.js +139 -0
  111. package/dist/generated/client/instructions/settleClaims.js.map +1 -0
  112. package/dist/generated/client/instructions/updateProfile.d.ts +61 -0
  113. package/dist/generated/client/instructions/updateProfile.js +140 -0
  114. package/dist/generated/client/instructions/updateProfile.js.map +1 -0
  115. package/dist/generated/client/pdas/board.d.ts +14 -0
  116. package/dist/generated/client/pdas/board.js +19 -0
  117. package/dist/generated/client/pdas/board.js.map +1 -0
  118. package/dist/generated/client/pdas/committee.d.ts +14 -0
  119. package/dist/generated/client/pdas/committee.js +19 -0
  120. package/dist/generated/client/pdas/committee.js.map +1 -0
  121. package/dist/generated/client/pdas/index.d.ts +4 -0
  122. package/dist/generated/client/pdas/index.js +4 -0
  123. package/dist/generated/client/pdas/index.js.map +1 -1
  124. package/dist/generated/client/pdas/mintCap.d.ts +14 -0
  125. package/dist/generated/client/pdas/mintCap.js +19 -0
  126. package/dist/generated/client/pdas/mintCap.js.map +1 -0
  127. package/dist/generated/client/pdas/profile.d.ts +14 -0
  128. package/dist/generated/client/pdas/profile.js +19 -0
  129. package/dist/generated/client/pdas/profile.js.map +1 -0
  130. package/dist/generated/client/programs/intentEngine.d.ts +190 -92
  131. package/dist/generated/client/programs/intentEngine.js +336 -91
  132. package/dist/generated/client/programs/intentEngine.js.map +1 -1
  133. package/dist/generated/client/types/index.d.ts +2 -0
  134. package/dist/generated/client/types/index.js +2 -0
  135. package/dist/generated/client/types/index.js.map +1 -1
  136. package/dist/generated/client/types/profileFields.d.ts +18 -0
  137. package/dist/generated/client/types/profileFields.js +34 -0
  138. package/dist/generated/client/types/profileFields.js.map +1 -0
  139. package/dist/generated/client/types/splitClaim.d.ts +16 -0
  140. package/dist/generated/client/types/splitClaim.js +24 -0
  141. package/dist/generated/client/types/splitClaim.js.map +1 -0
  142. package/dist/src/builders.d.ts +1 -1
  143. package/dist/src/builders.js +1 -1
  144. package/dist/src/builders.js.map +1 -1
  145. package/dist/src/claims.d.ts +47 -0
  146. package/dist/src/claims.js +69 -0
  147. package/dist/src/claims.js.map +1 -0
  148. package/dist/src/committee.d.ts +40 -0
  149. package/dist/src/committee.js +145 -0
  150. package/dist/src/committee.js.map +1 -0
  151. package/dist/src/describe.d.ts +1 -0
  152. package/dist/src/describe.js +3 -0
  153. package/dist/src/describe.js.map +1 -1
  154. package/dist/src/errors.d.ts +1 -1
  155. package/dist/src/errors.js +5 -0
  156. package/dist/src/errors.js.map +1 -1
  157. package/dist/src/events.d.ts +12 -1
  158. package/dist/src/events.js +15 -1
  159. package/dist/src/events.js.map +1 -1
  160. package/dist/src/fill-builders.d.ts +15 -3
  161. package/dist/src/fill-builders.js +37 -53
  162. package/dist/src/fill-builders.js.map +1 -1
  163. package/dist/src/index.d.ts +3 -0
  164. package/dist/src/index.js +3 -0
  165. package/dist/src/index.js.map +1 -1
  166. package/dist/src/intent-builders.d.ts +7 -3
  167. package/dist/src/intent-builders.js +11 -4
  168. package/dist/src/intent-builders.js.map +1 -1
  169. package/dist/src/memo.d.ts +9 -0
  170. package/dist/src/memo.js +28 -0
  171. package/dist/src/memo.js.map +1 -1
  172. package/dist/src/mint-caps.d.ts +31 -0
  173. package/dist/src/mint-caps.js +73 -0
  174. package/dist/src/mint-caps.js.map +1 -0
  175. package/dist/src/state.d.ts +3 -0
  176. package/dist/src/state.js +5 -0
  177. package/dist/src/state.js.map +1 -1
  178. package/generated/idl.json +1990 -63
  179. package/package.json +3 -3
@@ -0,0 +1,163 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { combineCodec, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, } from "@solana/kit";
9
+ import { getAccountMetaFactory, getNonNullResolvedInstructionInput, } from "@solana/kit/program-client-core";
10
+ import { findCommitteePda } from "../pdas/index.js";
11
+ import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
12
+ export const CREATE_COMMITTEE_DISCRIMINATOR = new Uint8Array([216, 137, 130, 24, 113, 11, 204, 15]);
13
+ export function getCreateCommitteeDiscriminatorBytes() {
14
+ return fixEncoderSize(getBytesEncoder(), 8).encode(CREATE_COMMITTEE_DISCRIMINATOR);
15
+ }
16
+ export function getCreateCommitteeInstructionDataEncoder() {
17
+ return transformEncoder(getStructEncoder([
18
+ ["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
19
+ ["id", fixEncoderSize(getBytesEncoder(), 32)],
20
+ ["members", getArrayEncoder(getAddressEncoder())],
21
+ ["threshold", getU8Encoder()],
22
+ ["feeWallet", getAddressEncoder()],
23
+ ]), (value) => ({ ...value, discriminator: CREATE_COMMITTEE_DISCRIMINATOR }));
24
+ }
25
+ export function getCreateCommitteeInstructionDataDecoder() {
26
+ return getStructDecoder([
27
+ ["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
28
+ ["id", fixDecoderSize(getBytesDecoder(), 32)],
29
+ ["members", getArrayDecoder(getAddressDecoder())],
30
+ ["threshold", getU8Decoder()],
31
+ ["feeWallet", getAddressDecoder()],
32
+ ]);
33
+ }
34
+ export function getCreateCommitteeInstructionDataCodec() {
35
+ return combineCodec(getCreateCommitteeInstructionDataEncoder(), getCreateCommitteeInstructionDataDecoder());
36
+ }
37
+ export async function getCreateCommitteeInstructionAsync(input, config) {
38
+ // Program address.
39
+ const programAddress = config?.programAddress ?? INTENT_ENGINE_PROGRAM_ADDRESS;
40
+ // Account meta helper.
41
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
42
+ // Original accounts.
43
+ const originalAccounts = {
44
+ payer: { value: input.payer ?? null, isSigner: true, isWritable: true },
45
+ committee: {
46
+ value: input.committee ?? null,
47
+ isSigner: false,
48
+ isWritable: true,
49
+ },
50
+ systemProgram: {
51
+ value: input.systemProgram ?? null,
52
+ isSigner: false,
53
+ isWritable: false,
54
+ },
55
+ eventAuthority: {
56
+ value: input.eventAuthority ?? null,
57
+ isSigner: false,
58
+ isWritable: false,
59
+ },
60
+ program: {
61
+ value: input.program ?? null,
62
+ isSigner: false,
63
+ isWritable: false,
64
+ },
65
+ };
66
+ const accounts = originalAccounts;
67
+ // Original args.
68
+ const args = { ...input };
69
+ // Resolve default values.
70
+ if (!accounts.committee.value) {
71
+ accounts.committee.value = await findCommitteePda({ id: getNonNullResolvedInstructionInput("id", args.id) }, { programAddress });
72
+ }
73
+ if (!accounts.systemProgram.value) {
74
+ accounts.systemProgram.value =
75
+ "11111111111111111111111111111111";
76
+ }
77
+ return Object.freeze({
78
+ accounts: [
79
+ getAccountMeta("payer", accounts.payer),
80
+ getAccountMeta("committee", accounts.committee),
81
+ getAccountMeta("systemProgram", accounts.systemProgram),
82
+ getAccountMeta("eventAuthority", accounts.eventAuthority),
83
+ getAccountMeta("program", accounts.program),
84
+ ],
85
+ data: getCreateCommitteeInstructionDataEncoder().encode(args),
86
+ programAddress,
87
+ });
88
+ }
89
+ export function getCreateCommitteeInstruction(input, config) {
90
+ // Program address.
91
+ const programAddress = config?.programAddress ?? INTENT_ENGINE_PROGRAM_ADDRESS;
92
+ // Account meta helper.
93
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
94
+ // Original accounts.
95
+ const originalAccounts = {
96
+ payer: { value: input.payer ?? null, isSigner: true, isWritable: true },
97
+ committee: {
98
+ value: input.committee ?? null,
99
+ isSigner: false,
100
+ isWritable: true,
101
+ },
102
+ systemProgram: {
103
+ value: input.systemProgram ?? null,
104
+ isSigner: false,
105
+ isWritable: false,
106
+ },
107
+ eventAuthority: {
108
+ value: input.eventAuthority ?? null,
109
+ isSigner: false,
110
+ isWritable: false,
111
+ },
112
+ program: {
113
+ value: input.program ?? null,
114
+ isSigner: false,
115
+ isWritable: false,
116
+ },
117
+ };
118
+ const accounts = originalAccounts;
119
+ // Original args.
120
+ const args = { ...input };
121
+ // Resolve default values.
122
+ if (!accounts.systemProgram.value) {
123
+ accounts.systemProgram.value =
124
+ "11111111111111111111111111111111";
125
+ }
126
+ return Object.freeze({
127
+ accounts: [
128
+ getAccountMeta("payer", accounts.payer),
129
+ getAccountMeta("committee", accounts.committee),
130
+ getAccountMeta("systemProgram", accounts.systemProgram),
131
+ getAccountMeta("eventAuthority", accounts.eventAuthority),
132
+ getAccountMeta("program", accounts.program),
133
+ ],
134
+ data: getCreateCommitteeInstructionDataEncoder().encode(args),
135
+ programAddress,
136
+ });
137
+ }
138
+ export function parseCreateCommitteeInstruction(instruction) {
139
+ if (instruction.accounts.length < 5) {
140
+ throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
141
+ actualAccountMetas: instruction.accounts.length,
142
+ expectedAccountMetas: 5,
143
+ });
144
+ }
145
+ let accountIndex = 0;
146
+ const getNextAccount = () => {
147
+ const accountMeta = instruction.accounts[accountIndex];
148
+ accountIndex += 1;
149
+ return accountMeta;
150
+ };
151
+ return {
152
+ programAddress: instruction.programAddress,
153
+ accounts: {
154
+ payer: getNextAccount(),
155
+ committee: getNextAccount(),
156
+ systemProgram: getNextAccount(),
157
+ eventAuthority: getNextAccount(),
158
+ program: getNextAccount(),
159
+ },
160
+ data: getCreateCommitteeInstructionDataDecoder().decode(instruction.data),
161
+ };
162
+ }
163
+ //# sourceMappingURL=createCommittee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCommittee.js","sourceRoot":"","sources":["../../../../generated/client/instructions/createCommittee.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,kCAAkC,GAMnC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,8BAA8B,GACzC,IAAI,UAAU,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;AAExD,MAAM,UAAU,oCAAoC;IAClD,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,8BAA8B,CAC/B,CAAC;AACJ,CAAC;AAkDD,MAAM,UAAU,wCAAwC;IACtD,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACv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AAE;SAC1B;QACD,IAAI,EAAE,wCAAwC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KAC1E,CAAC;AACJ,CAAC"}
@@ -11,7 +11,7 @@ import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
11
11
  import { type CreateIntentArgs, type CreateIntentArgsArgs } from "../types/index.js";
12
12
  export declare const CREATE_INTENT_DISCRIMINATOR: ReadonlyUint8Array;
13
13
  export declare function getCreateIntentDiscriminatorBytes(): ReadonlyUint8Array;
14
- export type CreateIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountUserState extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountOutputMint extends string | AccountMeta<string> = string, TAccountOwnerInput extends string | AccountMeta<string> = string, TAccountReceiver extends string | AccountMeta<string> = string, TAccountReceiverAuthority extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountOutputTokenProgram extends string | AccountMeta<string> = string, TAccountTreasury 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<[
14
+ export type CreateIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountUserState extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountOutputMint extends string | AccountMeta<string> = string, TAccountOwnerInput extends string | AccountMeta<string> = string, TAccountReceiver extends string | AccountMeta<string> = string, TAccountReceiverAuthority extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountOutputTokenProgram extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", 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<[
15
15
  TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
16
16
  TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig,
17
17
  TAccountUserState extends string ? WritableAccount<TAccountUserState> : TAccountUserState,
@@ -26,6 +26,7 @@ export type CreateIntentInstruction<TProgram extends string = typeof INTENT_ENGI
26
26
  TAccountOutputTokenProgram extends string ? ReadonlyAccount<TAccountOutputTokenProgram> : TAccountOutputTokenProgram,
27
27
  TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
28
28
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
29
+ TAccountMintCap extends string ? WritableAccount<TAccountMintCap> : TAccountMintCap,
29
30
  TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
30
31
  TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
31
32
  ...TRemainingAccounts
@@ -40,7 +41,7 @@ export type CreateIntentInstructionDataArgs = {
40
41
  export declare function getCreateIntentInstructionDataEncoder(): Encoder<CreateIntentInstructionDataArgs>;
41
42
  export declare function getCreateIntentInstructionDataDecoder(): Decoder<CreateIntentInstructionData>;
42
43
  export declare function getCreateIntentInstructionDataCodec(): Codec<CreateIntentInstructionDataArgs, CreateIntentInstructionData>;
43
- export type CreateIntentAsyncInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountUserState extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTreasury extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
44
+ export type CreateIntentAsyncInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountUserState extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTreasury extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
44
45
  owner: TAccountOwner;
45
46
  config?: TAccountConfig;
46
47
  userState?: TAccountUserState;
@@ -55,14 +56,15 @@ export type CreateIntentAsyncInput<TAccountOwner extends InstructionSignerInput
55
56
  outputTokenProgram: TAccountOutputTokenProgram;
56
57
  treasury: TAccountTreasury;
57
58
  systemProgram?: TAccountSystemProgram;
59
+ mintCap?: TAccountMintCap;
58
60
  eventAuthority: TAccountEventAuthority;
59
61
  program: TAccountProgram;
60
62
  args: CreateIntentInstructionDataArgs["args"];
61
63
  };
62
- export declare function getCreateIntentInstructionAsync<TAccountOwner extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountUserState extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountTreasury extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CreateIntentAsyncInput<TAccountOwner, TAccountConfig, TAccountUserState, TAccountIntent, TAccountInputMint, TAccountOutputMint, TAccountOwnerInput, TAccountReceiver, TAccountReceiverAuthority, TAccountVault, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountTreasury, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
64
+ export declare function getCreateIntentInstructionAsync<TAccountOwner extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountUserState extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountTreasury extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CreateIntentAsyncInput<TAccountOwner, TAccountConfig, TAccountUserState, TAccountIntent, TAccountInputMint, TAccountOutputMint, TAccountOwnerInput, TAccountReceiver, TAccountReceiverAuthority, TAccountVault, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountTreasury, TAccountSystemProgram, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
63
65
  programAddress?: TProgramAddress;
64
- }): Promise<CreateIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountUserState, InstructionAccountInputAddress<TAccountUserState>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountOwnerInput, InstructionAccountInputAddress<TAccountOwnerInput>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountReceiverAuthority, InstructionAccountInputAddress<TAccountReceiverAuthority>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountTreasury, InstructionAccountInputAddress<TAccountTreasury>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
65
- export type CreateIntentInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountUserState extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTreasury extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
66
+ }): Promise<CreateIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountUserState, InstructionAccountInputAddress<TAccountUserState>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountOwnerInput, InstructionAccountInputAddress<TAccountOwnerInput>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountReceiverAuthority, InstructionAccountInputAddress<TAccountReceiverAuthority>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountTreasury, InstructionAccountInputAddress<TAccountTreasury>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
67
+ export type CreateIntentInput<TAccountOwner extends InstructionSignerInput = InstructionSignerInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountUserState extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTreasury extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
66
68
  owner: TAccountOwner;
67
69
  config?: TAccountConfig;
68
70
  userState: TAccountUserState;
@@ -77,13 +79,14 @@ export type CreateIntentInput<TAccountOwner extends InstructionSignerInput = Ins
77
79
  outputTokenProgram: TAccountOutputTokenProgram;
78
80
  treasury: TAccountTreasury;
79
81
  systemProgram?: TAccountSystemProgram;
82
+ mintCap?: TAccountMintCap;
80
83
  eventAuthority: TAccountEventAuthority;
81
84
  program: TAccountProgram;
82
85
  args: CreateIntentInstructionDataArgs["args"];
83
86
  };
84
- export declare function getCreateIntentInstruction<TAccountOwner extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountUserState extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountTreasury extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CreateIntentInput<TAccountOwner, TAccountConfig, TAccountUserState, TAccountIntent, TAccountInputMint, TAccountOutputMint, TAccountOwnerInput, TAccountReceiver, TAccountReceiverAuthority, TAccountVault, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountTreasury, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
87
+ export declare function getCreateIntentInstruction<TAccountOwner extends InstructionSignerInput, TAccountConfig extends InstructionAccountInput, TAccountUserState extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountTreasury extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CreateIntentInput<TAccountOwner, TAccountConfig, TAccountUserState, TAccountIntent, TAccountInputMint, TAccountOutputMint, TAccountOwnerInput, TAccountReceiver, TAccountReceiverAuthority, TAccountVault, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountTreasury, TAccountSystemProgram, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
85
88
  programAddress?: TProgramAddress;
86
- }): CreateIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountUserState, InstructionAccountInputAddress<TAccountUserState>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountOwnerInput, InstructionAccountInputAddress<TAccountOwnerInput>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountReceiverAuthority, InstructionAccountInputAddress<TAccountReceiverAuthority>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountTreasury, InstructionAccountInputAddress<TAccountTreasury>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
89
+ }): CreateIntentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountUserState, InstructionAccountInputAddress<TAccountUserState>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountOwnerInput, InstructionAccountInputAddress<TAccountOwnerInput>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountReceiverAuthority, InstructionAccountInputAddress<TAccountReceiverAuthority>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountTreasury, InstructionAccountInputAddress<TAccountTreasury>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
87
90
  export type ParsedCreateIntentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
88
91
  programAddress: Address<TProgram>;
89
92
  accounts: {
@@ -101,8 +104,9 @@ export type ParsedCreateIntentInstruction<TProgram extends string = typeof INTEN
101
104
  outputTokenProgram: TAccountMetas[11];
102
105
  treasury: TAccountMetas[12];
103
106
  systemProgram: TAccountMetas[13];
104
- eventAuthority: TAccountMetas[14];
105
- program: TAccountMetas[15];
107
+ mintCap?: TAccountMetas[14] | undefined;
108
+ eventAuthority: TAccountMetas[15];
109
+ program: TAccountMetas[16];
106
110
  };
107
111
  data: CreateIntentInstructionData;
108
112
  };
@@ -92,6 +92,11 @@ export async function getCreateIntentInstructionAsync(input, config) {
92
92
  isSigner: false,
93
93
  isWritable: false,
94
94
  },
95
+ mintCap: {
96
+ value: input.mintCap ?? null,
97
+ isSigner: false,
98
+ isWritable: true,
99
+ },
95
100
  eventAuthority: {
96
101
  value: input.eventAuthority ?? null,
97
102
  isSigner: false,
@@ -141,6 +146,7 @@ export async function getCreateIntentInstructionAsync(input, config) {
141
146
  getAccountMeta("outputTokenProgram", accounts.outputTokenProgram),
142
147
  getAccountMeta("treasury", accounts.treasury),
143
148
  getAccountMeta("systemProgram", accounts.systemProgram),
149
+ getAccountMeta("mintCap", accounts.mintCap),
144
150
  getAccountMeta("eventAuthority", accounts.eventAuthority),
145
151
  getAccountMeta("program", accounts.program),
146
152
  ],
@@ -209,6 +215,11 @@ export function getCreateIntentInstruction(input, config) {
209
215
  isSigner: false,
210
216
  isWritable: false,
211
217
  },
218
+ mintCap: {
219
+ value: input.mintCap ?? null,
220
+ isSigner: false,
221
+ isWritable: true,
222
+ },
212
223
  eventAuthority: {
213
224
  value: input.eventAuthority ?? null,
214
225
  isSigner: false,
@@ -248,6 +259,7 @@ export function getCreateIntentInstruction(input, config) {
248
259
  getAccountMeta("outputTokenProgram", accounts.outputTokenProgram),
249
260
  getAccountMeta("treasury", accounts.treasury),
250
261
  getAccountMeta("systemProgram", accounts.systemProgram),
262
+ getAccountMeta("mintCap", accounts.mintCap),
251
263
  getAccountMeta("eventAuthority", accounts.eventAuthority),
252
264
  getAccountMeta("program", accounts.program),
253
265
  ],
@@ -256,10 +268,10 @@ export function getCreateIntentInstruction(input, config) {
256
268
  });
257
269
  }
258
270
  export function parseCreateIntentInstruction(instruction) {
259
- if (instruction.accounts.length < 16) {
271
+ if (instruction.accounts.length < 17) {
260
272
  throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
261
273
  actualAccountMetas: instruction.accounts.length,
262
- expectedAccountMetas: 16,
274
+ expectedAccountMetas: 17,
263
275
  });
264
276
  }
265
277
  let accountIndex = 0;
@@ -268,6 +280,12 @@ export function parseCreateIntentInstruction(instruction) {
268
280
  accountIndex += 1;
269
281
  return accountMeta;
270
282
  };
283
+ const getNextOptionalAccount = () => {
284
+ const accountMeta = getNextAccount();
285
+ return accountMeta.address === INTENT_ENGINE_PROGRAM_ADDRESS
286
+ ? undefined
287
+ : accountMeta;
288
+ };
271
289
  return {
272
290
  programAddress: instruction.programAddress,
273
291
  accounts: {
@@ -285,6 +303,7 @@ export function parseCreateIntentInstruction(instruction) {
285
303
  outputTokenProgram: getNextAccount(),
286
304
  treasury: getNextAccount(),
287
305
  systemProgram: getNextAccount(),
306
+ mintCap: getNextOptionalAccount(),
288
307
  eventAuthority: getNextAccount(),
289
308
  program: getNextAccount(),
290
309
  },
@@ -1 +1 @@
1
- {"version":3,"file":"createIntent.js","sourceRoot":"","sources":["../../../../generated/client/instructions/createIntent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,GAG3B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,2BAA2B,GAAuB,IAAI,UAAU,CAAC;IAC5E,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC;IAC/C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,2BAA2B,CAC5B,CAAC;AACJ,CAAC;AAuFD,MAAM,UAAU,qCAAqC;IACnD,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC,MAAM,EAAE,0BAA0B,EAA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rB,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,MAAM,WAAW,GAAI,WAAW,CAAC,QAA0B,CAAC,YAAY,CAAE,CAAC;QAC3E,YAAY,IAAI,CAAC,CAAC;QAClB,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,KAAK,EAAE,cAAc,EAAE;YACvB,MAAM,EAAE,cAAc,EAAE;YACxB,SAAS,EAAE,cAAc,EAAE;YAC3B,MAAM,EAAE,cAAc,EAAE;YACxB,SAAS,EAAE,cAAc,EAAE;YAC3B,UAAU,EAAE,cAAc,EAAE;YAC5B,UAAU,EAAE,cAAc,EAAE;YAC5B,QAAQ,EAAE,cAAc,EAAE;YAC1B,iBAAiB,EAAE,cAAc,EAAE;YACnC,KAAK,EAAE,cAAc,EAAE;YACvB,iBAAiB,EAAE,cAAc,EAAE;YACnC,kBAAkB,EAAE,cAAc,EAAE;YACpC,QAAQ,EAAE,cAAc,EAAE;YAC1B,aAAa,EAAE,cAAc,EAAE;YAC/B,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"}
1
+ {"version":3,"file":"createIntent.js","sourceRoot":"","sources":["../../../../generated/client/instructions/createIntent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,yDAAyD,EACzD,WAAW,EACX,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,wCAAwC,GAMzC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,kBAAkB,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AW,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,SAAS,EAAE,cAAc,EAAE;YAC3B,MAAM,EAAE,cAAc,EAAE;YACxB,SAAS,EAAE,cAAc,EAAE;YAC3B,UAAU,EAAE,cAAc,EAAE;YAC5B,UAAU,EAAE,cAAc,EAAE;YAC5B,QAAQ,EAAE,cAAc,EAAE;YAC1B,iBAAiB,EAAE,cAAc,EAAE;YACnC,KAAK,EAAE,cAAc,EAAE;YACvB,iBAAiB,EAAE,cAAc,EAAE;YACnC,kBAAkB,EAAE,cAAc,EAAE;YACpC,QAAQ,EAAE,cAAc,EAAE;YAC1B,aAAa,EAAE,cAAc,EAAE;YAC/B,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"}
@@ -11,7 +11,7 @@ import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
11
11
  import { type CreateIntentArgs, type CreateIntentArgsArgs } from "../types/index.js";
12
12
  export declare const CREATE_INTENT_BY_AGENT_DISCRIMINATOR: ReadonlyUint8Array;
13
13
  export declare function getCreateIntentByAgentDiscriminatorBytes(): ReadonlyUint8Array;
14
- export type CreateIntentByAgentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountAgent extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountMandate extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountUserState extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountOutputMint extends string | AccountMeta<string> = string, TAccountOwnerInput extends string | AccountMeta<string> = string, TAccountReceiver extends string | AccountMeta<string> = string, TAccountReceiverAuthority extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountDelegate extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountOutputTokenProgram extends string | AccountMeta<string> = string, TAccountTreasury 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<[
14
+ export type CreateIntentByAgentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountAgent extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountMandate extends string | AccountMeta<string> = string, TAccountConfig extends string | AccountMeta<string> = "6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz", TAccountUserState extends string | AccountMeta<string> = string, TAccountIntent extends string | AccountMeta<string> = string, TAccountInputMint extends string | AccountMeta<string> = string, TAccountOutputMint extends string | AccountMeta<string> = string, TAccountOwnerInput extends string | AccountMeta<string> = string, TAccountReceiver extends string | AccountMeta<string> = string, TAccountReceiverAuthority extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountDelegate extends string | AccountMeta<string> = string, TAccountInputTokenProgram extends string | AccountMeta<string> = string, TAccountOutputTokenProgram extends string | AccountMeta<string> = string, TAccountTreasury extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", 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<[
15
15
  TAccountAgent extends string ? WritableSignerAccount<TAccountAgent> & AccountSignerMeta<TAccountAgent> : TAccountAgent,
16
16
  TAccountOwner extends string ? ReadonlyAccount<TAccountOwner> : TAccountOwner,
17
17
  TAccountMandate extends string ? WritableAccount<TAccountMandate> : TAccountMandate,
@@ -29,6 +29,7 @@ export type CreateIntentByAgentInstruction<TProgram extends string = typeof INTE
29
29
  TAccountOutputTokenProgram extends string ? ReadonlyAccount<TAccountOutputTokenProgram> : TAccountOutputTokenProgram,
30
30
  TAccountTreasury extends string ? WritableAccount<TAccountTreasury> : TAccountTreasury,
31
31
  TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
32
+ TAccountMintCap extends string ? WritableAccount<TAccountMintCap> : TAccountMintCap,
32
33
  TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
33
34
  TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
34
35
  ...TRemainingAccounts
@@ -43,7 +44,7 @@ export type CreateIntentByAgentInstructionDataArgs = {
43
44
  export declare function getCreateIntentByAgentInstructionDataEncoder(): Encoder<CreateIntentByAgentInstructionDataArgs>;
44
45
  export declare function getCreateIntentByAgentInstructionDataDecoder(): Decoder<CreateIntentByAgentInstructionData>;
45
46
  export declare function getCreateIntentByAgentInstructionDataCodec(): Codec<CreateIntentByAgentInstructionDataArgs, CreateIntentByAgentInstructionData>;
46
- export type CreateIntentByAgentAsyncInput<TAccountAgent extends InstructionSignerInput = InstructionSignerInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountUserState extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountDelegate extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTreasury extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
47
+ export type CreateIntentByAgentAsyncInput<TAccountAgent extends InstructionSignerInput = InstructionSignerInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountUserState extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountDelegate extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTreasury extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
47
48
  agent: TAccountAgent;
48
49
  owner: TAccountOwner;
49
50
  mandate: TAccountMandate;
@@ -61,14 +62,15 @@ export type CreateIntentByAgentAsyncInput<TAccountAgent extends InstructionSigne
61
62
  outputTokenProgram: TAccountOutputTokenProgram;
62
63
  treasury: TAccountTreasury;
63
64
  systemProgram?: TAccountSystemProgram;
65
+ mintCap?: TAccountMintCap;
64
66
  eventAuthority: TAccountEventAuthority;
65
67
  program: TAccountProgram;
66
68
  args: CreateIntentByAgentInstructionDataArgs["args"];
67
69
  };
68
- export declare function getCreateIntentByAgentInstructionAsync<TAccountAgent extends InstructionSignerInput, TAccountOwner extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountUserState extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountDelegate extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountTreasury extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CreateIntentByAgentAsyncInput<TAccountAgent, TAccountOwner, TAccountMandate, TAccountConfig, TAccountUserState, TAccountIntent, TAccountInputMint, TAccountOutputMint, TAccountOwnerInput, TAccountReceiver, TAccountReceiverAuthority, TAccountVault, TAccountDelegate, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountTreasury, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
70
+ export declare function getCreateIntentByAgentInstructionAsync<TAccountAgent extends InstructionSignerInput, TAccountOwner extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountUserState extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountDelegate extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountTreasury extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CreateIntentByAgentAsyncInput<TAccountAgent, TAccountOwner, TAccountMandate, TAccountConfig, TAccountUserState, TAccountIntent, TAccountInputMint, TAccountOutputMint, TAccountOwnerInput, TAccountReceiver, TAccountReceiverAuthority, TAccountVault, TAccountDelegate, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountTreasury, TAccountSystemProgram, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
69
71
  programAddress?: TProgramAddress;
70
- }): Promise<CreateIntentByAgentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAgent, InstructionAccountInputAddress<TAccountAgent>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountUserState, InstructionAccountInputAddress<TAccountUserState>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountOwnerInput, InstructionAccountInputAddress<TAccountOwnerInput>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountReceiverAuthority, InstructionAccountInputAddress<TAccountReceiverAuthority>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountDelegate, InstructionAccountInputAddress<TAccountDelegate>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountTreasury, InstructionAccountInputAddress<TAccountTreasury>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
71
- export type CreateIntentByAgentInput<TAccountAgent extends InstructionSignerInput = InstructionSignerInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountUserState extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountDelegate extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTreasury extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
72
+ }): Promise<CreateIntentByAgentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAgent, InstructionAccountInputAddress<TAccountAgent>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountUserState, InstructionAccountInputAddress<TAccountUserState>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountOwnerInput, InstructionAccountInputAddress<TAccountOwnerInput>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountReceiverAuthority, InstructionAccountInputAddress<TAccountReceiverAuthority>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountDelegate, InstructionAccountInputAddress<TAccountDelegate>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountTreasury, InstructionAccountInputAddress<TAccountTreasury>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>>;
73
+ export type CreateIntentByAgentInput<TAccountAgent extends InstructionSignerInput = InstructionSignerInput, TAccountOwner extends InstructionAccountInput = InstructionAccountInput, TAccountMandate extends InstructionAccountInput = InstructionAccountInput, TAccountConfig extends InstructionAccountInput = InstructionAccountInput, TAccountUserState extends InstructionAccountInput = InstructionAccountInput, TAccountIntent extends InstructionAccountInput = InstructionAccountInput, TAccountInputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput = InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput = InstructionAccountInput, TAccountReceiver extends InstructionAccountInput = InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountVault extends InstructionAccountInput = InstructionAccountInput, TAccountDelegate extends InstructionAccountInput = InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput = InstructionAccountInput, TAccountTreasury extends InstructionAccountInput = InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput = InstructionAccountInput, TAccountMintCap extends InstructionAccountInput = InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput = InstructionAccountInput, TAccountProgram extends InstructionAccountInput = InstructionAccountInput> = {
72
74
  agent: TAccountAgent;
73
75
  owner: TAccountOwner;
74
76
  mandate: TAccountMandate;
@@ -86,13 +88,14 @@ export type CreateIntentByAgentInput<TAccountAgent extends InstructionSignerInpu
86
88
  outputTokenProgram: TAccountOutputTokenProgram;
87
89
  treasury: TAccountTreasury;
88
90
  systemProgram?: TAccountSystemProgram;
91
+ mintCap?: TAccountMintCap;
89
92
  eventAuthority: TAccountEventAuthority;
90
93
  program: TAccountProgram;
91
94
  args: CreateIntentByAgentInstructionDataArgs["args"];
92
95
  };
93
- export declare function getCreateIntentByAgentInstruction<TAccountAgent extends InstructionSignerInput, TAccountOwner extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountUserState extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountDelegate extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountTreasury extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CreateIntentByAgentInput<TAccountAgent, TAccountOwner, TAccountMandate, TAccountConfig, TAccountUserState, TAccountIntent, TAccountInputMint, TAccountOutputMint, TAccountOwnerInput, TAccountReceiver, TAccountReceiverAuthority, TAccountVault, TAccountDelegate, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountTreasury, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
96
+ export declare function getCreateIntentByAgentInstruction<TAccountAgent extends InstructionSignerInput, TAccountOwner extends InstructionAccountInput, TAccountMandate extends InstructionAccountInput, TAccountConfig extends InstructionAccountInput, TAccountUserState extends InstructionAccountInput, TAccountIntent extends InstructionAccountInput, TAccountInputMint extends InstructionAccountInput, TAccountOutputMint extends InstructionAccountInput, TAccountOwnerInput extends InstructionAccountInput, TAccountReceiver extends InstructionAccountInput, TAccountReceiverAuthority extends InstructionAccountInput, TAccountVault extends InstructionAccountInput, TAccountDelegate extends InstructionAccountInput, TAccountInputTokenProgram extends InstructionAccountInput, TAccountOutputTokenProgram extends InstructionAccountInput, TAccountTreasury extends InstructionAccountInput, TAccountSystemProgram extends InstructionAccountInput, TAccountMintCap extends InstructionAccountInput, TAccountEventAuthority extends InstructionAccountInput, TAccountProgram extends InstructionAccountInput, TProgramAddress extends Address = typeof INTENT_ENGINE_PROGRAM_ADDRESS>(input: CreateIntentByAgentInput<TAccountAgent, TAccountOwner, TAccountMandate, TAccountConfig, TAccountUserState, TAccountIntent, TAccountInputMint, TAccountOutputMint, TAccountOwnerInput, TAccountReceiver, TAccountReceiverAuthority, TAccountVault, TAccountDelegate, TAccountInputTokenProgram, TAccountOutputTokenProgram, TAccountTreasury, TAccountSystemProgram, TAccountMintCap, TAccountEventAuthority, TAccountProgram>, config?: {
94
97
  programAddress?: TProgramAddress;
95
- }): CreateIntentByAgentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAgent, InstructionAccountInputAddress<TAccountAgent>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountUserState, InstructionAccountInputAddress<TAccountUserState>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountOwnerInput, InstructionAccountInputAddress<TAccountOwnerInput>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountReceiverAuthority, InstructionAccountInputAddress<TAccountReceiverAuthority>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountDelegate, InstructionAccountInputAddress<TAccountDelegate>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountTreasury, InstructionAccountInputAddress<TAccountTreasury>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
98
+ }): CreateIntentByAgentInstruction<TProgramAddress, ResolvedInstructionAccountMeta<TAccountAgent, InstructionAccountInputAddress<TAccountAgent>>, ResolvedInstructionAccountMeta<TAccountOwner, InstructionAccountInputAddress<TAccountOwner>>, ResolvedInstructionAccountMeta<TAccountMandate, InstructionAccountInputAddress<TAccountMandate>>, ResolvedInstructionAccountMeta<TAccountConfig, InstructionAccountInputAddress<TAccountConfig>>, ResolvedInstructionAccountMeta<TAccountUserState, InstructionAccountInputAddress<TAccountUserState>>, ResolvedInstructionAccountMeta<TAccountIntent, InstructionAccountInputAddress<TAccountIntent>>, ResolvedInstructionAccountMeta<TAccountInputMint, InstructionAccountInputAddress<TAccountInputMint>>, ResolvedInstructionAccountMeta<TAccountOutputMint, InstructionAccountInputAddress<TAccountOutputMint>>, ResolvedInstructionAccountMeta<TAccountOwnerInput, InstructionAccountInputAddress<TAccountOwnerInput>>, ResolvedInstructionAccountMeta<TAccountReceiver, InstructionAccountInputAddress<TAccountReceiver>>, ResolvedInstructionAccountMeta<TAccountReceiverAuthority, InstructionAccountInputAddress<TAccountReceiverAuthority>>, ResolvedInstructionAccountMeta<TAccountVault, InstructionAccountInputAddress<TAccountVault>>, ResolvedInstructionAccountMeta<TAccountDelegate, InstructionAccountInputAddress<TAccountDelegate>>, ResolvedInstructionAccountMeta<TAccountInputTokenProgram, InstructionAccountInputAddress<TAccountInputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountOutputTokenProgram, InstructionAccountInputAddress<TAccountOutputTokenProgram>>, ResolvedInstructionAccountMeta<TAccountTreasury, InstructionAccountInputAddress<TAccountTreasury>>, ResolvedInstructionAccountMeta<TAccountSystemProgram, InstructionAccountInputAddress<TAccountSystemProgram>>, ResolvedInstructionAccountMeta<TAccountMintCap, InstructionAccountInputAddress<TAccountMintCap>>, ResolvedInstructionAccountMeta<TAccountEventAuthority, InstructionAccountInputAddress<TAccountEventAuthority>>, ResolvedInstructionAccountMeta<TAccountProgram, InstructionAccountInputAddress<TAccountProgram>>>;
96
99
  export type ParsedCreateIntentByAgentInstruction<TProgram extends string = typeof INTENT_ENGINE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
97
100
  programAddress: Address<TProgram>;
98
101
  accounts: {
@@ -113,8 +116,9 @@ export type ParsedCreateIntentByAgentInstruction<TProgram extends string = typeo
113
116
  outputTokenProgram: TAccountMetas[14];
114
117
  treasury: TAccountMetas[15];
115
118
  systemProgram: TAccountMetas[16];
116
- eventAuthority: TAccountMetas[17];
117
- program: TAccountMetas[18];
119
+ mintCap?: TAccountMetas[17] | undefined;
120
+ eventAuthority: TAccountMetas[18];
121
+ program: TAccountMetas[19];
118
122
  };
119
123
  data: CreateIntentByAgentInstructionData;
120
124
  };
@@ -104,6 +104,11 @@ export async function getCreateIntentByAgentInstructionAsync(input, config) {
104
104
  isSigner: false,
105
105
  isWritable: false,
106
106
  },
107
+ mintCap: {
108
+ value: input.mintCap ?? null,
109
+ isSigner: false,
110
+ isWritable: true,
111
+ },
107
112
  eventAuthority: {
108
113
  value: input.eventAuthority ?? null,
109
114
  isSigner: false,
@@ -161,6 +166,7 @@ export async function getCreateIntentByAgentInstructionAsync(input, config) {
161
166
  getAccountMeta("outputTokenProgram", accounts.outputTokenProgram),
162
167
  getAccountMeta("treasury", accounts.treasury),
163
168
  getAccountMeta("systemProgram", accounts.systemProgram),
169
+ getAccountMeta("mintCap", accounts.mintCap),
164
170
  getAccountMeta("eventAuthority", accounts.eventAuthority),
165
171
  getAccountMeta("program", accounts.program),
166
172
  ],
@@ -240,6 +246,11 @@ export function getCreateIntentByAgentInstruction(input, config) {
240
246
  isSigner: false,
241
247
  isWritable: false,
242
248
  },
249
+ mintCap: {
250
+ value: input.mintCap ?? null,
251
+ isSigner: false,
252
+ isWritable: true,
253
+ },
243
254
  eventAuthority: {
244
255
  value: input.eventAuthority ?? null,
245
256
  isSigner: false,
@@ -282,6 +293,7 @@ export function getCreateIntentByAgentInstruction(input, config) {
282
293
  getAccountMeta("outputTokenProgram", accounts.outputTokenProgram),
283
294
  getAccountMeta("treasury", accounts.treasury),
284
295
  getAccountMeta("systemProgram", accounts.systemProgram),
296
+ getAccountMeta("mintCap", accounts.mintCap),
285
297
  getAccountMeta("eventAuthority", accounts.eventAuthority),
286
298
  getAccountMeta("program", accounts.program),
287
299
  ],
@@ -290,10 +302,10 @@ export function getCreateIntentByAgentInstruction(input, config) {
290
302
  });
291
303
  }
292
304
  export function parseCreateIntentByAgentInstruction(instruction) {
293
- if (instruction.accounts.length < 19) {
305
+ if (instruction.accounts.length < 20) {
294
306
  throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
295
307
  actualAccountMetas: instruction.accounts.length,
296
- expectedAccountMetas: 19,
308
+ expectedAccountMetas: 20,
297
309
  });
298
310
  }
299
311
  let accountIndex = 0;
@@ -302,6 +314,12 @@ export function parseCreateIntentByAgentInstruction(instruction) {
302
314
  accountIndex += 1;
303
315
  return accountMeta;
304
316
  };
317
+ const getNextOptionalAccount = () => {
318
+ const accountMeta = getNextAccount();
319
+ return accountMeta.address === INTENT_ENGINE_PROGRAM_ADDRESS
320
+ ? undefined
321
+ : accountMeta;
322
+ };
305
323
  return {
306
324
  programAddress: instruction.programAddress,
307
325
  accounts: {
@@ -322,6 +340,7 @@ export function parseCreateIntentByAgentInstruction(instruction) {
322
340
  outputTokenProgram: getNextAccount(),
323
341
  treasury: getNextAccount(),
324
342
  systemProgram: getNextAccount(),
343
+ mintCap: getNextOptionalAccount(),
325
344
  eventAuthority: getNextAccount(),
326
345
  program: getNextAccount(),
327
346
  },