@abbababa/sdk 0.3.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/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 +25 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/wallet/abi.d.ts +125 -207
- package/dist/wallet/abi.d.ts.map +1 -1
- package/dist/wallet/abi.js +97 -161
- package/dist/wallet/abi.js.map +1 -1
- package/dist/wallet/constants.d.ts +12 -10
- package/dist/wallet/constants.d.ts.map +1 -1
- package/dist/wallet/constants.js +24 -24
- package/dist/wallet/constants.js.map +1 -1
- package/dist/wallet/escrow.d.ts +36 -30
- package/dist/wallet/escrow.d.ts.map +1 -1
- package/dist/wallet/escrow.js +74 -91
- package/dist/wallet/escrow.js.map +1 -1
- package/dist/wallet/index.d.ts +1 -1
- package/dist/wallet/index.d.ts.map +1 -1
- package/dist/wallet/index.js +4 -4
- package/dist/wallet/index.js.map +1 -1
- package/package.json +1 -1
package/dist/wallet/abi.js
CHANGED
|
@@ -1,65 +1,67 @@
|
|
|
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
|
-
{ name: 'criteriaHash', type: 'bytes32' },
|
|
15
|
-
],
|
|
16
|
-
outputs: [],
|
|
8
|
+
stateMutability: 'view',
|
|
9
|
+
inputs: [],
|
|
10
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
17
11
|
},
|
|
18
12
|
{
|
|
19
|
-
name: '
|
|
13
|
+
name: 'accept',
|
|
20
14
|
type: 'function',
|
|
21
15
|
stateMutability: 'nonpayable',
|
|
22
|
-
inputs: [
|
|
23
|
-
{ name: 'escrowId', type: 'bytes32' },
|
|
24
|
-
{ name: 'proofHash', type: 'bytes32' },
|
|
25
|
-
],
|
|
16
|
+
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
26
17
|
outputs: [],
|
|
27
18
|
},
|
|
28
19
|
{
|
|
29
|
-
name: '
|
|
20
|
+
name: 'canClaimAbandoned',
|
|
30
21
|
type: 'function',
|
|
31
|
-
stateMutability: '
|
|
22
|
+
stateMutability: 'view',
|
|
32
23
|
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
33
|
-
outputs: [],
|
|
24
|
+
outputs: [{ name: '', type: 'bool' }],
|
|
34
25
|
},
|
|
35
26
|
{
|
|
36
|
-
name: '
|
|
27
|
+
name: 'canFinalize',
|
|
37
28
|
type: 'function',
|
|
38
|
-
stateMutability: '
|
|
29
|
+
stateMutability: 'view',
|
|
39
30
|
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
40
|
-
outputs: [],
|
|
31
|
+
outputs: [{ name: '', type: 'bool' }],
|
|
41
32
|
},
|
|
42
33
|
{
|
|
43
|
-
name: '
|
|
34
|
+
name: 'claimAbandoned',
|
|
44
35
|
type: 'function',
|
|
45
36
|
stateMutability: 'nonpayable',
|
|
46
37
|
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
47
38
|
outputs: [],
|
|
48
39
|
},
|
|
49
40
|
{
|
|
50
|
-
name: '
|
|
41
|
+
name: 'createEscrow',
|
|
51
42
|
type: 'function',
|
|
52
43
|
stateMutability: 'nonpayable',
|
|
53
44
|
inputs: [
|
|
54
45
|
{ name: 'escrowId', type: 'bytes32' },
|
|
55
|
-
{ name: '
|
|
56
|
-
{ name: '
|
|
57
|
-
{ name: '
|
|
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' },
|
|
58
53
|
],
|
|
59
54
|
outputs: [],
|
|
60
55
|
},
|
|
61
56
|
{
|
|
62
|
-
name: '
|
|
57
|
+
name: 'dispute',
|
|
58
|
+
type: 'function',
|
|
59
|
+
stateMutability: 'nonpayable',
|
|
60
|
+
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
61
|
+
outputs: [],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'finalizeRelease',
|
|
63
65
|
type: 'function',
|
|
64
66
|
stateMutability: 'nonpayable',
|
|
65
67
|
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
@@ -74,11 +76,13 @@ export const ABBABABA_ESCROW_ABI = [
|
|
|
74
76
|
{ name: 'token', type: 'address' },
|
|
75
77
|
{ name: 'buyer', type: 'address' },
|
|
76
78
|
{ name: 'seller', type: 'address' },
|
|
77
|
-
{ name: '
|
|
78
|
-
{ name: '
|
|
79
|
+
{ name: 'lockedAmount', type: 'uint256' },
|
|
80
|
+
{ name: 'platformFee', type: 'uint256' },
|
|
79
81
|
{ name: 'status', type: 'uint8' },
|
|
80
82
|
{ name: 'createdAt', type: 'uint256' },
|
|
81
83
|
{ name: 'deadline', type: 'uint256' },
|
|
84
|
+
{ name: 'disputeWindow', type: 'uint256' },
|
|
85
|
+
{ name: 'abandonmentGrace', type: 'uint256' },
|
|
82
86
|
{ name: 'deliveredAt', type: 'uint256' },
|
|
83
87
|
{ name: 'proofHash', type: 'bytes32' },
|
|
84
88
|
{ name: 'criteriaHash', type: 'bytes32' },
|
|
@@ -92,50 +96,60 @@ export const ABBABABA_ESCROW_ABI = [
|
|
|
92
96
|
outputs: [{ name: '', type: 'bool' }],
|
|
93
97
|
},
|
|
94
98
|
{
|
|
95
|
-
name: '
|
|
99
|
+
name: 'isTokenSupported',
|
|
96
100
|
type: 'function',
|
|
97
101
|
stateMutability: 'view',
|
|
98
|
-
inputs: [{ name: '
|
|
102
|
+
inputs: [{ name: 'token', type: 'address' }],
|
|
99
103
|
outputs: [{ name: '', type: 'bool' }],
|
|
100
104
|
},
|
|
101
105
|
{
|
|
102
|
-
name: '
|
|
106
|
+
name: 'paused',
|
|
103
107
|
type: 'function',
|
|
104
108
|
stateMutability: 'view',
|
|
105
|
-
inputs: [
|
|
109
|
+
inputs: [],
|
|
106
110
|
outputs: [{ name: '', type: 'bool' }],
|
|
107
111
|
},
|
|
108
112
|
{
|
|
109
|
-
name: '
|
|
113
|
+
name: 'resolveDispute',
|
|
110
114
|
type: 'function',
|
|
111
|
-
stateMutability: '
|
|
112
|
-
inputs: [
|
|
113
|
-
|
|
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: [],
|
|
114
123
|
},
|
|
115
124
|
{
|
|
116
|
-
name: '
|
|
125
|
+
name: 'submitDelivery',
|
|
117
126
|
type: 'function',
|
|
118
|
-
stateMutability: '
|
|
119
|
-
inputs: [
|
|
120
|
-
|
|
127
|
+
stateMutability: 'nonpayable',
|
|
128
|
+
inputs: [
|
|
129
|
+
{ name: 'escrowId', type: 'bytes32' },
|
|
130
|
+
{ name: 'proofHash', type: 'bytes32' },
|
|
131
|
+
],
|
|
132
|
+
outputs: [],
|
|
121
133
|
},
|
|
122
134
|
{
|
|
123
|
-
name: '
|
|
135
|
+
name: 'supportedTokens',
|
|
124
136
|
type: 'function',
|
|
125
137
|
stateMutability: 'view',
|
|
126
|
-
inputs: [],
|
|
127
|
-
outputs: [{ name: '', type: '
|
|
138
|
+
inputs: [{ name: 'token', type: 'address' }],
|
|
139
|
+
outputs: [{ name: '', type: 'bool' }],
|
|
128
140
|
},
|
|
129
141
|
{
|
|
130
|
-
name: '
|
|
142
|
+
name: 'version',
|
|
131
143
|
type: 'function',
|
|
132
|
-
stateMutability: '
|
|
144
|
+
stateMutability: 'pure',
|
|
133
145
|
inputs: [],
|
|
134
|
-
outputs: [{ name: '', type: '
|
|
146
|
+
outputs: [{ name: '', type: 'string' }],
|
|
135
147
|
},
|
|
136
148
|
];
|
|
137
|
-
//
|
|
138
|
-
// 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
|
|
139
153
|
export const ABBABABA_SCORE_ABI = [
|
|
140
154
|
{
|
|
141
155
|
name: 'getScore',
|
|
@@ -145,22 +159,33 @@ export const ABBABABA_SCORE_ABI = [
|
|
|
145
159
|
outputs: [{ name: '', type: 'int256' }],
|
|
146
160
|
},
|
|
147
161
|
{
|
|
148
|
-
name: '
|
|
162
|
+
name: 'getMaxJobValue',
|
|
163
|
+
type: 'function',
|
|
164
|
+
stateMutability: 'view',
|
|
165
|
+
inputs: [{ name: 'agent', type: 'address' }],
|
|
166
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'getAgentStats',
|
|
149
170
|
type: 'function',
|
|
150
171
|
stateMutability: 'view',
|
|
151
172
|
inputs: [{ name: 'agent', type: 'address' }],
|
|
152
173
|
outputs: [
|
|
153
|
-
{ name: '
|
|
174
|
+
{ name: 'score', type: 'int256' },
|
|
175
|
+
{ name: 'jobs', type: 'uint256' },
|
|
154
176
|
{ name: 'disputesLost', type: 'uint256' },
|
|
155
|
-
{ name: '
|
|
156
|
-
{ name: '
|
|
177
|
+
{ name: 'abandoned', type: 'uint256' },
|
|
178
|
+
{ name: 'maxJobValue', type: 'uint256' },
|
|
157
179
|
],
|
|
158
180
|
},
|
|
159
181
|
{
|
|
160
182
|
name: 'recordCompletion',
|
|
161
183
|
type: 'function',
|
|
162
184
|
stateMutability: 'nonpayable',
|
|
163
|
-
inputs: [
|
|
185
|
+
inputs: [
|
|
186
|
+
{ name: 'buyer', type: 'address' },
|
|
187
|
+
{ name: 'seller', type: 'address' },
|
|
188
|
+
],
|
|
164
189
|
outputs: [],
|
|
165
190
|
},
|
|
166
191
|
{
|
|
@@ -168,7 +193,8 @@ export const ABBABABA_SCORE_ABI = [
|
|
|
168
193
|
type: 'function',
|
|
169
194
|
stateMutability: 'nonpayable',
|
|
170
195
|
inputs: [
|
|
171
|
-
{ name: '
|
|
196
|
+
{ name: 'buyer', type: 'address' },
|
|
197
|
+
{ name: 'seller', type: 'address' },
|
|
172
198
|
{ name: 'outcome', type: 'uint8' },
|
|
173
199
|
],
|
|
174
200
|
outputs: [],
|
|
@@ -177,140 +203,50 @@ export const ABBABABA_SCORE_ABI = [
|
|
|
177
203
|
name: 'recordAbandonment',
|
|
178
204
|
type: 'function',
|
|
179
205
|
stateMutability: 'nonpayable',
|
|
180
|
-
inputs: [{ name: '
|
|
206
|
+
inputs: [{ name: 'seller', type: 'address' }],
|
|
181
207
|
outputs: [],
|
|
182
208
|
},
|
|
183
209
|
{
|
|
184
210
|
name: 'version',
|
|
185
211
|
type: 'function',
|
|
186
|
-
stateMutability: '
|
|
212
|
+
stateMutability: 'pure',
|
|
187
213
|
inputs: [],
|
|
188
214
|
outputs: [{ name: '', type: 'string' }],
|
|
189
215
|
},
|
|
190
216
|
];
|
|
191
|
-
//
|
|
192
|
-
// Source: contracts/contracts/
|
|
217
|
+
// AbbababaResolverV2 ABI — AI-only dispute resolution
|
|
218
|
+
// Source: contracts/contracts/AbbababaResolverV2.sol
|
|
219
|
+
// Deployed: 2026-02-14 to Base Sepolia
|
|
193
220
|
export const ABBABABA_RESOLVER_ABI = [
|
|
194
221
|
{
|
|
195
|
-
name: '
|
|
196
|
-
type: 'function',
|
|
197
|
-
stateMutability: 'nonpayable',
|
|
198
|
-
inputs: [
|
|
199
|
-
{ name: 'escrowId', type: 'bytes32' },
|
|
200
|
-
{ name: 'outcome', type: 'uint8' },
|
|
201
|
-
{ name: 'buyerPercent', type: 'uint256' },
|
|
202
|
-
{ name: 'sellerPercent', type: 'uint256' },
|
|
203
|
-
{ name: 'reason', type: 'string' },
|
|
204
|
-
],
|
|
205
|
-
outputs: [],
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
name: 'submitPeerArbitrationResult',
|
|
209
|
-
type: 'function',
|
|
210
|
-
stateMutability: 'nonpayable',
|
|
211
|
-
inputs: [
|
|
212
|
-
{ name: 'escrowId', type: 'bytes32' },
|
|
213
|
-
{ name: 'outcome', type: 'uint8' },
|
|
214
|
-
{ name: 'buyerPercent', type: 'uint256' },
|
|
215
|
-
{ name: 'sellerPercent', type: 'uint256' },
|
|
216
|
-
{ name: 'reviewers', type: 'address[5]' },
|
|
217
|
-
],
|
|
218
|
-
outputs: [],
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
name: 'submitHumanReview',
|
|
222
|
-
type: 'function',
|
|
223
|
-
stateMutability: 'nonpayable',
|
|
224
|
-
inputs: [
|
|
225
|
-
{ name: 'escrowId', type: 'bytes32' },
|
|
226
|
-
{ name: 'outcome', type: 'uint8' },
|
|
227
|
-
{ name: 'buyerPercent', type: 'uint256' },
|
|
228
|
-
{ name: 'sellerPercent', type: 'uint256' },
|
|
229
|
-
{ name: 'reason', type: 'string' },
|
|
230
|
-
],
|
|
231
|
-
outputs: [],
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
name: 'version',
|
|
235
|
-
type: 'function',
|
|
236
|
-
stateMutability: 'view',
|
|
237
|
-
inputs: [],
|
|
238
|
-
outputs: [{ name: '', type: 'string' }],
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
name: 'ALGORITHM_ROLE',
|
|
242
|
-
type: 'function',
|
|
243
|
-
stateMutability: 'view',
|
|
244
|
-
inputs: [],
|
|
245
|
-
outputs: [{ name: '', type: 'bytes32' }],
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
name: 'PEER_ARBITER_ROLE',
|
|
249
|
-
type: 'function',
|
|
250
|
-
stateMutability: 'view',
|
|
251
|
-
inputs: [],
|
|
252
|
-
outputs: [{ name: '', type: 'bytes32' }],
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
name: 'HUMAN_REVIEWER_ROLE',
|
|
222
|
+
name: 'RESOLVER_ROLE',
|
|
256
223
|
type: 'function',
|
|
257
224
|
stateMutability: 'view',
|
|
258
225
|
inputs: [],
|
|
259
226
|
outputs: [{ name: '', type: 'bytes32' }],
|
|
260
227
|
},
|
|
261
|
-
];
|
|
262
|
-
// ReviewerPaymentV1 ABI — Payment distribution for peer reviewers
|
|
263
|
-
// Source: contracts/contracts/ReviewerPaymentV1.sol
|
|
264
|
-
export const REVIEWER_PAYMENT_ABI = [
|
|
265
228
|
{
|
|
266
|
-
name: '
|
|
229
|
+
name: 'submitResolution',
|
|
267
230
|
type: 'function',
|
|
268
231
|
stateMutability: 'nonpayable',
|
|
269
232
|
inputs: [
|
|
270
233
|
{ name: 'escrowId', type: 'bytes32' },
|
|
271
|
-
{ name: '
|
|
272
|
-
{ name: '
|
|
273
|
-
{ name: '
|
|
274
|
-
|
|
275
|
-
outputs: [],
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
name: 'recordVote',
|
|
279
|
-
type: 'function',
|
|
280
|
-
stateMutability: 'nonpayable',
|
|
281
|
-
inputs: [
|
|
282
|
-
{ name: 'escrowId', type: 'bytes32' },
|
|
283
|
-
{ name: 'reviewer', type: 'address' },
|
|
234
|
+
{ name: 'outcome', type: 'uint8' },
|
|
235
|
+
{ name: 'buyerPercent', type: 'uint256' },
|
|
236
|
+
{ name: 'sellerPercent', type: 'uint256' },
|
|
237
|
+
{ name: 'reasoning', type: 'string' },
|
|
284
238
|
],
|
|
285
239
|
outputs: [],
|
|
286
240
|
},
|
|
287
|
-
{
|
|
288
|
-
name: 'distributePayments',
|
|
289
|
-
type: 'function',
|
|
290
|
-
stateMutability: 'nonpayable',
|
|
291
|
-
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
292
|
-
outputs: [],
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
name: 'sessions',
|
|
296
|
-
type: 'function',
|
|
297
|
-
stateMutability: 'view',
|
|
298
|
-
inputs: [{ name: 'escrowId', type: 'bytes32' }],
|
|
299
|
-
outputs: [
|
|
300
|
-
{ name: 'token', type: 'address' },
|
|
301
|
-
{ name: 'totalFee', type: 'uint256' },
|
|
302
|
-
{ name: 'distributed', type: 'bool' },
|
|
303
|
-
],
|
|
304
|
-
},
|
|
305
241
|
{
|
|
306
242
|
name: 'version',
|
|
307
243
|
type: 'function',
|
|
308
|
-
stateMutability: '
|
|
244
|
+
stateMutability: 'pure',
|
|
309
245
|
inputs: [],
|
|
310
246
|
outputs: [{ name: '', type: 'string' }],
|
|
311
247
|
},
|
|
312
248
|
];
|
|
313
|
-
// Standard ERC20 ABI - approve
|
|
249
|
+
// Standard ERC20 ABI - approve, balanceOf, allowance, mint (testnet only)
|
|
314
250
|
export const ERC20_ABI = [
|
|
315
251
|
{
|
|
316
252
|
name: 'approve',
|
package/dist/wallet/abi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abi.js","sourceRoot":"","sources":["../../src/wallet/abi.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"abi.js","sourceRoot":"","sources":["../../src/wallet/abi.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,mDAAmD;AACnD,uCAAuC;AACvC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC;QACE,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC/C,OAAO,EAAE,EAAE;KACZ;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC/C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,E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SAAS,EAAE;YACpC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;KACtC;IACD;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;YAClC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;SACrC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;KACzC;IACD,6CAA6C;IAC7C;QACE,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,YAAY;QAC7B,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;YAC/B,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;SACpC;QACD,OAAO,EAAE,EAAE;KACZ;CACO,CAAA"}
|
|
@@ -2,19 +2,21 @@ export declare const POLYGON_AMOY_CHAIN_ID = 80002;
|
|
|
2
2
|
export declare const POLYGON_MAINNET_CHAIN_ID = 137;
|
|
3
3
|
export declare const BASE_SEPOLIA_CHAIN_ID = 84532;
|
|
4
4
|
export declare const BASE_MAINNET_CHAIN_ID = 8453;
|
|
5
|
-
/**
|
|
6
|
-
export declare const
|
|
7
|
-
/**
|
|
8
|
-
export declare const
|
|
9
|
-
/**
|
|
10
|
-
export declare const
|
|
11
|
-
/** ReviewerPaymentV1 — Payment distribution for peer reviewers. */
|
|
12
|
-
export declare const REVIEWER_PAYMENT_V1_ADDRESSES: Record<number, string>;
|
|
5
|
+
/** AbbababaEscrowV2 — UUPS upgradeable escrow with simplified AI-only dispute resolution. */
|
|
6
|
+
export declare const ESCROW_V2_ADDRESSES: Record<number, string>;
|
|
7
|
+
/** AbbababaScoreV2 — on-chain agent reputation with simplified +1/-3/-5 scoring (UUPS upgradeable). */
|
|
8
|
+
export declare const SCORE_V2_ADDRESSES: Record<number, string>;
|
|
9
|
+
/** AbbababaResolverV2 — AI-only instant dispute resolution (UUPS upgradeable). */
|
|
10
|
+
export declare const RESOLVER_V2_ADDRESSES: Record<number, string>;
|
|
13
11
|
/** Mock USDC for testnet. */
|
|
14
12
|
export declare const MOCK_USDC_ADDRESSES: Record<number, string>;
|
|
15
|
-
/** @deprecated Use
|
|
13
|
+
/** @deprecated V1 contracts deprecated Feb 14, 2026. Use ESCROW_V2_ADDRESSES instead. */
|
|
14
|
+
export declare const ESCROW_V1_ADDRESSES: Record<number, string>;
|
|
15
|
+
/** @deprecated V1 contracts deprecated Feb 14, 2026. Use SCORE_V2_ADDRESSES instead. */
|
|
16
|
+
export declare const SCORE_V1_ADDRESSES: Record<number, string>;
|
|
17
|
+
/** @deprecated Use ESCROW_V2_ADDRESSES instead */
|
|
16
18
|
export declare const ESCROW_V4_ADDRESSES: Record<number, string>;
|
|
17
|
-
/** @deprecated Use
|
|
19
|
+
/** @deprecated Use SCORE_V2_ADDRESSES instead */
|
|
18
20
|
export declare const SCORE_ADDRESSES: Record<number, string>;
|
|
19
21
|
export interface TokenInfo {
|
|
20
22
|
symbol: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/wallet/constants.ts"],"names":[],"mappings":"AAAA,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MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAuBpE,CAAA;AAED,2CAA2C;AAC3C,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAE/E;AAED,mDAAmD;AACnD,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,SAAS,EAAE,CAI7E;AAED,6DAA6D;AAC7D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAEzE;AASD,eAAO,MAAM,eAAe,qBAA0B,CAAA;AAEtD,eAAO,MAAM,mBAAmB,2CAA2C,CAAA;AAC3E,eAAO,MAAM,qBAAqB,6CAA6C,CAAA"}
|
package/dist/wallet/constants.js
CHANGED
|
@@ -3,39 +3,39 @@ export const POLYGON_MAINNET_CHAIN_ID = 137;
|
|
|
3
3
|
export const BASE_SEPOLIA_CHAIN_ID = 84532;
|
|
4
4
|
export const BASE_MAINNET_CHAIN_ID = 8453;
|
|
5
5
|
// ============================================================================
|
|
6
|
-
//
|
|
6
|
+
// V2 Contract Addresses (UUPS Upgradeable - Deployed 2026-02-14)
|
|
7
7
|
// ============================================================================
|
|
8
|
-
/**
|
|
9
|
-
export const
|
|
10
|
-
[BASE_SEPOLIA_CHAIN_ID]: '
|
|
11
|
-
};
|
|
12
|
-
/** AbbababaScoreV1 — on-chain agent reputation system (UUPS upgradeable). */
|
|
13
|
-
export const SCORE_V1_ADDRESSES = {
|
|
14
|
-
[BASE_SEPOLIA_CHAIN_ID]: '0xF586a7A69a893C7eF760eA537DAa4864FEA97168',
|
|
8
|
+
/** AbbababaEscrowV2 — UUPS upgradeable escrow with simplified AI-only dispute resolution. */
|
|
9
|
+
export const ESCROW_V2_ADDRESSES = {
|
|
10
|
+
[BASE_SEPOLIA_CHAIN_ID]: '0x1Aed68edafC24cc936cFabEcF88012CdF5DA0601',
|
|
15
11
|
};
|
|
16
|
-
/**
|
|
17
|
-
export const
|
|
18
|
-
[BASE_SEPOLIA_CHAIN_ID]: '
|
|
12
|
+
/** AbbababaScoreV2 — on-chain agent reputation with simplified +1/-3/-5 scoring (UUPS upgradeable). */
|
|
13
|
+
export const SCORE_V2_ADDRESSES = {
|
|
14
|
+
[BASE_SEPOLIA_CHAIN_ID]: '0x15a43BdE0F17A2163c587905e8E439ae2F1a2536',
|
|
19
15
|
};
|
|
20
|
-
/**
|
|
21
|
-
export const
|
|
22
|
-
[BASE_SEPOLIA_CHAIN_ID]: '
|
|
16
|
+
/** AbbababaResolverV2 — AI-only instant dispute resolution (UUPS upgradeable). */
|
|
17
|
+
export const RESOLVER_V2_ADDRESSES = {
|
|
18
|
+
[BASE_SEPOLIA_CHAIN_ID]: '0x41Be690C525457e93e13D876289C8De1Cc9d8B7A',
|
|
23
19
|
};
|
|
24
20
|
/** Mock USDC for testnet. */
|
|
25
21
|
export const MOCK_USDC_ADDRESSES = {
|
|
26
22
|
[BASE_SEPOLIA_CHAIN_ID]: '0x9BCd298614fa3b9303418D3F614B63dE128AA6E5',
|
|
27
23
|
};
|
|
28
|
-
// Legacy
|
|
29
|
-
/** @deprecated Use
|
|
24
|
+
// Legacy V1 addresses (deprecated - use V2)
|
|
25
|
+
/** @deprecated V1 contracts deprecated Feb 14, 2026. Use ESCROW_V2_ADDRESSES instead. */
|
|
26
|
+
export const ESCROW_V1_ADDRESSES = {
|
|
27
|
+
[BASE_SEPOLIA_CHAIN_ID]: '0x71b1544C4E0F8a07eeAEbBe72E2368d32bAaA11d',
|
|
28
|
+
};
|
|
29
|
+
/** @deprecated V1 contracts deprecated Feb 14, 2026. Use SCORE_V2_ADDRESSES instead. */
|
|
30
|
+
export const SCORE_V1_ADDRESSES = {
|
|
31
|
+
[BASE_SEPOLIA_CHAIN_ID]: '0xF586a7A69a893C7eF760eA537DAa4864FEA97168',
|
|
32
|
+
};
|
|
33
|
+
/** @deprecated Use ESCROW_V2_ADDRESSES instead */
|
|
30
34
|
export const ESCROW_V4_ADDRESSES = ESCROW_V1_ADDRESSES;
|
|
31
|
-
/** @deprecated Use
|
|
35
|
+
/** @deprecated Use SCORE_V2_ADDRESSES instead */
|
|
32
36
|
export const SCORE_ADDRESSES = SCORE_V1_ADDRESSES;
|
|
33
37
|
export const TOKEN_REGISTRY = {
|
|
34
|
-
|
|
35
|
-
// Tier 1 — Phase 1 (must-have)
|
|
36
|
-
USDC: { symbol: 'USDC', address: '0x9DCE328784A6B24fbe84eC05e9Ea3C6Cce782529', decimals: 6, tier: 1 },
|
|
37
|
-
// WPOL, USDT, DAI addresses on Amoy TBD (deploy MockERC20 instances or use testnet faucets)
|
|
38
|
-
},
|
|
38
|
+
// V2: Removed Polygon Amoy (deprecated)
|
|
39
39
|
[POLYGON_MAINNET_CHAIN_ID]: {
|
|
40
40
|
// Tier 1 — Phase 1
|
|
41
41
|
USDC: { symbol: 'USDC', address: '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359', decimals: 6, tier: 1 },
|
|
@@ -76,9 +76,9 @@ export function isTokenSupported(chainId, symbol) {
|
|
|
76
76
|
// ============================================================================
|
|
77
77
|
// Gas & Infrastructure
|
|
78
78
|
// ============================================================================
|
|
79
|
-
// Minimum native token (
|
|
79
|
+
// Minimum native token (ETH) balance for self-funded gas.
|
|
80
80
|
// If balance is below this, 'auto' strategy falls back to ERC-20 paymaster.
|
|
81
|
-
// 0.01
|
|
81
|
+
// 0.01 ETH in wei — enough for ~1-10 UserOperations on Base.
|
|
82
82
|
export const MIN_GAS_BALANCE = 10000000000000000n;
|
|
83
83
|
export const ZERODEV_BUNDLER_URL = 'https://rpc.zerodev.app/api/v3/bundler';
|
|
84
84
|
export const ZERODEV_PAYMASTER_URL = 'https://rpc.zerodev.app/api/v3/paymaster';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/wallet/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAA;AAC1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;AAC3C,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAA;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAA;AAEzC,+EAA+E;AAC/E,iEAAiE;AACjE,+EAA+E;AAE/E,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/wallet/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAA;AAC1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;AAC3C,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAA;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAA;AAEzC,+EAA+E;AAC/E,iEAAiE;AACjE,+EAA+E;AAE/E,6FAA6F;AAC7F,MAAM,CAAC,MAAM,mBAAmB,GAA2B;IACzD,CAAC,qBAAqB,CAAC,EAAE,4CAA4C;CACtE,CAAA;AAED,uGAAuG;AACvG,MAAM,CAAC,MAAM,kBAAkB,GAA2B;IACxD,CAAC,qBAAqB,CAAC,EAAE,4CAA4C;CACtE,CAAA;AAED,kFAAkF;AAClF,MAAM,CAAC,MAAM,qBAAqB,GAA2B;IAC3D,CAAC,qBAAqB,CAAC,EAAE,4CAA4C;CACtE,CAAA;AAED,6BAA6B;AAC7B,MAAM,CAAC,MAAM,mBAAmB,GAA2B;IACzD,CAAC,qBAAqB,CAAC,EAAE,4CAA4C;CACtE,CAAA;AAED,4CAA4C;AAC5C,yFAAyF;AACzF,MAAM,CAAC,MAAM,mBAAmB,GAA2B;IACzD,CAAC,qBAAqB,CAAC,EAAE,4CAA4C;CACtE,CAAA;AACD,wFAAwF;AACxF,MAAM,CAAC,MAAM,kBA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