@fangorn-network/sdk 2026.10.28 → 2026.11.3-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/README.md +36 -658
  2. package/lib/cli/cli.js +30 -356
  3. package/lib/cli/index.d.ts +1 -4
  4. package/lib/cli/index.js +2 -20
  5. package/lib/config.d.ts +163 -226
  6. package/lib/config.js +8 -35
  7. package/lib/contracts/data-registry/abi.d.ts +206 -6
  8. package/lib/contracts/data-registry/abi.js +236 -7
  9. package/lib/contracts/data-registry/index.d.ts +126 -2
  10. package/lib/contracts/data-registry/index.js +174 -1
  11. package/lib/contracts/index.d.ts +5 -8
  12. package/lib/contracts/index.js +4 -7
  13. package/lib/contracts/logs.d.ts +1 -1
  14. package/lib/contracts/logs.js +1 -1
  15. package/lib/contracts/{membership-registry → settlement-registry}/abi.d.ts +288 -637
  16. package/lib/contracts/{membership-registry → settlement-registry}/abi.js +326 -712
  17. package/lib/contracts/settlement-registry/index.d.ts +141 -0
  18. package/lib/contracts/settlement-registry/index.js +209 -0
  19. package/lib/crypto/aes.d.ts +2 -2
  20. package/lib/crypto/aes.js +4 -4
  21. package/lib/crypto/encryption.d.ts +8 -109
  22. package/lib/crypto/encryption.js +16 -114
  23. package/lib/crypto/paid.d.ts +104 -0
  24. package/lib/crypto/paid.js +147 -0
  25. package/lib/engine/index.d.ts +23 -12
  26. package/lib/engine/index.js +68 -29
  27. package/lib/engine/records.d.ts +4 -7
  28. package/lib/engine/records.js +6 -6
  29. package/lib/engine/test-helpers.d.ts +2 -3
  30. package/lib/engine/test-helpers.js +7 -5
  31. package/lib/erc8004.js +1 -4
  32. package/lib/fangorn.d.ts +64 -95
  33. package/lib/fangorn.js +106 -164
  34. package/lib/feed.d.ts +7 -8
  35. package/lib/feed.js +7 -8
  36. package/lib/index.d.ts +10 -14
  37. package/lib/index.js +9 -13
  38. package/lib/providers/storage/signed-url.d.ts +2 -10
  39. package/lib/providers/storage/signed-url.js +4 -14
  40. package/lib/providers/storage/types.d.ts +1 -1
  41. package/lib/providers/storage/utils.js +5 -3
  42. package/lib/test/key-server.d.ts +12 -0
  43. package/lib/test/key-server.js +30 -0
  44. package/lib/test/mem-registry.d.ts +14 -19
  45. package/lib/test/mem-registry.js +44 -37
  46. package/lib/test/sdk-suite.d.ts +1 -4
  47. package/lib/test/sdk-suite.js +16 -87
  48. package/lib/test/testbed.d.ts +5204 -5214
  49. package/lib/test/testbed.js +29 -56
  50. package/lib/types/index.d.ts +6 -11
  51. package/package.json +1 -4
  52. package/lib/contracts/app-registry/abi.d.ts +0 -1306
  53. package/lib/contracts/app-registry/abi.js +0 -1493
  54. package/lib/contracts/app-registry/index.d.ts +0 -200
  55. package/lib/contracts/app-registry/index.js +0 -325
  56. package/lib/contracts/membership-registry/index.d.ts +0 -79
  57. package/lib/contracts/membership-registry/index.js +0 -104
  58. package/lib/contracts/types.d.ts +0 -8
  59. package/lib/contracts/types.js +0 -10
  60. package/lib/harness/examples/hackmd/build-markdown-graph.d.ts +0 -1
  61. package/lib/harness/examples/hackmd/build-markdown-graph.js +0 -17
  62. package/lib/harness/index.d.ts +0 -58
  63. package/lib/harness/index.js +0 -73
  64. package/lib/registry.d.ts +0 -118
  65. package/lib/registry.js +0 -184
package/lib/config.js CHANGED
@@ -1,15 +1,8 @@
1
- import { keccak256, toHex } from "viem";
2
- import { arbitrumSepolia, baseSepolia } from "viem/chains";
1
+ import { baseSepolia } from "viem/chains";
3
2
 
4
3
  //#region src/config.ts
5
4
  /**
6
- * Derive an app id from a human-readable name (keccak256(hex(name)).
7
- */
8
- function appId(name) {
9
- return keccak256(toHex(name));
10
- }
11
- /**
12
- * Blank input means "not set", never an app called "". Returns the trimmed value,
5
+ * Blank input means "not set", never a value of "". Returns the trimmed value,
13
6
  * or undefined when it is missing or only whitespace, so it can sit on the left of
14
7
  * a `??` fallback. `??` on the raw value would let "" through: it is not nullish.
15
8
  */
@@ -17,27 +10,10 @@ function nonBlank(value) {
17
10
  const trimmed = value?.trim();
18
11
  return trimmed === "" ? void 0 : trimmed;
19
12
  }
20
- function toAppId(nameOrId) {
21
- const name = nameOrId.trim();
22
- if (!name) throw new Error("App name or id must not be blank.");
23
- return /^0x[0-9a-fA-F]{64}$/.test(name) ? name : appId(name);
24
- }
25
- const ArbitrumSepoliaConfig = {
26
- dataRegistryContractAddress: "0x72B5f83526F3893aF9f1eE0f32A27218EA09f8aE",
27
- appRegistryContractAddress: "0x55e6209ea1833ceD900989a3b3b22466934E04A5",
28
- membershipRegistryContractAddress: "0xDF17030Cd65435C86eb043F31DDACa99E819E347",
29
- appRegistryFromBlock: 319536642n,
30
- chain: arbitrumSepolia,
31
- rpcUrl: "https://sepolia-rollup.arbitrum.io/rpc",
32
- caip2: 421614,
33
- ipfsGateway: "https://ipfs.io",
34
- logWindow: 100000n
35
- };
36
13
  const BaseSepoliaConfig = {
37
- dataRegistryContractAddress: "0x7a34882568f1b22FC4C4944113B1E4Ca4cF6900f",
38
- appRegistryContractAddress: "0x6E07C2c7393963242899e5Fb0eb1B6B787927E81",
39
- membershipRegistryContractAddress: "0x9De2C2A6261927f91b246C73e7ca86824a357FA6",
40
- appRegistryFromBlock: 51469588n,
14
+ dataRegistryContractAddress: "0x0F3eb0E62CF610dbaC6B3aD4Bf4cE38Ab50EBCC5",
15
+ settlementRegistryContractAddress: "0x61A5A195B54F57ada786Ba6689CdB04553cf7fBc",
16
+ fromBlock: 53592845n,
41
17
  chain: baseSepolia,
42
18
  rpcUrl: "https://base-sepolia-rpc.publicnode.com",
43
19
  caip2: 84532,
@@ -54,12 +30,9 @@ const FangornConfig = BaseSepoliaConfig;
54
30
  /**
55
31
  * The networks supported by Fangorn, by the name `CHAIN_NAME` takes.
56
32
  */
57
- const SupportedNetworks = {
58
- arbitrumSepolia: ArbitrumSepoliaConfig,
59
- baseSepolia: BaseSepoliaConfig
60
- };
33
+ const SupportedNetworks = { baseSepolia: BaseSepoliaConfig };
61
34
  /**
62
- * Get a network's deployment by name ("arbitrumSepolia" or "baseSepolia").
35
+ * Get a network's deployment by name ("baseSepolia").
63
36
  * @returns The corresponding config if it is supported, otherwise an error
64
37
  */
65
38
  function getNetwork(name) {
@@ -69,4 +42,4 @@ function getNetwork(name) {
69
42
  }
70
43
 
71
44
  //#endregion
72
- export { ArbitrumSepoliaConfig, BaseSepoliaConfig, FangornConfig, SupportedNetworks, appId, getNetwork as default, nonBlank, toAppId };
45
+ export { BaseSepoliaConfig, FangornConfig, SupportedNetworks, getNetwork as default, nonBlank };
@@ -7,6 +7,26 @@ declare const DATA_REGISTRY_ABI: readonly [{
7
7
  readonly type: "constructor";
8
8
  readonly inputs: readonly [];
9
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";
10
30
  }, {
11
31
  readonly type: "function";
12
32
  readonly name: "UPGRADE_INTERFACE_VERSION";
@@ -17,6 +37,16 @@ declare const DATA_REGISTRY_ABI: readonly [{
17
37
  readonly internalType: "string";
18
38
  }];
19
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";
20
50
  }, {
21
51
  readonly type: "function";
22
52
  readonly name: "admin";
@@ -27,6 +57,56 @@ declare const DATA_REGISTRY_ABI: readonly [{
27
57
  readonly internalType: "address";
28
58
  }];
29
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";
30
110
  }, {
31
111
  readonly type: "function";
32
112
  readonly name: "getHead";
@@ -59,6 +139,40 @@ declare const DATA_REGISTRY_ABI: readonly [{
59
139
  }];
60
140
  readonly outputs: readonly [];
61
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";
62
176
  }, {
63
177
  readonly type: "function";
64
178
  readonly name: "proxiableUUID";
@@ -69,6 +183,38 @@ declare const DATA_REGISTRY_ABI: readonly [{
69
183
  readonly internalType: "bytes32";
70
184
  }];
71
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";
72
218
  }, {
73
219
  readonly type: "function";
74
220
  readonly name: "setAdmin";
@@ -86,16 +232,66 @@ declare const DATA_REGISTRY_ABI: readonly [{
86
232
  readonly name: "repo";
87
233
  readonly type: "string";
88
234
  readonly internalType: "string";
235
+ }, {
236
+ readonly name: "epoch";
237
+ readonly type: "uint64";
238
+ readonly internalType: "uint64";
89
239
  }, {
90
240
  readonly name: "parent";
91
241
  readonly type: "bytes32";
92
242
  readonly internalType: "bytes32";
93
243
  }, {
94
- readonly name: "head";
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: "";
95
292
  readonly type: "bytes32";
96
293
  readonly internalType: "bytes32";
97
294
  }];
98
- readonly outputs: readonly [];
99
295
  readonly stateMutability: "nonpayable";
100
296
  }, {
101
297
  readonly type: "function";
@@ -189,6 +385,10 @@ declare const DATA_REGISTRY_ABI: readonly [{
189
385
  readonly type: "address";
190
386
  readonly internalType: "address";
191
387
  }];
388
+ }, {
389
+ readonly type: "error";
390
+ readonly name: "BadSignature";
391
+ readonly inputs: readonly [];
192
392
  }, {
193
393
  readonly type: "error";
194
394
  readonly name: "ERC1967InvalidImplementation";
@@ -201,6 +401,10 @@ declare const DATA_REGISTRY_ABI: readonly [{
201
401
  readonly type: "error";
202
402
  readonly name: "ERC1967NonPayable";
203
403
  readonly inputs: readonly [];
404
+ }, {
405
+ readonly type: "error";
406
+ readonly name: "EpochOutOfWindow";
407
+ readonly inputs: readonly [];
204
408
  }, {
205
409
  readonly type: "error";
206
410
  readonly name: "FailedCall";
@@ -233,10 +437,6 @@ declare const DATA_REGISTRY_ABI: readonly [{
233
437
  readonly type: "error";
234
438
  readonly name: "Unauthorized";
235
439
  readonly inputs: readonly [];
236
- }, {
237
- readonly type: "error";
238
- readonly name: "ZeroHead";
239
- readonly inputs: readonly [];
240
440
  }];
241
441
  //#endregion
242
442
  export { DATA_REGISTRY_ABI };
@@ -9,6 +9,28 @@ const DATA_REGISTRY_ABI = [
9
9
  "inputs": [],
10
10
  "stateMutability": "nonpayable"
11
11
  },
12
+ {
13
+ "type": "function",
14
+ "name": "EPOCH_SECONDS",
15
+ "inputs": [],
16
+ "outputs": [{
17
+ "name": "",
18
+ "type": "uint64",
19
+ "internalType": "uint64"
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
+ },
12
34
  {
13
35
  "type": "function",
14
36
  "name": "UPGRADE_INTERFACE_VERSION",
@@ -20,6 +42,17 @@ const DATA_REGISTRY_ABI = [
20
42
  }],
21
43
  "stateMutability": "view"
22
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
+ },
23
56
  {
24
57
  "type": "function",
25
58
  "name": "admin",
@@ -31,6 +64,65 @@ const DATA_REGISTRY_ABI = [
31
64
  }],
32
65
  "stateMutability": "view"
33
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"
101
+ }],
102
+ "stateMutability": "pure"
103
+ },
104
+ {
105
+ "type": "function",
106
+ "name": "currentEpoch",
107
+ "inputs": [],
108
+ "outputs": [{
109
+ "name": "",
110
+ "type": "uint64",
111
+ "internalType": "uint64"
112
+ }],
113
+ "stateMutability": "view"
114
+ },
115
+ {
116
+ "type": "function",
117
+ "name": "domainSeparator",
118
+ "inputs": [],
119
+ "outputs": [{
120
+ "name": "",
121
+ "type": "bytes32",
122
+ "internalType": "bytes32"
123
+ }],
124
+ "stateMutability": "view"
125
+ },
34
126
  {
35
127
  "type": "function",
36
128
  "name": "getHead",
@@ -65,6 +157,43 @@ const DATA_REGISTRY_ABI = [
65
157
  "outputs": [],
66
158
  "stateMutability": "nonpayable"
67
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"
194
+ }],
195
+ "stateMutability": "view"
196
+ },
68
197
  {
69
198
  "type": "function",
70
199
  "name": "proxiableUUID",
@@ -76,6 +205,40 @@ const DATA_REGISTRY_ABI = [
76
205
  }],
77
206
  "stateMutability": "view"
78
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"
220
+ }],
221
+ "stateMutability": "view"
222
+ },
223
+ {
224
+ "type": "function",
225
+ "name": "repoIds",
226
+ "inputs": [{
227
+ "name": "",
228
+ "type": "address",
229
+ "internalType": "address"
230
+ }, {
231
+ "name": "",
232
+ "type": "uint256",
233
+ "internalType": "uint256"
234
+ }],
235
+ "outputs": [{
236
+ "name": "",
237
+ "type": "bytes32",
238
+ "internalType": "bytes32"
239
+ }],
240
+ "stateMutability": "view"
241
+ },
79
242
  {
80
243
  "type": "function",
81
244
  "name": "setAdmin",
@@ -96,18 +259,79 @@ const DATA_REGISTRY_ABI = [
96
259
  "type": "string",
97
260
  "internalType": "string"
98
261
  },
262
+ {
263
+ "name": "epoch",
264
+ "type": "uint64",
265
+ "internalType": "uint64"
266
+ },
99
267
  {
100
268
  "name": "parent",
101
269
  "type": "bytes32",
102
270
  "internalType": "bytes32"
103
271
  },
104
272
  {
105
- "name": "head",
273
+ "name": "root",
106
274
  "type": "bytes32",
107
275
  "internalType": "bytes32"
276
+ },
277
+ {
278
+ "name": "car",
279
+ "type": "bytes",
280
+ "internalType": "bytes"
108
281
  }
109
282
  ],
110
- "outputs": [],
283
+ "outputs": [{
284
+ "name": "",
285
+ "type": "bytes32",
286
+ "internalType": "bytes32"
287
+ }],
288
+ "stateMutability": "nonpayable"
289
+ },
290
+ {
291
+ "type": "function",
292
+ "name": "updateBySig",
293
+ "inputs": [
294
+ {
295
+ "name": "publisher",
296
+ "type": "address",
297
+ "internalType": "address"
298
+ },
299
+ {
300
+ "name": "repo",
301
+ "type": "string",
302
+ "internalType": "string"
303
+ },
304
+ {
305
+ "name": "epoch",
306
+ "type": "uint64",
307
+ "internalType": "uint64"
308
+ },
309
+ {
310
+ "name": "parent",
311
+ "type": "bytes32",
312
+ "internalType": "bytes32"
313
+ },
314
+ {
315
+ "name": "root",
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"
328
+ }
329
+ ],
330
+ "outputs": [{
331
+ "name": "",
332
+ "type": "bytes32",
333
+ "internalType": "bytes32"
334
+ }],
111
335
  "stateMutability": "nonpayable"
112
336
  },
113
337
  {
@@ -215,6 +439,11 @@ const DATA_REGISTRY_ABI = [
215
439
  "internalType": "address"
216
440
  }]
217
441
  },
442
+ {
443
+ "type": "error",
444
+ "name": "BadSignature",
445
+ "inputs": []
446
+ },
218
447
  {
219
448
  "type": "error",
220
449
  "name": "ERC1967InvalidImplementation",
@@ -229,6 +458,11 @@ const DATA_REGISTRY_ABI = [
229
458
  "name": "ERC1967NonPayable",
230
459
  "inputs": []
231
460
  },
461
+ {
462
+ "type": "error",
463
+ "name": "EpochOutOfWindow",
464
+ "inputs": []
465
+ },
232
466
  {
233
467
  "type": "error",
234
468
  "name": "FailedCall",
@@ -267,11 +501,6 @@ const DATA_REGISTRY_ABI = [
267
501
  "type": "error",
268
502
  "name": "Unauthorized",
269
503
  "inputs": []
270
- },
271
- {
272
- "type": "error",
273
- "name": "ZeroHead",
274
- "inputs": []
275
504
  }
276
505
  ];
277
506