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
eafc0aa7
Commit
eafc0aa7
authored
Nov 26, 2021
by
QM
Committed by
33cn
Dec 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename byc
parent
d79f5d8d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
dockerRelayerTestEvm.sh
plugin/dapp/bridgevmxgo/cmd/build/dockerRelayerTestEvm.sh
+12
-13
multisignPublicTest.sh
.../dapp/bridgevmxgo/cmd/build/public/multisignPublicTest.sh
+0
-0
offlinePublic.sh
plugin/dapp/bridgevmxgo/cmd/build/public/offlinePublic.sh
+1
-1
relayerPublic.sh
plugin/dapp/bridgevmxgo/cmd/build/public/relayerPublic.sh
+1
-1
No files found.
plugin/dapp/bridgevmxgo/cmd/build/dockerRelayerTestEvm.sh
View file @
eafc0aa7
...
...
@@ -332,7 +332,7 @@ function TestETH2Chain33Assets() {
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
function
TestETH2Chain33
Yc
c
()
{
function
TestETH2Chain33
By
c
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
=========== eth to chain33 在以太坊上锁定 ycc 资产,然后在 chain33 上 burn ===========
${
NOC
}
"
# 查询 ETH 这端 bridgeBank 地址原来是 0
...
...
@@ -455,7 +455,7 @@ function offline_set_offline_token_Eth() {
}
# shellcheck disable=SC2120
function
offline_set_offline_token_Eth
Yc
c
()
{
function
offline_set_offline_token_Eth
By
c
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
local
threshold
=
100
local
percents
=
40
...
...
@@ -602,24 +602,24 @@ function lockEth() {
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
function
lockEth
Yc
c
()
{
function
lockEth
By
c
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
===== ethereum 端 lock ERC20
YCC
======
${
NOC
}
"
echo
-e
"
${
GRE
}
===== ethereum 端 lock ERC20
Byc
======
${
NOC
}
"
# echo '2:#配置自动转离线钱包(ycc, 100, 40%)'
offline_set_offline_token_Eth
Yc
c
offline_set_offline_token_Eth
By
c
# 重启 nonce 会不统一 要重启一下
restart_ebrelayerA
lock_ethereum_
yc
c_multisign 70 70 0
lock_ethereum_
yc
c_multisign 30 60 40
lock_ethereum_
yc
c_multisign 60 72 88
lock_ethereum_
by
c_multisign 70 70 0
lock_ethereum_
by
c_multisign 30 60 40
lock_ethereum_
by
c_multisign 60 72 88
# multisignEthAddr 要有手续费
${
CLIA
}
ethereum transfer
-k
"
${
ethDeployKey
}
"
-m
10
-r
"
${
multisignEthAddr
}
"
sleep
10
# transfer
offline_transfer_multisign_Eth
Yc
c
offline_transfer_multisign_Eth
By
c
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
...
...
@@ -943,13 +943,13 @@ function AllRelayerMainTest() {
TestChain33ToEthAssets
TestETH2Chain33Assets
TestChain33ToEthZBCAssets
TestETH2Chain33
Yc
c
TestETH2Chain33
By
c
Chain33Cli
=
${
Para8901Cli
}
lockBty
lockChain33Ycc
lockEth
lockEth
Yc
c
lockEth
By
c
# 离线多签地址转入阈值设大
offline_set_offline_token_Bty 100000000000000 10
...
...
@@ -960,6 +960,7 @@ function AllRelayerMainTest() {
EvmxgoBoss4xCLI
=
"./evmxgoboss4x --rpc_laddr http://
${
docker_chain33_ip
}
:8901 --paraName user.p.para."
DeployEvmxgo
TestETH2EVMToChain33
Testethereum2EVMToChain33_byc
# 平行链共识节点增加测试币
${
MainCli
}
send coins transfer
-a
1000
-n
test
-t
"1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4"
-k
"
${
chain33ReceiverAddrKey
}
"
...
...
@@ -968,7 +969,5 @@ function AllRelayerMainTest() {
${
MainCli
}
send coins transfer
-a
1000
-n
test
-t
"1MCftFynyvG2F4ED5mdHYgziDxx6vDrScs"
-k
"
${
chain33ReceiverAddrKey
}
"
echo_addrs
Testethereum2EVMToChain33_byc
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
plugin/dapp/bridgevmxgo/cmd/build/public/multisignPublicTest.sh
deleted
100755 → 0
View file @
d79f5d8d
This diff is collapsed.
Click to expand it.
plugin/dapp/bridgevmxgo/cmd/build/public/offlinePublic.sh
View file @
eafc0aa7
...
...
@@ -278,7 +278,7 @@ function offline_transfer_multisign_Eth_test() {
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
}
function
offline_transfer_multisign_Eth
Yc
c
()
{
function
offline_transfer_multisign_Eth
By
c
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
# transfer
${
Boss4xCLI
}
ethereum offline multisign_transfer_prepare
-a
8
-r
"
${
ethBridgeBank
}
"
-c
"
${
multisignEthAddr
}
"
-d
"
${
ethTestAddr1
}
"
-t
"
${
ethereumBycERC20TokenAddr
}
"
...
...
plugin/dapp/bridgevmxgo/cmd/build/public/relayerPublic.sh
View file @
eafc0aa7
...
...
@@ -636,7 +636,7 @@ function lock_eth_multisign() {
}
# lock ethereum ycc erc20 判断是否转入多签地址金额是否正确
function
lock_ethereum_
yc
c_multisign
()
{
function
lock_ethereum_
by
c_multisign
()
{
local
lockAmount
=
$1
result
=
$(${
CLIA
}
ethereum lock
-m
"
${
lockAmount
}
"
-k
"
${
ethTestAddrKey1
}
"
-r
"
${
chain33ReceiverAddr
}
"
-t
"
${
ethereumBycERC20TokenAddr
}
"
)
cli_ret
"
${
result
}
"
"lock"
...
...
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