-
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.
- Loading branch information
Showing
50 changed files
with
1,828 additions
and
2,342 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
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 was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 +1,9 @@ | ||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs | ||
spec: "@yarnpkg/plugin-interactive-tools" | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.0.cjs | ||
yarnPath: .yarn/releases/yarn-3.2.2.cjs | ||
|
||
checksumBehavior: update |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { DeployFunction } from "hardhat-deploy/types"; | ||
import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||
|
||
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { | ||
const { deployments, getNamedAccounts }: any = hre; | ||
const { deploy } = deployments; | ||
const { deployer } = await getNamedAccounts(); | ||
|
||
await deploy("TokenConverterOperator", { | ||
from: deployer, | ||
log: true, | ||
autoMine: true, // speed up deployment on local network (ganache, hardhat), no effect on live networks | ||
skipIfAlreadyDeployed: true, | ||
}); | ||
}; | ||
|
||
func.tags = ["TokenConverterOperator"]; | ||
|
||
export default func; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": [ | ||
"./typechain", | ||
"docgen-templates", | ||
"commitlint.config.js" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -7,6 +7,3 @@ dist | |
typechain | ||
contracts/third-party | ||
*.hbs | ||
|
||
src/config/abis/generated.ts | ||
subgraph-client/.graphqlclient |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"name": "@venusprotocol/keeper-bot-contracts", | ||
"version": "1.1.0", | ||
"description": "Smart contracts to support keeper bot tasks", | ||
"scripts": { | ||
"test": "hardhat test", | ||
"test:integration": "hardhat test tests/integration/index.ts", | ||
"test:fork": "hardhat test tests/hardhat/Fork/*", | ||
"hardhat:compile": "hardhat compile", | ||
"hardhat:coverage": "hardhat coverage", | ||
"lint": "yarn lint:sol && yarn lint:ts && yarn prettier:check", | ||
"lint:sol": "solhint \"contracts/**/*.sol\"", | ||
"lint:sol:fix": "prettier --write \"contracts/**/*.sol\"", | ||
"lint:ts": "eslint --ext .js,.ts .", | ||
"lint:ts:fix": "eslint --fix --ext .js,.ts .", | ||
"prettier": "prettier --write \"**/*.{js,json,md,sol,ts,yaml,yml}\"", | ||
"prettier:check": "prettier --check \"**/*.{js,json,md,sol,ts,yaml,yml}\"", | ||
"build": "rm -rf dist && hardhat compile && tsc --declaration", | ||
"docgen": "hardhat docgen" | ||
}, | ||
"keywords": [], | ||
"author": "Venus", | ||
"license": "ISC", | ||
"engines": { | ||
"node": ">=18.0.0" | ||
}, | ||
"dependencies": { | ||
"@openzeppelin/contracts-upgradeable": "4.9.3", | ||
"@venusprotocol/governance-contracts": "^1.4.0", | ||
"@venusprotocol/isolated-pools": "^2.3.0", | ||
"@venusprotocol/protocol-reserve": "^1.4.0", | ||
"@venusprotocol/venus-protocol": "^7.1.0" | ||
}, | ||
"devDependencies": { | ||
"@ethersproject/abi": "^5.7.0", | ||
"@ethersproject/providers": "^5.7.2", | ||
"@nomicfoundation/hardhat-chai-matchers": "^1.0.3", | ||
"@nomicfoundation/hardhat-network-helpers": "^1.0.4", | ||
"@nomicfoundation/hardhat-toolbox": "^2.0.0", | ||
"@nomiclabs/hardhat-ethers": "^2.0.0", | ||
"@nomiclabs/hardhat-etherscan": "^3.0.3", | ||
"@typechain/ethers-v5": "^10.1.0", | ||
"@typechain/hardhat": "^6.1.2", | ||
"@types/chai": "^4.3.11", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^20.10.0", | ||
"@typescript-eslint/eslint-plugin": "^6.13.1", | ||
"@typescript-eslint/parser": "^6.13.1", | ||
"@venusprotocol/oracle": "^1.7.3", | ||
"@venusprotocol/solidity-utilities": "^1.1.0", | ||
"@wagmi/cli": "^2.0.4", | ||
"chai": "^4.3.10", | ||
"eslint": "^7.32.0", | ||
"ethers": "^5.7.0", | ||
"hardhat": "^2.19.1", | ||
"hardhat-deploy": "^0.11.44", | ||
"hardhat-deploy-ethers": "^0.3.0-beta.13", | ||
"hardhat-gas-reporter": "^1.0.9", | ||
"husky": "^8.0.3", | ||
"prettier": "2.7.1", | ||
"prettier-plugin-solidity": "1.1.3", | ||
"semantic-release": "^22.0.8", | ||
"solhint": "^4.0.0", | ||
"solidity-coverage": "^0.8.5", | ||
"solidity-docgen": "^0.6.0-beta.36", | ||
"typechain": "^8.3.2", | ||
"typescript": "^5.3.2" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"provenance": true | ||
}, | ||
"_moduleAliases": { | ||
"@nomiclabs/hardhat-ethers": "node_modules/hardhat-deploy-ethers" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "../../tsconfig", | ||
"compilerOptions": { | ||
"paths": { | ||
"@nomiclabs/hardhat-ethers": ["./node_modules/hardhat-deploy-ethers"] | ||
} | ||
}, | ||
"include": ["./typechain"], | ||
"files": ["./hardhat.config.ts"] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dist | ||
|
||
src/config/abis/generated.ts | ||
subgraph-client/.graphqlclient |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dist | ||
|
||
src/config/abis/generated.ts | ||
subgraph-client/.graphqlclient |
Oops, something went wrong.