From 32dd4f67fe6c7770983dc93db04327c604094d90 Mon Sep 17 00:00:00 2001 From: "bubby.eth" <112112385+bubby-eth@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:07:28 -0700 Subject: [PATCH 1/2] feat: add anvil adapter --- projects/anvil/index.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 projects/anvil/index.js diff --git a/projects/anvil/index.js b/projects/anvil/index.js new file mode 100644 index 0000000000..54d3e8850c --- /dev/null +++ b/projects/anvil/index.js @@ -0,0 +1,5 @@ +const { treasuryExports } = require("../helper/treasury"); + +module.exports = treasuryExports({ + ethereum: { owners: ['0x5d2725fdE4d7Aa3388DA4519ac0449Cc031d675f'], }, +}) \ No newline at end of file From 4de2c1c848f08bf9a97fc37b2ef4e5af89319a2e Mon Sep 17 00:00:00 2001 From: "bubby.eth" <112112385+bubby-eth@users.noreply.github.com> Date: Tue, 29 Apr 2025 13:22:59 -0700 Subject: [PATCH 2/2] feat: add veil adapter --- projects/veil/index.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 projects/veil/index.js diff --git a/projects/veil/index.js b/projects/veil/index.js new file mode 100644 index 0000000000..8d571396bd --- /dev/null +++ b/projects/veil/index.js @@ -0,0 +1,40 @@ +const ADDRESSES = require('../helper/coreAssets.json') +const { staking } = require('../helper/staking') + +// Public Deposit Pools +const DEPOSIT_POOL_PUBLIC_005_ETH = '0x6c206B5389de4e5a23FdF13BF38104CE8Dd2eD5f' +const DEPOSIT_POOL_PUBLIC_05_ETH = '0xC53510D6F535Ba0943b1007f082Af3410fBeA4F7' + +// Verified Deposit Pools +const DEPOSIT_POOL_VERIFIED_001_ETH = '0x844bB2917dD363Be5567f9587151c2aAa2E345D2' +const DEPOSIT_POOL_VERIFIED_01_ETH = '0xD3560eF60Dd06E27b699372c3da1b741c80B7D90' +const DEPOSIT_POOL_VERIFIED_1_ETH = '0x9cCdFf5f69d93F4Fcd6bE81FeB7f79649cb6319b' +const DEPOSIT_POOL_VERIFIED_200_USDC = '0xA4dB5eC5d0a2ee01CcD8D6e2e53224CF4E81A9b3' + +// VEIL staking contract +const VEIL_TOKEN = '0x767A739D1A152639e9Ea1D8c1BD55FDC5B217D7f' +const VEIL_STAKING_CONTRACT = '0x3225b5a7c842cC227C773636F5C574443C62bb86' + +async function tvl(api) { + const ethPools = [ + DEPOSIT_POOL_PUBLIC_005_ETH, + DEPOSIT_POOL_PUBLIC_05_ETH, + DEPOSIT_POOL_VERIFIED_001_ETH, + DEPOSIT_POOL_VERIFIED_01_ETH, + DEPOSIT_POOL_VERIFIED_1_ETH, + ] + const usdcPools = [DEPOSIT_POOL_VERIFIED_200_USDC] + + // ETH deposits + await api.sumTokens({ owners: ethPools, tokens: [ADDRESSES.null] }) + + // USDC deposits + await api.sumTokens({ owners: usdcPools, tokens: [ADDRESSES.base.USDC] }) +} + +module.exports = { + base: { + tvl, + staking: staking(VEIL_STAKING_CONTRACT, VEIL_TOKEN) + } +} \ No newline at end of file