Skip to content

Commit

Permalink
Merge pull request #41 from Instadapp/dsa-v2
Browse files Browse the repository at this point in the history
Dsa v2
  • Loading branch information
thrilok209 authored Apr 20, 2021
2 parents 9d16f52 + 4bc544b commit eb6dabe
Show file tree
Hide file tree
Showing 88 changed files with 2,776 additions and 475 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ETH_NODE_URL=https://mainnet.infura.io/v3/{API_KEY}

PUBLIC_ADDRESS={PUBLIC_ADDRESS}
DSA_ID={DSA_ID}
PRIVATE_KEY={PRIVATE_KEY}
2 changes: 1 addition & 1 deletion .travis-ci-run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
echo "Running tests for dsa-connect"

echo "Starting ganache-cli"
npx ganache-cli --fork $ETH_NODE_URL --unlock $PUBLIC_ADDRESS &
npm run ganache:fork &

sleep 5

Expand Down
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ install:
- npm install
script:
- npm run build
- sh -c ./.travis-ci-run-test.sh
# Set the env variables required by ganache-cli or tests here before start .travis-cli-run-test.sh script
# Otherwise, These variables will be unavailable and the build will fail
- env PUBLIC_ADDRESS=$PUBLIC_ADDRESS ETH_NODE_URL=$ETH_NODE_URL sh -c ./.travis-ci-run-test.sh
env:
matrix:
- PUBLIC_ADDRESS=0xA35f3FEFEcb5160327d1B6A210b60D1e1d7968e3 DSA_ID=5
- PUBLIC_ADDRESS=0xA35f3FEFEcb5160327d1B6A210b60D1e1d7968e3
global:
secure: BO7NG5SDnxDLV/BcvSzn3vjdMGG99D5eHp/ZubaDTKgMABlUBngesND8AYEM0U5oK8EeJ7vhABcpgSZKsyf8PwviWZeU47SiJGriPuV7hdBMjq9Ev8dt7Vxl5JiAE52NsguNwvXK2eBdk0imxHmlmntxAA9hpHvDls/4wGyrk7/WUaCUabaLXGzX3S09S++LtM/T6aRmjOJdqNOVjdVM+8sqQUJFYjiSh+B8R5ro4IkOXE1XxfIxY8YfXrXQknajZP0zeMa7F+xV4S78c1MX1N7mgU0EoMyVB+6WYud8gtx3D41CAiKsA6IwtHJk2TBjplZ6gId2bKFKt4sTUbkPkC8RO3dqocQNhvEgQGKDWT/fvwF/jjBia7J2uxZGwEBwNrvlXB9ibVoI4cWWfgDRdT7EAhJPWgOYpbfnLxh350GgH0B52zmV2I+Le05/DeFvOoMO7PKDxYA16R+/PCkB6VdUJHlHI7k9r5rZbPsl8bZJrv4s5IBYlCzIxrBEZLPFJ03gHsuOkd4Hly/yHfnOSvmawm34l6O2DLdMv6UZwjLJUn6AhXGv94G0LwT9gjwjET7mYhUvIFJlfoG9FBTaCGAP7Zg3rxWv6zbD0iX+qvytybMnyuPBmUb5r/fhFmHCAIYApXp4tEujQ711RLNq8V/edzrB3eg2XTdTTZaqSC4=
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ This will send the transaction to blockchain in node implementation (or ask user

## Connectors

You can see the list of connectors [here](src/data/addresses.ts#L-12) & [here](https://github.com/InstaDApp/dsa-connectors-new/blob/main/README.md)
You can see the list of connectors [here](src/addresses) & [here](https://github.com/InstaDApp/dsa-connectors-new/blob/main/README.md)
225 changes: 165 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dsa-connect",
"version": "0.1.9",
"version": "0.2.0-beta.12",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand All @@ -22,7 +22,7 @@
"trypublish": "npm publish || true",
"postversion": "git push && git push --tags && npm publish && npm run open-releases",
"open-releases": "open \"$(node -e 'console.log(`${require(\"./package.json\").repository}/releases`)')\"",
"ganache:fork": "dotenv -- cross-var npx ganache-cli --fork %ETH_NODE_URL% --unlock %PUBLIC_ADDRESS%",
"ganache:fork": "dotenv -- cross-var npx ganache-cli --fork %ETH_NODE_URL% --unlock %PUBLIC_ADDRESS% --chainId 1 -e 1000000",
"hardhat:fork": "dotenv -- cross-var npx hardhat node --fork %ETH_NODE_URL%"
},
"bugs": "https://github.com/InstaDApp/dsa-connect/issues",
Expand All @@ -40,7 +40,6 @@
"defi",
"dapps"
],
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.10.1",
"@babel/core": "^7.9.0",
Expand Down
Loading

0 comments on commit eb6dabe

Please sign in to comment.