@bgd-labs/toolbox 0.0.18 → 0.0.19

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.js CHANGED
@@ -31,6 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  AggregatorInterface_ABI: () => AggregatorInterface_ABI,
34
+ Aip: () => Aip,
34
35
  ChainId: () => ChainId,
35
36
  ChainList: () => ChainList,
36
37
  EVENT_DB: () => EVENT_DB,
@@ -114,6 +115,7 @@ __export(index_exports, {
114
115
  getReserveConfigurations: () => getReserveConfigurations,
115
116
  getReserveTokens: () => getReserveTokens,
116
117
  getSourceCode: () => getSourceCode,
118
+ getVerificationStatus: () => getVerificationStatus,
117
119
  hyperRPCSupportedNetworks: () => hyperRPCSupportedNetworks,
118
120
  isPayloadFinal: () => isPayloadFinal,
119
121
  isProposalFinal: () => isProposalFinal,
@@ -136,6 +138,8 @@ __export(index_exports, {
136
138
  tenderly_getVnet: () => tenderly_getVnet,
137
139
  tenderly_sim: () => tenderly_sim,
138
140
  tenderly_simVnet: () => tenderly_simVnet,
141
+ toTxLink: () => toTxLink,
142
+ validateAip: () => validateAip,
139
143
  wadDiv: () => wadDiv,
140
144
  wadToRay: () => wadToRay
141
145
  });
@@ -12864,6 +12868,24 @@ async function getNonFinalizedProposals(client, governanceAddress) {
12864
12868
  return nonFinalProposals;
12865
12869
  }
12866
12870
 
12871
+ // src/aave/governance/aip.ts
12872
+ var import_arktype = require("arktype");
12873
+ var import_gray_matter = __toESM(require("gray-matter"));
12874
+ var Aip = (0, import_arktype.type)({
12875
+ discussions: "string.url",
12876
+ title: "string",
12877
+ author: "string",
12878
+ snapshot: "string.url?"
12879
+ });
12880
+ function validateAip(content) {
12881
+ const fm = (0, import_gray_matter.default)(content);
12882
+ const out = Aip(fm.data);
12883
+ if (out instanceof import_arktype.type.errors) {
12884
+ console.error(out.summary);
12885
+ throw new Error("aip validation failed");
12886
+ }
12887
+ }
12888
+
12867
12889
  // src/ecosystem/generated/etherscanExplorers.ts
12868
12890
  var etherscanExplorers = {
12869
12891
  1: {
@@ -13342,6 +13364,10 @@ var routescanExplorers = {
13342
13364
  api: "https://api.routescan.io/v2/network/testnet/evm/2358/etherscan",
13343
13365
  explorer: "2358.routescan.io"
13344
13366
  },
13367
+ 2368: {
13368
+ api: "https://api.routescan.io/v2/network/testnet/evm/2368/etherscan",
13369
+ explorer: "2368.routescan.io"
13370
+ },
13345
13371
  2522: {
13346
13372
  api: "https://api.routescan.io/v2/network/testnet/evm/2522/etherscan",
13347
13373
  explorer: "2522.routescan.io"
@@ -13550,6 +13576,10 @@ var routescanExplorers = {
13550
13576
  api: "https://api.routescan.io/v2/network/testnet/evm/21816/etherscan",
13551
13577
  explorer: "21816.routescan.io"
13552
13578
  },
13579
+ 23944: {
13580
+ api: "https://api.routescan.io/v2/network/testnet/evm/23944/etherscan",
13581
+ explorer: "23944.routescan.io"
13582
+ },
13553
13583
  24010: {
13554
13584
  api: "https://api.routescan.io/v2/network/testnet/evm/24010/etherscan",
13555
13585
  explorer: "24010.routescan.io"
@@ -14199,7 +14229,6 @@ var alchemyNetworkMap = {
14199
14229
  2442: "polygonzkevm-cardona",
14200
14230
  2523: "frax-sepolia",
14201
14231
  2741: "abstract-mainnet",
14202
- 4002: "fantom-testnet",
14203
14232
  4157: "crossfi-testnet",
14204
14233
  4158: "crossfi-mainnet",
14205
14234
  4801: "worldchain-sepolia",
@@ -14257,7 +14286,7 @@ var alchemyNetworkMap = {
14257
14286
  994873017: "lumia-prism",
14258
14287
  999999999: "zora-sepolia",
14259
14288
  1952959480: "lumia-testnet",
14260
- "null": "sui-testnet"
14289
+ "null": "aptos-testnet"
14261
14290
  };
14262
14291
 
14263
14292
  // src/ecosystem/generated/quicknodeNetworkMap.ts
@@ -14748,7 +14777,7 @@ var chainlinkFeeds = {
14748
14777
  "contractAddress": "0x00f0eFB3d9dBe7fE91fee44aE09DAe5DFA65c382",
14749
14778
  "proxyAddress": "0x75A0d3264a949C2C920d7F25Df174af1FaF73399",
14750
14779
  "decimals": 8,
14751
- "name": "FBTC PoR"
14780
+ "name": "FBTC Proof of Reserves"
14752
14781
  },
14753
14782
  {
14754
14783
  "contractAddress": "0x019699e5b12331cf77DF9E39818c2E15C8B06215",
@@ -14850,7 +14879,7 @@ var chainlinkFeeds = {
14850
14879
  "contractAddress": "0x0bb1203d3Df75752723290EFB116a91a1a9196D1",
14851
14880
  "proxyAddress": "0x7Eaa6f116Ab9E57f58d9A9Ce88cc3f1c2476ECfA",
14852
14881
  "decimals": 18,
14853
- "name": "stBTC PoR"
14882
+ "name": "stBTC Proof of Reserves"
14854
14883
  },
14855
14884
  {
14856
14885
  "contractAddress": "0x0c5781B3d5E2F7c00bC286E910cB9D28a86D94b6",
@@ -15084,7 +15113,7 @@ var chainlinkFeeds = {
15084
15113
  "contractAddress": "0x4803f34B757726d857c86cE585582AeB5F4A9417",
15085
15114
  "proxyAddress": "0x5586bF404C7A22A4a4077401272cE5945f80189C",
15086
15115
  "decimals": 8,
15087
- "name": "CacheGold PoR USD"
15116
+ "name": "CacheGold Proof of Reserves USD"
15088
15117
  },
15089
15118
  {
15090
15119
  "contractAddress": "0x48ac3CD812680C39879A1Fd1666639dBC9B978C0",
@@ -15132,7 +15161,7 @@ var chainlinkFeeds = {
15132
15161
  "contractAddress": "0x50e1007404025e412F13eD1e1C1e6F57957F6A6F",
15133
15162
  "proxyAddress": "0xe80baC615c38D01c101B0B1b943b05E20C8c2f76",
15134
15163
  "decimals": 18,
15135
- "name": "PumpBTC PoR"
15164
+ "name": "PumpBTC Proof of Reserves"
15136
15165
  },
15137
15166
  {
15138
15167
  "contractAddress": "0x51766d8b44551740eFd8A34AA569D15aA0A13eCe",
@@ -15204,7 +15233,7 @@ var chainlinkFeeds = {
15204
15233
  "contractAddress": "0x5EFFB9e0D6B472E48C542842B0306a1C12c9627c",
15205
15234
  "proxyAddress": "0xC8cd82067eA907EA4af81b625d2bB653E21b5156",
15206
15235
  "decimals": 18,
15207
- "name": "eETH PoR"
15236
+ "name": "eETH Proof of Reserves"
15208
15237
  },
15209
15238
  {
15210
15239
  "contractAddress": "0x5a0efD6D1a058A46D3Ac4511861adB8F3540BD49",
@@ -15228,7 +15257,7 @@ var chainlinkFeeds = {
15228
15257
  "contractAddress": "0x601009229b0215e4FC90C10c8145E066aE03d5F9",
15229
15258
  "proxyAddress": "0x461790bDAF5aeD3df6a88cB97Dec42DD0EFA73c0",
15230
15259
  "decimals": 18,
15231
- "name": "xSolvBTC PoR"
15260
+ "name": "xSolvBTC Proof of Reserves"
15232
15261
  },
15233
15262
  {
15234
15263
  "contractAddress": "0x62a897c3e81d809c7444BB63D7D51E1F2EbB6C3D",
@@ -15258,7 +15287,7 @@ var chainlinkFeeds = {
15258
15287
  "contractAddress": "0x64DEE1Bc46e817ed93dEA4815F071B20eD218E39",
15259
15288
  "proxyAddress": "0xa81FE04086865e63E12dD3776978E49DEEa2ea4e",
15260
15289
  "decimals": 8,
15261
- "name": "WBTC PoR"
15290
+ "name": "WBTC Proof of Reserves"
15262
15291
  },
15263
15292
  {
15264
15293
  "contractAddress": "0x64c67984A458513C6BAb23a815916B1b1075cf3a",
@@ -15416,7 +15445,7 @@ var chainlinkFeeds = {
15416
15445
  "contractAddress": "0x83cE6dbda88D4b59b370d765567d2CaB460bBdc9",
15417
15446
  "proxyAddress": "0x43921Ca0eca1EA69722c048A6afbc2CAd0BB80e9",
15418
15447
  "decimals": 8,
15419
- "name": "21BTC PoR"
15448
+ "name": "21BTC Proof of Reserves"
15420
15449
  },
15421
15450
  {
15422
15451
  "contractAddress": "0x841385263b2192A6f4b14353574C02bf0577473d",
@@ -15470,7 +15499,7 @@ var chainlinkFeeds = {
15470
15499
  "contractAddress": "0x8a43cc06554Ab042FFBf07e64cfb8FeE4E673422",
15471
15500
  "proxyAddress": "0xAd410E655C0fE4741F573152592eeb766e686CE7",
15472
15501
  "decimals": 18,
15473
- "name": "stETH PoR"
15502
+ "name": "stETH Proof of Reserves"
15474
15503
  },
15475
15504
  {
15476
15505
  "contractAddress": "0x8c944f66a996b5399F51dc3d8d023E07Bb0767fD",
@@ -15590,7 +15619,7 @@ var chainlinkFeeds = {
15590
15619
  "contractAddress": "0x99BC071f317BEF648E5e84f7E0600423360C0Cd1",
15591
15620
  "proxyAddress": "0xad4A9bED9a5E2c1c9a6E43D35Db53c83873dd901",
15592
15621
  "decimals": 18,
15593
- "name": "STBT PoR"
15622
+ "name": "STBT Proof of Reserves"
15594
15623
  },
15595
15624
  {
15596
15625
  "contractAddress": "0x9Bc91f0E55b0d6509F65fd8C4b34b89F23AEfA35",
@@ -15598,6 +15627,12 @@ var chainlinkFeeds = {
15598
15627
  "decimals": 18,
15599
15628
  "name": "FTT / ETH"
15600
15629
  },
15630
+ {
15631
+ "contractAddress": "0x9E3AABA3B04264DD009437F48eBFD70713dd0667",
15632
+ "proxyAddress": "0xAcFCF155a0de611414C510D43446c27a4EE6a758",
15633
+ "decimals": 8,
15634
+ "name": "WAMPL / USD"
15635
+ },
15601
15636
  {
15602
15637
  "contractAddress": "0x9c7CF045f964B45FFC6AA0Ffbffd7bb6d1b470A3",
15603
15638
  "proxyAddress": "0x3C7dB4D25deAb7c89660512C5494Dc9A3FC40f78",
@@ -15819,7 +15854,7 @@ var chainlinkFeeds = {
15819
15854
  "contractAddress": "0xD0f0efAfB63ce1e46ae1aF84BCFE2A2A175E6797",
15820
15855
  "proxyAddress": "0xda9258AFc797Cd64d1b6FC651051224cdAB1B25E",
15821
15856
  "decimals": 18,
15822
- "name": "SolvBTC PoR"
15857
+ "name": "SolvBTC Proof of Reserves"
15823
15858
  },
15824
15859
  {
15825
15860
  "contractAddress": "0xD37190eC18fEfE85F4a0fCdEb8Bc220A47093457",
@@ -15837,7 +15872,7 @@ var chainlinkFeeds = {
15837
15872
  "contractAddress": "0xE5490FcdFe66b1680f2b4c09f81149f0C285a2E3",
15838
15873
  "proxyAddress": "0x60cbE8D88EF519cF3C62414D76f50818D211fea1",
15839
15874
  "decimals": 18,
15840
- "name": "Swell ETH PoR"
15875
+ "name": "Swell ETH Proof of Reserves"
15841
15876
  },
15842
15877
  {
15843
15878
  "contractAddress": "0xE6c7AE04e83aa7e491988cAeecf5BD6a240A0d14",
@@ -15909,7 +15944,7 @@ var chainlinkFeeds = {
15909
15944
  "contractAddress": "0xa685F0Bb86044e9c6A182A3689bBF8A98eB5764C",
15910
15945
  "proxyAddress": "0x0c89c488e763AC2d69cB058CCAC7A8B283EE3DbA",
15911
15946
  "decimals": 18,
15912
- "name": "Swell Restaked ETH PoR"
15947
+ "name": "Swell Restaked ETH Proof of Reserves"
15913
15948
  },
15914
15949
  {
15915
15950
  "contractAddress": "0xa7Daf8A03B064262FfF0D615663553DAe3E18744",
@@ -15939,7 +15974,7 @@ var chainlinkFeeds = {
15939
15974
  "contractAddress": "0xb49dBd447D2C3ae00B205200Fe629cA73E3E80e3",
15940
15975
  "proxyAddress": "0x0A8cD0115B1EE87EbA5b8E06A9a15ED93e230f7a",
15941
15976
  "decimals": 18,
15942
- "name": "HBTC PoR"
15977
+ "name": "HBTC Proof of Reserves"
15943
15978
  },
15944
15979
  {
15945
15980
  "contractAddress": "0xb611401574061947aBAc7d2406711F115BE22A6e",
@@ -15951,7 +15986,7 @@ var chainlinkFeeds = {
15951
15986
  "contractAddress": "0xbBaf2F253Dec10c17eF9531bc8Cd7A7C708A10Bc",
15952
15987
  "proxyAddress": "0xc590D9fb8eE78a0909dFF341ccf717000b7b7fF2",
15953
15988
  "decimals": 18,
15954
- "name": "uniBTC PoR"
15989
+ "name": "uniBTC Proof of Reserves"
15955
15990
  },
15956
15991
  {
15957
15992
  "contractAddress": "0xbCD99Bc4C5Bee667939bf7E9B3367d0A0Fa096a0",
@@ -17068,7 +17103,7 @@ var chainlinkFeeds = {
17068
17103
  "contractAddress": "0x0044980acB0C01d75afF2Cc3DF2F11171442295c",
17069
17104
  "proxyAddress": "0x657b128a4936542A48a40C320BFfa3F44043583a",
17070
17105
  "decimals": 18,
17071
- "name": "SolvBTC PoR"
17106
+ "name": "SolvBTC Proof of Reserves"
17072
17107
  },
17073
17108
  {
17074
17109
  "contractAddress": "0x0765d9EF5E38A2E742d2c3A58C4944a3fb6D25C5",
@@ -17608,7 +17643,7 @@ var chainlinkFeeds = {
17608
17643
  "contractAddress": "0x9a8b0bf764D6cd177616A6133fb222ad5938b51a",
17609
17644
  "proxyAddress": "0x81ca991cEf14e7bFB3fa8cc70303a2DEaEb09A42",
17610
17645
  "decimals": 18,
17611
- "name": "Solv PoR"
17646
+ "name": "Solv Proof of Reserves"
17612
17647
  },
17613
17648
  {
17614
17649
  "contractAddress": "0x9f1fD891E4D82F4b23420C769Bd96409C99806b2",
@@ -17722,7 +17757,7 @@ var chainlinkFeeds = {
17722
17757
  "contractAddress": "0xDa15d5A05A2813395e9A851EA463281AA1354FF7",
17723
17758
  "proxyAddress": "0x696B7eA5827548cd35C743A0a05c1f3130196e5e",
17724
17759
  "decimals": 18,
17725
- "name": "stBTC PoR"
17760
+ "name": "stBTC Proof of Reserves"
17726
17761
  },
17727
17762
  {
17728
17763
  "contractAddress": "0xE0Aa6B17316140A964B08E0228152E282225607D",
@@ -18368,7 +18403,7 @@ var chainlinkFeeds = {
18368
18403
  "contractAddress": "0x31fe6bD1D7E4166B5b8Fd4112eea3C7eECA51217",
18369
18404
  "proxyAddress": "0x0fB2beD999da86Cb1Fdd97E746600A96141EeA09",
18370
18405
  "decimals": 8,
18371
- "name": "bNVDA Reserves / PoR"
18406
+ "name": "bNVDA Reserves / Proof of Reserves"
18372
18407
  },
18373
18408
  {
18374
18409
  "contractAddress": "0x32411A331EAf9829adCEC478afF9adF2B5bd296c",
@@ -18854,7 +18889,7 @@ var chainlinkFeeds = {
18854
18889
  "contractAddress": "0xC65B00c8D77dc82Bd29E8b571De22c6ED3F6eE89",
18855
18890
  "proxyAddress": "0x4e9fc7480c16F3FE5d956C0759eE6b4808d1F5D7",
18856
18891
  "decimals": 8,
18857
- "name": "CGT PoR (ETH)"
18892
+ "name": "CGT Proof of Reserves (ETH)"
18858
18893
  },
18859
18894
  {
18860
18895
  "contractAddress": "0xC6c7Bb0d721e4Ef7318A16F682dd4c1013b430F0",
@@ -19766,6 +19801,12 @@ var chainlinkFeeds = {
19766
19801
  "decimals": 8,
19767
19802
  "name": "BTC / USD"
19768
19803
  },
19804
+ {
19805
+ "contractAddress": "0xa236d64Ef51e3243887aac4270ea75De65ECABfd",
19806
+ "proxyAddress": "0x01dd982820B7c25e2A9C77BDd3bC0eDA90298A2F",
19807
+ "decimals": 8,
19808
+ "name": "USD1 / USD"
19809
+ },
19769
19810
  {
19770
19811
  "contractAddress": "0xfB1193670633f958F50C0E49688a82E6b73297b1",
19771
19812
  "proxyAddress": "0xD97F20bEbeD74e8144134C4b148fE93417dd0F96",
@@ -20036,7 +20077,13 @@ var chainlinkFeeds = {
20036
20077
  "contractAddress": "0x52d743436F6bA414050bD8869C8bF6537C355A00",
20037
20078
  "proxyAddress": "0x30A76F4E688Cf52f4A06D7AAd987A7037f3Ae6f7",
20038
20079
  "decimals": 8,
20039
- "name": "dlcBTC PoR"
20080
+ "name": "dlcBTC Proof of Reserves"
20081
+ },
20082
+ {
20083
+ "contractAddress": "0x5387a1EA9361BD8A2AA1BE68E1e10bd566eECFa4",
20084
+ "proxyAddress": "0x9f0C1dD78C4CBdF5b9cf923a549A201EdC676D34",
20085
+ "decimals": 8,
20086
+ "name": "XRP / USD"
20040
20087
  },
20041
20088
  {
20042
20089
  "contractAddress": "0x55012EF027ae9b4E2bb5a5f529E5a1184Bcc998D",
@@ -20086,6 +20133,12 @@ var chainlinkFeeds = {
20086
20133
  "decimals": 8,
20087
20134
  "name": "COMP / USD"
20088
20135
  },
20136
+ {
20137
+ "contractAddress": "0x62c9CB9Dd648d9ed28C4C243d062093571b934D7",
20138
+ "proxyAddress": "0x206a34e47093125fbf4C75b7c7E88b84c6A77a69",
20139
+ "decimals": 8,
20140
+ "name": "LTC / USD"
20141
+ },
20089
20142
  {
20090
20143
  "contractAddress": "0x63a3b4E2aeea2d1Cc883987AEc22E9Aa88323b3c",
20091
20144
  "proxyAddress": "0x79cf4a31B29D69191f0b6E97916eB93FEB81E533",
@@ -20236,6 +20289,12 @@ var chainlinkFeeds = {
20236
20289
  "decimals": 8,
20237
20290
  "name": "GHO / USD"
20238
20291
  },
20292
+ {
20293
+ "contractAddress": "0x91e936921Df850Cc8714527EBE6C45ECbD2CAd31",
20294
+ "proxyAddress": "0x34cD971a092d5411bD69C10a5F0A7EEF72C69041",
20295
+ "decimals": 8,
20296
+ "name": "ADA / USD"
20297
+ },
20239
20298
  {
20240
20299
  "contractAddress": "0x9465CF4b4032080434E397F42fB99A8446c35376",
20241
20300
  "proxyAddress": "0xd5Ec94430eF4170D819E0996BC53ed40d31638d8",
@@ -20420,7 +20479,7 @@ var chainlinkFeeds = {
20420
20479
  "contractAddress": "0xa24AAfb9d49d0cF43dcd8A5f2442a30391F494D2",
20421
20480
  "proxyAddress": "0x7FCED5198e43ec93Ef2179DFC70a8dcf494DcB80",
20422
20481
  "decimals": 8,
20423
- "name": "iBTC PoR"
20482
+ "name": "iBTC Proof of Reserves"
20424
20483
  },
20425
20484
  {
20426
20485
  "contractAddress": "0xa332cbef58964977Fa47d8Fa9abdc58FBd477e62",
@@ -22018,7 +22077,7 @@ var chainlinkFeeds = {
22018
22077
  "contractAddress": "0x29ef0aE1eDb5764b5bd2ff3a605b5d4Eb39a0d63",
22019
22078
  "proxyAddress": "0x5F25Ea8Cf2a3aB12E4D6fB58FB63C7938473B036",
22020
22079
  "decimals": 10,
22021
- "name": "aBTC PoR"
22080
+ "name": "aBTC Proof of Reserves"
22022
22081
  },
22023
22082
  {
22024
22083
  "contractAddress": "0x2C50f2Fe9427d120DEA2eb804c148d2780519d59",
@@ -22072,7 +22131,7 @@ var chainlinkFeeds = {
22072
22131
  "contractAddress": "0x331480b3C79f16018704A83847db1e29d8cdce14",
22073
22132
  "proxyAddress": "0xfb010c715Ff2B85DB9c896f0C030bF9329638905",
22074
22133
  "decimals": 8,
22075
- "name": "FBTC PoR"
22134
+ "name": "FBTC Proof of Reserves"
22076
22135
  },
22077
22136
  {
22078
22137
  "contractAddress": "0x338D614Af8c05eF9d77a33E9D33A92b770809ED4",
@@ -24202,7 +24261,7 @@ var chainlinkFeeds = {
24202
24261
  "contractAddress": "0x5F36C484290Ec4bDaC745c6C8BD681F44bE6ac4D",
24203
24262
  "proxyAddress": "0x0543Bb6b5A57E3e7569237b67321eAB773e41401",
24204
24263
  "decimals": 8,
24205
- "name": "iBTC PoR"
24264
+ "name": "iBTC Proof of Reserves"
24206
24265
  },
24207
24266
  {
24208
24267
  "contractAddress": "0x5ab0B1e2604d4B708721bc3cD1ce962958b4297E",
@@ -24316,7 +24375,7 @@ var chainlinkFeeds = {
24316
24375
  "contractAddress": "0x73b6A47371f6278F41Ec655A3a06477997912D09",
24317
24376
  "proxyAddress": "0xA0118D8948FA85624608d94eC6B52973578082fA",
24318
24377
  "decimals": 18,
24319
- "name": "stBTC PoR"
24378
+ "name": "stBTC Proof of Reserves"
24320
24379
  },
24321
24380
  {
24322
24381
  "contractAddress": "0x75DD106b46017F9b5BF2c468f29Ee55f410b991c",
@@ -24544,7 +24603,7 @@ var chainlinkFeeds = {
24544
24603
  "contractAddress": "0xAfAEbEB1Db6d13EC1279B59396a9dc40502458c1",
24545
24604
  "proxyAddress": "0x47A2fBEb46553F01E7133686Fb1b5349d4823a0C",
24546
24605
  "decimals": 8,
24547
- "name": "dlcBTC PoR"
24606
+ "name": "dlcBTC Proof of Reserves"
24548
24607
  },
24549
24608
  {
24550
24609
  "contractAddress": "0xB4A1F9641186D822a941FEc71E374bB66cd27cdA",
@@ -24640,7 +24699,7 @@ var chainlinkFeeds = {
24640
24699
  "contractAddress": "0xDB99d80bD3aE8dae5d929493Ddf696196f7f59f2",
24641
24700
  "proxyAddress": "0xd9344493d99153Ad4353D604A1d80d4089004c5D",
24642
24701
  "decimals": 8,
24643
- "name": "zBTC PoR"
24702
+ "name": "zBTC Proof of Reserves"
24644
24703
  },
24645
24704
  {
24646
24705
  "contractAddress": "0xDf8a3fc9bC6fA89F1b630e58f6eB4b874f24C165",
@@ -25184,7 +25243,7 @@ var chainlinkFeeds = {
25184
25243
  "contractAddress": "0x017780bFA4D66Ee3b4b816a15b0f05DF2654f7B9",
25185
25244
  "proxyAddress": "0xebEfEAA58636DF9B20a4fAd78Fad8759e6A20e87",
25186
25245
  "decimals": 8,
25187
- "name": "WBTC.e PoR"
25246
+ "name": "WBTC.e Proof of Reserves"
25188
25247
  },
25189
25248
  {
25190
25249
  "contractAddress": "0x0B2bFcbE40213cF93CE2Be85156DD16E31483f70",
@@ -25238,7 +25297,7 @@ var chainlinkFeeds = {
25238
25297
  "contractAddress": "0x1c4841636a4848d474892E7408312804D3f9a43F",
25239
25298
  "proxyAddress": "0x976D7fAc81A49FA71EF20694a3C56B9eFB93c30B",
25240
25299
  "decimals": 18,
25241
- "name": "DAI.e PoR"
25300
+ "name": "DAI.e Proof of Reserves"
25242
25301
  },
25243
25302
  {
25244
25303
  "contractAddress": "0x255ca8e07c6Dbc4835DC7680dB7D9E969c08c120",
@@ -25316,7 +25375,7 @@ var chainlinkFeeds = {
25316
25375
  "contractAddress": "0x461b95e560697B0C83AB569f06034832a4b62707",
25317
25376
  "proxyAddress": "0x99311B4bf6D8E3D3B4b9fbdD09a1B0F4Ad8e06E9",
25318
25377
  "decimals": 8,
25319
- "name": "BTC.b PoR"
25378
+ "name": "BTC.b Proof of Reserves"
25320
25379
  },
25321
25380
  {
25322
25381
  "contractAddress": "0x4A5cE69A1aDA639042B30e1574Eb9D6e939388A3",
@@ -25358,7 +25417,7 @@ var chainlinkFeeds = {
25358
25417
  "contractAddress": "0x61595142b147De812B43C66f30094a3219a38bCD",
25359
25418
  "proxyAddress": "0x943cEF1B112Ca9FD7EDaDC9A46477d3812a382b6",
25360
25419
  "decimals": 18,
25361
- "name": "LINK.e PoR"
25420
+ "name": "LINK.e Proof of Reserves"
25362
25421
  },
25363
25422
  {
25364
25423
  "contractAddress": "0x64922B570edf432defD4d3C5647269727a667EDa",
@@ -25514,7 +25573,7 @@ var chainlinkFeeds = {
25514
25573
  "contractAddress": "0xC5463267394709421b0FF3726dd21e152Ec0B1D9",
25515
25574
  "proxyAddress": "0x14C4c668E34c09E1FBA823aD5DB47F60aeBDD4F7",
25516
25575
  "decimals": 18,
25517
- "name": "AAVE.e PoR"
25576
+ "name": "AAVE.e Proof of Reserves"
25518
25577
  },
25519
25578
  {
25520
25579
  "contractAddress": "0xC54d8293A7f98ef887BE882311E4C274BE67f927",
@@ -25538,7 +25597,7 @@ var chainlinkFeeds = {
25538
25597
  "contractAddress": "0xD38Acd83073EeF07186D5Db701C576aD42D6cf27",
25539
25598
  "proxyAddress": "0xDDaf9290D057BfA12d7576e6dADC109421F31948",
25540
25599
  "decimals": 18,
25541
- "name": "WETH.e PoR"
25600
+ "name": "WETH.e Proof of Reserves"
25542
25601
  },
25543
25602
  {
25544
25603
  "contractAddress": "0xD74bBE6Db11AD5F3D4F7d4Ee23D9C9d5c301D4e0",
@@ -25640,7 +25699,7 @@ var chainlinkFeeds = {
25640
25699
  "contractAddress": "0xd4452d1811AA9AC14B9c55444a1B55CDB97760eC",
25641
25700
  "proxyAddress": "0x94D8c2548018C27F1aa078A23C4158206bE1CC72",
25642
25701
  "decimals": 6,
25643
- "name": "USDT.e PoR"
25702
+ "name": "USDT.e Proof of Reserves"
25644
25703
  },
25645
25704
  {
25646
25705
  "contractAddress": "0xd761cFc03e833FEBB04297Cc1aB7291D80c9595f",
@@ -25654,11 +25713,17 @@ var chainlinkFeeds = {
25654
25713
  "decimals": 8,
25655
25714
  "name": "CRV / USD"
25656
25715
  },
25716
+ {
25717
+ "contractAddress": "0xe3fA7342C4096E02aB376f64b6C5251bf6f3c657",
25718
+ "proxyAddress": "0x0d2807dc7FA52d3B38be564B64a2b37753C49AdD",
25719
+ "decimals": 8,
25720
+ "name": "EmCH Reserves"
25721
+ },
25657
25722
  {
25658
25723
  "contractAddress": "0xf52BF03f3f406BAAADE542b3D2D5CeCfFf1754E6",
25659
25724
  "proxyAddress": "0x63769951E4cfDbDC653dD9BBde63D2Ce0746e5F2",
25660
25725
  "decimals": 6,
25661
- "name": "USDC.e PoR"
25726
+ "name": "USDC.e Proof of Reserves"
25662
25727
  },
25663
25728
  {
25664
25729
  "contractAddress": "0xfb317b2a4404802dF62c87a5982EE383F2711ce6",
@@ -25938,7 +26003,7 @@ var chainlinkFeeds = {
25938
26003
  "contractAddress": "0x863451a4C718699bb3C860799a785DBd4DDf3a4D",
25939
26004
  "proxyAddress": "0x6dCa10bce66548e26DBd1FCF4E8692796BeDdd7E",
25940
26005
  "decimals": 18,
25941
- "name": "stBTC PoR"
26006
+ "name": "stBTC Proof of Reserves"
25942
26007
  },
25943
26008
  {
25944
26009
  "contractAddress": "0x88926382559e24D1153d9F492554064C9f052A22",
@@ -26077,85 +26142,85 @@ var chainlinkFeeds = {
26077
26142
 
26078
26143
  // src/ecosystem/generated/hyperRPC.ts
26079
26144
  var hyperRPCSupportedNetworks = [
26080
- 645749,
26081
- 1923,
26082
- 130,
26083
- 33111,
26084
- 50002,
26085
- 1868,
26086
- 1750,
26087
- 100,
26088
- 42170,
26089
- 51,
26090
- 2741,
26091
- 57073,
26092
- 8453,
26093
- 531050104,
26094
26145
  1,
26095
- 10200,
26096
- 7e3,
26097
- 48900,
26098
- 1301,
26099
- 10143,
26100
- 59144,
26101
- 11155420,
26102
- 80094,
26103
- 80084,
26104
- 5e3,
26105
- 6342,
26106
- 2810,
26107
- 80002,
26146
+ 1,
26108
26147
  10,
26109
- 50,
26110
- 42220,
26111
26148
  100,
26112
- 204,
26113
- 480,
26114
- 43113,
26115
- 81457,
26116
- 97,
26117
- 43114,
26118
- 17864,
26119
- 252,
26120
- 146,
26121
- 42,
26122
- 1,
26123
- 4201,
26124
- 148,
26125
- 9889,
26126
- 7225878,
26127
- 7560,
26128
- 84532,
26129
- 5330,
26130
- 168587773,
26131
- 14,
26149
+ 100,
26150
+ 10143,
26151
+ 10200,
26132
26152
  1101,
26133
26153
  11155111,
26134
- 7777777,
26135
- 137,
26136
- 5115,
26137
- 8888,
26154
+ 11155420,
26155
+ 1135,
26156
+ 1284,
26138
26157
  1287,
26158
+ 130,
26159
+ 1301,
26160
+ 1313161554,
26161
+ 137,
26162
+ 14,
26163
+ 146,
26164
+ 148,
26165
+ 16666e5,
26166
+ 168587773,
26167
+ 169,
26168
+ 17e3,
26169
+ 1750,
26170
+ 17864,
26171
+ 1868,
26172
+ 1923,
26173
+ 204,
26174
+ 250,
26175
+ 252,
26139
26176
  255,
26140
- 1135,
26141
- 34443,
26177
+ 2741,
26178
+ 2810,
26179
+ 2818,
26180
+ 288,
26142
26181
  30,
26182
+ 324,
26183
+ 33111,
26184
+ 34443,
26185
+ 42,
26143
26186
  4200,
26144
- 288,
26145
- 696969,
26146
- 17e3,
26187
+ 4201,
26188
+ 42161,
26147
26189
  421614,
26148
- 2818,
26149
- 56,
26150
- 324,
26151
- 16666e5,
26190
+ 42170,
26191
+ 42220,
26192
+ 43113,
26193
+ 43114,
26194
+ 480,
26195
+ 48900,
26196
+ 50,
26197
+ 5e3,
26198
+ 50002,
26152
26199
  50104,
26200
+ 51,
26201
+ 5115,
26202
+ 531050104,
26203
+ 5330,
26153
26204
  534352,
26154
- 42161,
26155
- 250,
26156
- 1313161554,
26157
- 1284,
26158
- 169
26205
+ 56,
26206
+ 57073,
26207
+ 59144,
26208
+ 6342,
26209
+ 645749,
26210
+ 696969,
26211
+ 7e3,
26212
+ 7225878,
26213
+ 7560,
26214
+ 7777777,
26215
+ 80002,
26216
+ 80084,
26217
+ 80094,
26218
+ 81457,
26219
+ 8453,
26220
+ 84532,
26221
+ 8888,
26222
+ 97,
26223
+ 9889
26159
26224
  ];
26160
26225
 
26161
26226
  // src/operations/diffCode.ts
@@ -26362,42 +26427,62 @@ function checkCode(bytecode) {
26362
26427
  }
26363
26428
 
26364
26429
  // src/seatbelt/verified.ts
26365
- function getVerificationStatus({
26366
- chainId,
26430
+ var import_actions7 = require("viem/actions");
26431
+ async function getVerificationStatus({
26432
+ client,
26367
26433
  addresses,
26368
- contractDb,
26434
+ contractDb = {},
26369
26435
  apiKey,
26370
26436
  apiUrl
26371
26437
  }) {
26372
- return Promise.all(
26373
- addresses.map(async (address) => {
26374
- if (contractDb[address])
26375
- return {
26376
- address,
26377
- name: contractDb[address],
26378
- status: 0 /* CACHE */
26379
- };
26380
- try {
26381
- const code = await getSourceCode({ chainId, address, apiKey, apiUrl });
26382
- return {
26383
- address,
26384
- name: code.ContractName,
26385
- status: 1 /* NEW */
26386
- };
26387
- } catch (e) {
26388
- return {
26389
- address,
26390
- status: 2 /* ERROR */
26391
- };
26392
- }
26393
- })
26394
- );
26438
+ const results = [];
26439
+ for (const address of addresses) {
26440
+ if (contractDb[address]) {
26441
+ results.push({
26442
+ address,
26443
+ name: contractDb[address],
26444
+ status: 1 /* CONTRACT */
26445
+ });
26446
+ continue;
26447
+ }
26448
+ const code = await (0, import_actions7.getCode)(client, { address });
26449
+ if (!code) {
26450
+ results.push({
26451
+ address,
26452
+ status: 0 /* EOA */
26453
+ });
26454
+ continue;
26455
+ }
26456
+ try {
26457
+ const code2 = await getSourceCode({
26458
+ chainId: client.chain.id,
26459
+ address,
26460
+ apiKey,
26461
+ apiUrl
26462
+ });
26463
+ results.push({
26464
+ address,
26465
+ name: code2.ContractName,
26466
+ status: 1 /* CONTRACT */,
26467
+ new: true
26468
+ });
26469
+ } catch (e) {
26470
+ results.push({
26471
+ address,
26472
+ status: 2 /* ERROR */
26473
+ });
26474
+ }
26475
+ }
26476
+ return results;
26395
26477
  }
26396
26478
 
26397
26479
  // src/seatbelt/tenderly-report.ts
26398
26480
  async function renderTenderlyReport({
26399
26481
  client,
26400
- sim
26482
+ sim,
26483
+ payloadId,
26484
+ payload,
26485
+ onchainLogs: { createdLog, queuedLog, executedLog }
26401
26486
  }) {
26402
26487
  const logs = parseLogs({
26403
26488
  logs: (sim.transaction.transaction_info.logs || []).map((l) => l.raw),
@@ -26410,15 +26495,57 @@ async function renderTenderlyReport({
26410
26495
  // trusted addresses
26411
26496
  );
26412
26497
  const verified = getVerificationStatus({
26413
- chainId: client.chain.id,
26498
+ client,
26414
26499
  addresses: sim.transaction.addresses,
26415
26500
  contractDb: {}
26416
26501
  });
26417
- return logs;
26502
+ let report = `## Payload ${payloadId} on ${client.chain.name}
26503
+
26504
+ - creator: ${payload.creator}
26505
+ - maximumAccessLevelRequired: ${payload.maximumAccessLevelRequired}
26506
+ - state: ${payload.state}(${HUMAN_READABLE_PAYLOAD_STATE[payload.state]})
26507
+ - actions:
26508
+ ${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")}
26509
+ - createdAt: [${renderUnixTime(payload.createdAt)}](${toTxLink(createdLog.transactionHash, client)})
26510
+ `;
26511
+ if (queuedLog) {
26512
+ report += `- queuedAt: [${renderUnixTime(payload.queuedAt)}](${toTxLink(
26513
+ queuedLog.transactionHash,
26514
+ client
26515
+ )})
26516
+ `;
26517
+ if (executedLog) {
26518
+ report += `- executedAt: [${renderUnixTime(payload.executedAt)}, block: ${executedLog.blockNumber}](${toTxLink(
26519
+ executedLog.transactionHash,
26520
+ client
26521
+ )})
26522
+ `;
26523
+ } else {
26524
+ report += `- earliest execution at: [${renderUnixTime(
26525
+ payload.queuedAt + payload.delay
26526
+ )}](https://www.epochconverter.com/countdown?q=${payload.queuedAt + payload.delay})
26527
+ `;
26528
+ const timestamp = Math.floor(
26529
+ new Date(sim.transaction.timestamp).getTime() / 1e3
26530
+ );
26531
+ report += `- simulatedExecutionAt: ${renderUnixTime(
26532
+ timestamp
26533
+ )}, timestamp: ${timestamp}, block: ${sim.transaction.block_number}`;
26534
+ }
26535
+ }
26536
+ report += "\n";
26537
+ return report;
26538
+ }
26539
+ function renderUnixTime(time) {
26540
+ return new Date(time * 1e3).toLocaleString("en-GB", { timeZone: "UTC" });
26541
+ }
26542
+ function toTxLink(txn, client) {
26543
+ return `${client.chain?.blockExplorers?.default.url}/tx/${txn}`;
26418
26544
  }
26419
26545
  // Annotate the CommonJS export names for ESM import in node:
26420
26546
  0 && (module.exports = {
26421
26547
  AggregatorInterface_ABI,
26548
+ Aip,
26422
26549
  ChainId,
26423
26550
  ChainList,
26424
26551
  EVENT_DB,
@@ -26502,6 +26629,7 @@ async function renderTenderlyReport({
26502
26629
  getReserveConfigurations,
26503
26630
  getReserveTokens,
26504
26631
  getSourceCode,
26632
+ getVerificationStatus,
26505
26633
  hyperRPCSupportedNetworks,
26506
26634
  isPayloadFinal,
26507
26635
  isProposalFinal,
@@ -26524,6 +26652,8 @@ async function renderTenderlyReport({
26524
26652
  tenderly_getVnet,
26525
26653
  tenderly_sim,
26526
26654
  tenderly_simVnet,
26655
+ toTxLink,
26656
+ validateAip,
26527
26657
  wadDiv,
26528
26658
  wadToRay
26529
26659
  });