Skip to content

Commit d0a1da7

Browse files
author
YukiTsuchida
committed
refactor: replace migration scripts with deploy scripts and update README for deployment instructions
1 parent f1d0eba commit d0a1da7

File tree

7 files changed

+4
-4
lines changed

7 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface IContractModule {
3232

3333
## How to deploy a contract module
3434

35-
[Here](./scripts/migrate/002_DeployApp.s.sol) is an example of deploying with the module `CrossSimpleModule` that implements the simple commit.
35+
[Here](./scripts/deploy/002_DeployApp.s.sol) is an example of deploying with the module `CrossSimpleModule` that implements the simple commit.
3636

3737
## For Developers
3838

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cross-solidity",
33
"version": "0.0.1",
44
"scripts": {
5-
"migrate": "bash scripts/migrate.sh",
5+
"deploy": "bash scripts/deploy.sh",
66
"compile": "npx -y -p @foundry-rs/forge@1.4.1 forge build",
77
"postinstall": "npx -y -p @foundry-rs/forge@1.4.1 forge build",
88
"clean": "rm -rf build"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33

44
# --- Config ---
55
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
6-
SCRIPTS_DIR="$PROJECT_ROOT/scripts/migrate"
6+
SCRIPTS_DIR="$PROJECT_ROOT/scripts/deploy"
77
BROADCAST_DIR="$PROJECT_ROOT/broadcast"
88
YUI_BASE="$PROJECT_ROOT/node_modules/@hyperledger-labs/yui-ibc-solidity/contracts"
99
LIB_COMMITMENT_SPEC="$YUI_BASE/core/24-host/IBCCommitment.sol:IBCCommitment"

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function chain() {
3636
pushd ./chains && docker compose up -d ${network} && popd
3737
# XXX Wait for the first block to be created
3838
sleep 3
39-
npm run migrate
39+
npm run deploy
4040
node ./scripts/confgen.js
4141
}
4242

0 commit comments

Comments
 (0)