@fangorn-network/sdk 0.1.0-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/LICENSE.md +20 -0
- package/README.md +80 -0
- package/lib/cli/cli.d.ts +2 -0
- package/lib/cli/cli.js +571 -0
- package/lib/cli/index.d.ts +10 -0
- package/lib/cli/index.js +18 -0
- package/lib/cli/sell.d.ts +28 -0
- package/lib/cli/sell.js +95 -0
- package/lib/cli/stage.d.ts +19 -0
- package/lib/cli/stage.js +94 -0
- package/lib/config.d.ts +697 -0
- package/lib/config.js +45 -0
- package/lib/contracts/data-registry/abi.d.ts +442 -0
- package/lib/contracts/data-registry/abi.js +508 -0
- package/lib/contracts/data-registry/index.d.ts +131 -0
- package/lib/contracts/data-registry/index.js +183 -0
- package/lib/contracts/index.d.ts +6 -0
- package/lib/contracts/index.js +6 -0
- package/lib/contracts/logs.d.ts +17 -0
- package/lib/contracts/logs.js +28 -0
- package/lib/contracts/settlement-registry/abi.d.ts +810 -0
- package/lib/contracts/settlement-registry/abi.js +962 -0
- package/lib/contracts/settlement-registry/index.d.ts +143 -0
- package/lib/contracts/settlement-registry/index.js +213 -0
- package/lib/contracts/write.d.ts +59 -0
- package/lib/contracts/write.js +102 -0
- package/lib/crypto/aes.d.ts +19 -0
- package/lib/crypto/aes.js +26 -0
- package/lib/crypto/encryption.d.ts +38 -0
- package/lib/crypto/encryption.js +68 -0
- package/lib/crypto/paid.d.ts +104 -0
- package/lib/crypto/paid.js +147 -0
- package/lib/crypto/rand.d.ts +5 -0
- package/lib/crypto/rand.js +16 -0
- package/lib/crypto/types.d.ts +23 -0
- package/lib/crypto/types.js +1 -0
- package/lib/engine/car.d.ts +14 -0
- package/lib/engine/car.js +42 -0
- package/lib/engine/index.d.ts +206 -0
- package/lib/engine/index.js +377 -0
- package/lib/engine/records.d.ts +121 -0
- package/lib/engine/records.js +239 -0
- package/lib/engine/test-helpers.d.ts +38 -0
- package/lib/engine/test-helpers.js +63 -0
- package/lib/erc8004.d.ts +56 -0
- package/lib/erc8004.js +140 -0
- package/lib/fangorn.d.ts +342 -0
- package/lib/fangorn.js +642 -0
- package/lib/feed.d.ts +34 -0
- package/lib/feed.js +67 -0
- package/lib/index.d.ts +17 -0
- package/lib/index.js +16 -0
- package/lib/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
- package/lib/node_modules/@vitest/expect/dist/index.js +1414 -0
- package/lib/node_modules/@vitest/pretty-format/dist/index.js +858 -0
- package/lib/node_modules/@vitest/runner/dist/chunk-tasks.js +51 -0
- package/lib/node_modules/@vitest/runner/dist/index.js +1199 -0
- package/lib/node_modules/@vitest/runner/dist/utils.js +3 -0
- package/lib/node_modules/@vitest/snapshot/dist/index.js +1075 -0
- package/lib/node_modules/@vitest/spy/dist/index.js +353 -0
- package/lib/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +7 -0
- package/lib/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +81 -0
- package/lib/node_modules/@vitest/utils/dist/diff.js +1345 -0
- package/lib/node_modules/@vitest/utils/dist/display.js +534 -0
- package/lib/node_modules/@vitest/utils/dist/error.js +30 -0
- package/lib/node_modules/@vitest/utils/dist/helpers.js +118 -0
- package/lib/node_modules/@vitest/utils/dist/serialize.js +76 -0
- package/lib/node_modules/@vitest/utils/dist/source-map.js +93 -0
- package/lib/node_modules/@vitest/utils/dist/timers.js +36 -0
- package/lib/node_modules/chai/index.js +2874 -0
- package/lib/node_modules/magic-string/dist/magic-string.es.js +939 -0
- package/lib/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
- package/lib/node_modules/tinyrainbow/dist/index.js +85 -0
- package/lib/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +5 -0
- package/lib/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +50 -0
- package/lib/node_modules/vitest/dist/chunks/utils.DvEY5TfP.js +44 -0
- package/lib/node_modules/vitest/dist/chunks/vi.2VT5v0um.js +2578 -0
- package/lib/providers/storage/car.d.ts +36 -0
- package/lib/providers/storage/car.js +81 -0
- package/lib/providers/storage/index.d.ts +5 -0
- package/lib/providers/storage/index.js +5 -0
- package/lib/providers/storage/pinata.d.ts +53 -0
- package/lib/providers/storage/pinata.js +178 -0
- package/lib/providers/storage/signed-url.d.ts +54 -0
- package/lib/providers/storage/signed-url.js +122 -0
- package/lib/providers/storage/types.d.ts +62 -0
- package/lib/providers/storage/types.js +1 -0
- package/lib/providers/storage/utils.d.ts +30 -0
- package/lib/providers/storage/utils.js +107 -0
- package/lib/repo/index.d.ts +56 -0
- package/lib/repo/index.js +73 -0
- package/lib/test/key-server.d.ts +12 -0
- package/lib/test/key-server.js +30 -0
- package/lib/test/mem-registry.d.ts +46 -0
- package/lib/test/mem-registry.js +114 -0
- package/lib/test/sdk-suite.d.ts +10 -0
- package/lib/test/sdk-suite.js +155 -0
- package/lib/test/testbed.d.ts +16786 -0
- package/lib/test/testbed.js +175 -0
- package/lib/types/index.d.ts +37 -0
- package/lib/types/index.js +1 -0
- package/package.json +87 -0
package/lib/config.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { baseSepolia } from "viem/chains";
|
|
2
|
+
|
|
3
|
+
//#region src/config.ts
|
|
4
|
+
/**
|
|
5
|
+
* Blank input means "not set", never a value of "". Returns the trimmed value,
|
|
6
|
+
* or undefined when it is missing or only whitespace, so it can sit on the left of
|
|
7
|
+
* a `??` fallback. `??` on the raw value would let "" through: it is not nullish.
|
|
8
|
+
*/
|
|
9
|
+
function nonBlank(value) {
|
|
10
|
+
const trimmed = value?.trim();
|
|
11
|
+
return trimmed === "" ? void 0 : trimmed;
|
|
12
|
+
}
|
|
13
|
+
const BaseSepoliaConfig = {
|
|
14
|
+
dataRegistryContractAddress: "0x0F3eb0E62CF610dbaC6B3aD4Bf4cE38Ab50EBCC5",
|
|
15
|
+
settlementRegistryContractAddress: "0x61A5A195B54F57ada786Ba6689CdB04553cf7fBc",
|
|
16
|
+
fromBlock: 53592845n,
|
|
17
|
+
chain: baseSepolia,
|
|
18
|
+
rpcUrl: "https://base-sepolia-rpc.publicnode.com",
|
|
19
|
+
caip2: 84532,
|
|
20
|
+
ipfsGateway: "https://ipfs-test.fangorn.network",
|
|
21
|
+
logWindow: 50000n,
|
|
22
|
+
signedUrlWorker: "https://base-sepolia.storage-worker.fangorn.network"
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The default network: what `Fangorn.create` uses without a `config`, and the CLI
|
|
26
|
+
* without `CHAIN_NAME`. Base Sepolia, which runs the contracts this SDK's ABIs are
|
|
27
|
+
* built from.
|
|
28
|
+
*/
|
|
29
|
+
const FangornConfig = BaseSepoliaConfig;
|
|
30
|
+
/**
|
|
31
|
+
* The networks supported by Fangorn, by the name `CHAIN_NAME` takes.
|
|
32
|
+
*/
|
|
33
|
+
const SupportedNetworks = { baseSepolia: BaseSepoliaConfig };
|
|
34
|
+
/**
|
|
35
|
+
* Get a network's deployment by name ("baseSepolia").
|
|
36
|
+
* @returns The corresponding config if it is supported, otherwise an error
|
|
37
|
+
*/
|
|
38
|
+
function getNetwork(name) {
|
|
39
|
+
const config = SupportedNetworks[name];
|
|
40
|
+
if (!config) throw new Error(`Chain ${name} is not supported. Use one of: ${Object.keys(SupportedNetworks).join(", ")}`);
|
|
41
|
+
return config;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { BaseSepoliaConfig, FangornConfig, SupportedNetworks, getNetwork as default, nonBlank };
|
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
//#region src/contracts/data-registry/abi.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Generated from `forge inspect DataRegistry abi` in fangorn-network/contracts
|
|
4
|
+
* (solidity/src/DataRegistry.sol). Regenerate with scripts/gen-abis.sh, do not edit.
|
|
5
|
+
*/
|
|
6
|
+
declare const DATA_REGISTRY_ABI: readonly [{
|
|
7
|
+
readonly type: "constructor";
|
|
8
|
+
readonly inputs: readonly [];
|
|
9
|
+
readonly stateMutability: "nonpayable";
|
|
10
|
+
}, {
|
|
11
|
+
readonly type: "function";
|
|
12
|
+
readonly name: "EPOCH_SECONDS";
|
|
13
|
+
readonly inputs: readonly [];
|
|
14
|
+
readonly outputs: readonly [{
|
|
15
|
+
readonly name: "";
|
|
16
|
+
readonly type: "uint64";
|
|
17
|
+
readonly internalType: "uint64";
|
|
18
|
+
}];
|
|
19
|
+
readonly stateMutability: "view";
|
|
20
|
+
}, {
|
|
21
|
+
readonly type: "function";
|
|
22
|
+
readonly name: "UPDATE_TYPEHASH";
|
|
23
|
+
readonly inputs: readonly [];
|
|
24
|
+
readonly outputs: readonly [{
|
|
25
|
+
readonly name: "";
|
|
26
|
+
readonly type: "bytes32";
|
|
27
|
+
readonly internalType: "bytes32";
|
|
28
|
+
}];
|
|
29
|
+
readonly stateMutability: "view";
|
|
30
|
+
}, {
|
|
31
|
+
readonly type: "function";
|
|
32
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
33
|
+
readonly inputs: readonly [];
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly name: "";
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
readonly internalType: "string";
|
|
38
|
+
}];
|
|
39
|
+
readonly stateMutability: "view";
|
|
40
|
+
}, {
|
|
41
|
+
readonly type: "function";
|
|
42
|
+
readonly name: "WINDOW";
|
|
43
|
+
readonly inputs: readonly [];
|
|
44
|
+
readonly outputs: readonly [{
|
|
45
|
+
readonly name: "";
|
|
46
|
+
readonly type: "uint64";
|
|
47
|
+
readonly internalType: "uint64";
|
|
48
|
+
}];
|
|
49
|
+
readonly stateMutability: "view";
|
|
50
|
+
}, {
|
|
51
|
+
readonly type: "function";
|
|
52
|
+
readonly name: "admin";
|
|
53
|
+
readonly inputs: readonly [];
|
|
54
|
+
readonly outputs: readonly [{
|
|
55
|
+
readonly name: "";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
}];
|
|
59
|
+
readonly stateMutability: "view";
|
|
60
|
+
}, {
|
|
61
|
+
readonly type: "function";
|
|
62
|
+
readonly name: "commitHead";
|
|
63
|
+
readonly inputs: readonly [{
|
|
64
|
+
readonly name: "repo";
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly internalType: "string";
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "epoch";
|
|
69
|
+
readonly type: "uint64";
|
|
70
|
+
readonly internalType: "uint64";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "parent";
|
|
73
|
+
readonly type: "bytes32";
|
|
74
|
+
readonly internalType: "bytes32";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "root";
|
|
77
|
+
readonly type: "bytes32";
|
|
78
|
+
readonly internalType: "bytes32";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "car";
|
|
81
|
+
readonly type: "bytes";
|
|
82
|
+
readonly internalType: "bytes";
|
|
83
|
+
}];
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly name: "";
|
|
86
|
+
readonly type: "bytes32";
|
|
87
|
+
readonly internalType: "bytes32";
|
|
88
|
+
}];
|
|
89
|
+
readonly stateMutability: "pure";
|
|
90
|
+
}, {
|
|
91
|
+
readonly type: "function";
|
|
92
|
+
readonly name: "currentEpoch";
|
|
93
|
+
readonly inputs: readonly [];
|
|
94
|
+
readonly outputs: readonly [{
|
|
95
|
+
readonly name: "";
|
|
96
|
+
readonly type: "uint64";
|
|
97
|
+
readonly internalType: "uint64";
|
|
98
|
+
}];
|
|
99
|
+
readonly stateMutability: "view";
|
|
100
|
+
}, {
|
|
101
|
+
readonly type: "function";
|
|
102
|
+
readonly name: "domainSeparator";
|
|
103
|
+
readonly inputs: readonly [];
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly name: "";
|
|
106
|
+
readonly type: "bytes32";
|
|
107
|
+
readonly internalType: "bytes32";
|
|
108
|
+
}];
|
|
109
|
+
readonly stateMutability: "view";
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "function";
|
|
112
|
+
readonly name: "getHead";
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly name: "publisher";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "repo_id";
|
|
119
|
+
readonly type: "bytes32";
|
|
120
|
+
readonly internalType: "bytes32";
|
|
121
|
+
}];
|
|
122
|
+
readonly outputs: readonly [{
|
|
123
|
+
readonly name: "pos";
|
|
124
|
+
readonly type: "uint64";
|
|
125
|
+
readonly internalType: "uint64";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "head";
|
|
128
|
+
readonly type: "bytes32";
|
|
129
|
+
readonly internalType: "bytes32";
|
|
130
|
+
}];
|
|
131
|
+
readonly stateMutability: "view";
|
|
132
|
+
}, {
|
|
133
|
+
readonly type: "function";
|
|
134
|
+
readonly name: "initialize";
|
|
135
|
+
readonly inputs: readonly [{
|
|
136
|
+
readonly name: "admin_";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
readonly internalType: "address";
|
|
139
|
+
}];
|
|
140
|
+
readonly outputs: readonly [];
|
|
141
|
+
readonly stateMutability: "nonpayable";
|
|
142
|
+
}, {
|
|
143
|
+
readonly type: "function";
|
|
144
|
+
readonly name: "logLength";
|
|
145
|
+
readonly inputs: readonly [];
|
|
146
|
+
readonly outputs: readonly [{
|
|
147
|
+
readonly name: "";
|
|
148
|
+
readonly type: "uint64";
|
|
149
|
+
readonly internalType: "uint64";
|
|
150
|
+
}];
|
|
151
|
+
readonly stateMutability: "view";
|
|
152
|
+
}, {
|
|
153
|
+
readonly type: "function";
|
|
154
|
+
readonly name: "logRoot";
|
|
155
|
+
readonly inputs: readonly [];
|
|
156
|
+
readonly outputs: readonly [{
|
|
157
|
+
readonly name: "";
|
|
158
|
+
readonly type: "bytes32";
|
|
159
|
+
readonly internalType: "bytes32";
|
|
160
|
+
}];
|
|
161
|
+
readonly stateMutability: "view";
|
|
162
|
+
}, {
|
|
163
|
+
readonly type: "function";
|
|
164
|
+
readonly name: "peaks";
|
|
165
|
+
readonly inputs: readonly [{
|
|
166
|
+
readonly name: "";
|
|
167
|
+
readonly type: "uint256";
|
|
168
|
+
readonly internalType: "uint256";
|
|
169
|
+
}];
|
|
170
|
+
readonly outputs: readonly [{
|
|
171
|
+
readonly name: "";
|
|
172
|
+
readonly type: "bytes32";
|
|
173
|
+
readonly internalType: "bytes32";
|
|
174
|
+
}];
|
|
175
|
+
readonly stateMutability: "view";
|
|
176
|
+
}, {
|
|
177
|
+
readonly type: "function";
|
|
178
|
+
readonly name: "proxiableUUID";
|
|
179
|
+
readonly inputs: readonly [];
|
|
180
|
+
readonly outputs: readonly [{
|
|
181
|
+
readonly name: "";
|
|
182
|
+
readonly type: "bytes32";
|
|
183
|
+
readonly internalType: "bytes32";
|
|
184
|
+
}];
|
|
185
|
+
readonly stateMutability: "view";
|
|
186
|
+
}, {
|
|
187
|
+
readonly type: "function";
|
|
188
|
+
readonly name: "repoCount";
|
|
189
|
+
readonly inputs: readonly [{
|
|
190
|
+
readonly name: "publisher";
|
|
191
|
+
readonly type: "address";
|
|
192
|
+
readonly internalType: "address";
|
|
193
|
+
}];
|
|
194
|
+
readonly outputs: readonly [{
|
|
195
|
+
readonly name: "";
|
|
196
|
+
readonly type: "uint256";
|
|
197
|
+
readonly internalType: "uint256";
|
|
198
|
+
}];
|
|
199
|
+
readonly stateMutability: "view";
|
|
200
|
+
}, {
|
|
201
|
+
readonly type: "function";
|
|
202
|
+
readonly name: "repoIds";
|
|
203
|
+
readonly inputs: readonly [{
|
|
204
|
+
readonly name: "";
|
|
205
|
+
readonly type: "address";
|
|
206
|
+
readonly internalType: "address";
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "";
|
|
209
|
+
readonly type: "uint256";
|
|
210
|
+
readonly internalType: "uint256";
|
|
211
|
+
}];
|
|
212
|
+
readonly outputs: readonly [{
|
|
213
|
+
readonly name: "";
|
|
214
|
+
readonly type: "bytes32";
|
|
215
|
+
readonly internalType: "bytes32";
|
|
216
|
+
}];
|
|
217
|
+
readonly stateMutability: "view";
|
|
218
|
+
}, {
|
|
219
|
+
readonly type: "function";
|
|
220
|
+
readonly name: "setAdmin";
|
|
221
|
+
readonly inputs: readonly [{
|
|
222
|
+
readonly name: "new_admin";
|
|
223
|
+
readonly type: "address";
|
|
224
|
+
readonly internalType: "address";
|
|
225
|
+
}];
|
|
226
|
+
readonly outputs: readonly [];
|
|
227
|
+
readonly stateMutability: "nonpayable";
|
|
228
|
+
}, {
|
|
229
|
+
readonly type: "function";
|
|
230
|
+
readonly name: "update";
|
|
231
|
+
readonly inputs: readonly [{
|
|
232
|
+
readonly name: "repo";
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
readonly internalType: "string";
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "epoch";
|
|
237
|
+
readonly type: "uint64";
|
|
238
|
+
readonly internalType: "uint64";
|
|
239
|
+
}, {
|
|
240
|
+
readonly name: "parent";
|
|
241
|
+
readonly type: "bytes32";
|
|
242
|
+
readonly internalType: "bytes32";
|
|
243
|
+
}, {
|
|
244
|
+
readonly name: "root";
|
|
245
|
+
readonly type: "bytes32";
|
|
246
|
+
readonly internalType: "bytes32";
|
|
247
|
+
}, {
|
|
248
|
+
readonly name: "car";
|
|
249
|
+
readonly type: "bytes";
|
|
250
|
+
readonly internalType: "bytes";
|
|
251
|
+
}];
|
|
252
|
+
readonly outputs: readonly [{
|
|
253
|
+
readonly name: "";
|
|
254
|
+
readonly type: "bytes32";
|
|
255
|
+
readonly internalType: "bytes32";
|
|
256
|
+
}];
|
|
257
|
+
readonly stateMutability: "nonpayable";
|
|
258
|
+
}, {
|
|
259
|
+
readonly type: "function";
|
|
260
|
+
readonly name: "updateBySig";
|
|
261
|
+
readonly inputs: readonly [{
|
|
262
|
+
readonly name: "publisher";
|
|
263
|
+
readonly type: "address";
|
|
264
|
+
readonly internalType: "address";
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "repo";
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
readonly internalType: "string";
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "epoch";
|
|
271
|
+
readonly type: "uint64";
|
|
272
|
+
readonly internalType: "uint64";
|
|
273
|
+
}, {
|
|
274
|
+
readonly name: "parent";
|
|
275
|
+
readonly type: "bytes32";
|
|
276
|
+
readonly internalType: "bytes32";
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "root";
|
|
279
|
+
readonly type: "bytes32";
|
|
280
|
+
readonly internalType: "bytes32";
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "car";
|
|
283
|
+
readonly type: "bytes";
|
|
284
|
+
readonly internalType: "bytes";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "signature";
|
|
287
|
+
readonly type: "bytes";
|
|
288
|
+
readonly internalType: "bytes";
|
|
289
|
+
}];
|
|
290
|
+
readonly outputs: readonly [{
|
|
291
|
+
readonly name: "";
|
|
292
|
+
readonly type: "bytes32";
|
|
293
|
+
readonly internalType: "bytes32";
|
|
294
|
+
}];
|
|
295
|
+
readonly stateMutability: "nonpayable";
|
|
296
|
+
}, {
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
readonly name: "upgradeToAndCall";
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly name: "newImplementation";
|
|
301
|
+
readonly type: "address";
|
|
302
|
+
readonly internalType: "address";
|
|
303
|
+
}, {
|
|
304
|
+
readonly name: "data";
|
|
305
|
+
readonly type: "bytes";
|
|
306
|
+
readonly internalType: "bytes";
|
|
307
|
+
}];
|
|
308
|
+
readonly outputs: readonly [];
|
|
309
|
+
readonly stateMutability: "payable";
|
|
310
|
+
}, {
|
|
311
|
+
readonly type: "event";
|
|
312
|
+
readonly name: "AdminChanged";
|
|
313
|
+
readonly inputs: readonly [{
|
|
314
|
+
readonly name: "previous_admin";
|
|
315
|
+
readonly type: "address";
|
|
316
|
+
readonly indexed: false;
|
|
317
|
+
readonly internalType: "address";
|
|
318
|
+
}, {
|
|
319
|
+
readonly name: "new_admin";
|
|
320
|
+
readonly type: "address";
|
|
321
|
+
readonly indexed: false;
|
|
322
|
+
readonly internalType: "address";
|
|
323
|
+
}];
|
|
324
|
+
readonly anonymous: false;
|
|
325
|
+
}, {
|
|
326
|
+
readonly type: "event";
|
|
327
|
+
readonly name: "Initialized";
|
|
328
|
+
readonly inputs: readonly [{
|
|
329
|
+
readonly name: "version";
|
|
330
|
+
readonly type: "uint64";
|
|
331
|
+
readonly indexed: false;
|
|
332
|
+
readonly internalType: "uint64";
|
|
333
|
+
}];
|
|
334
|
+
readonly anonymous: false;
|
|
335
|
+
}, {
|
|
336
|
+
readonly type: "event";
|
|
337
|
+
readonly name: "Updated";
|
|
338
|
+
readonly inputs: readonly [{
|
|
339
|
+
readonly name: "publisher";
|
|
340
|
+
readonly type: "address";
|
|
341
|
+
readonly indexed: true;
|
|
342
|
+
readonly internalType: "address";
|
|
343
|
+
}, {
|
|
344
|
+
readonly name: "repo_id";
|
|
345
|
+
readonly type: "bytes32";
|
|
346
|
+
readonly indexed: true;
|
|
347
|
+
readonly internalType: "bytes32";
|
|
348
|
+
}, {
|
|
349
|
+
readonly name: "repo";
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
readonly indexed: false;
|
|
352
|
+
readonly internalType: "string";
|
|
353
|
+
}, {
|
|
354
|
+
readonly name: "pos";
|
|
355
|
+
readonly type: "uint64";
|
|
356
|
+
readonly indexed: false;
|
|
357
|
+
readonly internalType: "uint64";
|
|
358
|
+
}, {
|
|
359
|
+
readonly name: "parent";
|
|
360
|
+
readonly type: "bytes32";
|
|
361
|
+
readonly indexed: false;
|
|
362
|
+
readonly internalType: "bytes32";
|
|
363
|
+
}, {
|
|
364
|
+
readonly name: "head";
|
|
365
|
+
readonly type: "bytes32";
|
|
366
|
+
readonly indexed: false;
|
|
367
|
+
readonly internalType: "bytes32";
|
|
368
|
+
}];
|
|
369
|
+
readonly anonymous: false;
|
|
370
|
+
}, {
|
|
371
|
+
readonly type: "event";
|
|
372
|
+
readonly name: "Upgraded";
|
|
373
|
+
readonly inputs: readonly [{
|
|
374
|
+
readonly name: "implementation";
|
|
375
|
+
readonly type: "address";
|
|
376
|
+
readonly indexed: true;
|
|
377
|
+
readonly internalType: "address";
|
|
378
|
+
}];
|
|
379
|
+
readonly anonymous: false;
|
|
380
|
+
}, {
|
|
381
|
+
readonly type: "error";
|
|
382
|
+
readonly name: "AddressEmptyCode";
|
|
383
|
+
readonly inputs: readonly [{
|
|
384
|
+
readonly name: "target";
|
|
385
|
+
readonly type: "address";
|
|
386
|
+
readonly internalType: "address";
|
|
387
|
+
}];
|
|
388
|
+
}, {
|
|
389
|
+
readonly type: "error";
|
|
390
|
+
readonly name: "BadSignature";
|
|
391
|
+
readonly inputs: readonly [];
|
|
392
|
+
}, {
|
|
393
|
+
readonly type: "error";
|
|
394
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
395
|
+
readonly inputs: readonly [{
|
|
396
|
+
readonly name: "implementation";
|
|
397
|
+
readonly type: "address";
|
|
398
|
+
readonly internalType: "address";
|
|
399
|
+
}];
|
|
400
|
+
}, {
|
|
401
|
+
readonly type: "error";
|
|
402
|
+
readonly name: "ERC1967NonPayable";
|
|
403
|
+
readonly inputs: readonly [];
|
|
404
|
+
}, {
|
|
405
|
+
readonly type: "error";
|
|
406
|
+
readonly name: "EpochOutOfWindow";
|
|
407
|
+
readonly inputs: readonly [];
|
|
408
|
+
}, {
|
|
409
|
+
readonly type: "error";
|
|
410
|
+
readonly name: "FailedCall";
|
|
411
|
+
readonly inputs: readonly [];
|
|
412
|
+
}, {
|
|
413
|
+
readonly type: "error";
|
|
414
|
+
readonly name: "InvalidInitialization";
|
|
415
|
+
readonly inputs: readonly [];
|
|
416
|
+
}, {
|
|
417
|
+
readonly type: "error";
|
|
418
|
+
readonly name: "NotInitializing";
|
|
419
|
+
readonly inputs: readonly [];
|
|
420
|
+
}, {
|
|
421
|
+
readonly type: "error";
|
|
422
|
+
readonly name: "StaleStateRoot";
|
|
423
|
+
readonly inputs: readonly [];
|
|
424
|
+
}, {
|
|
425
|
+
readonly type: "error";
|
|
426
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
427
|
+
readonly inputs: readonly [];
|
|
428
|
+
}, {
|
|
429
|
+
readonly type: "error";
|
|
430
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
431
|
+
readonly inputs: readonly [{
|
|
432
|
+
readonly name: "slot";
|
|
433
|
+
readonly type: "bytes32";
|
|
434
|
+
readonly internalType: "bytes32";
|
|
435
|
+
}];
|
|
436
|
+
}, {
|
|
437
|
+
readonly type: "error";
|
|
438
|
+
readonly name: "Unauthorized";
|
|
439
|
+
readonly inputs: readonly [];
|
|
440
|
+
}];
|
|
441
|
+
//#endregion
|
|
442
|
+
export { DATA_REGISTRY_ABI };
|