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
cd5cb0e4
Commit
cd5cb0e4
authored
Dec 06, 2021
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
aa329dd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
dockerRelayerBsc.sh
plugin/dapp/bridgevmxgo/cmd/build/dockerRelayerBsc.sh
+13
-0
No files found.
plugin/dapp/bridgevmxgo/cmd/build/dockerRelayerBsc.sh
View file @
cd5cb0e4
...
@@ -883,6 +883,7 @@ function chain33_offline_send_evm() {
...
@@ -883,6 +883,7 @@ function chain33_offline_send_evm() {
}
}
function
DeployEvmxgo
()
{
function
DeployEvmxgo
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
# 在 chain33 上部署合约
# 在 chain33 上部署合约
# shellcheck disable=SC2154
# shellcheck disable=SC2154
${
EvmxgoBoss4xCLI
}
chain33 offline create
-f
1
-k
"
${
chain33DeployKey
}
"
-n
"deploy crossx to chain33"
-r
"
${
chain33DeployAddr
}
, [
${
chain33Validatora
}
,
${
chain33Validatorb
}
,
${
chain33Validatorc
}
,
${
chain33Validatord
}
], [96, 1, 1, 1]"
--chainID
"
${
chain33ID
}
"
${
EvmxgoBoss4xCLI
}
chain33 offline create
-f
1
-k
"
${
chain33DeployKey
}
"
-n
"deploy crossx to chain33"
-r
"
${
chain33DeployAddr
}
, [
${
chain33Validatora
}
,
${
chain33Validatorb
}
,
${
chain33Validatorc
}
,
${
chain33Validatord
}
], [96, 1, 1, 1]"
--chainID
"
${
chain33ID
}
"
...
@@ -910,6 +911,8 @@ function DeployEvmxgo() {
...
@@ -910,6 +911,8 @@ function DeployEvmxgo() {
# 重启,需要重新启动relayer,更新nonce
# 重启,需要重新启动relayer,更新nonce
restart_ebrelayerA
restart_ebrelayerA
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
}
# $1 symbol $2 bridgeTokenAddr
# $1 symbol $2 bridgeTokenAddr
...
@@ -941,6 +944,7 @@ function configbridgevmxgoAddr() {
...
@@ -941,6 +944,7 @@ function configbridgevmxgoAddr() {
}
}
function
TestETH2EVMToChain33
()
{
function
TestETH2EVMToChain33
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
# 查询 ETH 这端 bridgeBank 地址原来是 0
# 查询 ETH 这端 bridgeBank 地址原来是 0
result
=
$(${
CLIA
}
ethereum balance
-o
"
${
ethBridgeBank
}
"
)
result
=
$(${
CLIA
}
ethereum balance
-o
"
${
ethBridgeBank
}
"
)
...
@@ -971,9 +975,12 @@ function TestETH2EVMToChain33() {
...
@@ -971,9 +975,12 @@ function TestETH2EVMToChain33() {
result
=
$(${
Chain33Cli
}
evm query
-a
"
${
chain33EthBridgeTokenAddr
}
"
-c
"
${
chain33DeployAddr
}
"
-b
"balanceOf(
${
chain33ReceiverAddr
}
)"
)
result
=
$(${
Chain33Cli
}
evm query
-a
"
${
chain33EthBridgeTokenAddr
}
"
-c
"
${
chain33DeployAddr
}
"
-b
"balanceOf(
${
chain33ReceiverAddr
}
)"
)
result
=
$(${
Chain33Cli
}
evm query
-a
"
${
chain33EthBridgeTokenAddr
}
"
-c
"
${
chain33DeployAddr
}
"
-b
"balanceOf(
${
XgoChain33BridgeBank
}
)"
)
result
=
$(${
Chain33Cli
}
evm query
-a
"
${
chain33EthBridgeTokenAddr
}
"
-c
"
${
chain33DeployAddr
}
"
-b
"balanceOf(
${
XgoChain33BridgeBank
}
)"
)
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
}
function
Testethereum2EVMToChain33_byc
()
{
function
Testethereum2EVMToChain33_byc
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
# 查询 ETH 这端 bridgeBank 地址原来是
# 查询 ETH 这端 bridgeBank 地址原来是
result
=
$(${
CLIA
}
ethereum balance
-o
"
${
ethBridgeBank
}
"
-t
"
${
ethereumBycERC20TokenAddr
}
"
)
result
=
$(${
CLIA
}
ethereum balance
-o
"
${
ethBridgeBank
}
"
-t
"
${
ethereumBycERC20TokenAddr
}
"
)
# cli_ret "${result}" "balance" ".balance" "0"
# cli_ret "${result}" "balance" ".balance" "0"
...
@@ -1010,9 +1017,13 @@ function Testethereum2EVMToChain33_byc() {
...
@@ -1010,9 +1017,13 @@ function Testethereum2EVMToChain33_byc() {
result
=
$(${
Chain33Cli
}
evm query
-a
"
${
chain33BycBridgeTokenAddr
}
"
-c
"
${
chain33DeployAddr
}
"
-b
"balanceOf(
${
XgoChain33BridgeBank
}
)"
)
result
=
$(${
Chain33Cli
}
evm query
-a
"
${
chain33BycBridgeTokenAddr
}
"
-c
"
${
chain33DeployAddr
}
"
-b
"balanceOf(
${
XgoChain33BridgeBank
}
)"
)
# is_equal "${result}" "500000000"
# is_equal "${result}" "500000000"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
}
function
Testethereum2EVMToChain33_usdt
()
{
function
Testethereum2EVMToChain33_usdt
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
# 查询 ETH 这端 bridgeBank 地址原来是
# 查询 ETH 这端 bridgeBank 地址原来是
result
=
$(${
CLIA
}
ethereum balance
-o
"
${
ethBridgeBank
}
"
-t
"
${
ethereumUSDTERC20TokenAddr
}
"
)
result
=
$(${
CLIA
}
ethereum balance
-o
"
${
ethBridgeBank
}
"
-t
"
${
ethereumUSDTERC20TokenAddr
}
"
)
# cli_ret "${result}" "balance" ".balance" "0"
# cli_ret "${result}" "balance" ".balance" "0"
...
@@ -1049,6 +1060,8 @@ function Testethereum2EVMToChain33_usdt() {
...
@@ -1049,6 +1060,8 @@ function Testethereum2EVMToChain33_usdt() {
result
=
$(${
Chain33Cli
}
evm query
-a
"
${
chain33USDTBridgeTokenAddr
}
"
-c
"
${
chain33DeployAddr
}
"
-b
"balanceOf(
${
XgoChain33BridgeBank
}
)"
)
result
=
$(${
Chain33Cli
}
evm query
-a
"
${
chain33USDTBridgeTokenAddr
}
"
-c
"
${
chain33DeployAddr
}
"
-b
"balanceOf(
${
XgoChain33BridgeBank
}
)"
)
# is_equal "${result}" "500000000"
# is_equal "${result}" "500000000"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
}
function
AllRelayerMainTest
()
{
function
AllRelayerMainTest
()
{
...
...
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