Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gelato web3 function deployment script for redstone oracles #208

Draft
wants to merge 6 commits into
base: LISK-1155-Set-up-RedStone-Push-Oracle-contracts
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 0 additions & 94 deletions hardhat.config.ts
Incede marked this conversation as resolved.
Outdated
Show resolved Hide resolved

This file was deleted.

18 changes: 0 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@
"version": "0.0.1",
"description": "Smart Oracle that pushes prices online every hour or when the price difference with the last price is greater or equal than 2%",
"scripts": {
"build": "yarn install && yarn compile && npx tsc",
matjazv marked this conversation as resolved.
Show resolved Hide resolved
"clean": "yarn hardhat clean && rm -rf node_modules && rm -rf dist",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should rm -rf node_modules && rm -rf dist still be present to be able to properly clean TS files?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could keep rm -rf node_modules but there is no dist. A folder .tmp and yarn.lock are also generated as part of the process, should we remove them as part of clean too ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should then remove node_modules and .tmp folders. Not sure if yarn.lock needs to be removed. Isn't it usually also commited and part of the repository?

"compile": "npx hardhat compile --force",
"deploy": "npx hardhat deploy",
"test": "npx hardhat test --network liskSepolia",
"format": "prettier --write '*/**/*.*{js,json,md,ts}'",
"format:check": "prettier --check '*/**/*.*{js,json,md,ts}'",
"tinker": "npx hardhat run scripts/tinker.ts",
"lint": "eslint --cache . && yarn lint:sol",
"lint:ts": "eslint -c .eslintrc.json --ext \"**/*.ts\" \"**/*.test.ts\"",
"lint:sol": "solhint 'contracts/**/*.sol'",
"postinstall": "yarn husky install",
"w3f:deploy": "npx w3f deploy web3-functions/index.ts",
"w3f:test": "npx w3f test web3-functions/index.ts --logs --chain-id=4202"
Expand All @@ -23,13 +16,8 @@
"@ethersproject/providers": "5.7.2",
"@gelatonetwork/automate-sdk": "^2.7.0-beta",
"@gelatonetwork/web3-functions-sdk": "^2.0.3",
"@nomicfoundation/hardhat-chai-matchers": "1.0.6",
"@nomicfoundation/hardhat-network-helpers": "^1.0.8",
"@nomiclabs/hardhat-ethers": "2.2.3",
"@openzeppelin/contracts-upgradeable": "4.8.3",
"@tsconfig/recommended": "1.0.2",
"@typechain/ethers-v5": "^10.2.1",
"@typechain/hardhat": "6.1.6",
"@types/chance": "1.1.3",
"@types/mocha": "^10.0.1",
"@types/node": "16.7.10",
Expand All @@ -42,16 +30,11 @@
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "4.0.0",
"ethers": "5.7.2",
"hardhat": "2.14.0",
"hardhat-contract-sizer": "2.8.0",
"hardhat-deploy": "0.11.29",
"husky": "8.0.3",
"lint-staged": "11.1.2",
"prettier": "2.8.8",
"prettier-plugin-solidity": "1.1.3",
"rxjs": "7.8.1",
"solhint": "3.4.1",
"solhint-plugin-prettier": "0.0.5",
"ts-node": "10.9.1",
"typechain": "^8.1.1",
"typescript": "5.0.4"
Expand All @@ -61,7 +44,6 @@
"*.*{ts,js}": "eslint -c .eslintrc.json"
},
"dependencies": {
"@openzeppelin/contracts": "^4.9.0",
"@redstone-finance/evm-connector": "^0.0.22"
}
}