-
Notifications
You must be signed in to change notification settings - Fork 11
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 #24 from dongrie/ganache-to-geth
Change ganache to geth
- Loading branch information
Showing
39 changed files
with
7,602 additions
and
18,457 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 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 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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,28 @@ | ||
include ../../docker.mk | ||
|
||
HARDHAT ?= npx hardhat | ||
SCRIPT_DIR ?= $(CURDIR)/scripts | ||
|
||
NETWORK_ID0 ?= 13370 | ||
NETWORK_ID1 ?= 13380 | ||
|
||
export NETWORK_ID0 | ||
export NETWORK_ID1 | ||
|
||
.PHONY: docker-images | ||
docker-images: | ||
make up-scaffold | ||
make deploy-contract | ||
make save-contract-address | ||
make docker-commit | ||
make down-scaffold | ||
|
||
.PHONY: deploy-contract | ||
deploy-contract: | ||
make wait-for-launch ATTEMPT=30 CONTAINER=ethereum-ganache0-scaffold | ||
cd contract && npm install && npm run migrate | ||
cd contracts && npm install && $(HARDHAT) run ./scripts/deploy.js --network ibc0 && $(HARDHAT) run ./scripts/deploy.js --network ibc1 | ||
|
||
.PHONY: up-scaffold | ||
up-scaffold: | ||
$(DOCKER_COMPOSE) up --build -d | ||
$(DOCKER_COMPOSE) up --build -d geth0-scaffold geth1-scaffold | ||
|
||
.PHONY: down-scaffold | ||
down-scaffold: | ||
$(DOCKER_COMPOSE) down --volumes --remove-orphans | ||
|
||
.PHONY: save-contract-address | ||
save-contract-address: | ||
$(SCRIPT_DIR)/docker/saveContractAddress.sh $(NETWORK_ID0) | ||
$(SCRIPT_DIR)/docker/saveContractAddress.sh $(NETWORK_ID1) | ||
|
||
.PHONY: docker-commit | ||
docker-commit: | ||
$(SCRIPT_DIR)/docker/commitImage.sh $(DOCKER_REPO) $(DOCKER_TAG) ethereum-ganache0 ethereum-ganache0-scaffold $(NETWORK_ID0) | ||
$(SCRIPT_DIR)/docker/commitImage.sh $(DOCKER_REPO) $(DOCKER_TAG) ethereum-ganache1 ethereum-ganache1-scaffold $(NETWORK_ID1) | ||
$(SCRIPT_DIR)/docker/commitImage.sh $(DOCKER_REPO) $(DOCKER_TAG) ethereum-geth0 ethereum-geth0-scaffold | ||
$(SCRIPT_DIR)/docker/commitImage.sh $(DOCKER_REPO) $(DOCKER_TAG) ethereum-geth1 ethereum-geth1-scaffold |
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
tests/chains/ethereum/contract/migrations/1_deploy_contracts.js
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
tests/chains/ethereum/contract/migrations/2_initialize_contract.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.