Commit b25ca499 authored by QM's avatar QM Committed by vipwzw

update

parent 0919c849
...@@ -43,7 +43,7 @@ func addCreateContractsWithFileFlags(cmd *cobra.Command) { ...@@ -43,7 +43,7 @@ func addCreateContractsWithFileFlags(cmd *cobra.Command) {
_ = cmd.MarkFlagRequired("key") _ = cmd.MarkFlagRequired("key")
cmd.Flags().StringP("note", "n", "", "transaction note info (optional)") cmd.Flags().StringP("note", "n", "", "transaction note info (optional)")
cmd.Flags().Float64P("fee", "f", 0, "contract gas fee (optional)") cmd.Flags().Float64P("fee", "f", 0, "contract gas fee (optional)")
cmd.Flags().StringP("conf", "f", "", "config file") cmd.Flags().StringP("conf", "c", "", "config file")
_ = cmd.MarkFlagRequired("conf") _ = cmd.MarkFlagRequired("conf")
} }
......
...@@ -35,7 +35,8 @@ function OfflineDeploy() { ...@@ -35,7 +35,8 @@ function OfflineDeploy() {
echo -e "${GRE}=========== $FUNCNAME begin ===========${NOC}" echo -e "${GRE}=========== $FUNCNAME begin ===========${NOC}"
# 在 chain33 上部署合约 # 在 chain33 上部署合约
# shellcheck disable=SC2154 # shellcheck disable=SC2154
${Boss4xCLI} chain33 offline create -f 1 -k "${chain33DeployKey}" -n "deploy crossx to chain33" -r "${chain33DeployAddr}, [${chain33Validatora}, ${chain33Validatorb}, ${chain33Validatorc}, ${chain33Validatord}], [25, 25, 25, 25]" -m "${chain33MultisignA},${chain33MultisignB},${chain33MultisignC},${chain33MultisignD}" # ${Boss4xCLI} chain33 offline create -f 1 -k "${chain33DeployKey}" -n "deploy crossx to chain33" -r "${chain33DeployAddr}, [${chain33Validatora}, ${chain33Validatorb}, ${chain33Validatorc}, ${chain33Validatord}], [25, 25, 25, 25]" -m "${chain33MultisignA},${chain33MultisignB},${chain33MultisignC},${chain33MultisignD}"
${Boss4xCLI} chain33 offline create_file -f 1 -k "${chain33DeployKey}" -n "deploy crossx to chain33" -c "./deploy_chain33.toml"
result=$(${Boss4xCLI} chain33 offline send -f "deployCrossX2Chain33.txt") result=$(${Boss4xCLI} chain33 offline send -f "deployCrossX2Chain33.txt")
for i in {0..9}; do for i in {0..9}; do
...@@ -48,7 +49,8 @@ function OfflineDeploy() { ...@@ -48,7 +49,8 @@ function OfflineDeploy() {
# 在 Eth 上部署合约 # 在 Eth 上部署合约
# shellcheck disable=SC2154 # shellcheck disable=SC2154
${Boss4xCLI} ethereum offline create -s "ETH" -p "25,25,25,25" -o "${ethDeployAddr}" -v "${ethValidatorAddra},${ethValidatorAddrb},${ethValidatorAddrc},${ethValidatorAddrd}" -m "${ethMultisignA},${ethMultisignB},${ethMultisignC},${ethMultisignD}" # ${Boss4xCLI} ethereum offline create -s "ETH" -p "25,25,25,25" -o "${ethDeployAddr}" -v "${ethValidatorAddra},${ethValidatorAddrb},${ethValidatorAddrc},${ethValidatorAddrd}" -m "${ethMultisignA},${ethMultisignB},${ethMultisignC},${ethMultisignD}"
${Boss4xCLI} ethereum offline create_file -f "./deploy_ethereum.toml"
${Boss4xCLI} ethereum offline sign -k "${ethDeployKey}" ${Boss4xCLI} ethereum offline sign -k "${ethDeployKey}"
result=$(${Boss4xCLI} ethereum offline send -f "deploysigntxs.txt") result=$(${Boss4xCLI} ethereum offline send -f "deploysigntxs.txt")
for i in {0..7}; do for i in {0..7}; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment