@abbababa/sdk 0.2.0 → 0.4.0
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 +46 -8
- package/dist/buyer.d.ts +1 -1
- package/dist/buyer.js +1 -1
- package/dist/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -1
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +4 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +8 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/memory.d.ts +59 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/memory.js +43 -0
- package/dist/memory.js.map +1 -0
- package/dist/messages.d.ts +65 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +36 -0
- package/dist/messages.js.map +1 -0
- package/dist/types.d.ts +26 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/wallet/abi.d.ts +191 -40
- package/dist/wallet/abi.d.ts.map +1 -1
- package/dist/wallet/abi.js +148 -39
- package/dist/wallet/abi.js.map +1 -1
- package/dist/wallet/constants.d.ts +14 -2
- package/dist/wallet/constants.d.ts.map +1 -1
- package/dist/wallet/constants.js +31 -14
- package/dist/wallet/constants.js.map +1 -1
- package/dist/wallet/escrow.d.ts +74 -18
- package/dist/wallet/escrow.d.ts.map +1 -1
- package/dist/wallet/escrow.js +126 -39
- package/dist/wallet/escrow.js.map +1 -1
- package/dist/wallet/index.d.ts +2 -2
- package/dist/wallet/index.d.ts.map +1 -1
- package/dist/wallet/index.js +5 -3
- package/dist/wallet/index.js.map +1 -1
- package/package.json +2 -1
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mapp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AAA;IACxB,KAAK,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,MAAM,CAAA;IAC1D,8CAA8C;IAC9C,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED,oEAAoE;AACpE,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,EAAE,MAAM,CAAA;IACxB,qFAAqF;IACrF,oBAAoB,EAAE,MAAM,CAAA;IAC5B,KAAK,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,MAAM,CAAA;IAC1D,8CAA8C;IAC9C,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B"}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,uCAAuC;AACvC,+EAA+E;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,uCAAuC;AACvC,+EAA+E;AAuV/E,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,+CAAQ,CAAA;IACR,mDAAU,CAAA;IACV,yDAAa,CAAA;IACb,uDAAY,CAAA;IACZ,uDAAY,CAAA;IACZ,uDAAY,CAAA;IACZ,uDAAY,CAAA;IACZ,yDAAa,CAAA;AACf,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AAED,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,iEAAQ,CAAA;IACR,+EAAe,CAAA;IACf,6EAAc,CAAA;IACd,mEAAS,CAAA;AACX,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC"}
|
package/dist/wallet/abi.d.ts
CHANGED
|
@@ -1,38 +1,47 @@
|
|
|
1
1
|
export declare const ABBABABA_ESCROW_ABI: readonly [{
|
|
2
|
-
readonly name: "
|
|
2
|
+
readonly name: "PLATFORM_FEE_BPS";
|
|
3
|
+
readonly type: "function";
|
|
4
|
+
readonly stateMutability: "view";
|
|
5
|
+
readonly inputs: readonly [];
|
|
6
|
+
readonly outputs: readonly [{
|
|
7
|
+
readonly name: "";
|
|
8
|
+
readonly type: "uint256";
|
|
9
|
+
}];
|
|
10
|
+
}, {
|
|
11
|
+
readonly name: "accept";
|
|
3
12
|
readonly type: "function";
|
|
4
13
|
readonly stateMutability: "nonpayable";
|
|
5
14
|
readonly inputs: readonly [{
|
|
6
15
|
readonly name: "escrowId";
|
|
7
16
|
readonly type: "bytes32";
|
|
8
|
-
}, {
|
|
9
|
-
readonly name: "seller";
|
|
10
|
-
readonly type: "address";
|
|
11
|
-
}, {
|
|
12
|
-
readonly name: "amount";
|
|
13
|
-
readonly type: "uint256";
|
|
14
|
-
}, {
|
|
15
|
-
readonly name: "token";
|
|
16
|
-
readonly type: "address";
|
|
17
|
-
}, {
|
|
18
|
-
readonly name: "deadline";
|
|
19
|
-
readonly type: "uint256";
|
|
20
17
|
}];
|
|
21
18
|
readonly outputs: readonly [];
|
|
22
19
|
}, {
|
|
23
|
-
readonly name: "
|
|
20
|
+
readonly name: "canClaimAbandoned";
|
|
24
21
|
readonly type: "function";
|
|
25
|
-
readonly stateMutability: "
|
|
22
|
+
readonly stateMutability: "view";
|
|
26
23
|
readonly inputs: readonly [{
|
|
27
24
|
readonly name: "escrowId";
|
|
28
25
|
readonly type: "bytes32";
|
|
29
|
-
}
|
|
30
|
-
|
|
26
|
+
}];
|
|
27
|
+
readonly outputs: readonly [{
|
|
28
|
+
readonly name: "";
|
|
29
|
+
readonly type: "bool";
|
|
30
|
+
}];
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "canFinalize";
|
|
33
|
+
readonly type: "function";
|
|
34
|
+
readonly stateMutability: "view";
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly name: "escrowId";
|
|
31
37
|
readonly type: "bytes32";
|
|
32
38
|
}];
|
|
33
|
-
readonly outputs: readonly [
|
|
39
|
+
readonly outputs: readonly [{
|
|
40
|
+
readonly name: "";
|
|
41
|
+
readonly type: "bool";
|
|
42
|
+
}];
|
|
34
43
|
}, {
|
|
35
|
-
readonly name: "
|
|
44
|
+
readonly name: "claimAbandoned";
|
|
36
45
|
readonly type: "function";
|
|
37
46
|
readonly stateMutability: "nonpayable";
|
|
38
47
|
readonly inputs: readonly [{
|
|
@@ -41,12 +50,33 @@ export declare const ABBABABA_ESCROW_ABI: readonly [{
|
|
|
41
50
|
}];
|
|
42
51
|
readonly outputs: readonly [];
|
|
43
52
|
}, {
|
|
44
|
-
readonly name: "
|
|
53
|
+
readonly name: "createEscrow";
|
|
45
54
|
readonly type: "function";
|
|
46
55
|
readonly stateMutability: "nonpayable";
|
|
47
56
|
readonly inputs: readonly [{
|
|
48
57
|
readonly name: "escrowId";
|
|
49
58
|
readonly type: "bytes32";
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "seller";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "amount";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "token";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "deadline";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "disputeWindow";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "abandonmentGrace";
|
|
76
|
+
readonly type: "uint256";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "criteriaHash";
|
|
79
|
+
readonly type: "bytes32";
|
|
50
80
|
}];
|
|
51
81
|
readonly outputs: readonly [];
|
|
52
82
|
}, {
|
|
@@ -59,7 +89,7 @@ export declare const ABBABABA_ESCROW_ABI: readonly [{
|
|
|
59
89
|
}];
|
|
60
90
|
readonly outputs: readonly [];
|
|
61
91
|
}, {
|
|
62
|
-
readonly name: "
|
|
92
|
+
readonly name: "finalizeRelease";
|
|
63
93
|
readonly type: "function";
|
|
64
94
|
readonly stateMutability: "nonpayable";
|
|
65
95
|
readonly inputs: readonly [{
|
|
@@ -85,10 +115,10 @@ export declare const ABBABABA_ESCROW_ABI: readonly [{
|
|
|
85
115
|
readonly name: "seller";
|
|
86
116
|
readonly type: "address";
|
|
87
117
|
}, {
|
|
88
|
-
readonly name: "
|
|
118
|
+
readonly name: "lockedAmount";
|
|
89
119
|
readonly type: "uint256";
|
|
90
120
|
}, {
|
|
91
|
-
readonly name: "
|
|
121
|
+
readonly name: "platformFee";
|
|
92
122
|
readonly type: "uint256";
|
|
93
123
|
}, {
|
|
94
124
|
readonly name: "status";
|
|
@@ -99,12 +129,21 @@ export declare const ABBABABA_ESCROW_ABI: readonly [{
|
|
|
99
129
|
}, {
|
|
100
130
|
readonly name: "deadline";
|
|
101
131
|
readonly type: "uint256";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "disputeWindow";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
}, {
|
|
136
|
+
readonly name: "abandonmentGrace";
|
|
137
|
+
readonly type: "uint256";
|
|
102
138
|
}, {
|
|
103
139
|
readonly name: "deliveredAt";
|
|
104
140
|
readonly type: "uint256";
|
|
105
141
|
}, {
|
|
106
142
|
readonly name: "proofHash";
|
|
107
143
|
readonly type: "bytes32";
|
|
144
|
+
}, {
|
|
145
|
+
readonly name: "criteriaHash";
|
|
146
|
+
readonly type: "bytes32";
|
|
108
147
|
}];
|
|
109
148
|
}, {
|
|
110
149
|
readonly name: "isDisputeWindowActive";
|
|
@@ -119,31 +158,58 @@ export declare const ABBABABA_ESCROW_ABI: readonly [{
|
|
|
119
158
|
readonly type: "bool";
|
|
120
159
|
}];
|
|
121
160
|
}, {
|
|
122
|
-
readonly name: "
|
|
161
|
+
readonly name: "isTokenSupported";
|
|
123
162
|
readonly type: "function";
|
|
124
163
|
readonly stateMutability: "view";
|
|
125
164
|
readonly inputs: readonly [{
|
|
126
|
-
readonly name: "
|
|
127
|
-
readonly type: "
|
|
165
|
+
readonly name: "token";
|
|
166
|
+
readonly type: "address";
|
|
128
167
|
}];
|
|
129
168
|
readonly outputs: readonly [{
|
|
130
169
|
readonly name: "";
|
|
131
170
|
readonly type: "bool";
|
|
132
171
|
}];
|
|
133
172
|
}, {
|
|
134
|
-
readonly name: "
|
|
173
|
+
readonly name: "paused";
|
|
135
174
|
readonly type: "function";
|
|
136
175
|
readonly stateMutability: "view";
|
|
176
|
+
readonly inputs: readonly [];
|
|
177
|
+
readonly outputs: readonly [{
|
|
178
|
+
readonly name: "";
|
|
179
|
+
readonly type: "bool";
|
|
180
|
+
}];
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "resolveDispute";
|
|
183
|
+
readonly type: "function";
|
|
184
|
+
readonly stateMutability: "nonpayable";
|
|
137
185
|
readonly inputs: readonly [{
|
|
138
186
|
readonly name: "escrowId";
|
|
139
187
|
readonly type: "bytes32";
|
|
188
|
+
}, {
|
|
189
|
+
readonly name: "outcome";
|
|
190
|
+
readonly type: "uint8";
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "buyerPercent";
|
|
193
|
+
readonly type: "uint256";
|
|
194
|
+
}, {
|
|
195
|
+
readonly name: "sellerPercent";
|
|
196
|
+
readonly type: "uint256";
|
|
140
197
|
}];
|
|
141
|
-
readonly outputs: readonly [
|
|
142
|
-
|
|
143
|
-
|
|
198
|
+
readonly outputs: readonly [];
|
|
199
|
+
}, {
|
|
200
|
+
readonly name: "submitDelivery";
|
|
201
|
+
readonly type: "function";
|
|
202
|
+
readonly stateMutability: "nonpayable";
|
|
203
|
+
readonly inputs: readonly [{
|
|
204
|
+
readonly name: "escrowId";
|
|
205
|
+
readonly type: "bytes32";
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "proofHash";
|
|
208
|
+
readonly type: "bytes32";
|
|
144
209
|
}];
|
|
210
|
+
readonly outputs: readonly [];
|
|
145
211
|
}, {
|
|
146
|
-
readonly name: "
|
|
212
|
+
readonly name: "supportedTokens";
|
|
147
213
|
readonly type: "function";
|
|
148
214
|
readonly stateMutability: "view";
|
|
149
215
|
readonly inputs: readonly [{
|
|
@@ -155,13 +221,13 @@ export declare const ABBABABA_ESCROW_ABI: readonly [{
|
|
|
155
221
|
readonly type: "bool";
|
|
156
222
|
}];
|
|
157
223
|
}, {
|
|
158
|
-
readonly name: "
|
|
224
|
+
readonly name: "version";
|
|
159
225
|
readonly type: "function";
|
|
160
|
-
readonly stateMutability: "
|
|
226
|
+
readonly stateMutability: "pure";
|
|
161
227
|
readonly inputs: readonly [];
|
|
162
228
|
readonly outputs: readonly [{
|
|
163
229
|
readonly name: "";
|
|
164
|
-
readonly type: "
|
|
230
|
+
readonly type: "string";
|
|
165
231
|
}];
|
|
166
232
|
}];
|
|
167
233
|
export declare const ABBABABA_SCORE_ABI: readonly [{
|
|
@@ -177,7 +243,7 @@ export declare const ABBABABA_SCORE_ABI: readonly [{
|
|
|
177
243
|
readonly type: "int256";
|
|
178
244
|
}];
|
|
179
245
|
}, {
|
|
180
|
-
readonly name: "
|
|
246
|
+
readonly name: "getMaxJobValue";
|
|
181
247
|
readonly type: "function";
|
|
182
248
|
readonly stateMutability: "view";
|
|
183
249
|
readonly inputs: readonly [{
|
|
@@ -186,7 +252,7 @@ export declare const ABBABABA_SCORE_ABI: readonly [{
|
|
|
186
252
|
}];
|
|
187
253
|
readonly outputs: readonly [{
|
|
188
254
|
readonly name: "";
|
|
189
|
-
readonly type: "
|
|
255
|
+
readonly type: "uint256";
|
|
190
256
|
}];
|
|
191
257
|
}, {
|
|
192
258
|
readonly name: "getAgentStats";
|
|
@@ -200,17 +266,102 @@ export declare const ABBABABA_SCORE_ABI: readonly [{
|
|
|
200
266
|
readonly name: "score";
|
|
201
267
|
readonly type: "int256";
|
|
202
268
|
}, {
|
|
203
|
-
readonly name: "
|
|
269
|
+
readonly name: "jobs";
|
|
204
270
|
readonly type: "uint256";
|
|
205
271
|
}, {
|
|
206
272
|
readonly name: "disputesLost";
|
|
207
273
|
readonly type: "uint256";
|
|
208
274
|
}, {
|
|
209
|
-
readonly name: "
|
|
275
|
+
readonly name: "abandoned";
|
|
210
276
|
readonly type: "uint256";
|
|
211
277
|
}, {
|
|
212
|
-
readonly name: "
|
|
213
|
-
readonly type: "
|
|
278
|
+
readonly name: "maxJobValue";
|
|
279
|
+
readonly type: "uint256";
|
|
280
|
+
}];
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "recordCompletion";
|
|
283
|
+
readonly type: "function";
|
|
284
|
+
readonly stateMutability: "nonpayable";
|
|
285
|
+
readonly inputs: readonly [{
|
|
286
|
+
readonly name: "buyer";
|
|
287
|
+
readonly type: "address";
|
|
288
|
+
}, {
|
|
289
|
+
readonly name: "seller";
|
|
290
|
+
readonly type: "address";
|
|
291
|
+
}];
|
|
292
|
+
readonly outputs: readonly [];
|
|
293
|
+
}, {
|
|
294
|
+
readonly name: "recordDisputeOutcome";
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
readonly stateMutability: "nonpayable";
|
|
297
|
+
readonly inputs: readonly [{
|
|
298
|
+
readonly name: "buyer";
|
|
299
|
+
readonly type: "address";
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "seller";
|
|
302
|
+
readonly type: "address";
|
|
303
|
+
}, {
|
|
304
|
+
readonly name: "outcome";
|
|
305
|
+
readonly type: "uint8";
|
|
306
|
+
}];
|
|
307
|
+
readonly outputs: readonly [];
|
|
308
|
+
}, {
|
|
309
|
+
readonly name: "recordAbandonment";
|
|
310
|
+
readonly type: "function";
|
|
311
|
+
readonly stateMutability: "nonpayable";
|
|
312
|
+
readonly inputs: readonly [{
|
|
313
|
+
readonly name: "seller";
|
|
314
|
+
readonly type: "address";
|
|
315
|
+
}];
|
|
316
|
+
readonly outputs: readonly [];
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "version";
|
|
319
|
+
readonly type: "function";
|
|
320
|
+
readonly stateMutability: "pure";
|
|
321
|
+
readonly inputs: readonly [];
|
|
322
|
+
readonly outputs: readonly [{
|
|
323
|
+
readonly name: "";
|
|
324
|
+
readonly type: "string";
|
|
325
|
+
}];
|
|
326
|
+
}];
|
|
327
|
+
export declare const ABBABABA_RESOLVER_ABI: readonly [{
|
|
328
|
+
readonly name: "RESOLVER_ROLE";
|
|
329
|
+
readonly type: "function";
|
|
330
|
+
readonly stateMutability: "view";
|
|
331
|
+
readonly inputs: readonly [];
|
|
332
|
+
readonly outputs: readonly [{
|
|
333
|
+
readonly name: "";
|
|
334
|
+
readonly type: "bytes32";
|
|
335
|
+
}];
|
|
336
|
+
}, {
|
|
337
|
+
readonly name: "submitResolution";
|
|
338
|
+
readonly type: "function";
|
|
339
|
+
readonly stateMutability: "nonpayable";
|
|
340
|
+
readonly inputs: readonly [{
|
|
341
|
+
readonly name: "escrowId";
|
|
342
|
+
readonly type: "bytes32";
|
|
343
|
+
}, {
|
|
344
|
+
readonly name: "outcome";
|
|
345
|
+
readonly type: "uint8";
|
|
346
|
+
}, {
|
|
347
|
+
readonly name: "buyerPercent";
|
|
348
|
+
readonly type: "uint256";
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "sellerPercent";
|
|
351
|
+
readonly type: "uint256";
|
|
352
|
+
}, {
|
|
353
|
+
readonly name: "reasoning";
|
|
354
|
+
readonly type: "string";
|
|
355
|
+
}];
|
|
356
|
+
readonly outputs: readonly [];
|
|
357
|
+
}, {
|
|
358
|
+
readonly name: "version";
|
|
359
|
+
readonly type: "function";
|
|
360
|
+
readonly stateMutability: "pure";
|
|
361
|
+
readonly inputs: readonly [];
|
|
362
|
+
readonly outputs: readonly [{
|
|
363
|
+
readonly name: "";
|
|
364
|
+
readonly type: "string";
|
|
214
365
|
}];
|
|
215
366
|
}];
|
|
216
367
|
export declare const ERC20_ABI: readonly [{
|
package/dist/wallet/abi.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../src/wallet/abi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../src/wallet/abi.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgJtB,CAAA;AAMV,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+DrB,CAAA;AAKV,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BxB,CAAA;AAGV,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCZ,CAAA"}
|
package/dist/wallet/abi.js
CHANGED
|
@@ -1,41 +1,56 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Source: contracts/contracts/
|
|
1
|
+
// AbbababaEscrowV2 ABI — UUPS upgradeable escrow with 2% platform fee
|
|
2
|
+
// Source: contracts/contracts/AbbababaEscrowV2.sol
|
|
3
|
+
// Deployed: 2026-02-14 to Base Sepolia
|
|
3
4
|
export const ABBABABA_ESCROW_ABI = [
|
|
4
5
|
{
|
|
5
|
-
name: '
|
|
6
|
+
name: 'PLATFORM_FEE_BPS',
|
|
6
7
|
type: 'function',
|
|
7
|
-
stateMutability: '
|
|
8
|
-
inputs: [
|
|
9
|
-
|
|
10
|
-
{ name: 'seller', type: 'address' },
|
|
11
|
-
{ name: 'amount', type: 'uint256' },
|
|
12
|
-
{ name: 'token', type: 'address' },
|
|
13
|
-
{ name: 'deadline', type: 'uint256' },
|
|
14
|
-
],
|
|
15
|
-
outputs: [],
|
|
8
|
+
stateMutability: 'view',
|
|
9
|
+
inputs: [],
|
|
10
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
16
11
|
},
|
|
17
12
|
{
|
|
18
|
-
name: '
|
|
13
|
+
name: 'accept',
|
|
19
14
|
type: 'function',
|
|
20
15
|
stateMutability: 'nonpayable',
|
|
21
|
-
inputs: [
|
|
22
|
-
{ name: 'escrowId', type: 'bytes32' },
|
|
23
|
-
{ name: 'proofHash', type: 'bytes32' },
|
|
24
|
-
],
|
|
16
|
+
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
25
17
|
outputs: [],
|
|
26
18
|
},
|
|
27
19
|
{
|
|
28
|
-
name: '
|
|
20
|
+
name: 'canClaimAbandoned',
|
|
21
|
+
type: 'function',
|
|
22
|
+
stateMutability: 'view',
|
|
23
|
+
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
24
|
+
outputs: [{ name: '', type: 'bool' }],
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'canFinalize',
|
|
28
|
+
type: 'function',
|
|
29
|
+
stateMutability: 'view',
|
|
30
|
+
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
31
|
+
outputs: [{ name: '', type: 'bool' }],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'claimAbandoned',
|
|
29
35
|
type: 'function',
|
|
30
36
|
stateMutability: 'nonpayable',
|
|
31
37
|
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
32
38
|
outputs: [],
|
|
33
39
|
},
|
|
34
40
|
{
|
|
35
|
-
name: '
|
|
41
|
+
name: 'createEscrow',
|
|
36
42
|
type: 'function',
|
|
37
43
|
stateMutability: 'nonpayable',
|
|
38
|
-
inputs: [
|
|
44
|
+
inputs: [
|
|
45
|
+
{ name: 'escrowId', type: 'bytes32' },
|
|
46
|
+
{ name: 'seller', type: 'address' },
|
|
47
|
+
{ name: 'amount', type: 'uint256' },
|
|
48
|
+
{ name: 'token', type: 'address' },
|
|
49
|
+
{ name: 'deadline', type: 'uint256' },
|
|
50
|
+
{ name: 'disputeWindow', type: 'uint256' },
|
|
51
|
+
{ name: 'abandonmentGrace', type: 'uint256' },
|
|
52
|
+
{ name: 'criteriaHash', type: 'bytes32' },
|
|
53
|
+
],
|
|
39
54
|
outputs: [],
|
|
40
55
|
},
|
|
41
56
|
{
|
|
@@ -46,7 +61,7 @@ export const ABBABABA_ESCROW_ABI = [
|
|
|
46
61
|
outputs: [],
|
|
47
62
|
},
|
|
48
63
|
{
|
|
49
|
-
name: '
|
|
64
|
+
name: 'finalizeRelease',
|
|
50
65
|
type: 'function',
|
|
51
66
|
stateMutability: 'nonpayable',
|
|
52
67
|
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
@@ -61,13 +76,16 @@ export const ABBABABA_ESCROW_ABI = [
|
|
|
61
76
|
{ name: 'token', type: 'address' },
|
|
62
77
|
{ name: 'buyer', type: 'address' },
|
|
63
78
|
{ name: 'seller', type: 'address' },
|
|
64
|
-
{ name: '
|
|
65
|
-
{ name: '
|
|
79
|
+
{ name: 'lockedAmount', type: 'uint256' },
|
|
80
|
+
{ name: 'platformFee', type: 'uint256' },
|
|
66
81
|
{ name: 'status', type: 'uint8' },
|
|
67
82
|
{ name: 'createdAt', type: 'uint256' },
|
|
68
83
|
{ name: 'deadline', type: 'uint256' },
|
|
84
|
+
{ name: 'disputeWindow', type: 'uint256' },
|
|
85
|
+
{ name: 'abandonmentGrace', type: 'uint256' },
|
|
69
86
|
{ name: 'deliveredAt', type: 'uint256' },
|
|
70
87
|
{ name: 'proofHash', type: 'bytes32' },
|
|
88
|
+
{ name: 'criteriaHash', type: 'bytes32' },
|
|
71
89
|
],
|
|
72
90
|
},
|
|
73
91
|
{
|
|
@@ -78,36 +96,60 @@ export const ABBABABA_ESCROW_ABI = [
|
|
|
78
96
|
outputs: [{ name: '', type: 'bool' }],
|
|
79
97
|
},
|
|
80
98
|
{
|
|
81
|
-
name: '
|
|
99
|
+
name: 'isTokenSupported',
|
|
82
100
|
type: 'function',
|
|
83
101
|
stateMutability: 'view',
|
|
84
|
-
inputs: [{ name: '
|
|
102
|
+
inputs: [{ name: 'token', type: 'address' }],
|
|
85
103
|
outputs: [{ name: '', type: 'bool' }],
|
|
86
104
|
},
|
|
87
105
|
{
|
|
88
|
-
name: '
|
|
106
|
+
name: 'paused',
|
|
89
107
|
type: 'function',
|
|
90
108
|
stateMutability: 'view',
|
|
91
|
-
inputs: [
|
|
109
|
+
inputs: [],
|
|
92
110
|
outputs: [{ name: '', type: 'bool' }],
|
|
93
111
|
},
|
|
94
112
|
{
|
|
95
|
-
name: '
|
|
113
|
+
name: 'resolveDispute',
|
|
114
|
+
type: 'function',
|
|
115
|
+
stateMutability: 'nonpayable',
|
|
116
|
+
inputs: [
|
|
117
|
+
{ name: 'escrowId', type: 'bytes32' },
|
|
118
|
+
{ name: 'outcome', type: 'uint8' },
|
|
119
|
+
{ name: 'buyerPercent', type: 'uint256' },
|
|
120
|
+
{ name: 'sellerPercent', type: 'uint256' },
|
|
121
|
+
],
|
|
122
|
+
outputs: [],
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'submitDelivery',
|
|
126
|
+
type: 'function',
|
|
127
|
+
stateMutability: 'nonpayable',
|
|
128
|
+
inputs: [
|
|
129
|
+
{ name: 'escrowId', type: 'bytes32' },
|
|
130
|
+
{ name: 'proofHash', type: 'bytes32' },
|
|
131
|
+
],
|
|
132
|
+
outputs: [],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'supportedTokens',
|
|
96
136
|
type: 'function',
|
|
97
137
|
stateMutability: 'view',
|
|
98
138
|
inputs: [{ name: 'token', type: 'address' }],
|
|
99
139
|
outputs: [{ name: '', type: 'bool' }],
|
|
100
140
|
},
|
|
101
141
|
{
|
|
102
|
-
name: '
|
|
142
|
+
name: 'version',
|
|
103
143
|
type: 'function',
|
|
104
|
-
stateMutability: '
|
|
144
|
+
stateMutability: 'pure',
|
|
105
145
|
inputs: [],
|
|
106
|
-
outputs: [{ name: '', type: '
|
|
146
|
+
outputs: [{ name: '', type: 'string' }],
|
|
107
147
|
},
|
|
108
148
|
];
|
|
109
|
-
//
|
|
110
|
-
// Source: contracts/contracts/
|
|
149
|
+
// AbbababaScoreV2 ABI — on-chain agent reputation (UUPS upgradeable)
|
|
150
|
+
// Source: contracts/contracts/AbbababaScoreV2.sol
|
|
151
|
+
// Deployed: 2026-02-14 to Base Sepolia
|
|
152
|
+
// V2: Simplified - removed registration points, unlock threshold, bonds, donations
|
|
111
153
|
export const ABBABABA_SCORE_ABI = [
|
|
112
154
|
{
|
|
113
155
|
name: 'getScore',
|
|
@@ -117,11 +159,11 @@ export const ABBABABA_SCORE_ABI = [
|
|
|
117
159
|
outputs: [{ name: '', type: 'int256' }],
|
|
118
160
|
},
|
|
119
161
|
{
|
|
120
|
-
name: '
|
|
162
|
+
name: 'getMaxJobValue',
|
|
121
163
|
type: 'function',
|
|
122
164
|
stateMutability: 'view',
|
|
123
165
|
inputs: [{ name: 'agent', type: 'address' }],
|
|
124
|
-
outputs: [{ name: '', type: '
|
|
166
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
125
167
|
},
|
|
126
168
|
{
|
|
127
169
|
name: 'getAgentStats',
|
|
@@ -130,14 +172,81 @@ export const ABBABABA_SCORE_ABI = [
|
|
|
130
172
|
inputs: [{ name: 'agent', type: 'address' }],
|
|
131
173
|
outputs: [
|
|
132
174
|
{ name: 'score', type: 'int256' },
|
|
133
|
-
{ name: '
|
|
175
|
+
{ name: 'jobs', type: 'uint256' },
|
|
134
176
|
{ name: 'disputesLost', type: 'uint256' },
|
|
135
|
-
{ name: '
|
|
136
|
-
{ name: '
|
|
177
|
+
{ name: 'abandoned', type: 'uint256' },
|
|
178
|
+
{ name: 'maxJobValue', type: 'uint256' },
|
|
179
|
+
],
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'recordCompletion',
|
|
183
|
+
type: 'function',
|
|
184
|
+
stateMutability: 'nonpayable',
|
|
185
|
+
inputs: [
|
|
186
|
+
{ name: 'buyer', type: 'address' },
|
|
187
|
+
{ name: 'seller', type: 'address' },
|
|
188
|
+
],
|
|
189
|
+
outputs: [],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'recordDisputeOutcome',
|
|
193
|
+
type: 'function',
|
|
194
|
+
stateMutability: 'nonpayable',
|
|
195
|
+
inputs: [
|
|
196
|
+
{ name: 'buyer', type: 'address' },
|
|
197
|
+
{ name: 'seller', type: 'address' },
|
|
198
|
+
{ name: 'outcome', type: 'uint8' },
|
|
137
199
|
],
|
|
200
|
+
outputs: [],
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'recordAbandonment',
|
|
204
|
+
type: 'function',
|
|
205
|
+
stateMutability: 'nonpayable',
|
|
206
|
+
inputs: [{ name: 'seller', type: 'address' }],
|
|
207
|
+
outputs: [],
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: 'version',
|
|
211
|
+
type: 'function',
|
|
212
|
+
stateMutability: 'pure',
|
|
213
|
+
inputs: [],
|
|
214
|
+
outputs: [{ name: '', type: 'string' }],
|
|
215
|
+
},
|
|
216
|
+
];
|
|
217
|
+
// AbbababaResolverV2 ABI — AI-only dispute resolution
|
|
218
|
+
// Source: contracts/contracts/AbbababaResolverV2.sol
|
|
219
|
+
// Deployed: 2026-02-14 to Base Sepolia
|
|
220
|
+
export const ABBABABA_RESOLVER_ABI = [
|
|
221
|
+
{
|
|
222
|
+
name: 'RESOLVER_ROLE',
|
|
223
|
+
type: 'function',
|
|
224
|
+
stateMutability: 'view',
|
|
225
|
+
inputs: [],
|
|
226
|
+
outputs: [{ name: '', type: 'bytes32' }],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: 'submitResolution',
|
|
230
|
+
type: 'function',
|
|
231
|
+
stateMutability: 'nonpayable',
|
|
232
|
+
inputs: [
|
|
233
|
+
{ name: 'escrowId', type: 'bytes32' },
|
|
234
|
+
{ name: 'outcome', type: 'uint8' },
|
|
235
|
+
{ name: 'buyerPercent', type: 'uint256' },
|
|
236
|
+
{ name: 'sellerPercent', type: 'uint256' },
|
|
237
|
+
{ name: 'reasoning', type: 'string' },
|
|
238
|
+
],
|
|
239
|
+
outputs: [],
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: 'version',
|
|
243
|
+
type: 'function',
|
|
244
|
+
stateMutability: 'pure',
|
|
245
|
+
inputs: [],
|
|
246
|
+
outputs: [{ name: '', type: 'string' }],
|
|
138
247
|
},
|
|
139
248
|
];
|
|
140
|
-
// Standard ERC20 ABI - approve
|
|
249
|
+
// Standard ERC20 ABI - approve, balanceOf, allowance, mint (testnet only)
|
|
141
250
|
export const ERC20_ABI = [
|
|
142
251
|
{
|
|
143
252
|
name: 'approve',
|