@bgd-labs/toolbox 0.0.17 → 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.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"
@@ -14111,7 +14137,6 @@ var alchemyNetworkMap = {
14111
14137
  2442: "polygonzkevm-cardona",
14112
14138
  2523: "frax-sepolia",
14113
14139
  2741: "abstract-mainnet",
14114
- 4002: "fantom-testnet",
14115
14140
  4157: "crossfi-testnet",
14116
14141
  4158: "crossfi-mainnet",
14117
14142
  4801: "worldchain-sepolia",
@@ -14169,7 +14194,7 @@ var alchemyNetworkMap = {
14169
14194
  994873017: "lumia-prism",
14170
14195
  999999999: "zora-sepolia",
14171
14196
  1952959480: "lumia-testnet",
14172
- "null": "sui-testnet"
14197
+ "null": "aptos-testnet"
14173
14198
  };
14174
14199
 
14175
14200
  // src/ecosystem/generated/quicknodeNetworkMap.ts
@@ -14668,7 +14693,7 @@ var chainlinkFeeds = {
14668
14693
  "contractAddress": "0x00f0eFB3d9dBe7fE91fee44aE09DAe5DFA65c382",
14669
14694
  "proxyAddress": "0x75A0d3264a949C2C920d7F25Df174af1FaF73399",
14670
14695
  "decimals": 8,
14671
- "name": "FBTC PoR"
14696
+ "name": "FBTC Proof of Reserves"
14672
14697
  },
14673
14698
  {
14674
14699
  "contractAddress": "0x019699e5b12331cf77DF9E39818c2E15C8B06215",
@@ -14770,7 +14795,7 @@ var chainlinkFeeds = {
14770
14795
  "contractAddress": "0x0bb1203d3Df75752723290EFB116a91a1a9196D1",
14771
14796
  "proxyAddress": "0x7Eaa6f116Ab9E57f58d9A9Ce88cc3f1c2476ECfA",
14772
14797
  "decimals": 18,
14773
- "name": "stBTC PoR"
14798
+ "name": "stBTC Proof of Reserves"
14774
14799
  },
14775
14800
  {
14776
14801
  "contractAddress": "0x0c5781B3d5E2F7c00bC286E910cB9D28a86D94b6",
@@ -15004,7 +15029,7 @@ var chainlinkFeeds = {
15004
15029
  "contractAddress": "0x4803f34B757726d857c86cE585582AeB5F4A9417",
15005
15030
  "proxyAddress": "0x5586bF404C7A22A4a4077401272cE5945f80189C",
15006
15031
  "decimals": 8,
15007
- "name": "CacheGold PoR USD"
15032
+ "name": "CacheGold Proof of Reserves USD"
15008
15033
  },
15009
15034
  {
15010
15035
  "contractAddress": "0x48ac3CD812680C39879A1Fd1666639dBC9B978C0",
@@ -15052,7 +15077,7 @@ var chainlinkFeeds = {
15052
15077
  "contractAddress": "0x50e1007404025e412F13eD1e1C1e6F57957F6A6F",
15053
15078
  "proxyAddress": "0xe80baC615c38D01c101B0B1b943b05E20C8c2f76",
15054
15079
  "decimals": 18,
15055
- "name": "PumpBTC PoR"
15080
+ "name": "PumpBTC Proof of Reserves"
15056
15081
  },
15057
15082
  {
15058
15083
  "contractAddress": "0x51766d8b44551740eFd8A34AA569D15aA0A13eCe",
@@ -15124,7 +15149,7 @@ var chainlinkFeeds = {
15124
15149
  "contractAddress": "0x5EFFB9e0D6B472E48C542842B0306a1C12c9627c",
15125
15150
  "proxyAddress": "0xC8cd82067eA907EA4af81b625d2bB653E21b5156",
15126
15151
  "decimals": 18,
15127
- "name": "eETH PoR"
15152
+ "name": "eETH Proof of Reserves"
15128
15153
  },
15129
15154
  {
15130
15155
  "contractAddress": "0x5a0efD6D1a058A46D3Ac4511861adB8F3540BD49",
@@ -15148,7 +15173,7 @@ var chainlinkFeeds = {
15148
15173
  "contractAddress": "0x601009229b0215e4FC90C10c8145E066aE03d5F9",
15149
15174
  "proxyAddress": "0x461790bDAF5aeD3df6a88cB97Dec42DD0EFA73c0",
15150
15175
  "decimals": 18,
15151
- "name": "xSolvBTC PoR"
15176
+ "name": "xSolvBTC Proof of Reserves"
15152
15177
  },
15153
15178
  {
15154
15179
  "contractAddress": "0x62a897c3e81d809c7444BB63D7D51E1F2EbB6C3D",
@@ -15178,7 +15203,7 @@ var chainlinkFeeds = {
15178
15203
  "contractAddress": "0x64DEE1Bc46e817ed93dEA4815F071B20eD218E39",
15179
15204
  "proxyAddress": "0xa81FE04086865e63E12dD3776978E49DEEa2ea4e",
15180
15205
  "decimals": 8,
15181
- "name": "WBTC PoR"
15206
+ "name": "WBTC Proof of Reserves"
15182
15207
  },
15183
15208
  {
15184
15209
  "contractAddress": "0x64c67984A458513C6BAb23a815916B1b1075cf3a",
@@ -15336,7 +15361,7 @@ var chainlinkFeeds = {
15336
15361
  "contractAddress": "0x83cE6dbda88D4b59b370d765567d2CaB460bBdc9",
15337
15362
  "proxyAddress": "0x43921Ca0eca1EA69722c048A6afbc2CAd0BB80e9",
15338
15363
  "decimals": 8,
15339
- "name": "21BTC PoR"
15364
+ "name": "21BTC Proof of Reserves"
15340
15365
  },
15341
15366
  {
15342
15367
  "contractAddress": "0x841385263b2192A6f4b14353574C02bf0577473d",
@@ -15390,7 +15415,7 @@ var chainlinkFeeds = {
15390
15415
  "contractAddress": "0x8a43cc06554Ab042FFBf07e64cfb8FeE4E673422",
15391
15416
  "proxyAddress": "0xAd410E655C0fE4741F573152592eeb766e686CE7",
15392
15417
  "decimals": 18,
15393
- "name": "stETH PoR"
15418
+ "name": "stETH Proof of Reserves"
15394
15419
  },
15395
15420
  {
15396
15421
  "contractAddress": "0x8c944f66a996b5399F51dc3d8d023E07Bb0767fD",
@@ -15510,7 +15535,7 @@ var chainlinkFeeds = {
15510
15535
  "contractAddress": "0x99BC071f317BEF648E5e84f7E0600423360C0Cd1",
15511
15536
  "proxyAddress": "0xad4A9bED9a5E2c1c9a6E43D35Db53c83873dd901",
15512
15537
  "decimals": 18,
15513
- "name": "STBT PoR"
15538
+ "name": "STBT Proof of Reserves"
15514
15539
  },
15515
15540
  {
15516
15541
  "contractAddress": "0x9Bc91f0E55b0d6509F65fd8C4b34b89F23AEfA35",
@@ -15518,6 +15543,12 @@ var chainlinkFeeds = {
15518
15543
  "decimals": 18,
15519
15544
  "name": "FTT / ETH"
15520
15545
  },
15546
+ {
15547
+ "contractAddress": "0x9E3AABA3B04264DD009437F48eBFD70713dd0667",
15548
+ "proxyAddress": "0xAcFCF155a0de611414C510D43446c27a4EE6a758",
15549
+ "decimals": 8,
15550
+ "name": "WAMPL / USD"
15551
+ },
15521
15552
  {
15522
15553
  "contractAddress": "0x9c7CF045f964B45FFC6AA0Ffbffd7bb6d1b470A3",
15523
15554
  "proxyAddress": "0x3C7dB4D25deAb7c89660512C5494Dc9A3FC40f78",
@@ -15739,7 +15770,7 @@ var chainlinkFeeds = {
15739
15770
  "contractAddress": "0xD0f0efAfB63ce1e46ae1aF84BCFE2A2A175E6797",
15740
15771
  "proxyAddress": "0xda9258AFc797Cd64d1b6FC651051224cdAB1B25E",
15741
15772
  "decimals": 18,
15742
- "name": "SolvBTC PoR"
15773
+ "name": "SolvBTC Proof of Reserves"
15743
15774
  },
15744
15775
  {
15745
15776
  "contractAddress": "0xD37190eC18fEfE85F4a0fCdEb8Bc220A47093457",
@@ -15757,7 +15788,7 @@ var chainlinkFeeds = {
15757
15788
  "contractAddress": "0xE5490FcdFe66b1680f2b4c09f81149f0C285a2E3",
15758
15789
  "proxyAddress": "0x60cbE8D88EF519cF3C62414D76f50818D211fea1",
15759
15790
  "decimals": 18,
15760
- "name": "Swell ETH PoR"
15791
+ "name": "Swell ETH Proof of Reserves"
15761
15792
  },
15762
15793
  {
15763
15794
  "contractAddress": "0xE6c7AE04e83aa7e491988cAeecf5BD6a240A0d14",
@@ -15829,7 +15860,7 @@ var chainlinkFeeds = {
15829
15860
  "contractAddress": "0xa685F0Bb86044e9c6A182A3689bBF8A98eB5764C",
15830
15861
  "proxyAddress": "0x0c89c488e763AC2d69cB058CCAC7A8B283EE3DbA",
15831
15862
  "decimals": 18,
15832
- "name": "Swell Restaked ETH PoR"
15863
+ "name": "Swell Restaked ETH Proof of Reserves"
15833
15864
  },
15834
15865
  {
15835
15866
  "contractAddress": "0xa7Daf8A03B064262FfF0D615663553DAe3E18744",
@@ -15859,7 +15890,7 @@ var chainlinkFeeds = {
15859
15890
  "contractAddress": "0xb49dBd447D2C3ae00B205200Fe629cA73E3E80e3",
15860
15891
  "proxyAddress": "0x0A8cD0115B1EE87EbA5b8E06A9a15ED93e230f7a",
15861
15892
  "decimals": 18,
15862
- "name": "HBTC PoR"
15893
+ "name": "HBTC Proof of Reserves"
15863
15894
  },
15864
15895
  {
15865
15896
  "contractAddress": "0xb611401574061947aBAc7d2406711F115BE22A6e",
@@ -15871,7 +15902,7 @@ var chainlinkFeeds = {
15871
15902
  "contractAddress": "0xbBaf2F253Dec10c17eF9531bc8Cd7A7C708A10Bc",
15872
15903
  "proxyAddress": "0xc590D9fb8eE78a0909dFF341ccf717000b7b7fF2",
15873
15904
  "decimals": 18,
15874
- "name": "uniBTC PoR"
15905
+ "name": "uniBTC Proof of Reserves"
15875
15906
  },
15876
15907
  {
15877
15908
  "contractAddress": "0xbCD99Bc4C5Bee667939bf7E9B3367d0A0Fa096a0",
@@ -16988,7 +17019,7 @@ var chainlinkFeeds = {
16988
17019
  "contractAddress": "0x0044980acB0C01d75afF2Cc3DF2F11171442295c",
16989
17020
  "proxyAddress": "0x657b128a4936542A48a40C320BFfa3F44043583a",
16990
17021
  "decimals": 18,
16991
- "name": "SolvBTC PoR"
17022
+ "name": "SolvBTC Proof of Reserves"
16992
17023
  },
16993
17024
  {
16994
17025
  "contractAddress": "0x0765d9EF5E38A2E742d2c3A58C4944a3fb6D25C5",
@@ -17528,7 +17559,7 @@ var chainlinkFeeds = {
17528
17559
  "contractAddress": "0x9a8b0bf764D6cd177616A6133fb222ad5938b51a",
17529
17560
  "proxyAddress": "0x81ca991cEf14e7bFB3fa8cc70303a2DEaEb09A42",
17530
17561
  "decimals": 18,
17531
- "name": "Solv PoR"
17562
+ "name": "Solv Proof of Reserves"
17532
17563
  },
17533
17564
  {
17534
17565
  "contractAddress": "0x9f1fD891E4D82F4b23420C769Bd96409C99806b2",
@@ -17642,7 +17673,7 @@ var chainlinkFeeds = {
17642
17673
  "contractAddress": "0xDa15d5A05A2813395e9A851EA463281AA1354FF7",
17643
17674
  "proxyAddress": "0x696B7eA5827548cd35C743A0a05c1f3130196e5e",
17644
17675
  "decimals": 18,
17645
- "name": "stBTC PoR"
17676
+ "name": "stBTC Proof of Reserves"
17646
17677
  },
17647
17678
  {
17648
17679
  "contractAddress": "0xE0Aa6B17316140A964B08E0228152E282225607D",
@@ -18288,7 +18319,7 @@ var chainlinkFeeds = {
18288
18319
  "contractAddress": "0x31fe6bD1D7E4166B5b8Fd4112eea3C7eECA51217",
18289
18320
  "proxyAddress": "0x0fB2beD999da86Cb1Fdd97E746600A96141EeA09",
18290
18321
  "decimals": 8,
18291
- "name": "bNVDA Reserves / PoR"
18322
+ "name": "bNVDA Reserves / Proof of Reserves"
18292
18323
  },
18293
18324
  {
18294
18325
  "contractAddress": "0x32411A331EAf9829adCEC478afF9adF2B5bd296c",
@@ -18774,7 +18805,7 @@ var chainlinkFeeds = {
18774
18805
  "contractAddress": "0xC65B00c8D77dc82Bd29E8b571De22c6ED3F6eE89",
18775
18806
  "proxyAddress": "0x4e9fc7480c16F3FE5d956C0759eE6b4808d1F5D7",
18776
18807
  "decimals": 8,
18777
- "name": "CGT PoR (ETH)"
18808
+ "name": "CGT Proof of Reserves (ETH)"
18778
18809
  },
18779
18810
  {
18780
18811
  "contractAddress": "0xC6c7Bb0d721e4Ef7318A16F682dd4c1013b430F0",
@@ -19686,6 +19717,12 @@ var chainlinkFeeds = {
19686
19717
  "decimals": 8,
19687
19718
  "name": "BTC / USD"
19688
19719
  },
19720
+ {
19721
+ "contractAddress": "0xa236d64Ef51e3243887aac4270ea75De65ECABfd",
19722
+ "proxyAddress": "0x01dd982820B7c25e2A9C77BDd3bC0eDA90298A2F",
19723
+ "decimals": 8,
19724
+ "name": "USD1 / USD"
19725
+ },
19689
19726
  {
19690
19727
  "contractAddress": "0xfB1193670633f958F50C0E49688a82E6b73297b1",
19691
19728
  "proxyAddress": "0xD97F20bEbeD74e8144134C4b148fE93417dd0F96",
@@ -19956,7 +19993,13 @@ var chainlinkFeeds = {
19956
19993
  "contractAddress": "0x52d743436F6bA414050bD8869C8bF6537C355A00",
19957
19994
  "proxyAddress": "0x30A76F4E688Cf52f4A06D7AAd987A7037f3Ae6f7",
19958
19995
  "decimals": 8,
19959
- "name": "dlcBTC PoR"
19996
+ "name": "dlcBTC Proof of Reserves"
19997
+ },
19998
+ {
19999
+ "contractAddress": "0x5387a1EA9361BD8A2AA1BE68E1e10bd566eECFa4",
20000
+ "proxyAddress": "0x9f0C1dD78C4CBdF5b9cf923a549A201EdC676D34",
20001
+ "decimals": 8,
20002
+ "name": "XRP / USD"
19960
20003
  },
19961
20004
  {
19962
20005
  "contractAddress": "0x55012EF027ae9b4E2bb5a5f529E5a1184Bcc998D",
@@ -20006,6 +20049,12 @@ var chainlinkFeeds = {
20006
20049
  "decimals": 8,
20007
20050
  "name": "COMP / USD"
20008
20051
  },
20052
+ {
20053
+ "contractAddress": "0x62c9CB9Dd648d9ed28C4C243d062093571b934D7",
20054
+ "proxyAddress": "0x206a34e47093125fbf4C75b7c7E88b84c6A77a69",
20055
+ "decimals": 8,
20056
+ "name": "LTC / USD"
20057
+ },
20009
20058
  {
20010
20059
  "contractAddress": "0x63a3b4E2aeea2d1Cc883987AEc22E9Aa88323b3c",
20011
20060
  "proxyAddress": "0x79cf4a31B29D69191f0b6E97916eB93FEB81E533",
@@ -20156,6 +20205,12 @@ var chainlinkFeeds = {
20156
20205
  "decimals": 8,
20157
20206
  "name": "GHO / USD"
20158
20207
  },
20208
+ {
20209
+ "contractAddress": "0x91e936921Df850Cc8714527EBE6C45ECbD2CAd31",
20210
+ "proxyAddress": "0x34cD971a092d5411bD69C10a5F0A7EEF72C69041",
20211
+ "decimals": 8,
20212
+ "name": "ADA / USD"
20213
+ },
20159
20214
  {
20160
20215
  "contractAddress": "0x9465CF4b4032080434E397F42fB99A8446c35376",
20161
20216
  "proxyAddress": "0xd5Ec94430eF4170D819E0996BC53ed40d31638d8",
@@ -20340,7 +20395,7 @@ var chainlinkFeeds = {
20340
20395
  "contractAddress": "0xa24AAfb9d49d0cF43dcd8A5f2442a30391F494D2",
20341
20396
  "proxyAddress": "0x7FCED5198e43ec93Ef2179DFC70a8dcf494DcB80",
20342
20397
  "decimals": 8,
20343
- "name": "iBTC PoR"
20398
+ "name": "iBTC Proof of Reserves"
20344
20399
  },
20345
20400
  {
20346
20401
  "contractAddress": "0xa332cbef58964977Fa47d8Fa9abdc58FBd477e62",
@@ -21938,7 +21993,7 @@ var chainlinkFeeds = {
21938
21993
  "contractAddress": "0x29ef0aE1eDb5764b5bd2ff3a605b5d4Eb39a0d63",
21939
21994
  "proxyAddress": "0x5F25Ea8Cf2a3aB12E4D6fB58FB63C7938473B036",
21940
21995
  "decimals": 10,
21941
- "name": "aBTC PoR"
21996
+ "name": "aBTC Proof of Reserves"
21942
21997
  },
21943
21998
  {
21944
21999
  "contractAddress": "0x2C50f2Fe9427d120DEA2eb804c148d2780519d59",
@@ -21992,7 +22047,7 @@ var chainlinkFeeds = {
21992
22047
  "contractAddress": "0x331480b3C79f16018704A83847db1e29d8cdce14",
21993
22048
  "proxyAddress": "0xfb010c715Ff2B85DB9c896f0C030bF9329638905",
21994
22049
  "decimals": 8,
21995
- "name": "FBTC PoR"
22050
+ "name": "FBTC Proof of Reserves"
21996
22051
  },
21997
22052
  {
21998
22053
  "contractAddress": "0x338D614Af8c05eF9d77a33E9D33A92b770809ED4",
@@ -24122,7 +24177,7 @@ var chainlinkFeeds = {
24122
24177
  "contractAddress": "0x5F36C484290Ec4bDaC745c6C8BD681F44bE6ac4D",
24123
24178
  "proxyAddress": "0x0543Bb6b5A57E3e7569237b67321eAB773e41401",
24124
24179
  "decimals": 8,
24125
- "name": "iBTC PoR"
24180
+ "name": "iBTC Proof of Reserves"
24126
24181
  },
24127
24182
  {
24128
24183
  "contractAddress": "0x5ab0B1e2604d4B708721bc3cD1ce962958b4297E",
@@ -24236,7 +24291,7 @@ var chainlinkFeeds = {
24236
24291
  "contractAddress": "0x73b6A47371f6278F41Ec655A3a06477997912D09",
24237
24292
  "proxyAddress": "0xA0118D8948FA85624608d94eC6B52973578082fA",
24238
24293
  "decimals": 18,
24239
- "name": "stBTC PoR"
24294
+ "name": "stBTC Proof of Reserves"
24240
24295
  },
24241
24296
  {
24242
24297
  "contractAddress": "0x75DD106b46017F9b5BF2c468f29Ee55f410b991c",
@@ -24464,7 +24519,7 @@ var chainlinkFeeds = {
24464
24519
  "contractAddress": "0xAfAEbEB1Db6d13EC1279B59396a9dc40502458c1",
24465
24520
  "proxyAddress": "0x47A2fBEb46553F01E7133686Fb1b5349d4823a0C",
24466
24521
  "decimals": 8,
24467
- "name": "dlcBTC PoR"
24522
+ "name": "dlcBTC Proof of Reserves"
24468
24523
  },
24469
24524
  {
24470
24525
  "contractAddress": "0xB4A1F9641186D822a941FEc71E374bB66cd27cdA",
@@ -24560,7 +24615,7 @@ var chainlinkFeeds = {
24560
24615
  "contractAddress": "0xDB99d80bD3aE8dae5d929493Ddf696196f7f59f2",
24561
24616
  "proxyAddress": "0xd9344493d99153Ad4353D604A1d80d4089004c5D",
24562
24617
  "decimals": 8,
24563
- "name": "zBTC PoR"
24618
+ "name": "zBTC Proof of Reserves"
24564
24619
  },
24565
24620
  {
24566
24621
  "contractAddress": "0xDf8a3fc9bC6fA89F1b630e58f6eB4b874f24C165",
@@ -25104,7 +25159,7 @@ var chainlinkFeeds = {
25104
25159
  "contractAddress": "0x017780bFA4D66Ee3b4b816a15b0f05DF2654f7B9",
25105
25160
  "proxyAddress": "0xebEfEAA58636DF9B20a4fAd78Fad8759e6A20e87",
25106
25161
  "decimals": 8,
25107
- "name": "WBTC.e PoR"
25162
+ "name": "WBTC.e Proof of Reserves"
25108
25163
  },
25109
25164
  {
25110
25165
  "contractAddress": "0x0B2bFcbE40213cF93CE2Be85156DD16E31483f70",
@@ -25158,7 +25213,7 @@ var chainlinkFeeds = {
25158
25213
  "contractAddress": "0x1c4841636a4848d474892E7408312804D3f9a43F",
25159
25214
  "proxyAddress": "0x976D7fAc81A49FA71EF20694a3C56B9eFB93c30B",
25160
25215
  "decimals": 18,
25161
- "name": "DAI.e PoR"
25216
+ "name": "DAI.e Proof of Reserves"
25162
25217
  },
25163
25218
  {
25164
25219
  "contractAddress": "0x255ca8e07c6Dbc4835DC7680dB7D9E969c08c120",
@@ -25236,7 +25291,7 @@ var chainlinkFeeds = {
25236
25291
  "contractAddress": "0x461b95e560697B0C83AB569f06034832a4b62707",
25237
25292
  "proxyAddress": "0x99311B4bf6D8E3D3B4b9fbdD09a1B0F4Ad8e06E9",
25238
25293
  "decimals": 8,
25239
- "name": "BTC.b PoR"
25294
+ "name": "BTC.b Proof of Reserves"
25240
25295
  },
25241
25296
  {
25242
25297
  "contractAddress": "0x4A5cE69A1aDA639042B30e1574Eb9D6e939388A3",
@@ -25278,7 +25333,7 @@ var chainlinkFeeds = {
25278
25333
  "contractAddress": "0x61595142b147De812B43C66f30094a3219a38bCD",
25279
25334
  "proxyAddress": "0x943cEF1B112Ca9FD7EDaDC9A46477d3812a382b6",
25280
25335
  "decimals": 18,
25281
- "name": "LINK.e PoR"
25336
+ "name": "LINK.e Proof of Reserves"
25282
25337
  },
25283
25338
  {
25284
25339
  "contractAddress": "0x64922B570edf432defD4d3C5647269727a667EDa",
@@ -25434,7 +25489,7 @@ var chainlinkFeeds = {
25434
25489
  "contractAddress": "0xC5463267394709421b0FF3726dd21e152Ec0B1D9",
25435
25490
  "proxyAddress": "0x14C4c668E34c09E1FBA823aD5DB47F60aeBDD4F7",
25436
25491
  "decimals": 18,
25437
- "name": "AAVE.e PoR"
25492
+ "name": "AAVE.e Proof of Reserves"
25438
25493
  },
25439
25494
  {
25440
25495
  "contractAddress": "0xC54d8293A7f98ef887BE882311E4C274BE67f927",
@@ -25458,7 +25513,7 @@ var chainlinkFeeds = {
25458
25513
  "contractAddress": "0xD38Acd83073EeF07186D5Db701C576aD42D6cf27",
25459
25514
  "proxyAddress": "0xDDaf9290D057BfA12d7576e6dADC109421F31948",
25460
25515
  "decimals": 18,
25461
- "name": "WETH.e PoR"
25516
+ "name": "WETH.e Proof of Reserves"
25462
25517
  },
25463
25518
  {
25464
25519
  "contractAddress": "0xD74bBE6Db11AD5F3D4F7d4Ee23D9C9d5c301D4e0",
@@ -25560,7 +25615,7 @@ var chainlinkFeeds = {
25560
25615
  "contractAddress": "0xd4452d1811AA9AC14B9c55444a1B55CDB97760eC",
25561
25616
  "proxyAddress": "0x94D8c2548018C27F1aa078A23C4158206bE1CC72",
25562
25617
  "decimals": 6,
25563
- "name": "USDT.e PoR"
25618
+ "name": "USDT.e Proof of Reserves"
25564
25619
  },
25565
25620
  {
25566
25621
  "contractAddress": "0xd761cFc03e833FEBB04297Cc1aB7291D80c9595f",
@@ -25574,11 +25629,17 @@ var chainlinkFeeds = {
25574
25629
  "decimals": 8,
25575
25630
  "name": "CRV / USD"
25576
25631
  },
25632
+ {
25633
+ "contractAddress": "0xe3fA7342C4096E02aB376f64b6C5251bf6f3c657",
25634
+ "proxyAddress": "0x0d2807dc7FA52d3B38be564B64a2b37753C49AdD",
25635
+ "decimals": 8,
25636
+ "name": "EmCH Reserves"
25637
+ },
25577
25638
  {
25578
25639
  "contractAddress": "0xf52BF03f3f406BAAADE542b3D2D5CeCfFf1754E6",
25579
25640
  "proxyAddress": "0x63769951E4cfDbDC653dD9BBde63D2Ce0746e5F2",
25580
25641
  "decimals": 6,
25581
- "name": "USDC.e PoR"
25642
+ "name": "USDC.e Proof of Reserves"
25582
25643
  },
25583
25644
  {
25584
25645
  "contractAddress": "0xfb317b2a4404802dF62c87a5982EE383F2711ce6",
@@ -25858,7 +25919,7 @@ var chainlinkFeeds = {
25858
25919
  "contractAddress": "0x863451a4C718699bb3C860799a785DBd4DDf3a4D",
25859
25920
  "proxyAddress": "0x6dCa10bce66548e26DBd1FCF4E8692796BeDdd7E",
25860
25921
  "decimals": 18,
25861
- "name": "stBTC PoR"
25922
+ "name": "stBTC Proof of Reserves"
25862
25923
  },
25863
25924
  {
25864
25925
  "contractAddress": "0x88926382559e24D1153d9F492554064C9f052A22",
@@ -25997,85 +26058,85 @@ var chainlinkFeeds = {
25997
26058
 
25998
26059
  // src/ecosystem/generated/hyperRPC.ts
25999
26060
  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
26061
  1,
26015
- 10200,
26016
- 7e3,
26017
- 48900,
26018
- 1301,
26019
- 10143,
26020
- 59144,
26021
- 11155420,
26022
- 80094,
26023
- 80084,
26024
- 5e3,
26025
- 6342,
26026
- 2810,
26027
- 80002,
26062
+ 1,
26028
26063
  10,
26029
- 50,
26030
- 42220,
26031
26064
  100,
26032
- 204,
26033
- 480,
26034
- 43113,
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,
26065
+ 100,
26066
+ 10143,
26067
+ 10200,
26052
26068
  1101,
26053
26069
  11155111,
26054
- 7777777,
26055
- 137,
26056
- 5115,
26057
- 8888,
26070
+ 11155420,
26071
+ 1135,
26072
+ 1284,
26058
26073
  1287,
26074
+ 130,
26075
+ 1301,
26076
+ 1313161554,
26077
+ 137,
26078
+ 14,
26079
+ 146,
26080
+ 148,
26081
+ 16666e5,
26082
+ 168587773,
26083
+ 169,
26084
+ 17e3,
26085
+ 1750,
26086
+ 17864,
26087
+ 1868,
26088
+ 1923,
26089
+ 204,
26090
+ 250,
26091
+ 252,
26059
26092
  255,
26060
- 1135,
26061
- 34443,
26093
+ 2741,
26094
+ 2810,
26095
+ 2818,
26096
+ 288,
26062
26097
  30,
26098
+ 324,
26099
+ 33111,
26100
+ 34443,
26101
+ 42,
26063
26102
  4200,
26064
- 288,
26065
- 696969,
26066
- 17e3,
26103
+ 4201,
26104
+ 42161,
26067
26105
  421614,
26068
- 2818,
26069
- 56,
26070
- 324,
26071
- 16666e5,
26106
+ 42170,
26107
+ 42220,
26108
+ 43113,
26109
+ 43114,
26110
+ 480,
26111
+ 48900,
26112
+ 50,
26113
+ 5e3,
26114
+ 50002,
26072
26115
  50104,
26116
+ 51,
26117
+ 5115,
26118
+ 531050104,
26119
+ 5330,
26073
26120
  534352,
26074
- 42161,
26075
- 250,
26076
- 1313161554,
26077
- 1284,
26078
- 169
26121
+ 56,
26122
+ 57073,
26123
+ 59144,
26124
+ 6342,
26125
+ 645749,
26126
+ 696969,
26127
+ 7e3,
26128
+ 7225878,
26129
+ 7560,
26130
+ 7777777,
26131
+ 80002,
26132
+ 80084,
26133
+ 80094,
26134
+ 81457,
26135
+ 8453,
26136
+ 84532,
26137
+ 8888,
26138
+ 97,
26139
+ 9889
26079
26140
  ];
26080
26141
 
26081
26142
  // src/operations/diffCode.ts
@@ -26195,9 +26256,7 @@ function genericIndexer(args) {
26195
26256
  }
26196
26257
 
26197
26258
  // src/seatbelt/logs.ts
26198
- import {
26199
- decodeEventLog
26200
- } from "viem";
26259
+ import { decodeEventLog } from "viem";
26201
26260
  function parseLogs({ logs, eventDb }) {
26202
26261
  const parsedLogs = logs.map((log) => {
26203
26262
  try {
@@ -26284,42 +26343,62 @@ function checkCode(bytecode) {
26284
26343
  }
26285
26344
 
26286
26345
  // src/seatbelt/verified.ts
26287
- function getVerificationStatus({
26288
- chainId,
26346
+ import { getCode } from "viem/actions";
26347
+ async function getVerificationStatus({
26348
+ client,
26289
26349
  addresses,
26290
- contractDb,
26350
+ contractDb = {},
26291
26351
  apiKey,
26292
26352
  apiUrl
26293
26353
  }) {
26294
- return Promise.all(
26295
- addresses.map(async (address) => {
26296
- if (contractDb[address])
26297
- return {
26298
- address,
26299
- name: contractDb[address],
26300
- status: 0 /* CACHE */
26301
- };
26302
- try {
26303
- const code = await getSourceCode({ chainId, address, apiKey, apiUrl });
26304
- return {
26305
- address,
26306
- name: code.ContractName,
26307
- status: 1 /* NEW */
26308
- };
26309
- } catch (e) {
26310
- return {
26311
- address,
26312
- status: 2 /* ERROR */
26313
- };
26314
- }
26315
- })
26316
- );
26354
+ const results = [];
26355
+ for (const address of addresses) {
26356
+ if (contractDb[address]) {
26357
+ results.push({
26358
+ address,
26359
+ name: contractDb[address],
26360
+ status: 1 /* CONTRACT */
26361
+ });
26362
+ continue;
26363
+ }
26364
+ const code = await getCode(client, { address });
26365
+ if (!code) {
26366
+ results.push({
26367
+ address,
26368
+ status: 0 /* EOA */
26369
+ });
26370
+ continue;
26371
+ }
26372
+ try {
26373
+ const code2 = await getSourceCode({
26374
+ chainId: client.chain.id,
26375
+ address,
26376
+ apiKey,
26377
+ apiUrl
26378
+ });
26379
+ results.push({
26380
+ address,
26381
+ name: code2.ContractName,
26382
+ status: 1 /* CONTRACT */,
26383
+ new: true
26384
+ });
26385
+ } catch (e) {
26386
+ results.push({
26387
+ address,
26388
+ status: 2 /* ERROR */
26389
+ });
26390
+ }
26391
+ }
26392
+ return results;
26317
26393
  }
26318
26394
 
26319
26395
  // src/seatbelt/tenderly-report.ts
26320
26396
  async function renderTenderlyReport({
26321
26397
  client,
26322
- sim
26398
+ sim,
26399
+ payloadId,
26400
+ payload,
26401
+ onchainLogs: { createdLog, queuedLog, executedLog }
26323
26402
  }) {
26324
26403
  const logs = parseLogs({
26325
26404
  logs: (sim.transaction.transaction_info.logs || []).map((l) => l.raw),
@@ -26332,14 +26411,56 @@ async function renderTenderlyReport({
26332
26411
  // trusted addresses
26333
26412
  );
26334
26413
  const verified = getVerificationStatus({
26335
- chainId: client.chain.id,
26414
+ client,
26336
26415
  addresses: sim.transaction.addresses,
26337
26416
  contractDb: {}
26338
26417
  });
26339
- return logs;
26418
+ let report = `## Payload ${payloadId} on ${client.chain.name}
26419
+
26420
+ - creator: ${payload.creator}
26421
+ - maximumAccessLevelRequired: ${payload.maximumAccessLevelRequired}
26422
+ - state: ${payload.state}(${HUMAN_READABLE_PAYLOAD_STATE[payload.state]})
26423
+ - actions:
26424
+ ${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")}
26425
+ - createdAt: [${renderUnixTime(payload.createdAt)}](${toTxLink(createdLog.transactionHash, client)})
26426
+ `;
26427
+ if (queuedLog) {
26428
+ report += `- queuedAt: [${renderUnixTime(payload.queuedAt)}](${toTxLink(
26429
+ queuedLog.transactionHash,
26430
+ client
26431
+ )})
26432
+ `;
26433
+ if (executedLog) {
26434
+ report += `- executedAt: [${renderUnixTime(payload.executedAt)}, block: ${executedLog.blockNumber}](${toTxLink(
26435
+ executedLog.transactionHash,
26436
+ client
26437
+ )})
26438
+ `;
26439
+ } else {
26440
+ report += `- earliest execution at: [${renderUnixTime(
26441
+ payload.queuedAt + payload.delay
26442
+ )}](https://www.epochconverter.com/countdown?q=${payload.queuedAt + payload.delay})
26443
+ `;
26444
+ const timestamp = Math.floor(
26445
+ new Date(sim.transaction.timestamp).getTime() / 1e3
26446
+ );
26447
+ report += `- simulatedExecutionAt: ${renderUnixTime(
26448
+ timestamp
26449
+ )}, timestamp: ${timestamp}, block: ${sim.transaction.block_number}`;
26450
+ }
26451
+ }
26452
+ report += "\n";
26453
+ return report;
26454
+ }
26455
+ function renderUnixTime(time) {
26456
+ return new Date(time * 1e3).toLocaleString("en-GB", { timeZone: "UTC" });
26457
+ }
26458
+ function toTxLink(txn, client) {
26459
+ return `${client.chain?.blockExplorers?.default.url}/tx/${txn}`;
26340
26460
  }
26341
26461
  export {
26342
26462
  AggregatorInterface_ABI,
26463
+ Aip,
26343
26464
  ChainId,
26344
26465
  ChainList,
26345
26466
  EVENT_DB,
@@ -26423,6 +26544,7 @@ export {
26423
26544
  getReserveConfigurations,
26424
26545
  getReserveTokens,
26425
26546
  getSourceCode,
26547
+ getVerificationStatus,
26426
26548
  hyperRPCSupportedNetworks,
26427
26549
  isPayloadFinal,
26428
26550
  isProposalFinal,
@@ -26445,6 +26567,8 @@ export {
26445
26567
  tenderly_getVnet,
26446
26568
  tenderly_sim,
26447
26569
  tenderly_simVnet,
26570
+ toTxLink,
26571
+ validateAip,
26448
26572
  wadDiv,
26449
26573
  wadToRay
26450
26574
  };