@virtuals-protocol/acp-node-v2 0.1.1 → 0.1.3
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/README.md +9 -20
- package/dist/acpAgent.d.ts +64 -4
- package/dist/acpAgent.d.ts.map +1 -1
- package/dist/acpAgent.js +207 -15
- package/dist/acpAgent.js.map +1 -1
- package/dist/acpJob.d.ts +4 -2
- package/dist/acpJob.d.ts.map +1 -1
- package/dist/acpJob.js +5 -3
- package/dist/acpJob.js.map +1 -1
- package/dist/clients/evmAcpClient.d.ts +2 -1
- package/dist/clients/evmAcpClient.d.ts.map +1 -1
- package/dist/clients/evmAcpClient.js +19 -2
- package/dist/clients/evmAcpClient.js.map +1 -1
- package/dist/core/agentAuth.d.ts +22 -0
- package/dist/core/agentAuth.d.ts.map +1 -0
- package/dist/core/agentAuth.js +27 -0
- package/dist/core/agentAuth.js.map +1 -0
- package/dist/core/approvalGate.d.ts +28 -0
- package/dist/core/approvalGate.d.ts.map +1 -0
- package/dist/core/approvalGate.js +63 -0
- package/dist/core/approvalGate.js.map +1 -0
- package/dist/core/chains.d.ts +1 -0
- package/dist/core/chains.d.ts.map +1 -1
- package/dist/core/chains.js +12 -1
- package/dist/core/chains.js.map +1 -1
- package/dist/core/constants.d.ts +12 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +27 -2
- package/dist/core/constants.js.map +1 -1
- package/dist/core/hookEncoding.d.ts +10 -0
- package/dist/core/hookEncoding.d.ts.map +1 -0
- package/dist/core/hookEncoding.js +34 -0
- package/dist/core/hookEncoding.js.map +1 -0
- package/dist/core/multiHookRouterAbi.d.ts +465 -0
- package/dist/core/multiHookRouterAbi.d.ts.map +1 -0
- package/dist/core/multiHookRouterAbi.js +326 -0
- package/dist/core/multiHookRouterAbi.js.map +1 -0
- package/dist/core/operations.d.ts +6 -0
- package/dist/core/operations.d.ts.map +1 -1
- package/dist/core/subscriptionHookAbi.d.ts +239 -0
- package/dist/core/subscriptionHookAbi.d.ts.map +1 -0
- package/dist/core/subscriptionHookAbi.js +199 -0
- package/dist/core/subscriptionHookAbi.js.map +1 -0
- package/dist/core/subscriptionStateAbi.d.ts +256 -0
- package/dist/core/subscriptionStateAbi.d.ts.map +1 -0
- package/dist/core/subscriptionStateAbi.js +176 -0
- package/dist/core/subscriptionStateAbi.js.map +1 -0
- package/dist/events/acpHttpClient.d.ts.map +1 -1
- package/dist/events/acpHttpClient.js +12 -3
- package/dist/events/acpHttpClient.js.map +1 -1
- package/dist/events/sseTransport.d.ts +11 -4
- package/dist/events/sseTransport.d.ts.map +1 -1
- package/dist/events/sseTransport.js +104 -44
- package/dist/events/sseTransport.js.map +1 -1
- package/dist/events/types.d.ts +17 -5
- package/dist/events/types.d.ts.map +1 -1
- package/dist/events/types.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/jobSession.d.ts +4 -1
- package/dist/jobSession.d.ts.map +1 -1
- package/dist/jobSession.js +126 -10
- package/dist/jobSession.js.map +1 -1
- package/dist/providers/evm/privyAlchemyEvmProviderAdapter.d.ts +12 -2
- package/dist/providers/evm/privyAlchemyEvmProviderAdapter.d.ts.map +1 -1
- package/dist/providers/evm/privyAlchemyEvmProviderAdapter.js +264 -60
- package/dist/providers/evm/privyAlchemyEvmProviderAdapter.js.map +1 -1
- package/dist/providers/evm/types.d.ts +24 -0
- package/dist/providers/evm/types.d.ts.map +1 -0
- package/dist/providers/evm/types.js +2 -0
- package/dist/providers/evm/types.js.map +1 -0
- package/dist/providers/providerAuthClient.d.ts +2 -2
- package/dist/providers/providerAuthClient.d.ts.map +1 -1
- package/dist/providers/providerAuthClient.js +10 -4
- package/dist/providers/providerAuthClient.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
export const MULTI_HOOK_ROUTER_ABI = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [
|
|
4
|
+
{ internalType: "address", name: "acpContract_", type: "address" },
|
|
5
|
+
{ internalType: "uint256", name: "maxHooksPerJob_", type: "uint256" },
|
|
6
|
+
],
|
|
7
|
+
stateMutability: "nonpayable",
|
|
8
|
+
type: "constructor",
|
|
9
|
+
},
|
|
10
|
+
{ inputs: [], name: "ArrayLengthMismatch", type: "error" },
|
|
11
|
+
{ inputs: [], name: "DuplicateHook", type: "error" },
|
|
12
|
+
{ inputs: [], name: "EmptyArray", type: "error" },
|
|
13
|
+
{ inputs: [], name: "HookDataLengthMismatch", type: "error" },
|
|
14
|
+
{ inputs: [], name: "HookMissingRequiredSelector", type: "error" },
|
|
15
|
+
{ inputs: [], name: "HookNotFound", type: "error" },
|
|
16
|
+
{ inputs: [], name: "HookSetMismatch", type: "error" },
|
|
17
|
+
{ inputs: [], name: "HooksLocked", type: "error" },
|
|
18
|
+
{ inputs: [], name: "InvalidHook", type: "error" },
|
|
19
|
+
{ inputs: [], name: "InvalidSelector", type: "error" },
|
|
20
|
+
{ inputs: [], name: "NotCoreAdmin", type: "error" },
|
|
21
|
+
{ inputs: [], name: "OnlyACPContract", type: "error" },
|
|
22
|
+
{ inputs: [], name: "OnlyJobClient", type: "error" },
|
|
23
|
+
{ inputs: [], name: "ReentrancyGuardReentrantCall", type: "error" },
|
|
24
|
+
{ inputs: [], name: "SubHookNotWhitelisted", type: "error" },
|
|
25
|
+
{ inputs: [], name: "TooManyHooks", type: "error" },
|
|
26
|
+
{ inputs: [], name: "ZeroAddress", type: "error" },
|
|
27
|
+
{
|
|
28
|
+
anonymous: false,
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
indexed: true,
|
|
32
|
+
internalType: "uint256",
|
|
33
|
+
name: "jobId",
|
|
34
|
+
type: "uint256",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
indexed: true,
|
|
38
|
+
internalType: "bytes4",
|
|
39
|
+
name: "selector",
|
|
40
|
+
type: "bytes4",
|
|
41
|
+
},
|
|
42
|
+
{ indexed: true, internalType: "address", name: "hook", type: "address" },
|
|
43
|
+
],
|
|
44
|
+
name: "DewhitelistedHookSkipped",
|
|
45
|
+
type: "event",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
anonymous: false,
|
|
49
|
+
inputs: [
|
|
50
|
+
{
|
|
51
|
+
indexed: true,
|
|
52
|
+
internalType: "uint256",
|
|
53
|
+
name: "jobId",
|
|
54
|
+
type: "uint256",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
indexed: true,
|
|
58
|
+
internalType: "bytes4",
|
|
59
|
+
name: "selector",
|
|
60
|
+
type: "bytes4",
|
|
61
|
+
},
|
|
62
|
+
{ indexed: true, internalType: "address", name: "hook", type: "address" },
|
|
63
|
+
{
|
|
64
|
+
indexed: false,
|
|
65
|
+
internalType: "uint256",
|
|
66
|
+
name: "position",
|
|
67
|
+
type: "uint256",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
name: "HookAdded",
|
|
71
|
+
type: "event",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
anonymous: false,
|
|
75
|
+
inputs: [
|
|
76
|
+
{
|
|
77
|
+
indexed: true,
|
|
78
|
+
internalType: "uint256",
|
|
79
|
+
name: "jobId",
|
|
80
|
+
type: "uint256",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
indexed: true,
|
|
84
|
+
internalType: "bytes4",
|
|
85
|
+
name: "selector",
|
|
86
|
+
type: "bytes4",
|
|
87
|
+
},
|
|
88
|
+
{ indexed: true, internalType: "address", name: "hook", type: "address" },
|
|
89
|
+
],
|
|
90
|
+
name: "HookRemoved",
|
|
91
|
+
type: "event",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
anonymous: false,
|
|
95
|
+
inputs: [
|
|
96
|
+
{
|
|
97
|
+
indexed: true,
|
|
98
|
+
internalType: "uint256",
|
|
99
|
+
name: "jobId",
|
|
100
|
+
type: "uint256",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
indexed: true,
|
|
104
|
+
internalType: "bytes4",
|
|
105
|
+
name: "selector",
|
|
106
|
+
type: "bytes4",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
indexed: false,
|
|
110
|
+
internalType: "address[]",
|
|
111
|
+
name: "hooks",
|
|
112
|
+
type: "address[]",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
name: "HooksConfigured",
|
|
116
|
+
type: "event",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
anonymous: false,
|
|
120
|
+
inputs: [
|
|
121
|
+
{
|
|
122
|
+
indexed: true,
|
|
123
|
+
internalType: "uint256",
|
|
124
|
+
name: "jobId",
|
|
125
|
+
type: "uint256",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
indexed: true,
|
|
129
|
+
internalType: "bytes4",
|
|
130
|
+
name: "selector",
|
|
131
|
+
type: "bytes4",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
indexed: false,
|
|
135
|
+
internalType: "address[]",
|
|
136
|
+
name: "hooks",
|
|
137
|
+
type: "address[]",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
name: "HooksReordered",
|
|
141
|
+
type: "event",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
anonymous: false,
|
|
145
|
+
inputs: [
|
|
146
|
+
{
|
|
147
|
+
indexed: false,
|
|
148
|
+
internalType: "uint256",
|
|
149
|
+
name: "oldMax",
|
|
150
|
+
type: "uint256",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
indexed: false,
|
|
154
|
+
internalType: "uint256",
|
|
155
|
+
name: "newMax",
|
|
156
|
+
type: "uint256",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
name: "MaxHooksPerJobUpdated",
|
|
160
|
+
type: "event",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
inputs: [],
|
|
164
|
+
name: "acpContract",
|
|
165
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
166
|
+
stateMutability: "view",
|
|
167
|
+
type: "function",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
inputs: [
|
|
171
|
+
{ internalType: "uint256", name: "jobId", type: "uint256" },
|
|
172
|
+
{ internalType: "bytes4", name: "selector", type: "bytes4" },
|
|
173
|
+
{ internalType: "address", name: "hook", type: "address" },
|
|
174
|
+
],
|
|
175
|
+
name: "addHook",
|
|
176
|
+
outputs: [],
|
|
177
|
+
stateMutability: "nonpayable",
|
|
178
|
+
type: "function",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
inputs: [
|
|
182
|
+
{ internalType: "uint256", name: "jobId", type: "uint256" },
|
|
183
|
+
{ internalType: "bytes4", name: "selector", type: "bytes4" },
|
|
184
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
185
|
+
],
|
|
186
|
+
name: "afterAction",
|
|
187
|
+
outputs: [],
|
|
188
|
+
stateMutability: "nonpayable",
|
|
189
|
+
type: "function",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
inputs: [
|
|
193
|
+
{ internalType: "uint256", name: "jobId", type: "uint256" },
|
|
194
|
+
{ internalType: "bytes4[]", name: "selectors", type: "bytes4[]" },
|
|
195
|
+
{
|
|
196
|
+
internalType: "address[][]",
|
|
197
|
+
name: "hooksPerSelector",
|
|
198
|
+
type: "address[][]",
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
name: "batchConfigureHooks",
|
|
202
|
+
outputs: [],
|
|
203
|
+
stateMutability: "nonpayable",
|
|
204
|
+
type: "function",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
inputs: [
|
|
208
|
+
{ internalType: "uint256", name: "jobId", type: "uint256" },
|
|
209
|
+
{ internalType: "bytes4", name: "selector", type: "bytes4" },
|
|
210
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
211
|
+
],
|
|
212
|
+
name: "beforeAction",
|
|
213
|
+
outputs: [],
|
|
214
|
+
stateMutability: "nonpayable",
|
|
215
|
+
type: "function",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
inputs: [
|
|
219
|
+
{ internalType: "uint256", name: "jobId", type: "uint256" },
|
|
220
|
+
{ internalType: "bytes4", name: "selector", type: "bytes4" },
|
|
221
|
+
{ internalType: "address[]", name: "hooks", type: "address[]" },
|
|
222
|
+
],
|
|
223
|
+
name: "configureHooks",
|
|
224
|
+
outputs: [],
|
|
225
|
+
stateMutability: "nonpayable",
|
|
226
|
+
type: "function",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
inputs: [
|
|
230
|
+
{ internalType: "uint256", name: "jobId", type: "uint256" },
|
|
231
|
+
{ internalType: "bytes4", name: "selector", type: "bytes4" },
|
|
232
|
+
],
|
|
233
|
+
name: "getHooks",
|
|
234
|
+
outputs: [{ internalType: "address[]", name: "", type: "address[]" }],
|
|
235
|
+
stateMutability: "view",
|
|
236
|
+
type: "function",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
inputs: [{ internalType: "uint256", name: "jobId", type: "uint256" }],
|
|
240
|
+
name: "getJob",
|
|
241
|
+
outputs: [
|
|
242
|
+
{
|
|
243
|
+
components: [
|
|
244
|
+
{ internalType: "address", name: "client", type: "address" },
|
|
245
|
+
{
|
|
246
|
+
internalType: "enum AgenticCommerceV3.JobStatus",
|
|
247
|
+
name: "status",
|
|
248
|
+
type: "uint8",
|
|
249
|
+
},
|
|
250
|
+
{ internalType: "address", name: "provider", type: "address" },
|
|
251
|
+
{ internalType: "uint48", name: "expiredAt", type: "uint48" },
|
|
252
|
+
{ internalType: "address", name: "evaluator", type: "address" },
|
|
253
|
+
{ internalType: "address", name: "hook", type: "address" },
|
|
254
|
+
{ internalType: "uint256", name: "budget", type: "uint256" },
|
|
255
|
+
{ internalType: "string", name: "description", type: "string" },
|
|
256
|
+
],
|
|
257
|
+
internalType: "struct AgenticCommerceV3.Job",
|
|
258
|
+
name: "",
|
|
259
|
+
type: "tuple",
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
stateMutability: "view",
|
|
263
|
+
type: "function",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
inputs: [
|
|
267
|
+
{ internalType: "uint256", name: "jobId", type: "uint256" },
|
|
268
|
+
{ internalType: "bytes4", name: "selector", type: "bytes4" },
|
|
269
|
+
],
|
|
270
|
+
name: "hookCount",
|
|
271
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
272
|
+
stateMutability: "view",
|
|
273
|
+
type: "function",
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
inputs: [],
|
|
277
|
+
name: "maxHooksPerJob",
|
|
278
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
279
|
+
stateMutability: "view",
|
|
280
|
+
type: "function",
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
inputs: [],
|
|
284
|
+
name: "paymentToken",
|
|
285
|
+
outputs: [{ internalType: "contract IERC20", name: "", type: "address" }],
|
|
286
|
+
stateMutability: "view",
|
|
287
|
+
type: "function",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
inputs: [
|
|
291
|
+
{ internalType: "uint256", name: "jobId", type: "uint256" },
|
|
292
|
+
{ internalType: "bytes4", name: "selector", type: "bytes4" },
|
|
293
|
+
{ internalType: "address", name: "hook", type: "address" },
|
|
294
|
+
],
|
|
295
|
+
name: "removeHook",
|
|
296
|
+
outputs: [],
|
|
297
|
+
stateMutability: "nonpayable",
|
|
298
|
+
type: "function",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
inputs: [
|
|
302
|
+
{ internalType: "uint256", name: "jobId", type: "uint256" },
|
|
303
|
+
{ internalType: "bytes4", name: "selector", type: "bytes4" },
|
|
304
|
+
{ internalType: "address[]", name: "hooks", type: "address[]" },
|
|
305
|
+
],
|
|
306
|
+
name: "reorderHooks",
|
|
307
|
+
outputs: [],
|
|
308
|
+
stateMutability: "nonpayable",
|
|
309
|
+
type: "function",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
inputs: [{ internalType: "uint256", name: "newMax", type: "uint256" }],
|
|
313
|
+
name: "setMaxHooksPerJob",
|
|
314
|
+
outputs: [],
|
|
315
|
+
stateMutability: "nonpayable",
|
|
316
|
+
type: "function",
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
|
|
320
|
+
name: "supportsInterface",
|
|
321
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
322
|
+
stateMutability: "view",
|
|
323
|
+
type: "function",
|
|
324
|
+
},
|
|
325
|
+
];
|
|
326
|
+
//# sourceMappingURL=multiHookRouterAbi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multiHookRouterAbi.js","sourceRoot":"","sources":["../../src/core/multiHookRouterAbi.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE;YAClE,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,SAAS,EAAE;SACtE;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE,OAAO,EAAE;IAC1D,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE;IACpD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE;IACjD,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,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AE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC5D,EAAE,YAAY,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE;SAChE;QACD,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACtE,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QACzE,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAC3D,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC"}
|
|
@@ -58,6 +58,12 @@ export type RejectParams = {
|
|
|
58
58
|
reason: string;
|
|
59
59
|
optParams?: Hex;
|
|
60
60
|
};
|
|
61
|
+
export type BatchConfigureHooksParams = {
|
|
62
|
+
routerAddress: string;
|
|
63
|
+
jobId: bigint;
|
|
64
|
+
selectors: Hex[];
|
|
65
|
+
hooksPerSelector: string[][];
|
|
66
|
+
};
|
|
61
67
|
export type OnChainJob = {
|
|
62
68
|
id: bigint;
|
|
63
69
|
client: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/core/operations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAA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EF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,gBAAgB,EAAE,MAAM,EAAE,EAAE,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
export declare const SUBSCRIPTION_HOOK_ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "coreAddress";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "subscriptionState_";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}];
|
|
11
|
+
readonly stateMutability: "nonpayable";
|
|
12
|
+
readonly type: "constructor";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly name: "OnlyACPContract";
|
|
16
|
+
readonly type: "error";
|
|
17
|
+
}, {
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly name: "TermsMismatch";
|
|
20
|
+
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [];
|
|
23
|
+
readonly name: "TermsNotProposed";
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly anonymous: false;
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly indexed: true;
|
|
29
|
+
readonly internalType: "uint256";
|
|
30
|
+
readonly name: "jobId";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}, {
|
|
33
|
+
readonly indexed: true;
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly name: "packageId";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}, {
|
|
38
|
+
readonly indexed: true;
|
|
39
|
+
readonly internalType: "address";
|
|
40
|
+
readonly name: "client";
|
|
41
|
+
readonly type: "address";
|
|
42
|
+
}, {
|
|
43
|
+
readonly indexed: false;
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly name: "provider";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}, {
|
|
48
|
+
readonly indexed: false;
|
|
49
|
+
readonly internalType: "uint256";
|
|
50
|
+
readonly name: "duration";
|
|
51
|
+
readonly type: "uint256";
|
|
52
|
+
}];
|
|
53
|
+
readonly name: "SubscriptionActivated";
|
|
54
|
+
readonly type: "event";
|
|
55
|
+
}, {
|
|
56
|
+
readonly anonymous: false;
|
|
57
|
+
readonly inputs: readonly [{
|
|
58
|
+
readonly indexed: true;
|
|
59
|
+
readonly internalType: "uint256";
|
|
60
|
+
readonly name: "jobId";
|
|
61
|
+
readonly type: "uint256";
|
|
62
|
+
}, {
|
|
63
|
+
readonly indexed: true;
|
|
64
|
+
readonly internalType: "uint256";
|
|
65
|
+
readonly name: "packageId";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
}, {
|
|
68
|
+
readonly indexed: false;
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
readonly name: "duration";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}];
|
|
73
|
+
readonly name: "SubscriptionTermsProposed";
|
|
74
|
+
readonly type: "event";
|
|
75
|
+
}, {
|
|
76
|
+
readonly anonymous: false;
|
|
77
|
+
readonly inputs: readonly [{
|
|
78
|
+
readonly indexed: true;
|
|
79
|
+
readonly internalType: "uint256";
|
|
80
|
+
readonly name: "jobId";
|
|
81
|
+
readonly type: "uint256";
|
|
82
|
+
}, {
|
|
83
|
+
readonly indexed: true;
|
|
84
|
+
readonly internalType: "uint256";
|
|
85
|
+
readonly name: "packageId";
|
|
86
|
+
readonly type: "uint256";
|
|
87
|
+
}, {
|
|
88
|
+
readonly indexed: false;
|
|
89
|
+
readonly internalType: "uint256";
|
|
90
|
+
readonly name: "currentExpiry";
|
|
91
|
+
readonly type: "uint256";
|
|
92
|
+
}];
|
|
93
|
+
readonly name: "SubscriptionTermsSkipped";
|
|
94
|
+
readonly type: "event";
|
|
95
|
+
}, {
|
|
96
|
+
readonly inputs: readonly [];
|
|
97
|
+
readonly name: "acpContract";
|
|
98
|
+
readonly outputs: readonly [{
|
|
99
|
+
readonly internalType: "address";
|
|
100
|
+
readonly name: "";
|
|
101
|
+
readonly type: "address";
|
|
102
|
+
}];
|
|
103
|
+
readonly stateMutability: "view";
|
|
104
|
+
readonly type: "function";
|
|
105
|
+
}, {
|
|
106
|
+
readonly inputs: readonly [{
|
|
107
|
+
readonly internalType: "uint256";
|
|
108
|
+
readonly name: "jobId";
|
|
109
|
+
readonly type: "uint256";
|
|
110
|
+
}, {
|
|
111
|
+
readonly internalType: "bytes4";
|
|
112
|
+
readonly name: "selector";
|
|
113
|
+
readonly type: "bytes4";
|
|
114
|
+
}, {
|
|
115
|
+
readonly internalType: "bytes";
|
|
116
|
+
readonly name: "data";
|
|
117
|
+
readonly type: "bytes";
|
|
118
|
+
}];
|
|
119
|
+
readonly name: "afterAction";
|
|
120
|
+
readonly outputs: readonly [];
|
|
121
|
+
readonly stateMutability: "nonpayable";
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
}, {
|
|
124
|
+
readonly inputs: readonly [{
|
|
125
|
+
readonly internalType: "uint256";
|
|
126
|
+
readonly name: "jobId";
|
|
127
|
+
readonly type: "uint256";
|
|
128
|
+
}, {
|
|
129
|
+
readonly internalType: "bytes4";
|
|
130
|
+
readonly name: "selector";
|
|
131
|
+
readonly type: "bytes4";
|
|
132
|
+
}, {
|
|
133
|
+
readonly internalType: "bytes";
|
|
134
|
+
readonly name: "data";
|
|
135
|
+
readonly type: "bytes";
|
|
136
|
+
}];
|
|
137
|
+
readonly name: "beforeAction";
|
|
138
|
+
readonly outputs: readonly [];
|
|
139
|
+
readonly stateMutability: "nonpayable";
|
|
140
|
+
readonly type: "function";
|
|
141
|
+
}, {
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly internalType: "uint256";
|
|
144
|
+
readonly name: "jobId";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}];
|
|
147
|
+
readonly name: "getProposedTerms";
|
|
148
|
+
readonly outputs: readonly [{
|
|
149
|
+
readonly components: readonly [{
|
|
150
|
+
readonly internalType: "uint256";
|
|
151
|
+
readonly name: "duration";
|
|
152
|
+
readonly type: "uint256";
|
|
153
|
+
}, {
|
|
154
|
+
readonly internalType: "uint256";
|
|
155
|
+
readonly name: "packageId";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
}];
|
|
158
|
+
readonly internalType: "struct SubscriptionHook.SubscriptionTerms";
|
|
159
|
+
readonly name: "";
|
|
160
|
+
readonly type: "tuple";
|
|
161
|
+
}];
|
|
162
|
+
readonly stateMutability: "view";
|
|
163
|
+
readonly type: "function";
|
|
164
|
+
}, {
|
|
165
|
+
readonly inputs: readonly [{
|
|
166
|
+
readonly internalType: "address";
|
|
167
|
+
readonly name: "client";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
}, {
|
|
170
|
+
readonly internalType: "address";
|
|
171
|
+
readonly name: "provider";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}, {
|
|
174
|
+
readonly internalType: "uint256";
|
|
175
|
+
readonly name: "packageId";
|
|
176
|
+
readonly type: "uint256";
|
|
177
|
+
}];
|
|
178
|
+
readonly name: "getSubscriptionExpiry";
|
|
179
|
+
readonly outputs: readonly [{
|
|
180
|
+
readonly internalType: "uint256";
|
|
181
|
+
readonly name: "";
|
|
182
|
+
readonly type: "uint256";
|
|
183
|
+
}];
|
|
184
|
+
readonly stateMutability: "view";
|
|
185
|
+
readonly type: "function";
|
|
186
|
+
}, {
|
|
187
|
+
readonly inputs: readonly [{
|
|
188
|
+
readonly internalType: "uint256";
|
|
189
|
+
readonly name: "jobId";
|
|
190
|
+
readonly type: "uint256";
|
|
191
|
+
}];
|
|
192
|
+
readonly name: "proposedTerms";
|
|
193
|
+
readonly outputs: readonly [{
|
|
194
|
+
readonly internalType: "uint256";
|
|
195
|
+
readonly name: "duration";
|
|
196
|
+
readonly type: "uint256";
|
|
197
|
+
}, {
|
|
198
|
+
readonly internalType: "uint256";
|
|
199
|
+
readonly name: "packageId";
|
|
200
|
+
readonly type: "uint256";
|
|
201
|
+
}];
|
|
202
|
+
readonly stateMutability: "view";
|
|
203
|
+
readonly type: "function";
|
|
204
|
+
}, {
|
|
205
|
+
readonly inputs: readonly [];
|
|
206
|
+
readonly name: "requiredSelectors";
|
|
207
|
+
readonly outputs: readonly [{
|
|
208
|
+
readonly internalType: "bytes4[]";
|
|
209
|
+
readonly name: "";
|
|
210
|
+
readonly type: "bytes4[]";
|
|
211
|
+
}];
|
|
212
|
+
readonly stateMutability: "pure";
|
|
213
|
+
readonly type: "function";
|
|
214
|
+
}, {
|
|
215
|
+
readonly inputs: readonly [];
|
|
216
|
+
readonly name: "subscriptionState";
|
|
217
|
+
readonly outputs: readonly [{
|
|
218
|
+
readonly internalType: "contract SubscriptionState";
|
|
219
|
+
readonly name: "";
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
}];
|
|
222
|
+
readonly stateMutability: "view";
|
|
223
|
+
readonly type: "function";
|
|
224
|
+
}, {
|
|
225
|
+
readonly inputs: readonly [{
|
|
226
|
+
readonly internalType: "bytes4";
|
|
227
|
+
readonly name: "interfaceId";
|
|
228
|
+
readonly type: "bytes4";
|
|
229
|
+
}];
|
|
230
|
+
readonly name: "supportsInterface";
|
|
231
|
+
readonly outputs: readonly [{
|
|
232
|
+
readonly internalType: "bool";
|
|
233
|
+
readonly name: "";
|
|
234
|
+
readonly type: "bool";
|
|
235
|
+
}];
|
|
236
|
+
readonly stateMutability: "view";
|
|
237
|
+
readonly type: "function";
|
|
238
|
+
}];
|
|
239
|
+
//# sourceMappingURL=subscriptionHookAbi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptionHookAbi.d.ts","sourceRoot":"","sources":["../../src/core/subscriptionHookAbi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqMxB,CAAC"}
|