@fangorn-network/sdk 2026.10.28 → 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 -658
- package/lib/cli/cli.js +30 -356
- package/lib/cli/index.d.ts +1 -4
- package/lib/cli/index.js +2 -20
- package/lib/config.d.ts +163 -226
- package/lib/config.js +8 -35
- package/lib/contracts/data-registry/abi.d.ts +206 -6
- package/lib/contracts/data-registry/abi.js +236 -7
- 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 -95
- package/lib/fangorn.js +106 -164
- 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 +5204 -5214
- 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 -1306
- package/lib/contracts/app-registry/abi.js +0 -1493
- package/lib/contracts/app-registry/index.d.ts +0 -200
- package/lib/contracts/app-registry/index.js +0 -325
- 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 -8
- package/lib/contracts/types.js +0 -10
- 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,9 +210,27 @@ 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: "
|
|
215
|
+
readonly name: "";
|
|
216
|
+
readonly type: "bytes32";
|
|
217
|
+
readonly internalType: "bytes32";
|
|
218
|
+
}];
|
|
219
|
+
readonly outputs: readonly [{
|
|
220
|
+
readonly name: "";
|
|
221
|
+
readonly type: "bool";
|
|
222
|
+
readonly internalType: "bool";
|
|
223
|
+
}];
|
|
224
|
+
readonly stateMutability: "view";
|
|
225
|
+
}, {
|
|
226
|
+
readonly type: "function";
|
|
227
|
+
readonly name: "isRegistered";
|
|
228
|
+
readonly inputs: readonly [{
|
|
229
|
+
readonly name: "subject";
|
|
230
|
+
readonly type: "bytes32";
|
|
231
|
+
readonly internalType: "bytes32";
|
|
232
|
+
}, {
|
|
233
|
+
readonly name: "commitment";
|
|
291
234
|
readonly type: "uint256";
|
|
292
235
|
readonly internalType: "uint256";
|
|
293
236
|
}];
|
|
@@ -299,15 +242,94 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
299
242
|
readonly stateMutability: "view";
|
|
300
243
|
}, {
|
|
301
244
|
readonly type: "function";
|
|
302
|
-
readonly name: "
|
|
245
|
+
readonly name: "isSettled";
|
|
303
246
|
readonly inputs: readonly [{
|
|
304
|
-
readonly name: "
|
|
247
|
+
readonly name: "reader";
|
|
248
|
+
readonly type: "address";
|
|
249
|
+
readonly internalType: "address";
|
|
250
|
+
}, {
|
|
251
|
+
readonly name: "subject";
|
|
305
252
|
readonly type: "bytes32";
|
|
306
253
|
readonly internalType: "bytes32";
|
|
254
|
+
}];
|
|
255
|
+
readonly outputs: readonly [{
|
|
256
|
+
readonly name: "";
|
|
257
|
+
readonly type: "bool";
|
|
258
|
+
readonly internalType: "bool";
|
|
259
|
+
}];
|
|
260
|
+
readonly stateMutability: "view";
|
|
261
|
+
}, {
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
readonly name: "proxiableUUID";
|
|
264
|
+
readonly inputs: readonly [];
|
|
265
|
+
readonly outputs: readonly [{
|
|
266
|
+
readonly name: "";
|
|
267
|
+
readonly type: "bytes32";
|
|
268
|
+
readonly internalType: "bytes32";
|
|
269
|
+
}];
|
|
270
|
+
readonly stateMutability: "view";
|
|
271
|
+
}, {
|
|
272
|
+
readonly type: "function";
|
|
273
|
+
readonly name: "raiseGeneration";
|
|
274
|
+
readonly inputs: readonly [{
|
|
275
|
+
readonly name: "repo";
|
|
276
|
+
readonly type: "bytes32";
|
|
277
|
+
readonly internalType: "bytes32";
|
|
278
|
+
}];
|
|
279
|
+
readonly outputs: readonly [{
|
|
280
|
+
readonly name: "generation";
|
|
281
|
+
readonly type: "uint64";
|
|
282
|
+
readonly internalType: "uint64";
|
|
283
|
+
}];
|
|
284
|
+
readonly stateMutability: "nonpayable";
|
|
285
|
+
}, {
|
|
286
|
+
readonly type: "function";
|
|
287
|
+
readonly name: "register";
|
|
288
|
+
readonly inputs: readonly [{
|
|
289
|
+
readonly name: "t";
|
|
290
|
+
readonly type: "tuple";
|
|
291
|
+
readonly internalType: "struct SettlementRegistry.Terms";
|
|
292
|
+
readonly components: readonly [{
|
|
293
|
+
readonly name: "publisher";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
readonly internalType: "address";
|
|
296
|
+
}, {
|
|
297
|
+
readonly name: "repo";
|
|
298
|
+
readonly type: "bytes32";
|
|
299
|
+
readonly internalType: "bytes32";
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "key";
|
|
302
|
+
readonly type: "bytes32";
|
|
303
|
+
readonly internalType: "bytes32";
|
|
304
|
+
}, {
|
|
305
|
+
readonly name: "price";
|
|
306
|
+
readonly type: "uint256";
|
|
307
|
+
readonly internalType: "uint256";
|
|
308
|
+
}, {
|
|
309
|
+
readonly name: "shareBps";
|
|
310
|
+
readonly type: "uint16";
|
|
311
|
+
readonly internalType: "uint16";
|
|
312
|
+
}, {
|
|
313
|
+
readonly name: "generation";
|
|
314
|
+
readonly type: "uint64";
|
|
315
|
+
readonly internalType: "uint64";
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "deadline";
|
|
318
|
+
readonly type: "uint64";
|
|
319
|
+
readonly internalType: "uint64";
|
|
320
|
+
}];
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "signature";
|
|
323
|
+
readonly type: "bytes";
|
|
324
|
+
readonly internalType: "bytes";
|
|
307
325
|
}, {
|
|
308
326
|
readonly name: "commitment";
|
|
309
327
|
readonly type: "uint256";
|
|
310
328
|
readonly internalType: "uint256";
|
|
329
|
+
}, {
|
|
330
|
+
readonly name: "referrer";
|
|
331
|
+
readonly type: "address";
|
|
332
|
+
readonly internalType: "address";
|
|
311
333
|
}, {
|
|
312
334
|
readonly name: "salt";
|
|
313
335
|
readonly type: "bytes32";
|
|
@@ -315,7 +337,7 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
315
337
|
}, {
|
|
316
338
|
readonly name: "pay";
|
|
317
339
|
readonly type: "tuple";
|
|
318
|
-
readonly internalType: "struct
|
|
340
|
+
readonly internalType: "struct SettlementRegistry.Payment";
|
|
319
341
|
readonly components: readonly [{
|
|
320
342
|
readonly name: "from";
|
|
321
343
|
readonly type: "address";
|
|
@@ -350,170 +372,36 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
350
372
|
readonly internalType: "bytes32";
|
|
351
373
|
}];
|
|
352
374
|
}];
|
|
353
|
-
readonly outputs: readonly [];
|
|
354
|
-
readonly stateMutability: "nonpayable";
|
|
355
|
-
}, {
|
|
356
|
-
readonly type: "function";
|
|
357
|
-
readonly name: "joinNonce";
|
|
358
|
-
readonly inputs: readonly [{
|
|
359
|
-
readonly name: "app_id";
|
|
360
|
-
readonly type: "bytes32";
|
|
361
|
-
readonly internalType: "bytes32";
|
|
362
|
-
}, {
|
|
363
|
-
readonly name: "epoch";
|
|
364
|
-
readonly type: "uint256";
|
|
365
|
-
readonly internalType: "uint256";
|
|
366
|
-
}, {
|
|
367
|
-
readonly name: "commitment";
|
|
368
|
-
readonly type: "uint256";
|
|
369
|
-
readonly internalType: "uint256";
|
|
370
|
-
}, {
|
|
371
|
-
readonly name: "salt";
|
|
372
|
-
readonly type: "bytes32";
|
|
373
|
-
readonly internalType: "bytes32";
|
|
374
|
-
}];
|
|
375
375
|
readonly outputs: readonly [{
|
|
376
|
-
readonly name: "";
|
|
376
|
+
readonly name: "subject";
|
|
377
377
|
readonly type: "bytes32";
|
|
378
378
|
readonly internalType: "bytes32";
|
|
379
379
|
}];
|
|
380
|
-
readonly stateMutability: "
|
|
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
|
-
}];
|
|
389
|
-
readonly outputs: readonly [{
|
|
390
|
-
readonly name: "";
|
|
391
|
-
readonly type: "bool";
|
|
392
|
-
readonly internalType: "bool";
|
|
393
|
-
}];
|
|
394
|
-
readonly stateMutability: "view";
|
|
395
|
-
}, {
|
|
396
|
-
readonly type: "function";
|
|
397
|
-
readonly name: "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";
|
|
408
|
-
readonly inputs: readonly [{
|
|
409
|
-
readonly name: "tokenId";
|
|
410
|
-
readonly type: "uint256";
|
|
411
|
-
readonly internalType: "uint256";
|
|
412
|
-
}];
|
|
413
|
-
readonly outputs: readonly [{
|
|
414
|
-
readonly name: "";
|
|
415
|
-
readonly type: "address";
|
|
416
|
-
readonly internalType: "address";
|
|
417
|
-
}];
|
|
418
|
-
readonly stateMutability: "view";
|
|
380
|
+
readonly stateMutability: "nonpayable";
|
|
419
381
|
}, {
|
|
420
382
|
readonly type: "function";
|
|
421
|
-
readonly name: "
|
|
383
|
+
readonly name: "registerNonce";
|
|
422
384
|
readonly inputs: readonly [{
|
|
423
|
-
readonly name: "
|
|
424
|
-
readonly type: "bytes32";
|
|
425
|
-
readonly internalType: "bytes32";
|
|
426
|
-
}];
|
|
427
|
-
readonly outputs: readonly [{
|
|
428
|
-
readonly name: "price";
|
|
429
|
-
readonly type: "uint256";
|
|
430
|
-
readonly internalType: "uint256";
|
|
431
|
-
}, {
|
|
432
|
-
readonly name: "period";
|
|
433
|
-
readonly type: "uint64";
|
|
434
|
-
readonly internalType: "uint64";
|
|
435
|
-
}];
|
|
436
|
-
readonly stateMutability: "view";
|
|
437
|
-
}, {
|
|
438
|
-
readonly type: "function";
|
|
439
|
-
readonly name: "proxiableUUID";
|
|
440
|
-
readonly inputs: readonly [];
|
|
441
|
-
readonly outputs: readonly [{
|
|
442
|
-
readonly name: "";
|
|
385
|
+
readonly name: "subject";
|
|
443
386
|
readonly type: "bytes32";
|
|
444
387
|
readonly internalType: "bytes32";
|
|
445
|
-
}];
|
|
446
|
-
readonly stateMutability: "view";
|
|
447
|
-
}, {
|
|
448
|
-
readonly type: "function";
|
|
449
|
-
readonly name: "renewSubscription";
|
|
450
|
-
readonly inputs: readonly [{
|
|
451
|
-
readonly name: "";
|
|
452
|
-
readonly type: "uint256";
|
|
453
|
-
readonly internalType: "uint256";
|
|
454
388
|
}, {
|
|
455
|
-
readonly name: "";
|
|
456
|
-
readonly type: "uint64";
|
|
457
|
-
readonly internalType: "uint64";
|
|
458
|
-
}];
|
|
459
|
-
readonly outputs: readonly [];
|
|
460
|
-
readonly stateMutability: "payable";
|
|
461
|
-
}, {
|
|
462
|
-
readonly type: "function";
|
|
463
|
-
readonly name: "safeTransferFrom";
|
|
464
|
-
readonly inputs: readonly [{
|
|
465
|
-
readonly name: "from";
|
|
466
|
-
readonly type: "address";
|
|
467
|
-
readonly internalType: "address";
|
|
468
|
-
}, {
|
|
469
|
-
readonly name: "to";
|
|
470
|
-
readonly type: "address";
|
|
471
|
-
readonly internalType: "address";
|
|
472
|
-
}, {
|
|
473
|
-
readonly name: "tokenId";
|
|
389
|
+
readonly name: "commitment";
|
|
474
390
|
readonly type: "uint256";
|
|
475
391
|
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
392
|
}, {
|
|
487
|
-
readonly name: "
|
|
393
|
+
readonly name: "referrer";
|
|
488
394
|
readonly type: "address";
|
|
489
395
|
readonly internalType: "address";
|
|
490
396
|
}, {
|
|
491
|
-
readonly name: "
|
|
492
|
-
readonly type: "uint256";
|
|
493
|
-
readonly internalType: "uint256";
|
|
494
|
-
}, {
|
|
495
|
-
readonly name: "data";
|
|
496
|
-
readonly type: "bytes";
|
|
497
|
-
readonly internalType: "bytes";
|
|
498
|
-
}];
|
|
499
|
-
readonly outputs: readonly [];
|
|
500
|
-
readonly stateMutability: "nonpayable";
|
|
501
|
-
}, {
|
|
502
|
-
readonly type: "function";
|
|
503
|
-
readonly name: "scopeOf";
|
|
504
|
-
readonly inputs: readonly [{
|
|
505
|
-
readonly name: "app_id";
|
|
397
|
+
readonly name: "salt";
|
|
506
398
|
readonly type: "bytes32";
|
|
507
399
|
readonly internalType: "bytes32";
|
|
508
|
-
}, {
|
|
509
|
-
readonly name: "epoch";
|
|
510
|
-
readonly type: "uint256";
|
|
511
|
-
readonly internalType: "uint256";
|
|
512
400
|
}];
|
|
513
401
|
readonly outputs: readonly [{
|
|
514
402
|
readonly name: "";
|
|
515
|
-
readonly type: "
|
|
516
|
-
readonly internalType: "
|
|
403
|
+
readonly type: "bytes32";
|
|
404
|
+
readonly internalType: "bytes32";
|
|
517
405
|
}];
|
|
518
406
|
readonly stateMutability: "pure";
|
|
519
407
|
}, {
|
|
@@ -538,13 +426,13 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
538
426
|
readonly stateMutability: "nonpayable";
|
|
539
427
|
}, {
|
|
540
428
|
readonly type: "function";
|
|
541
|
-
readonly name: "
|
|
429
|
+
readonly name: "setDenied";
|
|
542
430
|
readonly inputs: readonly [{
|
|
543
|
-
readonly name: "
|
|
431
|
+
readonly name: "referrer";
|
|
544
432
|
readonly type: "address";
|
|
545
433
|
readonly internalType: "address";
|
|
546
434
|
}, {
|
|
547
|
-
readonly name: "
|
|
435
|
+
readonly name: "denied";
|
|
548
436
|
readonly type: "bool";
|
|
549
437
|
readonly internalType: "bool";
|
|
550
438
|
}];
|
|
@@ -552,140 +440,78 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
552
440
|
readonly stateMutability: "nonpayable";
|
|
553
441
|
}, {
|
|
554
442
|
readonly type: "function";
|
|
555
|
-
readonly name: "
|
|
443
|
+
readonly name: "setDisabled";
|
|
556
444
|
readonly inputs: readonly [{
|
|
557
|
-
readonly name: "
|
|
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";
|
|
574
|
-
readonly inputs: readonly [{
|
|
575
|
-
readonly name: "tokenId";
|
|
576
|
-
readonly type: "uint256";
|
|
577
|
-
readonly internalType: "uint256";
|
|
578
|
-
}, {
|
|
579
|
-
readonly name: "user";
|
|
580
|
-
readonly type: "address";
|
|
581
|
-
readonly internalType: "address";
|
|
582
|
-
}, {
|
|
583
|
-
readonly name: "expires";
|
|
584
|
-
readonly type: "uint64";
|
|
585
|
-
readonly internalType: "uint64";
|
|
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";
|
|
445
|
+
readonly name: "publisher";
|
|
598
446
|
readonly type: "address";
|
|
599
447
|
readonly internalType: "address";
|
|
600
448
|
}, {
|
|
601
|
-
readonly name: "
|
|
602
|
-
readonly type: "
|
|
603
|
-
readonly internalType: "
|
|
449
|
+
readonly name: "repo";
|
|
450
|
+
readonly type: "bytes32";
|
|
451
|
+
readonly internalType: "bytes32";
|
|
604
452
|
}, {
|
|
605
|
-
readonly name: "
|
|
606
|
-
readonly type: "
|
|
607
|
-
readonly internalType: "
|
|
453
|
+
readonly name: "key";
|
|
454
|
+
readonly type: "bytes32";
|
|
455
|
+
readonly internalType: "bytes32";
|
|
608
456
|
}, {
|
|
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: "";
|
|
457
|
+
readonly name: "disabled";
|
|
625
458
|
readonly type: "bool";
|
|
626
459
|
readonly internalType: "bool";
|
|
627
460
|
}];
|
|
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";
|
|
461
|
+
readonly outputs: readonly [];
|
|
462
|
+
readonly stateMutability: "nonpayable";
|
|
639
463
|
}, {
|
|
640
464
|
readonly type: "function";
|
|
641
|
-
readonly name: "
|
|
465
|
+
readonly name: "settle";
|
|
642
466
|
readonly inputs: readonly [{
|
|
643
|
-
readonly name: "
|
|
467
|
+
readonly name: "subject";
|
|
644
468
|
readonly type: "bytes32";
|
|
645
469
|
readonly internalType: "bytes32";
|
|
646
470
|
}, {
|
|
647
|
-
readonly name: "
|
|
471
|
+
readonly name: "reader";
|
|
648
472
|
readonly type: "address";
|
|
649
473
|
readonly internalType: "address";
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
readonly name: "";
|
|
474
|
+
}, {
|
|
475
|
+
readonly name: "merkleTreeDepth";
|
|
653
476
|
readonly type: "uint256";
|
|
654
477
|
readonly internalType: "uint256";
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
}, {
|
|
658
|
-
readonly type: "function";
|
|
659
|
-
readonly name: "tokenURI";
|
|
660
|
-
readonly inputs: readonly [{
|
|
661
|
-
readonly name: "tokenId";
|
|
478
|
+
}, {
|
|
479
|
+
readonly name: "merkleTreeRoot";
|
|
662
480
|
readonly type: "uint256";
|
|
663
481
|
readonly internalType: "uint256";
|
|
482
|
+
}, {
|
|
483
|
+
readonly name: "nullifier";
|
|
484
|
+
readonly type: "uint256";
|
|
485
|
+
readonly internalType: "uint256";
|
|
486
|
+
}, {
|
|
487
|
+
readonly name: "points";
|
|
488
|
+
readonly type: "uint256[8]";
|
|
489
|
+
readonly internalType: "uint256[8]";
|
|
664
490
|
}];
|
|
665
|
-
readonly outputs: readonly [
|
|
666
|
-
|
|
667
|
-
readonly type: "string";
|
|
668
|
-
readonly internalType: "string";
|
|
669
|
-
}];
|
|
670
|
-
readonly stateMutability: "view";
|
|
491
|
+
readonly outputs: readonly [];
|
|
492
|
+
readonly stateMutability: "nonpayable";
|
|
671
493
|
}, {
|
|
672
494
|
readonly type: "function";
|
|
673
|
-
readonly name: "
|
|
495
|
+
readonly name: "subjectOf";
|
|
674
496
|
readonly inputs: readonly [{
|
|
675
|
-
readonly name: "
|
|
497
|
+
readonly name: "publisher";
|
|
676
498
|
readonly type: "address";
|
|
677
499
|
readonly internalType: "address";
|
|
678
500
|
}, {
|
|
679
|
-
readonly name: "
|
|
680
|
-
readonly type: "
|
|
681
|
-
readonly internalType: "
|
|
501
|
+
readonly name: "repo";
|
|
502
|
+
readonly type: "bytes32";
|
|
503
|
+
readonly internalType: "bytes32";
|
|
682
504
|
}, {
|
|
683
|
-
readonly name: "
|
|
684
|
-
readonly type: "
|
|
685
|
-
readonly internalType: "
|
|
505
|
+
readonly name: "key";
|
|
506
|
+
readonly type: "bytes32";
|
|
507
|
+
readonly internalType: "bytes32";
|
|
686
508
|
}];
|
|
687
|
-
readonly outputs: readonly [
|
|
688
|
-
|
|
509
|
+
readonly outputs: readonly [{
|
|
510
|
+
readonly name: "";
|
|
511
|
+
readonly type: "bytes32";
|
|
512
|
+
readonly internalType: "bytes32";
|
|
513
|
+
}];
|
|
514
|
+
readonly stateMutability: "pure";
|
|
689
515
|
}, {
|
|
690
516
|
readonly type: "function";
|
|
691
517
|
readonly name: "upgradeToAndCall";
|
|
@@ -710,48 +536,6 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
710
536
|
readonly internalType: "address";
|
|
711
537
|
}];
|
|
712
538
|
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
539
|
}, {
|
|
756
540
|
readonly type: "event";
|
|
757
541
|
readonly name: "AdminChanged";
|
|
@@ -769,39 +553,19 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
769
553
|
readonly anonymous: false;
|
|
770
554
|
}, {
|
|
771
555
|
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";
|
|
556
|
+
readonly name: "DenialSet";
|
|
793
557
|
readonly inputs: readonly [{
|
|
794
|
-
readonly name: "
|
|
558
|
+
readonly name: "publisher";
|
|
795
559
|
readonly type: "address";
|
|
796
560
|
readonly indexed: true;
|
|
797
561
|
readonly internalType: "address";
|
|
798
562
|
}, {
|
|
799
|
-
readonly name: "
|
|
563
|
+
readonly name: "referrer";
|
|
800
564
|
readonly type: "address";
|
|
801
565
|
readonly indexed: true;
|
|
802
566
|
readonly internalType: "address";
|
|
803
567
|
}, {
|
|
804
|
-
readonly name: "
|
|
568
|
+
readonly name: "denied";
|
|
805
569
|
readonly type: "bool";
|
|
806
570
|
readonly indexed: false;
|
|
807
571
|
readonly internalType: "bool";
|
|
@@ -809,24 +573,19 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
809
573
|
readonly anonymous: false;
|
|
810
574
|
}, {
|
|
811
575
|
readonly type: "event";
|
|
812
|
-
readonly name: "
|
|
576
|
+
readonly name: "DisabledSet";
|
|
813
577
|
readonly inputs: readonly [{
|
|
814
|
-
readonly name: "
|
|
578
|
+
readonly name: "subject";
|
|
815
579
|
readonly type: "bytes32";
|
|
816
580
|
readonly indexed: true;
|
|
817
581
|
readonly internalType: "bytes32";
|
|
818
582
|
}, {
|
|
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";
|
|
583
|
+
readonly name: "disabled";
|
|
584
|
+
readonly type: "bool";
|
|
585
|
+
readonly indexed: false;
|
|
586
|
+
readonly internalType: "bool";
|
|
828
587
|
}, {
|
|
829
|
-
readonly name: "
|
|
588
|
+
readonly name: "by";
|
|
830
589
|
readonly type: "address";
|
|
831
590
|
readonly indexed: false;
|
|
832
591
|
readonly internalType: "address";
|
|
@@ -839,59 +598,19 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
839
598
|
readonly anonymous: false;
|
|
840
599
|
}, {
|
|
841
600
|
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";
|
|
601
|
+
readonly name: "GenerationRaised";
|
|
853
602
|
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";
|
|
603
|
+
readonly name: "publisher";
|
|
604
|
+
readonly type: "address";
|
|
861
605
|
readonly indexed: true;
|
|
862
|
-
readonly internalType: "
|
|
606
|
+
readonly internalType: "address";
|
|
863
607
|
}, {
|
|
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";
|
|
608
|
+
readonly name: "repo";
|
|
885
609
|
readonly type: "bytes32";
|
|
886
610
|
readonly indexed: true;
|
|
887
611
|
readonly internalType: "bytes32";
|
|
888
612
|
}, {
|
|
889
|
-
readonly name: "
|
|
890
|
-
readonly type: "uint256";
|
|
891
|
-
readonly indexed: false;
|
|
892
|
-
readonly internalType: "uint256";
|
|
893
|
-
}, {
|
|
894
|
-
readonly name: "period";
|
|
613
|
+
readonly name: "generation";
|
|
895
614
|
readonly type: "uint64";
|
|
896
615
|
readonly indexed: false;
|
|
897
616
|
readonly internalType: "uint64";
|
|
@@ -899,14 +618,9 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
899
618
|
readonly anonymous: false;
|
|
900
619
|
}, {
|
|
901
620
|
readonly type: "event";
|
|
902
|
-
readonly name: "
|
|
621
|
+
readonly name: "Initialized";
|
|
903
622
|
readonly inputs: readonly [{
|
|
904
|
-
readonly name: "
|
|
905
|
-
readonly type: "uint256";
|
|
906
|
-
readonly indexed: true;
|
|
907
|
-
readonly internalType: "uint256";
|
|
908
|
-
}, {
|
|
909
|
-
readonly name: "expiration";
|
|
623
|
+
readonly name: "version";
|
|
910
624
|
readonly type: "uint64";
|
|
911
625
|
readonly indexed: false;
|
|
912
626
|
readonly internalType: "uint64";
|
|
@@ -914,29 +628,34 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
914
628
|
readonly anonymous: false;
|
|
915
629
|
}, {
|
|
916
630
|
readonly type: "event";
|
|
917
|
-
readonly name: "
|
|
631
|
+
readonly name: "Registered";
|
|
918
632
|
readonly inputs: readonly [{
|
|
919
|
-
readonly name: "
|
|
633
|
+
readonly name: "subject";
|
|
634
|
+
readonly type: "bytes32";
|
|
635
|
+
readonly indexed: true;
|
|
636
|
+
readonly internalType: "bytes32";
|
|
637
|
+
}, {
|
|
638
|
+
readonly name: "publisher";
|
|
920
639
|
readonly type: "address";
|
|
921
640
|
readonly indexed: true;
|
|
922
641
|
readonly internalType: "address";
|
|
923
642
|
}, {
|
|
924
|
-
readonly name: "
|
|
643
|
+
readonly name: "referrer";
|
|
925
644
|
readonly type: "address";
|
|
926
645
|
readonly indexed: true;
|
|
927
646
|
readonly internalType: "address";
|
|
928
647
|
}, {
|
|
929
|
-
readonly name: "
|
|
648
|
+
readonly name: "commitment";
|
|
930
649
|
readonly type: "uint256";
|
|
931
|
-
readonly indexed:
|
|
650
|
+
readonly indexed: false;
|
|
932
651
|
readonly internalType: "uint256";
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
readonly name: "
|
|
652
|
+
}, {
|
|
653
|
+
readonly name: "price";
|
|
654
|
+
readonly type: "uint256";
|
|
655
|
+
readonly indexed: false;
|
|
656
|
+
readonly internalType: "uint256";
|
|
657
|
+
}, {
|
|
658
|
+
readonly name: "referrer_cut";
|
|
940
659
|
readonly type: "uint256";
|
|
941
660
|
readonly indexed: false;
|
|
942
661
|
readonly internalType: "uint256";
|
|
@@ -944,22 +663,22 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
944
663
|
readonly anonymous: false;
|
|
945
664
|
}, {
|
|
946
665
|
readonly type: "event";
|
|
947
|
-
readonly name: "
|
|
666
|
+
readonly name: "Settled";
|
|
948
667
|
readonly inputs: readonly [{
|
|
949
|
-
readonly name: "
|
|
668
|
+
readonly name: "subject";
|
|
669
|
+
readonly type: "bytes32";
|
|
670
|
+
readonly indexed: true;
|
|
671
|
+
readonly internalType: "bytes32";
|
|
672
|
+
}, {
|
|
673
|
+
readonly name: "nullifier";
|
|
950
674
|
readonly type: "uint256";
|
|
951
675
|
readonly indexed: true;
|
|
952
676
|
readonly internalType: "uint256";
|
|
953
677
|
}, {
|
|
954
|
-
readonly name: "
|
|
678
|
+
readonly name: "reader";
|
|
955
679
|
readonly type: "address";
|
|
956
|
-
readonly indexed: true;
|
|
957
|
-
readonly internalType: "address";
|
|
958
|
-
}, {
|
|
959
|
-
readonly name: "expires";
|
|
960
|
-
readonly type: "uint64";
|
|
961
680
|
readonly indexed: false;
|
|
962
|
-
readonly internalType: "
|
|
681
|
+
readonly internalType: "address";
|
|
963
682
|
}];
|
|
964
683
|
readonly anonymous: false;
|
|
965
684
|
}, {
|
|
@@ -982,96 +701,36 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
982
701
|
}];
|
|
983
702
|
}, {
|
|
984
703
|
readonly type: "error";
|
|
985
|
-
readonly name: "
|
|
704
|
+
readonly name: "AlreadyRegistered";
|
|
986
705
|
readonly inputs: readonly [];
|
|
987
706
|
}, {
|
|
988
707
|
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";
|
|
708
|
+
readonly name: "AlreadySettled";
|
|
998
709
|
readonly inputs: readonly [];
|
|
999
710
|
}, {
|
|
1000
711
|
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
|
-
}];
|
|
712
|
+
readonly name: "BadShare";
|
|
713
|
+
readonly inputs: readonly [];
|
|
1043
714
|
}, {
|
|
1044
715
|
readonly type: "error";
|
|
1045
|
-
readonly name: "
|
|
1046
|
-
readonly inputs: readonly [
|
|
1047
|
-
readonly name: "owner";
|
|
1048
|
-
readonly type: "address";
|
|
1049
|
-
readonly internalType: "address";
|
|
1050
|
-
}];
|
|
716
|
+
readonly name: "BadSignature";
|
|
717
|
+
readonly inputs: readonly [];
|
|
1051
718
|
}, {
|
|
1052
719
|
readonly type: "error";
|
|
1053
|
-
readonly name: "
|
|
1054
|
-
readonly inputs: readonly [
|
|
1055
|
-
readonly name: "receiver";
|
|
1056
|
-
readonly type: "address";
|
|
1057
|
-
readonly internalType: "address";
|
|
1058
|
-
}];
|
|
720
|
+
readonly name: "Disabled";
|
|
721
|
+
readonly inputs: readonly [];
|
|
1059
722
|
}, {
|
|
1060
723
|
readonly type: "error";
|
|
1061
|
-
readonly name: "
|
|
724
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
1062
725
|
readonly inputs: readonly [{
|
|
1063
|
-
readonly name: "
|
|
726
|
+
readonly name: "implementation";
|
|
1064
727
|
readonly type: "address";
|
|
1065
728
|
readonly internalType: "address";
|
|
1066
729
|
}];
|
|
1067
730
|
}, {
|
|
1068
731
|
readonly type: "error";
|
|
1069
|
-
readonly name: "
|
|
1070
|
-
readonly inputs: readonly [
|
|
1071
|
-
readonly name: "tokenId";
|
|
1072
|
-
readonly type: "uint256";
|
|
1073
|
-
readonly internalType: "uint256";
|
|
1074
|
-
}];
|
|
732
|
+
readonly name: "ERC1967NonPayable";
|
|
733
|
+
readonly inputs: readonly [];
|
|
1075
734
|
}, {
|
|
1076
735
|
readonly type: "error";
|
|
1077
736
|
readonly name: "Expired";
|
|
@@ -1088,10 +747,6 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
1088
747
|
readonly type: "error";
|
|
1089
748
|
readonly name: "NoGroup";
|
|
1090
749
|
readonly inputs: readonly [];
|
|
1091
|
-
}, {
|
|
1092
|
-
readonly type: "error";
|
|
1093
|
-
readonly name: "NoPlan";
|
|
1094
|
-
readonly inputs: readonly [];
|
|
1095
750
|
}, {
|
|
1096
751
|
readonly type: "error";
|
|
1097
752
|
readonly name: "NonceNotBound";
|
|
@@ -1100,10 +755,6 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
1100
755
|
readonly type: "error";
|
|
1101
756
|
readonly name: "NotInitializing";
|
|
1102
757
|
readonly inputs: readonly [];
|
|
1103
|
-
}, {
|
|
1104
|
-
readonly type: "error";
|
|
1105
|
-
readonly name: "NotTransferable";
|
|
1106
|
-
readonly inputs: readonly [];
|
|
1107
758
|
}, {
|
|
1108
759
|
readonly type: "error";
|
|
1109
760
|
readonly name: "ReentrancyGuardReentrantCall";
|
|
@@ -1116,6 +767,10 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
1116
767
|
readonly type: "address";
|
|
1117
768
|
readonly internalType: "address";
|
|
1118
769
|
}];
|
|
770
|
+
}, {
|
|
771
|
+
readonly type: "error";
|
|
772
|
+
readonly name: "StaleTerms";
|
|
773
|
+
readonly inputs: readonly [];
|
|
1119
774
|
}, {
|
|
1120
775
|
readonly type: "error";
|
|
1121
776
|
readonly name: "UUPSUnauthorizedCallContext";
|
|
@@ -1132,14 +787,10 @@ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
|
|
|
1132
787
|
readonly type: "error";
|
|
1133
788
|
readonly name: "Unauthorized";
|
|
1134
789
|
readonly inputs: readonly [];
|
|
1135
|
-
}, {
|
|
1136
|
-
readonly type: "error";
|
|
1137
|
-
readonly name: "UseJoinAndClaim";
|
|
1138
|
-
readonly inputs: readonly [];
|
|
1139
790
|
}, {
|
|
1140
791
|
readonly type: "error";
|
|
1141
792
|
readonly name: "WrongAmount";
|
|
1142
793
|
readonly inputs: readonly [];
|
|
1143
794
|
}];
|
|
1144
795
|
//#endregion
|
|
1145
|
-
export {
|
|
796
|
+
export { SETTLEMENT_REGISTRY_ABI };
|