This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #268 from keep-network/refactor-keep-bridge
Refactor IKeep/KeepBridge Here we move functions implemented in a KeepBridge contract responsible for communication with keep to be directly executed by a deposit. We pull interfaces from keep-tecdsa to communicate with the contracts deployed as part of keep system. There still remained IKeep interface which holds functions which are not yet implemented on the keep side. As it's done this interface should be replaced by IECDSAKeep calls.
- Loading branch information
Showing
33 changed files
with
698 additions
and
767 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,54 +18,72 @@ jobs: | |
lint_js: | ||
executor: docker-node | ||
steps: | ||
- checkout | ||
- run: | ||
name: Lint JS | ||
command: | | ||
cd implementation/ | ||
npm install | ||
npm run js:lint | ||
- checkout | ||
- run: | ||
name: Authenticate GitHub Package Registry | ||
working_directory: ~/project/implementation | ||
command: echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc | ||
- run: | ||
name: Lint JS | ||
working_directory: ~/project/implementation | ||
command: | | ||
npm install | ||
npm run js:lint | ||
lint_solidity: | ||
executor: docker-node | ||
steps: | ||
- checkout | ||
- run: | ||
name: Lint Solidity | ||
working_directory: ~/project/implementation | ||
command: | | ||
set -ex | ||
npm install | ||
npm run sol:lint | ||
- checkout | ||
- run: | ||
name: Authenticate GitHub Package Registry | ||
working_directory: ~/project/implementation | ||
command: echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc | ||
- run: | ||
name: Lint Solidity | ||
working_directory: ~/project/implementation | ||
command: | | ||
set -ex | ||
npm install | ||
npm run sol:lint | ||
unit_test_contracts: | ||
executor: docker-node | ||
steps: | ||
- checkout | ||
- run: sudo npm install -g [email protected] | ||
- run: | ||
name: Running testrpc | ||
command: ganache-cli | ||
background: true | ||
- run: | ||
name: Run NPM tests | ||
working_directory: ~/project/implementation/contracts | ||
command: npm install && npm run test | ||
- checkout | ||
- run: sudo npm install -g [email protected] | ||
- run: | ||
name: Running testrpc | ||
working_directory: ~/project/implementation | ||
command: ganache-cli | ||
background: true | ||
- run: | ||
name: Authenticate GitHub Package Registry | ||
working_directory: ~/project/implementation | ||
command: echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc | ||
- run: | ||
name: Run NPM tests | ||
working_directory: ~/project/implementation | ||
command: npm install && npm run test | ||
integration_test_contracts: | ||
executor: docker-node | ||
steps: | ||
- checkout | ||
- run: sudo npm install -g [email protected] | ||
- run: | ||
name: Running testrpc | ||
command: ganache-cli | ||
background: true | ||
- run: | ||
name: Deploy Uniswap | ||
working_directory: ~/project/implementation/scripts | ||
command: ./deploy_uniswap.sh | ||
- run: | ||
name: Run NPM tests | ||
working_directory: ~/project/implementation/contracts | ||
command: npm install && npm run integration-test | ||
- checkout | ||
- run: sudo npm install -g [email protected] | ||
- run: | ||
name: Running testrpc | ||
working_directory: ~/project/implementation | ||
command: ganache-cli | ||
background: true | ||
- run: | ||
name: Authenticate GitHub Package Registry | ||
working_directory: ~/project/implementation | ||
command: echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc | ||
- run: | ||
name: Deploy Uniswap | ||
working_directory: ~/project/implementation/scripts | ||
command: ./deploy_uniswap.sh | ||
- run: | ||
name: Run NPM tests | ||
working_directory: ~/project/implementation | ||
command: npm install && npm run integration-test | ||
generate_pngs: | ||
docker: | ||
- image: keepnetwork/texlive:15 | ||
|
@@ -208,21 +226,21 @@ jobs: | |
image: initcontainer-provision-tbtc-maintainers | ||
tag: latest | ||
publish_contract_data: | ||
executor: gcp-cli/default | ||
steps: | ||
- attach_workspace: | ||
at: /tmp/tbtc | ||
- gcp-cli/install | ||
- gcp-cli/initialize: | ||
google-project-id: GOOGLE_PROJECT_ID | ||
google-compute-zone: GOOGLE_COMPUTE_ZONE_A | ||
# This param doesn't actually set anything, leaving here as a reminder to check when they fix it. | ||
gcloud-service-key: GCLOUD_SERVICE_KEY | ||
- run: | ||
name: Upload contract data | ||
command: | | ||
cd /tmp/tbtc/contracts | ||
gsutil -m cp * gs://keep-dev-contract-data/tbtc | ||
executor: gcp-cli/default | ||
steps: | ||
- attach_workspace: | ||
at: /tmp/tbtc | ||
- gcp-cli/install | ||
- gcp-cli/initialize: | ||
google-project-id: GOOGLE_PROJECT_ID | ||
google-compute-zone: GOOGLE_COMPUTE_ZONE_A | ||
# This param doesn't actually set anything, leaving here as a reminder to check when they fix it. | ||
gcloud-service-key: GCLOUD_SERVICE_KEY | ||
- run: | ||
name: Upload contract data | ||
command: | | ||
cd /tmp/tbtc/contracts | ||
gsutil -m cp * gs://keep-dev-contract-data/tbtc | ||
workflows: | ||
version: 2 | ||
|
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 @@ | ||
@keep-network:registry=https://npm.pkg.github.com/keep-network |
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
Oops, something went wrong.