Skip to content

Commit

Permalink
chore: 👕
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Sep 30, 2024
1 parent 8ad03c6 commit c7a7949
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const getCoreMarkets = async (): Promise<PoolAddressArray[]> => {
functionName: "getAllMarkets",
});

// @ts-expect-error not infinte
const underlyingAddresses = await publicClient.multicall({
contracts: markets.map(m => ({
address: m,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Address } from "viem";

import { poolLensAbi, ilVTokenAbi } from "../../config/abis/generated";
import { ilVTokenAbi, poolLensAbi } from "../../config/abis/generated";
import getAddresses from "../../config/addresses";
import publicClient from "../../config/clients/publicClient";
import type { PoolAddressArray } from "../types";
Expand Down
15 changes: 15 additions & 0 deletions packages/keeper-bots/wagmi.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import ilComptrollerArtifact from "@venusprotocol/isolated-pools/artifacts/contracts/Comptroller.sol/Comptroller.json" assert { type: "json" };
import poolLensArtifact from "@venusprotocol/isolated-pools/artifacts/contracts/Lens/PoolLens.sol/PoolLens.json" assert { type: "json" };
import ilVTokenArtifact from "@venusprotocol/isolated-pools/artifacts/contracts/VToken.sol/VToken.json" assert { type: "json" };
import liquidationOperatorArtifact from "@venusprotocol/keeper-bot-contracts/artifacts/contracts/operators/LiquidationOperator.sol/LiquidationOperator.json" assert { type: "json" };
import tokenConverterOperatorArtifact from "@venusprotocol/keeper-bot-contracts/artifacts/contracts/operators/TokenConverterOperator.sol/TokenConverterOperator.json" assert { type: "json" };
import resilientOracleArtifact from "@venusprotocol/oracle/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json" assert { type: "json" };
import protocolShareReserveArtifact from "@venusprotocol/protocol-reserve/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json" assert { type: "json" };
import tokenConverterArtifact from "@venusprotocol/protocol-reserve/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.json" assert { type: "json" };
import vBnbAdminArtifact from "@venusprotocol/venus-protocol/artifacts/contracts/Admin/VBNBAdmin.sol/VBNBAdmin.json" assert { type: "json" };
Expand All @@ -23,6 +26,18 @@ const getExternalContracts = async (): Promise<{ name: string; abi: Abi }[]> =>
abi: ilComptrollerArtifact.abi as Abi,
name: "IlComptroller",
},
{
abi: ilVTokenArtifact.abi as Abi,
name: "ilVToken",
},
{
abi: resilientOracleArtifact.abi as Abi,
name: "resilientOracle",
},
{
abi: liquidationOperatorArtifact.abi as Abi,
name: "liquidationOperator",
},
{
abi: coreVTokenArtifact.abi as Abi,
name: "CoreVToken",
Expand Down

0 comments on commit c7a7949

Please sign in to comment.