@libid/contracts 0.13.0 → 0.14.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 +25 -5
- package/dist/abis/handleEscrow.d.ts +632 -0
- package/dist/abis/handleEscrow.d.ts.map +1 -0
- package/dist/abis/handleEscrow.js +815 -0
- package/dist/abis/handleEscrow.js.map +1 -0
- package/dist/abis/identityNames.d.ts +199 -35
- package/dist/abis/identityNames.d.ts.map +1 -1
- package/dist/abis/identityNames.js +255 -37
- package/dist/abis/identityNames.js.map +1 -1
- package/dist/abis/index.d.ts +1 -0
- package/dist/abis/index.d.ts.map +1 -1
- package/dist/abis/index.js +1 -0
- package/dist/abis/index.js.map +1 -1
- package/dist/calls/handleEscrow.d.ts +15 -0
- package/dist/calls/handleEscrow.d.ts.map +1 -0
- package/dist/calls/handleEscrow.js +49 -0
- package/dist/calls/handleEscrow.js.map +1 -0
- package/dist/calls/identityNames.d.ts +1 -1
- package/dist/calls/identityNames.d.ts.map +1 -1
- package/dist/calls/identityNames.js +2 -2
- package/dist/calls/identityNames.js.map +1 -1
- package/dist/calls/index.d.ts +1 -0
- package/dist/calls/index.d.ts.map +1 -1
- package/dist/calls/index.js +1 -0
- package/dist/calls/index.js.map +1 -1
- package/dist/identity/handle.d.ts.map +1 -1
- package/dist/identity/handle.js +3 -1
- package/dist/identity/handle.js.map +1 -1
- package/dist/identity/index.d.ts +1 -0
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +1 -0
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/node.d.ts +6 -0
- package/dist/identity/node.d.ts.map +1 -0
- package/dist/identity/node.js +18 -0
- package/dist/identity/node.js.map +1 -0
- package/dist/identity/resolve.d.ts +12 -1
- package/dist/identity/resolve.d.ts.map +1 -1
- package/dist/identity/resolve.js +37 -1
- package/dist/identity/resolve.js.map +1 -1
- package/package.json +1 -1
- package/src/abis/handleEscrow.ts +817 -0
- package/src/abis/identityNames.ts +255 -37
- package/src/abis/index.ts +1 -0
- package/src/calls/handleEscrow.ts +78 -0
- package/src/calls/identityNames.ts +2 -2
- package/src/calls/index.ts +1 -0
- package/src/identity/handle.ts +3 -1
- package/src/identity/index.ts +1 -0
- package/src/identity/node.ts +27 -0
- package/src/identity/resolve.ts +71 -2
package/README.md
CHANGED
|
@@ -73,6 +73,8 @@ const rotate = calls.googleJwtRoots.rotate(roots, fee, attestedData, proof)
|
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
import {
|
|
76
|
+
accountCount,
|
|
77
|
+
accountsOf,
|
|
76
78
|
platformId,
|
|
77
79
|
resolveHandle,
|
|
78
80
|
resolvePair,
|
|
@@ -92,13 +94,20 @@ const { wallet, idAgrees } = await resolvePair(reader, x, 'alice', '42')
|
|
|
92
94
|
|
|
93
95
|
// The display name for a wallet, forward-checked on chain.
|
|
94
96
|
const name = await primaryName(reader, wallet!, x)
|
|
97
|
+
|
|
98
|
+
// Every account the wallet proved, on every platform, a page at a time.
|
|
99
|
+
// Order is arbitrary, and a page read across a removal may overlap or skip:
|
|
100
|
+
// read the count and the pages against one block when every account matters.
|
|
101
|
+
const total = await accountCount(reader, wallet!)
|
|
102
|
+
const accounts = await accountsOf(reader, wallet!, 0n, 50n)
|
|
103
|
+
// [{ platformId: x, userId: '42', handle: 'alice', handleCurrent: true }, …]
|
|
95
104
|
```
|
|
96
105
|
|
|
97
|
-
##
|
|
106
|
+
## Binding a name
|
|
98
107
|
|
|
99
|
-
A
|
|
108
|
+
A binding is one of the generated builders: the platform, this chain's verifier
|
|
100
109
|
version for it, the opaque payload the ceremony produced, and whether to
|
|
101
|
-
publish the name. The value is what `
|
|
110
|
+
publish the name. The value is what `quoteBind` returns for the same pair.
|
|
102
111
|
An EOA sends it directly, a smart account wraps it in its own execute:
|
|
103
112
|
|
|
104
113
|
```ts
|
|
@@ -107,10 +116,10 @@ import { calls } from '@libid/contracts/calls'
|
|
|
107
116
|
const fee = await client.readContract({
|
|
108
117
|
address: IDENTITY_NAMES,
|
|
109
118
|
abi: identityNamesAbi,
|
|
110
|
-
functionName: '
|
|
119
|
+
functionName: 'quoteBind',
|
|
111
120
|
args: [platformId(PLATFORM_GITHUB_DOMAIN), 1],
|
|
112
121
|
})
|
|
113
|
-
const call = calls.identityNames.
|
|
122
|
+
const call = calls.identityNames.bind(IDENTITY_NAMES, fee, platformId(PLATFORM_GITHUB_DOMAIN), 1, payload, true)
|
|
114
123
|
// call = { to, value, data } — sign and send from the address the payload names.
|
|
115
124
|
```
|
|
116
125
|
|
|
@@ -123,6 +132,17 @@ normalize(' @Alice_1 ', RULES_X) // 'alice_1'
|
|
|
123
132
|
// Throws HandleError (with a kind matching the on-chain error) on refusal.
|
|
124
133
|
```
|
|
125
134
|
|
|
135
|
+
## Deriving a handle node
|
|
136
|
+
|
|
137
|
+
Hash locally, so the handle text never reaches an RPC:
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
import { handleHash, handleNode, rulesOnChain } from '@libid/contracts/identity'
|
|
141
|
+
|
|
142
|
+
const hash = handleHash('Alice@Gmail.com', await rulesOnChain(reader, 'google')) // HandleEscrow.deposit
|
|
143
|
+
const node = handleNode('google', hash) // byHandle, escrowed, claim, refund
|
|
144
|
+
```
|
|
145
|
+
|
|
126
146
|
## Development
|
|
127
147
|
|
|
128
148
|
```sh
|
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
export declare const handleEscrowAbi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [];
|
|
4
|
+
readonly stateMutability: "nonpayable";
|
|
5
|
+
}, {
|
|
6
|
+
readonly type: "function";
|
|
7
|
+
readonly name: "NATIVE";
|
|
8
|
+
readonly inputs: readonly [];
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
readonly internalType: "address";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "view";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly name: "";
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly internalType: "string";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "function";
|
|
27
|
+
readonly name: "acceptOwnership";
|
|
28
|
+
readonly inputs: readonly [];
|
|
29
|
+
readonly outputs: readonly [];
|
|
30
|
+
readonly stateMutability: "nonpayable";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly name: "claim";
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly name: "handleNode";
|
|
36
|
+
readonly type: "bytes32";
|
|
37
|
+
readonly internalType: "bytes32";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "tokens";
|
|
40
|
+
readonly type: "address[]";
|
|
41
|
+
readonly internalType: "address[]";
|
|
42
|
+
}, {
|
|
43
|
+
readonly name: "recipient";
|
|
44
|
+
readonly type: "address";
|
|
45
|
+
readonly internalType: "address";
|
|
46
|
+
}];
|
|
47
|
+
readonly outputs: readonly [];
|
|
48
|
+
readonly stateMutability: "nonpayable";
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "function";
|
|
51
|
+
readonly name: "deposit";
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly name: "platformId";
|
|
54
|
+
readonly type: "bytes32";
|
|
55
|
+
readonly internalType: "bytes32";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "handleHash";
|
|
58
|
+
readonly type: "bytes32";
|
|
59
|
+
readonly internalType: "bytes32";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "token";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
readonly internalType: "address";
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "amount";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
readonly internalType: "uint256";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "refundTo";
|
|
70
|
+
readonly type: "address";
|
|
71
|
+
readonly internalType: "address";
|
|
72
|
+
}];
|
|
73
|
+
readonly outputs: readonly [];
|
|
74
|
+
readonly stateMutability: "payable";
|
|
75
|
+
}, {
|
|
76
|
+
readonly type: "function";
|
|
77
|
+
readonly name: "escrowed";
|
|
78
|
+
readonly inputs: readonly [{
|
|
79
|
+
readonly name: "handleNode";
|
|
80
|
+
readonly type: "bytes32";
|
|
81
|
+
readonly internalType: "bytes32";
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "token";
|
|
84
|
+
readonly type: "address";
|
|
85
|
+
readonly internalType: "address";
|
|
86
|
+
}];
|
|
87
|
+
readonly outputs: readonly [{
|
|
88
|
+
readonly name: "";
|
|
89
|
+
readonly type: "uint256";
|
|
90
|
+
readonly internalType: "uint256";
|
|
91
|
+
}];
|
|
92
|
+
readonly stateMutability: "view";
|
|
93
|
+
}, {
|
|
94
|
+
readonly type: "function";
|
|
95
|
+
readonly name: "initialize";
|
|
96
|
+
readonly inputs: readonly [{
|
|
97
|
+
readonly name: "owner_";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
readonly internalType: "address";
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "names_";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
readonly internalType: "contract IIdentityNames";
|
|
104
|
+
}];
|
|
105
|
+
readonly outputs: readonly [];
|
|
106
|
+
readonly stateMutability: "nonpayable";
|
|
107
|
+
}, {
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
readonly name: "names";
|
|
110
|
+
readonly inputs: readonly [];
|
|
111
|
+
readonly outputs: readonly [{
|
|
112
|
+
readonly name: "";
|
|
113
|
+
readonly type: "address";
|
|
114
|
+
readonly internalType: "contract IIdentityNames";
|
|
115
|
+
}];
|
|
116
|
+
readonly stateMutability: "view";
|
|
117
|
+
}, {
|
|
118
|
+
readonly type: "function";
|
|
119
|
+
readonly name: "owner";
|
|
120
|
+
readonly inputs: readonly [];
|
|
121
|
+
readonly outputs: readonly [{
|
|
122
|
+
readonly name: "";
|
|
123
|
+
readonly type: "address";
|
|
124
|
+
readonly internalType: "address";
|
|
125
|
+
}];
|
|
126
|
+
readonly stateMutability: "view";
|
|
127
|
+
}, {
|
|
128
|
+
readonly type: "function";
|
|
129
|
+
readonly name: "pendingOwner";
|
|
130
|
+
readonly inputs: readonly [];
|
|
131
|
+
readonly outputs: readonly [{
|
|
132
|
+
readonly name: "";
|
|
133
|
+
readonly type: "address";
|
|
134
|
+
readonly internalType: "address";
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "view";
|
|
137
|
+
}, {
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
readonly name: "proxiableUUID";
|
|
140
|
+
readonly inputs: readonly [];
|
|
141
|
+
readonly outputs: readonly [{
|
|
142
|
+
readonly name: "";
|
|
143
|
+
readonly type: "bytes32";
|
|
144
|
+
readonly internalType: "bytes32";
|
|
145
|
+
}];
|
|
146
|
+
readonly stateMutability: "view";
|
|
147
|
+
}, {
|
|
148
|
+
readonly type: "function";
|
|
149
|
+
readonly name: "refund";
|
|
150
|
+
readonly inputs: readonly [{
|
|
151
|
+
readonly name: "handleNode";
|
|
152
|
+
readonly type: "bytes32";
|
|
153
|
+
readonly internalType: "bytes32";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "token";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
readonly internalType: "address";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "recipient";
|
|
160
|
+
readonly type: "address";
|
|
161
|
+
readonly internalType: "address";
|
|
162
|
+
}];
|
|
163
|
+
readonly outputs: readonly [];
|
|
164
|
+
readonly stateMutability: "nonpayable";
|
|
165
|
+
}, {
|
|
166
|
+
readonly type: "function";
|
|
167
|
+
readonly name: "refundable";
|
|
168
|
+
readonly inputs: readonly [{
|
|
169
|
+
readonly name: "handleNode";
|
|
170
|
+
readonly type: "bytes32";
|
|
171
|
+
readonly internalType: "bytes32";
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "token";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
readonly internalType: "address";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "refundTo";
|
|
178
|
+
readonly type: "address";
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
}];
|
|
181
|
+
readonly outputs: readonly [{
|
|
182
|
+
readonly name: "";
|
|
183
|
+
readonly type: "uint256";
|
|
184
|
+
readonly internalType: "uint256";
|
|
185
|
+
}];
|
|
186
|
+
readonly stateMutability: "view";
|
|
187
|
+
}, {
|
|
188
|
+
readonly type: "function";
|
|
189
|
+
readonly name: "renounceOwnership";
|
|
190
|
+
readonly inputs: readonly [];
|
|
191
|
+
readonly outputs: readonly [];
|
|
192
|
+
readonly stateMutability: "pure";
|
|
193
|
+
}, {
|
|
194
|
+
readonly type: "function";
|
|
195
|
+
readonly name: "transferOwnership";
|
|
196
|
+
readonly inputs: readonly [{
|
|
197
|
+
readonly name: "newOwner";
|
|
198
|
+
readonly type: "address";
|
|
199
|
+
readonly internalType: "address";
|
|
200
|
+
}];
|
|
201
|
+
readonly outputs: readonly [];
|
|
202
|
+
readonly stateMutability: "nonpayable";
|
|
203
|
+
}, {
|
|
204
|
+
readonly type: "function";
|
|
205
|
+
readonly name: "upgradeToAndCall";
|
|
206
|
+
readonly inputs: readonly [{
|
|
207
|
+
readonly name: "newImplementation";
|
|
208
|
+
readonly type: "address";
|
|
209
|
+
readonly internalType: "address";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "data";
|
|
212
|
+
readonly type: "bytes";
|
|
213
|
+
readonly internalType: "bytes";
|
|
214
|
+
}];
|
|
215
|
+
readonly outputs: readonly [];
|
|
216
|
+
readonly stateMutability: "payable";
|
|
217
|
+
}, {
|
|
218
|
+
readonly type: "event";
|
|
219
|
+
readonly name: "Claimed";
|
|
220
|
+
readonly inputs: readonly [{
|
|
221
|
+
readonly name: "handleNode";
|
|
222
|
+
readonly type: "bytes32";
|
|
223
|
+
readonly indexed: true;
|
|
224
|
+
readonly internalType: "bytes32";
|
|
225
|
+
}, {
|
|
226
|
+
readonly name: "token";
|
|
227
|
+
readonly type: "address";
|
|
228
|
+
readonly indexed: true;
|
|
229
|
+
readonly internalType: "address";
|
|
230
|
+
}, {
|
|
231
|
+
readonly name: "claimer";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
readonly indexed: true;
|
|
234
|
+
readonly internalType: "address";
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "recipient";
|
|
237
|
+
readonly type: "address";
|
|
238
|
+
readonly indexed: false;
|
|
239
|
+
readonly internalType: "address";
|
|
240
|
+
}, {
|
|
241
|
+
readonly name: "round";
|
|
242
|
+
readonly type: "uint256";
|
|
243
|
+
readonly indexed: false;
|
|
244
|
+
readonly internalType: "uint256";
|
|
245
|
+
}, {
|
|
246
|
+
readonly name: "released";
|
|
247
|
+
readonly type: "uint256";
|
|
248
|
+
readonly indexed: false;
|
|
249
|
+
readonly internalType: "uint256";
|
|
250
|
+
}, {
|
|
251
|
+
readonly name: "received";
|
|
252
|
+
readonly type: "uint256";
|
|
253
|
+
readonly indexed: false;
|
|
254
|
+
readonly internalType: "uint256";
|
|
255
|
+
}];
|
|
256
|
+
readonly anonymous: false;
|
|
257
|
+
}, {
|
|
258
|
+
readonly type: "event";
|
|
259
|
+
readonly name: "Deposited";
|
|
260
|
+
readonly inputs: readonly [{
|
|
261
|
+
readonly name: "handleNode";
|
|
262
|
+
readonly type: "bytes32";
|
|
263
|
+
readonly indexed: true;
|
|
264
|
+
readonly internalType: "bytes32";
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "token";
|
|
267
|
+
readonly type: "address";
|
|
268
|
+
readonly indexed: true;
|
|
269
|
+
readonly internalType: "address";
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "refundTo";
|
|
272
|
+
readonly type: "address";
|
|
273
|
+
readonly indexed: true;
|
|
274
|
+
readonly internalType: "address";
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "depositor";
|
|
277
|
+
readonly type: "address";
|
|
278
|
+
readonly indexed: false;
|
|
279
|
+
readonly internalType: "address";
|
|
280
|
+
}, {
|
|
281
|
+
readonly name: "platformId";
|
|
282
|
+
readonly type: "bytes32";
|
|
283
|
+
readonly indexed: false;
|
|
284
|
+
readonly internalType: "bytes32";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "round";
|
|
287
|
+
readonly type: "uint256";
|
|
288
|
+
readonly indexed: false;
|
|
289
|
+
readonly internalType: "uint256";
|
|
290
|
+
}, {
|
|
291
|
+
readonly name: "amount";
|
|
292
|
+
readonly type: "uint256";
|
|
293
|
+
readonly indexed: false;
|
|
294
|
+
readonly internalType: "uint256";
|
|
295
|
+
}];
|
|
296
|
+
readonly anonymous: false;
|
|
297
|
+
}, {
|
|
298
|
+
readonly type: "event";
|
|
299
|
+
readonly name: "Forwarded";
|
|
300
|
+
readonly inputs: readonly [{
|
|
301
|
+
readonly name: "handleNode";
|
|
302
|
+
readonly type: "bytes32";
|
|
303
|
+
readonly indexed: true;
|
|
304
|
+
readonly internalType: "bytes32";
|
|
305
|
+
}, {
|
|
306
|
+
readonly name: "token";
|
|
307
|
+
readonly type: "address";
|
|
308
|
+
readonly indexed: true;
|
|
309
|
+
readonly internalType: "address";
|
|
310
|
+
}, {
|
|
311
|
+
readonly name: "depositor";
|
|
312
|
+
readonly type: "address";
|
|
313
|
+
readonly indexed: true;
|
|
314
|
+
readonly internalType: "address";
|
|
315
|
+
}, {
|
|
316
|
+
readonly name: "holder";
|
|
317
|
+
readonly type: "address";
|
|
318
|
+
readonly indexed: false;
|
|
319
|
+
readonly internalType: "address";
|
|
320
|
+
}, {
|
|
321
|
+
readonly name: "platformId";
|
|
322
|
+
readonly type: "bytes32";
|
|
323
|
+
readonly indexed: false;
|
|
324
|
+
readonly internalType: "bytes32";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "amount";
|
|
327
|
+
readonly type: "uint256";
|
|
328
|
+
readonly indexed: false;
|
|
329
|
+
readonly internalType: "uint256";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "received";
|
|
332
|
+
readonly type: "uint256";
|
|
333
|
+
readonly indexed: false;
|
|
334
|
+
readonly internalType: "uint256";
|
|
335
|
+
}];
|
|
336
|
+
readonly anonymous: false;
|
|
337
|
+
}, {
|
|
338
|
+
readonly type: "event";
|
|
339
|
+
readonly name: "Initialized";
|
|
340
|
+
readonly inputs: readonly [{
|
|
341
|
+
readonly name: "version";
|
|
342
|
+
readonly type: "uint64";
|
|
343
|
+
readonly indexed: false;
|
|
344
|
+
readonly internalType: "uint64";
|
|
345
|
+
}];
|
|
346
|
+
readonly anonymous: false;
|
|
347
|
+
}, {
|
|
348
|
+
readonly type: "event";
|
|
349
|
+
readonly name: "OwnershipTransferStarted";
|
|
350
|
+
readonly inputs: readonly [{
|
|
351
|
+
readonly name: "previousOwner";
|
|
352
|
+
readonly type: "address";
|
|
353
|
+
readonly indexed: true;
|
|
354
|
+
readonly internalType: "address";
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "newOwner";
|
|
357
|
+
readonly type: "address";
|
|
358
|
+
readonly indexed: true;
|
|
359
|
+
readonly internalType: "address";
|
|
360
|
+
}];
|
|
361
|
+
readonly anonymous: false;
|
|
362
|
+
}, {
|
|
363
|
+
readonly type: "event";
|
|
364
|
+
readonly name: "OwnershipTransferred";
|
|
365
|
+
readonly inputs: readonly [{
|
|
366
|
+
readonly name: "previousOwner";
|
|
367
|
+
readonly type: "address";
|
|
368
|
+
readonly indexed: true;
|
|
369
|
+
readonly internalType: "address";
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "newOwner";
|
|
372
|
+
readonly type: "address";
|
|
373
|
+
readonly indexed: true;
|
|
374
|
+
readonly internalType: "address";
|
|
375
|
+
}];
|
|
376
|
+
readonly anonymous: false;
|
|
377
|
+
}, {
|
|
378
|
+
readonly type: "event";
|
|
379
|
+
readonly name: "Refunded";
|
|
380
|
+
readonly inputs: readonly [{
|
|
381
|
+
readonly name: "handleNode";
|
|
382
|
+
readonly type: "bytes32";
|
|
383
|
+
readonly indexed: true;
|
|
384
|
+
readonly internalType: "bytes32";
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "token";
|
|
387
|
+
readonly type: "address";
|
|
388
|
+
readonly indexed: true;
|
|
389
|
+
readonly internalType: "address";
|
|
390
|
+
}, {
|
|
391
|
+
readonly name: "refundTo";
|
|
392
|
+
readonly type: "address";
|
|
393
|
+
readonly indexed: true;
|
|
394
|
+
readonly internalType: "address";
|
|
395
|
+
}, {
|
|
396
|
+
readonly name: "recipient";
|
|
397
|
+
readonly type: "address";
|
|
398
|
+
readonly indexed: false;
|
|
399
|
+
readonly internalType: "address";
|
|
400
|
+
}, {
|
|
401
|
+
readonly name: "round";
|
|
402
|
+
readonly type: "uint256";
|
|
403
|
+
readonly indexed: false;
|
|
404
|
+
readonly internalType: "uint256";
|
|
405
|
+
}, {
|
|
406
|
+
readonly name: "released";
|
|
407
|
+
readonly type: "uint256";
|
|
408
|
+
readonly indexed: false;
|
|
409
|
+
readonly internalType: "uint256";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "received";
|
|
412
|
+
readonly type: "uint256";
|
|
413
|
+
readonly indexed: false;
|
|
414
|
+
readonly internalType: "uint256";
|
|
415
|
+
}];
|
|
416
|
+
readonly anonymous: false;
|
|
417
|
+
}, {
|
|
418
|
+
readonly type: "event";
|
|
419
|
+
readonly name: "Upgraded";
|
|
420
|
+
readonly inputs: readonly [{
|
|
421
|
+
readonly name: "implementation";
|
|
422
|
+
readonly type: "address";
|
|
423
|
+
readonly indexed: true;
|
|
424
|
+
readonly internalType: "address";
|
|
425
|
+
}];
|
|
426
|
+
readonly anonymous: false;
|
|
427
|
+
}, {
|
|
428
|
+
readonly type: "error";
|
|
429
|
+
readonly name: "AddressEmptyCode";
|
|
430
|
+
readonly inputs: readonly [{
|
|
431
|
+
readonly name: "target";
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
readonly internalType: "address";
|
|
434
|
+
}];
|
|
435
|
+
}, {
|
|
436
|
+
readonly type: "error";
|
|
437
|
+
readonly name: "BadRecipient";
|
|
438
|
+
readonly inputs: readonly [{
|
|
439
|
+
readonly name: "recipient";
|
|
440
|
+
readonly type: "address";
|
|
441
|
+
readonly internalType: "address";
|
|
442
|
+
}];
|
|
443
|
+
}, {
|
|
444
|
+
readonly type: "error";
|
|
445
|
+
readonly name: "BadRefundTo";
|
|
446
|
+
readonly inputs: readonly [{
|
|
447
|
+
readonly name: "refundTo";
|
|
448
|
+
readonly type: "address";
|
|
449
|
+
readonly internalType: "address";
|
|
450
|
+
}];
|
|
451
|
+
}, {
|
|
452
|
+
readonly type: "error";
|
|
453
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
454
|
+
readonly inputs: readonly [{
|
|
455
|
+
readonly name: "implementation";
|
|
456
|
+
readonly type: "address";
|
|
457
|
+
readonly internalType: "address";
|
|
458
|
+
}];
|
|
459
|
+
}, {
|
|
460
|
+
readonly type: "error";
|
|
461
|
+
readonly name: "ERC1967NonPayable";
|
|
462
|
+
readonly inputs: readonly [];
|
|
463
|
+
}, {
|
|
464
|
+
readonly type: "error";
|
|
465
|
+
readonly name: "FailedCall";
|
|
466
|
+
readonly inputs: readonly [];
|
|
467
|
+
}, {
|
|
468
|
+
readonly type: "error";
|
|
469
|
+
readonly name: "InvalidInitialization";
|
|
470
|
+
readonly inputs: readonly [];
|
|
471
|
+
}, {
|
|
472
|
+
readonly type: "error";
|
|
473
|
+
readonly name: "NamesLacks";
|
|
474
|
+
readonly inputs: readonly [{
|
|
475
|
+
readonly name: "names";
|
|
476
|
+
readonly type: "address";
|
|
477
|
+
readonly internalType: "address";
|
|
478
|
+
}, {
|
|
479
|
+
readonly name: "selector";
|
|
480
|
+
readonly type: "bytes4";
|
|
481
|
+
readonly internalType: "bytes4";
|
|
482
|
+
}];
|
|
483
|
+
}, {
|
|
484
|
+
readonly type: "error";
|
|
485
|
+
readonly name: "NativeTransferFailed";
|
|
486
|
+
readonly inputs: readonly [{
|
|
487
|
+
readonly name: "recipient";
|
|
488
|
+
readonly type: "address";
|
|
489
|
+
readonly internalType: "address";
|
|
490
|
+
}, {
|
|
491
|
+
readonly name: "amount";
|
|
492
|
+
readonly type: "uint256";
|
|
493
|
+
readonly internalType: "uint256";
|
|
494
|
+
}];
|
|
495
|
+
}, {
|
|
496
|
+
readonly type: "error";
|
|
497
|
+
readonly name: "NoNames";
|
|
498
|
+
readonly inputs: readonly [];
|
|
499
|
+
}, {
|
|
500
|
+
readonly type: "error";
|
|
501
|
+
readonly name: "NotInitializing";
|
|
502
|
+
readonly inputs: readonly [];
|
|
503
|
+
}, {
|
|
504
|
+
readonly type: "error";
|
|
505
|
+
readonly name: "NotTheHolder";
|
|
506
|
+
readonly inputs: readonly [{
|
|
507
|
+
readonly name: "holder";
|
|
508
|
+
readonly type: "address";
|
|
509
|
+
readonly internalType: "address";
|
|
510
|
+
}, {
|
|
511
|
+
readonly name: "caller";
|
|
512
|
+
readonly type: "address";
|
|
513
|
+
readonly internalType: "address";
|
|
514
|
+
}];
|
|
515
|
+
}, {
|
|
516
|
+
readonly type: "error";
|
|
517
|
+
readonly name: "NothingHeld";
|
|
518
|
+
readonly inputs: readonly [{
|
|
519
|
+
readonly name: "handleNode";
|
|
520
|
+
readonly type: "bytes32";
|
|
521
|
+
readonly internalType: "bytes32";
|
|
522
|
+
}];
|
|
523
|
+
}, {
|
|
524
|
+
readonly type: "error";
|
|
525
|
+
readonly name: "NothingToRefund";
|
|
526
|
+
readonly inputs: readonly [{
|
|
527
|
+
readonly name: "handleNode";
|
|
528
|
+
readonly type: "bytes32";
|
|
529
|
+
readonly internalType: "bytes32";
|
|
530
|
+
}, {
|
|
531
|
+
readonly name: "token";
|
|
532
|
+
readonly type: "address";
|
|
533
|
+
readonly internalType: "address";
|
|
534
|
+
}, {
|
|
535
|
+
readonly name: "refundTo";
|
|
536
|
+
readonly type: "address";
|
|
537
|
+
readonly internalType: "address";
|
|
538
|
+
}];
|
|
539
|
+
}, {
|
|
540
|
+
readonly type: "error";
|
|
541
|
+
readonly name: "OverDebited";
|
|
542
|
+
readonly inputs: readonly [{
|
|
543
|
+
readonly name: "token";
|
|
544
|
+
readonly type: "address";
|
|
545
|
+
readonly internalType: "address";
|
|
546
|
+
}, {
|
|
547
|
+
readonly name: "booked";
|
|
548
|
+
readonly type: "uint256";
|
|
549
|
+
readonly internalType: "uint256";
|
|
550
|
+
}, {
|
|
551
|
+
readonly name: "debited";
|
|
552
|
+
readonly type: "uint256";
|
|
553
|
+
readonly internalType: "uint256";
|
|
554
|
+
}];
|
|
555
|
+
}, {
|
|
556
|
+
readonly type: "error";
|
|
557
|
+
readonly name: "OwnableInvalidOwner";
|
|
558
|
+
readonly inputs: readonly [{
|
|
559
|
+
readonly name: "owner";
|
|
560
|
+
readonly type: "address";
|
|
561
|
+
readonly internalType: "address";
|
|
562
|
+
}];
|
|
563
|
+
}, {
|
|
564
|
+
readonly type: "error";
|
|
565
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
566
|
+
readonly inputs: readonly [{
|
|
567
|
+
readonly name: "account";
|
|
568
|
+
readonly type: "address";
|
|
569
|
+
readonly internalType: "address";
|
|
570
|
+
}];
|
|
571
|
+
}, {
|
|
572
|
+
readonly type: "error";
|
|
573
|
+
readonly name: "PayingYourself";
|
|
574
|
+
readonly inputs: readonly [{
|
|
575
|
+
readonly name: "holder";
|
|
576
|
+
readonly type: "address";
|
|
577
|
+
readonly internalType: "address";
|
|
578
|
+
}];
|
|
579
|
+
}, {
|
|
580
|
+
readonly type: "error";
|
|
581
|
+
readonly name: "PlatformAcceptsNoBindings";
|
|
582
|
+
readonly inputs: readonly [{
|
|
583
|
+
readonly name: "platformId";
|
|
584
|
+
readonly type: "bytes32";
|
|
585
|
+
readonly internalType: "bytes32";
|
|
586
|
+
}];
|
|
587
|
+
}, {
|
|
588
|
+
readonly type: "error";
|
|
589
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
590
|
+
readonly inputs: readonly [];
|
|
591
|
+
}, {
|
|
592
|
+
readonly type: "error";
|
|
593
|
+
readonly name: "RenounceDisabled";
|
|
594
|
+
readonly inputs: readonly [];
|
|
595
|
+
}, {
|
|
596
|
+
readonly type: "error";
|
|
597
|
+
readonly name: "SafeERC20FailedOperation";
|
|
598
|
+
readonly inputs: readonly [{
|
|
599
|
+
readonly name: "token";
|
|
600
|
+
readonly type: "address";
|
|
601
|
+
readonly internalType: "address";
|
|
602
|
+
}];
|
|
603
|
+
}, {
|
|
604
|
+
readonly type: "error";
|
|
605
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
606
|
+
readonly inputs: readonly [];
|
|
607
|
+
}, {
|
|
608
|
+
readonly type: "error";
|
|
609
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
610
|
+
readonly inputs: readonly [{
|
|
611
|
+
readonly name: "slot";
|
|
612
|
+
readonly type: "bytes32";
|
|
613
|
+
readonly internalType: "bytes32";
|
|
614
|
+
}];
|
|
615
|
+
}, {
|
|
616
|
+
readonly type: "error";
|
|
617
|
+
readonly name: "ValueMismatch";
|
|
618
|
+
readonly inputs: readonly [{
|
|
619
|
+
readonly name: "expected";
|
|
620
|
+
readonly type: "uint256";
|
|
621
|
+
readonly internalType: "uint256";
|
|
622
|
+
}, {
|
|
623
|
+
readonly name: "provided";
|
|
624
|
+
readonly type: "uint256";
|
|
625
|
+
readonly internalType: "uint256";
|
|
626
|
+
}];
|
|
627
|
+
}, {
|
|
628
|
+
readonly type: "error";
|
|
629
|
+
readonly name: "ZeroAmount";
|
|
630
|
+
readonly inputs: readonly [];
|
|
631
|
+
}];
|
|
632
|
+
//# sourceMappingURL=handleEscrow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleEscrow.d.ts","sourceRoot":"","sources":["../../src/abis/handleEscrow.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2yBJ,CAAA"}
|