@fangorn-network/sdk 0.1.0-dev → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli/cli.js +328 -128
- package/lib/cli/index.d.ts +4 -1
- package/lib/cli/index.js +20 -2
- package/lib/config.d.ts +111 -48
- package/lib/config.js +39 -11
- package/lib/contracts/app-registry/abi.d.ts +1265 -0
- package/lib/contracts/app-registry/abi.js +1454 -0
- package/lib/contracts/app-registry/index.d.ts +161 -0
- package/lib/contracts/app-registry/index.js +274 -0
- package/lib/contracts/data-registry/abi.d.ts +19 -195
- package/lib/contracts/data-registry/abi.js +206 -409
- package/lib/contracts/data-registry/index.d.ts +2 -126
- package/lib/contracts/data-registry/index.js +1 -174
- package/lib/contracts/index.d.ts +7 -4
- package/lib/contracts/index.js +7 -4
- package/lib/contracts/logs.d.ts +1 -1
- package/lib/contracts/logs.js +1 -1
- package/lib/contracts/{settlement-registry → membership-registry}/abi.d.ts +636 -301
- package/lib/contracts/membership-registry/abi.js +1333 -0
- package/lib/contracts/membership-registry/index.d.ts +79 -0
- package/lib/contracts/membership-registry/index.js +104 -0
- package/lib/contracts/types.d.ts +10 -0
- package/lib/contracts/types.js +12 -0
- package/lib/crypto/aes.d.ts +2 -2
- package/lib/crypto/aes.js +4 -4
- package/lib/crypto/encryption.d.ts +109 -8
- package/lib/crypto/encryption.js +114 -16
- package/lib/engine/car.d.ts +1 -5
- package/lib/engine/car.js +2 -2
- package/lib/engine/index.d.ts +14 -33
- package/lib/engine/index.js +41 -98
- package/lib/engine/records.d.ts +8 -19
- package/lib/engine/records.js +7 -81
- package/lib/engine/test-helpers.d.ts +3 -2
- package/lib/engine/test-helpers.js +5 -7
- package/lib/erc8004.js +10 -7
- package/lib/fangorn.d.ts +86 -65
- package/lib/fangorn.js +153 -115
- package/lib/feed.d.ts +8 -7
- package/lib/feed.js +8 -7
- package/lib/harness/examples/hackmd/build-markdown-graph.d.ts +1 -0
- package/lib/harness/examples/hackmd/build-markdown-graph.js +17 -0
- package/lib/harness/index.d.ts +58 -0
- package/lib/harness/index.js +73 -0
- package/lib/index.d.ts +13 -10
- package/lib/index.js +13 -10
- package/lib/node_modules/{@jridgewell → .pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell}/sourcemap-codec/dist/sourcemap-codec.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_expect@4.0.18/node_modules/@vitest}/expect/dist/index.js +8 -8
- package/lib/node_modules/{@vitest → .pnpm/@vitest_pretty-format@4.0.18/node_modules/@vitest}/pretty-format/dist/index.js +2 -2
- package/lib/node_modules/{@vitest → .pnpm/@vitest_runner@4.0.18/node_modules/@vitest}/runner/dist/chunk-tasks.js +2 -2
- package/lib/node_modules/{@vitest → .pnpm/@vitest_runner@4.0.18/node_modules/@vitest}/runner/dist/index.js +4 -4
- package/lib/node_modules/{@vitest → .pnpm/@vitest_snapshot@4.0.18/node_modules/@vitest}/snapshot/dist/index.js +4 -4
- package/lib/node_modules/{@vitest → .pnpm/@vitest_spy@4.0.18/node_modules/@vitest}/spy/dist/index.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/chunk-_commonjsHelpers.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/chunk-pathe.M-eThtNZ.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/diff.js +3 -3
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/display.js +2 -2
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/error.js +2 -2
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/helpers.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/serialize.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/source-map.js +1 -1
- package/lib/node_modules/{@vitest → .pnpm/@vitest_utils@4.0.18/node_modules/@vitest}/utils/dist/timers.js +1 -1
- package/lib/node_modules/{chai → .pnpm/chai@6.2.2/node_modules/chai}/index.js +1 -1
- package/lib/node_modules/{magic-string → .pnpm/magic-string@0.30.21/node_modules/magic-string}/dist/magic-string.es.js +2 -2
- package/lib/node_modules/{pathe → .pnpm/pathe@2.0.3/node_modules/pathe}/dist/shared/pathe.M-eThtNZ.js +1 -1
- package/lib/node_modules/{tinyrainbow → .pnpm/tinyrainbow@3.0.3/node_modules/tinyrainbow}/dist/index.js +1 -1
- package/lib/node_modules/{vitest → .pnpm/vitest@4.0.18_@types_node@24.10.1_jiti@2.6.1_terser@5.51.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest}/dist/chunks/_commonjsHelpers.D26ty3Ew.js +1 -1
- package/lib/node_modules/{vitest → .pnpm/vitest@4.0.18_@types_node@24.10.1_jiti@2.6.1_terser@5.51.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest}/dist/chunks/date.Bq6ZW5rf.js +1 -1
- package/lib/node_modules/{vitest → .pnpm/vitest@4.0.18_@types_node@24.10.1_jiti@2.6.1_terser@5.51.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest}/dist/chunks/utils.DvEY5TfP.js +2 -2
- package/lib/node_modules/{vitest → .pnpm/vitest@4.0.18_@types_node@24.10.1_jiti@2.6.1_terser@5.51.2_tsx@4.21.0_yaml@2.8.2/node_modules/vitest}/dist/chunks/vi.2VT5v0um.js +11 -11
- package/lib/providers/storage/signed-url.d.ts +10 -2
- package/lib/providers/storage/signed-url.js +15 -5
- package/lib/providers/storage/types.d.ts +1 -1
- package/lib/providers/storage/utils.js +3 -5
- package/lib/registry.d.ts +118 -0
- package/lib/registry.js +184 -0
- package/lib/test/mem-registry.d.ts +19 -14
- package/lib/test/mem-registry.js +37 -44
- package/lib/test/sdk-suite.d.ts +4 -1
- package/lib/test/sdk-suite.js +89 -18
- package/lib/test/testbed.d.ts +5227 -5218
- package/lib/test/testbed.js +56 -29
- package/lib/types/index.d.ts +11 -6
- package/package.json +1 -1
- package/lib/cli/sell.d.ts +0 -28
- package/lib/cli/sell.js +0 -95
- package/lib/cli/stage.d.ts +0 -19
- package/lib/cli/stage.js +0 -94
- package/lib/contracts/settlement-registry/abi.js +0 -962
- package/lib/contracts/settlement-registry/index.d.ts +0 -143
- package/lib/contracts/settlement-registry/index.js +0 -213
- package/lib/crypto/paid.d.ts +0 -104
- package/lib/crypto/paid.js +0 -147
- package/lib/test/key-server.d.ts +0 -12
- package/lib/test/key-server.js +0 -30
- /package/lib/node_modules/{@vitest → .pnpm/@vitest_runner@4.0.18/node_modules/@vitest}/runner/dist/utils.js +0 -0
|
@@ -1,35 +1,49 @@
|
|
|
1
|
-
//#region src/contracts/
|
|
1
|
+
//#region src/contracts/membership-registry/abi.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Generated from `forge inspect
|
|
4
|
-
* (solidity/src/
|
|
3
|
+
* Generated from `forge inspect MembershipRegistry abi` in fangorn-network/contracts
|
|
4
|
+
* (solidity/src/MembershipRegistry.sol). Regenerate with scripts/gen-abis.sh, do not edit.
|
|
5
5
|
*/
|
|
6
|
-
declare const
|
|
6
|
+
declare const MEMBERSHIP_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: "UPGRADE_INTERFACE_VERSION";
|
|
13
13
|
readonly inputs: readonly [];
|
|
14
14
|
readonly outputs: readonly [{
|
|
15
15
|
readonly name: "";
|
|
16
|
-
readonly type: "
|
|
17
|
-
readonly internalType: "
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly internalType: "string";
|
|
18
18
|
}];
|
|
19
19
|
readonly stateMutability: "view";
|
|
20
20
|
}, {
|
|
21
21
|
readonly type: "function";
|
|
22
|
-
readonly name: "
|
|
22
|
+
readonly name: "admin";
|
|
23
23
|
readonly inputs: readonly [];
|
|
24
24
|
readonly outputs: readonly [{
|
|
25
25
|
readonly name: "";
|
|
26
|
-
readonly type: "
|
|
27
|
-
readonly internalType: "
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
readonly internalType: "address";
|
|
28
28
|
}];
|
|
29
29
|
readonly stateMutability: "view";
|
|
30
30
|
}, {
|
|
31
31
|
readonly type: "function";
|
|
32
|
-
readonly name: "
|
|
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";
|
|
42
|
+
}];
|
|
43
|
+
readonly stateMutability: "view";
|
|
44
|
+
}, {
|
|
45
|
+
readonly type: "function";
|
|
46
|
+
readonly name: "appRegistry";
|
|
33
47
|
readonly inputs: readonly [];
|
|
34
48
|
readonly outputs: readonly [{
|
|
35
49
|
readonly name: "";
|
|
@@ -39,28 +53,114 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
39
53
|
readonly stateMutability: "view";
|
|
40
54
|
}, {
|
|
41
55
|
readonly type: "function";
|
|
42
|
-
readonly name: "
|
|
56
|
+
readonly name: "approve";
|
|
43
57
|
readonly inputs: readonly [{
|
|
44
|
-
readonly name: "
|
|
58
|
+
readonly name: "to";
|
|
45
59
|
readonly type: "address";
|
|
46
60
|
readonly internalType: "address";
|
|
47
61
|
}, {
|
|
48
|
-
readonly name: "
|
|
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";
|
|
71
|
+
readonly inputs: readonly [{
|
|
72
|
+
readonly name: "owner";
|
|
73
|
+
readonly type: "address";
|
|
74
|
+
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
|
+
}, {
|
|
90
|
+
readonly name: "who";
|
|
49
91
|
readonly type: "address";
|
|
50
92
|
readonly internalType: "address";
|
|
93
|
+
}];
|
|
94
|
+
readonly outputs: readonly [{
|
|
95
|
+
readonly name: "app_id";
|
|
96
|
+
readonly type: "bytes32";
|
|
97
|
+
readonly internalType: "bytes32";
|
|
51
98
|
}, {
|
|
52
|
-
readonly name: "
|
|
99
|
+
readonly name: "until";
|
|
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";
|
|
53
119
|
readonly type: "bytes32";
|
|
54
120
|
readonly internalType: "bytes32";
|
|
55
121
|
}, {
|
|
56
|
-
readonly name: "
|
|
122
|
+
readonly name: "epoch";
|
|
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";
|
|
57
157
|
readonly type: "bytes32";
|
|
58
158
|
readonly internalType: "bytes32";
|
|
59
159
|
}];
|
|
60
160
|
readonly outputs: readonly [{
|
|
61
161
|
readonly name: "";
|
|
62
|
-
readonly type: "
|
|
63
|
-
readonly internalType: "
|
|
162
|
+
readonly type: "uint256";
|
|
163
|
+
readonly internalType: "uint256";
|
|
64
164
|
}];
|
|
65
165
|
readonly stateMutability: "view";
|
|
66
166
|
}, {
|
|
@@ -99,15 +199,11 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
99
199
|
readonly stateMutability: "view";
|
|
100
200
|
}, {
|
|
101
201
|
readonly type: "function";
|
|
102
|
-
readonly name: "
|
|
202
|
+
readonly name: "expiresAt";
|
|
103
203
|
readonly inputs: readonly [{
|
|
104
|
-
readonly name: "";
|
|
105
|
-
readonly type: "
|
|
106
|
-
readonly internalType: "
|
|
107
|
-
}, {
|
|
108
|
-
readonly name: "";
|
|
109
|
-
readonly type: "bytes32";
|
|
110
|
-
readonly internalType: "bytes32";
|
|
204
|
+
readonly name: "tokenId";
|
|
205
|
+
readonly type: "uint256";
|
|
206
|
+
readonly internalType: "uint256";
|
|
111
207
|
}];
|
|
112
208
|
readonly outputs: readonly [{
|
|
113
209
|
readonly name: "";
|
|
@@ -117,59 +213,34 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
117
213
|
readonly stateMutability: "view";
|
|
118
214
|
}, {
|
|
119
215
|
readonly type: "function";
|
|
120
|
-
readonly name: "
|
|
216
|
+
readonly name: "getApproved";
|
|
121
217
|
readonly inputs: readonly [{
|
|
122
|
-
readonly name: "
|
|
123
|
-
readonly type: "
|
|
124
|
-
readonly internalType: "
|
|
218
|
+
readonly name: "tokenId";
|
|
219
|
+
readonly type: "uint256";
|
|
220
|
+
readonly internalType: "uint256";
|
|
125
221
|
}];
|
|
126
222
|
readonly outputs: readonly [{
|
|
127
223
|
readonly name: "";
|
|
128
|
-
readonly type: "
|
|
129
|
-
readonly internalType: "
|
|
224
|
+
readonly type: "address";
|
|
225
|
+
readonly internalType: "address";
|
|
130
226
|
}];
|
|
131
227
|
readonly stateMutability: "view";
|
|
132
228
|
}, {
|
|
133
229
|
readonly type: "function";
|
|
134
|
-
readonly name: "
|
|
230
|
+
readonly name: "groupOf";
|
|
135
231
|
readonly inputs: readonly [{
|
|
136
|
-
readonly name: "
|
|
137
|
-
readonly type: "
|
|
138
|
-
readonly internalType: "
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
-
}];
|
|
232
|
+
readonly name: "app_id";
|
|
233
|
+
readonly type: "bytes32";
|
|
234
|
+
readonly internalType: "bytes32";
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "epoch";
|
|
237
|
+
readonly type: "uint256";
|
|
238
|
+
readonly internalType: "uint256";
|
|
168
239
|
}];
|
|
169
240
|
readonly outputs: readonly [{
|
|
170
241
|
readonly name: "";
|
|
171
|
-
readonly type: "
|
|
172
|
-
readonly internalType: "
|
|
242
|
+
readonly type: "uint256";
|
|
243
|
+
readonly internalType: "uint256";
|
|
173
244
|
}];
|
|
174
245
|
readonly stateMutability: "view";
|
|
175
246
|
}, {
|
|
@@ -187,18 +258,22 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
187
258
|
readonly name: "semaphore_";
|
|
188
259
|
readonly type: "address";
|
|
189
260
|
readonly internalType: "address";
|
|
261
|
+
}, {
|
|
262
|
+
readonly name: "appRegistry_";
|
|
263
|
+
readonly type: "address";
|
|
264
|
+
readonly internalType: "address";
|
|
190
265
|
}];
|
|
191
266
|
readonly outputs: readonly [];
|
|
192
267
|
readonly stateMutability: "nonpayable";
|
|
193
268
|
}, {
|
|
194
269
|
readonly type: "function";
|
|
195
|
-
readonly name: "
|
|
270
|
+
readonly name: "isApprovedForAll";
|
|
196
271
|
readonly inputs: readonly [{
|
|
197
|
-
readonly name: "";
|
|
272
|
+
readonly name: "owner";
|
|
198
273
|
readonly type: "address";
|
|
199
274
|
readonly internalType: "address";
|
|
200
275
|
}, {
|
|
201
|
-
readonly name: "";
|
|
276
|
+
readonly name: "operator";
|
|
202
277
|
readonly type: "address";
|
|
203
278
|
readonly internalType: "address";
|
|
204
279
|
}];
|
|
@@ -210,11 +285,11 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
210
285
|
readonly stateMutability: "view";
|
|
211
286
|
}, {
|
|
212
287
|
readonly type: "function";
|
|
213
|
-
readonly name: "
|
|
288
|
+
readonly name: "isRenewable";
|
|
214
289
|
readonly inputs: readonly [{
|
|
215
|
-
readonly name: "";
|
|
216
|
-
readonly type: "
|
|
217
|
-
readonly internalType: "
|
|
290
|
+
readonly name: "tokenId";
|
|
291
|
+
readonly type: "uint256";
|
|
292
|
+
readonly internalType: "uint256";
|
|
218
293
|
}];
|
|
219
294
|
readonly outputs: readonly [{
|
|
220
295
|
readonly name: "";
|
|
@@ -224,15 +299,92 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
224
299
|
readonly stateMutability: "view";
|
|
225
300
|
}, {
|
|
226
301
|
readonly type: "function";
|
|
227
|
-
readonly name: "
|
|
302
|
+
readonly name: "join";
|
|
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";
|
|
228
358
|
readonly inputs: readonly [{
|
|
229
|
-
readonly name: "
|
|
359
|
+
readonly name: "app_id";
|
|
230
360
|
readonly type: "bytes32";
|
|
231
361
|
readonly internalType: "bytes32";
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "epoch";
|
|
364
|
+
readonly type: "uint256";
|
|
365
|
+
readonly internalType: "uint256";
|
|
232
366
|
}, {
|
|
233
367
|
readonly name: "commitment";
|
|
234
368
|
readonly type: "uint256";
|
|
235
369
|
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";
|
|
236
388
|
}];
|
|
237
389
|
readonly outputs: readonly [{
|
|
238
390
|
readonly name: "";
|
|
@@ -242,34 +394,44 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
242
394
|
readonly stateMutability: "view";
|
|
243
395
|
}, {
|
|
244
396
|
readonly type: "function";
|
|
245
|
-
readonly name: "
|
|
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";
|
|
246
408
|
readonly inputs: readonly [{
|
|
247
|
-
readonly name: "
|
|
248
|
-
readonly type: "
|
|
249
|
-
readonly internalType: "
|
|
250
|
-
}, {
|
|
251
|
-
readonly name: "subject";
|
|
252
|
-
readonly type: "bytes32";
|
|
253
|
-
readonly internalType: "bytes32";
|
|
409
|
+
readonly name: "tokenId";
|
|
410
|
+
readonly type: "uint256";
|
|
411
|
+
readonly internalType: "uint256";
|
|
254
412
|
}];
|
|
255
413
|
readonly outputs: readonly [{
|
|
256
414
|
readonly name: "";
|
|
257
|
-
readonly type: "
|
|
258
|
-
readonly internalType: "
|
|
415
|
+
readonly type: "address";
|
|
416
|
+
readonly internalType: "address";
|
|
259
417
|
}];
|
|
260
418
|
readonly stateMutability: "view";
|
|
261
419
|
}, {
|
|
262
420
|
readonly type: "function";
|
|
263
|
-
readonly name: "
|
|
421
|
+
readonly name: "planOf";
|
|
264
422
|
readonly inputs: readonly [{
|
|
265
|
-
readonly name: "
|
|
423
|
+
readonly name: "app_id";
|
|
266
424
|
readonly type: "bytes32";
|
|
267
425
|
readonly internalType: "bytes32";
|
|
268
426
|
}];
|
|
269
427
|
readonly outputs: readonly [{
|
|
270
|
-
readonly name: "";
|
|
271
|
-
readonly type: "uint256
|
|
272
|
-
readonly internalType: "uint256
|
|
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";
|
|
273
435
|
}];
|
|
274
436
|
readonly stateMutability: "view";
|
|
275
437
|
}, {
|
|
@@ -284,138 +446,74 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
284
446
|
readonly stateMutability: "view";
|
|
285
447
|
}, {
|
|
286
448
|
readonly type: "function";
|
|
287
|
-
readonly name: "
|
|
449
|
+
readonly name: "renewSubscription";
|
|
288
450
|
readonly inputs: readonly [{
|
|
289
|
-
readonly name: "
|
|
290
|
-
readonly type: "
|
|
291
|
-
readonly internalType: "
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
readonly name: "generation";
|
|
451
|
+
readonly name: "";
|
|
452
|
+
readonly type: "uint256";
|
|
453
|
+
readonly internalType: "uint256";
|
|
454
|
+
}, {
|
|
455
|
+
readonly name: "";
|
|
295
456
|
readonly type: "uint64";
|
|
296
457
|
readonly internalType: "uint64";
|
|
297
458
|
}];
|
|
298
|
-
readonly
|
|
459
|
+
readonly outputs: readonly [];
|
|
460
|
+
readonly stateMutability: "payable";
|
|
299
461
|
}, {
|
|
300
462
|
readonly type: "function";
|
|
301
|
-
readonly name: "
|
|
463
|
+
readonly name: "safeTransferFrom";
|
|
302
464
|
readonly inputs: readonly [{
|
|
303
|
-
readonly name: "
|
|
304
|
-
readonly type: "
|
|
305
|
-
readonly internalType: "
|
|
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
|
-
}];
|
|
465
|
+
readonly name: "from";
|
|
466
|
+
readonly type: "address";
|
|
467
|
+
readonly internalType: "address";
|
|
335
468
|
}, {
|
|
336
|
-
readonly name: "
|
|
337
|
-
readonly type: "
|
|
338
|
-
readonly internalType: "
|
|
469
|
+
readonly name: "to";
|
|
470
|
+
readonly type: "address";
|
|
471
|
+
readonly internalType: "address";
|
|
339
472
|
}, {
|
|
340
|
-
readonly name: "
|
|
473
|
+
readonly name: "tokenId";
|
|
341
474
|
readonly type: "uint256";
|
|
342
475
|
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";
|
|
343
486
|
}, {
|
|
344
|
-
readonly name: "
|
|
487
|
+
readonly name: "to";
|
|
345
488
|
readonly type: "address";
|
|
346
489
|
readonly internalType: "address";
|
|
347
490
|
}, {
|
|
348
|
-
readonly name: "
|
|
349
|
-
readonly type: "
|
|
350
|
-
readonly internalType: "
|
|
491
|
+
readonly name: "tokenId";
|
|
492
|
+
readonly type: "uint256";
|
|
493
|
+
readonly internalType: "uint256";
|
|
351
494
|
}, {
|
|
352
|
-
readonly name: "
|
|
353
|
-
readonly type: "
|
|
354
|
-
readonly internalType: "
|
|
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";
|
|
495
|
+
readonly name: "data";
|
|
496
|
+
readonly type: "bytes";
|
|
497
|
+
readonly internalType: "bytes";
|
|
393
498
|
}];
|
|
499
|
+
readonly outputs: readonly [];
|
|
394
500
|
readonly stateMutability: "nonpayable";
|
|
395
501
|
}, {
|
|
396
502
|
readonly type: "function";
|
|
397
|
-
readonly name: "
|
|
503
|
+
readonly name: "scopeOf";
|
|
398
504
|
readonly inputs: readonly [{
|
|
399
|
-
readonly name: "
|
|
505
|
+
readonly name: "app_id";
|
|
400
506
|
readonly type: "bytes32";
|
|
401
507
|
readonly internalType: "bytes32";
|
|
402
508
|
}, {
|
|
403
|
-
readonly name: "
|
|
509
|
+
readonly name: "epoch";
|
|
404
510
|
readonly type: "uint256";
|
|
405
511
|
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";
|
|
414
512
|
}];
|
|
415
513
|
readonly outputs: readonly [{
|
|
416
514
|
readonly name: "";
|
|
417
|
-
readonly type: "
|
|
418
|
-
readonly internalType: "
|
|
515
|
+
readonly type: "uint256";
|
|
516
|
+
readonly internalType: "uint256";
|
|
419
517
|
}];
|
|
420
518
|
readonly stateMutability: "pure";
|
|
421
519
|
}, {
|
|
@@ -440,13 +538,13 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
440
538
|
readonly stateMutability: "nonpayable";
|
|
441
539
|
}, {
|
|
442
540
|
readonly type: "function";
|
|
443
|
-
readonly name: "
|
|
541
|
+
readonly name: "setApprovalForAll";
|
|
444
542
|
readonly inputs: readonly [{
|
|
445
|
-
readonly name: "
|
|
543
|
+
readonly name: "operator";
|
|
446
544
|
readonly type: "address";
|
|
447
545
|
readonly internalType: "address";
|
|
448
546
|
}, {
|
|
449
|
-
readonly name: "
|
|
547
|
+
readonly name: "approved";
|
|
450
548
|
readonly type: "bool";
|
|
451
549
|
readonly internalType: "bool";
|
|
452
550
|
}];
|
|
@@ -454,78 +552,140 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
454
552
|
readonly stateMutability: "nonpayable";
|
|
455
553
|
}, {
|
|
456
554
|
readonly type: "function";
|
|
457
|
-
readonly name: "
|
|
555
|
+
readonly name: "setPlan";
|
|
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";
|
|
458
574
|
readonly inputs: readonly [{
|
|
459
|
-
readonly name: "
|
|
575
|
+
readonly name: "tokenId";
|
|
576
|
+
readonly type: "uint256";
|
|
577
|
+
readonly internalType: "uint256";
|
|
578
|
+
}, {
|
|
579
|
+
readonly name: "user";
|
|
460
580
|
readonly type: "address";
|
|
461
581
|
readonly internalType: "address";
|
|
462
582
|
}, {
|
|
463
|
-
readonly name: "
|
|
464
|
-
readonly type: "
|
|
465
|
-
readonly internalType: "
|
|
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";
|
|
466
596
|
}, {
|
|
467
|
-
readonly name: "
|
|
468
|
-
readonly type: "
|
|
469
|
-
readonly internalType: "
|
|
597
|
+
readonly name: "user";
|
|
598
|
+
readonly type: "address";
|
|
599
|
+
readonly internalType: "address";
|
|
470
600
|
}, {
|
|
471
|
-
readonly name: "
|
|
601
|
+
readonly name: "expires";
|
|
602
|
+
readonly type: "uint64";
|
|
603
|
+
readonly internalType: "uint64";
|
|
604
|
+
}, {
|
|
605
|
+
readonly name: "deadline";
|
|
606
|
+
readonly type: "uint256";
|
|
607
|
+
readonly internalType: "uint256";
|
|
608
|
+
}, {
|
|
609
|
+
readonly name: "signature";
|
|
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: "";
|
|
472
625
|
readonly type: "bool";
|
|
473
626
|
readonly internalType: "bool";
|
|
474
627
|
}];
|
|
475
|
-
readonly
|
|
476
|
-
|
|
628
|
+
readonly stateMutability: "view";
|
|
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";
|
|
477
639
|
}, {
|
|
478
640
|
readonly type: "function";
|
|
479
|
-
readonly name: "
|
|
641
|
+
readonly name: "tokenIdOf";
|
|
480
642
|
readonly inputs: readonly [{
|
|
481
|
-
readonly name: "
|
|
643
|
+
readonly name: "app_id";
|
|
482
644
|
readonly type: "bytes32";
|
|
483
645
|
readonly internalType: "bytes32";
|
|
484
646
|
}, {
|
|
485
|
-
readonly name: "
|
|
647
|
+
readonly name: "holder";
|
|
486
648
|
readonly type: "address";
|
|
487
649
|
readonly internalType: "address";
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
readonly
|
|
491
|
-
readonly internalType: "uint256";
|
|
492
|
-
}, {
|
|
493
|
-
readonly name: "merkleTreeRoot";
|
|
650
|
+
}];
|
|
651
|
+
readonly outputs: readonly [{
|
|
652
|
+
readonly name: "";
|
|
494
653
|
readonly type: "uint256";
|
|
495
654
|
readonly internalType: "uint256";
|
|
496
|
-
}
|
|
497
|
-
|
|
655
|
+
}];
|
|
656
|
+
readonly stateMutability: "pure";
|
|
657
|
+
}, {
|
|
658
|
+
readonly type: "function";
|
|
659
|
+
readonly name: "tokenURI";
|
|
660
|
+
readonly inputs: readonly [{
|
|
661
|
+
readonly name: "tokenId";
|
|
498
662
|
readonly type: "uint256";
|
|
499
663
|
readonly internalType: "uint256";
|
|
500
|
-
}, {
|
|
501
|
-
readonly name: "points";
|
|
502
|
-
readonly type: "uint256[8]";
|
|
503
|
-
readonly internalType: "uint256[8]";
|
|
504
664
|
}];
|
|
505
|
-
readonly outputs: readonly [
|
|
506
|
-
|
|
665
|
+
readonly outputs: readonly [{
|
|
666
|
+
readonly name: "";
|
|
667
|
+
readonly type: "string";
|
|
668
|
+
readonly internalType: "string";
|
|
669
|
+
}];
|
|
670
|
+
readonly stateMutability: "view";
|
|
507
671
|
}, {
|
|
508
672
|
readonly type: "function";
|
|
509
|
-
readonly name: "
|
|
673
|
+
readonly name: "transferFrom";
|
|
510
674
|
readonly inputs: readonly [{
|
|
511
|
-
readonly name: "
|
|
675
|
+
readonly name: "from";
|
|
512
676
|
readonly type: "address";
|
|
513
677
|
readonly internalType: "address";
|
|
514
678
|
}, {
|
|
515
|
-
readonly name: "
|
|
516
|
-
readonly type: "
|
|
517
|
-
readonly internalType: "
|
|
679
|
+
readonly name: "to";
|
|
680
|
+
readonly type: "address";
|
|
681
|
+
readonly internalType: "address";
|
|
518
682
|
}, {
|
|
519
|
-
readonly name: "
|
|
520
|
-
readonly type: "
|
|
521
|
-
readonly internalType: "
|
|
522
|
-
}];
|
|
523
|
-
readonly outputs: readonly [{
|
|
524
|
-
readonly name: "";
|
|
525
|
-
readonly type: "bytes32";
|
|
526
|
-
readonly internalType: "bytes32";
|
|
683
|
+
readonly name: "tokenId";
|
|
684
|
+
readonly type: "uint256";
|
|
685
|
+
readonly internalType: "uint256";
|
|
527
686
|
}];
|
|
528
|
-
readonly
|
|
687
|
+
readonly outputs: readonly [];
|
|
688
|
+
readonly stateMutability: "nonpayable";
|
|
529
689
|
}, {
|
|
530
690
|
readonly type: "function";
|
|
531
691
|
readonly name: "upgradeToAndCall";
|
|
@@ -550,6 +710,48 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
550
710
|
readonly internalType: "address";
|
|
551
711
|
}];
|
|
552
712
|
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";
|
|
553
755
|
}, {
|
|
554
756
|
readonly type: "event";
|
|
555
757
|
readonly name: "AdminChanged";
|
|
@@ -567,19 +769,39 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
567
769
|
readonly anonymous: false;
|
|
568
770
|
}, {
|
|
569
771
|
readonly type: "event";
|
|
570
|
-
readonly name: "
|
|
772
|
+
readonly name: "Approval";
|
|
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";
|
|
571
793
|
readonly inputs: readonly [{
|
|
572
|
-
readonly name: "
|
|
794
|
+
readonly name: "owner";
|
|
573
795
|
readonly type: "address";
|
|
574
796
|
readonly indexed: true;
|
|
575
797
|
readonly internalType: "address";
|
|
576
798
|
}, {
|
|
577
|
-
readonly name: "
|
|
799
|
+
readonly name: "operator";
|
|
578
800
|
readonly type: "address";
|
|
579
801
|
readonly indexed: true;
|
|
580
802
|
readonly internalType: "address";
|
|
581
803
|
}, {
|
|
582
|
-
readonly name: "
|
|
804
|
+
readonly name: "approved";
|
|
583
805
|
readonly type: "bool";
|
|
584
806
|
readonly indexed: false;
|
|
585
807
|
readonly internalType: "bool";
|
|
@@ -587,19 +809,24 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
587
809
|
readonly anonymous: false;
|
|
588
810
|
}, {
|
|
589
811
|
readonly type: "event";
|
|
590
|
-
readonly name: "
|
|
812
|
+
readonly name: "Claimed";
|
|
591
813
|
readonly inputs: readonly [{
|
|
592
|
-
readonly name: "
|
|
814
|
+
readonly name: "app_id";
|
|
593
815
|
readonly type: "bytes32";
|
|
594
816
|
readonly indexed: true;
|
|
595
817
|
readonly internalType: "bytes32";
|
|
596
818
|
}, {
|
|
597
|
-
readonly name: "
|
|
598
|
-
readonly type: "
|
|
599
|
-
readonly indexed:
|
|
600
|
-
readonly internalType: "
|
|
819
|
+
readonly name: "epoch";
|
|
820
|
+
readonly type: "uint256";
|
|
821
|
+
readonly indexed: true;
|
|
822
|
+
readonly internalType: "uint256";
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "tokenId";
|
|
825
|
+
readonly type: "uint256";
|
|
826
|
+
readonly indexed: true;
|
|
827
|
+
readonly internalType: "uint256";
|
|
601
828
|
}, {
|
|
602
|
-
readonly name: "
|
|
829
|
+
readonly name: "holder";
|
|
603
830
|
readonly type: "address";
|
|
604
831
|
readonly indexed: false;
|
|
605
832
|
readonly internalType: "address";
|
|
@@ -612,19 +839,59 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
612
839
|
readonly anonymous: false;
|
|
613
840
|
}, {
|
|
614
841
|
readonly type: "event";
|
|
615
|
-
readonly name: "
|
|
842
|
+
readonly name: "Initialized";
|
|
616
843
|
readonly inputs: readonly [{
|
|
617
|
-
readonly name: "
|
|
618
|
-
readonly type: "
|
|
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";
|
|
853
|
+
readonly inputs: readonly [{
|
|
854
|
+
readonly name: "app_id";
|
|
855
|
+
readonly type: "bytes32";
|
|
619
856
|
readonly indexed: true;
|
|
620
|
-
readonly internalType: "
|
|
857
|
+
readonly internalType: "bytes32";
|
|
858
|
+
}, {
|
|
859
|
+
readonly name: "epoch";
|
|
860
|
+
readonly type: "uint256";
|
|
861
|
+
readonly indexed: true;
|
|
862
|
+
readonly internalType: "uint256";
|
|
621
863
|
}, {
|
|
622
|
-
readonly name: "
|
|
864
|
+
readonly name: "commitment";
|
|
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";
|
|
623
885
|
readonly type: "bytes32";
|
|
624
886
|
readonly indexed: true;
|
|
625
887
|
readonly internalType: "bytes32";
|
|
626
888
|
}, {
|
|
627
|
-
readonly name: "
|
|
889
|
+
readonly name: "price";
|
|
890
|
+
readonly type: "uint256";
|
|
891
|
+
readonly indexed: false;
|
|
892
|
+
readonly internalType: "uint256";
|
|
893
|
+
}, {
|
|
894
|
+
readonly name: "period";
|
|
628
895
|
readonly type: "uint64";
|
|
629
896
|
readonly indexed: false;
|
|
630
897
|
readonly internalType: "uint64";
|
|
@@ -632,9 +899,14 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
632
899
|
readonly anonymous: false;
|
|
633
900
|
}, {
|
|
634
901
|
readonly type: "event";
|
|
635
|
-
readonly name: "
|
|
902
|
+
readonly name: "SubscriptionUpdate";
|
|
636
903
|
readonly inputs: readonly [{
|
|
637
|
-
readonly name: "
|
|
904
|
+
readonly name: "tokenId";
|
|
905
|
+
readonly type: "uint256";
|
|
906
|
+
readonly indexed: true;
|
|
907
|
+
readonly internalType: "uint256";
|
|
908
|
+
}, {
|
|
909
|
+
readonly name: "expiration";
|
|
638
910
|
readonly type: "uint64";
|
|
639
911
|
readonly indexed: false;
|
|
640
912
|
readonly internalType: "uint64";
|
|
@@ -642,34 +914,29 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
642
914
|
readonly anonymous: false;
|
|
643
915
|
}, {
|
|
644
916
|
readonly type: "event";
|
|
645
|
-
readonly name: "
|
|
917
|
+
readonly name: "Transfer";
|
|
646
918
|
readonly inputs: readonly [{
|
|
647
|
-
readonly name: "
|
|
648
|
-
readonly type: "bytes32";
|
|
649
|
-
readonly indexed: true;
|
|
650
|
-
readonly internalType: "bytes32";
|
|
651
|
-
}, {
|
|
652
|
-
readonly name: "publisher";
|
|
919
|
+
readonly name: "from";
|
|
653
920
|
readonly type: "address";
|
|
654
921
|
readonly indexed: true;
|
|
655
922
|
readonly internalType: "address";
|
|
656
923
|
}, {
|
|
657
|
-
readonly name: "
|
|
924
|
+
readonly name: "to";
|
|
658
925
|
readonly type: "address";
|
|
659
926
|
readonly indexed: true;
|
|
660
927
|
readonly internalType: "address";
|
|
661
928
|
}, {
|
|
662
|
-
readonly name: "
|
|
663
|
-
readonly type: "uint256";
|
|
664
|
-
readonly indexed: false;
|
|
665
|
-
readonly internalType: "uint256";
|
|
666
|
-
}, {
|
|
667
|
-
readonly name: "price";
|
|
929
|
+
readonly name: "tokenId";
|
|
668
930
|
readonly type: "uint256";
|
|
669
|
-
readonly indexed:
|
|
931
|
+
readonly indexed: true;
|
|
670
932
|
readonly internalType: "uint256";
|
|
671
|
-
}
|
|
672
|
-
|
|
933
|
+
}];
|
|
934
|
+
readonly anonymous: false;
|
|
935
|
+
}, {
|
|
936
|
+
readonly type: "event";
|
|
937
|
+
readonly name: "Unlocked";
|
|
938
|
+
readonly inputs: readonly [{
|
|
939
|
+
readonly name: "tokenId";
|
|
673
940
|
readonly type: "uint256";
|
|
674
941
|
readonly indexed: false;
|
|
675
942
|
readonly internalType: "uint256";
|
|
@@ -677,22 +944,22 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
677
944
|
readonly anonymous: false;
|
|
678
945
|
}, {
|
|
679
946
|
readonly type: "event";
|
|
680
|
-
readonly name: "
|
|
947
|
+
readonly name: "UpdateUser";
|
|
681
948
|
readonly inputs: readonly [{
|
|
682
|
-
readonly name: "
|
|
683
|
-
readonly type: "bytes32";
|
|
684
|
-
readonly indexed: true;
|
|
685
|
-
readonly internalType: "bytes32";
|
|
686
|
-
}, {
|
|
687
|
-
readonly name: "nullifier";
|
|
949
|
+
readonly name: "tokenId";
|
|
688
950
|
readonly type: "uint256";
|
|
689
951
|
readonly indexed: true;
|
|
690
952
|
readonly internalType: "uint256";
|
|
691
953
|
}, {
|
|
692
|
-
readonly name: "
|
|
954
|
+
readonly name: "user";
|
|
693
955
|
readonly type: "address";
|
|
694
|
-
readonly indexed:
|
|
956
|
+
readonly indexed: true;
|
|
695
957
|
readonly internalType: "address";
|
|
958
|
+
}, {
|
|
959
|
+
readonly name: "expires";
|
|
960
|
+
readonly type: "uint64";
|
|
961
|
+
readonly indexed: false;
|
|
962
|
+
readonly internalType: "uint64";
|
|
696
963
|
}];
|
|
697
964
|
readonly anonymous: false;
|
|
698
965
|
}, {
|
|
@@ -715,36 +982,96 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
715
982
|
}];
|
|
716
983
|
}, {
|
|
717
984
|
readonly type: "error";
|
|
718
|
-
readonly name: "
|
|
985
|
+
readonly name: "AlreadyClaimed";
|
|
719
986
|
readonly inputs: readonly [];
|
|
720
987
|
}, {
|
|
721
988
|
readonly type: "error";
|
|
722
|
-
readonly name: "
|
|
723
|
-
readonly inputs: readonly [
|
|
989
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
990
|
+
readonly inputs: readonly [{
|
|
991
|
+
readonly name: "implementation";
|
|
992
|
+
readonly type: "address";
|
|
993
|
+
readonly internalType: "address";
|
|
994
|
+
}];
|
|
724
995
|
}, {
|
|
725
996
|
readonly type: "error";
|
|
726
|
-
readonly name: "
|
|
997
|
+
readonly name: "ERC1967NonPayable";
|
|
727
998
|
readonly inputs: readonly [];
|
|
728
999
|
}, {
|
|
729
1000
|
readonly type: "error";
|
|
730
|
-
readonly name: "
|
|
731
|
-
readonly inputs: readonly [
|
|
1001
|
+
readonly name: "ERC721IncorrectOwner";
|
|
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
|
+
}];
|
|
732
1015
|
}, {
|
|
733
1016
|
readonly type: "error";
|
|
734
|
-
readonly name: "
|
|
735
|
-
readonly inputs: readonly [
|
|
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
|
+
}];
|
|
736
1027
|
}, {
|
|
737
1028
|
readonly type: "error";
|
|
738
|
-
readonly name: "
|
|
1029
|
+
readonly name: "ERC721InvalidApprover";
|
|
739
1030
|
readonly inputs: readonly [{
|
|
740
|
-
readonly name: "
|
|
1031
|
+
readonly name: "approver";
|
|
741
1032
|
readonly type: "address";
|
|
742
1033
|
readonly internalType: "address";
|
|
743
1034
|
}];
|
|
744
1035
|
}, {
|
|
745
1036
|
readonly type: "error";
|
|
746
|
-
readonly name: "
|
|
747
|
-
readonly inputs: readonly [
|
|
1037
|
+
readonly name: "ERC721InvalidOperator";
|
|
1038
|
+
readonly inputs: readonly [{
|
|
1039
|
+
readonly name: "operator";
|
|
1040
|
+
readonly type: "address";
|
|
1041
|
+
readonly internalType: "address";
|
|
1042
|
+
}];
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly type: "error";
|
|
1045
|
+
readonly name: "ERC721InvalidOwner";
|
|
1046
|
+
readonly inputs: readonly [{
|
|
1047
|
+
readonly name: "owner";
|
|
1048
|
+
readonly type: "address";
|
|
1049
|
+
readonly internalType: "address";
|
|
1050
|
+
}];
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly type: "error";
|
|
1053
|
+
readonly name: "ERC721InvalidReceiver";
|
|
1054
|
+
readonly inputs: readonly [{
|
|
1055
|
+
readonly name: "receiver";
|
|
1056
|
+
readonly type: "address";
|
|
1057
|
+
readonly internalType: "address";
|
|
1058
|
+
}];
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly type: "error";
|
|
1061
|
+
readonly name: "ERC721InvalidSender";
|
|
1062
|
+
readonly inputs: readonly [{
|
|
1063
|
+
readonly name: "sender";
|
|
1064
|
+
readonly type: "address";
|
|
1065
|
+
readonly internalType: "address";
|
|
1066
|
+
}];
|
|
1067
|
+
}, {
|
|
1068
|
+
readonly type: "error";
|
|
1069
|
+
readonly name: "ERC721NonexistentToken";
|
|
1070
|
+
readonly inputs: readonly [{
|
|
1071
|
+
readonly name: "tokenId";
|
|
1072
|
+
readonly type: "uint256";
|
|
1073
|
+
readonly internalType: "uint256";
|
|
1074
|
+
}];
|
|
748
1075
|
}, {
|
|
749
1076
|
readonly type: "error";
|
|
750
1077
|
readonly name: "Expired";
|
|
@@ -761,6 +1088,10 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
761
1088
|
readonly type: "error";
|
|
762
1089
|
readonly name: "NoGroup";
|
|
763
1090
|
readonly inputs: readonly [];
|
|
1091
|
+
}, {
|
|
1092
|
+
readonly type: "error";
|
|
1093
|
+
readonly name: "NoPlan";
|
|
1094
|
+
readonly inputs: readonly [];
|
|
764
1095
|
}, {
|
|
765
1096
|
readonly type: "error";
|
|
766
1097
|
readonly name: "NonceNotBound";
|
|
@@ -769,6 +1100,10 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
769
1100
|
readonly type: "error";
|
|
770
1101
|
readonly name: "NotInitializing";
|
|
771
1102
|
readonly inputs: readonly [];
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly type: "error";
|
|
1105
|
+
readonly name: "NotTransferable";
|
|
1106
|
+
readonly inputs: readonly [];
|
|
772
1107
|
}, {
|
|
773
1108
|
readonly type: "error";
|
|
774
1109
|
readonly name: "ReentrancyGuardReentrantCall";
|
|
@@ -781,10 +1116,6 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
781
1116
|
readonly type: "address";
|
|
782
1117
|
readonly internalType: "address";
|
|
783
1118
|
}];
|
|
784
|
-
}, {
|
|
785
|
-
readonly type: "error";
|
|
786
|
-
readonly name: "StaleTerms";
|
|
787
|
-
readonly inputs: readonly [];
|
|
788
1119
|
}, {
|
|
789
1120
|
readonly type: "error";
|
|
790
1121
|
readonly name: "UUPSUnauthorizedCallContext";
|
|
@@ -801,10 +1132,14 @@ declare const SETTLEMENT_REGISTRY_ABI: readonly [{
|
|
|
801
1132
|
readonly type: "error";
|
|
802
1133
|
readonly name: "Unauthorized";
|
|
803
1134
|
readonly inputs: readonly [];
|
|
1135
|
+
}, {
|
|
1136
|
+
readonly type: "error";
|
|
1137
|
+
readonly name: "UseJoinAndClaim";
|
|
1138
|
+
readonly inputs: readonly [];
|
|
804
1139
|
}, {
|
|
805
1140
|
readonly type: "error";
|
|
806
1141
|
readonly name: "WrongAmount";
|
|
807
1142
|
readonly inputs: readonly [];
|
|
808
1143
|
}];
|
|
809
1144
|
//#endregion
|
|
810
|
-
export {
|
|
1145
|
+
export { MEMBERSHIP_REGISTRY_ABI };
|