@intent-engine/core 0.1.18 → 0.1.20
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/errors/intentEngine.d.ts +9 -1
- package/dist/generated/client/errors/intentEngine.js +12 -0
- package/dist/generated/client/errors/intentEngine.js.map +1 -1
- package/dist/generated/client/events/index.d.ts +1 -0
- package/dist/generated/client/events/index.js +1 -0
- package/dist/generated/client/events/index.js.map +1 -1
- package/dist/generated/client/events/intentSplit.d.ts +44 -0
- package/dist/generated/client/events/intentSplit.js +56 -0
- package/dist/generated/client/events/intentSplit.js.map +1 -0
- package/dist/generated/client/instructions/fillAttestedSplit.d.ts +144 -0
- package/dist/generated/client/instructions/fillAttestedSplit.js +338 -0
- package/dist/generated/client/instructions/fillAttestedSplit.js.map +1 -0
- package/dist/generated/client/instructions/index.d.ts +1 -0
- package/dist/generated/client/instructions/index.js +1 -0
- package/dist/generated/client/instructions/index.js.map +1 -1
- package/dist/generated/client/programs/intentEngine.d.ts +42 -35
- package/dist/generated/client/programs/intentEngine.js +53 -35
- package/dist/generated/client/programs/intentEngine.js.map +1 -1
- package/dist/src/bounty.d.ts +2 -0
- package/dist/src/bounty.js +44 -0
- package/dist/src/bounty.js.map +1 -0
- package/dist/src/builders.d.ts +6 -0
- package/dist/src/builders.js +54 -1
- package/dist/src/builders.js.map +1 -1
- package/dist/src/compute.d.ts +9 -0
- package/dist/src/compute.js +28 -0
- package/dist/src/compute.js.map +1 -0
- package/dist/src/describe.d.ts +3 -0
- package/dist/src/describe.js +8 -1
- package/dist/src/describe.js.map +1 -1
- package/dist/src/events.js +2 -1
- package/dist/src/events.js.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/mints.d.ts +5 -0
- package/dist/src/mints.js +5 -0
- package/dist/src/mints.js.map +1 -0
- package/dist/src/sig.d.ts +18 -0
- package/dist/src/sig.js +94 -0
- package/dist/src/sig.js.map +1 -1
- package/dist/src/state.d.ts +2 -0
- package/dist/src/state.js +3 -0
- package/dist/src/state.js.map +1 -1
- package/generated/idl.json +258 -0
- package/package.json +1 -1
|
@@ -0,0 +1,338 @@
|
|
|
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 { addDecoderSizePrefix, addEncoderSizePrefix, combineCodec, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU16Decoder, getU16Encoder, getU32Decoder, getU32Encoder, getU64Decoder, getU64Encoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, } from "@solana/kit";
|
|
9
|
+
import { getAccountMetaFactory, getAddressFromResolvedInstructionAccount, } from "@solana/kit/program-client-core";
|
|
10
|
+
import { findVaultPda } from "../pdas/index.js";
|
|
11
|
+
import { INTENT_ENGINE_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
12
|
+
export const FILL_ATTESTED_SPLIT_DISCRIMINATOR = new Uint8Array([34, 107, 23, 102, 114, 73, 49, 40]);
|
|
13
|
+
export function getFillAttestedSplitDiscriminatorBytes() {
|
|
14
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(FILL_ATTESTED_SPLIT_DISCRIMINATOR);
|
|
15
|
+
}
|
|
16
|
+
export function getFillAttestedSplitInstructionDataEncoder() {
|
|
17
|
+
return transformEncoder(getStructEncoder([
|
|
18
|
+
["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
|
|
19
|
+
["amountIn", getU64Encoder()],
|
|
20
|
+
["result", getU64Encoder()],
|
|
21
|
+
["maxFeeBps", getU16Encoder()],
|
|
22
|
+
["recipients", getArrayEncoder(getAddressEncoder())],
|
|
23
|
+
["weights", getArrayEncoder(getU16Encoder())],
|
|
24
|
+
["ext", addEncoderSizePrefix(getBytesEncoder(), getU32Encoder())],
|
|
25
|
+
]), (value) => ({ ...value, discriminator: FILL_ATTESTED_SPLIT_DISCRIMINATOR }));
|
|
26
|
+
}
|
|
27
|
+
export function getFillAttestedSplitInstructionDataDecoder() {
|
|
28
|
+
return getStructDecoder([
|
|
29
|
+
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
30
|
+
["amountIn", getU64Decoder()],
|
|
31
|
+
["result", getU64Decoder()],
|
|
32
|
+
["maxFeeBps", getU16Decoder()],
|
|
33
|
+
["recipients", getArrayDecoder(getAddressDecoder())],
|
|
34
|
+
["weights", getArrayDecoder(getU16Decoder())],
|
|
35
|
+
["ext", addDecoderSizePrefix(getBytesDecoder(), getU32Decoder())],
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
export function getFillAttestedSplitInstructionDataCodec() {
|
|
39
|
+
return combineCodec(getFillAttestedSplitInstructionDataEncoder(), getFillAttestedSplitInstructionDataDecoder());
|
|
40
|
+
}
|
|
41
|
+
export async function getFillAttestedSplitInstructionAsync(input, config) {
|
|
42
|
+
// Program address.
|
|
43
|
+
const programAddress = config?.programAddress ?? INTENT_ENGINE_PROGRAM_ADDRESS;
|
|
44
|
+
// Account meta helper.
|
|
45
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
46
|
+
// Original accounts.
|
|
47
|
+
const originalAccounts = {
|
|
48
|
+
solver: { value: input.solver ?? null, isSigner: true, isWritable: false },
|
|
49
|
+
config: { value: input.config ?? null, isSigner: false, isWritable: false },
|
|
50
|
+
intent: { value: input.intent ?? null, isSigner: false, isWritable: true },
|
|
51
|
+
vault: { value: input.vault ?? null, isSigner: false, isWritable: true },
|
|
52
|
+
inputMint: {
|
|
53
|
+
value: input.inputMint ?? null,
|
|
54
|
+
isSigner: false,
|
|
55
|
+
isWritable: false,
|
|
56
|
+
},
|
|
57
|
+
feeTo: { value: input.feeTo ?? null, isSigner: false, isWritable: true },
|
|
58
|
+
partnerTo: {
|
|
59
|
+
value: input.partnerTo ?? null,
|
|
60
|
+
isSigner: false,
|
|
61
|
+
isWritable: true,
|
|
62
|
+
},
|
|
63
|
+
judgeTo: {
|
|
64
|
+
value: input.judgeTo ?? null,
|
|
65
|
+
isSigner: false,
|
|
66
|
+
isWritable: true,
|
|
67
|
+
},
|
|
68
|
+
recipient0: {
|
|
69
|
+
value: input.recipient0 ?? null,
|
|
70
|
+
isSigner: false,
|
|
71
|
+
isWritable: true,
|
|
72
|
+
},
|
|
73
|
+
recipient1: {
|
|
74
|
+
value: input.recipient1 ?? null,
|
|
75
|
+
isSigner: false,
|
|
76
|
+
isWritable: true,
|
|
77
|
+
},
|
|
78
|
+
recipient2: {
|
|
79
|
+
value: input.recipient2 ?? null,
|
|
80
|
+
isSigner: false,
|
|
81
|
+
isWritable: true,
|
|
82
|
+
},
|
|
83
|
+
recipient3: {
|
|
84
|
+
value: input.recipient3 ?? null,
|
|
85
|
+
isSigner: false,
|
|
86
|
+
isWritable: true,
|
|
87
|
+
},
|
|
88
|
+
recipient4: {
|
|
89
|
+
value: input.recipient4 ?? null,
|
|
90
|
+
isSigner: false,
|
|
91
|
+
isWritable: true,
|
|
92
|
+
},
|
|
93
|
+
recipient5: {
|
|
94
|
+
value: input.recipient5 ?? null,
|
|
95
|
+
isSigner: false,
|
|
96
|
+
isWritable: true,
|
|
97
|
+
},
|
|
98
|
+
recipient6: {
|
|
99
|
+
value: input.recipient6 ?? null,
|
|
100
|
+
isSigner: false,
|
|
101
|
+
isWritable: true,
|
|
102
|
+
},
|
|
103
|
+
recipient7: {
|
|
104
|
+
value: input.recipient7 ?? null,
|
|
105
|
+
isSigner: false,
|
|
106
|
+
isWritable: true,
|
|
107
|
+
},
|
|
108
|
+
inputTokenProgram: {
|
|
109
|
+
value: input.inputTokenProgram ?? null,
|
|
110
|
+
isSigner: false,
|
|
111
|
+
isWritable: false,
|
|
112
|
+
},
|
|
113
|
+
instructions: {
|
|
114
|
+
value: input.instructions ?? null,
|
|
115
|
+
isSigner: false,
|
|
116
|
+
isWritable: false,
|
|
117
|
+
},
|
|
118
|
+
eventAuthority: {
|
|
119
|
+
value: input.eventAuthority ?? null,
|
|
120
|
+
isSigner: false,
|
|
121
|
+
isWritable: false,
|
|
122
|
+
},
|
|
123
|
+
program: {
|
|
124
|
+
value: input.program ?? null,
|
|
125
|
+
isSigner: false,
|
|
126
|
+
isWritable: false,
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
const accounts = originalAccounts;
|
|
130
|
+
// Original args.
|
|
131
|
+
const args = { ...input };
|
|
132
|
+
// Resolve default values.
|
|
133
|
+
if (!accounts.config.value) {
|
|
134
|
+
accounts.config.value =
|
|
135
|
+
"6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz";
|
|
136
|
+
}
|
|
137
|
+
if (!accounts.vault.value) {
|
|
138
|
+
accounts.vault.value = await findVaultPda({
|
|
139
|
+
intent: getAddressFromResolvedInstructionAccount("intent", accounts.intent.value),
|
|
140
|
+
}, { programAddress });
|
|
141
|
+
}
|
|
142
|
+
return Object.freeze({
|
|
143
|
+
accounts: [
|
|
144
|
+
getAccountMeta("solver", accounts.solver),
|
|
145
|
+
getAccountMeta("config", accounts.config),
|
|
146
|
+
getAccountMeta("intent", accounts.intent),
|
|
147
|
+
getAccountMeta("vault", accounts.vault),
|
|
148
|
+
getAccountMeta("inputMint", accounts.inputMint),
|
|
149
|
+
getAccountMeta("feeTo", accounts.feeTo),
|
|
150
|
+
getAccountMeta("partnerTo", accounts.partnerTo),
|
|
151
|
+
getAccountMeta("judgeTo", accounts.judgeTo),
|
|
152
|
+
getAccountMeta("recipient0", accounts.recipient0),
|
|
153
|
+
getAccountMeta("recipient1", accounts.recipient1),
|
|
154
|
+
getAccountMeta("recipient2", accounts.recipient2),
|
|
155
|
+
getAccountMeta("recipient3", accounts.recipient3),
|
|
156
|
+
getAccountMeta("recipient4", accounts.recipient4),
|
|
157
|
+
getAccountMeta("recipient5", accounts.recipient5),
|
|
158
|
+
getAccountMeta("recipient6", accounts.recipient6),
|
|
159
|
+
getAccountMeta("recipient7", accounts.recipient7),
|
|
160
|
+
getAccountMeta("inputTokenProgram", accounts.inputTokenProgram),
|
|
161
|
+
getAccountMeta("instructions", accounts.instructions),
|
|
162
|
+
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
163
|
+
getAccountMeta("program", accounts.program),
|
|
164
|
+
],
|
|
165
|
+
data: getFillAttestedSplitInstructionDataEncoder().encode(args),
|
|
166
|
+
programAddress,
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
export function getFillAttestedSplitInstruction(input, config) {
|
|
170
|
+
// Program address.
|
|
171
|
+
const programAddress = config?.programAddress ?? INTENT_ENGINE_PROGRAM_ADDRESS;
|
|
172
|
+
// Account meta helper.
|
|
173
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
|
|
174
|
+
// Original accounts.
|
|
175
|
+
const originalAccounts = {
|
|
176
|
+
solver: { value: input.solver ?? null, isSigner: true, isWritable: false },
|
|
177
|
+
config: { value: input.config ?? null, isSigner: false, isWritable: false },
|
|
178
|
+
intent: { value: input.intent ?? null, isSigner: false, isWritable: true },
|
|
179
|
+
vault: { value: input.vault ?? null, isSigner: false, isWritable: true },
|
|
180
|
+
inputMint: {
|
|
181
|
+
value: input.inputMint ?? null,
|
|
182
|
+
isSigner: false,
|
|
183
|
+
isWritable: false,
|
|
184
|
+
},
|
|
185
|
+
feeTo: { value: input.feeTo ?? null, isSigner: false, isWritable: true },
|
|
186
|
+
partnerTo: {
|
|
187
|
+
value: input.partnerTo ?? null,
|
|
188
|
+
isSigner: false,
|
|
189
|
+
isWritable: true,
|
|
190
|
+
},
|
|
191
|
+
judgeTo: {
|
|
192
|
+
value: input.judgeTo ?? null,
|
|
193
|
+
isSigner: false,
|
|
194
|
+
isWritable: true,
|
|
195
|
+
},
|
|
196
|
+
recipient0: {
|
|
197
|
+
value: input.recipient0 ?? null,
|
|
198
|
+
isSigner: false,
|
|
199
|
+
isWritable: true,
|
|
200
|
+
},
|
|
201
|
+
recipient1: {
|
|
202
|
+
value: input.recipient1 ?? null,
|
|
203
|
+
isSigner: false,
|
|
204
|
+
isWritable: true,
|
|
205
|
+
},
|
|
206
|
+
recipient2: {
|
|
207
|
+
value: input.recipient2 ?? null,
|
|
208
|
+
isSigner: false,
|
|
209
|
+
isWritable: true,
|
|
210
|
+
},
|
|
211
|
+
recipient3: {
|
|
212
|
+
value: input.recipient3 ?? null,
|
|
213
|
+
isSigner: false,
|
|
214
|
+
isWritable: true,
|
|
215
|
+
},
|
|
216
|
+
recipient4: {
|
|
217
|
+
value: input.recipient4 ?? null,
|
|
218
|
+
isSigner: false,
|
|
219
|
+
isWritable: true,
|
|
220
|
+
},
|
|
221
|
+
recipient5: {
|
|
222
|
+
value: input.recipient5 ?? null,
|
|
223
|
+
isSigner: false,
|
|
224
|
+
isWritable: true,
|
|
225
|
+
},
|
|
226
|
+
recipient6: {
|
|
227
|
+
value: input.recipient6 ?? null,
|
|
228
|
+
isSigner: false,
|
|
229
|
+
isWritable: true,
|
|
230
|
+
},
|
|
231
|
+
recipient7: {
|
|
232
|
+
value: input.recipient7 ?? null,
|
|
233
|
+
isSigner: false,
|
|
234
|
+
isWritable: true,
|
|
235
|
+
},
|
|
236
|
+
inputTokenProgram: {
|
|
237
|
+
value: input.inputTokenProgram ?? null,
|
|
238
|
+
isSigner: false,
|
|
239
|
+
isWritable: false,
|
|
240
|
+
},
|
|
241
|
+
instructions: {
|
|
242
|
+
value: input.instructions ?? null,
|
|
243
|
+
isSigner: false,
|
|
244
|
+
isWritable: false,
|
|
245
|
+
},
|
|
246
|
+
eventAuthority: {
|
|
247
|
+
value: input.eventAuthority ?? null,
|
|
248
|
+
isSigner: false,
|
|
249
|
+
isWritable: false,
|
|
250
|
+
},
|
|
251
|
+
program: {
|
|
252
|
+
value: input.program ?? null,
|
|
253
|
+
isSigner: false,
|
|
254
|
+
isWritable: false,
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
const accounts = originalAccounts;
|
|
258
|
+
// Original args.
|
|
259
|
+
const args = { ...input };
|
|
260
|
+
// Resolve default values.
|
|
261
|
+
if (!accounts.config.value) {
|
|
262
|
+
accounts.config.value =
|
|
263
|
+
"6As2PgaNQ2DdSZMcrZeUJZ7RfyE2kXnVd33yxbgXULYz";
|
|
264
|
+
}
|
|
265
|
+
return Object.freeze({
|
|
266
|
+
accounts: [
|
|
267
|
+
getAccountMeta("solver", accounts.solver),
|
|
268
|
+
getAccountMeta("config", accounts.config),
|
|
269
|
+
getAccountMeta("intent", accounts.intent),
|
|
270
|
+
getAccountMeta("vault", accounts.vault),
|
|
271
|
+
getAccountMeta("inputMint", accounts.inputMint),
|
|
272
|
+
getAccountMeta("feeTo", accounts.feeTo),
|
|
273
|
+
getAccountMeta("partnerTo", accounts.partnerTo),
|
|
274
|
+
getAccountMeta("judgeTo", accounts.judgeTo),
|
|
275
|
+
getAccountMeta("recipient0", accounts.recipient0),
|
|
276
|
+
getAccountMeta("recipient1", accounts.recipient1),
|
|
277
|
+
getAccountMeta("recipient2", accounts.recipient2),
|
|
278
|
+
getAccountMeta("recipient3", accounts.recipient3),
|
|
279
|
+
getAccountMeta("recipient4", accounts.recipient4),
|
|
280
|
+
getAccountMeta("recipient5", accounts.recipient5),
|
|
281
|
+
getAccountMeta("recipient6", accounts.recipient6),
|
|
282
|
+
getAccountMeta("recipient7", accounts.recipient7),
|
|
283
|
+
getAccountMeta("inputTokenProgram", accounts.inputTokenProgram),
|
|
284
|
+
getAccountMeta("instructions", accounts.instructions),
|
|
285
|
+
getAccountMeta("eventAuthority", accounts.eventAuthority),
|
|
286
|
+
getAccountMeta("program", accounts.program),
|
|
287
|
+
],
|
|
288
|
+
data: getFillAttestedSplitInstructionDataEncoder().encode(args),
|
|
289
|
+
programAddress,
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
export function parseFillAttestedSplitInstruction(instruction) {
|
|
293
|
+
if (instruction.accounts.length < 20) {
|
|
294
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
|
|
295
|
+
actualAccountMetas: instruction.accounts.length,
|
|
296
|
+
expectedAccountMetas: 20,
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
let accountIndex = 0;
|
|
300
|
+
const getNextAccount = () => {
|
|
301
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
302
|
+
accountIndex += 1;
|
|
303
|
+
return accountMeta;
|
|
304
|
+
};
|
|
305
|
+
const getNextOptionalAccount = () => {
|
|
306
|
+
const accountMeta = getNextAccount();
|
|
307
|
+
return accountMeta.address === INTENT_ENGINE_PROGRAM_ADDRESS
|
|
308
|
+
? undefined
|
|
309
|
+
: accountMeta;
|
|
310
|
+
};
|
|
311
|
+
return {
|
|
312
|
+
programAddress: instruction.programAddress,
|
|
313
|
+
accounts: {
|
|
314
|
+
solver: getNextAccount(),
|
|
315
|
+
config: getNextAccount(),
|
|
316
|
+
intent: getNextAccount(),
|
|
317
|
+
vault: getNextAccount(),
|
|
318
|
+
inputMint: getNextAccount(),
|
|
319
|
+
feeTo: getNextOptionalAccount(),
|
|
320
|
+
partnerTo: getNextOptionalAccount(),
|
|
321
|
+
judgeTo: getNextOptionalAccount(),
|
|
322
|
+
recipient0: getNextOptionalAccount(),
|
|
323
|
+
recipient1: getNextOptionalAccount(),
|
|
324
|
+
recipient2: getNextOptionalAccount(),
|
|
325
|
+
recipient3: getNextOptionalAccount(),
|
|
326
|
+
recipient4: getNextOptionalAccount(),
|
|
327
|
+
recipient5: getNextOptionalAccount(),
|
|
328
|
+
recipient6: getNextOptionalAccount(),
|
|
329
|
+
recipient7: getNextOptionalAccount(),
|
|
330
|
+
inputTokenProgram: getNextAccount(),
|
|
331
|
+
instructions: getNextAccount(),
|
|
332
|
+
eventAuthority: getNextAccount(),
|
|
333
|
+
program: getNextAccount(),
|
|
334
|
+
},
|
|
335
|
+
data: getFillAttestedSplitInstructionDataDecoder().decode(instruction.data),
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
//# sourceMappingURL=fillAttestedSplit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fillAttestedSplit.js","sourceRoot":"","sources":["../../../../generated/client/instructions/fillAttestedSplit.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,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,iCAAiC,GAC5C,IAAI,UAAU,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAEtD,MAAM,UAAU,sCAAsC;IACpD,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,iCAAiC,CAClC,CAAC;AACJ,CAAC;AAkHD,MAAM,UAAU,0CAA0C;IACxD,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAA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AAiB,EAAE,cAAc,EAAE;YACnC,YAAY,EAAE,cAAc,EAAE;YAC9B,cAAc,EAAE,cAAc,EAAE;YAChC,OAAO,EAAE,cAAc,EAAE;SAC1B;QACD,IAAI,EAAE,0CAA0C,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KAC5E,CAAC;AACJ,CAAC"}
|
|
@@ -18,6 +18,7 @@ export * from "./createMandate.js";
|
|
|
18
18
|
export * from "./endFill.js";
|
|
19
19
|
export * from "./expireIntent.js";
|
|
20
20
|
export * from "./fillAttested.js";
|
|
21
|
+
export * from "./fillAttestedSplit.js";
|
|
21
22
|
export * from "./fillIntent.js";
|
|
22
23
|
export * from "./initConfig.js";
|
|
23
24
|
export * from "./initUser.js";
|
|
@@ -18,6 +18,7 @@ export * from "./createMandate.js";
|
|
|
18
18
|
export * from "./endFill.js";
|
|
19
19
|
export * from "./expireIntent.js";
|
|
20
20
|
export * from "./fillAttested.js";
|
|
21
|
+
export * from "./fillAttestedSplit.js";
|
|
21
22
|
export * from "./fillIntent.js";
|
|
22
23
|
export * from "./initConfig.js";
|
|
23
24
|
export * from "./initUser.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../generated/client/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../generated/client/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { type Address, type ClientWithPayer, type ClientWithRpc, type ClientWithTransactionPlanning, type ClientWithTransactionSending, type ExtendedClient, type GetAccountInfoApi, type GetMultipleAccountsApi, type Instruction, type InstructionWithData, type ReadonlyUint8Array } from "@solana/kit";
|
|
9
9
|
import { type SelfFetchFunctions, type SelfPlanAndSendFunctions } from "@solana/kit/program-client-core";
|
|
10
10
|
import { getConfigCodec, getIntentCodec, getMandateCodec, getUserStateCodec, type Config, type ConfigArgs, type Intent, type IntentArgs, type Mandate, type MandateArgs, type UserState, type UserStateArgs } from "../accounts/index.js";
|
|
11
|
-
import { getAcceptAdminInstruction, getAdvanceEpochInstructionAsync, getAdvanceNonceInstructionAsync, getBeginFillInstructionAsync, getCancelIntentInstructionAsync, getCloseIntentInstructionAsync, getCreateIntentByAgentInstructionAsync, getCreateIntentInstructionAsync, getCreateIntentSignedInstructionAsync, getCreateMandateInstructionAsync, getEndFillInstruction, getExpireIntentInstructionAsync, getFillAttestedInstructionAsync, getFillIntentInstructionAsync, getInitConfigInstructionAsync, getInitUserInstructionAsync, getLowerPauseInstruction, getProposeAdminInstruction, getRaisePauseInstruction, getRevokeMandateInstruction, getUpdateConfigInstruction, getUpdateEconomicsInstruction, type AcceptAdminInput, type AdvanceEpochAsyncInput, type AdvanceNonceAsyncInput, type BeginFillAsyncInput, type CancelIntentAsyncInput, type CloseIntentAsyncInput, type CreateIntentAsyncInput, type CreateIntentByAgentAsyncInput, type CreateIntentSignedAsyncInput, type CreateMandateAsyncInput, type EndFillInput, type ExpireIntentAsyncInput, type FillAttestedAsyncInput, type FillIntentAsyncInput, type InitConfigAsyncInput, type InitUserAsyncInput, type LowerPauseInput, type ParsedAcceptAdminInstruction, type ParsedAdvanceEpochInstruction, type ParsedAdvanceNonceInstruction, type ParsedBeginFillInstruction, type ParsedCancelIntentInstruction, type ParsedCloseIntentInstruction, type ParsedCreateIntentByAgentInstruction, type ParsedCreateIntentInstruction, type ParsedCreateIntentSignedInstruction, type ParsedCreateMandateInstruction, type ParsedEndFillInstruction, type ParsedExpireIntentInstruction, type ParsedFillAttestedInstruction, type ParsedFillIntentInstruction, type ParsedInitConfigInstruction, type ParsedInitUserInstruction, type ParsedLowerPauseInstruction, type ParsedProposeAdminInstruction, type ParsedRaisePauseInstruction, type ParsedRevokeMandateInstruction, type ParsedUpdateConfigInstruction, type ParsedUpdateEconomicsInstruction, type ProposeAdminInput, type RaisePauseInput, type RevokeMandateInput, type UpdateConfigInput, type UpdateEconomicsInput } from "../instructions/index.js";
|
|
11
|
+
import { getAcceptAdminInstruction, getAdvanceEpochInstructionAsync, getAdvanceNonceInstructionAsync, getBeginFillInstructionAsync, getCancelIntentInstructionAsync, getCloseIntentInstructionAsync, getCreateIntentByAgentInstructionAsync, getCreateIntentInstructionAsync, getCreateIntentSignedInstructionAsync, getCreateMandateInstructionAsync, getEndFillInstruction, getExpireIntentInstructionAsync, getFillAttestedInstructionAsync, getFillAttestedSplitInstructionAsync, getFillIntentInstructionAsync, getInitConfigInstructionAsync, getInitUserInstructionAsync, getLowerPauseInstruction, getProposeAdminInstruction, getRaisePauseInstruction, getRevokeMandateInstruction, getUpdateConfigInstruction, getUpdateEconomicsInstruction, type AcceptAdminInput, type AdvanceEpochAsyncInput, type AdvanceNonceAsyncInput, type BeginFillAsyncInput, type CancelIntentAsyncInput, type CloseIntentAsyncInput, type CreateIntentAsyncInput, type CreateIntentByAgentAsyncInput, type CreateIntentSignedAsyncInput, type CreateMandateAsyncInput, type EndFillInput, type ExpireIntentAsyncInput, type FillAttestedAsyncInput, type FillAttestedSplitAsyncInput, type FillIntentAsyncInput, type InitConfigAsyncInput, type InitUserAsyncInput, type LowerPauseInput, type ParsedAcceptAdminInstruction, type ParsedAdvanceEpochInstruction, type ParsedAdvanceNonceInstruction, type ParsedBeginFillInstruction, type ParsedCancelIntentInstruction, type ParsedCloseIntentInstruction, type ParsedCreateIntentByAgentInstruction, type ParsedCreateIntentInstruction, type ParsedCreateIntentSignedInstruction, type ParsedCreateMandateInstruction, type ParsedEndFillInstruction, type ParsedExpireIntentInstruction, type ParsedFillAttestedInstruction, type ParsedFillAttestedSplitInstruction, type ParsedFillIntentInstruction, type ParsedInitConfigInstruction, type ParsedInitUserInstruction, type ParsedLowerPauseInstruction, type ParsedProposeAdminInstruction, type ParsedRaisePauseInstruction, type ParsedRevokeMandateInstruction, type ParsedUpdateConfigInstruction, type ParsedUpdateEconomicsInstruction, type ProposeAdminInput, type RaisePauseInput, type RevokeMandateInput, type UpdateConfigInput, type UpdateEconomicsInput } from "../instructions/index.js";
|
|
12
12
|
import { findConfigPda, findDelegatePda, findUserStatePda, findVaultPda } from "../pdas/index.js";
|
|
13
13
|
export declare const INTENT_ENGINE_PROGRAM_ADDRESS: Address<"GHFB9q4fhhqRyCoycoivdxMhFkp1aLHJk5VvroUsgrJU">;
|
|
14
14
|
export declare const IntentEngineAccount: {
|
|
@@ -42,14 +42,15 @@ export declare const IntentEngineEvent: {
|
|
|
42
42
|
readonly 13: "IntentCreated";
|
|
43
43
|
readonly 14: "IntentExpired";
|
|
44
44
|
readonly 15: "IntentFilled";
|
|
45
|
-
readonly 16: "
|
|
46
|
-
readonly 17: "
|
|
47
|
-
readonly 18: "
|
|
48
|
-
readonly 19: "
|
|
49
|
-
readonly 20: "
|
|
50
|
-
readonly 21: "
|
|
51
|
-
readonly 22: "
|
|
52
|
-
readonly 23: "
|
|
45
|
+
readonly 16: "IntentSplit";
|
|
46
|
+
readonly 17: "MandateClosed";
|
|
47
|
+
readonly 18: "MandateCreated";
|
|
48
|
+
readonly 19: "MandateUsed";
|
|
49
|
+
readonly 20: "NonceAdvanced";
|
|
50
|
+
readonly 21: "PauseLowered";
|
|
51
|
+
readonly 22: "PauseRaised";
|
|
52
|
+
readonly 23: "RelayerPaid";
|
|
53
|
+
readonly 24: "UserInitialized";
|
|
53
54
|
readonly AdminAccepted: 0;
|
|
54
55
|
readonly AdminProposed: 1;
|
|
55
56
|
readonly AgentPaid: 2;
|
|
@@ -66,14 +67,15 @@ export declare const IntentEngineEvent: {
|
|
|
66
67
|
readonly IntentCreated: 13;
|
|
67
68
|
readonly IntentExpired: 14;
|
|
68
69
|
readonly IntentFilled: 15;
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
70
|
+
readonly IntentSplit: 16;
|
|
71
|
+
readonly MandateClosed: 17;
|
|
72
|
+
readonly MandateCreated: 18;
|
|
73
|
+
readonly MandateUsed: 19;
|
|
74
|
+
readonly NonceAdvanced: 20;
|
|
75
|
+
readonly PauseLowered: 21;
|
|
76
|
+
readonly PauseRaised: 22;
|
|
77
|
+
readonly RelayerPaid: 23;
|
|
78
|
+
readonly UserInitialized: 24;
|
|
77
79
|
};
|
|
78
80
|
export type IntentEngineEvent = (typeof IntentEngineEvent)[Exclude<keyof typeof IntentEngineEvent, number>];
|
|
79
81
|
export declare function identifyIntentEngineEvent(event: {
|
|
@@ -93,15 +95,16 @@ export declare const IntentEngineInstruction: {
|
|
|
93
95
|
readonly 10: "EndFill";
|
|
94
96
|
readonly 11: "ExpireIntent";
|
|
95
97
|
readonly 12: "FillAttested";
|
|
96
|
-
readonly 13: "
|
|
97
|
-
readonly 14: "
|
|
98
|
-
readonly 15: "
|
|
99
|
-
readonly 16: "
|
|
100
|
-
readonly 17: "
|
|
101
|
-
readonly 18: "
|
|
102
|
-
readonly 19: "
|
|
103
|
-
readonly 20: "
|
|
104
|
-
readonly 21: "
|
|
98
|
+
readonly 13: "FillAttestedSplit";
|
|
99
|
+
readonly 14: "FillIntent";
|
|
100
|
+
readonly 15: "InitConfig";
|
|
101
|
+
readonly 16: "InitUser";
|
|
102
|
+
readonly 17: "LowerPause";
|
|
103
|
+
readonly 18: "ProposeAdmin";
|
|
104
|
+
readonly 19: "RaisePause";
|
|
105
|
+
readonly 20: "RevokeMandate";
|
|
106
|
+
readonly 21: "UpdateConfig";
|
|
107
|
+
readonly 22: "UpdateEconomics";
|
|
105
108
|
readonly AcceptAdmin: 0;
|
|
106
109
|
readonly AdvanceEpoch: 1;
|
|
107
110
|
readonly AdvanceNonce: 2;
|
|
@@ -115,15 +118,16 @@ export declare const IntentEngineInstruction: {
|
|
|
115
118
|
readonly EndFill: 10;
|
|
116
119
|
readonly ExpireIntent: 11;
|
|
117
120
|
readonly FillAttested: 12;
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
121
|
+
readonly FillAttestedSplit: 13;
|
|
122
|
+
readonly FillIntent: 14;
|
|
123
|
+
readonly InitConfig: 15;
|
|
124
|
+
readonly InitUser: 16;
|
|
125
|
+
readonly LowerPause: 17;
|
|
126
|
+
readonly ProposeAdmin: 18;
|
|
127
|
+
readonly RaisePause: 19;
|
|
128
|
+
readonly RevokeMandate: 20;
|
|
129
|
+
readonly UpdateConfig: 21;
|
|
130
|
+
readonly UpdateEconomics: 22;
|
|
127
131
|
};
|
|
128
132
|
export type IntentEngineInstruction = (typeof IntentEngineInstruction)[Exclude<keyof typeof IntentEngineInstruction, number>];
|
|
129
133
|
export declare function identifyIntentEngineInstruction(instruction: {
|
|
@@ -156,6 +160,8 @@ export type ParsedIntentEngineInstruction<TProgram extends string = "GHFB9q4fhhq
|
|
|
156
160
|
} & ParsedExpireIntentInstruction<TProgram>) | ({
|
|
157
161
|
instructionType: typeof IntentEngineInstruction.FillAttested;
|
|
158
162
|
} & ParsedFillAttestedInstruction<TProgram>) | ({
|
|
163
|
+
instructionType: typeof IntentEngineInstruction.FillAttestedSplit;
|
|
164
|
+
} & ParsedFillAttestedSplitInstruction<TProgram>) | ({
|
|
159
165
|
instructionType: typeof IntentEngineInstruction.FillIntent;
|
|
160
166
|
} & ParsedFillIntentInstruction<TProgram>) | ({
|
|
161
167
|
instructionType: typeof IntentEngineInstruction.InitConfig;
|
|
@@ -203,6 +209,7 @@ export type IntentEnginePluginInstructions = {
|
|
|
203
209
|
endFill: (input: EndFillInput) => ReturnType<typeof getEndFillInstruction> & SelfPlanAndSendFunctions;
|
|
204
210
|
expireIntent: (input: ExpireIntentAsyncInput) => ReturnType<typeof getExpireIntentInstructionAsync> & SelfPlanAndSendFunctions;
|
|
205
211
|
fillAttested: (input: FillAttestedAsyncInput) => ReturnType<typeof getFillAttestedInstructionAsync> & SelfPlanAndSendFunctions;
|
|
212
|
+
fillAttestedSplit: (input: FillAttestedSplitAsyncInput) => ReturnType<typeof getFillAttestedSplitInstructionAsync> & SelfPlanAndSendFunctions;
|
|
206
213
|
fillIntent: (input: FillIntentAsyncInput) => ReturnType<typeof getFillIntentInstructionAsync> & SelfPlanAndSendFunctions;
|
|
207
214
|
initConfig: (input: InitConfigAsyncInput) => ReturnType<typeof getInitConfigInstructionAsync> & SelfPlanAndSendFunctions;
|
|
208
215
|
initUser: (input: InitUserAsyncInput) => ReturnType<typeof getInitUserInstructionAsync> & SelfPlanAndSendFunctions;
|