diff --git a/.gitignore b/.gitignore index ecb7271..1fca776 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /migrations/dev /migrations/joyid /migrations/omnilock +/migrations/dao-action-verifier # Contract /target diff --git a/bin/deploy-to-dev-chain.sh b/bin/deploy-to-dev-chain.sh index 99b7dcd..7931a0b 100755 --- a/bin/deploy-to-dev-chain.sh +++ b/bin/deploy-to-dev-chain.sh @@ -35,7 +35,12 @@ function deploy() { ckb-cli deploy apply-txs --info-file "$INFO_FILE" --migration-dir "$MIGRATION_DIR" } -deploy joyid +deploy dao-action-verifier +bin/generate-blocks.sh 4 +sleep 1 + +# try twice in case the indexer has not updated yet +deploy joyid || deploy joyid bin/generate-blocks.sh 4 sleep 1 diff --git a/migrations/templates/dao-action-verifier.toml b/migrations/templates/dao-action-verifier.toml new file mode 100644 index 0000000..93c5d97 --- /dev/null +++ b/migrations/templates/dao-action-verifier.toml @@ -0,0 +1,9 @@ +[[cells]] +name = "dao-action-verifier" +enable_type_id = true +location = { file = "build/release/dao-action-verifier" } + +[lock] +code_hash = "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8" +args = "0xe463d7c4cb28457b3a2f735d1d92a971b0f5a751" +hash_type = "type"