@fangorn-network/sdk 0.1.0 → 0.1.1
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/lib/cli/cli.js +128 -328
- package/lib/cli/index.d.ts +1 -4
- package/lib/cli/index.js +2 -20
- package/lib/cli/sell.d.ts +28 -0
- package/lib/cli/sell.js +95 -0
- package/lib/cli/stage.d.ts +19 -0
- package/lib/cli/stage.js +94 -0
- package/lib/config.d.ts +16 -79
- package/lib/config.js +11 -39
- package/lib/contracts/data-registry/abi.d.ts +195 -19
- package/lib/contracts/data-registry/abi.js +409 -206
- package/lib/contracts/data-registry/index.d.ts +126 -2
- package/lib/contracts/data-registry/index.js +174 -1
- package/lib/contracts/index.d.ts +4 -7
- package/lib/contracts/index.js +4 -7
- package/lib/contracts/logs.d.ts +1 -1
- package/lib/contracts/logs.js +1 -1
- package/lib/contracts/{membership-registry → settlement-registry}/abi.d.ts +301 -636
- package/lib/contracts/settlement-registry/abi.js +962 -0
- package/lib/contracts/settlement-registry/index.d.ts +143 -0
- package/lib/contracts/settlement-registry/index.js +213 -0
- package/lib/crypto/aes.d.ts +2 -2
- package/lib/crypto/aes.js +4 -4
- package/lib/crypto/encryption.d.ts +8 -109
- package/lib/crypto/encryption.js +16 -114
- package/lib/crypto/paid.d.ts +104 -0
- package/lib/crypto/paid.js +147 -0
- package/lib/engine/car.d.ts +5 -1
- package/lib/engine/car.js +2 -2
- package/lib/engine/index.d.ts +33 -14
- package/lib/engine/index.js +98 -41
- package/lib/engine/records.d.ts +19 -8
- package/lib/engine/records.js +81 -7
- package/lib/engine/test-helpers.d.ts +2 -3
- package/lib/engine/test-helpers.js +7 -5
- package/lib/erc8004.js +7 -10
- package/lib/fangorn.d.ts +65 -86
- package/lib/fangorn.js +115 -153
- package/lib/feed.d.ts +7 -8
- package/lib/feed.js +7 -8
- package/lib/index.d.ts +10 -13
- package/lib/index.js +10 -13
- package/lib/providers/storage/signed-url.d.ts +2 -10
- package/lib/providers/storage/signed-url.js +5 -15
- package/lib/providers/storage/types.d.ts +1 -1
- package/lib/providers/storage/utils.js +5 -3
- package/lib/test/key-server.d.ts +12 -0
- package/lib/test/key-server.js +30 -0
- package/lib/test/mem-registry.d.ts +14 -19
- package/lib/test/mem-registry.js +44 -37
- package/lib/test/sdk-suite.d.ts +1 -4
- package/lib/test/sdk-suite.js +16 -87
- package/lib/test/testbed.d.ts +5130 -5140
- package/lib/test/testbed.js +29 -56
- package/lib/types/index.d.ts +6 -11
- package/package.json +1 -1
- package/lib/contracts/app-registry/abi.d.ts +0 -1265
- package/lib/contracts/app-registry/abi.js +0 -1454
- package/lib/contracts/app-registry/index.d.ts +0 -161
- package/lib/contracts/app-registry/index.js +0 -274
- package/lib/contracts/membership-registry/abi.js +0 -1333
- package/lib/contracts/membership-registry/index.d.ts +0 -79
- package/lib/contracts/membership-registry/index.js +0 -104
- package/lib/contracts/types.d.ts +0 -10
- package/lib/contracts/types.js +0 -12
- package/lib/harness/examples/hackmd/build-markdown-graph.d.ts +0 -1
- package/lib/harness/examples/hackmd/build-markdown-graph.js +0 -17
- package/lib/harness/index.d.ts +0 -58
- package/lib/harness/index.js +0 -73
- package/lib/registry.d.ts +0 -118
- package/lib/registry.js +0 -184
|
@@ -1,49 +1,35 @@
|
|
|
1
|
-
//#region src/contracts/
|
|
1
|
+
//#region src/contracts/settlement-registry/abi.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Generated from `forge inspect
|
|
4
|
-
* (solidity/src/
|
|
3
|
+
* Generated from `forge inspect SettlementRegistry abi` in fangorn-network/contracts
|
|
4
|
+
* (solidity/src/SettlementRegistry.sol). Regenerate with scripts/gen-abis.sh, do not edit.
|
|
5
5
|
*/
|
|
6
|
-
declare const
|
|
6
|
+
declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
7
7
|
readonly type: "constructor";
|
|
8
8
|
readonly inputs: readonly [];
|
|
9
9
|
readonly stateMutability: "nonpayable";
|
|
10
10
|
}, {
|
|
11
11
|
readonly type: "function";
|
|
12
|
-
readonly name: "
|
|
12
|
+
readonly name: "TERMS_TYPEHASH";
|
|
13
13
|
readonly inputs: readonly [];
|
|
14
14
|
readonly outputs: readonly [{
|
|
15
15
|
readonly name: "";
|
|
16
|
-
readonly type: "
|
|
17
|
-
readonly internalType: "
|
|
16
|
+
readonly type: "bytes32";
|
|
17
|
+
readonly internalType: "bytes32";
|
|
18
18
|
}];
|
|
19
19
|
readonly stateMutability: "view";
|
|
20
20
|
}, {
|
|
21
21
|
readonly type: "function";
|
|
22
|
-
readonly name: "
|
|
22
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
23
23
|
readonly inputs: readonly [];
|
|
24
24
|
readonly outputs: readonly [{
|
|
25
25
|
readonly name: "";
|
|
26
|
-
readonly type: "
|
|
27
|
-
readonly internalType: "
|
|
28
|
-
}];
|
|
29
|
-
readonly stateMutability: "view";
|
|
30
|
-
}, {
|
|
31
|
-
readonly type: "function";
|
|
32
|
-
readonly name: "appOfToken";
|
|
33
|
-
readonly inputs: readonly [{
|
|
34
|
-
readonly name: "tokenId";
|
|
35
|
-
readonly type: "uint256";
|
|
36
|
-
readonly internalType: "uint256";
|
|
37
|
-
}];
|
|
38
|
-
readonly outputs: readonly [{
|
|
39
|
-
readonly name: "";
|
|
40
|
-
readonly type: "bytes32";
|
|
41
|
-
readonly internalType: "bytes32";
|
|
26
|
+
readonly type: "string";
|
|
27
|
+
readonly internalType: "string";
|
|
42
28
|
}];
|
|
43
29
|
readonly stateMutability: "view";
|
|
44
30
|
}, {
|
|
45
31
|
readonly type: "function";
|
|
46
|
-
readonly name: "
|
|
32
|
+
readonly name: "admin";
|
|
47
33
|
readonly inputs: readonly [];
|
|
48
34
|
readonly outputs: readonly [{
|
|
49
35
|
readonly name: "";
|
|
@@ -53,114 +39,28 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
53
39
|
readonly stateMutability: "view";
|
|
54
40
|
}, {
|
|
55
41
|
readonly type: "function";
|
|
56
|
-
readonly name: "
|
|
57
|
-
readonly inputs: readonly [{
|
|
58
|
-
readonly name: "to";
|
|
59
|
-
readonly type: "address";
|
|
60
|
-
readonly internalType: "address";
|
|
61
|
-
}, {
|
|
62
|
-
readonly name: "tokenId";
|
|
63
|
-
readonly type: "uint256";
|
|
64
|
-
readonly internalType: "uint256";
|
|
65
|
-
}];
|
|
66
|
-
readonly outputs: readonly [];
|
|
67
|
-
readonly stateMutability: "nonpayable";
|
|
68
|
-
}, {
|
|
69
|
-
readonly type: "function";
|
|
70
|
-
readonly name: "balanceOf";
|
|
42
|
+
readonly name: "canRead";
|
|
71
43
|
readonly inputs: readonly [{
|
|
72
|
-
readonly name: "
|
|
44
|
+
readonly name: "reader";
|
|
73
45
|
readonly type: "address";
|
|
74
46
|
readonly internalType: "address";
|
|
75
|
-
}];
|
|
76
|
-
readonly outputs: readonly [{
|
|
77
|
-
readonly name: "";
|
|
78
|
-
readonly type: "uint256";
|
|
79
|
-
readonly internalType: "uint256";
|
|
80
|
-
}];
|
|
81
|
-
readonly stateMutability: "view";
|
|
82
|
-
}, {
|
|
83
|
-
readonly type: "function";
|
|
84
|
-
readonly name: "canRead";
|
|
85
|
-
readonly inputs: readonly [{
|
|
86
|
-
readonly name: "tokenId";
|
|
87
|
-
readonly type: "uint256";
|
|
88
|
-
readonly internalType: "uint256";
|
|
89
47
|
}, {
|
|
90
|
-
readonly name: "
|
|
48
|
+
readonly name: "publisher";
|
|
91
49
|
readonly type: "address";
|
|
92
50
|
readonly internalType: "address";
|
|
93
|
-
}];
|
|
94
|
-
readonly outputs: readonly [{
|
|
95
|
-
readonly name: "app_id";
|
|
96
|
-
readonly type: "bytes32";
|
|
97
|
-
readonly internalType: "bytes32";
|
|
98
51
|
}, {
|
|
99
|
-
readonly name: "
|
|
100
|
-
readonly type: "uint64";
|
|
101
|
-
readonly internalType: "uint64";
|
|
102
|
-
}];
|
|
103
|
-
readonly stateMutability: "view";
|
|
104
|
-
}, {
|
|
105
|
-
readonly type: "function";
|
|
106
|
-
readonly name: "cancelSubscription";
|
|
107
|
-
readonly inputs: readonly [{
|
|
108
|
-
readonly name: "";
|
|
109
|
-
readonly type: "uint256";
|
|
110
|
-
readonly internalType: "uint256";
|
|
111
|
-
}];
|
|
112
|
-
readonly outputs: readonly [];
|
|
113
|
-
readonly stateMutability: "payable";
|
|
114
|
-
}, {
|
|
115
|
-
readonly type: "function";
|
|
116
|
-
readonly name: "claim";
|
|
117
|
-
readonly inputs: readonly [{
|
|
118
|
-
readonly name: "app_id";
|
|
52
|
+
readonly name: "repo";
|
|
119
53
|
readonly type: "bytes32";
|
|
120
54
|
readonly internalType: "bytes32";
|
|
121
55
|
}, {
|
|
122
|
-
readonly name: "
|
|
123
|
-
readonly type: "uint256";
|
|
124
|
-
readonly internalType: "uint256";
|
|
125
|
-
}, {
|
|
126
|
-
readonly name: "holder";
|
|
127
|
-
readonly type: "address";
|
|
128
|
-
readonly internalType: "address";
|
|
129
|
-
}, {
|
|
130
|
-
readonly name: "merkleTreeDepth";
|
|
131
|
-
readonly type: "uint256";
|
|
132
|
-
readonly internalType: "uint256";
|
|
133
|
-
}, {
|
|
134
|
-
readonly name: "merkleTreeRoot";
|
|
135
|
-
readonly type: "uint256";
|
|
136
|
-
readonly internalType: "uint256";
|
|
137
|
-
}, {
|
|
138
|
-
readonly name: "nullifier";
|
|
139
|
-
readonly type: "uint256";
|
|
140
|
-
readonly internalType: "uint256";
|
|
141
|
-
}, {
|
|
142
|
-
readonly name: "points";
|
|
143
|
-
readonly type: "uint256[8]";
|
|
144
|
-
readonly internalType: "uint256[8]";
|
|
145
|
-
}];
|
|
146
|
-
readonly outputs: readonly [{
|
|
147
|
-
readonly name: "tokenId";
|
|
148
|
-
readonly type: "uint256";
|
|
149
|
-
readonly internalType: "uint256";
|
|
150
|
-
}];
|
|
151
|
-
readonly stateMutability: "nonpayable";
|
|
152
|
-
}, {
|
|
153
|
-
readonly type: "function";
|
|
154
|
-
readonly name: "currentEpoch";
|
|
155
|
-
readonly inputs: readonly [{
|
|
156
|
-
readonly name: "app_id";
|
|
56
|
+
readonly name: "key";
|
|
157
57
|
readonly type: "bytes32";
|
|
158
58
|
readonly internalType: "bytes32";
|
|
159
59
|
}];
|
|
160
60
|
readonly outputs: readonly [{
|
|
161
61
|
readonly name: "";
|
|
162
|
-
readonly type: "
|
|
163
|
-
readonly internalType: "
|
|
62
|
+
readonly type: "bool";
|
|
63
|
+
readonly internalType: "bool";
|
|
164
64
|
}];
|
|
165
65
|
readonly stateMutability: "view";
|
|
166
66
|
}, {
|
|
@@ -199,11 +99,15 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
199
99
|
readonly stateMutability: "view";
|
|
200
100
|
}, {
|
|
201
101
|
readonly type: "function";
|
|
202
|
-
readonly name: "
|
|
102
|
+
readonly name: "generationOf";
|
|
203
103
|
readonly inputs: readonly [{
|
|
204
|
-
readonly name: "
|
|
205
|
-
readonly type: "
|
|
206
|
-
readonly internalType: "
|
|
104
|
+
readonly name: "";
|
|
105
|
+
readonly type: "address";
|
|
106
|
+
readonly internalType: "address";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "";
|
|
109
|
+
readonly type: "bytes32";
|
|
110
|
+
readonly internalType: "bytes32";
|
|
207
111
|
}];
|
|
208
112
|
readonly outputs: readonly [{
|
|
209
113
|
readonly name: "";
|
|
@@ -213,34 +117,59 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
213
117
|
readonly stateMutability: "view";
|
|
214
118
|
}, {
|
|
215
119
|
readonly type: "function";
|
|
216
|
-
readonly name: "
|
|
120
|
+
readonly name: "groupOf";
|
|
217
121
|
readonly inputs: readonly [{
|
|
218
|
-
readonly name: "
|
|
219
|
-
readonly type: "
|
|
220
|
-
readonly internalType: "
|
|
122
|
+
readonly name: "subject";
|
|
123
|
+
readonly type: "bytes32";
|
|
124
|
+
readonly internalType: "bytes32";
|
|
221
125
|
}];
|
|
222
126
|
readonly outputs: readonly [{
|
|
223
127
|
readonly name: "";
|
|
224
|
-
readonly type: "
|
|
225
|
-
readonly internalType: "
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
readonly internalType: "uint256";
|
|
226
130
|
}];
|
|
227
131
|
readonly stateMutability: "view";
|
|
228
132
|
}, {
|
|
229
133
|
readonly type: "function";
|
|
230
|
-
readonly name: "
|
|
134
|
+
readonly name: "hashTerms";
|
|
231
135
|
readonly inputs: readonly [{
|
|
232
|
-
readonly name: "
|
|
233
|
-
readonly type: "
|
|
234
|
-
readonly internalType: "
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
136
|
+
readonly name: "t";
|
|
137
|
+
readonly type: "tuple";
|
|
138
|
+
readonly internalType: "struct SettlementRegistry.Terms";
|
|
139
|
+
readonly components: readonly [{
|
|
140
|
+
readonly name: "publisher";
|
|
141
|
+
readonly type: "address";
|
|
142
|
+
readonly internalType: "address";
|
|
143
|
+
}, {
|
|
144
|
+
readonly name: "repo";
|
|
145
|
+
readonly type: "bytes32";
|
|
146
|
+
readonly internalType: "bytes32";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "key";
|
|
149
|
+
readonly type: "bytes32";
|
|
150
|
+
readonly internalType: "bytes32";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "price";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
readonly internalType: "uint256";
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "shareBps";
|
|
157
|
+
readonly type: "uint16";
|
|
158
|
+
readonly internalType: "uint16";
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "generation";
|
|
161
|
+
readonly type: "uint64";
|
|
162
|
+
readonly internalType: "uint64";
|
|
163
|
+
}, {
|
|
164
|
+
readonly name: "deadline";
|
|
165
|
+
readonly type: "uint64";
|
|
166
|
+
readonly internalType: "uint64";
|
|
167
|
+
}];
|
|
239
168
|
}];
|
|
240
169
|
readonly outputs: readonly [{
|
|
241
170
|
readonly name: "";
|
|
242
|
-
readonly type: "
|
|
243
|
-
readonly internalType: "
|
|
171
|
+
readonly type: "bytes32";
|
|
172
|
+
readonly internalType: "bytes32";
|
|
244
173
|
}];
|
|
245
174
|
readonly stateMutability: "view";
|
|
246
175
|
}, {
|
|
@@ -258,22 +187,18 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
258
187
|
readonly name: "semaphore_";
|
|
259
188
|
readonly type: "address";
|
|
260
189
|
readonly internalType: "address";
|
|
261
|
-
}, {
|
|
262
|
-
readonly name: "appRegistry_";
|
|
263
|
-
readonly type: "address";
|
|
264
|
-
readonly internalType: "address";
|
|
265
190
|
}];
|
|
266
191
|
readonly outputs: readonly [];
|
|
267
192
|
readonly stateMutability: "nonpayable";
|
|
268
193
|
}, {
|
|
269
194
|
readonly type: "function";
|
|
270
|
-
readonly name: "
|
|
195
|
+
readonly name: "isDenied";
|
|
271
196
|
readonly inputs: readonly [{
|
|
272
|
-
readonly name: "
|
|
197
|
+
readonly name: "";
|
|
273
198
|
readonly type: "address";
|
|
274
199
|
readonly internalType: "address";
|
|
275
200
|
}, {
|
|
276
|
-
readonly name: "
|
|
201
|
+
readonly name: "";
|
|
277
202
|
readonly type: "address";
|
|
278
203
|
readonly internalType: "address";
|
|
279
204
|
}];
|
|
@@ -285,11 +210,11 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
285
210
|
readonly stateMutability: "view";
|
|
286
211
|
}, {
|
|
287
212
|
readonly type: "function";
|
|
288
|
-
readonly name: "
|
|
213
|
+
readonly name: "isDisabled";
|
|
289
214
|
readonly inputs: readonly [{
|
|
290
|
-
readonly name: "
|
|
291
|
-
readonly type: "
|
|
292
|
-
readonly internalType: "
|
|
215
|
+
readonly name: "";
|
|
216
|
+
readonly type: "bytes32";
|
|
217
|
+
readonly internalType: "bytes32";
|
|
293
218
|
}];
|
|
294
219
|
readonly outputs: readonly [{
|
|
295
220
|
readonly name: "";
|
|
@@ -299,92 +224,15 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
299
224
|
readonly stateMutability: "view";
|
|
300
225
|
}, {
|
|
301
226
|
readonly type: "function";
|
|
302
|
-
readonly name: "
|
|
303
|
-
readonly inputs: readonly [{
|
|
304
|
-
readonly name: "app_id";
|
|
305
|
-
readonly type: "bytes32";
|
|
306
|
-
readonly internalType: "bytes32";
|
|
307
|
-
}, {
|
|
308
|
-
readonly name: "commitment";
|
|
309
|
-
readonly type: "uint256";
|
|
310
|
-
readonly internalType: "uint256";
|
|
311
|
-
}, {
|
|
312
|
-
readonly name: "salt";
|
|
313
|
-
readonly type: "bytes32";
|
|
314
|
-
readonly internalType: "bytes32";
|
|
315
|
-
}, {
|
|
316
|
-
readonly name: "pay";
|
|
317
|
-
readonly type: "tuple";
|
|
318
|
-
readonly internalType: "struct MembershipRegistry.Payment";
|
|
319
|
-
readonly components: readonly [{
|
|
320
|
-
readonly name: "from";
|
|
321
|
-
readonly type: "address";
|
|
322
|
-
readonly internalType: "address";
|
|
323
|
-
}, {
|
|
324
|
-
readonly name: "value";
|
|
325
|
-
readonly type: "uint256";
|
|
326
|
-
readonly internalType: "uint256";
|
|
327
|
-
}, {
|
|
328
|
-
readonly name: "validAfter";
|
|
329
|
-
readonly type: "uint256";
|
|
330
|
-
readonly internalType: "uint256";
|
|
331
|
-
}, {
|
|
332
|
-
readonly name: "validBefore";
|
|
333
|
-
readonly type: "uint256";
|
|
334
|
-
readonly internalType: "uint256";
|
|
335
|
-
}, {
|
|
336
|
-
readonly name: "nonce";
|
|
337
|
-
readonly type: "bytes32";
|
|
338
|
-
readonly internalType: "bytes32";
|
|
339
|
-
}, {
|
|
340
|
-
readonly name: "v";
|
|
341
|
-
readonly type: "uint8";
|
|
342
|
-
readonly internalType: "uint8";
|
|
343
|
-
}, {
|
|
344
|
-
readonly name: "r";
|
|
345
|
-
readonly type: "bytes32";
|
|
346
|
-
readonly internalType: "bytes32";
|
|
347
|
-
}, {
|
|
348
|
-
readonly name: "s";
|
|
349
|
-
readonly type: "bytes32";
|
|
350
|
-
readonly internalType: "bytes32";
|
|
351
|
-
}];
|
|
352
|
-
}];
|
|
353
|
-
readonly outputs: readonly [];
|
|
354
|
-
readonly stateMutability: "nonpayable";
|
|
355
|
-
}, {
|
|
356
|
-
readonly type: "function";
|
|
357
|
-
readonly name: "joinNonce";
|
|
227
|
+
readonly name: "isRegistered";
|
|
358
228
|
readonly inputs: readonly [{
|
|
359
|
-
readonly name: "
|
|
229
|
+
readonly name: "subject";
|
|
360
230
|
readonly type: "bytes32";
|
|
361
231
|
readonly internalType: "bytes32";
|
|
362
|
-
}, {
|
|
363
|
-
readonly name: "epoch";
|
|
364
|
-
readonly type: "uint256";
|
|
365
|
-
readonly internalType: "uint256";
|
|
366
232
|
}, {
|
|
367
233
|
readonly name: "commitment";
|
|
368
234
|
readonly type: "uint256";
|
|
369
235
|
readonly internalType: "uint256";
|
|
370
|
-
}, {
|
|
371
|
-
readonly name: "salt";
|
|
372
|
-
readonly type: "bytes32";
|
|
373
|
-
readonly internalType: "bytes32";
|
|
374
|
-
}];
|
|
375
|
-
readonly outputs: readonly [{
|
|
376
|
-
readonly name: "";
|
|
377
|
-
readonly type: "bytes32";
|
|
378
|
-
readonly internalType: "bytes32";
|
|
379
|
-
}];
|
|
380
|
-
readonly stateMutability: "pure";
|
|
381
|
-
}, {
|
|
382
|
-
readonly type: "function";
|
|
383
|
-
readonly name: "locked";
|
|
384
|
-
readonly inputs: readonly [{
|
|
385
|
-
readonly name: "tokenId";
|
|
386
|
-
readonly type: "uint256";
|
|
387
|
-
readonly internalType: "uint256";
|
|
388
236
|
}];
|
|
389
237
|
readonly outputs: readonly [{
|
|
390
238
|
readonly name: "";
|
|
@@ -394,44 +242,34 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
394
242
|
readonly stateMutability: "view";
|
|
395
243
|
}, {
|
|
396
244
|
readonly type: "function";
|
|
397
|
-
readonly name: "
|
|
398
|
-
readonly inputs: readonly [];
|
|
399
|
-
readonly outputs: readonly [{
|
|
400
|
-
readonly name: "";
|
|
401
|
-
readonly type: "string";
|
|
402
|
-
readonly internalType: "string";
|
|
403
|
-
}];
|
|
404
|
-
readonly stateMutability: "view";
|
|
405
|
-
}, {
|
|
406
|
-
readonly type: "function";
|
|
407
|
-
readonly name: "ownerOf";
|
|
245
|
+
readonly name: "isSettled";
|
|
408
246
|
readonly inputs: readonly [{
|
|
409
|
-
readonly name: "
|
|
410
|
-
readonly type: "
|
|
411
|
-
readonly internalType: "
|
|
247
|
+
readonly name: "reader";
|
|
248
|
+
readonly type: "address";
|
|
249
|
+
readonly internalType: "address";
|
|
250
|
+
}, {
|
|
251
|
+
readonly name: "subject";
|
|
252
|
+
readonly type: "bytes32";
|
|
253
|
+
readonly internalType: "bytes32";
|
|
412
254
|
}];
|
|
413
255
|
readonly outputs: readonly [{
|
|
414
256
|
readonly name: "";
|
|
415
|
-
readonly type: "
|
|
416
|
-
readonly internalType: "
|
|
257
|
+
readonly type: "bool";
|
|
258
|
+
readonly internalType: "bool";
|
|
417
259
|
}];
|
|
418
260
|
readonly stateMutability: "view";
|
|
419
261
|
}, {
|
|
420
262
|
readonly type: "function";
|
|
421
|
-
readonly name: "
|
|
263
|
+
readonly name: "membersOf";
|
|
422
264
|
readonly inputs: readonly [{
|
|
423
|
-
readonly name: "
|
|
265
|
+
readonly name: "subject";
|
|
424
266
|
readonly type: "bytes32";
|
|
425
267
|
readonly internalType: "bytes32";
|
|
426
268
|
}];
|
|
427
269
|
readonly outputs: readonly [{
|
|
428
|
-
readonly name: "
|
|
429
|
-
readonly type: "uint256";
|
|
430
|
-
readonly internalType: "uint256";
|
|
431
|
-
}, {
|
|
432
|
-
readonly name: "period";
|
|
433
|
-
readonly type: "uint64";
|
|
434
|
-
readonly internalType: "uint64";
|
|
270
|
+
readonly name: "";
|
|
271
|
+
readonly type: "uint256[]";
|
|
272
|
+
readonly internalType: "uint256[]";
|
|
435
273
|
}];
|
|
436
274
|
readonly stateMutability: "view";
|
|
437
275
|
}, {
|
|
@@ -446,74 +284,138 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
446
284
|
readonly stateMutability: "view";
|
|
447
285
|
}, {
|
|
448
286
|
readonly type: "function";
|
|
449
|
-
readonly name: "
|
|
287
|
+
readonly name: "raiseGeneration";
|
|
450
288
|
readonly inputs: readonly [{
|
|
451
|
-
readonly name: "";
|
|
452
|
-
readonly type: "
|
|
453
|
-
readonly internalType: "
|
|
454
|
-
}
|
|
455
|
-
|
|
289
|
+
readonly name: "repo";
|
|
290
|
+
readonly type: "bytes32";
|
|
291
|
+
readonly internalType: "bytes32";
|
|
292
|
+
}];
|
|
293
|
+
readonly outputs: readonly [{
|
|
294
|
+
readonly name: "generation";
|
|
456
295
|
readonly type: "uint64";
|
|
457
296
|
readonly internalType: "uint64";
|
|
458
297
|
}];
|
|
459
|
-
readonly
|
|
460
|
-
readonly stateMutability: "payable";
|
|
298
|
+
readonly stateMutability: "nonpayable";
|
|
461
299
|
}, {
|
|
462
300
|
readonly type: "function";
|
|
463
|
-
readonly name: "
|
|
301
|
+
readonly name: "register";
|
|
464
302
|
readonly inputs: readonly [{
|
|
465
|
-
readonly name: "
|
|
466
|
-
readonly type: "
|
|
467
|
-
readonly internalType: "
|
|
303
|
+
readonly name: "t";
|
|
304
|
+
readonly type: "tuple";
|
|
305
|
+
readonly internalType: "struct SettlementRegistry.Terms";
|
|
306
|
+
readonly components: readonly [{
|
|
307
|
+
readonly name: "publisher";
|
|
308
|
+
readonly type: "address";
|
|
309
|
+
readonly internalType: "address";
|
|
310
|
+
}, {
|
|
311
|
+
readonly name: "repo";
|
|
312
|
+
readonly type: "bytes32";
|
|
313
|
+
readonly internalType: "bytes32";
|
|
314
|
+
}, {
|
|
315
|
+
readonly name: "key";
|
|
316
|
+
readonly type: "bytes32";
|
|
317
|
+
readonly internalType: "bytes32";
|
|
318
|
+
}, {
|
|
319
|
+
readonly name: "price";
|
|
320
|
+
readonly type: "uint256";
|
|
321
|
+
readonly internalType: "uint256";
|
|
322
|
+
}, {
|
|
323
|
+
readonly name: "shareBps";
|
|
324
|
+
readonly type: "uint16";
|
|
325
|
+
readonly internalType: "uint16";
|
|
326
|
+
}, {
|
|
327
|
+
readonly name: "generation";
|
|
328
|
+
readonly type: "uint64";
|
|
329
|
+
readonly internalType: "uint64";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "deadline";
|
|
332
|
+
readonly type: "uint64";
|
|
333
|
+
readonly internalType: "uint64";
|
|
334
|
+
}];
|
|
468
335
|
}, {
|
|
469
|
-
readonly name: "
|
|
470
|
-
readonly type: "
|
|
471
|
-
readonly internalType: "
|
|
336
|
+
readonly name: "signature";
|
|
337
|
+
readonly type: "bytes";
|
|
338
|
+
readonly internalType: "bytes";
|
|
472
339
|
}, {
|
|
473
|
-
readonly name: "
|
|
340
|
+
readonly name: "commitment";
|
|
474
341
|
readonly type: "uint256";
|
|
475
342
|
readonly internalType: "uint256";
|
|
476
|
-
}];
|
|
477
|
-
readonly outputs: readonly [];
|
|
478
|
-
readonly stateMutability: "nonpayable";
|
|
479
|
-
}, {
|
|
480
|
-
readonly type: "function";
|
|
481
|
-
readonly name: "safeTransferFrom";
|
|
482
|
-
readonly inputs: readonly [{
|
|
483
|
-
readonly name: "from";
|
|
484
|
-
readonly type: "address";
|
|
485
|
-
readonly internalType: "address";
|
|
486
343
|
}, {
|
|
487
|
-
readonly name: "
|
|
344
|
+
readonly name: "referrer";
|
|
488
345
|
readonly type: "address";
|
|
489
346
|
readonly internalType: "address";
|
|
490
347
|
}, {
|
|
491
|
-
readonly name: "
|
|
492
|
-
readonly type: "
|
|
493
|
-
readonly internalType: "
|
|
348
|
+
readonly name: "salt";
|
|
349
|
+
readonly type: "bytes32";
|
|
350
|
+
readonly internalType: "bytes32";
|
|
494
351
|
}, {
|
|
495
|
-
readonly name: "
|
|
496
|
-
readonly type: "
|
|
497
|
-
readonly internalType: "
|
|
352
|
+
readonly name: "pay";
|
|
353
|
+
readonly type: "tuple";
|
|
354
|
+
readonly internalType: "struct SettlementRegistry.Payment";
|
|
355
|
+
readonly components: readonly [{
|
|
356
|
+
readonly name: "from";
|
|
357
|
+
readonly type: "address";
|
|
358
|
+
readonly internalType: "address";
|
|
359
|
+
}, {
|
|
360
|
+
readonly name: "value";
|
|
361
|
+
readonly type: "uint256";
|
|
362
|
+
readonly internalType: "uint256";
|
|
363
|
+
}, {
|
|
364
|
+
readonly name: "validAfter";
|
|
365
|
+
readonly type: "uint256";
|
|
366
|
+
readonly internalType: "uint256";
|
|
367
|
+
}, {
|
|
368
|
+
readonly name: "validBefore";
|
|
369
|
+
readonly type: "uint256";
|
|
370
|
+
readonly internalType: "uint256";
|
|
371
|
+
}, {
|
|
372
|
+
readonly name: "nonce";
|
|
373
|
+
readonly type: "bytes32";
|
|
374
|
+
readonly internalType: "bytes32";
|
|
375
|
+
}, {
|
|
376
|
+
readonly name: "v";
|
|
377
|
+
readonly type: "uint8";
|
|
378
|
+
readonly internalType: "uint8";
|
|
379
|
+
}, {
|
|
380
|
+
readonly name: "r";
|
|
381
|
+
readonly type: "bytes32";
|
|
382
|
+
readonly internalType: "bytes32";
|
|
383
|
+
}, {
|
|
384
|
+
readonly name: "s";
|
|
385
|
+
readonly type: "bytes32";
|
|
386
|
+
readonly internalType: "bytes32";
|
|
387
|
+
}];
|
|
388
|
+
}];
|
|
389
|
+
readonly outputs: readonly [{
|
|
390
|
+
readonly name: "subject";
|
|
391
|
+
readonly type: "bytes32";
|
|
392
|
+
readonly internalType: "bytes32";
|
|
498
393
|
}];
|
|
499
|
-
readonly outputs: readonly [];
|
|
500
394
|
readonly stateMutability: "nonpayable";
|
|
501
395
|
}, {
|
|
502
396
|
readonly type: "function";
|
|
503
|
-
readonly name: "
|
|
397
|
+
readonly name: "registerNonce";
|
|
504
398
|
readonly inputs: readonly [{
|
|
505
|
-
readonly name: "
|
|
399
|
+
readonly name: "subject";
|
|
506
400
|
readonly type: "bytes32";
|
|
507
401
|
readonly internalType: "bytes32";
|
|
508
402
|
}, {
|
|
509
|
-
readonly name: "
|
|
403
|
+
readonly name: "commitment";
|
|
510
404
|
readonly type: "uint256";
|
|
511
405
|
readonly internalType: "uint256";
|
|
406
|
+
}, {
|
|
407
|
+
readonly name: "referrer";
|
|
408
|
+
readonly type: "address";
|
|
409
|
+
readonly internalType: "address";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "salt";
|
|
412
|
+
readonly type: "bytes32";
|
|
413
|
+
readonly internalType: "bytes32";
|
|
512
414
|
}];
|
|
513
415
|
readonly outputs: readonly [{
|
|
514
416
|
readonly name: "";
|
|
515
|
-
readonly type: "
|
|
516
|
-
readonly internalType: "
|
|
417
|
+
readonly type: "bytes32";
|
|
418
|
+
readonly internalType: "bytes32";
|
|
517
419
|
}];
|
|
518
420
|
readonly stateMutability: "pure";
|
|
519
421
|
}, {
|
|
@@ -538,13 +440,13 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
538
440
|
readonly stateMutability: "nonpayable";
|
|
539
441
|
}, {
|
|
540
442
|
readonly type: "function";
|
|
541
|
-
readonly name: "
|
|
443
|
+
readonly name: "setDenied";
|
|
542
444
|
readonly inputs: readonly [{
|
|
543
|
-
readonly name: "
|
|
445
|
+
readonly name: "referrer";
|
|
544
446
|
readonly type: "address";
|
|
545
447
|
readonly internalType: "address";
|
|
546
448
|
}, {
|
|
547
|
-
readonly name: "
|
|
449
|
+
readonly name: "denied";
|
|
548
450
|
readonly type: "bool";
|
|
549
451
|
readonly internalType: "bool";
|
|
550
452
|
}];
|
|
@@ -552,140 +454,78 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
552
454
|
readonly stateMutability: "nonpayable";
|
|
553
455
|
}, {
|
|
554
456
|
readonly type: "function";
|
|
555
|
-
readonly name: "
|
|
556
|
-
readonly inputs: readonly [{
|
|
557
|
-
readonly name: "app_id";
|
|
558
|
-
readonly type: "bytes32";
|
|
559
|
-
readonly internalType: "bytes32";
|
|
560
|
-
}, {
|
|
561
|
-
readonly name: "price";
|
|
562
|
-
readonly type: "uint256";
|
|
563
|
-
readonly internalType: "uint256";
|
|
564
|
-
}, {
|
|
565
|
-
readonly name: "period";
|
|
566
|
-
readonly type: "uint64";
|
|
567
|
-
readonly internalType: "uint64";
|
|
568
|
-
}];
|
|
569
|
-
readonly outputs: readonly [];
|
|
570
|
-
readonly stateMutability: "nonpayable";
|
|
571
|
-
}, {
|
|
572
|
-
readonly type: "function";
|
|
573
|
-
readonly name: "setUser";
|
|
457
|
+
readonly name: "setDisabled";
|
|
574
458
|
readonly inputs: readonly [{
|
|
575
|
-
readonly name: "
|
|
576
|
-
readonly type: "uint256";
|
|
577
|
-
readonly internalType: "uint256";
|
|
578
|
-
}, {
|
|
579
|
-
readonly name: "user";
|
|
459
|
+
readonly name: "publisher";
|
|
580
460
|
readonly type: "address";
|
|
581
461
|
readonly internalType: "address";
|
|
582
462
|
}, {
|
|
583
|
-
readonly name: "
|
|
584
|
-
readonly type: "
|
|
585
|
-
readonly internalType: "
|
|
586
|
-
}];
|
|
587
|
-
readonly outputs: readonly [];
|
|
588
|
-
readonly stateMutability: "nonpayable";
|
|
589
|
-
}, {
|
|
590
|
-
readonly type: "function";
|
|
591
|
-
readonly name: "setUserBySig";
|
|
592
|
-
readonly inputs: readonly [{
|
|
593
|
-
readonly name: "tokenId";
|
|
594
|
-
readonly type: "uint256";
|
|
595
|
-
readonly internalType: "uint256";
|
|
596
|
-
}, {
|
|
597
|
-
readonly name: "user";
|
|
598
|
-
readonly type: "address";
|
|
599
|
-
readonly internalType: "address";
|
|
600
|
-
}, {
|
|
601
|
-
readonly name: "expires";
|
|
602
|
-
readonly type: "uint64";
|
|
603
|
-
readonly internalType: "uint64";
|
|
463
|
+
readonly name: "repo";
|
|
464
|
+
readonly type: "bytes32";
|
|
465
|
+
readonly internalType: "bytes32";
|
|
604
466
|
}, {
|
|
605
|
-
readonly name: "
|
|
606
|
-
readonly type: "
|
|
607
|
-
readonly internalType: "
|
|
467
|
+
readonly name: "key";
|
|
468
|
+
readonly type: "bytes32";
|
|
469
|
+
readonly internalType: "bytes32";
|
|
608
470
|
}, {
|
|
609
|
-
readonly name: "
|
|
610
|
-
readonly type: "bytes";
|
|
611
|
-
readonly internalType: "bytes";
|
|
612
|
-
}];
|
|
613
|
-
readonly outputs: readonly [];
|
|
614
|
-
readonly stateMutability: "nonpayable";
|
|
615
|
-
}, {
|
|
616
|
-
readonly type: "function";
|
|
617
|
-
readonly name: "supportsInterface";
|
|
618
|
-
readonly inputs: readonly [{
|
|
619
|
-
readonly name: "id";
|
|
620
|
-
readonly type: "bytes4";
|
|
621
|
-
readonly internalType: "bytes4";
|
|
622
|
-
}];
|
|
623
|
-
readonly outputs: readonly [{
|
|
624
|
-
readonly name: "";
|
|
471
|
+
readonly name: "disabled";
|
|
625
472
|
readonly type: "bool";
|
|
626
473
|
readonly internalType: "bool";
|
|
627
474
|
}];
|
|
628
|
-
readonly
|
|
629
|
-
|
|
630
|
-
readonly type: "function";
|
|
631
|
-
readonly name: "symbol";
|
|
632
|
-
readonly inputs: readonly [];
|
|
633
|
-
readonly outputs: readonly [{
|
|
634
|
-
readonly name: "";
|
|
635
|
-
readonly type: "string";
|
|
636
|
-
readonly internalType: "string";
|
|
637
|
-
}];
|
|
638
|
-
readonly stateMutability: "view";
|
|
475
|
+
readonly outputs: readonly [];
|
|
476
|
+
readonly stateMutability: "nonpayable";
|
|
639
477
|
}, {
|
|
640
478
|
readonly type: "function";
|
|
641
|
-
readonly name: "
|
|
479
|
+
readonly name: "settle";
|
|
642
480
|
readonly inputs: readonly [{
|
|
643
|
-
readonly name: "
|
|
481
|
+
readonly name: "subject";
|
|
644
482
|
readonly type: "bytes32";
|
|
645
483
|
readonly internalType: "bytes32";
|
|
646
484
|
}, {
|
|
647
|
-
readonly name: "
|
|
485
|
+
readonly name: "reader";
|
|
648
486
|
readonly type: "address";
|
|
649
487
|
readonly internalType: "address";
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
readonly name: "";
|
|
488
|
+
}, {
|
|
489
|
+
readonly name: "merkleTreeDepth";
|
|
653
490
|
readonly type: "uint256";
|
|
654
491
|
readonly internalType: "uint256";
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
}, {
|
|
658
|
-
readonly type: "function";
|
|
659
|
-
readonly name: "tokenURI";
|
|
660
|
-
readonly inputs: readonly [{
|
|
661
|
-
readonly name: "tokenId";
|
|
492
|
+
}, {
|
|
493
|
+
readonly name: "merkleTreeRoot";
|
|
662
494
|
readonly type: "uint256";
|
|
663
495
|
readonly internalType: "uint256";
|
|
496
|
+
}, {
|
|
497
|
+
readonly name: "nullifier";
|
|
498
|
+
readonly type: "uint256";
|
|
499
|
+
readonly internalType: "uint256";
|
|
500
|
+
}, {
|
|
501
|
+
readonly name: "points";
|
|
502
|
+
readonly type: "uint256[8]";
|
|
503
|
+
readonly internalType: "uint256[8]";
|
|
664
504
|
}];
|
|
665
|
-
readonly outputs: readonly [
|
|
666
|
-
|
|
667
|
-
readonly type: "string";
|
|
668
|
-
readonly internalType: "string";
|
|
669
|
-
}];
|
|
670
|
-
readonly stateMutability: "view";
|
|
505
|
+
readonly outputs: readonly [];
|
|
506
|
+
readonly stateMutability: "nonpayable";
|
|
671
507
|
}, {
|
|
672
508
|
readonly type: "function";
|
|
673
|
-
readonly name: "
|
|
509
|
+
readonly name: "subjectOf";
|
|
674
510
|
readonly inputs: readonly [{
|
|
675
|
-
readonly name: "
|
|
511
|
+
readonly name: "publisher";
|
|
676
512
|
readonly type: "address";
|
|
677
513
|
readonly internalType: "address";
|
|
678
514
|
}, {
|
|
679
|
-
readonly name: "
|
|
680
|
-
readonly type: "
|
|
681
|
-
readonly internalType: "
|
|
515
|
+
readonly name: "repo";
|
|
516
|
+
readonly type: "bytes32";
|
|
517
|
+
readonly internalType: "bytes32";
|
|
682
518
|
}, {
|
|
683
|
-
readonly name: "
|
|
684
|
-
readonly type: "
|
|
685
|
-
readonly internalType: "
|
|
519
|
+
readonly name: "key";
|
|
520
|
+
readonly type: "bytes32";
|
|
521
|
+
readonly internalType: "bytes32";
|
|
686
522
|
}];
|
|
687
|
-
readonly outputs: readonly [
|
|
688
|
-
|
|
523
|
+
readonly outputs: readonly [{
|
|
524
|
+
readonly name: "";
|
|
525
|
+
readonly type: "bytes32";
|
|
526
|
+
readonly internalType: "bytes32";
|
|
527
|
+
}];
|
|
528
|
+
readonly stateMutability: "pure";
|
|
689
529
|
}, {
|
|
690
530
|
readonly type: "function";
|
|
691
531
|
readonly name: "upgradeToAndCall";
|
|
@@ -710,48 +550,6 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
710
550
|
readonly internalType: "address";
|
|
711
551
|
}];
|
|
712
552
|
readonly stateMutability: "view";
|
|
713
|
-
}, {
|
|
714
|
-
readonly type: "function";
|
|
715
|
-
readonly name: "userExpires";
|
|
716
|
-
readonly inputs: readonly [{
|
|
717
|
-
readonly name: "tokenId";
|
|
718
|
-
readonly type: "uint256";
|
|
719
|
-
readonly internalType: "uint256";
|
|
720
|
-
}];
|
|
721
|
-
readonly outputs: readonly [{
|
|
722
|
-
readonly name: "";
|
|
723
|
-
readonly type: "uint256";
|
|
724
|
-
readonly internalType: "uint256";
|
|
725
|
-
}];
|
|
726
|
-
readonly stateMutability: "view";
|
|
727
|
-
}, {
|
|
728
|
-
readonly type: "function";
|
|
729
|
-
readonly name: "userNonces";
|
|
730
|
-
readonly inputs: readonly [{
|
|
731
|
-
readonly name: "";
|
|
732
|
-
readonly type: "uint256";
|
|
733
|
-
readonly internalType: "uint256";
|
|
734
|
-
}];
|
|
735
|
-
readonly outputs: readonly [{
|
|
736
|
-
readonly name: "";
|
|
737
|
-
readonly type: "uint256";
|
|
738
|
-
readonly internalType: "uint256";
|
|
739
|
-
}];
|
|
740
|
-
readonly stateMutability: "view";
|
|
741
|
-
}, {
|
|
742
|
-
readonly type: "function";
|
|
743
|
-
readonly name: "userOf";
|
|
744
|
-
readonly inputs: readonly [{
|
|
745
|
-
readonly name: "tokenId";
|
|
746
|
-
readonly type: "uint256";
|
|
747
|
-
readonly internalType: "uint256";
|
|
748
|
-
}];
|
|
749
|
-
readonly outputs: readonly [{
|
|
750
|
-
readonly name: "";
|
|
751
|
-
readonly type: "address";
|
|
752
|
-
readonly internalType: "address";
|
|
753
|
-
}];
|
|
754
|
-
readonly stateMutability: "view";
|
|
755
553
|
}, {
|
|
756
554
|
readonly type: "event";
|
|
757
555
|
readonly name: "AdminChanged";
|
|
@@ -769,39 +567,19 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
769
567
|
readonly anonymous: false;
|
|
770
568
|
}, {
|
|
771
569
|
readonly type: "event";
|
|
772
|
-
readonly name: "
|
|
773
|
-
readonly inputs: readonly [{
|
|
774
|
-
readonly name: "owner";
|
|
775
|
-
readonly type: "address";
|
|
776
|
-
readonly indexed: true;
|
|
777
|
-
readonly internalType: "address";
|
|
778
|
-
}, {
|
|
779
|
-
readonly name: "approved";
|
|
780
|
-
readonly type: "address";
|
|
781
|
-
readonly indexed: true;
|
|
782
|
-
readonly internalType: "address";
|
|
783
|
-
}, {
|
|
784
|
-
readonly name: "tokenId";
|
|
785
|
-
readonly type: "uint256";
|
|
786
|
-
readonly indexed: true;
|
|
787
|
-
readonly internalType: "uint256";
|
|
788
|
-
}];
|
|
789
|
-
readonly anonymous: false;
|
|
790
|
-
}, {
|
|
791
|
-
readonly type: "event";
|
|
792
|
-
readonly name: "ApprovalForAll";
|
|
570
|
+
readonly name: "DenialSet";
|
|
793
571
|
readonly inputs: readonly [{
|
|
794
|
-
readonly name: "
|
|
572
|
+
readonly name: "publisher";
|
|
795
573
|
readonly type: "address";
|
|
796
574
|
readonly indexed: true;
|
|
797
575
|
readonly internalType: "address";
|
|
798
576
|
}, {
|
|
799
|
-
readonly name: "
|
|
577
|
+
readonly name: "referrer";
|
|
800
578
|
readonly type: "address";
|
|
801
579
|
readonly indexed: true;
|
|
802
580
|
readonly internalType: "address";
|
|
803
581
|
}, {
|
|
804
|
-
readonly name: "
|
|
582
|
+
readonly name: "denied";
|
|
805
583
|
readonly type: "bool";
|
|
806
584
|
readonly indexed: false;
|
|
807
585
|
readonly internalType: "bool";
|
|
@@ -809,24 +587,19 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
809
587
|
readonly anonymous: false;
|
|
810
588
|
}, {
|
|
811
589
|
readonly type: "event";
|
|
812
|
-
readonly name: "
|
|
590
|
+
readonly name: "DisabledSet";
|
|
813
591
|
readonly inputs: readonly [{
|
|
814
|
-
readonly name: "
|
|
592
|
+
readonly name: "subject";
|
|
815
593
|
readonly type: "bytes32";
|
|
816
594
|
readonly indexed: true;
|
|
817
595
|
readonly internalType: "bytes32";
|
|
818
596
|
}, {
|
|
819
|
-
readonly name: "
|
|
820
|
-
readonly type: "
|
|
821
|
-
readonly indexed:
|
|
822
|
-
readonly internalType: "
|
|
823
|
-
}, {
|
|
824
|
-
readonly name: "tokenId";
|
|
825
|
-
readonly type: "uint256";
|
|
826
|
-
readonly indexed: true;
|
|
827
|
-
readonly internalType: "uint256";
|
|
597
|
+
readonly name: "disabled";
|
|
598
|
+
readonly type: "bool";
|
|
599
|
+
readonly indexed: false;
|
|
600
|
+
readonly internalType: "bool";
|
|
828
601
|
}, {
|
|
829
|
-
readonly name: "
|
|
602
|
+
readonly name: "by";
|
|
830
603
|
readonly type: "address";
|
|
831
604
|
readonly indexed: false;
|
|
832
605
|
readonly internalType: "address";
|
|
@@ -839,59 +612,19 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
839
612
|
readonly anonymous: false;
|
|
840
613
|
}, {
|
|
841
614
|
readonly type: "event";
|
|
842
|
-
readonly name: "
|
|
843
|
-
readonly inputs: readonly [{
|
|
844
|
-
readonly name: "version";
|
|
845
|
-
readonly type: "uint64";
|
|
846
|
-
readonly indexed: false;
|
|
847
|
-
readonly internalType: "uint64";
|
|
848
|
-
}];
|
|
849
|
-
readonly anonymous: false;
|
|
850
|
-
}, {
|
|
851
|
-
readonly type: "event";
|
|
852
|
-
readonly name: "Joined";
|
|
615
|
+
readonly name: "GenerationRaised";
|
|
853
616
|
readonly inputs: readonly [{
|
|
854
|
-
readonly name: "
|
|
855
|
-
readonly type: "
|
|
856
|
-
readonly indexed: true;
|
|
857
|
-
readonly internalType: "bytes32";
|
|
858
|
-
}, {
|
|
859
|
-
readonly name: "epoch";
|
|
860
|
-
readonly type: "uint256";
|
|
617
|
+
readonly name: "publisher";
|
|
618
|
+
readonly type: "address";
|
|
861
619
|
readonly indexed: true;
|
|
862
|
-
readonly internalType: "
|
|
620
|
+
readonly internalType: "address";
|
|
863
621
|
}, {
|
|
864
|
-
readonly name: "
|
|
865
|
-
readonly type: "uint256";
|
|
866
|
-
readonly indexed: false;
|
|
867
|
-
readonly internalType: "uint256";
|
|
868
|
-
}];
|
|
869
|
-
readonly anonymous: false;
|
|
870
|
-
}, {
|
|
871
|
-
readonly type: "event";
|
|
872
|
-
readonly name: "Locked";
|
|
873
|
-
readonly inputs: readonly [{
|
|
874
|
-
readonly name: "tokenId";
|
|
875
|
-
readonly type: "uint256";
|
|
876
|
-
readonly indexed: false;
|
|
877
|
-
readonly internalType: "uint256";
|
|
878
|
-
}];
|
|
879
|
-
readonly anonymous: false;
|
|
880
|
-
}, {
|
|
881
|
-
readonly type: "event";
|
|
882
|
-
readonly name: "PlanSet";
|
|
883
|
-
readonly inputs: readonly [{
|
|
884
|
-
readonly name: "app_id";
|
|
622
|
+
readonly name: "repo";
|
|
885
623
|
readonly type: "bytes32";
|
|
886
624
|
readonly indexed: true;
|
|
887
625
|
readonly internalType: "bytes32";
|
|
888
626
|
}, {
|
|
889
|
-
readonly name: "
|
|
890
|
-
readonly type: "uint256";
|
|
891
|
-
readonly indexed: false;
|
|
892
|
-
readonly internalType: "uint256";
|
|
893
|
-
}, {
|
|
894
|
-
readonly name: "period";
|
|
627
|
+
readonly name: "generation";
|
|
895
628
|
readonly type: "uint64";
|
|
896
629
|
readonly indexed: false;
|
|
897
630
|
readonly internalType: "uint64";
|
|
@@ -899,14 +632,9 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
899
632
|
readonly anonymous: false;
|
|
900
633
|
}, {
|
|
901
634
|
readonly type: "event";
|
|
902
|
-
readonly name: "
|
|
635
|
+
readonly name: "Initialized";
|
|
903
636
|
readonly inputs: readonly [{
|
|
904
|
-
readonly name: "
|
|
905
|
-
readonly type: "uint256";
|
|
906
|
-
readonly indexed: true;
|
|
907
|
-
readonly internalType: "uint256";
|
|
908
|
-
}, {
|
|
909
|
-
readonly name: "expiration";
|
|
637
|
+
readonly name: "version";
|
|
910
638
|
readonly type: "uint64";
|
|
911
639
|
readonly indexed: false;
|
|
912
640
|
readonly internalType: "uint64";
|
|
@@ -914,29 +642,34 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
914
642
|
readonly anonymous: false;
|
|
915
643
|
}, {
|
|
916
644
|
readonly type: "event";
|
|
917
|
-
readonly name: "
|
|
645
|
+
readonly name: "Registered";
|
|
918
646
|
readonly inputs: readonly [{
|
|
919
|
-
readonly name: "
|
|
647
|
+
readonly name: "subject";
|
|
648
|
+
readonly type: "bytes32";
|
|
649
|
+
readonly indexed: true;
|
|
650
|
+
readonly internalType: "bytes32";
|
|
651
|
+
}, {
|
|
652
|
+
readonly name: "publisher";
|
|
920
653
|
readonly type: "address";
|
|
921
654
|
readonly indexed: true;
|
|
922
655
|
readonly internalType: "address";
|
|
923
656
|
}, {
|
|
924
|
-
readonly name: "
|
|
657
|
+
readonly name: "referrer";
|
|
925
658
|
readonly type: "address";
|
|
926
659
|
readonly indexed: true;
|
|
927
660
|
readonly internalType: "address";
|
|
928
661
|
}, {
|
|
929
|
-
readonly name: "
|
|
662
|
+
readonly name: "commitment";
|
|
930
663
|
readonly type: "uint256";
|
|
931
|
-
readonly indexed:
|
|
664
|
+
readonly indexed: false;
|
|
932
665
|
readonly internalType: "uint256";
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
readonly name: "
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "price";
|
|
668
|
+
readonly type: "uint256";
|
|
669
|
+
readonly indexed: false;
|
|
670
|
+
readonly internalType: "uint256";
|
|
671
|
+
}, {
|
|
672
|
+
readonly name: "referrer_cut";
|
|
940
673
|
readonly type: "uint256";
|
|
941
674
|
readonly indexed: false;
|
|
942
675
|
readonly internalType: "uint256";
|
|
@@ -944,22 +677,22 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
944
677
|
readonly anonymous: false;
|
|
945
678
|
}, {
|
|
946
679
|
readonly type: "event";
|
|
947
|
-
readonly name: "
|
|
680
|
+
readonly name: "Settled";
|
|
948
681
|
readonly inputs: readonly [{
|
|
949
|
-
readonly name: "
|
|
682
|
+
readonly name: "subject";
|
|
683
|
+
readonly type: "bytes32";
|
|
684
|
+
readonly indexed: true;
|
|
685
|
+
readonly internalType: "bytes32";
|
|
686
|
+
}, {
|
|
687
|
+
readonly name: "nullifier";
|
|
950
688
|
readonly type: "uint256";
|
|
951
689
|
readonly indexed: true;
|
|
952
690
|
readonly internalType: "uint256";
|
|
953
691
|
}, {
|
|
954
|
-
readonly name: "
|
|
692
|
+
readonly name: "reader";
|
|
955
693
|
readonly type: "address";
|
|
956
|
-
readonly indexed: true;
|
|
957
|
-
readonly internalType: "address";
|
|
958
|
-
}, {
|
|
959
|
-
readonly name: "expires";
|
|
960
|
-
readonly type: "uint64";
|
|
961
694
|
readonly indexed: false;
|
|
962
|
-
readonly internalType: "
|
|
695
|
+
readonly internalType: "address";
|
|
963
696
|
}];
|
|
964
697
|
readonly anonymous: false;
|
|
965
698
|
}, {
|
|
@@ -982,96 +715,36 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
982
715
|
}];
|
|
983
716
|
}, {
|
|
984
717
|
readonly type: "error";
|
|
985
|
-
readonly name: "
|
|
718
|
+
readonly name: "AlreadyRegistered";
|
|
986
719
|
readonly inputs: readonly [];
|
|
987
720
|
}, {
|
|
988
721
|
readonly type: "error";
|
|
989
|
-
readonly name: "
|
|
990
|
-
readonly inputs: readonly [{
|
|
991
|
-
readonly name: "implementation";
|
|
992
|
-
readonly type: "address";
|
|
993
|
-
readonly internalType: "address";
|
|
994
|
-
}];
|
|
995
|
-
}, {
|
|
996
|
-
readonly type: "error";
|
|
997
|
-
readonly name: "ERC1967NonPayable";
|
|
722
|
+
readonly name: "AlreadySettled";
|
|
998
723
|
readonly inputs: readonly [];
|
|
999
724
|
}, {
|
|
1000
725
|
readonly type: "error";
|
|
1001
|
-
readonly name: "
|
|
1002
|
-
readonly inputs: readonly [
|
|
1003
|
-
readonly name: "sender";
|
|
1004
|
-
readonly type: "address";
|
|
1005
|
-
readonly internalType: "address";
|
|
1006
|
-
}, {
|
|
1007
|
-
readonly name: "tokenId";
|
|
1008
|
-
readonly type: "uint256";
|
|
1009
|
-
readonly internalType: "uint256";
|
|
1010
|
-
}, {
|
|
1011
|
-
readonly name: "owner";
|
|
1012
|
-
readonly type: "address";
|
|
1013
|
-
readonly internalType: "address";
|
|
1014
|
-
}];
|
|
1015
|
-
}, {
|
|
1016
|
-
readonly type: "error";
|
|
1017
|
-
readonly name: "ERC721InsufficientApproval";
|
|
1018
|
-
readonly inputs: readonly [{
|
|
1019
|
-
readonly name: "operator";
|
|
1020
|
-
readonly type: "address";
|
|
1021
|
-
readonly internalType: "address";
|
|
1022
|
-
}, {
|
|
1023
|
-
readonly name: "tokenId";
|
|
1024
|
-
readonly type: "uint256";
|
|
1025
|
-
readonly internalType: "uint256";
|
|
1026
|
-
}];
|
|
1027
|
-
}, {
|
|
1028
|
-
readonly type: "error";
|
|
1029
|
-
readonly name: "ERC721InvalidApprover";
|
|
1030
|
-
readonly inputs: readonly [{
|
|
1031
|
-
readonly name: "approver";
|
|
1032
|
-
readonly type: "address";
|
|
1033
|
-
readonly internalType: "address";
|
|
1034
|
-
}];
|
|
1035
|
-
}, {
|
|
1036
|
-
readonly type: "error";
|
|
1037
|
-
readonly name: "ERC721InvalidOperator";
|
|
1038
|
-
readonly inputs: readonly [{
|
|
1039
|
-
readonly name: "operator";
|
|
1040
|
-
readonly type: "address";
|
|
1041
|
-
readonly internalType: "address";
|
|
1042
|
-
}];
|
|
726
|
+
readonly name: "BadShare";
|
|
727
|
+
readonly inputs: readonly [];
|
|
1043
728
|
}, {
|
|
1044
729
|
readonly type: "error";
|
|
1045
|
-
readonly name: "
|
|
1046
|
-
readonly inputs: readonly [
|
|
1047
|
-
readonly name: "owner";
|
|
1048
|
-
readonly type: "address";
|
|
1049
|
-
readonly internalType: "address";
|
|
1050
|
-
}];
|
|
730
|
+
readonly name: "BadSignature";
|
|
731
|
+
readonly inputs: readonly [];
|
|
1051
732
|
}, {
|
|
1052
733
|
readonly type: "error";
|
|
1053
|
-
readonly name: "
|
|
1054
|
-
readonly inputs: readonly [
|
|
1055
|
-
readonly name: "receiver";
|
|
1056
|
-
readonly type: "address";
|
|
1057
|
-
readonly internalType: "address";
|
|
1058
|
-
}];
|
|
734
|
+
readonly name: "Disabled";
|
|
735
|
+
readonly inputs: readonly [];
|
|
1059
736
|
}, {
|
|
1060
737
|
readonly type: "error";
|
|
1061
|
-
readonly name: "
|
|
738
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
1062
739
|
readonly inputs: readonly [{
|
|
1063
|
-
readonly name: "
|
|
740
|
+
readonly name: "implementation";
|
|
1064
741
|
readonly type: "address";
|
|
1065
742
|
readonly internalType: "address";
|
|
1066
743
|
}];
|
|
1067
744
|
}, {
|
|
1068
745
|
readonly type: "error";
|
|
1069
|
-
readonly name: "
|
|
1070
|
-
readonly inputs: readonly [
|
|
1071
|
-
readonly name: "tokenId";
|
|
1072
|
-
readonly type: "uint256";
|
|
1073
|
-
readonly internalType: "uint256";
|
|
1074
|
-
}];
|
|
746
|
+
readonly name: "ERC1967NonPayable";
|
|
747
|
+
readonly inputs: readonly [];
|
|
1075
748
|
}, {
|
|
1076
749
|
readonly type: "error";
|
|
1077
750
|
readonly name: "Expired";
|
|
@@ -1088,10 +761,6 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
1088
761
|
readonly type: "error";
|
|
1089
762
|
readonly name: "NoGroup";
|
|
1090
763
|
readonly inputs: readonly [];
|
|
1091
|
-
}, {
|
|
1092
|
-
readonly type: "error";
|
|
1093
|
-
readonly name: "NoPlan";
|
|
1094
|
-
readonly inputs: readonly [];
|
|
1095
764
|
}, {
|
|
1096
765
|
readonly type: "error";
|
|
1097
766
|
readonly name: "NonceNotBound";
|
|
@@ -1100,10 +769,6 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
1100
769
|
readonly type: "error";
|
|
1101
770
|
readonly name: "NotInitializing";
|
|
1102
771
|
readonly inputs: readonly [];
|
|
1103
|
-
}, {
|
|
1104
|
-
readonly type: "error";
|
|
1105
|
-
readonly name: "NotTransferable";
|
|
1106
|
-
readonly inputs: readonly [];
|
|
1107
772
|
}, {
|
|
1108
773
|
readonly type: "error";
|
|
1109
774
|
readonly name: "ReentrancyGuardReentrantCall";
|
|
@@ -1116,6 +781,10 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
1116
781
|
readonly type: "address";
|
|
1117
782
|
readonly internalType: "address";
|
|
1118
783
|
}];
|
|
784
|
+
}, {
|
|
785
|
+
readonly type: "error";
|
|
786
|
+
readonly name: "StaleTerms";
|
|
787
|
+
readonly inputs: readonly [];
|
|
1119
788
|
}, {
|
|
1120
789
|
readonly type: "error";
|
|
1121
790
|
readonly name: "UUPSUnauthorizedCallContext";
|
|
@@ -1132,14 +801,10 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
1132
801
|
readonly type: "error";
|
|
1133
802
|
readonly name: "Unauthorized";
|
|
1134
803
|
readonly inputs: readonly [];
|
|
1135
|
-
}, {
|
|
1136
|
-
readonly type: "error";
|
|
1137
|
-
readonly name: "UseJoinAndClaim";
|
|
1138
|
-
readonly inputs: readonly [];
|
|
1139
804
|
}, {
|
|
1140
805
|
readonly type: "error";
|
|
1141
806
|
readonly name: "WrongAmount";
|
|
1142
807
|
readonly inputs: readonly [];
|
|
1143
808
|
}];
|
|
1144
809
|
//#endregion
|
|
1145
|
-
export {
|
|
810
|
+
export { SETTLEMENT_REGISTRY_ABI };
|