-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add importAssertion prettier plugin
- Loading branch information
Showing
4 changed files
with
29 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,53 @@ | ||
import { defineConfig } from '@wagmi/cli' | ||
import { hardhat } from '@wagmi/cli/plugins' | ||
import poolLensArtifact from '@venusprotocol/isolated-pools/artifacts/contracts/Lens/PoolLens.sol/PoolLens.json' assert { type: "json"}; | ||
import diamondComptrollerArtifact from '@venusprotocol/venus-protocol/artifacts/contracts/Comptroller/Diamond/DiamondConsolidated.sol/DiamondConsolidated.json' assert { type: "json"}; | ||
import ilComptrollerArtifact from '@venusprotocol/isolated-pools/artifacts/contracts/Comptroller.sol/Comptroller.json' assert { type: "json"}; | ||
import coreVTokenArtifact from '@venusprotocol/venus-protocol/artifacts/contracts/Tokens/VTokens/VBep20Delegate.sol/VBep20Delegate.json' assert { type: "json"}; | ||
import protocolShareReserveArtifact from '@venusprotocol/protocol-reserve/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json' assert { type: "json"}; | ||
import vBnbAdminArtifact from '@venusprotocol/venus-protocol/artifacts/contracts/Admin/VBNBAdmin.sol/VBNBAdmin.json' assert { type: "json"}; | ||
import vBNB from '@venusprotocol/venus-protocol/artifacts/contracts/Admin/VBNBAdminStorage.sol/VTokenInterface.json' assert { type: "json"}; | ||
|
||
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 protocolShareReserveArtifact from "@venusprotocol/protocol-reserve/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json" assert { type: "json" }; | ||
import vBnbAdminArtifact from "@venusprotocol/venus-protocol/artifacts/contracts/Admin/VBNBAdmin.sol/VBNBAdmin.json" assert { type: "json" }; | ||
import vBNB from "@venusprotocol/venus-protocol/artifacts/contracts/Admin/VBNBAdminStorage.sol/VTokenInterface.json" assert { type: "json" }; | ||
import diamondComptrollerArtifact from "@venusprotocol/venus-protocol/artifacts/contracts/Comptroller/Diamond/DiamondConsolidated.sol/DiamondConsolidated.json" assert { type: "json" }; | ||
import coreVTokenArtifact from "@venusprotocol/venus-protocol/artifacts/contracts/Tokens/VTokens/VBep20Delegate.sol/VBep20Delegate.json" assert { type: "json" }; | ||
import { defineConfig } from "@wagmi/cli"; | ||
import { hardhat } from "@wagmi/cli/plugins"; | ||
|
||
const getExternalContracts = async (): Promise<any> => [ | ||
{ | ||
abi: poolLensArtifact.abi, | ||
name: 'PoolLens' | ||
name: "PoolLens", | ||
}, | ||
{ | ||
abi: diamondComptrollerArtifact.abi, | ||
name: 'CoreComptroller' | ||
name: "CoreComptroller", | ||
}, | ||
{ | ||
abi: ilComptrollerArtifact.abi, | ||
name: 'IlComptroller' | ||
name: "IlComptroller", | ||
}, | ||
{ | ||
abi: coreVTokenArtifact.abi, | ||
name: 'CoreVToken' | ||
name: "CoreVToken", | ||
}, | ||
{ | ||
abi: protocolShareReserveArtifact.abi, | ||
name: 'ProtocolShareReserve' | ||
name: "ProtocolShareReserve", | ||
}, | ||
{ | ||
abi: vBnbAdminArtifact.abi, | ||
name: 'VBnbAdmin' | ||
name: "VBnbAdmin", | ||
}, | ||
{ | ||
abi: vBNB.abi, | ||
name: 'vBNB' | ||
} | ||
] | ||
name: "vBNB", | ||
}, | ||
]; | ||
|
||
export default defineConfig(async () => { | ||
const externalContracts = await getExternalContracts() | ||
const externalContracts = await getExternalContracts(); | ||
return { | ||
out: 'src/config/abis/generated.ts', | ||
out: "src/config/abis/generated.ts", | ||
contracts: externalContracts, | ||
plugins: [ | ||
hardhat({ | ||
project: '.', | ||
project: ".", | ||
}), | ||
], | ||
} | ||
}) | ||
}; | ||
}); |