@fangorn-network/sdk 2026.10.27-dev → 2026.11.3-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -642
- package/lib/cli/cli.js +47 -322
- package/lib/cli/index.d.ts +1 -4
- package/lib/cli/index.js +2 -20
- package/lib/config.d.ts +15 -78
- package/lib/config.js +8 -35
- package/lib/contracts/data-registry/abi.d.ts +195 -19
- package/lib/contracts/data-registry/abi.js +223 -20
- package/lib/contracts/data-registry/index.d.ts +126 -2
- package/lib/contracts/data-registry/index.js +174 -1
- package/lib/contracts/index.d.ts +5 -8
- package/lib/contracts/index.js +4 -7
- package/lib/contracts/logs.d.ts +1 -1
- package/lib/contracts/logs.js +1 -1
- package/lib/contracts/{membership-registry → settlement-registry}/abi.d.ts +288 -637
- package/lib/contracts/{membership-registry → settlement-registry}/abi.js +326 -712
- package/lib/contracts/settlement-registry/index.d.ts +141 -0
- package/lib/contracts/settlement-registry/index.js +209 -0
- package/lib/crypto/aes.d.ts +2 -2
- package/lib/crypto/aes.js +4 -4
- package/lib/crypto/encryption.d.ts +8 -109
- package/lib/crypto/encryption.js +16 -114
- package/lib/crypto/paid.d.ts +104 -0
- package/lib/crypto/paid.js +147 -0
- package/lib/engine/index.d.ts +23 -12
- package/lib/engine/index.js +68 -29
- package/lib/engine/records.d.ts +4 -7
- package/lib/engine/records.js +6 -6
- package/lib/engine/test-helpers.d.ts +2 -3
- package/lib/engine/test-helpers.js +7 -5
- package/lib/erc8004.js +1 -4
- package/lib/fangorn.d.ts +64 -85
- package/lib/fangorn.js +106 -148
- package/lib/feed.d.ts +7 -8
- package/lib/feed.js +7 -8
- package/lib/index.d.ts +10 -14
- package/lib/index.js +9 -13
- package/lib/providers/storage/signed-url.d.ts +2 -10
- package/lib/providers/storage/signed-url.js +4 -14
- package/lib/providers/storage/types.d.ts +1 -1
- package/lib/providers/storage/utils.js +5 -3
- package/lib/test/key-server.d.ts +12 -0
- package/lib/test/key-server.js +30 -0
- package/lib/test/mem-registry.d.ts +14 -19
- package/lib/test/mem-registry.js +44 -37
- package/lib/test/sdk-suite.d.ts +1 -4
- package/lib/test/sdk-suite.js +16 -87
- package/lib/test/testbed.d.ts +5216 -5226
- package/lib/test/testbed.js +29 -56
- package/lib/types/index.d.ts +6 -11
- package/package.json +1 -4
- package/lib/contracts/app-registry/abi.d.ts +0 -1317
- package/lib/contracts/app-registry/abi.js +0 -1510
- package/lib/contracts/app-registry/index.d.ts +0 -173
- package/lib/contracts/app-registry/index.js +0 -294
- package/lib/contracts/membership-registry/index.d.ts +0 -79
- package/lib/contracts/membership-registry/index.js +0 -104
- package/lib/contracts/types.d.ts +0 -10
- package/lib/contracts/types.js +0 -12
- package/lib/harness/examples/hackmd/build-markdown-graph.d.ts +0 -1
- package/lib/harness/examples/hackmd/build-markdown-graph.js +0 -17
- package/lib/harness/index.d.ts +0 -58
- package/lib/harness/index.js +0 -73
- package/lib/registry.d.ts +0 -118
- package/lib/registry.js +0 -184
package/lib/config.d.ts
CHANGED
|
@@ -1,25 +1,19 @@
|
|
|
1
|
+
import * as viem_chains0 from "viem/chains";
|
|
1
2
|
import * as viem0 from "viem";
|
|
2
3
|
import { Chain, Hex } from "viem";
|
|
3
|
-
import * as viem_chains0 from "viem/chains";
|
|
4
4
|
import * as abitype0 from "abitype";
|
|
5
5
|
|
|
6
6
|
//#region src/config.d.ts
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
declare function appId(name: string): Hex;
|
|
11
|
-
/**
|
|
12
|
-
* Blank input means "not set", never an app called "". Returns the trimmed value,
|
|
8
|
+
* Blank input means "not set", never a value of "". Returns the trimmed value,
|
|
13
9
|
* or undefined when it is missing or only whitespace, so it can sit on the left of
|
|
14
10
|
* a `??` fallback. `??` on the raw value would let "" through: it is not nullish.
|
|
15
11
|
*/
|
|
16
12
|
declare function nonBlank(value: string | undefined): string | undefined;
|
|
17
|
-
|
|
18
|
-
interface AppConfig {
|
|
13
|
+
interface NetworkConfig {
|
|
19
14
|
dataRegistryContractAddress: Hex;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
appRegistryFromBlock: bigint;
|
|
15
|
+
settlementRegistryContractAddress?: Hex;
|
|
16
|
+
fromBlock: bigint;
|
|
23
17
|
chain: Chain;
|
|
24
18
|
rpcUrl: string;
|
|
25
19
|
caip2: number;
|
|
@@ -27,66 +21,10 @@ interface AppConfig {
|
|
|
27
21
|
logWindow?: bigint;
|
|
28
22
|
signedUrlWorker?: string;
|
|
29
23
|
}
|
|
30
|
-
declare const ArbitrumSepoliaConfig: {
|
|
31
|
-
dataRegistryContractAddress: "0x72B5f83526F3893aF9f1eE0f32A27218EA09f8aE";
|
|
32
|
-
appRegistryContractAddress: "0x55e6209ea1833ceD900989a3b3b22466934E04A5";
|
|
33
|
-
membershipRegistryContractAddress: "0xDF17030Cd65435C86eb043F31DDACa99E819E347";
|
|
34
|
-
appRegistryFromBlock: bigint;
|
|
35
|
-
chain: {
|
|
36
|
-
blockExplorers: {
|
|
37
|
-
readonly default: {
|
|
38
|
-
readonly name: "Arbiscan";
|
|
39
|
-
readonly url: "https://sepolia.arbiscan.io";
|
|
40
|
-
readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
blockTime: 250;
|
|
44
|
-
contracts: {
|
|
45
|
-
readonly multicall3: {
|
|
46
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
47
|
-
readonly blockCreated: 81930;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
ensTlds?: readonly string[] | undefined;
|
|
51
|
-
id: 421614;
|
|
52
|
-
name: "Arbitrum Sepolia";
|
|
53
|
-
nativeCurrency: {
|
|
54
|
-
readonly name: "Arbitrum Sepolia Ether";
|
|
55
|
-
readonly symbol: "ETH";
|
|
56
|
-
readonly decimals: 18;
|
|
57
|
-
};
|
|
58
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
59
|
-
rpcUrls: {
|
|
60
|
-
readonly default: {
|
|
61
|
-
readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
sourceId?: number | undefined | undefined;
|
|
65
|
-
testnet: true;
|
|
66
|
-
custom?: Record<string, unknown> | undefined;
|
|
67
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
68
|
-
fees?: viem0.ChainFees<undefined> | undefined;
|
|
69
|
-
formatters?: undefined;
|
|
70
|
-
prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
71
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
72
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
|
|
73
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
74
|
-
}) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
75
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
76
|
-
}] | undefined;
|
|
77
|
-
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
78
|
-
verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
|
|
79
|
-
};
|
|
80
|
-
rpcUrl: string;
|
|
81
|
-
caip2: number;
|
|
82
|
-
ipfsGateway: string;
|
|
83
|
-
logWindow: bigint;
|
|
84
|
-
};
|
|
85
24
|
declare const BaseSepoliaConfig: {
|
|
86
|
-
dataRegistryContractAddress: "
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
appRegistryFromBlock: bigint;
|
|
25
|
+
dataRegistryContractAddress: "0x0F3eb0E62CF610dbaC6B3aD4Bf4cE38Ab50EBCC5";
|
|
26
|
+
settlementRegistryContractAddress: "0x61A5A195B54F57ada786Ba6689CdB04553cf7fBc";
|
|
27
|
+
fromBlock: bigint;
|
|
90
28
|
chain: {
|
|
91
29
|
blockExplorers: {
|
|
92
30
|
readonly default: {
|
|
@@ -418,10 +356,9 @@ declare const BaseSepoliaConfig: {
|
|
|
418
356
|
* built from.
|
|
419
357
|
*/
|
|
420
358
|
declare const FangornConfig: {
|
|
421
|
-
dataRegistryContractAddress: "
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
appRegistryFromBlock: bigint;
|
|
359
|
+
dataRegistryContractAddress: "0x0F3eb0E62CF610dbaC6B3aD4Bf4cE38Ab50EBCC5";
|
|
360
|
+
settlementRegistryContractAddress: "0x61A5A195B54F57ada786Ba6689CdB04553cf7fBc";
|
|
361
|
+
fromBlock: bigint;
|
|
425
362
|
chain: {
|
|
426
363
|
blockExplorers: {
|
|
427
364
|
readonly default: {
|
|
@@ -750,11 +687,11 @@ declare const FangornConfig: {
|
|
|
750
687
|
/**
|
|
751
688
|
* The networks supported by Fangorn, by the name `CHAIN_NAME` takes.
|
|
752
689
|
*/
|
|
753
|
-
declare const SupportedNetworks: Record<string,
|
|
690
|
+
declare const SupportedNetworks: Record<string, NetworkConfig>;
|
|
754
691
|
/**
|
|
755
|
-
* Get a network's deployment by name ("
|
|
692
|
+
* Get a network's deployment by name ("baseSepolia").
|
|
756
693
|
* @returns The corresponding config if it is supported, otherwise an error
|
|
757
694
|
*/
|
|
758
|
-
declare function getNetwork(name: string):
|
|
695
|
+
declare function getNetwork(name: string): NetworkConfig;
|
|
759
696
|
//#endregion
|
|
760
|
-
export {
|
|
697
|
+
export { BaseSepoliaConfig, FangornConfig, NetworkConfig, SupportedNetworks, getNetwork as default, nonBlank };
|
package/lib/config.js
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { arbitrumSepolia, baseSepolia } from "viem/chains";
|
|
1
|
+
import { baseSepolia } from "viem/chains";
|
|
3
2
|
|
|
4
3
|
//#region src/config.ts
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
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: "
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
appRegistryFromBlock: 50557088n,
|
|
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 ("
|
|
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 {
|
|
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";
|
|
@@ -29,12 +59,52 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
29
59
|
readonly stateMutability: "view";
|
|
30
60
|
}, {
|
|
31
61
|
readonly type: "function";
|
|
32
|
-
readonly name: "
|
|
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";
|
|
33
93
|
readonly inputs: readonly [];
|
|
34
94
|
readonly outputs: readonly [{
|
|
35
95
|
readonly name: "";
|
|
36
|
-
readonly type: "
|
|
37
|
-
readonly internalType: "
|
|
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";
|
|
38
108
|
}];
|
|
39
109
|
readonly stateMutability: "view";
|
|
40
110
|
}, {
|
|
@@ -66,13 +136,43 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
66
136
|
readonly name: "admin_";
|
|
67
137
|
readonly type: "address";
|
|
68
138
|
readonly internalType: "address";
|
|
69
|
-
}, {
|
|
70
|
-
readonly name: "appRegistry_";
|
|
71
|
-
readonly type: "address";
|
|
72
|
-
readonly internalType: "address";
|
|
73
139
|
}];
|
|
74
140
|
readonly outputs: readonly [];
|
|
75
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";
|
|
76
176
|
}, {
|
|
77
177
|
readonly type: "function";
|
|
78
178
|
readonly name: "proxiableUUID";
|
|
@@ -85,19 +185,41 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
85
185
|
readonly stateMutability: "view";
|
|
86
186
|
}, {
|
|
87
187
|
readonly type: "function";
|
|
88
|
-
readonly name: "
|
|
188
|
+
readonly name: "repoCount";
|
|
89
189
|
readonly inputs: readonly [{
|
|
90
|
-
readonly name: "
|
|
190
|
+
readonly name: "publisher";
|
|
91
191
|
readonly type: "address";
|
|
92
192
|
readonly internalType: "address";
|
|
93
193
|
}];
|
|
94
|
-
readonly outputs: readonly [
|
|
95
|
-
|
|
194
|
+
readonly outputs: readonly [{
|
|
195
|
+
readonly name: "";
|
|
196
|
+
readonly type: "uint256";
|
|
197
|
+
readonly internalType: "uint256";
|
|
198
|
+
}];
|
|
199
|
+
readonly stateMutability: "view";
|
|
96
200
|
}, {
|
|
97
201
|
readonly type: "function";
|
|
98
|
-
readonly name: "
|
|
202
|
+
readonly name: "repoIds";
|
|
99
203
|
readonly inputs: readonly [{
|
|
100
|
-
readonly name: "
|
|
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";
|
|
101
223
|
readonly type: "address";
|
|
102
224
|
readonly internalType: "address";
|
|
103
225
|
}];
|
|
@@ -110,16 +232,66 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
110
232
|
readonly name: "repo";
|
|
111
233
|
readonly type: "string";
|
|
112
234
|
readonly internalType: "string";
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "epoch";
|
|
237
|
+
readonly type: "uint64";
|
|
238
|
+
readonly internalType: "uint64";
|
|
113
239
|
}, {
|
|
114
240
|
readonly name: "parent";
|
|
115
241
|
readonly type: "bytes32";
|
|
116
242
|
readonly internalType: "bytes32";
|
|
117
243
|
}, {
|
|
118
|
-
readonly name: "
|
|
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: "";
|
|
119
292
|
readonly type: "bytes32";
|
|
120
293
|
readonly internalType: "bytes32";
|
|
121
294
|
}];
|
|
122
|
-
readonly outputs: readonly [];
|
|
123
295
|
readonly stateMutability: "nonpayable";
|
|
124
296
|
}, {
|
|
125
297
|
readonly type: "function";
|
|
@@ -213,6 +385,10 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
213
385
|
readonly type: "address";
|
|
214
386
|
readonly internalType: "address";
|
|
215
387
|
}];
|
|
388
|
+
}, {
|
|
389
|
+
readonly type: "error";
|
|
390
|
+
readonly name: "BadSignature";
|
|
391
|
+
readonly inputs: readonly [];
|
|
216
392
|
}, {
|
|
217
393
|
readonly type: "error";
|
|
218
394
|
readonly name: "ERC1967InvalidImplementation";
|
|
@@ -225,6 +401,10 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
225
401
|
readonly type: "error";
|
|
226
402
|
readonly name: "ERC1967NonPayable";
|
|
227
403
|
readonly inputs: readonly [];
|
|
404
|
+
}, {
|
|
405
|
+
readonly type: "error";
|
|
406
|
+
readonly name: "EpochOutOfWindow";
|
|
407
|
+
readonly inputs: readonly [];
|
|
228
408
|
}, {
|
|
229
409
|
readonly type: "error";
|
|
230
410
|
readonly name: "FailedCall";
|
|
@@ -257,10 +437,6 @@ declare const DATA_REGISTRY_ABI: readonly [{
|
|
|
257
437
|
readonly type: "error";
|
|
258
438
|
readonly name: "Unauthorized";
|
|
259
439
|
readonly inputs: readonly [];
|
|
260
|
-
}, {
|
|
261
|
-
readonly type: "error";
|
|
262
|
-
readonly name: "ZeroHead";
|
|
263
|
-
readonly inputs: readonly [];
|
|
264
440
|
}];
|
|
265
441
|
//#endregion
|
|
266
442
|
export { DATA_REGISTRY_ABI };
|