Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
e640b177
Commit
e640b177
authored
Dec 20, 2021
by
QM
Committed by
vipwzw
Dec 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
5812e708
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
deploy_chain33.md
...pp/cross2eth/boss4x/chain33/offline/doc/deploy_chain33.md
+17
-2
mainPubilcRelayerTest.sh
.../dapp/cross2eth/cmd/build/public/mainPubilcRelayerTest.sh
+5
-4
No files found.
plugin/dapp/cross2eth/boss4x/chain33/offline/doc/deploy_chain33.md
View file @
e640b177
...
@@ -6,9 +6,9 @@
...
@@ -6,9 +6,9 @@
*
在线发送签名后文件
`./boss4x chain33 offline send -f XXX.txt`
*
在线发送签名后文件
`./boss4x chain33 offline send -f XXX.txt`
拼凑 boss4x 命令
拼凑 boss4x 命令
```
shell
./boss4x
--rpc_laddr
http://
${
chain33_ip
}
:8901
--rpc_laddr_ethereum
--paraName
user.p.para.
--chainID
0
./boss4x
--rpc_laddr
http://
${
chain33_ip
}
:8901
--rpc_laddr_ethereum
--paraName
user.p.para.
--chainID
0
```
--chainID
int32 chain
id
, default to 0
--chainID
int32 chain
id
, default to 0
--expire
string transaction expire
time
(
optional
)
(
default
"120m"
)
--expire
string transaction expire
time
(
optional
)
(
default
"120m"
)
--paraName
string para chain name,Eg:user.p.fzm.
--paraName
string para chain name,Eg:user.p.fzm.
...
@@ -53,6 +53,21 @@
...
@@ -53,6 +53,21 @@
```
```
***
***
#### 文件部署
把要部署需要的数据写入 chain33_ethereum.toml 配置文件
```
toml
# 验证人地址,至少配置3个以上,即大于等于3个
validatorsAddr
=[
"1N6HstkyLFS8QCeVfdvYxx1xoryXoJtvvZ"
,
"155ooMPBTF8QQsGAknkK7ei5D78rwDEFe6"
,
"13zBdQwuyDh7cKN79oT2odkxYuDbgQiXFv"
,
"113ZzVamKfAtGt9dq45fX1mNsEoDiN95HG"
]
# 验证人权重
initPowers
=[
25
,
25
,
25
,
25
]
# 离线多签地址
multisignAddrs
=[
"168Sn1DXnLrZHTcAM9stD6t2P49fNuJfJ9"
,
"13KTf57aCkVVJYNJBXBBveiA5V811SrLcT"
,
"1JQwQWsShTHC4zxHzbUfYQK4kRBriUQdEe"
,
"1NHuKqoKe3hyv52PF8XBAyaTmJWAqA2Jbb"
]
```
命令:
```
shell
./boss4x chain33 offline create_file
-f
1
-k
"
${
chain33DeployKey
}
"
-n
"deploy crossx to chain33"
-c
"./deploy_chain33.toml"
```
#### 离线部署 ERC20 跨链合约
#### 离线部署 ERC20 跨链合约
*
离线创建交易
*
离线创建交易
```
```
...
...
plugin/dapp/cross2eth/cmd/build/public/mainPubilcRelayerTest.sh
View file @
e640b177
...
@@ -766,6 +766,11 @@ function up_relayer_toml() {
...
@@ -766,6 +766,11 @@ function up_relayer_toml() {
function
StartDockerRelayerDeploy
()
{
function
StartDockerRelayerDeploy
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
# 修改 relayer.toml
up_relayer_toml
# 启动 ebrelayer
start_docker_ebrelayerA
docker
cp
"./deploy_chain33.toml"
"
${
dockerNamePrefix
}
_ebrelayera_1"
:/root/deploy_chain33.toml
docker
cp
"./deploy_chain33.toml"
"
${
dockerNamePrefix
}
_ebrelayera_1"
:/root/deploy_chain33.toml
docker
cp
"./deploy_ethereum.toml"
"
${
dockerNamePrefix
}
_ebrelayera_1"
:/root/deploy_ethereum.toml
docker
cp
"./deploy_ethereum.toml"
"
${
dockerNamePrefix
}
_ebrelayera_1"
:/root/deploy_ethereum.toml
...
@@ -778,10 +783,6 @@ function StartDockerRelayerDeploy() {
...
@@ -778,10 +783,6 @@ function StartDockerRelayerDeploy() {
transferChain33MultisignFee
transferChain33MultisignFee
Chain33Cli
=
${
Para8901Cli
}
Chain33Cli
=
${
Para8901Cli
}
# 修改 relayer.toml
up_relayer_toml
# 启动 ebrelayer
start_docker_ebrelayerA
InitRelayerA
InitRelayerA
# 设置 token 地址
# 设置 token 地址
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment