@fangorn-network/sdk 2026.10.27-dev → 2026.11.3-dev
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 +36 -642
- package/lib/cli/cli.js +47 -322
- package/lib/cli/index.d.ts +1 -4
- package/lib/cli/index.js +2 -20
- package/lib/config.d.ts +15 -78
- package/lib/config.js +8 -35
- package/lib/contracts/data-registry/abi.d.ts +195 -19
- package/lib/contracts/data-registry/abi.js +223 -20
- 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 +5 -8
- 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 +288 -637
- package/lib/contracts/{membership-registry → settlement-registry}/abi.js +326 -712
- package/lib/contracts/settlement-registry/index.d.ts +141 -0
- package/lib/contracts/settlement-registry/index.js +209 -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/index.d.ts +23 -12
- package/lib/engine/index.js +68 -29
- package/lib/engine/records.d.ts +4 -7
- package/lib/engine/records.js +6 -6
- package/lib/engine/test-helpers.d.ts +2 -3
- package/lib/engine/test-helpers.js +7 -5
- package/lib/erc8004.js +1 -4
- package/lib/fangorn.d.ts +64 -85
- package/lib/fangorn.js +106 -148
- package/lib/feed.d.ts +7 -8
- package/lib/feed.js +7 -8
- package/lib/index.d.ts +10 -14
- package/lib/index.js +9 -13
- package/lib/providers/storage/signed-url.d.ts +2 -10
- package/lib/providers/storage/signed-url.js +4 -14
- 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 +5216 -5226
- package/lib/test/testbed.js +29 -56
- package/lib/types/index.d.ts +6 -11
- package/package.json +1 -4
- package/lib/contracts/app-registry/abi.d.ts +0 -1317
- package/lib/contracts/app-registry/abi.js +0 -1510
- package/lib/contracts/app-registry/index.d.ts +0 -173
- package/lib/contracts/app-registry/index.js +0 -294
- 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,9 +1,9 @@
|
|
|
1
|
-
//#region src/contracts/
|
|
1
|
+
//#region src/contracts/settlement-registry/abi.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
|
-
const
|
|
6
|
+
const SETTLEMENT_REGISTRY_ABI = [
|
|
7
7
|
{
|
|
8
8
|
"type": "constructor",
|
|
9
9
|
"inputs": [],
|
|
@@ -11,34 +11,8 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"type": "function",
|
|
14
|
-
"name": "
|
|
15
|
-
"inputs": [],
|
|
16
|
-
"outputs": [{
|
|
17
|
-
"name": "",
|
|
18
|
-
"type": "string",
|
|
19
|
-
"internalType": "string"
|
|
20
|
-
}],
|
|
21
|
-
"stateMutability": "view"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "function",
|
|
25
|
-
"name": "admin",
|
|
14
|
+
"name": "TERMS_TYPEHASH",
|
|
26
15
|
"inputs": [],
|
|
27
|
-
"outputs": [{
|
|
28
|
-
"name": "",
|
|
29
|
-
"type": "address",
|
|
30
|
-
"internalType": "address"
|
|
31
|
-
}],
|
|
32
|
-
"stateMutability": "view"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"type": "function",
|
|
36
|
-
"name": "appOfToken",
|
|
37
|
-
"inputs": [{
|
|
38
|
-
"name": "tokenId",
|
|
39
|
-
"type": "uint256",
|
|
40
|
-
"internalType": "uint256"
|
|
41
|
-
}],
|
|
42
16
|
"outputs": [{
|
|
43
17
|
"name": "",
|
|
44
18
|
"type": "bytes32",
|
|
@@ -48,138 +22,55 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
48
22
|
},
|
|
49
23
|
{
|
|
50
24
|
"type": "function",
|
|
51
|
-
"name": "
|
|
25
|
+
"name": "UPGRADE_INTERFACE_VERSION",
|
|
52
26
|
"inputs": [],
|
|
53
27
|
"outputs": [{
|
|
54
28
|
"name": "",
|
|
55
|
-
"type": "
|
|
56
|
-
"internalType": "
|
|
29
|
+
"type": "string",
|
|
30
|
+
"internalType": "string"
|
|
57
31
|
}],
|
|
58
32
|
"stateMutability": "view"
|
|
59
33
|
},
|
|
60
34
|
{
|
|
61
35
|
"type": "function",
|
|
62
|
-
"name": "
|
|
63
|
-
"inputs": [
|
|
64
|
-
"name": "to",
|
|
65
|
-
"type": "address",
|
|
66
|
-
"internalType": "address"
|
|
67
|
-
}, {
|
|
68
|
-
"name": "tokenId",
|
|
69
|
-
"type": "uint256",
|
|
70
|
-
"internalType": "uint256"
|
|
71
|
-
}],
|
|
72
|
-
"outputs": [],
|
|
73
|
-
"stateMutability": "nonpayable"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"type": "function",
|
|
77
|
-
"name": "balanceOf",
|
|
78
|
-
"inputs": [{
|
|
79
|
-
"name": "owner",
|
|
80
|
-
"type": "address",
|
|
81
|
-
"internalType": "address"
|
|
82
|
-
}],
|
|
36
|
+
"name": "admin",
|
|
37
|
+
"inputs": [],
|
|
83
38
|
"outputs": [{
|
|
84
39
|
"name": "",
|
|
85
|
-
"type": "uint256",
|
|
86
|
-
"internalType": "uint256"
|
|
87
|
-
}],
|
|
88
|
-
"stateMutability": "view"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"type": "function",
|
|
92
|
-
"name": "canRead",
|
|
93
|
-
"inputs": [{
|
|
94
|
-
"name": "tokenId",
|
|
95
|
-
"type": "uint256",
|
|
96
|
-
"internalType": "uint256"
|
|
97
|
-
}, {
|
|
98
|
-
"name": "who",
|
|
99
40
|
"type": "address",
|
|
100
41
|
"internalType": "address"
|
|
101
42
|
}],
|
|
102
|
-
"outputs": [{
|
|
103
|
-
"name": "app_id",
|
|
104
|
-
"type": "bytes32",
|
|
105
|
-
"internalType": "bytes32"
|
|
106
|
-
}, {
|
|
107
|
-
"name": "until",
|
|
108
|
-
"type": "uint64",
|
|
109
|
-
"internalType": "uint64"
|
|
110
|
-
}],
|
|
111
43
|
"stateMutability": "view"
|
|
112
44
|
},
|
|
113
45
|
{
|
|
114
46
|
"type": "function",
|
|
115
|
-
"name": "
|
|
116
|
-
"inputs": [{
|
|
117
|
-
"name": "",
|
|
118
|
-
"type": "uint256",
|
|
119
|
-
"internalType": "uint256"
|
|
120
|
-
}],
|
|
121
|
-
"outputs": [],
|
|
122
|
-
"stateMutability": "payable"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"type": "function",
|
|
126
|
-
"name": "claim",
|
|
47
|
+
"name": "canRead",
|
|
127
48
|
"inputs": [
|
|
128
49
|
{
|
|
129
|
-
"name": "
|
|
130
|
-
"type": "bytes32",
|
|
131
|
-
"internalType": "bytes32"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "epoch",
|
|
135
|
-
"type": "uint256",
|
|
136
|
-
"internalType": "uint256"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"name": "holder",
|
|
50
|
+
"name": "reader",
|
|
140
51
|
"type": "address",
|
|
141
52
|
"internalType": "address"
|
|
142
53
|
},
|
|
143
54
|
{
|
|
144
|
-
"name": "
|
|
145
|
-
"type": "
|
|
146
|
-
"internalType": "
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"name": "merkleTreeRoot",
|
|
150
|
-
"type": "uint256",
|
|
151
|
-
"internalType": "uint256"
|
|
55
|
+
"name": "publisher",
|
|
56
|
+
"type": "address",
|
|
57
|
+
"internalType": "address"
|
|
152
58
|
},
|
|
153
59
|
{
|
|
154
|
-
"name": "
|
|
155
|
-
"type": "
|
|
156
|
-
"internalType": "
|
|
60
|
+
"name": "repo",
|
|
61
|
+
"type": "bytes32",
|
|
62
|
+
"internalType": "bytes32"
|
|
157
63
|
},
|
|
158
64
|
{
|
|
159
|
-
"name": "
|
|
160
|
-
"type": "
|
|
161
|
-
"internalType": "
|
|
65
|
+
"name": "key",
|
|
66
|
+
"type": "bytes32",
|
|
67
|
+
"internalType": "bytes32"
|
|
162
68
|
}
|
|
163
69
|
],
|
|
164
|
-
"outputs": [{
|
|
165
|
-
"name": "tokenId",
|
|
166
|
-
"type": "uint256",
|
|
167
|
-
"internalType": "uint256"
|
|
168
|
-
}],
|
|
169
|
-
"stateMutability": "nonpayable"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"type": "function",
|
|
173
|
-
"name": "currentEpoch",
|
|
174
|
-
"inputs": [{
|
|
175
|
-
"name": "app_id",
|
|
176
|
-
"type": "bytes32",
|
|
177
|
-
"internalType": "bytes32"
|
|
178
|
-
}],
|
|
179
70
|
"outputs": [{
|
|
180
71
|
"name": "",
|
|
181
|
-
"type": "
|
|
182
|
-
"internalType": "
|
|
72
|
+
"type": "bool",
|
|
73
|
+
"internalType": "bool"
|
|
183
74
|
}],
|
|
184
75
|
"stateMutability": "view"
|
|
185
76
|
},
|
|
@@ -228,11 +119,15 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
228
119
|
},
|
|
229
120
|
{
|
|
230
121
|
"type": "function",
|
|
231
|
-
"name": "
|
|
122
|
+
"name": "generationOf",
|
|
232
123
|
"inputs": [{
|
|
233
|
-
"name": "
|
|
234
|
-
"type": "
|
|
235
|
-
"internalType": "
|
|
124
|
+
"name": "",
|
|
125
|
+
"type": "address",
|
|
126
|
+
"internalType": "address"
|
|
127
|
+
}, {
|
|
128
|
+
"name": "",
|
|
129
|
+
"type": "bytes32",
|
|
130
|
+
"internalType": "bytes32"
|
|
236
131
|
}],
|
|
237
132
|
"outputs": [{
|
|
238
133
|
"name": "",
|
|
@@ -243,35 +138,68 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
243
138
|
},
|
|
244
139
|
{
|
|
245
140
|
"type": "function",
|
|
246
|
-
"name": "
|
|
141
|
+
"name": "groupOf",
|
|
247
142
|
"inputs": [{
|
|
248
|
-
"name": "
|
|
249
|
-
"type": "
|
|
250
|
-
"internalType": "
|
|
143
|
+
"name": "subject",
|
|
144
|
+
"type": "bytes32",
|
|
145
|
+
"internalType": "bytes32"
|
|
251
146
|
}],
|
|
252
147
|
"outputs": [{
|
|
253
148
|
"name": "",
|
|
254
|
-
"type": "
|
|
255
|
-
"internalType": "
|
|
149
|
+
"type": "uint256",
|
|
150
|
+
"internalType": "uint256"
|
|
256
151
|
}],
|
|
257
152
|
"stateMutability": "view"
|
|
258
153
|
},
|
|
259
154
|
{
|
|
260
155
|
"type": "function",
|
|
261
|
-
"name": "
|
|
262
|
-
"inputs": [{
|
|
263
|
-
"name": "
|
|
264
|
-
"type": "
|
|
265
|
-
"internalType": "
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
156
|
+
"name": "hashTerms",
|
|
157
|
+
"inputs": [{
|
|
158
|
+
"name": "t",
|
|
159
|
+
"type": "tuple",
|
|
160
|
+
"internalType": "struct SettlementRegistry.Terms",
|
|
161
|
+
"components": [
|
|
162
|
+
{
|
|
163
|
+
"name": "publisher",
|
|
164
|
+
"type": "address",
|
|
165
|
+
"internalType": "address"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "repo",
|
|
169
|
+
"type": "bytes32",
|
|
170
|
+
"internalType": "bytes32"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "key",
|
|
174
|
+
"type": "bytes32",
|
|
175
|
+
"internalType": "bytes32"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "price",
|
|
179
|
+
"type": "uint256",
|
|
180
|
+
"internalType": "uint256"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "shareBps",
|
|
184
|
+
"type": "uint16",
|
|
185
|
+
"internalType": "uint16"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "generation",
|
|
189
|
+
"type": "uint64",
|
|
190
|
+
"internalType": "uint64"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "deadline",
|
|
194
|
+
"type": "uint64",
|
|
195
|
+
"internalType": "uint64"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
270
198
|
}],
|
|
271
199
|
"outputs": [{
|
|
272
200
|
"name": "",
|
|
273
|
-
"type": "
|
|
274
|
-
"internalType": "
|
|
201
|
+
"type": "bytes32",
|
|
202
|
+
"internalType": "bytes32"
|
|
275
203
|
}],
|
|
276
204
|
"stateMutability": "view"
|
|
277
205
|
},
|
|
@@ -293,11 +221,6 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
293
221
|
"name": "semaphore_",
|
|
294
222
|
"type": "address",
|
|
295
223
|
"internalType": "address"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"name": "appRegistry_",
|
|
299
|
-
"type": "address",
|
|
300
|
-
"internalType": "address"
|
|
301
224
|
}
|
|
302
225
|
],
|
|
303
226
|
"outputs": [],
|
|
@@ -305,13 +228,13 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
305
228
|
},
|
|
306
229
|
{
|
|
307
230
|
"type": "function",
|
|
308
|
-
"name": "
|
|
231
|
+
"name": "isDenied",
|
|
309
232
|
"inputs": [{
|
|
310
|
-
"name": "
|
|
233
|
+
"name": "",
|
|
311
234
|
"type": "address",
|
|
312
235
|
"internalType": "address"
|
|
313
236
|
}, {
|
|
314
|
-
"name": "
|
|
237
|
+
"name": "",
|
|
315
238
|
"type": "address",
|
|
316
239
|
"internalType": "address"
|
|
317
240
|
}],
|
|
@@ -324,9 +247,28 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
324
247
|
},
|
|
325
248
|
{
|
|
326
249
|
"type": "function",
|
|
327
|
-
"name": "
|
|
250
|
+
"name": "isDisabled",
|
|
251
|
+
"inputs": [{
|
|
252
|
+
"name": "",
|
|
253
|
+
"type": "bytes32",
|
|
254
|
+
"internalType": "bytes32"
|
|
255
|
+
}],
|
|
256
|
+
"outputs": [{
|
|
257
|
+
"name": "",
|
|
258
|
+
"type": "bool",
|
|
259
|
+
"internalType": "bool"
|
|
260
|
+
}],
|
|
261
|
+
"stateMutability": "view"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"type": "function",
|
|
265
|
+
"name": "isRegistered",
|
|
328
266
|
"inputs": [{
|
|
329
|
-
"name": "
|
|
267
|
+
"name": "subject",
|
|
268
|
+
"type": "bytes32",
|
|
269
|
+
"internalType": "bytes32"
|
|
270
|
+
}, {
|
|
271
|
+
"name": "commitment",
|
|
330
272
|
"type": "uint256",
|
|
331
273
|
"internalType": "uint256"
|
|
332
274
|
}],
|
|
@@ -339,18 +281,110 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
339
281
|
},
|
|
340
282
|
{
|
|
341
283
|
"type": "function",
|
|
342
|
-
"name": "
|
|
284
|
+
"name": "isSettled",
|
|
285
|
+
"inputs": [{
|
|
286
|
+
"name": "reader",
|
|
287
|
+
"type": "address",
|
|
288
|
+
"internalType": "address"
|
|
289
|
+
}, {
|
|
290
|
+
"name": "subject",
|
|
291
|
+
"type": "bytes32",
|
|
292
|
+
"internalType": "bytes32"
|
|
293
|
+
}],
|
|
294
|
+
"outputs": [{
|
|
295
|
+
"name": "",
|
|
296
|
+
"type": "bool",
|
|
297
|
+
"internalType": "bool"
|
|
298
|
+
}],
|
|
299
|
+
"stateMutability": "view"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"type": "function",
|
|
303
|
+
"name": "proxiableUUID",
|
|
304
|
+
"inputs": [],
|
|
305
|
+
"outputs": [{
|
|
306
|
+
"name": "",
|
|
307
|
+
"type": "bytes32",
|
|
308
|
+
"internalType": "bytes32"
|
|
309
|
+
}],
|
|
310
|
+
"stateMutability": "view"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"type": "function",
|
|
314
|
+
"name": "raiseGeneration",
|
|
315
|
+
"inputs": [{
|
|
316
|
+
"name": "repo",
|
|
317
|
+
"type": "bytes32",
|
|
318
|
+
"internalType": "bytes32"
|
|
319
|
+
}],
|
|
320
|
+
"outputs": [{
|
|
321
|
+
"name": "generation",
|
|
322
|
+
"type": "uint64",
|
|
323
|
+
"internalType": "uint64"
|
|
324
|
+
}],
|
|
325
|
+
"stateMutability": "nonpayable"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"type": "function",
|
|
329
|
+
"name": "register",
|
|
343
330
|
"inputs": [
|
|
344
331
|
{
|
|
345
|
-
"name": "
|
|
346
|
-
"type": "
|
|
347
|
-
"internalType": "
|
|
332
|
+
"name": "t",
|
|
333
|
+
"type": "tuple",
|
|
334
|
+
"internalType": "struct SettlementRegistry.Terms",
|
|
335
|
+
"components": [
|
|
336
|
+
{
|
|
337
|
+
"name": "publisher",
|
|
338
|
+
"type": "address",
|
|
339
|
+
"internalType": "address"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "repo",
|
|
343
|
+
"type": "bytes32",
|
|
344
|
+
"internalType": "bytes32"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "key",
|
|
348
|
+
"type": "bytes32",
|
|
349
|
+
"internalType": "bytes32"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "price",
|
|
353
|
+
"type": "uint256",
|
|
354
|
+
"internalType": "uint256"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "shareBps",
|
|
358
|
+
"type": "uint16",
|
|
359
|
+
"internalType": "uint16"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "generation",
|
|
363
|
+
"type": "uint64",
|
|
364
|
+
"internalType": "uint64"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "deadline",
|
|
368
|
+
"type": "uint64",
|
|
369
|
+
"internalType": "uint64"
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "signature",
|
|
375
|
+
"type": "bytes",
|
|
376
|
+
"internalType": "bytes"
|
|
348
377
|
},
|
|
349
378
|
{
|
|
350
379
|
"name": "commitment",
|
|
351
380
|
"type": "uint256",
|
|
352
381
|
"internalType": "uint256"
|
|
353
382
|
},
|
|
383
|
+
{
|
|
384
|
+
"name": "referrer",
|
|
385
|
+
"type": "address",
|
|
386
|
+
"internalType": "address"
|
|
387
|
+
},
|
|
354
388
|
{
|
|
355
389
|
"name": "salt",
|
|
356
390
|
"type": "bytes32",
|
|
@@ -359,7 +393,7 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
359
393
|
{
|
|
360
394
|
"name": "pay",
|
|
361
395
|
"type": "tuple",
|
|
362
|
-
"internalType": "struct
|
|
396
|
+
"internalType": "struct SettlementRegistry.Payment",
|
|
363
397
|
"components": [
|
|
364
398
|
{
|
|
365
399
|
"name": "from",
|
|
@@ -404,27 +438,31 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
404
438
|
]
|
|
405
439
|
}
|
|
406
440
|
],
|
|
407
|
-
"outputs": [
|
|
441
|
+
"outputs": [{
|
|
442
|
+
"name": "subject",
|
|
443
|
+
"type": "bytes32",
|
|
444
|
+
"internalType": "bytes32"
|
|
445
|
+
}],
|
|
408
446
|
"stateMutability": "nonpayable"
|
|
409
447
|
},
|
|
410
448
|
{
|
|
411
449
|
"type": "function",
|
|
412
|
-
"name": "
|
|
450
|
+
"name": "registerNonce",
|
|
413
451
|
"inputs": [
|
|
414
452
|
{
|
|
415
|
-
"name": "
|
|
453
|
+
"name": "subject",
|
|
416
454
|
"type": "bytes32",
|
|
417
455
|
"internalType": "bytes32"
|
|
418
456
|
},
|
|
419
457
|
{
|
|
420
|
-
"name": "
|
|
458
|
+
"name": "commitment",
|
|
421
459
|
"type": "uint256",
|
|
422
460
|
"internalType": "uint256"
|
|
423
461
|
},
|
|
424
462
|
{
|
|
425
|
-
"name": "
|
|
426
|
-
"type": "
|
|
427
|
-
"internalType": "
|
|
463
|
+
"name": "referrer",
|
|
464
|
+
"type": "address",
|
|
465
|
+
"internalType": "address"
|
|
428
466
|
},
|
|
429
467
|
{
|
|
430
468
|
"name": "salt",
|
|
@@ -439,162 +477,6 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
439
477
|
}],
|
|
440
478
|
"stateMutability": "pure"
|
|
441
479
|
},
|
|
442
|
-
{
|
|
443
|
-
"type": "function",
|
|
444
|
-
"name": "locked",
|
|
445
|
-
"inputs": [{
|
|
446
|
-
"name": "tokenId",
|
|
447
|
-
"type": "uint256",
|
|
448
|
-
"internalType": "uint256"
|
|
449
|
-
}],
|
|
450
|
-
"outputs": [{
|
|
451
|
-
"name": "",
|
|
452
|
-
"type": "bool",
|
|
453
|
-
"internalType": "bool"
|
|
454
|
-
}],
|
|
455
|
-
"stateMutability": "view"
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
"type": "function",
|
|
459
|
-
"name": "name",
|
|
460
|
-
"inputs": [],
|
|
461
|
-
"outputs": [{
|
|
462
|
-
"name": "",
|
|
463
|
-
"type": "string",
|
|
464
|
-
"internalType": "string"
|
|
465
|
-
}],
|
|
466
|
-
"stateMutability": "view"
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
"type": "function",
|
|
470
|
-
"name": "ownerOf",
|
|
471
|
-
"inputs": [{
|
|
472
|
-
"name": "tokenId",
|
|
473
|
-
"type": "uint256",
|
|
474
|
-
"internalType": "uint256"
|
|
475
|
-
}],
|
|
476
|
-
"outputs": [{
|
|
477
|
-
"name": "",
|
|
478
|
-
"type": "address",
|
|
479
|
-
"internalType": "address"
|
|
480
|
-
}],
|
|
481
|
-
"stateMutability": "view"
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
"type": "function",
|
|
485
|
-
"name": "planOf",
|
|
486
|
-
"inputs": [{
|
|
487
|
-
"name": "app_id",
|
|
488
|
-
"type": "bytes32",
|
|
489
|
-
"internalType": "bytes32"
|
|
490
|
-
}],
|
|
491
|
-
"outputs": [{
|
|
492
|
-
"name": "price",
|
|
493
|
-
"type": "uint256",
|
|
494
|
-
"internalType": "uint256"
|
|
495
|
-
}, {
|
|
496
|
-
"name": "period",
|
|
497
|
-
"type": "uint64",
|
|
498
|
-
"internalType": "uint64"
|
|
499
|
-
}],
|
|
500
|
-
"stateMutability": "view"
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
"type": "function",
|
|
504
|
-
"name": "proxiableUUID",
|
|
505
|
-
"inputs": [],
|
|
506
|
-
"outputs": [{
|
|
507
|
-
"name": "",
|
|
508
|
-
"type": "bytes32",
|
|
509
|
-
"internalType": "bytes32"
|
|
510
|
-
}],
|
|
511
|
-
"stateMutability": "view"
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
"type": "function",
|
|
515
|
-
"name": "renewSubscription",
|
|
516
|
-
"inputs": [{
|
|
517
|
-
"name": "",
|
|
518
|
-
"type": "uint256",
|
|
519
|
-
"internalType": "uint256"
|
|
520
|
-
}, {
|
|
521
|
-
"name": "",
|
|
522
|
-
"type": "uint64",
|
|
523
|
-
"internalType": "uint64"
|
|
524
|
-
}],
|
|
525
|
-
"outputs": [],
|
|
526
|
-
"stateMutability": "payable"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"type": "function",
|
|
530
|
-
"name": "safeTransferFrom",
|
|
531
|
-
"inputs": [
|
|
532
|
-
{
|
|
533
|
-
"name": "from",
|
|
534
|
-
"type": "address",
|
|
535
|
-
"internalType": "address"
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
"name": "to",
|
|
539
|
-
"type": "address",
|
|
540
|
-
"internalType": "address"
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"name": "tokenId",
|
|
544
|
-
"type": "uint256",
|
|
545
|
-
"internalType": "uint256"
|
|
546
|
-
}
|
|
547
|
-
],
|
|
548
|
-
"outputs": [],
|
|
549
|
-
"stateMutability": "nonpayable"
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
"type": "function",
|
|
553
|
-
"name": "safeTransferFrom",
|
|
554
|
-
"inputs": [
|
|
555
|
-
{
|
|
556
|
-
"name": "from",
|
|
557
|
-
"type": "address",
|
|
558
|
-
"internalType": "address"
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
"name": "to",
|
|
562
|
-
"type": "address",
|
|
563
|
-
"internalType": "address"
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
"name": "tokenId",
|
|
567
|
-
"type": "uint256",
|
|
568
|
-
"internalType": "uint256"
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
"name": "data",
|
|
572
|
-
"type": "bytes",
|
|
573
|
-
"internalType": "bytes"
|
|
574
|
-
}
|
|
575
|
-
],
|
|
576
|
-
"outputs": [],
|
|
577
|
-
"stateMutability": "nonpayable"
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
"type": "function",
|
|
581
|
-
"name": "scopeOf",
|
|
582
|
-
"inputs": [{
|
|
583
|
-
"name": "app_id",
|
|
584
|
-
"type": "bytes32",
|
|
585
|
-
"internalType": "bytes32"
|
|
586
|
-
}, {
|
|
587
|
-
"name": "epoch",
|
|
588
|
-
"type": "uint256",
|
|
589
|
-
"internalType": "uint256"
|
|
590
|
-
}],
|
|
591
|
-
"outputs": [{
|
|
592
|
-
"name": "",
|
|
593
|
-
"type": "uint256",
|
|
594
|
-
"internalType": "uint256"
|
|
595
|
-
}],
|
|
596
|
-
"stateMutability": "pure"
|
|
597
|
-
},
|
|
598
480
|
{
|
|
599
481
|
"type": "function",
|
|
600
482
|
"name": "semaphore",
|
|
@@ -619,13 +501,13 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
619
501
|
},
|
|
620
502
|
{
|
|
621
503
|
"type": "function",
|
|
622
|
-
"name": "
|
|
504
|
+
"name": "setDenied",
|
|
623
505
|
"inputs": [{
|
|
624
|
-
"name": "
|
|
506
|
+
"name": "referrer",
|
|
625
507
|
"type": "address",
|
|
626
508
|
"internalType": "address"
|
|
627
509
|
}, {
|
|
628
|
-
"name": "
|
|
510
|
+
"name": "denied",
|
|
629
511
|
"type": "bool",
|
|
630
512
|
"internalType": "bool"
|
|
631
513
|
}],
|
|
@@ -634,22 +516,27 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
634
516
|
},
|
|
635
517
|
{
|
|
636
518
|
"type": "function",
|
|
637
|
-
"name": "
|
|
519
|
+
"name": "setDisabled",
|
|
638
520
|
"inputs": [
|
|
639
521
|
{
|
|
640
|
-
"name": "
|
|
522
|
+
"name": "publisher",
|
|
523
|
+
"type": "address",
|
|
524
|
+
"internalType": "address"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "repo",
|
|
641
528
|
"type": "bytes32",
|
|
642
529
|
"internalType": "bytes32"
|
|
643
530
|
},
|
|
644
531
|
{
|
|
645
|
-
"name": "
|
|
646
|
-
"type": "
|
|
647
|
-
"internalType": "
|
|
532
|
+
"name": "key",
|
|
533
|
+
"type": "bytes32",
|
|
534
|
+
"internalType": "bytes32"
|
|
648
535
|
},
|
|
649
536
|
{
|
|
650
|
-
"name": "
|
|
651
|
-
"type": "
|
|
652
|
-
"internalType": "
|
|
537
|
+
"name": "disabled",
|
|
538
|
+
"type": "bool",
|
|
539
|
+
"internalType": "bool"
|
|
653
540
|
}
|
|
654
541
|
],
|
|
655
542
|
"outputs": [],
|
|
@@ -657,55 +544,37 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
657
544
|
},
|
|
658
545
|
{
|
|
659
546
|
"type": "function",
|
|
660
|
-
"name": "
|
|
547
|
+
"name": "settle",
|
|
661
548
|
"inputs": [
|
|
662
549
|
{
|
|
663
|
-
"name": "
|
|
664
|
-
"type": "
|
|
665
|
-
"internalType": "
|
|
550
|
+
"name": "subject",
|
|
551
|
+
"type": "bytes32",
|
|
552
|
+
"internalType": "bytes32"
|
|
666
553
|
},
|
|
667
554
|
{
|
|
668
|
-
"name": "
|
|
555
|
+
"name": "reader",
|
|
669
556
|
"type": "address",
|
|
670
557
|
"internalType": "address"
|
|
671
558
|
},
|
|
672
559
|
{
|
|
673
|
-
"name": "
|
|
674
|
-
"type": "uint64",
|
|
675
|
-
"internalType": "uint64"
|
|
676
|
-
}
|
|
677
|
-
],
|
|
678
|
-
"outputs": [],
|
|
679
|
-
"stateMutability": "nonpayable"
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
"type": "function",
|
|
683
|
-
"name": "setUserBySig",
|
|
684
|
-
"inputs": [
|
|
685
|
-
{
|
|
686
|
-
"name": "tokenId",
|
|
560
|
+
"name": "merkleTreeDepth",
|
|
687
561
|
"type": "uint256",
|
|
688
562
|
"internalType": "uint256"
|
|
689
563
|
},
|
|
690
564
|
{
|
|
691
|
-
"name": "
|
|
692
|
-
"type": "
|
|
693
|
-
"internalType": "
|
|
694
|
-
},
|
|
695
|
-
{
|
|
696
|
-
"name": "expires",
|
|
697
|
-
"type": "uint64",
|
|
698
|
-
"internalType": "uint64"
|
|
565
|
+
"name": "merkleTreeRoot",
|
|
566
|
+
"type": "uint256",
|
|
567
|
+
"internalType": "uint256"
|
|
699
568
|
},
|
|
700
569
|
{
|
|
701
|
-
"name": "
|
|
570
|
+
"name": "nullifier",
|
|
702
571
|
"type": "uint256",
|
|
703
572
|
"internalType": "uint256"
|
|
704
573
|
},
|
|
705
574
|
{
|
|
706
|
-
"name": "
|
|
707
|
-
"type": "
|
|
708
|
-
"internalType": "
|
|
575
|
+
"name": "points",
|
|
576
|
+
"type": "uint256[8]",
|
|
577
|
+
"internalType": "uint256[8]"
|
|
709
578
|
}
|
|
710
579
|
],
|
|
711
580
|
"outputs": [],
|
|
@@ -713,86 +582,30 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
713
582
|
},
|
|
714
583
|
{
|
|
715
584
|
"type": "function",
|
|
716
|
-
"name": "
|
|
717
|
-
"inputs": [{
|
|
718
|
-
"name": "id",
|
|
719
|
-
"type": "bytes4",
|
|
720
|
-
"internalType": "bytes4"
|
|
721
|
-
}],
|
|
722
|
-
"outputs": [{
|
|
723
|
-
"name": "",
|
|
724
|
-
"type": "bool",
|
|
725
|
-
"internalType": "bool"
|
|
726
|
-
}],
|
|
727
|
-
"stateMutability": "view"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
"type": "function",
|
|
731
|
-
"name": "symbol",
|
|
732
|
-
"inputs": [],
|
|
733
|
-
"outputs": [{
|
|
734
|
-
"name": "",
|
|
735
|
-
"type": "string",
|
|
736
|
-
"internalType": "string"
|
|
737
|
-
}],
|
|
738
|
-
"stateMutability": "view"
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
"type": "function",
|
|
742
|
-
"name": "tokenIdOf",
|
|
743
|
-
"inputs": [{
|
|
744
|
-
"name": "app_id",
|
|
745
|
-
"type": "bytes32",
|
|
746
|
-
"internalType": "bytes32"
|
|
747
|
-
}, {
|
|
748
|
-
"name": "holder",
|
|
749
|
-
"type": "address",
|
|
750
|
-
"internalType": "address"
|
|
751
|
-
}],
|
|
752
|
-
"outputs": [{
|
|
753
|
-
"name": "",
|
|
754
|
-
"type": "uint256",
|
|
755
|
-
"internalType": "uint256"
|
|
756
|
-
}],
|
|
757
|
-
"stateMutability": "pure"
|
|
758
|
-
},
|
|
759
|
-
{
|
|
760
|
-
"type": "function",
|
|
761
|
-
"name": "tokenURI",
|
|
762
|
-
"inputs": [{
|
|
763
|
-
"name": "tokenId",
|
|
764
|
-
"type": "uint256",
|
|
765
|
-
"internalType": "uint256"
|
|
766
|
-
}],
|
|
767
|
-
"outputs": [{
|
|
768
|
-
"name": "",
|
|
769
|
-
"type": "string",
|
|
770
|
-
"internalType": "string"
|
|
771
|
-
}],
|
|
772
|
-
"stateMutability": "view"
|
|
773
|
-
},
|
|
774
|
-
{
|
|
775
|
-
"type": "function",
|
|
776
|
-
"name": "transferFrom",
|
|
585
|
+
"name": "subjectOf",
|
|
777
586
|
"inputs": [
|
|
778
587
|
{
|
|
779
|
-
"name": "
|
|
588
|
+
"name": "publisher",
|
|
780
589
|
"type": "address",
|
|
781
590
|
"internalType": "address"
|
|
782
591
|
},
|
|
783
592
|
{
|
|
784
|
-
"name": "
|
|
785
|
-
"type": "
|
|
786
|
-
"internalType": "
|
|
593
|
+
"name": "repo",
|
|
594
|
+
"type": "bytes32",
|
|
595
|
+
"internalType": "bytes32"
|
|
787
596
|
},
|
|
788
597
|
{
|
|
789
|
-
"name": "
|
|
790
|
-
"type": "
|
|
791
|
-
"internalType": "
|
|
598
|
+
"name": "key",
|
|
599
|
+
"type": "bytes32",
|
|
600
|
+
"internalType": "bytes32"
|
|
792
601
|
}
|
|
793
602
|
],
|
|
794
|
-
"outputs": [
|
|
795
|
-
|
|
603
|
+
"outputs": [{
|
|
604
|
+
"name": "",
|
|
605
|
+
"type": "bytes32",
|
|
606
|
+
"internalType": "bytes32"
|
|
607
|
+
}],
|
|
608
|
+
"stateMutability": "pure"
|
|
796
609
|
},
|
|
797
610
|
{
|
|
798
611
|
"type": "function",
|
|
@@ -820,51 +633,6 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
820
633
|
}],
|
|
821
634
|
"stateMutability": "view"
|
|
822
635
|
},
|
|
823
|
-
{
|
|
824
|
-
"type": "function",
|
|
825
|
-
"name": "userExpires",
|
|
826
|
-
"inputs": [{
|
|
827
|
-
"name": "tokenId",
|
|
828
|
-
"type": "uint256",
|
|
829
|
-
"internalType": "uint256"
|
|
830
|
-
}],
|
|
831
|
-
"outputs": [{
|
|
832
|
-
"name": "",
|
|
833
|
-
"type": "uint256",
|
|
834
|
-
"internalType": "uint256"
|
|
835
|
-
}],
|
|
836
|
-
"stateMutability": "view"
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
"type": "function",
|
|
840
|
-
"name": "userNonces",
|
|
841
|
-
"inputs": [{
|
|
842
|
-
"name": "",
|
|
843
|
-
"type": "uint256",
|
|
844
|
-
"internalType": "uint256"
|
|
845
|
-
}],
|
|
846
|
-
"outputs": [{
|
|
847
|
-
"name": "",
|
|
848
|
-
"type": "uint256",
|
|
849
|
-
"internalType": "uint256"
|
|
850
|
-
}],
|
|
851
|
-
"stateMutability": "view"
|
|
852
|
-
},
|
|
853
|
-
{
|
|
854
|
-
"type": "function",
|
|
855
|
-
"name": "userOf",
|
|
856
|
-
"inputs": [{
|
|
857
|
-
"name": "tokenId",
|
|
858
|
-
"type": "uint256",
|
|
859
|
-
"internalType": "uint256"
|
|
860
|
-
}],
|
|
861
|
-
"outputs": [{
|
|
862
|
-
"name": "",
|
|
863
|
-
"type": "address",
|
|
864
|
-
"internalType": "address"
|
|
865
|
-
}],
|
|
866
|
-
"stateMutability": "view"
|
|
867
|
-
},
|
|
868
636
|
{
|
|
869
637
|
"type": "event",
|
|
870
638
|
"name": "AdminChanged",
|
|
@@ -883,47 +651,22 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
883
651
|
},
|
|
884
652
|
{
|
|
885
653
|
"type": "event",
|
|
886
|
-
"name": "
|
|
887
|
-
"inputs": [
|
|
888
|
-
{
|
|
889
|
-
"name": "owner",
|
|
890
|
-
"type": "address",
|
|
891
|
-
"indexed": true,
|
|
892
|
-
"internalType": "address"
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
"name": "approved",
|
|
896
|
-
"type": "address",
|
|
897
|
-
"indexed": true,
|
|
898
|
-
"internalType": "address"
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
"name": "tokenId",
|
|
902
|
-
"type": "uint256",
|
|
903
|
-
"indexed": true,
|
|
904
|
-
"internalType": "uint256"
|
|
905
|
-
}
|
|
906
|
-
],
|
|
907
|
-
"anonymous": false
|
|
908
|
-
},
|
|
909
|
-
{
|
|
910
|
-
"type": "event",
|
|
911
|
-
"name": "ApprovalForAll",
|
|
654
|
+
"name": "DenialSet",
|
|
912
655
|
"inputs": [
|
|
913
656
|
{
|
|
914
|
-
"name": "
|
|
657
|
+
"name": "publisher",
|
|
915
658
|
"type": "address",
|
|
916
659
|
"indexed": true,
|
|
917
660
|
"internalType": "address"
|
|
918
661
|
},
|
|
919
662
|
{
|
|
920
|
-
"name": "
|
|
663
|
+
"name": "referrer",
|
|
921
664
|
"type": "address",
|
|
922
665
|
"indexed": true,
|
|
923
666
|
"internalType": "address"
|
|
924
667
|
},
|
|
925
668
|
{
|
|
926
|
-
"name": "
|
|
669
|
+
"name": "denied",
|
|
927
670
|
"type": "bool",
|
|
928
671
|
"indexed": false,
|
|
929
672
|
"internalType": "bool"
|
|
@@ -933,28 +676,22 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
933
676
|
},
|
|
934
677
|
{
|
|
935
678
|
"type": "event",
|
|
936
|
-
"name": "
|
|
679
|
+
"name": "DisabledSet",
|
|
937
680
|
"inputs": [
|
|
938
681
|
{
|
|
939
|
-
"name": "
|
|
682
|
+
"name": "subject",
|
|
940
683
|
"type": "bytes32",
|
|
941
684
|
"indexed": true,
|
|
942
685
|
"internalType": "bytes32"
|
|
943
686
|
},
|
|
944
687
|
{
|
|
945
|
-
"name": "
|
|
946
|
-
"type": "
|
|
947
|
-
"indexed":
|
|
948
|
-
"internalType": "
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
"name": "tokenId",
|
|
952
|
-
"type": "uint256",
|
|
953
|
-
"indexed": true,
|
|
954
|
-
"internalType": "uint256"
|
|
688
|
+
"name": "disabled",
|
|
689
|
+
"type": "bool",
|
|
690
|
+
"indexed": false,
|
|
691
|
+
"internalType": "bool"
|
|
955
692
|
},
|
|
956
693
|
{
|
|
957
|
-
"name": "
|
|
694
|
+
"name": "by",
|
|
958
695
|
"type": "address",
|
|
959
696
|
"indexed": false,
|
|
960
697
|
"internalType": "address"
|
|
@@ -970,69 +707,22 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
970
707
|
},
|
|
971
708
|
{
|
|
972
709
|
"type": "event",
|
|
973
|
-
"name": "
|
|
974
|
-
"inputs": [{
|
|
975
|
-
"name": "version",
|
|
976
|
-
"type": "uint64",
|
|
977
|
-
"indexed": false,
|
|
978
|
-
"internalType": "uint64"
|
|
979
|
-
}],
|
|
980
|
-
"anonymous": false
|
|
981
|
-
},
|
|
982
|
-
{
|
|
983
|
-
"type": "event",
|
|
984
|
-
"name": "Joined",
|
|
710
|
+
"name": "GenerationRaised",
|
|
985
711
|
"inputs": [
|
|
986
712
|
{
|
|
987
|
-
"name": "
|
|
988
|
-
"type": "
|
|
989
|
-
"indexed": true,
|
|
990
|
-
"internalType": "bytes32"
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
"name": "epoch",
|
|
994
|
-
"type": "uint256",
|
|
713
|
+
"name": "publisher",
|
|
714
|
+
"type": "address",
|
|
995
715
|
"indexed": true,
|
|
996
|
-
"internalType": "
|
|
716
|
+
"internalType": "address"
|
|
997
717
|
},
|
|
998
718
|
{
|
|
999
|
-
"name": "
|
|
1000
|
-
"type": "uint256",
|
|
1001
|
-
"indexed": false,
|
|
1002
|
-
"internalType": "uint256"
|
|
1003
|
-
}
|
|
1004
|
-
],
|
|
1005
|
-
"anonymous": false
|
|
1006
|
-
},
|
|
1007
|
-
{
|
|
1008
|
-
"type": "event",
|
|
1009
|
-
"name": "Locked",
|
|
1010
|
-
"inputs": [{
|
|
1011
|
-
"name": "tokenId",
|
|
1012
|
-
"type": "uint256",
|
|
1013
|
-
"indexed": false,
|
|
1014
|
-
"internalType": "uint256"
|
|
1015
|
-
}],
|
|
1016
|
-
"anonymous": false
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
"type": "event",
|
|
1020
|
-
"name": "PlanSet",
|
|
1021
|
-
"inputs": [
|
|
1022
|
-
{
|
|
1023
|
-
"name": "app_id",
|
|
719
|
+
"name": "repo",
|
|
1024
720
|
"type": "bytes32",
|
|
1025
721
|
"indexed": true,
|
|
1026
722
|
"internalType": "bytes32"
|
|
1027
723
|
},
|
|
1028
724
|
{
|
|
1029
|
-
"name": "
|
|
1030
|
-
"type": "uint256",
|
|
1031
|
-
"indexed": false,
|
|
1032
|
-
"internalType": "uint256"
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
"name": "period",
|
|
725
|
+
"name": "generation",
|
|
1036
726
|
"type": "uint64",
|
|
1037
727
|
"indexed": false,
|
|
1038
728
|
"internalType": "uint64"
|
|
@@ -1042,14 +732,9 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
1042
732
|
},
|
|
1043
733
|
{
|
|
1044
734
|
"type": "event",
|
|
1045
|
-
"name": "
|
|
735
|
+
"name": "Initialized",
|
|
1046
736
|
"inputs": [{
|
|
1047
|
-
"name": "
|
|
1048
|
-
"type": "uint256",
|
|
1049
|
-
"indexed": true,
|
|
1050
|
-
"internalType": "uint256"
|
|
1051
|
-
}, {
|
|
1052
|
-
"name": "expiration",
|
|
737
|
+
"name": "version",
|
|
1053
738
|
"type": "uint64",
|
|
1054
739
|
"indexed": false,
|
|
1055
740
|
"internalType": "uint64"
|
|
@@ -1058,24 +743,42 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
1058
743
|
},
|
|
1059
744
|
{
|
|
1060
745
|
"type": "event",
|
|
1061
|
-
"name": "
|
|
746
|
+
"name": "Registered",
|
|
1062
747
|
"inputs": [
|
|
1063
748
|
{
|
|
1064
|
-
"name": "
|
|
749
|
+
"name": "subject",
|
|
750
|
+
"type": "bytes32",
|
|
751
|
+
"indexed": true,
|
|
752
|
+
"internalType": "bytes32"
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"name": "publisher",
|
|
1065
756
|
"type": "address",
|
|
1066
757
|
"indexed": true,
|
|
1067
758
|
"internalType": "address"
|
|
1068
759
|
},
|
|
1069
760
|
{
|
|
1070
|
-
"name": "
|
|
761
|
+
"name": "referrer",
|
|
1071
762
|
"type": "address",
|
|
1072
763
|
"indexed": true,
|
|
1073
764
|
"internalType": "address"
|
|
1074
765
|
},
|
|
1075
766
|
{
|
|
1076
|
-
"name": "
|
|
767
|
+
"name": "commitment",
|
|
1077
768
|
"type": "uint256",
|
|
1078
|
-
"indexed":
|
|
769
|
+
"indexed": false,
|
|
770
|
+
"internalType": "uint256"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"name": "price",
|
|
774
|
+
"type": "uint256",
|
|
775
|
+
"indexed": false,
|
|
776
|
+
"internalType": "uint256"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"name": "referrer_cut",
|
|
780
|
+
"type": "uint256",
|
|
781
|
+
"indexed": false,
|
|
1079
782
|
"internalType": "uint256"
|
|
1080
783
|
}
|
|
1081
784
|
],
|
|
@@ -1083,36 +786,25 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
1083
786
|
},
|
|
1084
787
|
{
|
|
1085
788
|
"type": "event",
|
|
1086
|
-
"name": "
|
|
1087
|
-
"inputs": [{
|
|
1088
|
-
"name": "tokenId",
|
|
1089
|
-
"type": "uint256",
|
|
1090
|
-
"indexed": false,
|
|
1091
|
-
"internalType": "uint256"
|
|
1092
|
-
}],
|
|
1093
|
-
"anonymous": false
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
"type": "event",
|
|
1097
|
-
"name": "UpdateUser",
|
|
789
|
+
"name": "Settled",
|
|
1098
790
|
"inputs": [
|
|
1099
791
|
{
|
|
1100
|
-
"name": "
|
|
1101
|
-
"type": "
|
|
792
|
+
"name": "subject",
|
|
793
|
+
"type": "bytes32",
|
|
1102
794
|
"indexed": true,
|
|
1103
|
-
"internalType": "
|
|
795
|
+
"internalType": "bytes32"
|
|
1104
796
|
},
|
|
1105
797
|
{
|
|
1106
|
-
"name": "
|
|
1107
|
-
"type": "
|
|
798
|
+
"name": "nullifier",
|
|
799
|
+
"type": "uint256",
|
|
1108
800
|
"indexed": true,
|
|
1109
|
-
"internalType": "
|
|
801
|
+
"internalType": "uint256"
|
|
1110
802
|
},
|
|
1111
803
|
{
|
|
1112
|
-
"name": "
|
|
1113
|
-
"type": "
|
|
804
|
+
"name": "reader",
|
|
805
|
+
"type": "address",
|
|
1114
806
|
"indexed": false,
|
|
1115
|
-
"internalType": "
|
|
807
|
+
"internalType": "address"
|
|
1116
808
|
}
|
|
1117
809
|
],
|
|
1118
810
|
"anonymous": false
|
|
@@ -1139,110 +831,42 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
1139
831
|
},
|
|
1140
832
|
{
|
|
1141
833
|
"type": "error",
|
|
1142
|
-
"name": "
|
|
834
|
+
"name": "AlreadyRegistered",
|
|
1143
835
|
"inputs": []
|
|
1144
836
|
},
|
|
1145
837
|
{
|
|
1146
838
|
"type": "error",
|
|
1147
|
-
"name": "
|
|
1148
|
-
"inputs": [{
|
|
1149
|
-
"name": "implementation",
|
|
1150
|
-
"type": "address",
|
|
1151
|
-
"internalType": "address"
|
|
1152
|
-
}]
|
|
1153
|
-
},
|
|
1154
|
-
{
|
|
1155
|
-
"type": "error",
|
|
1156
|
-
"name": "ERC1967NonPayable",
|
|
839
|
+
"name": "AlreadySettled",
|
|
1157
840
|
"inputs": []
|
|
1158
841
|
},
|
|
1159
842
|
{
|
|
1160
843
|
"type": "error",
|
|
1161
|
-
"name": "
|
|
1162
|
-
"inputs": [
|
|
1163
|
-
{
|
|
1164
|
-
"name": "sender",
|
|
1165
|
-
"type": "address",
|
|
1166
|
-
"internalType": "address"
|
|
1167
|
-
},
|
|
1168
|
-
{
|
|
1169
|
-
"name": "tokenId",
|
|
1170
|
-
"type": "uint256",
|
|
1171
|
-
"internalType": "uint256"
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
"name": "owner",
|
|
1175
|
-
"type": "address",
|
|
1176
|
-
"internalType": "address"
|
|
1177
|
-
}
|
|
1178
|
-
]
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
"type": "error",
|
|
1182
|
-
"name": "ERC721InsufficientApproval",
|
|
1183
|
-
"inputs": [{
|
|
1184
|
-
"name": "operator",
|
|
1185
|
-
"type": "address",
|
|
1186
|
-
"internalType": "address"
|
|
1187
|
-
}, {
|
|
1188
|
-
"name": "tokenId",
|
|
1189
|
-
"type": "uint256",
|
|
1190
|
-
"internalType": "uint256"
|
|
1191
|
-
}]
|
|
1192
|
-
},
|
|
1193
|
-
{
|
|
1194
|
-
"type": "error",
|
|
1195
|
-
"name": "ERC721InvalidApprover",
|
|
1196
|
-
"inputs": [{
|
|
1197
|
-
"name": "approver",
|
|
1198
|
-
"type": "address",
|
|
1199
|
-
"internalType": "address"
|
|
1200
|
-
}]
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
"type": "error",
|
|
1204
|
-
"name": "ERC721InvalidOperator",
|
|
1205
|
-
"inputs": [{
|
|
1206
|
-
"name": "operator",
|
|
1207
|
-
"type": "address",
|
|
1208
|
-
"internalType": "address"
|
|
1209
|
-
}]
|
|
844
|
+
"name": "BadShare",
|
|
845
|
+
"inputs": []
|
|
1210
846
|
},
|
|
1211
847
|
{
|
|
1212
848
|
"type": "error",
|
|
1213
|
-
"name": "
|
|
1214
|
-
"inputs": [
|
|
1215
|
-
"name": "owner",
|
|
1216
|
-
"type": "address",
|
|
1217
|
-
"internalType": "address"
|
|
1218
|
-
}]
|
|
849
|
+
"name": "BadSignature",
|
|
850
|
+
"inputs": []
|
|
1219
851
|
},
|
|
1220
852
|
{
|
|
1221
853
|
"type": "error",
|
|
1222
|
-
"name": "
|
|
1223
|
-
"inputs": [
|
|
1224
|
-
"name": "receiver",
|
|
1225
|
-
"type": "address",
|
|
1226
|
-
"internalType": "address"
|
|
1227
|
-
}]
|
|
854
|
+
"name": "Disabled",
|
|
855
|
+
"inputs": []
|
|
1228
856
|
},
|
|
1229
857
|
{
|
|
1230
858
|
"type": "error",
|
|
1231
|
-
"name": "
|
|
859
|
+
"name": "ERC1967InvalidImplementation",
|
|
1232
860
|
"inputs": [{
|
|
1233
|
-
"name": "
|
|
861
|
+
"name": "implementation",
|
|
1234
862
|
"type": "address",
|
|
1235
863
|
"internalType": "address"
|
|
1236
864
|
}]
|
|
1237
865
|
},
|
|
1238
866
|
{
|
|
1239
867
|
"type": "error",
|
|
1240
|
-
"name": "
|
|
1241
|
-
"inputs": [
|
|
1242
|
-
"name": "tokenId",
|
|
1243
|
-
"type": "uint256",
|
|
1244
|
-
"internalType": "uint256"
|
|
1245
|
-
}]
|
|
868
|
+
"name": "ERC1967NonPayable",
|
|
869
|
+
"inputs": []
|
|
1246
870
|
},
|
|
1247
871
|
{
|
|
1248
872
|
"type": "error",
|
|
@@ -1264,11 +888,6 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
1264
888
|
"name": "NoGroup",
|
|
1265
889
|
"inputs": []
|
|
1266
890
|
},
|
|
1267
|
-
{
|
|
1268
|
-
"type": "error",
|
|
1269
|
-
"name": "NoPlan",
|
|
1270
|
-
"inputs": []
|
|
1271
|
-
},
|
|
1272
891
|
{
|
|
1273
892
|
"type": "error",
|
|
1274
893
|
"name": "NonceNotBound",
|
|
@@ -1279,11 +898,6 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
1279
898
|
"name": "NotInitializing",
|
|
1280
899
|
"inputs": []
|
|
1281
900
|
},
|
|
1282
|
-
{
|
|
1283
|
-
"type": "error",
|
|
1284
|
-
"name": "NotTransferable",
|
|
1285
|
-
"inputs": []
|
|
1286
|
-
},
|
|
1287
901
|
{
|
|
1288
902
|
"type": "error",
|
|
1289
903
|
"name": "ReentrancyGuardReentrantCall",
|
|
@@ -1298,6 +912,11 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
1298
912
|
"internalType": "address"
|
|
1299
913
|
}]
|
|
1300
914
|
},
|
|
915
|
+
{
|
|
916
|
+
"type": "error",
|
|
917
|
+
"name": "StaleTerms",
|
|
918
|
+
"inputs": []
|
|
919
|
+
},
|
|
1301
920
|
{
|
|
1302
921
|
"type": "error",
|
|
1303
922
|
"name": "UUPSUnauthorizedCallContext",
|
|
@@ -1317,11 +936,6 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
1317
936
|
"name": "Unauthorized",
|
|
1318
937
|
"inputs": []
|
|
1319
938
|
},
|
|
1320
|
-
{
|
|
1321
|
-
"type": "error",
|
|
1322
|
-
"name": "UseJoinAndClaim",
|
|
1323
|
-
"inputs": []
|
|
1324
|
-
},
|
|
1325
939
|
{
|
|
1326
940
|
"type": "error",
|
|
1327
941
|
"name": "WrongAmount",
|
|
@@ -1330,4 +944,4 @@ const MEMBERSHIP_REGISTRY_ABI = [
|
|
|
1330
944
|
];
|
|
1331
945
|
|
|
1332
946
|
//#endregion
|
|
1333
|
-
export {
|
|
947
|
+
export { SETTLEMENT_REGISTRY_ABI };
|