@bgd-labs/toolbox 0.0.18 → 0.0.20
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/dist/{index-CoGUyq9j.d.mts → index-DPOHC58S.d.mts} +212 -52
- package/dist/{index-CoGUyq9j.d.ts → index-DPOHC58S.d.ts} +212 -52
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +286 -141
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +285 -145
- package/dist/index.mjs.map +1 -1
- package/dist/node.d.mts +3 -2
- package/dist/node.d.ts +3 -2
- package/dist/node.js +286 -141
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +285 -145
- package/dist/node.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.mjs
CHANGED
|
@@ -12740,6 +12740,24 @@ async function getNonFinalizedProposals(client, governanceAddress) {
|
|
|
12740
12740
|
return nonFinalProposals;
|
|
12741
12741
|
}
|
|
12742
12742
|
|
|
12743
|
+
// src/aave/governance/aip.ts
|
|
12744
|
+
import { type } from "arktype";
|
|
12745
|
+
import matter from "gray-matter";
|
|
12746
|
+
var Aip = type({
|
|
12747
|
+
discussions: "string.url",
|
|
12748
|
+
title: "string",
|
|
12749
|
+
author: "string",
|
|
12750
|
+
snapshot: "string.url?"
|
|
12751
|
+
});
|
|
12752
|
+
function validateAip(content) {
|
|
12753
|
+
const fm = matter(content);
|
|
12754
|
+
const out = Aip(fm.data);
|
|
12755
|
+
if (out instanceof type.errors) {
|
|
12756
|
+
console.error(out.summary);
|
|
12757
|
+
throw new Error("aip validation failed");
|
|
12758
|
+
}
|
|
12759
|
+
}
|
|
12760
|
+
|
|
12743
12761
|
// src/ecosystem/generated/etherscanExplorers.ts
|
|
12744
12762
|
var etherscanExplorers = {
|
|
12745
12763
|
1: {
|
|
@@ -13218,6 +13236,10 @@ var routescanExplorers = {
|
|
|
13218
13236
|
api: "https://api.routescan.io/v2/network/testnet/evm/2358/etherscan",
|
|
13219
13237
|
explorer: "2358.routescan.io"
|
|
13220
13238
|
},
|
|
13239
|
+
2368: {
|
|
13240
|
+
api: "https://api.routescan.io/v2/network/testnet/evm/2368/etherscan",
|
|
13241
|
+
explorer: "2368.routescan.io"
|
|
13242
|
+
},
|
|
13221
13243
|
2522: {
|
|
13222
13244
|
api: "https://api.routescan.io/v2/network/testnet/evm/2522/etherscan",
|
|
13223
13245
|
explorer: "2522.routescan.io"
|
|
@@ -13426,6 +13448,10 @@ var routescanExplorers = {
|
|
|
13426
13448
|
api: "https://api.routescan.io/v2/network/testnet/evm/21816/etherscan",
|
|
13427
13449
|
explorer: "21816.routescan.io"
|
|
13428
13450
|
},
|
|
13451
|
+
23944: {
|
|
13452
|
+
api: "https://api.routescan.io/v2/network/testnet/evm/23944/etherscan",
|
|
13453
|
+
explorer: "23944.routescan.io"
|
|
13454
|
+
},
|
|
13429
13455
|
24010: {
|
|
13430
13456
|
api: "https://api.routescan.io/v2/network/testnet/evm/24010/etherscan",
|
|
13431
13457
|
explorer: "24010.routescan.io"
|
|
@@ -13995,7 +14021,8 @@ import {
|
|
|
13995
14021
|
sonic,
|
|
13996
14022
|
zksync,
|
|
13997
14023
|
ink,
|
|
13998
|
-
soneium
|
|
14024
|
+
soneium,
|
|
14025
|
+
bob
|
|
13999
14026
|
} from "viem/chains";
|
|
14000
14027
|
var ChainId = {
|
|
14001
14028
|
celo: celo.id,
|
|
@@ -14025,7 +14052,8 @@ var ChainId = {
|
|
|
14025
14052
|
zksync: zksync.id,
|
|
14026
14053
|
linea: linea.id,
|
|
14027
14054
|
ink: ink.id,
|
|
14028
|
-
soneium: soneium.id
|
|
14055
|
+
soneium: soneium.id,
|
|
14056
|
+
bob: bob.id
|
|
14029
14057
|
};
|
|
14030
14058
|
var ChainList = {
|
|
14031
14059
|
[ChainId.mainnet]: mainnet,
|
|
@@ -14065,7 +14093,8 @@ var ChainList = {
|
|
|
14065
14093
|
[ChainId.zksync]: zksync,
|
|
14066
14094
|
[ChainId.linea]: linea,
|
|
14067
14095
|
[ChainId.ink]: ink,
|
|
14068
|
-
[ChainId.soneium]: soneium
|
|
14096
|
+
[ChainId.soneium]: soneium,
|
|
14097
|
+
[ChainId.bob]: bob
|
|
14069
14098
|
};
|
|
14070
14099
|
|
|
14071
14100
|
// src/ecosystem/rpcs.ts
|
|
@@ -14111,7 +14140,6 @@ var alchemyNetworkMap = {
|
|
|
14111
14140
|
2442: "polygonzkevm-cardona",
|
|
14112
14141
|
2523: "frax-sepolia",
|
|
14113
14142
|
2741: "abstract-mainnet",
|
|
14114
|
-
4002: "fantom-testnet",
|
|
14115
14143
|
4157: "crossfi-testnet",
|
|
14116
14144
|
4158: "crossfi-mainnet",
|
|
14117
14145
|
4801: "worldchain-sepolia",
|
|
@@ -14169,7 +14197,7 @@ var alchemyNetworkMap = {
|
|
|
14169
14197
|
994873017: "lumia-prism",
|
|
14170
14198
|
999999999: "zora-sepolia",
|
|
14171
14199
|
1952959480: "lumia-testnet",
|
|
14172
|
-
"null": "
|
|
14200
|
+
"null": "aptos-testnet"
|
|
14173
14201
|
};
|
|
14174
14202
|
|
|
14175
14203
|
// src/ecosystem/generated/quicknodeNetworkMap.ts
|
|
@@ -14269,7 +14297,8 @@ var publicRPCs = {
|
|
|
14269
14297
|
[ChainId.zksync]: "https://mainnet.era.zksync.io",
|
|
14270
14298
|
[ChainId.fantom]: "https://rpc.ftm.tools",
|
|
14271
14299
|
[ChainId.avalanche]: "https://api.avax.network/ext/bc/C/rpc",
|
|
14272
|
-
[ChainId.linea]: "https://rpc.linea.build"
|
|
14300
|
+
[ChainId.linea]: "https://rpc.linea.build",
|
|
14301
|
+
[ChainId.bob]: "https://rpc.gobob.xyz"
|
|
14273
14302
|
};
|
|
14274
14303
|
var alchemySupportedChainIds = Object.values(ChainId).filter(
|
|
14275
14304
|
(id) => alchemyNetworkMap[id]
|
|
@@ -14668,7 +14697,7 @@ var chainlinkFeeds = {
|
|
|
14668
14697
|
"contractAddress": "0x00f0eFB3d9dBe7fE91fee44aE09DAe5DFA65c382",
|
|
14669
14698
|
"proxyAddress": "0x75A0d3264a949C2C920d7F25Df174af1FaF73399",
|
|
14670
14699
|
"decimals": 8,
|
|
14671
|
-
"name": "FBTC
|
|
14700
|
+
"name": "FBTC Proof of Reserves"
|
|
14672
14701
|
},
|
|
14673
14702
|
{
|
|
14674
14703
|
"contractAddress": "0x019699e5b12331cf77DF9E39818c2E15C8B06215",
|
|
@@ -14770,7 +14799,7 @@ var chainlinkFeeds = {
|
|
|
14770
14799
|
"contractAddress": "0x0bb1203d3Df75752723290EFB116a91a1a9196D1",
|
|
14771
14800
|
"proxyAddress": "0x7Eaa6f116Ab9E57f58d9A9Ce88cc3f1c2476ECfA",
|
|
14772
14801
|
"decimals": 18,
|
|
14773
|
-
"name": "stBTC
|
|
14802
|
+
"name": "stBTC Proof of Reserves"
|
|
14774
14803
|
},
|
|
14775
14804
|
{
|
|
14776
14805
|
"contractAddress": "0x0c5781B3d5E2F7c00bC286E910cB9D28a86D94b6",
|
|
@@ -15004,7 +15033,7 @@ var chainlinkFeeds = {
|
|
|
15004
15033
|
"contractAddress": "0x4803f34B757726d857c86cE585582AeB5F4A9417",
|
|
15005
15034
|
"proxyAddress": "0x5586bF404C7A22A4a4077401272cE5945f80189C",
|
|
15006
15035
|
"decimals": 8,
|
|
15007
|
-
"name": "CacheGold
|
|
15036
|
+
"name": "CacheGold Proof of Reserves USD"
|
|
15008
15037
|
},
|
|
15009
15038
|
{
|
|
15010
15039
|
"contractAddress": "0x48ac3CD812680C39879A1Fd1666639dBC9B978C0",
|
|
@@ -15052,7 +15081,7 @@ var chainlinkFeeds = {
|
|
|
15052
15081
|
"contractAddress": "0x50e1007404025e412F13eD1e1C1e6F57957F6A6F",
|
|
15053
15082
|
"proxyAddress": "0xe80baC615c38D01c101B0B1b943b05E20C8c2f76",
|
|
15054
15083
|
"decimals": 18,
|
|
15055
|
-
"name": "PumpBTC
|
|
15084
|
+
"name": "PumpBTC Proof of Reserves"
|
|
15056
15085
|
},
|
|
15057
15086
|
{
|
|
15058
15087
|
"contractAddress": "0x51766d8b44551740eFd8A34AA569D15aA0A13eCe",
|
|
@@ -15124,7 +15153,7 @@ var chainlinkFeeds = {
|
|
|
15124
15153
|
"contractAddress": "0x5EFFB9e0D6B472E48C542842B0306a1C12c9627c",
|
|
15125
15154
|
"proxyAddress": "0xC8cd82067eA907EA4af81b625d2bB653E21b5156",
|
|
15126
15155
|
"decimals": 18,
|
|
15127
|
-
"name": "eETH
|
|
15156
|
+
"name": "eETH Proof of Reserves"
|
|
15128
15157
|
},
|
|
15129
15158
|
{
|
|
15130
15159
|
"contractAddress": "0x5a0efD6D1a058A46D3Ac4511861adB8F3540BD49",
|
|
@@ -15148,7 +15177,7 @@ var chainlinkFeeds = {
|
|
|
15148
15177
|
"contractAddress": "0x601009229b0215e4FC90C10c8145E066aE03d5F9",
|
|
15149
15178
|
"proxyAddress": "0x461790bDAF5aeD3df6a88cB97Dec42DD0EFA73c0",
|
|
15150
15179
|
"decimals": 18,
|
|
15151
|
-
"name": "xSolvBTC
|
|
15180
|
+
"name": "xSolvBTC Proof of Reserves"
|
|
15152
15181
|
},
|
|
15153
15182
|
{
|
|
15154
15183
|
"contractAddress": "0x62a897c3e81d809c7444BB63D7D51E1F2EbB6C3D",
|
|
@@ -15178,7 +15207,7 @@ var chainlinkFeeds = {
|
|
|
15178
15207
|
"contractAddress": "0x64DEE1Bc46e817ed93dEA4815F071B20eD218E39",
|
|
15179
15208
|
"proxyAddress": "0xa81FE04086865e63E12dD3776978E49DEEa2ea4e",
|
|
15180
15209
|
"decimals": 8,
|
|
15181
|
-
"name": "WBTC
|
|
15210
|
+
"name": "WBTC Proof of Reserves"
|
|
15182
15211
|
},
|
|
15183
15212
|
{
|
|
15184
15213
|
"contractAddress": "0x64c67984A458513C6BAb23a815916B1b1075cf3a",
|
|
@@ -15336,7 +15365,7 @@ var chainlinkFeeds = {
|
|
|
15336
15365
|
"contractAddress": "0x83cE6dbda88D4b59b370d765567d2CaB460bBdc9",
|
|
15337
15366
|
"proxyAddress": "0x43921Ca0eca1EA69722c048A6afbc2CAd0BB80e9",
|
|
15338
15367
|
"decimals": 8,
|
|
15339
|
-
"name": "21BTC
|
|
15368
|
+
"name": "21BTC Proof of Reserves"
|
|
15340
15369
|
},
|
|
15341
15370
|
{
|
|
15342
15371
|
"contractAddress": "0x841385263b2192A6f4b14353574C02bf0577473d",
|
|
@@ -15390,7 +15419,7 @@ var chainlinkFeeds = {
|
|
|
15390
15419
|
"contractAddress": "0x8a43cc06554Ab042FFBf07e64cfb8FeE4E673422",
|
|
15391
15420
|
"proxyAddress": "0xAd410E655C0fE4741F573152592eeb766e686CE7",
|
|
15392
15421
|
"decimals": 18,
|
|
15393
|
-
"name": "stETH
|
|
15422
|
+
"name": "stETH Proof of Reserves"
|
|
15394
15423
|
},
|
|
15395
15424
|
{
|
|
15396
15425
|
"contractAddress": "0x8c944f66a996b5399F51dc3d8d023E07Bb0767fD",
|
|
@@ -15510,7 +15539,7 @@ var chainlinkFeeds = {
|
|
|
15510
15539
|
"contractAddress": "0x99BC071f317BEF648E5e84f7E0600423360C0Cd1",
|
|
15511
15540
|
"proxyAddress": "0xad4A9bED9a5E2c1c9a6E43D35Db53c83873dd901",
|
|
15512
15541
|
"decimals": 18,
|
|
15513
|
-
"name": "STBT
|
|
15542
|
+
"name": "STBT Proof of Reserves"
|
|
15514
15543
|
},
|
|
15515
15544
|
{
|
|
15516
15545
|
"contractAddress": "0x9Bc91f0E55b0d6509F65fd8C4b34b89F23AEfA35",
|
|
@@ -15518,6 +15547,12 @@ var chainlinkFeeds = {
|
|
|
15518
15547
|
"decimals": 18,
|
|
15519
15548
|
"name": "FTT / ETH"
|
|
15520
15549
|
},
|
|
15550
|
+
{
|
|
15551
|
+
"contractAddress": "0x9E3AABA3B04264DD009437F48eBFD70713dd0667",
|
|
15552
|
+
"proxyAddress": "0xAcFCF155a0de611414C510D43446c27a4EE6a758",
|
|
15553
|
+
"decimals": 8,
|
|
15554
|
+
"name": "WAMPL / USD"
|
|
15555
|
+
},
|
|
15521
15556
|
{
|
|
15522
15557
|
"contractAddress": "0x9c7CF045f964B45FFC6AA0Ffbffd7bb6d1b470A3",
|
|
15523
15558
|
"proxyAddress": "0x3C7dB4D25deAb7c89660512C5494Dc9A3FC40f78",
|
|
@@ -15739,7 +15774,7 @@ var chainlinkFeeds = {
|
|
|
15739
15774
|
"contractAddress": "0xD0f0efAfB63ce1e46ae1aF84BCFE2A2A175E6797",
|
|
15740
15775
|
"proxyAddress": "0xda9258AFc797Cd64d1b6FC651051224cdAB1B25E",
|
|
15741
15776
|
"decimals": 18,
|
|
15742
|
-
"name": "SolvBTC
|
|
15777
|
+
"name": "SolvBTC Proof of Reserves"
|
|
15743
15778
|
},
|
|
15744
15779
|
{
|
|
15745
15780
|
"contractAddress": "0xD37190eC18fEfE85F4a0fCdEb8Bc220A47093457",
|
|
@@ -15757,7 +15792,7 @@ var chainlinkFeeds = {
|
|
|
15757
15792
|
"contractAddress": "0xE5490FcdFe66b1680f2b4c09f81149f0C285a2E3",
|
|
15758
15793
|
"proxyAddress": "0x60cbE8D88EF519cF3C62414D76f50818D211fea1",
|
|
15759
15794
|
"decimals": 18,
|
|
15760
|
-
"name": "Swell ETH
|
|
15795
|
+
"name": "Swell ETH Proof of Reserves"
|
|
15761
15796
|
},
|
|
15762
15797
|
{
|
|
15763
15798
|
"contractAddress": "0xE6c7AE04e83aa7e491988cAeecf5BD6a240A0d14",
|
|
@@ -15829,7 +15864,7 @@ var chainlinkFeeds = {
|
|
|
15829
15864
|
"contractAddress": "0xa685F0Bb86044e9c6A182A3689bBF8A98eB5764C",
|
|
15830
15865
|
"proxyAddress": "0x0c89c488e763AC2d69cB058CCAC7A8B283EE3DbA",
|
|
15831
15866
|
"decimals": 18,
|
|
15832
|
-
"name": "Swell Restaked ETH
|
|
15867
|
+
"name": "Swell Restaked ETH Proof of Reserves"
|
|
15833
15868
|
},
|
|
15834
15869
|
{
|
|
15835
15870
|
"contractAddress": "0xa7Daf8A03B064262FfF0D615663553DAe3E18744",
|
|
@@ -15859,7 +15894,7 @@ var chainlinkFeeds = {
|
|
|
15859
15894
|
"contractAddress": "0xb49dBd447D2C3ae00B205200Fe629cA73E3E80e3",
|
|
15860
15895
|
"proxyAddress": "0x0A8cD0115B1EE87EbA5b8E06A9a15ED93e230f7a",
|
|
15861
15896
|
"decimals": 18,
|
|
15862
|
-
"name": "HBTC
|
|
15897
|
+
"name": "HBTC Proof of Reserves"
|
|
15863
15898
|
},
|
|
15864
15899
|
{
|
|
15865
15900
|
"contractAddress": "0xb611401574061947aBAc7d2406711F115BE22A6e",
|
|
@@ -15871,7 +15906,7 @@ var chainlinkFeeds = {
|
|
|
15871
15906
|
"contractAddress": "0xbBaf2F253Dec10c17eF9531bc8Cd7A7C708A10Bc",
|
|
15872
15907
|
"proxyAddress": "0xc590D9fb8eE78a0909dFF341ccf717000b7b7fF2",
|
|
15873
15908
|
"decimals": 18,
|
|
15874
|
-
"name": "uniBTC
|
|
15909
|
+
"name": "uniBTC Proof of Reserves"
|
|
15875
15910
|
},
|
|
15876
15911
|
{
|
|
15877
15912
|
"contractAddress": "0xbCD99Bc4C5Bee667939bf7E9B3367d0A0Fa096a0",
|
|
@@ -16988,7 +17023,7 @@ var chainlinkFeeds = {
|
|
|
16988
17023
|
"contractAddress": "0x0044980acB0C01d75afF2Cc3DF2F11171442295c",
|
|
16989
17024
|
"proxyAddress": "0x657b128a4936542A48a40C320BFfa3F44043583a",
|
|
16990
17025
|
"decimals": 18,
|
|
16991
|
-
"name": "SolvBTC
|
|
17026
|
+
"name": "SolvBTC Proof of Reserves"
|
|
16992
17027
|
},
|
|
16993
17028
|
{
|
|
16994
17029
|
"contractAddress": "0x0765d9EF5E38A2E742d2c3A58C4944a3fb6D25C5",
|
|
@@ -17528,7 +17563,7 @@ var chainlinkFeeds = {
|
|
|
17528
17563
|
"contractAddress": "0x9a8b0bf764D6cd177616A6133fb222ad5938b51a",
|
|
17529
17564
|
"proxyAddress": "0x81ca991cEf14e7bFB3fa8cc70303a2DEaEb09A42",
|
|
17530
17565
|
"decimals": 18,
|
|
17531
|
-
"name": "Solv
|
|
17566
|
+
"name": "Solv Proof of Reserves"
|
|
17532
17567
|
},
|
|
17533
17568
|
{
|
|
17534
17569
|
"contractAddress": "0x9f1fD891E4D82F4b23420C769Bd96409C99806b2",
|
|
@@ -17642,7 +17677,7 @@ var chainlinkFeeds = {
|
|
|
17642
17677
|
"contractAddress": "0xDa15d5A05A2813395e9A851EA463281AA1354FF7",
|
|
17643
17678
|
"proxyAddress": "0x696B7eA5827548cd35C743A0a05c1f3130196e5e",
|
|
17644
17679
|
"decimals": 18,
|
|
17645
|
-
"name": "stBTC
|
|
17680
|
+
"name": "stBTC Proof of Reserves"
|
|
17646
17681
|
},
|
|
17647
17682
|
{
|
|
17648
17683
|
"contractAddress": "0xE0Aa6B17316140A964B08E0228152E282225607D",
|
|
@@ -18288,7 +18323,7 @@ var chainlinkFeeds = {
|
|
|
18288
18323
|
"contractAddress": "0x31fe6bD1D7E4166B5b8Fd4112eea3C7eECA51217",
|
|
18289
18324
|
"proxyAddress": "0x0fB2beD999da86Cb1Fdd97E746600A96141EeA09",
|
|
18290
18325
|
"decimals": 8,
|
|
18291
|
-
"name": "bNVDA Reserves /
|
|
18326
|
+
"name": "bNVDA Reserves / Proof of Reserves"
|
|
18292
18327
|
},
|
|
18293
18328
|
{
|
|
18294
18329
|
"contractAddress": "0x32411A331EAf9829adCEC478afF9adF2B5bd296c",
|
|
@@ -18774,7 +18809,7 @@ var chainlinkFeeds = {
|
|
|
18774
18809
|
"contractAddress": "0xC65B00c8D77dc82Bd29E8b571De22c6ED3F6eE89",
|
|
18775
18810
|
"proxyAddress": "0x4e9fc7480c16F3FE5d956C0759eE6b4808d1F5D7",
|
|
18776
18811
|
"decimals": 8,
|
|
18777
|
-
"name": "CGT
|
|
18812
|
+
"name": "CGT Proof of Reserves (ETH)"
|
|
18778
18813
|
},
|
|
18779
18814
|
{
|
|
18780
18815
|
"contractAddress": "0xC6c7Bb0d721e4Ef7318A16F682dd4c1013b430F0",
|
|
@@ -19686,6 +19721,12 @@ var chainlinkFeeds = {
|
|
|
19686
19721
|
"decimals": 8,
|
|
19687
19722
|
"name": "BTC / USD"
|
|
19688
19723
|
},
|
|
19724
|
+
{
|
|
19725
|
+
"contractAddress": "0xa236d64Ef51e3243887aac4270ea75De65ECABfd",
|
|
19726
|
+
"proxyAddress": "0x01dd982820B7c25e2A9C77BDd3bC0eDA90298A2F",
|
|
19727
|
+
"decimals": 8,
|
|
19728
|
+
"name": "USD1 / USD"
|
|
19729
|
+
},
|
|
19689
19730
|
{
|
|
19690
19731
|
"contractAddress": "0xfB1193670633f958F50C0E49688a82E6b73297b1",
|
|
19691
19732
|
"proxyAddress": "0xD97F20bEbeD74e8144134C4b148fE93417dd0F96",
|
|
@@ -19956,7 +19997,13 @@ var chainlinkFeeds = {
|
|
|
19956
19997
|
"contractAddress": "0x52d743436F6bA414050bD8869C8bF6537C355A00",
|
|
19957
19998
|
"proxyAddress": "0x30A76F4E688Cf52f4A06D7AAd987A7037f3Ae6f7",
|
|
19958
19999
|
"decimals": 8,
|
|
19959
|
-
"name": "dlcBTC
|
|
20000
|
+
"name": "dlcBTC Proof of Reserves"
|
|
20001
|
+
},
|
|
20002
|
+
{
|
|
20003
|
+
"contractAddress": "0x5387a1EA9361BD8A2AA1BE68E1e10bd566eECFa4",
|
|
20004
|
+
"proxyAddress": "0x9f0C1dD78C4CBdF5b9cf923a549A201EdC676D34",
|
|
20005
|
+
"decimals": 8,
|
|
20006
|
+
"name": "XRP / USD"
|
|
19960
20007
|
},
|
|
19961
20008
|
{
|
|
19962
20009
|
"contractAddress": "0x55012EF027ae9b4E2bb5a5f529E5a1184Bcc998D",
|
|
@@ -20006,6 +20053,12 @@ var chainlinkFeeds = {
|
|
|
20006
20053
|
"decimals": 8,
|
|
20007
20054
|
"name": "COMP / USD"
|
|
20008
20055
|
},
|
|
20056
|
+
{
|
|
20057
|
+
"contractAddress": "0x62c9CB9Dd648d9ed28C4C243d062093571b934D7",
|
|
20058
|
+
"proxyAddress": "0x206a34e47093125fbf4C75b7c7E88b84c6A77a69",
|
|
20059
|
+
"decimals": 8,
|
|
20060
|
+
"name": "LTC / USD"
|
|
20061
|
+
},
|
|
20009
20062
|
{
|
|
20010
20063
|
"contractAddress": "0x63a3b4E2aeea2d1Cc883987AEc22E9Aa88323b3c",
|
|
20011
20064
|
"proxyAddress": "0x79cf4a31B29D69191f0b6E97916eB93FEB81E533",
|
|
@@ -20156,6 +20209,12 @@ var chainlinkFeeds = {
|
|
|
20156
20209
|
"decimals": 8,
|
|
20157
20210
|
"name": "GHO / USD"
|
|
20158
20211
|
},
|
|
20212
|
+
{
|
|
20213
|
+
"contractAddress": "0x91e936921Df850Cc8714527EBE6C45ECbD2CAd31",
|
|
20214
|
+
"proxyAddress": "0x34cD971a092d5411bD69C10a5F0A7EEF72C69041",
|
|
20215
|
+
"decimals": 8,
|
|
20216
|
+
"name": "ADA / USD"
|
|
20217
|
+
},
|
|
20159
20218
|
{
|
|
20160
20219
|
"contractAddress": "0x9465CF4b4032080434E397F42fB99A8446c35376",
|
|
20161
20220
|
"proxyAddress": "0xd5Ec94430eF4170D819E0996BC53ed40d31638d8",
|
|
@@ -20340,7 +20399,7 @@ var chainlinkFeeds = {
|
|
|
20340
20399
|
"contractAddress": "0xa24AAfb9d49d0cF43dcd8A5f2442a30391F494D2",
|
|
20341
20400
|
"proxyAddress": "0x7FCED5198e43ec93Ef2179DFC70a8dcf494DcB80",
|
|
20342
20401
|
"decimals": 8,
|
|
20343
|
-
"name": "iBTC
|
|
20402
|
+
"name": "iBTC Proof of Reserves"
|
|
20344
20403
|
},
|
|
20345
20404
|
{
|
|
20346
20405
|
"contractAddress": "0xa332cbef58964977Fa47d8Fa9abdc58FBd477e62",
|
|
@@ -20534,7 +20593,7 @@ var chainlinkFeeds = {
|
|
|
20534
20593
|
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
20535
20594
|
"proxyAddress": null,
|
|
20536
20595
|
"decimals": 18,
|
|
20537
|
-
"name": "UNIBTC/BTC-ExRate-mainnet-production"
|
|
20596
|
+
"name": "UNIBTC/BTC-ExRate-Deprecated-mainnet-production"
|
|
20538
20597
|
},
|
|
20539
20598
|
{
|
|
20540
20599
|
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
@@ -21763,9 +21822,21 @@ var chainlinkFeeds = {
|
|
|
21763
21822
|
{
|
|
21764
21823
|
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
21765
21824
|
"proxyAddress": null,
|
|
21766
|
-
"decimals":
|
|
21825
|
+
"decimals": 0,
|
|
21767
21826
|
"name": "SYRUPUSDC/USDC-ExRate-mainnet-production"
|
|
21768
21827
|
},
|
|
21828
|
+
{
|
|
21829
|
+
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
21830
|
+
"proxyAddress": null,
|
|
21831
|
+
"decimals": 18,
|
|
21832
|
+
"name": "SyrupUSDC/USDC-ExRate-Deprecated-mainnet-production"
|
|
21833
|
+
},
|
|
21834
|
+
{
|
|
21835
|
+
"contractAddress": "0x0000000000000000000000000000000000000000",
|
|
21836
|
+
"proxyAddress": null,
|
|
21837
|
+
"decimals": 0,
|
|
21838
|
+
"name": "UNIBTC/BTC-ExRate-mainnet-production"
|
|
21839
|
+
},
|
|
21769
21840
|
{
|
|
21770
21841
|
"contractAddress": "0x01DD3Cf6118069DB13A2d64d7e1A09FECd587EDD",
|
|
21771
21842
|
"proxyAddress": "0x8d0CC5f38f9E802475f2CFf4F9fc7000C2E1557c",
|
|
@@ -21938,7 +22009,7 @@ var chainlinkFeeds = {
|
|
|
21938
22009
|
"contractAddress": "0x29ef0aE1eDb5764b5bd2ff3a605b5d4Eb39a0d63",
|
|
21939
22010
|
"proxyAddress": "0x5F25Ea8Cf2a3aB12E4D6fB58FB63C7938473B036",
|
|
21940
22011
|
"decimals": 10,
|
|
21941
|
-
"name": "aBTC
|
|
22012
|
+
"name": "aBTC Proof of Reserves"
|
|
21942
22013
|
},
|
|
21943
22014
|
{
|
|
21944
22015
|
"contractAddress": "0x2C50f2Fe9427d120DEA2eb804c148d2780519d59",
|
|
@@ -21992,7 +22063,7 @@ var chainlinkFeeds = {
|
|
|
21992
22063
|
"contractAddress": "0x331480b3C79f16018704A83847db1e29d8cdce14",
|
|
21993
22064
|
"proxyAddress": "0xfb010c715Ff2B85DB9c896f0C030bF9329638905",
|
|
21994
22065
|
"decimals": 8,
|
|
21995
|
-
"name": "FBTC
|
|
22066
|
+
"name": "FBTC Proof of Reserves"
|
|
21996
22067
|
},
|
|
21997
22068
|
{
|
|
21998
22069
|
"contractAddress": "0x338D614Af8c05eF9d77a33E9D33A92b770809ED4",
|
|
@@ -23893,7 +23964,7 @@ var chainlinkFeeds = {
|
|
|
23893
23964
|
{
|
|
23894
23965
|
"contractAddress": "0x534a7FF707Bc862cAB0Dda546F1B817Be5235b66",
|
|
23895
23966
|
"proxyAddress": null,
|
|
23896
|
-
"decimals":
|
|
23967
|
+
"decimals": 0,
|
|
23897
23968
|
"name": "wstETH/USD-RefPrice-DS-Premium-Global-003"
|
|
23898
23969
|
},
|
|
23899
23970
|
{
|
|
@@ -24122,7 +24193,7 @@ var chainlinkFeeds = {
|
|
|
24122
24193
|
"contractAddress": "0x5F36C484290Ec4bDaC745c6C8BD681F44bE6ac4D",
|
|
24123
24194
|
"proxyAddress": "0x0543Bb6b5A57E3e7569237b67321eAB773e41401",
|
|
24124
24195
|
"decimals": 8,
|
|
24125
|
-
"name": "iBTC
|
|
24196
|
+
"name": "iBTC Proof of Reserves"
|
|
24126
24197
|
},
|
|
24127
24198
|
{
|
|
24128
24199
|
"contractAddress": "0x5ab0B1e2604d4B708721bc3cD1ce962958b4297E",
|
|
@@ -24236,7 +24307,7 @@ var chainlinkFeeds = {
|
|
|
24236
24307
|
"contractAddress": "0x73b6A47371f6278F41Ec655A3a06477997912D09",
|
|
24237
24308
|
"proxyAddress": "0xA0118D8948FA85624608d94eC6B52973578082fA",
|
|
24238
24309
|
"decimals": 18,
|
|
24239
|
-
"name": "stBTC
|
|
24310
|
+
"name": "stBTC Proof of Reserves"
|
|
24240
24311
|
},
|
|
24241
24312
|
{
|
|
24242
24313
|
"contractAddress": "0x75DD106b46017F9b5BF2c468f29Ee55f410b991c",
|
|
@@ -24464,7 +24535,7 @@ var chainlinkFeeds = {
|
|
|
24464
24535
|
"contractAddress": "0xAfAEbEB1Db6d13EC1279B59396a9dc40502458c1",
|
|
24465
24536
|
"proxyAddress": "0x47A2fBEb46553F01E7133686Fb1b5349d4823a0C",
|
|
24466
24537
|
"decimals": 8,
|
|
24467
|
-
"name": "dlcBTC
|
|
24538
|
+
"name": "dlcBTC Proof of Reserves"
|
|
24468
24539
|
},
|
|
24469
24540
|
{
|
|
24470
24541
|
"contractAddress": "0xB4A1F9641186D822a941FEc71E374bB66cd27cdA",
|
|
@@ -24560,7 +24631,7 @@ var chainlinkFeeds = {
|
|
|
24560
24631
|
"contractAddress": "0xDB99d80bD3aE8dae5d929493Ddf696196f7f59f2",
|
|
24561
24632
|
"proxyAddress": "0xd9344493d99153Ad4353D604A1d80d4089004c5D",
|
|
24562
24633
|
"decimals": 8,
|
|
24563
|
-
"name": "zBTC
|
|
24634
|
+
"name": "zBTC Proof of Reserves"
|
|
24564
24635
|
},
|
|
24565
24636
|
{
|
|
24566
24637
|
"contractAddress": "0xDf8a3fc9bC6fA89F1b630e58f6eB4b874f24C165",
|
|
@@ -25104,7 +25175,7 @@ var chainlinkFeeds = {
|
|
|
25104
25175
|
"contractAddress": "0x017780bFA4D66Ee3b4b816a15b0f05DF2654f7B9",
|
|
25105
25176
|
"proxyAddress": "0xebEfEAA58636DF9B20a4fAd78Fad8759e6A20e87",
|
|
25106
25177
|
"decimals": 8,
|
|
25107
|
-
"name": "WBTC.e
|
|
25178
|
+
"name": "WBTC.e Proof of Reserves"
|
|
25108
25179
|
},
|
|
25109
25180
|
{
|
|
25110
25181
|
"contractAddress": "0x0B2bFcbE40213cF93CE2Be85156DD16E31483f70",
|
|
@@ -25158,7 +25229,7 @@ var chainlinkFeeds = {
|
|
|
25158
25229
|
"contractAddress": "0x1c4841636a4848d474892E7408312804D3f9a43F",
|
|
25159
25230
|
"proxyAddress": "0x976D7fAc81A49FA71EF20694a3C56B9eFB93c30B",
|
|
25160
25231
|
"decimals": 18,
|
|
25161
|
-
"name": "DAI.e
|
|
25232
|
+
"name": "DAI.e Proof of Reserves"
|
|
25162
25233
|
},
|
|
25163
25234
|
{
|
|
25164
25235
|
"contractAddress": "0x255ca8e07c6Dbc4835DC7680dB7D9E969c08c120",
|
|
@@ -25236,7 +25307,7 @@ var chainlinkFeeds = {
|
|
|
25236
25307
|
"contractAddress": "0x461b95e560697B0C83AB569f06034832a4b62707",
|
|
25237
25308
|
"proxyAddress": "0x99311B4bf6D8E3D3B4b9fbdD09a1B0F4Ad8e06E9",
|
|
25238
25309
|
"decimals": 8,
|
|
25239
|
-
"name": "BTC.b
|
|
25310
|
+
"name": "BTC.b Proof of Reserves"
|
|
25240
25311
|
},
|
|
25241
25312
|
{
|
|
25242
25313
|
"contractAddress": "0x4A5cE69A1aDA639042B30e1574Eb9D6e939388A3",
|
|
@@ -25278,7 +25349,7 @@ var chainlinkFeeds = {
|
|
|
25278
25349
|
"contractAddress": "0x61595142b147De812B43C66f30094a3219a38bCD",
|
|
25279
25350
|
"proxyAddress": "0x943cEF1B112Ca9FD7EDaDC9A46477d3812a382b6",
|
|
25280
25351
|
"decimals": 18,
|
|
25281
|
-
"name": "LINK.e
|
|
25352
|
+
"name": "LINK.e Proof of Reserves"
|
|
25282
25353
|
},
|
|
25283
25354
|
{
|
|
25284
25355
|
"contractAddress": "0x64922B570edf432defD4d3C5647269727a667EDa",
|
|
@@ -25434,7 +25505,7 @@ var chainlinkFeeds = {
|
|
|
25434
25505
|
"contractAddress": "0xC5463267394709421b0FF3726dd21e152Ec0B1D9",
|
|
25435
25506
|
"proxyAddress": "0x14C4c668E34c09E1FBA823aD5DB47F60aeBDD4F7",
|
|
25436
25507
|
"decimals": 18,
|
|
25437
|
-
"name": "AAVE.e
|
|
25508
|
+
"name": "AAVE.e Proof of Reserves"
|
|
25438
25509
|
},
|
|
25439
25510
|
{
|
|
25440
25511
|
"contractAddress": "0xC54d8293A7f98ef887BE882311E4C274BE67f927",
|
|
@@ -25458,7 +25529,7 @@ var chainlinkFeeds = {
|
|
|
25458
25529
|
"contractAddress": "0xD38Acd83073EeF07186D5Db701C576aD42D6cf27",
|
|
25459
25530
|
"proxyAddress": "0xDDaf9290D057BfA12d7576e6dADC109421F31948",
|
|
25460
25531
|
"decimals": 18,
|
|
25461
|
-
"name": "WETH.e
|
|
25532
|
+
"name": "WETH.e Proof of Reserves"
|
|
25462
25533
|
},
|
|
25463
25534
|
{
|
|
25464
25535
|
"contractAddress": "0xD74bBE6Db11AD5F3D4F7d4Ee23D9C9d5c301D4e0",
|
|
@@ -25560,7 +25631,7 @@ var chainlinkFeeds = {
|
|
|
25560
25631
|
"contractAddress": "0xd4452d1811AA9AC14B9c55444a1B55CDB97760eC",
|
|
25561
25632
|
"proxyAddress": "0x94D8c2548018C27F1aa078A23C4158206bE1CC72",
|
|
25562
25633
|
"decimals": 6,
|
|
25563
|
-
"name": "USDT.e
|
|
25634
|
+
"name": "USDT.e Proof of Reserves"
|
|
25564
25635
|
},
|
|
25565
25636
|
{
|
|
25566
25637
|
"contractAddress": "0xd761cFc03e833FEBB04297Cc1aB7291D80c9595f",
|
|
@@ -25574,11 +25645,17 @@ var chainlinkFeeds = {
|
|
|
25574
25645
|
"decimals": 8,
|
|
25575
25646
|
"name": "CRV / USD"
|
|
25576
25647
|
},
|
|
25648
|
+
{
|
|
25649
|
+
"contractAddress": "0xe3fA7342C4096E02aB376f64b6C5251bf6f3c657",
|
|
25650
|
+
"proxyAddress": "0x0d2807dc7FA52d3B38be564B64a2b37753C49AdD",
|
|
25651
|
+
"decimals": 8,
|
|
25652
|
+
"name": "EmCH Reserves"
|
|
25653
|
+
},
|
|
25577
25654
|
{
|
|
25578
25655
|
"contractAddress": "0xf52BF03f3f406BAAADE542b3D2D5CeCfFf1754E6",
|
|
25579
25656
|
"proxyAddress": "0x63769951E4cfDbDC653dD9BBde63D2Ce0746e5F2",
|
|
25580
25657
|
"decimals": 6,
|
|
25581
|
-
"name": "USDC.e
|
|
25658
|
+
"name": "USDC.e Proof of Reserves"
|
|
25582
25659
|
},
|
|
25583
25660
|
{
|
|
25584
25661
|
"contractAddress": "0xfb317b2a4404802dF62c87a5982EE383F2711ce6",
|
|
@@ -25858,7 +25935,7 @@ var chainlinkFeeds = {
|
|
|
25858
25935
|
"contractAddress": "0x863451a4C718699bb3C860799a785DBd4DDf3a4D",
|
|
25859
25936
|
"proxyAddress": "0x6dCa10bce66548e26DBd1FCF4E8692796BeDdd7E",
|
|
25860
25937
|
"decimals": 18,
|
|
25861
|
-
"name": "stBTC
|
|
25938
|
+
"name": "stBTC Proof of Reserves"
|
|
25862
25939
|
},
|
|
25863
25940
|
{
|
|
25864
25941
|
"contractAddress": "0x88926382559e24D1153d9F492554064C9f052A22",
|
|
@@ -25997,85 +26074,85 @@ var chainlinkFeeds = {
|
|
|
25997
26074
|
|
|
25998
26075
|
// src/ecosystem/generated/hyperRPC.ts
|
|
25999
26076
|
var hyperRPCSupportedNetworks = [
|
|
26000
|
-
645749,
|
|
26001
|
-
1923,
|
|
26002
|
-
130,
|
|
26003
|
-
33111,
|
|
26004
|
-
50002,
|
|
26005
|
-
1868,
|
|
26006
|
-
1750,
|
|
26007
|
-
100,
|
|
26008
|
-
42170,
|
|
26009
|
-
51,
|
|
26010
|
-
2741,
|
|
26011
|
-
57073,
|
|
26012
|
-
8453,
|
|
26013
|
-
531050104,
|
|
26014
26077
|
1,
|
|
26015
|
-
|
|
26016
|
-
7e3,
|
|
26017
|
-
48900,
|
|
26018
|
-
1301,
|
|
26019
|
-
10143,
|
|
26020
|
-
59144,
|
|
26021
|
-
11155420,
|
|
26022
|
-
80094,
|
|
26023
|
-
80084,
|
|
26024
|
-
5e3,
|
|
26025
|
-
6342,
|
|
26026
|
-
2810,
|
|
26027
|
-
80002,
|
|
26078
|
+
1,
|
|
26028
26079
|
10,
|
|
26029
|
-
50,
|
|
26030
|
-
42220,
|
|
26031
26080
|
100,
|
|
26032
|
-
|
|
26033
|
-
|
|
26034
|
-
|
|
26035
|
-
81457,
|
|
26036
|
-
97,
|
|
26037
|
-
43114,
|
|
26038
|
-
17864,
|
|
26039
|
-
252,
|
|
26040
|
-
146,
|
|
26041
|
-
42,
|
|
26042
|
-
1,
|
|
26043
|
-
4201,
|
|
26044
|
-
148,
|
|
26045
|
-
9889,
|
|
26046
|
-
7225878,
|
|
26047
|
-
7560,
|
|
26048
|
-
84532,
|
|
26049
|
-
5330,
|
|
26050
|
-
168587773,
|
|
26051
|
-
14,
|
|
26081
|
+
100,
|
|
26082
|
+
10143,
|
|
26083
|
+
10200,
|
|
26052
26084
|
1101,
|
|
26053
26085
|
11155111,
|
|
26054
|
-
|
|
26055
|
-
|
|
26056
|
-
|
|
26057
|
-
8888,
|
|
26086
|
+
11155420,
|
|
26087
|
+
1135,
|
|
26088
|
+
1284,
|
|
26058
26089
|
1287,
|
|
26090
|
+
130,
|
|
26091
|
+
1301,
|
|
26092
|
+
1313161554,
|
|
26093
|
+
137,
|
|
26094
|
+
14,
|
|
26095
|
+
146,
|
|
26096
|
+
148,
|
|
26097
|
+
16666e5,
|
|
26098
|
+
168587773,
|
|
26099
|
+
169,
|
|
26100
|
+
17e3,
|
|
26101
|
+
1750,
|
|
26102
|
+
17864,
|
|
26103
|
+
1868,
|
|
26104
|
+
1923,
|
|
26105
|
+
204,
|
|
26106
|
+
250,
|
|
26107
|
+
252,
|
|
26059
26108
|
255,
|
|
26060
|
-
|
|
26061
|
-
|
|
26109
|
+
2741,
|
|
26110
|
+
2810,
|
|
26111
|
+
2818,
|
|
26112
|
+
288,
|
|
26062
26113
|
30,
|
|
26114
|
+
324,
|
|
26115
|
+
33111,
|
|
26116
|
+
34443,
|
|
26117
|
+
42,
|
|
26063
26118
|
4200,
|
|
26064
|
-
|
|
26065
|
-
|
|
26066
|
-
17e3,
|
|
26119
|
+
4201,
|
|
26120
|
+
42161,
|
|
26067
26121
|
421614,
|
|
26068
|
-
|
|
26069
|
-
|
|
26070
|
-
|
|
26071
|
-
|
|
26122
|
+
42170,
|
|
26123
|
+
42220,
|
|
26124
|
+
43113,
|
|
26125
|
+
43114,
|
|
26126
|
+
480,
|
|
26127
|
+
48900,
|
|
26128
|
+
50,
|
|
26129
|
+
5e3,
|
|
26130
|
+
50002,
|
|
26072
26131
|
50104,
|
|
26132
|
+
51,
|
|
26133
|
+
5115,
|
|
26134
|
+
531050104,
|
|
26135
|
+
5330,
|
|
26073
26136
|
534352,
|
|
26074
|
-
|
|
26075
|
-
|
|
26076
|
-
|
|
26077
|
-
|
|
26078
|
-
|
|
26137
|
+
56,
|
|
26138
|
+
57073,
|
|
26139
|
+
59144,
|
|
26140
|
+
6342,
|
|
26141
|
+
645749,
|
|
26142
|
+
696969,
|
|
26143
|
+
7e3,
|
|
26144
|
+
7225878,
|
|
26145
|
+
7560,
|
|
26146
|
+
7777777,
|
|
26147
|
+
80002,
|
|
26148
|
+
80084,
|
|
26149
|
+
80094,
|
|
26150
|
+
81457,
|
|
26151
|
+
8453,
|
|
26152
|
+
84532,
|
|
26153
|
+
8888,
|
|
26154
|
+
97,
|
|
26155
|
+
9889
|
|
26079
26156
|
];
|
|
26080
26157
|
|
|
26081
26158
|
// src/operations/diffCode.ts
|
|
@@ -26195,9 +26272,7 @@ function genericIndexer(args) {
|
|
|
26195
26272
|
}
|
|
26196
26273
|
|
|
26197
26274
|
// src/seatbelt/logs.ts
|
|
26198
|
-
import {
|
|
26199
|
-
decodeEventLog
|
|
26200
|
-
} from "viem";
|
|
26275
|
+
import { decodeEventLog } from "viem";
|
|
26201
26276
|
function parseLogs({ logs, eventDb }) {
|
|
26202
26277
|
const parsedLogs = logs.map((log) => {
|
|
26203
26278
|
try {
|
|
@@ -26284,42 +26359,62 @@ function checkCode(bytecode) {
|
|
|
26284
26359
|
}
|
|
26285
26360
|
|
|
26286
26361
|
// src/seatbelt/verified.ts
|
|
26287
|
-
|
|
26288
|
-
|
|
26362
|
+
import { getCode } from "viem/actions";
|
|
26363
|
+
async function getVerificationStatus({
|
|
26364
|
+
client,
|
|
26289
26365
|
addresses,
|
|
26290
|
-
contractDb,
|
|
26366
|
+
contractDb = {},
|
|
26291
26367
|
apiKey,
|
|
26292
26368
|
apiUrl
|
|
26293
26369
|
}) {
|
|
26294
|
-
|
|
26295
|
-
|
|
26296
|
-
|
|
26297
|
-
|
|
26298
|
-
|
|
26299
|
-
|
|
26300
|
-
|
|
26301
|
-
|
|
26302
|
-
|
|
26303
|
-
|
|
26304
|
-
|
|
26305
|
-
|
|
26306
|
-
|
|
26307
|
-
|
|
26308
|
-
|
|
26309
|
-
}
|
|
26310
|
-
|
|
26311
|
-
|
|
26312
|
-
|
|
26313
|
-
|
|
26314
|
-
|
|
26315
|
-
|
|
26316
|
-
|
|
26370
|
+
const results = [];
|
|
26371
|
+
for (const address of addresses) {
|
|
26372
|
+
if (contractDb[address]) {
|
|
26373
|
+
results.push({
|
|
26374
|
+
address,
|
|
26375
|
+
name: contractDb[address],
|
|
26376
|
+
status: 1 /* CONTRACT */
|
|
26377
|
+
});
|
|
26378
|
+
continue;
|
|
26379
|
+
}
|
|
26380
|
+
const code = await getCode(client, { address });
|
|
26381
|
+
if (!code) {
|
|
26382
|
+
results.push({
|
|
26383
|
+
address,
|
|
26384
|
+
status: 0 /* EOA */
|
|
26385
|
+
});
|
|
26386
|
+
continue;
|
|
26387
|
+
}
|
|
26388
|
+
try {
|
|
26389
|
+
const code2 = await getSourceCode({
|
|
26390
|
+
chainId: client.chain.id,
|
|
26391
|
+
address,
|
|
26392
|
+
apiKey,
|
|
26393
|
+
apiUrl
|
|
26394
|
+
});
|
|
26395
|
+
results.push({
|
|
26396
|
+
address,
|
|
26397
|
+
name: code2.ContractName,
|
|
26398
|
+
status: 1 /* CONTRACT */,
|
|
26399
|
+
new: true
|
|
26400
|
+
});
|
|
26401
|
+
} catch (e) {
|
|
26402
|
+
results.push({
|
|
26403
|
+
address,
|
|
26404
|
+
status: 2 /* ERROR */
|
|
26405
|
+
});
|
|
26406
|
+
}
|
|
26407
|
+
}
|
|
26408
|
+
return results;
|
|
26317
26409
|
}
|
|
26318
26410
|
|
|
26319
26411
|
// src/seatbelt/tenderly-report.ts
|
|
26320
26412
|
async function renderTenderlyReport({
|
|
26321
26413
|
client,
|
|
26322
|
-
sim
|
|
26414
|
+
sim,
|
|
26415
|
+
payloadId,
|
|
26416
|
+
payload,
|
|
26417
|
+
onchainLogs: { createdLog, queuedLog, executedLog }
|
|
26323
26418
|
}) {
|
|
26324
26419
|
const logs = parseLogs({
|
|
26325
26420
|
logs: (sim.transaction.transaction_info.logs || []).map((l) => l.raw),
|
|
@@ -26332,14 +26427,56 @@ async function renderTenderlyReport({
|
|
|
26332
26427
|
// trusted addresses
|
|
26333
26428
|
);
|
|
26334
26429
|
const verified = getVerificationStatus({
|
|
26335
|
-
|
|
26430
|
+
client,
|
|
26336
26431
|
addresses: sim.transaction.addresses,
|
|
26337
26432
|
contractDb: {}
|
|
26338
26433
|
});
|
|
26339
|
-
|
|
26434
|
+
let report = `## Payload ${payloadId} on ${client.chain.name}
|
|
26435
|
+
|
|
26436
|
+
- creator: ${payload.creator}
|
|
26437
|
+
- maximumAccessLevelRequired: ${payload.maximumAccessLevelRequired}
|
|
26438
|
+
- state: ${payload.state}(${HUMAN_READABLE_PAYLOAD_STATE[payload.state]})
|
|
26439
|
+
- actions:
|
|
26440
|
+
${payload.actions.map((a) => ` - [${a.target}](${toTxLink(a.target, client)}), accessLevel: ${a.accessLevel}, withDelegateCall: ${a.withDelegateCall}, value: ${a.value}, signature: ${a.signature}, callData: ${a.callData}`).join("\n")}
|
|
26441
|
+
- createdAt: [${renderUnixTime(payload.createdAt)}](${toTxLink(createdLog.transactionHash, client)})
|
|
26442
|
+
`;
|
|
26443
|
+
if (queuedLog) {
|
|
26444
|
+
report += `- queuedAt: [${renderUnixTime(payload.queuedAt)}](${toTxLink(
|
|
26445
|
+
queuedLog.transactionHash,
|
|
26446
|
+
client
|
|
26447
|
+
)})
|
|
26448
|
+
`;
|
|
26449
|
+
if (executedLog) {
|
|
26450
|
+
report += `- executedAt: [${renderUnixTime(payload.executedAt)}, block: ${executedLog.blockNumber}](${toTxLink(
|
|
26451
|
+
executedLog.transactionHash,
|
|
26452
|
+
client
|
|
26453
|
+
)})
|
|
26454
|
+
`;
|
|
26455
|
+
} else {
|
|
26456
|
+
report += `- earliest execution at: [${renderUnixTime(
|
|
26457
|
+
payload.queuedAt + payload.delay
|
|
26458
|
+
)}](https://www.epochconverter.com/countdown?q=${payload.queuedAt + payload.delay})
|
|
26459
|
+
`;
|
|
26460
|
+
const timestamp = Math.floor(
|
|
26461
|
+
new Date(sim.transaction.timestamp).getTime() / 1e3
|
|
26462
|
+
);
|
|
26463
|
+
report += `- simulatedExecutionAt: ${renderUnixTime(
|
|
26464
|
+
timestamp
|
|
26465
|
+
)}, timestamp: ${timestamp}, block: ${sim.transaction.block_number}`;
|
|
26466
|
+
}
|
|
26467
|
+
}
|
|
26468
|
+
report += "\n";
|
|
26469
|
+
return report;
|
|
26470
|
+
}
|
|
26471
|
+
function renderUnixTime(time) {
|
|
26472
|
+
return new Date(time * 1e3).toLocaleString("en-GB", { timeZone: "UTC" });
|
|
26473
|
+
}
|
|
26474
|
+
function toTxLink(txn, client) {
|
|
26475
|
+
return `${client.chain?.blockExplorers?.default.url}/tx/${txn}`;
|
|
26340
26476
|
}
|
|
26341
26477
|
export {
|
|
26342
26478
|
AggregatorInterface_ABI,
|
|
26479
|
+
Aip,
|
|
26343
26480
|
ChainId,
|
|
26344
26481
|
ChainList,
|
|
26345
26482
|
EVENT_DB,
|
|
@@ -26423,6 +26560,7 @@ export {
|
|
|
26423
26560
|
getReserveConfigurations,
|
|
26424
26561
|
getReserveTokens,
|
|
26425
26562
|
getSourceCode,
|
|
26563
|
+
getVerificationStatus,
|
|
26426
26564
|
hyperRPCSupportedNetworks,
|
|
26427
26565
|
isPayloadFinal,
|
|
26428
26566
|
isProposalFinal,
|
|
@@ -26445,6 +26583,8 @@ export {
|
|
|
26445
26583
|
tenderly_getVnet,
|
|
26446
26584
|
tenderly_sim,
|
|
26447
26585
|
tenderly_simVnet,
|
|
26586
|
+
toTxLink,
|
|
26587
|
+
validateAip,
|
|
26448
26588
|
wadDiv,
|
|
26449
26589
|
wadToRay
|
|
26450
26590
|
};
|