Skip to content

Commit

Permalink
Merge pull request #65 from VenusProtocol/use-es6-modules
Browse files Browse the repository at this point in the history
fix: use ex6 modules
  • Loading branch information
coreyar authored Jan 24, 2024
2 parents 23d350d + fd5a56d commit 94b9f5d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
6 changes: 4 additions & 2 deletions deploy/003-xvs-vault-teasury.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";

import { ADDRESS_ONE, multisigs } from "../helpers/utils";

module.exports = async ({ network: { live, name }, getNamedAccounts, deployments }: HardhatRuntimeEnvironment) => {
const func = async ({ network: { live, name }, getNamedAccounts, deployments }: HardhatRuntimeEnvironment) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();

Expand Down Expand Up @@ -37,4 +37,6 @@ module.exports = async ({ network: { live, name }, getNamedAccounts, deployments
}
};

module.exports.tags = ["XVSVaultTreasury"];
func.tags = ["XVSVaultTreasury"];

export default func;
6 changes: 4 additions & 2 deletions deploy/005-converter-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ADDRESS_ONE, multisigs } from "../helpers/utils";

const MAX_LOOPS_LIMIT = 20;

module.exports = async ({ network: { live, name }, getNamedAccounts, deployments }: HardhatRuntimeEnvironment) => {
const func = async ({ network: { live, name }, getNamedAccounts, deployments }: HardhatRuntimeEnvironment) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();

Expand Down Expand Up @@ -35,4 +35,6 @@ module.exports = async ({ network: { live, name }, getNamedAccounts, deployments
}
};

module.exports.tags = ["ConverterNetwork"];
func.tags = ["ConverterNetwork"];

export default func;
21 changes: 19 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2974,7 +2974,24 @@ __metadata:
languageName: node
linkType: hard

"@venusprotocol/protocol-reserve@^1.1.0, @venusprotocol/protocol-reserve@^1.2.0, @venusprotocol/protocol-reserve@workspace:.":
"@venusprotocol/protocol-reserve@npm:^1.1.0, @venusprotocol/protocol-reserve@npm:^1.2.0":
version: 1.3.0
resolution: "@venusprotocol/protocol-reserve@npm:1.3.0"
dependencies:
"@nomiclabs/hardhat-ethers": ^2.2.3
"@openzeppelin/contracts": ^4.8.3
"@openzeppelin/contracts-upgradeable": ^4.8.3
"@openzeppelin/hardhat-upgrades": ^1.21.0
"@solidity-parser/parser": ^0.13.2
"@venusprotocol/solidity-utilities": ^1.0.1
ethers: ^5.7.0
hardhat-deploy: ^0.11.14
module-alias: ^2.2.2
checksum: 6ada3414a988a5308590fedaf1ad13bd7f58fed3db68170ab0f07910607fe3aa6a1e954939fb68c022e847c2729e94253b1da36c32b6753d1752cc3f7c036560
languageName: node
linkType: hard

"@venusprotocol/protocol-reserve@workspace:.":
version: 0.0.0-use.local
resolution: "@venusprotocol/protocol-reserve@workspace:."
dependencies:
Expand Down Expand Up @@ -3036,7 +3053,7 @@ __metadata:
languageName: unknown
linkType: soft

"@venusprotocol/solidity-utilities@npm:1.3.0, @venusprotocol/solidity-utilities@npm:^1.2.0, @venusprotocol/solidity-utilities@npm:^1.3.0":
"@venusprotocol/solidity-utilities@npm:1.3.0, @venusprotocol/solidity-utilities@npm:^1.0.1, @venusprotocol/solidity-utilities@npm:^1.2.0, @venusprotocol/solidity-utilities@npm:^1.3.0":
version: 1.3.0
resolution: "@venusprotocol/solidity-utilities@npm:1.3.0"
checksum: d1109365a5e01959c47b25fb129373db93792e60bf1bc0ed324b63c2a64f6e4a7878ebf016cfade94bc41a2c1245d3e861fdc6b8c5844ac210ed1d73e7307e72
Expand Down

0 comments on commit 94b9f5d

Please sign in to comment.