@d20dao/vrf-sdk 0.3.4 → 0.5.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/AGENTS.md +29 -19
- package/API.md +574 -223
- package/BUILD-MANIFEST.json +40 -26
- package/CHANGELOG.md +97 -0
- package/PROTOCOL-PROVENANCE.json +17 -10
- package/README.md +174 -113
- package/THIRD_PARTY_NOTICES.md +3 -1
- package/abi/D20BeaconVerifier.json +165 -0
- package/abi/EpochEntropy.json +605 -26
- package/dist/abi.d.ts +593 -22
- package/dist/abi.js +2 -1
- package/dist/beacon.d.ts +28 -0
- package/dist/beacon.js +133 -0
- package/dist/epoch.d.ts +50 -78
- package/dist/epoch.js +184 -29
- package/dist/index.d.ts +8 -4
- package/dist/index.js +4 -2
- package/dist/sources.d.ts +11 -0
- package/dist/sources.js +74 -0
- package/dist/templates.d.ts +22 -0
- package/dist/templates.js +220 -0
- package/examples/DiceConsumer.sol +37 -29
- package/examples/LootDropConsumer.sol +60 -0
- package/examples/RaffleConsumer.sol +71 -0
- package/notices/BLS-BN254-LICENSE +21 -0
- package/notices/PROVENANCE.md +12 -0
- package/package.json +31 -4
- package/contracts/examples/MiningRandomnessConsumer.sol +0 -59
package/dist/abi.d.ts
CHANGED
|
@@ -1883,6 +1883,10 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
1883
1883
|
readonly inputs: readonly [];
|
|
1884
1884
|
readonly name: "AnchorUnavailable";
|
|
1885
1885
|
readonly type: "error";
|
|
1886
|
+
}, {
|
|
1887
|
+
readonly inputs: readonly [];
|
|
1888
|
+
readonly name: "BeaconGasTooLow";
|
|
1889
|
+
readonly type: "error";
|
|
1886
1890
|
}, {
|
|
1887
1891
|
readonly inputs: readonly [];
|
|
1888
1892
|
readonly name: "ECDSAInvalidSignature";
|
|
@@ -1943,10 +1947,18 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
1943
1947
|
readonly inputs: readonly [];
|
|
1944
1948
|
readonly name: "InvalidInitialization";
|
|
1945
1949
|
readonly type: "error";
|
|
1950
|
+
}, {
|
|
1951
|
+
readonly inputs: readonly [];
|
|
1952
|
+
readonly name: "InvalidRecipe";
|
|
1953
|
+
readonly type: "error";
|
|
1946
1954
|
}, {
|
|
1947
1955
|
readonly inputs: readonly [];
|
|
1948
1956
|
readonly name: "InvalidSigner";
|
|
1949
1957
|
readonly type: "error";
|
|
1958
|
+
}, {
|
|
1959
|
+
readonly inputs: readonly [];
|
|
1960
|
+
readonly name: "InvalidTemplate";
|
|
1961
|
+
readonly type: "error";
|
|
1950
1962
|
}, {
|
|
1951
1963
|
readonly inputs: readonly [];
|
|
1952
1964
|
readonly name: "InvalidTime";
|
|
@@ -1987,6 +1999,18 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
1987
1999
|
readonly inputs: readonly [];
|
|
1988
2000
|
readonly name: "RenounceDisabled";
|
|
1989
2001
|
readonly type: "error";
|
|
2002
|
+
}, {
|
|
2003
|
+
readonly inputs: readonly [{
|
|
2004
|
+
readonly internalType: "uint256";
|
|
2005
|
+
readonly name: "value";
|
|
2006
|
+
readonly type: "uint256";
|
|
2007
|
+
}, {
|
|
2008
|
+
readonly internalType: "uint256";
|
|
2009
|
+
readonly name: "length";
|
|
2010
|
+
readonly type: "uint256";
|
|
2011
|
+
}];
|
|
2012
|
+
readonly name: "StringsInsufficientHexLength";
|
|
2013
|
+
readonly type: "error";
|
|
1990
2014
|
}, {
|
|
1991
2015
|
readonly inputs: readonly [];
|
|
1992
2016
|
readonly name: "UUPSUnauthorizedCallContext";
|
|
@@ -1999,6 +2023,56 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
1999
2023
|
}];
|
|
2000
2024
|
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
2001
2025
|
readonly type: "error";
|
|
2026
|
+
}, {
|
|
2027
|
+
readonly anonymous: false;
|
|
2028
|
+
readonly inputs: readonly [{
|
|
2029
|
+
readonly indexed: true;
|
|
2030
|
+
readonly internalType: "address";
|
|
2031
|
+
readonly name: "account";
|
|
2032
|
+
readonly type: "address";
|
|
2033
|
+
}, {
|
|
2034
|
+
readonly indexed: false;
|
|
2035
|
+
readonly internalType: "bool";
|
|
2036
|
+
readonly name: "allowed";
|
|
2037
|
+
readonly type: "bool";
|
|
2038
|
+
}];
|
|
2039
|
+
readonly name: "BackupCommitterSet";
|
|
2040
|
+
readonly type: "event";
|
|
2041
|
+
}, {
|
|
2042
|
+
readonly anonymous: false;
|
|
2043
|
+
readonly inputs: readonly [{
|
|
2044
|
+
readonly indexed: true;
|
|
2045
|
+
readonly internalType: "uint8";
|
|
2046
|
+
readonly name: "recipe";
|
|
2047
|
+
readonly type: "uint8";
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly indexed: true;
|
|
2050
|
+
readonly internalType: "address";
|
|
2051
|
+
readonly name: "verifier";
|
|
2052
|
+
readonly type: "address";
|
|
2053
|
+
}, {
|
|
2054
|
+
readonly indexed: true;
|
|
2055
|
+
readonly internalType: "bytes32";
|
|
2056
|
+
readonly name: "chainHash";
|
|
2057
|
+
readonly type: "bytes32";
|
|
2058
|
+
}, {
|
|
2059
|
+
readonly indexed: false;
|
|
2060
|
+
readonly internalType: "bytes";
|
|
2061
|
+
readonly name: "publicKey";
|
|
2062
|
+
readonly type: "bytes";
|
|
2063
|
+
}, {
|
|
2064
|
+
readonly indexed: false;
|
|
2065
|
+
readonly internalType: "uint64";
|
|
2066
|
+
readonly name: "genesis";
|
|
2067
|
+
readonly type: "uint64";
|
|
2068
|
+
}, {
|
|
2069
|
+
readonly indexed: false;
|
|
2070
|
+
readonly internalType: "uint64";
|
|
2071
|
+
readonly name: "period";
|
|
2072
|
+
readonly type: "uint64";
|
|
2073
|
+
}];
|
|
2074
|
+
readonly name: "BeaconRegistered";
|
|
2075
|
+
readonly type: "event";
|
|
2002
2076
|
}, {
|
|
2003
2077
|
readonly anonymous: false;
|
|
2004
2078
|
readonly inputs: readonly [{
|
|
@@ -2013,9 +2087,14 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2013
2087
|
readonly type: "bytes32";
|
|
2014
2088
|
}, {
|
|
2015
2089
|
readonly indexed: false;
|
|
2016
|
-
readonly internalType: "
|
|
2090
|
+
readonly internalType: "uint8[]";
|
|
2091
|
+
readonly name: "recipes";
|
|
2092
|
+
readonly type: "uint8[]";
|
|
2093
|
+
}, {
|
|
2094
|
+
readonly indexed: false;
|
|
2095
|
+
readonly internalType: "address[]";
|
|
2017
2096
|
readonly name: "signers";
|
|
2018
|
-
readonly type: "address[
|
|
2097
|
+
readonly type: "address[]";
|
|
2019
2098
|
}];
|
|
2020
2099
|
readonly name: "CatalogScheduled";
|
|
2021
2100
|
readonly type: "event";
|
|
@@ -2094,6 +2173,36 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2094
2173
|
}];
|
|
2095
2174
|
readonly name: "OwnershipTransferred";
|
|
2096
2175
|
readonly type: "event";
|
|
2176
|
+
}, {
|
|
2177
|
+
readonly anonymous: false;
|
|
2178
|
+
readonly inputs: readonly [{
|
|
2179
|
+
readonly indexed: true;
|
|
2180
|
+
readonly internalType: "uint8";
|
|
2181
|
+
readonly name: "recipe";
|
|
2182
|
+
readonly type: "uint8";
|
|
2183
|
+
}, {
|
|
2184
|
+
readonly indexed: true;
|
|
2185
|
+
readonly internalType: "bytes32";
|
|
2186
|
+
readonly name: "queryHash";
|
|
2187
|
+
readonly type: "bytes32";
|
|
2188
|
+
}, {
|
|
2189
|
+
readonly indexed: false;
|
|
2190
|
+
readonly internalType: "string";
|
|
2191
|
+
readonly name: "canonicalRequest";
|
|
2192
|
+
readonly type: "string";
|
|
2193
|
+
}, {
|
|
2194
|
+
readonly indexed: false;
|
|
2195
|
+
readonly internalType: "bytes";
|
|
2196
|
+
readonly name: "template";
|
|
2197
|
+
readonly type: "bytes";
|
|
2198
|
+
}, {
|
|
2199
|
+
readonly indexed: false;
|
|
2200
|
+
readonly internalType: "string";
|
|
2201
|
+
readonly name: "body";
|
|
2202
|
+
readonly type: "string";
|
|
2203
|
+
}];
|
|
2204
|
+
readonly name: "RecipeRegistered";
|
|
2205
|
+
readonly type: "event";
|
|
2097
2206
|
}, {
|
|
2098
2207
|
readonly anonymous: false;
|
|
2099
2208
|
readonly inputs: readonly [{
|
|
@@ -2104,6 +2213,26 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2104
2213
|
}];
|
|
2105
2214
|
readonly name: "Upgraded";
|
|
2106
2215
|
readonly type: "event";
|
|
2216
|
+
}, {
|
|
2217
|
+
readonly inputs: readonly [];
|
|
2218
|
+
readonly name: "BEACON_DOMAIN";
|
|
2219
|
+
readonly outputs: readonly [{
|
|
2220
|
+
readonly internalType: "bytes32";
|
|
2221
|
+
readonly name: "";
|
|
2222
|
+
readonly type: "bytes32";
|
|
2223
|
+
}];
|
|
2224
|
+
readonly stateMutability: "view";
|
|
2225
|
+
readonly type: "function";
|
|
2226
|
+
}, {
|
|
2227
|
+
readonly inputs: readonly [];
|
|
2228
|
+
readonly name: "BEACON_VERIFY_GAS";
|
|
2229
|
+
readonly outputs: readonly [{
|
|
2230
|
+
readonly internalType: "uint256";
|
|
2231
|
+
readonly name: "";
|
|
2232
|
+
readonly type: "uint256";
|
|
2233
|
+
}];
|
|
2234
|
+
readonly stateMutability: "view";
|
|
2235
|
+
readonly type: "function";
|
|
2107
2236
|
}, {
|
|
2108
2237
|
readonly inputs: readonly [];
|
|
2109
2238
|
readonly name: "EPOCH_DOMAIN";
|
|
@@ -2146,11 +2275,31 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2146
2275
|
readonly type: "function";
|
|
2147
2276
|
}, {
|
|
2148
2277
|
readonly inputs: readonly [];
|
|
2149
|
-
readonly name: "
|
|
2278
|
+
readonly name: "MAX_BACKUP_COMMITTERS";
|
|
2150
2279
|
readonly outputs: readonly [{
|
|
2151
|
-
readonly internalType: "
|
|
2280
|
+
readonly internalType: "uint256";
|
|
2152
2281
|
readonly name: "";
|
|
2153
|
-
readonly type: "
|
|
2282
|
+
readonly type: "uint256";
|
|
2283
|
+
}];
|
|
2284
|
+
readonly stateMutability: "view";
|
|
2285
|
+
readonly type: "function";
|
|
2286
|
+
}, {
|
|
2287
|
+
readonly inputs: readonly [];
|
|
2288
|
+
readonly name: "MAX_BODY_BYTES";
|
|
2289
|
+
readonly outputs: readonly [{
|
|
2290
|
+
readonly internalType: "uint256";
|
|
2291
|
+
readonly name: "";
|
|
2292
|
+
readonly type: "uint256";
|
|
2293
|
+
}];
|
|
2294
|
+
readonly stateMutability: "view";
|
|
2295
|
+
readonly type: "function";
|
|
2296
|
+
}, {
|
|
2297
|
+
readonly inputs: readonly [];
|
|
2298
|
+
readonly name: "MAX_DATA_BYTES";
|
|
2299
|
+
readonly outputs: readonly [{
|
|
2300
|
+
readonly internalType: "uint256";
|
|
2301
|
+
readonly name: "";
|
|
2302
|
+
readonly type: "uint256";
|
|
2154
2303
|
}];
|
|
2155
2304
|
readonly stateMutability: "view";
|
|
2156
2305
|
readonly type: "function";
|
|
@@ -2164,6 +2313,46 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2164
2313
|
}];
|
|
2165
2314
|
readonly stateMutability: "view";
|
|
2166
2315
|
readonly type: "function";
|
|
2316
|
+
}, {
|
|
2317
|
+
readonly inputs: readonly [];
|
|
2318
|
+
readonly name: "MAX_RECIPES";
|
|
2319
|
+
readonly outputs: readonly [{
|
|
2320
|
+
readonly internalType: "uint256";
|
|
2321
|
+
readonly name: "";
|
|
2322
|
+
readonly type: "uint256";
|
|
2323
|
+
}];
|
|
2324
|
+
readonly stateMutability: "view";
|
|
2325
|
+
readonly type: "function";
|
|
2326
|
+
}, {
|
|
2327
|
+
readonly inputs: readonly [];
|
|
2328
|
+
readonly name: "MAX_REQUEST_BYTES";
|
|
2329
|
+
readonly outputs: readonly [{
|
|
2330
|
+
readonly internalType: "uint256";
|
|
2331
|
+
readonly name: "";
|
|
2332
|
+
readonly type: "uint256";
|
|
2333
|
+
}];
|
|
2334
|
+
readonly stateMutability: "view";
|
|
2335
|
+
readonly type: "function";
|
|
2336
|
+
}, {
|
|
2337
|
+
readonly inputs: readonly [];
|
|
2338
|
+
readonly name: "MAX_SOURCES";
|
|
2339
|
+
readonly outputs: readonly [{
|
|
2340
|
+
readonly internalType: "uint256";
|
|
2341
|
+
readonly name: "";
|
|
2342
|
+
readonly type: "uint256";
|
|
2343
|
+
}];
|
|
2344
|
+
readonly stateMutability: "view";
|
|
2345
|
+
readonly type: "function";
|
|
2346
|
+
}, {
|
|
2347
|
+
readonly inputs: readonly [];
|
|
2348
|
+
readonly name: "MAX_TEMPLATE_BYTES";
|
|
2349
|
+
readonly outputs: readonly [{
|
|
2350
|
+
readonly internalType: "uint256";
|
|
2351
|
+
readonly name: "";
|
|
2352
|
+
readonly type: "uint256";
|
|
2353
|
+
}];
|
|
2354
|
+
readonly stateMutability: "view";
|
|
2355
|
+
readonly type: "function";
|
|
2167
2356
|
}, {
|
|
2168
2357
|
readonly inputs: readonly [];
|
|
2169
2358
|
readonly name: "RECIPE_DOMAIN";
|
|
@@ -2202,31 +2391,56 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2202
2391
|
readonly type: "function";
|
|
2203
2392
|
}, {
|
|
2204
2393
|
readonly inputs: readonly [];
|
|
2205
|
-
readonly name: "
|
|
2394
|
+
readonly name: "backupCommitterCount";
|
|
2206
2395
|
readonly outputs: readonly [{
|
|
2207
|
-
readonly internalType: "
|
|
2396
|
+
readonly internalType: "uint256";
|
|
2208
2397
|
readonly name: "";
|
|
2209
|
-
readonly type: "
|
|
2398
|
+
readonly type: "uint256";
|
|
2210
2399
|
}];
|
|
2211
2400
|
readonly stateMutability: "view";
|
|
2212
2401
|
readonly type: "function";
|
|
2213
2402
|
}, {
|
|
2214
|
-
readonly inputs: readonly [
|
|
2215
|
-
|
|
2403
|
+
readonly inputs: readonly [{
|
|
2404
|
+
readonly internalType: "uint8";
|
|
2405
|
+
readonly name: "recipe";
|
|
2406
|
+
readonly type: "uint8";
|
|
2407
|
+
}];
|
|
2408
|
+
readonly name: "beaconOf";
|
|
2216
2409
|
readonly outputs: readonly [{
|
|
2217
|
-
readonly
|
|
2410
|
+
readonly components: readonly [{
|
|
2411
|
+
readonly internalType: "address";
|
|
2412
|
+
readonly name: "verifier";
|
|
2413
|
+
readonly type: "address";
|
|
2414
|
+
}, {
|
|
2415
|
+
readonly internalType: "uint64";
|
|
2416
|
+
readonly name: "genesis";
|
|
2417
|
+
readonly type: "uint64";
|
|
2418
|
+
}, {
|
|
2419
|
+
readonly internalType: "uint64";
|
|
2420
|
+
readonly name: "period";
|
|
2421
|
+
readonly type: "uint64";
|
|
2422
|
+
}, {
|
|
2423
|
+
readonly internalType: "bytes32";
|
|
2424
|
+
readonly name: "chainHash";
|
|
2425
|
+
readonly type: "bytes32";
|
|
2426
|
+
}, {
|
|
2427
|
+
readonly internalType: "bytes";
|
|
2428
|
+
readonly name: "publicKey";
|
|
2429
|
+
readonly type: "bytes";
|
|
2430
|
+
}];
|
|
2431
|
+
readonly internalType: "struct EpochEntropy.Beacon";
|
|
2218
2432
|
readonly name: "";
|
|
2219
|
-
readonly type: "
|
|
2433
|
+
readonly type: "tuple";
|
|
2220
2434
|
}];
|
|
2221
2435
|
readonly stateMutability: "view";
|
|
2222
2436
|
readonly type: "function";
|
|
2223
2437
|
}, {
|
|
2224
2438
|
readonly inputs: readonly [];
|
|
2225
|
-
readonly name: "
|
|
2439
|
+
readonly name: "btcTradeSigner";
|
|
2226
2440
|
readonly outputs: readonly [{
|
|
2227
|
-
readonly internalType: "
|
|
2441
|
+
readonly internalType: "address";
|
|
2228
2442
|
readonly name: "";
|
|
2229
|
-
readonly type: "
|
|
2443
|
+
readonly type: "address";
|
|
2230
2444
|
}];
|
|
2231
2445
|
readonly stateMutability: "view";
|
|
2232
2446
|
readonly type: "function";
|
|
@@ -2236,11 +2450,29 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2236
2450
|
readonly name: "epochId";
|
|
2237
2451
|
readonly type: "uint64";
|
|
2238
2452
|
}];
|
|
2239
|
-
readonly name: "
|
|
2453
|
+
readonly name: "catalogAt";
|
|
2240
2454
|
readonly outputs: readonly [{
|
|
2241
2455
|
readonly internalType: "bytes32";
|
|
2242
2456
|
readonly name: "hash";
|
|
2243
2457
|
readonly type: "bytes32";
|
|
2458
|
+
}, {
|
|
2459
|
+
readonly internalType: "uint8[]";
|
|
2460
|
+
readonly name: "recipes";
|
|
2461
|
+
readonly type: "uint8[]";
|
|
2462
|
+
}, {
|
|
2463
|
+
readonly internalType: "address[]";
|
|
2464
|
+
readonly name: "signers";
|
|
2465
|
+
readonly type: "address[]";
|
|
2466
|
+
}];
|
|
2467
|
+
readonly stateMutability: "view";
|
|
2468
|
+
readonly type: "function";
|
|
2469
|
+
}, {
|
|
2470
|
+
readonly inputs: readonly [];
|
|
2471
|
+
readonly name: "catalogHash";
|
|
2472
|
+
readonly outputs: readonly [{
|
|
2473
|
+
readonly internalType: "bytes32";
|
|
2474
|
+
readonly name: "";
|
|
2475
|
+
readonly type: "bytes32";
|
|
2244
2476
|
}];
|
|
2245
2477
|
readonly stateMutability: "view";
|
|
2246
2478
|
readonly type: "function";
|
|
@@ -2378,6 +2610,16 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2378
2610
|
}];
|
|
2379
2611
|
readonly stateMutability: "view";
|
|
2380
2612
|
readonly type: "function";
|
|
2613
|
+
}, {
|
|
2614
|
+
readonly inputs: readonly [];
|
|
2615
|
+
readonly name: "ethereumBlockSigner";
|
|
2616
|
+
readonly outputs: readonly [{
|
|
2617
|
+
readonly internalType: "address";
|
|
2618
|
+
readonly name: "";
|
|
2619
|
+
readonly type: "address";
|
|
2620
|
+
}];
|
|
2621
|
+
readonly stateMutability: "view";
|
|
2622
|
+
readonly type: "function";
|
|
2381
2623
|
}, {
|
|
2382
2624
|
readonly inputs: readonly [{
|
|
2383
2625
|
readonly internalType: "uint64";
|
|
@@ -2473,6 +2715,10 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2473
2715
|
readonly internalType: "uint8";
|
|
2474
2716
|
readonly name: "source";
|
|
2475
2717
|
readonly type: "uint8";
|
|
2718
|
+
}, {
|
|
2719
|
+
readonly internalType: "uint8";
|
|
2720
|
+
readonly name: "recipe";
|
|
2721
|
+
readonly type: "uint8";
|
|
2476
2722
|
}, {
|
|
2477
2723
|
readonly internalType: "address";
|
|
2478
2724
|
readonly name: "airnode";
|
|
@@ -2508,6 +2754,10 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2508
2754
|
readonly internalType: "uint8";
|
|
2509
2755
|
readonly name: "source";
|
|
2510
2756
|
readonly type: "uint8";
|
|
2757
|
+
}, {
|
|
2758
|
+
readonly internalType: "uint8";
|
|
2759
|
+
readonly name: "recipe";
|
|
2760
|
+
readonly type: "uint8";
|
|
2511
2761
|
}, {
|
|
2512
2762
|
readonly internalType: "address";
|
|
2513
2763
|
readonly name: "airnode";
|
|
@@ -2531,6 +2781,32 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2531
2781
|
}];
|
|
2532
2782
|
readonly stateMutability: "view";
|
|
2533
2783
|
readonly type: "function";
|
|
2784
|
+
}, {
|
|
2785
|
+
readonly inputs: readonly [{
|
|
2786
|
+
readonly internalType: "uint8";
|
|
2787
|
+
readonly name: "recipe";
|
|
2788
|
+
readonly type: "uint8";
|
|
2789
|
+
}];
|
|
2790
|
+
readonly name: "getRecipe";
|
|
2791
|
+
readonly outputs: readonly [{
|
|
2792
|
+
readonly internalType: "bytes32";
|
|
2793
|
+
readonly name: "queryHash";
|
|
2794
|
+
readonly type: "bytes32";
|
|
2795
|
+
}, {
|
|
2796
|
+
readonly internalType: "string";
|
|
2797
|
+
readonly name: "canonicalRequest";
|
|
2798
|
+
readonly type: "string";
|
|
2799
|
+
}, {
|
|
2800
|
+
readonly internalType: "bytes";
|
|
2801
|
+
readonly name: "template";
|
|
2802
|
+
readonly type: "bytes";
|
|
2803
|
+
}, {
|
|
2804
|
+
readonly internalType: "string";
|
|
2805
|
+
readonly name: "body";
|
|
2806
|
+
readonly type: "string";
|
|
2807
|
+
}];
|
|
2808
|
+
readonly stateMutability: "view";
|
|
2809
|
+
readonly type: "function";
|
|
2534
2810
|
}, {
|
|
2535
2811
|
readonly inputs: readonly [];
|
|
2536
2812
|
readonly name: "hyperliquidSigner";
|
|
@@ -2559,6 +2835,40 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2559
2835
|
readonly outputs: readonly [];
|
|
2560
2836
|
readonly stateMutability: "nonpayable";
|
|
2561
2837
|
readonly type: "function";
|
|
2838
|
+
}, {
|
|
2839
|
+
readonly inputs: readonly [];
|
|
2840
|
+
readonly name: "initializeRecipeRegistry";
|
|
2841
|
+
readonly outputs: readonly [];
|
|
2842
|
+
readonly stateMutability: "nonpayable";
|
|
2843
|
+
readonly type: "function";
|
|
2844
|
+
}, {
|
|
2845
|
+
readonly inputs: readonly [{
|
|
2846
|
+
readonly internalType: "address";
|
|
2847
|
+
readonly name: "account";
|
|
2848
|
+
readonly type: "address";
|
|
2849
|
+
}];
|
|
2850
|
+
readonly name: "isAuthorizedCommitter";
|
|
2851
|
+
readonly outputs: readonly [{
|
|
2852
|
+
readonly internalType: "bool";
|
|
2853
|
+
readonly name: "";
|
|
2854
|
+
readonly type: "bool";
|
|
2855
|
+
}];
|
|
2856
|
+
readonly stateMutability: "view";
|
|
2857
|
+
readonly type: "function";
|
|
2858
|
+
}, {
|
|
2859
|
+
readonly inputs: readonly [{
|
|
2860
|
+
readonly internalType: "address";
|
|
2861
|
+
readonly name: "account";
|
|
2862
|
+
readonly type: "address";
|
|
2863
|
+
}];
|
|
2864
|
+
readonly name: "isBackupCommitter";
|
|
2865
|
+
readonly outputs: readonly [{
|
|
2866
|
+
readonly internalType: "bool";
|
|
2867
|
+
readonly name: "";
|
|
2868
|
+
readonly type: "bool";
|
|
2869
|
+
}];
|
|
2870
|
+
readonly stateMutability: "view";
|
|
2871
|
+
readonly type: "function";
|
|
2562
2872
|
}, {
|
|
2563
2873
|
readonly inputs: readonly [{
|
|
2564
2874
|
readonly internalType: "uint256";
|
|
@@ -2603,6 +2913,90 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2603
2913
|
}];
|
|
2604
2914
|
readonly stateMutability: "view";
|
|
2605
2915
|
readonly type: "function";
|
|
2916
|
+
}, {
|
|
2917
|
+
readonly inputs: readonly [];
|
|
2918
|
+
readonly name: "recipeCount";
|
|
2919
|
+
readonly outputs: readonly [{
|
|
2920
|
+
readonly internalType: "uint256";
|
|
2921
|
+
readonly name: "";
|
|
2922
|
+
readonly type: "uint256";
|
|
2923
|
+
}];
|
|
2924
|
+
readonly stateMutability: "view";
|
|
2925
|
+
readonly type: "function";
|
|
2926
|
+
}, {
|
|
2927
|
+
readonly inputs: readonly [{
|
|
2928
|
+
readonly internalType: "uint8";
|
|
2929
|
+
readonly name: "recipe";
|
|
2930
|
+
readonly type: "uint8";
|
|
2931
|
+
}];
|
|
2932
|
+
readonly name: "recipeRequest";
|
|
2933
|
+
readonly outputs: readonly [{
|
|
2934
|
+
readonly internalType: "string";
|
|
2935
|
+
readonly name: "";
|
|
2936
|
+
readonly type: "string";
|
|
2937
|
+
}];
|
|
2938
|
+
readonly stateMutability: "view";
|
|
2939
|
+
readonly type: "function";
|
|
2940
|
+
}, {
|
|
2941
|
+
readonly inputs: readonly [{
|
|
2942
|
+
readonly internalType: "address";
|
|
2943
|
+
readonly name: "verifier";
|
|
2944
|
+
readonly type: "address";
|
|
2945
|
+
}, {
|
|
2946
|
+
readonly internalType: "bytes32";
|
|
2947
|
+
readonly name: "chainHash";
|
|
2948
|
+
readonly type: "bytes32";
|
|
2949
|
+
}, {
|
|
2950
|
+
readonly internalType: "bytes";
|
|
2951
|
+
readonly name: "publicKey";
|
|
2952
|
+
readonly type: "bytes";
|
|
2953
|
+
}, {
|
|
2954
|
+
readonly internalType: "uint64";
|
|
2955
|
+
readonly name: "genesis";
|
|
2956
|
+
readonly type: "uint64";
|
|
2957
|
+
}, {
|
|
2958
|
+
readonly internalType: "uint64";
|
|
2959
|
+
readonly name: "period";
|
|
2960
|
+
readonly type: "uint64";
|
|
2961
|
+
}, {
|
|
2962
|
+
readonly internalType: "uint64";
|
|
2963
|
+
readonly name: "sampleRound";
|
|
2964
|
+
readonly type: "uint64";
|
|
2965
|
+
}, {
|
|
2966
|
+
readonly internalType: "bytes";
|
|
2967
|
+
readonly name: "sampleSignature";
|
|
2968
|
+
readonly type: "bytes";
|
|
2969
|
+
}];
|
|
2970
|
+
readonly name: "registerBeacon";
|
|
2971
|
+
readonly outputs: readonly [{
|
|
2972
|
+
readonly internalType: "uint8";
|
|
2973
|
+
readonly name: "recipe";
|
|
2974
|
+
readonly type: "uint8";
|
|
2975
|
+
}];
|
|
2976
|
+
readonly stateMutability: "nonpayable";
|
|
2977
|
+
readonly type: "function";
|
|
2978
|
+
}, {
|
|
2979
|
+
readonly inputs: readonly [{
|
|
2980
|
+
readonly internalType: "string";
|
|
2981
|
+
readonly name: "canonicalRequest";
|
|
2982
|
+
readonly type: "string";
|
|
2983
|
+
}, {
|
|
2984
|
+
readonly internalType: "bytes";
|
|
2985
|
+
readonly name: "template";
|
|
2986
|
+
readonly type: "bytes";
|
|
2987
|
+
}, {
|
|
2988
|
+
readonly internalType: "string";
|
|
2989
|
+
readonly name: "body";
|
|
2990
|
+
readonly type: "string";
|
|
2991
|
+
}];
|
|
2992
|
+
readonly name: "registerRecipe";
|
|
2993
|
+
readonly outputs: readonly [{
|
|
2994
|
+
readonly internalType: "uint8";
|
|
2995
|
+
readonly name: "recipe";
|
|
2996
|
+
readonly type: "uint8";
|
|
2997
|
+
}];
|
|
2998
|
+
readonly stateMutability: "nonpayable";
|
|
2999
|
+
readonly type: "function";
|
|
2606
3000
|
}, {
|
|
2607
3001
|
readonly inputs: readonly [];
|
|
2608
3002
|
readonly name: "renounceOwnership";
|
|
@@ -2611,9 +3005,13 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2611
3005
|
readonly type: "function";
|
|
2612
3006
|
}, {
|
|
2613
3007
|
readonly inputs: readonly [{
|
|
2614
|
-
readonly internalType: "
|
|
3008
|
+
readonly internalType: "uint8[]";
|
|
3009
|
+
readonly name: "recipes";
|
|
3010
|
+
readonly type: "uint8[]";
|
|
3011
|
+
}, {
|
|
3012
|
+
readonly internalType: "address[]";
|
|
2615
3013
|
readonly name: "signers";
|
|
2616
|
-
readonly type: "address[
|
|
3014
|
+
readonly type: "address[]";
|
|
2617
3015
|
}, {
|
|
2618
3016
|
readonly internalType: "uint64";
|
|
2619
3017
|
readonly name: "fromEpoch";
|
|
@@ -2623,6 +3021,20 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2623
3021
|
readonly outputs: readonly [];
|
|
2624
3022
|
readonly stateMutability: "nonpayable";
|
|
2625
3023
|
readonly type: "function";
|
|
3024
|
+
}, {
|
|
3025
|
+
readonly inputs: readonly [{
|
|
3026
|
+
readonly internalType: "address";
|
|
3027
|
+
readonly name: "account";
|
|
3028
|
+
readonly type: "address";
|
|
3029
|
+
}, {
|
|
3030
|
+
readonly internalType: "bool";
|
|
3031
|
+
readonly name: "allowed";
|
|
3032
|
+
readonly type: "bool";
|
|
3033
|
+
}];
|
|
3034
|
+
readonly name: "setBackupCommitter";
|
|
3035
|
+
readonly outputs: readonly [];
|
|
3036
|
+
readonly stateMutability: "nonpayable";
|
|
3037
|
+
readonly type: "function";
|
|
2626
3038
|
}, {
|
|
2627
3039
|
readonly inputs: readonly [{
|
|
2628
3040
|
readonly internalType: "address";
|
|
@@ -2633,17 +3045,31 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2633
3045
|
readonly outputs: readonly [];
|
|
2634
3046
|
readonly stateMutability: "nonpayable";
|
|
2635
3047
|
readonly type: "function";
|
|
3048
|
+
}, {
|
|
3049
|
+
readonly inputs: readonly [{
|
|
3050
|
+
readonly internalType: "uint8";
|
|
3051
|
+
readonly name: "recipe";
|
|
3052
|
+
readonly type: "uint8";
|
|
3053
|
+
}];
|
|
3054
|
+
readonly name: "slotSigner";
|
|
3055
|
+
readonly outputs: readonly [{
|
|
3056
|
+
readonly internalType: "address";
|
|
3057
|
+
readonly name: "";
|
|
3058
|
+
readonly type: "address";
|
|
3059
|
+
}];
|
|
3060
|
+
readonly stateMutability: "view";
|
|
3061
|
+
readonly type: "function";
|
|
2636
3062
|
}, {
|
|
2637
3063
|
readonly inputs: readonly [{
|
|
2638
3064
|
readonly internalType: "uint64";
|
|
2639
3065
|
readonly name: "epochId";
|
|
2640
3066
|
readonly type: "uint64";
|
|
2641
3067
|
}];
|
|
2642
|
-
readonly name: "
|
|
3068
|
+
readonly name: "sourceCountAt";
|
|
2643
3069
|
readonly outputs: readonly [{
|
|
2644
|
-
readonly internalType: "
|
|
2645
|
-
readonly name: "
|
|
2646
|
-
readonly type: "
|
|
3070
|
+
readonly internalType: "uint256";
|
|
3071
|
+
readonly name: "";
|
|
3072
|
+
readonly type: "uint256";
|
|
2647
3073
|
}];
|
|
2648
3074
|
readonly stateMutability: "view";
|
|
2649
3075
|
readonly type: "function";
|
|
@@ -2671,4 +3097,149 @@ export declare const epochEntropyAbi: readonly [{
|
|
|
2671
3097
|
readonly outputs: readonly [];
|
|
2672
3098
|
readonly stateMutability: "payable";
|
|
2673
3099
|
readonly type: "function";
|
|
3100
|
+
}, {
|
|
3101
|
+
readonly inputs: readonly [{
|
|
3102
|
+
readonly internalType: "uint8";
|
|
3103
|
+
readonly name: "recipe";
|
|
3104
|
+
readonly type: "uint8";
|
|
3105
|
+
}, {
|
|
3106
|
+
readonly internalType: "uint64";
|
|
3107
|
+
readonly name: "round";
|
|
3108
|
+
readonly type: "uint64";
|
|
3109
|
+
}, {
|
|
3110
|
+
readonly internalType: "bytes";
|
|
3111
|
+
readonly name: "signature";
|
|
3112
|
+
readonly type: "bytes";
|
|
3113
|
+
}];
|
|
3114
|
+
readonly name: "verifyBeacon";
|
|
3115
|
+
readonly outputs: readonly [{
|
|
3116
|
+
readonly internalType: "bool";
|
|
3117
|
+
readonly name: "";
|
|
3118
|
+
readonly type: "bool";
|
|
3119
|
+
}];
|
|
3120
|
+
readonly stateMutability: "view";
|
|
3121
|
+
readonly type: "function";
|
|
3122
|
+
}];
|
|
3123
|
+
export declare const beaconVerifierAbi: readonly [{
|
|
3124
|
+
readonly inputs: readonly [{
|
|
3125
|
+
readonly internalType: "uint256[4]";
|
|
3126
|
+
readonly name: "input";
|
|
3127
|
+
readonly type: "uint256[4]";
|
|
3128
|
+
}];
|
|
3129
|
+
readonly name: "BNAddFailed";
|
|
3130
|
+
readonly type: "error";
|
|
3131
|
+
}, {
|
|
3132
|
+
readonly inputs: readonly [];
|
|
3133
|
+
readonly name: "InsufficientGas";
|
|
3134
|
+
readonly type: "error";
|
|
3135
|
+
}, {
|
|
3136
|
+
readonly inputs: readonly [{
|
|
3137
|
+
readonly internalType: "bytes";
|
|
3138
|
+
readonly name: "dst";
|
|
3139
|
+
readonly type: "bytes";
|
|
3140
|
+
}];
|
|
3141
|
+
readonly name: "InvalidDSTLength";
|
|
3142
|
+
readonly type: "error";
|
|
3143
|
+
}, {
|
|
3144
|
+
readonly inputs: readonly [{
|
|
3145
|
+
readonly internalType: "uint256";
|
|
3146
|
+
readonly name: "x";
|
|
3147
|
+
readonly type: "uint256";
|
|
3148
|
+
}];
|
|
3149
|
+
readonly name: "InvalidFieldElement";
|
|
3150
|
+
readonly type: "error";
|
|
3151
|
+
}, {
|
|
3152
|
+
readonly inputs: readonly [{
|
|
3153
|
+
readonly internalType: "uint256";
|
|
3154
|
+
readonly name: "noSqrt";
|
|
3155
|
+
readonly type: "uint256";
|
|
3156
|
+
}];
|
|
3157
|
+
readonly name: "MapToPointFailed";
|
|
3158
|
+
readonly type: "error";
|
|
3159
|
+
}, {
|
|
3160
|
+
readonly inputs: readonly [{
|
|
3161
|
+
readonly internalType: "uint256";
|
|
3162
|
+
readonly name: "base";
|
|
3163
|
+
readonly type: "uint256";
|
|
3164
|
+
}, {
|
|
3165
|
+
readonly internalType: "uint256";
|
|
3166
|
+
readonly name: "exponent";
|
|
3167
|
+
readonly type: "uint256";
|
|
3168
|
+
}, {
|
|
3169
|
+
readonly internalType: "uint256";
|
|
3170
|
+
readonly name: "modulus";
|
|
3171
|
+
readonly type: "uint256";
|
|
3172
|
+
}];
|
|
3173
|
+
readonly name: "ModExpFailed";
|
|
3174
|
+
readonly type: "error";
|
|
3175
|
+
}, {
|
|
3176
|
+
readonly inputs: readonly [];
|
|
3177
|
+
readonly name: "DST";
|
|
3178
|
+
readonly outputs: readonly [{
|
|
3179
|
+
readonly internalType: "bytes";
|
|
3180
|
+
readonly name: "";
|
|
3181
|
+
readonly type: "bytes";
|
|
3182
|
+
}];
|
|
3183
|
+
readonly stateMutability: "view";
|
|
3184
|
+
readonly type: "function";
|
|
3185
|
+
}, {
|
|
3186
|
+
readonly inputs: readonly [];
|
|
3187
|
+
readonly name: "PAIRING_GAS";
|
|
3188
|
+
readonly outputs: readonly [{
|
|
3189
|
+
readonly internalType: "uint256";
|
|
3190
|
+
readonly name: "";
|
|
3191
|
+
readonly type: "uint256";
|
|
3192
|
+
}];
|
|
3193
|
+
readonly stateMutability: "view";
|
|
3194
|
+
readonly type: "function";
|
|
3195
|
+
}, {
|
|
3196
|
+
readonly inputs: readonly [{
|
|
3197
|
+
readonly internalType: "bytes";
|
|
3198
|
+
readonly name: "publicKey";
|
|
3199
|
+
readonly type: "bytes";
|
|
3200
|
+
}];
|
|
3201
|
+
readonly name: "isValidPublicKey";
|
|
3202
|
+
readonly outputs: readonly [{
|
|
3203
|
+
readonly internalType: "bool";
|
|
3204
|
+
readonly name: "";
|
|
3205
|
+
readonly type: "bool";
|
|
3206
|
+
}];
|
|
3207
|
+
readonly stateMutability: "pure";
|
|
3208
|
+
readonly type: "function";
|
|
3209
|
+
}, {
|
|
3210
|
+
readonly inputs: readonly [{
|
|
3211
|
+
readonly internalType: "uint64";
|
|
3212
|
+
readonly name: "round";
|
|
3213
|
+
readonly type: "uint64";
|
|
3214
|
+
}];
|
|
3215
|
+
readonly name: "roundMessage";
|
|
3216
|
+
readonly outputs: readonly [{
|
|
3217
|
+
readonly internalType: "uint256[2]";
|
|
3218
|
+
readonly name: "";
|
|
3219
|
+
readonly type: "uint256[2]";
|
|
3220
|
+
}];
|
|
3221
|
+
readonly stateMutability: "view";
|
|
3222
|
+
readonly type: "function";
|
|
3223
|
+
}, {
|
|
3224
|
+
readonly inputs: readonly [{
|
|
3225
|
+
readonly internalType: "bytes";
|
|
3226
|
+
readonly name: "publicKey";
|
|
3227
|
+
readonly type: "bytes";
|
|
3228
|
+
}, {
|
|
3229
|
+
readonly internalType: "uint64";
|
|
3230
|
+
readonly name: "round";
|
|
3231
|
+
readonly type: "uint64";
|
|
3232
|
+
}, {
|
|
3233
|
+
readonly internalType: "bytes";
|
|
3234
|
+
readonly name: "signature";
|
|
3235
|
+
readonly type: "bytes";
|
|
3236
|
+
}];
|
|
3237
|
+
readonly name: "verifyRound";
|
|
3238
|
+
readonly outputs: readonly [{
|
|
3239
|
+
readonly internalType: "bool";
|
|
3240
|
+
readonly name: "";
|
|
3241
|
+
readonly type: "bool";
|
|
3242
|
+
}];
|
|
3243
|
+
readonly stateMutability: "view";
|
|
3244
|
+
readonly type: "function";
|
|
2674
3245
|
}];
|