@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
|
@@ -5,502 +5,299 @@
|
|
|
5
5
|
*/
|
|
6
6
|
const DATA_REGISTRY_ABI = [
|
|
7
7
|
{
|
|
8
|
-
type: "constructor",
|
|
9
|
-
inputs: [],
|
|
10
|
-
stateMutability: "nonpayable"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
type: "function",
|
|
14
|
-
name: "
|
|
15
|
-
inputs: [],
|
|
16
|
-
outputs: [{
|
|
17
|
-
name: "",
|
|
18
|
-
type: "
|
|
19
|
-
internalType: "
|
|
20
|
-
}],
|
|
21
|
-
stateMutability: "view"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
type: "function",
|
|
25
|
-
name: "UPDATE_TYPEHASH",
|
|
26
|
-
inputs: [],
|
|
27
|
-
outputs: [{
|
|
28
|
-
name: "",
|
|
29
|
-
type: "bytes32",
|
|
30
|
-
internalType: "bytes32"
|
|
31
|
-
}],
|
|
32
|
-
stateMutability: "view"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
type: "function",
|
|
36
|
-
name: "UPGRADE_INTERFACE_VERSION",
|
|
37
|
-
inputs: [],
|
|
38
|
-
outputs: [{
|
|
39
|
-
name: "",
|
|
40
|
-
type: "string",
|
|
41
|
-
internalType: "string"
|
|
42
|
-
}],
|
|
43
|
-
stateMutability: "view"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
type: "function",
|
|
47
|
-
name: "WINDOW",
|
|
48
|
-
inputs: [],
|
|
49
|
-
outputs: [{
|
|
50
|
-
name: "",
|
|
51
|
-
type: "uint64",
|
|
52
|
-
internalType: "uint64"
|
|
53
|
-
}],
|
|
54
|
-
stateMutability: "view"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
type: "function",
|
|
58
|
-
name: "admin",
|
|
59
|
-
inputs: [],
|
|
60
|
-
outputs: [{
|
|
61
|
-
name: "",
|
|
62
|
-
type: "address",
|
|
63
|
-
internalType: "address"
|
|
64
|
-
}],
|
|
65
|
-
stateMutability: "view"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: "function",
|
|
69
|
-
name: "commitHead",
|
|
70
|
-
inputs: [
|
|
71
|
-
{
|
|
72
|
-
name: "repo",
|
|
73
|
-
type: "string",
|
|
74
|
-
internalType: "string"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: "epoch",
|
|
78
|
-
type: "uint64",
|
|
79
|
-
internalType: "uint64"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: "parent",
|
|
83
|
-
type: "bytes32",
|
|
84
|
-
internalType: "bytes32"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: "root",
|
|
88
|
-
type: "bytes32",
|
|
89
|
-
internalType: "bytes32"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: "car",
|
|
93
|
-
type: "bytes",
|
|
94
|
-
internalType: "bytes"
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
outputs: [{
|
|
98
|
-
name: "",
|
|
99
|
-
type: "bytes32",
|
|
100
|
-
internalType: "bytes32"
|
|
8
|
+
"type": "constructor",
|
|
9
|
+
"inputs": [],
|
|
10
|
+
"stateMutability": "nonpayable"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "function",
|
|
14
|
+
"name": "UPGRADE_INTERFACE_VERSION",
|
|
15
|
+
"inputs": [],
|
|
16
|
+
"outputs": [{
|
|
17
|
+
"name": "",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"internalType": "string"
|
|
101
20
|
}],
|
|
102
|
-
stateMutability: "
|
|
21
|
+
"stateMutability": "view"
|
|
103
22
|
},
|
|
104
23
|
{
|
|
105
|
-
type: "function",
|
|
106
|
-
name: "
|
|
107
|
-
inputs: [],
|
|
108
|
-
outputs: [{
|
|
109
|
-
name: "",
|
|
110
|
-
type: "
|
|
111
|
-
internalType: "
|
|
24
|
+
"type": "function",
|
|
25
|
+
"name": "admin",
|
|
26
|
+
"inputs": [],
|
|
27
|
+
"outputs": [{
|
|
28
|
+
"name": "",
|
|
29
|
+
"type": "address",
|
|
30
|
+
"internalType": "address"
|
|
112
31
|
}],
|
|
113
|
-
stateMutability: "view"
|
|
32
|
+
"stateMutability": "view"
|
|
114
33
|
},
|
|
115
34
|
{
|
|
116
|
-
type: "function",
|
|
117
|
-
name: "
|
|
118
|
-
inputs: [],
|
|
119
|
-
outputs: [{
|
|
120
|
-
name: "",
|
|
121
|
-
type: "
|
|
122
|
-
internalType: "
|
|
35
|
+
"type": "function",
|
|
36
|
+
"name": "appRegistry",
|
|
37
|
+
"inputs": [],
|
|
38
|
+
"outputs": [{
|
|
39
|
+
"name": "",
|
|
40
|
+
"type": "address",
|
|
41
|
+
"internalType": "address"
|
|
123
42
|
}],
|
|
124
|
-
stateMutability: "view"
|
|
43
|
+
"stateMutability": "view"
|
|
125
44
|
},
|
|
126
45
|
{
|
|
127
|
-
type: "function",
|
|
128
|
-
name: "getHead",
|
|
129
|
-
inputs: [{
|
|
130
|
-
name: "publisher",
|
|
131
|
-
type: "address",
|
|
132
|
-
internalType: "address"
|
|
46
|
+
"type": "function",
|
|
47
|
+
"name": "getHead",
|
|
48
|
+
"inputs": [{
|
|
49
|
+
"name": "publisher",
|
|
50
|
+
"type": "address",
|
|
51
|
+
"internalType": "address"
|
|
133
52
|
}, {
|
|
134
|
-
name: "repo_id",
|
|
135
|
-
type: "bytes32",
|
|
136
|
-
internalType: "bytes32"
|
|
53
|
+
"name": "repo_id",
|
|
54
|
+
"type": "bytes32",
|
|
55
|
+
"internalType": "bytes32"
|
|
137
56
|
}],
|
|
138
|
-
outputs: [{
|
|
139
|
-
name: "pos",
|
|
140
|
-
type: "uint64",
|
|
141
|
-
internalType: "uint64"
|
|
57
|
+
"outputs": [{
|
|
58
|
+
"name": "pos",
|
|
59
|
+
"type": "uint64",
|
|
60
|
+
"internalType": "uint64"
|
|
142
61
|
}, {
|
|
143
|
-
name: "head",
|
|
144
|
-
type: "bytes32",
|
|
145
|
-
internalType: "bytes32"
|
|
146
|
-
}],
|
|
147
|
-
stateMutability: "view"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
type: "function",
|
|
151
|
-
name: "initialize",
|
|
152
|
-
inputs: [{
|
|
153
|
-
name: "admin_",
|
|
154
|
-
type: "address",
|
|
155
|
-
internalType: "address"
|
|
156
|
-
}],
|
|
157
|
-
outputs: [],
|
|
158
|
-
stateMutability: "nonpayable"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
type: "function",
|
|
162
|
-
name: "logLength",
|
|
163
|
-
inputs: [],
|
|
164
|
-
outputs: [{
|
|
165
|
-
name: "",
|
|
166
|
-
type: "uint64",
|
|
167
|
-
internalType: "uint64"
|
|
168
|
-
}],
|
|
169
|
-
stateMutability: "view"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
type: "function",
|
|
173
|
-
name: "logRoot",
|
|
174
|
-
inputs: [],
|
|
175
|
-
outputs: [{
|
|
176
|
-
name: "",
|
|
177
|
-
type: "bytes32",
|
|
178
|
-
internalType: "bytes32"
|
|
179
|
-
}],
|
|
180
|
-
stateMutability: "view"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
type: "function",
|
|
184
|
-
name: "peaks",
|
|
185
|
-
inputs: [{
|
|
186
|
-
name: "",
|
|
187
|
-
type: "uint256",
|
|
188
|
-
internalType: "uint256"
|
|
189
|
-
}],
|
|
190
|
-
outputs: [{
|
|
191
|
-
name: "",
|
|
192
|
-
type: "bytes32",
|
|
193
|
-
internalType: "bytes32"
|
|
62
|
+
"name": "head",
|
|
63
|
+
"type": "bytes32",
|
|
64
|
+
"internalType": "bytes32"
|
|
194
65
|
}],
|
|
195
|
-
stateMutability: "view"
|
|
66
|
+
"stateMutability": "view"
|
|
196
67
|
},
|
|
197
68
|
{
|
|
198
|
-
type: "function",
|
|
199
|
-
name: "
|
|
200
|
-
inputs: [
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
{
|
|
209
|
-
type: "function",
|
|
210
|
-
name: "repoCount",
|
|
211
|
-
inputs: [{
|
|
212
|
-
name: "publisher",
|
|
213
|
-
type: "address",
|
|
214
|
-
internalType: "address"
|
|
215
|
-
}],
|
|
216
|
-
outputs: [{
|
|
217
|
-
name: "",
|
|
218
|
-
type: "uint256",
|
|
219
|
-
internalType: "uint256"
|
|
69
|
+
"type": "function",
|
|
70
|
+
"name": "initialize",
|
|
71
|
+
"inputs": [{
|
|
72
|
+
"name": "admin_",
|
|
73
|
+
"type": "address",
|
|
74
|
+
"internalType": "address"
|
|
75
|
+
}, {
|
|
76
|
+
"name": "appRegistry_",
|
|
77
|
+
"type": "address",
|
|
78
|
+
"internalType": "address"
|
|
220
79
|
}],
|
|
221
|
-
|
|
80
|
+
"outputs": [],
|
|
81
|
+
"stateMutability": "nonpayable"
|
|
222
82
|
},
|
|
223
83
|
{
|
|
224
|
-
type: "function",
|
|
225
|
-
name: "
|
|
226
|
-
inputs: [
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
name: "",
|
|
232
|
-
type: "uint256",
|
|
233
|
-
internalType: "uint256"
|
|
234
|
-
}],
|
|
235
|
-
outputs: [{
|
|
236
|
-
name: "",
|
|
237
|
-
type: "bytes32",
|
|
238
|
-
internalType: "bytes32"
|
|
84
|
+
"type": "function",
|
|
85
|
+
"name": "proxiableUUID",
|
|
86
|
+
"inputs": [],
|
|
87
|
+
"outputs": [{
|
|
88
|
+
"name": "",
|
|
89
|
+
"type": "bytes32",
|
|
90
|
+
"internalType": "bytes32"
|
|
239
91
|
}],
|
|
240
|
-
stateMutability: "view"
|
|
92
|
+
"stateMutability": "view"
|
|
241
93
|
},
|
|
242
94
|
{
|
|
243
|
-
type: "function",
|
|
244
|
-
name: "setAdmin",
|
|
245
|
-
inputs: [{
|
|
246
|
-
name: "new_admin",
|
|
247
|
-
type: "address",
|
|
248
|
-
internalType: "address"
|
|
95
|
+
"type": "function",
|
|
96
|
+
"name": "setAdmin",
|
|
97
|
+
"inputs": [{
|
|
98
|
+
"name": "new_admin",
|
|
99
|
+
"type": "address",
|
|
100
|
+
"internalType": "address"
|
|
249
101
|
}],
|
|
250
|
-
outputs: [],
|
|
251
|
-
stateMutability: "nonpayable"
|
|
102
|
+
"outputs": [],
|
|
103
|
+
"stateMutability": "nonpayable"
|
|
252
104
|
},
|
|
253
105
|
{
|
|
254
|
-
type: "function",
|
|
255
|
-
name: "
|
|
256
|
-
inputs: [
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
internalType: "string"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
name: "epoch",
|
|
264
|
-
type: "uint64",
|
|
265
|
-
internalType: "uint64"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
name: "parent",
|
|
269
|
-
type: "bytes32",
|
|
270
|
-
internalType: "bytes32"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
name: "root",
|
|
274
|
-
type: "bytes32",
|
|
275
|
-
internalType: "bytes32"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
name: "car",
|
|
279
|
-
type: "bytes",
|
|
280
|
-
internalType: "bytes"
|
|
281
|
-
}
|
|
282
|
-
],
|
|
283
|
-
outputs: [{
|
|
284
|
-
name: "",
|
|
285
|
-
type: "bytes32",
|
|
286
|
-
internalType: "bytes32"
|
|
106
|
+
"type": "function",
|
|
107
|
+
"name": "setAppRegistry",
|
|
108
|
+
"inputs": [{
|
|
109
|
+
"name": "registry",
|
|
110
|
+
"type": "address",
|
|
111
|
+
"internalType": "address"
|
|
287
112
|
}],
|
|
288
|
-
|
|
113
|
+
"outputs": [],
|
|
114
|
+
"stateMutability": "nonpayable"
|
|
289
115
|
},
|
|
290
116
|
{
|
|
291
|
-
type: "function",
|
|
292
|
-
name: "
|
|
293
|
-
inputs: [
|
|
294
|
-
{
|
|
295
|
-
name: "publisher",
|
|
296
|
-
type: "address",
|
|
297
|
-
internalType: "address"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
name: "repo",
|
|
301
|
-
type: "string",
|
|
302
|
-
internalType: "string"
|
|
303
|
-
},
|
|
117
|
+
"type": "function",
|
|
118
|
+
"name": "update",
|
|
119
|
+
"inputs": [
|
|
304
120
|
{
|
|
305
|
-
name: "
|
|
306
|
-
type: "
|
|
307
|
-
internalType: "
|
|
121
|
+
"name": "repo",
|
|
122
|
+
"type": "string",
|
|
123
|
+
"internalType": "string"
|
|
308
124
|
},
|
|
309
125
|
{
|
|
310
|
-
name: "parent",
|
|
311
|
-
type: "bytes32",
|
|
312
|
-
internalType: "bytes32"
|
|
126
|
+
"name": "parent",
|
|
127
|
+
"type": "bytes32",
|
|
128
|
+
"internalType": "bytes32"
|
|
313
129
|
},
|
|
314
130
|
{
|
|
315
|
-
name: "
|
|
316
|
-
type: "bytes32",
|
|
317
|
-
internalType: "bytes32"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
name: "car",
|
|
321
|
-
type: "bytes",
|
|
322
|
-
internalType: "bytes"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
name: "signature",
|
|
326
|
-
type: "bytes",
|
|
327
|
-
internalType: "bytes"
|
|
131
|
+
"name": "head",
|
|
132
|
+
"type": "bytes32",
|
|
133
|
+
"internalType": "bytes32"
|
|
328
134
|
}
|
|
329
135
|
],
|
|
330
|
-
outputs: [
|
|
331
|
-
|
|
332
|
-
type: "bytes32",
|
|
333
|
-
internalType: "bytes32"
|
|
334
|
-
}],
|
|
335
|
-
stateMutability: "nonpayable"
|
|
136
|
+
"outputs": [],
|
|
137
|
+
"stateMutability": "nonpayable"
|
|
336
138
|
},
|
|
337
139
|
{
|
|
338
|
-
type: "function",
|
|
339
|
-
name: "upgradeToAndCall",
|
|
340
|
-
inputs: [{
|
|
341
|
-
name: "newImplementation",
|
|
342
|
-
type: "address",
|
|
343
|
-
internalType: "address"
|
|
140
|
+
"type": "function",
|
|
141
|
+
"name": "upgradeToAndCall",
|
|
142
|
+
"inputs": [{
|
|
143
|
+
"name": "newImplementation",
|
|
144
|
+
"type": "address",
|
|
145
|
+
"internalType": "address"
|
|
344
146
|
}, {
|
|
345
|
-
name: "data",
|
|
346
|
-
type: "bytes",
|
|
347
|
-
internalType: "bytes"
|
|
147
|
+
"name": "data",
|
|
148
|
+
"type": "bytes",
|
|
149
|
+
"internalType": "bytes"
|
|
348
150
|
}],
|
|
349
|
-
outputs: [],
|
|
350
|
-
stateMutability: "payable"
|
|
151
|
+
"outputs": [],
|
|
152
|
+
"stateMutability": "payable"
|
|
351
153
|
},
|
|
352
154
|
{
|
|
353
|
-
type: "event",
|
|
354
|
-
name: "AdminChanged",
|
|
355
|
-
inputs: [{
|
|
356
|
-
name: "previous_admin",
|
|
357
|
-
type: "address",
|
|
358
|
-
indexed: false,
|
|
359
|
-
internalType: "address"
|
|
155
|
+
"type": "event",
|
|
156
|
+
"name": "AdminChanged",
|
|
157
|
+
"inputs": [{
|
|
158
|
+
"name": "previous_admin",
|
|
159
|
+
"type": "address",
|
|
160
|
+
"indexed": false,
|
|
161
|
+
"internalType": "address"
|
|
360
162
|
}, {
|
|
361
|
-
name: "new_admin",
|
|
362
|
-
type: "address",
|
|
363
|
-
indexed: false,
|
|
364
|
-
internalType: "address"
|
|
163
|
+
"name": "new_admin",
|
|
164
|
+
"type": "address",
|
|
165
|
+
"indexed": false,
|
|
166
|
+
"internalType": "address"
|
|
365
167
|
}],
|
|
366
|
-
anonymous: false
|
|
168
|
+
"anonymous": false
|
|
367
169
|
},
|
|
368
170
|
{
|
|
369
|
-
type: "event",
|
|
370
|
-
name: "Initialized",
|
|
371
|
-
inputs: [{
|
|
372
|
-
name: "version",
|
|
373
|
-
type: "uint64",
|
|
374
|
-
indexed: false,
|
|
375
|
-
internalType: "uint64"
|
|
171
|
+
"type": "event",
|
|
172
|
+
"name": "Initialized",
|
|
173
|
+
"inputs": [{
|
|
174
|
+
"name": "version",
|
|
175
|
+
"type": "uint64",
|
|
176
|
+
"indexed": false,
|
|
177
|
+
"internalType": "uint64"
|
|
376
178
|
}],
|
|
377
|
-
anonymous: false
|
|
179
|
+
"anonymous": false
|
|
378
180
|
},
|
|
379
181
|
{
|
|
380
|
-
type: "event",
|
|
381
|
-
name: "Updated",
|
|
382
|
-
inputs: [
|
|
182
|
+
"type": "event",
|
|
183
|
+
"name": "Updated",
|
|
184
|
+
"inputs": [
|
|
383
185
|
{
|
|
384
|
-
name: "publisher",
|
|
385
|
-
type: "address",
|
|
386
|
-
indexed: true,
|
|
387
|
-
internalType: "address"
|
|
186
|
+
"name": "publisher",
|
|
187
|
+
"type": "address",
|
|
188
|
+
"indexed": true,
|
|
189
|
+
"internalType": "address"
|
|
388
190
|
},
|
|
389
191
|
{
|
|
390
|
-
name: "repo_id",
|
|
391
|
-
type: "bytes32",
|
|
392
|
-
indexed: true,
|
|
393
|
-
internalType: "bytes32"
|
|
192
|
+
"name": "repo_id",
|
|
193
|
+
"type": "bytes32",
|
|
194
|
+
"indexed": true,
|
|
195
|
+
"internalType": "bytes32"
|
|
394
196
|
},
|
|
395
197
|
{
|
|
396
|
-
name: "repo",
|
|
397
|
-
type: "string",
|
|
398
|
-
indexed: false,
|
|
399
|
-
internalType: "string"
|
|
198
|
+
"name": "repo",
|
|
199
|
+
"type": "string",
|
|
200
|
+
"indexed": false,
|
|
201
|
+
"internalType": "string"
|
|
400
202
|
},
|
|
401
203
|
{
|
|
402
|
-
name: "pos",
|
|
403
|
-
type: "uint64",
|
|
404
|
-
indexed: false,
|
|
405
|
-
internalType: "uint64"
|
|
204
|
+
"name": "pos",
|
|
205
|
+
"type": "uint64",
|
|
206
|
+
"indexed": false,
|
|
207
|
+
"internalType": "uint64"
|
|
406
208
|
},
|
|
407
209
|
{
|
|
408
|
-
name: "parent",
|
|
409
|
-
type: "bytes32",
|
|
410
|
-
indexed: false,
|
|
411
|
-
internalType: "bytes32"
|
|
210
|
+
"name": "parent",
|
|
211
|
+
"type": "bytes32",
|
|
212
|
+
"indexed": false,
|
|
213
|
+
"internalType": "bytes32"
|
|
412
214
|
},
|
|
413
215
|
{
|
|
414
|
-
name: "head",
|
|
415
|
-
type: "bytes32",
|
|
416
|
-
indexed: false,
|
|
417
|
-
internalType: "bytes32"
|
|
216
|
+
"name": "head",
|
|
217
|
+
"type": "bytes32",
|
|
218
|
+
"indexed": false,
|
|
219
|
+
"internalType": "bytes32"
|
|
418
220
|
}
|
|
419
221
|
],
|
|
420
|
-
anonymous: false
|
|
222
|
+
"anonymous": false
|
|
421
223
|
},
|
|
422
224
|
{
|
|
423
|
-
type: "event",
|
|
424
|
-
name: "Upgraded",
|
|
425
|
-
inputs: [{
|
|
426
|
-
name: "implementation",
|
|
427
|
-
type: "address",
|
|
428
|
-
indexed: true,
|
|
429
|
-
internalType: "address"
|
|
225
|
+
"type": "event",
|
|
226
|
+
"name": "Upgraded",
|
|
227
|
+
"inputs": [{
|
|
228
|
+
"name": "implementation",
|
|
229
|
+
"type": "address",
|
|
230
|
+
"indexed": true,
|
|
231
|
+
"internalType": "address"
|
|
430
232
|
}],
|
|
431
|
-
anonymous: false
|
|
233
|
+
"anonymous": false
|
|
432
234
|
},
|
|
433
235
|
{
|
|
434
|
-
type: "error",
|
|
435
|
-
name: "AddressEmptyCode",
|
|
436
|
-
inputs: [{
|
|
437
|
-
name: "target",
|
|
438
|
-
type: "address",
|
|
439
|
-
internalType: "address"
|
|
236
|
+
"type": "error",
|
|
237
|
+
"name": "AddressEmptyCode",
|
|
238
|
+
"inputs": [{
|
|
239
|
+
"name": "target",
|
|
240
|
+
"type": "address",
|
|
241
|
+
"internalType": "address"
|
|
440
242
|
}]
|
|
441
243
|
},
|
|
442
244
|
{
|
|
443
|
-
type: "error",
|
|
444
|
-
name: "
|
|
445
|
-
inputs: [
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
name: "ERC1967InvalidImplementation",
|
|
450
|
-
inputs: [{
|
|
451
|
-
name: "implementation",
|
|
452
|
-
type: "address",
|
|
453
|
-
internalType: "address"
|
|
245
|
+
"type": "error",
|
|
246
|
+
"name": "ERC1967InvalidImplementation",
|
|
247
|
+
"inputs": [{
|
|
248
|
+
"name": "implementation",
|
|
249
|
+
"type": "address",
|
|
250
|
+
"internalType": "address"
|
|
454
251
|
}]
|
|
455
252
|
},
|
|
456
253
|
{
|
|
457
|
-
type: "error",
|
|
458
|
-
name: "ERC1967NonPayable",
|
|
459
|
-
inputs: []
|
|
254
|
+
"type": "error",
|
|
255
|
+
"name": "ERC1967NonPayable",
|
|
256
|
+
"inputs": []
|
|
460
257
|
},
|
|
461
258
|
{
|
|
462
|
-
type: "error",
|
|
463
|
-
name: "
|
|
464
|
-
inputs: []
|
|
259
|
+
"type": "error",
|
|
260
|
+
"name": "FailedCall",
|
|
261
|
+
"inputs": []
|
|
465
262
|
},
|
|
466
263
|
{
|
|
467
|
-
type: "error",
|
|
468
|
-
name: "
|
|
469
|
-
inputs: []
|
|
264
|
+
"type": "error",
|
|
265
|
+
"name": "InvalidInitialization",
|
|
266
|
+
"inputs": []
|
|
470
267
|
},
|
|
471
268
|
{
|
|
472
|
-
type: "error",
|
|
473
|
-
name: "
|
|
474
|
-
inputs: []
|
|
269
|
+
"type": "error",
|
|
270
|
+
"name": "NotInitializing",
|
|
271
|
+
"inputs": []
|
|
475
272
|
},
|
|
476
273
|
{
|
|
477
|
-
type: "error",
|
|
478
|
-
name: "
|
|
479
|
-
inputs: []
|
|
274
|
+
"type": "error",
|
|
275
|
+
"name": "StaleStateRoot",
|
|
276
|
+
"inputs": []
|
|
480
277
|
},
|
|
481
278
|
{
|
|
482
|
-
type: "error",
|
|
483
|
-
name: "
|
|
484
|
-
inputs: []
|
|
279
|
+
"type": "error",
|
|
280
|
+
"name": "UUPSUnauthorizedCallContext",
|
|
281
|
+
"inputs": []
|
|
485
282
|
},
|
|
486
283
|
{
|
|
487
|
-
type: "error",
|
|
488
|
-
name: "
|
|
489
|
-
inputs: [
|
|
284
|
+
"type": "error",
|
|
285
|
+
"name": "UUPSUnsupportedProxiableUUID",
|
|
286
|
+
"inputs": [{
|
|
287
|
+
"name": "slot",
|
|
288
|
+
"type": "bytes32",
|
|
289
|
+
"internalType": "bytes32"
|
|
290
|
+
}]
|
|
490
291
|
},
|
|
491
292
|
{
|
|
492
|
-
type: "error",
|
|
493
|
-
name: "
|
|
494
|
-
inputs: [
|
|
495
|
-
name: "slot",
|
|
496
|
-
type: "bytes32",
|
|
497
|
-
internalType: "bytes32"
|
|
498
|
-
}]
|
|
293
|
+
"type": "error",
|
|
294
|
+
"name": "Unauthorized",
|
|
295
|
+
"inputs": []
|
|
499
296
|
},
|
|
500
297
|
{
|
|
501
|
-
type: "error",
|
|
502
|
-
name: "
|
|
503
|
-
inputs: []
|
|
298
|
+
"type": "error",
|
|
299
|
+
"name": "ZeroHead",
|
|
300
|
+
"inputs": []
|
|
504
301
|
}
|
|
505
302
|
];
|
|
506
303
|
|