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
e9e43cb7
Commit
e9e43cb7
authored
Jul 03, 2020
by
madengji
Committed by
vipwzw
Jul 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync eth fix
parent
52109768
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
RopstenTest.sh
plugin/dapp/x2ethereum/cmd/build/RopstenTest.sh
+4
-4
allRelayerTest.sh
plugin/dapp/x2ethereum/cmd/build/allRelayerTest.sh
+4
-4
test-rpc.sh
plugin/dapp/x2ethereum/cmd/test/test-rpc.sh
+2
-2
No files found.
plugin/dapp/x2ethereum/cmd/build/RopstenTest.sh
View file @
e9e43cb7
...
...
@@ -268,7 +268,7 @@ function TestETH2Chain33Assets() {
result
=
$(${
Chain33Cli
}
x2ethereum balance
-s
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-t
eth | jq
".res"
| jq
".[]"
)
balance_ret
"
${
result
}
"
"0"
eth_block_wait
2
https://ropsten-rpc.linkpool.io/
eth_block_wait
$((
maturityDegree
+
3
))
https://ropsten-rpc.linkpool.io/
result
=
$(${
CLIA
}
relayer ethereum balance
-o
"
${
bridgeBankAddr
}
"
)
cli_ret
"
${
result
}
"
"balance"
".balance"
"0"
...
...
@@ -326,7 +326,7 @@ function TestETH2Chain33Erc20() {
result
=
$(${
Chain33Cli
}
x2ethereum balance
-s
"
${
chain33Validator1
}
"
-t
"
${
tokenSymbol
}
"
-a
"
${
tokenAddr
}
"
| jq
".res"
| jq
".[]"
)
balance_ret
"
${
result
}
"
"0"
eth_block_wait
2
https://ropsten-rpc.linkpool.io/
eth_block_wait
$((
maturityDegree
+
3
))
https://ropsten-rpc.linkpool.io/
result
=
$(${
CLIA
}
relayer ethereum balance
-o
"
${
ethReceiverAddr2
}
"
-t
"
${
tokenAddr
}
"
)
cli_ret
"
${
result
}
"
"balance"
".balance"
"100"
...
...
@@ -438,7 +438,7 @@ function TestETH2Chain33AssetsKill() {
result
=
$(${
Chain33Cli
}
x2ethereum balance
-s
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-t
eth | jq
".res"
| jq
".[]"
)
balance_ret
"
${
result
}
"
"0"
eth_block_wait
2
https://ropsten-rpc.linkpool.io/
eth_block_wait
$((
maturityDegree
+
3
))
https://ropsten-rpc.linkpool.io/
result
=
$(${
CLIA
}
relayer ethereum balance
-o
"
${
bridgeBankAddr
}
"
)
cli_ret
"
${
result
}
"
"balance"
".balance"
"0.133"
...
...
@@ -510,7 +510,7 @@ function TestETH2Chain33Erc20Kill() {
result
=
$(${
Chain33Cli
}
x2ethereum balance
-s
"
${
chain33Validator1
}
"
-t
"
${
tokenSymbol
}
"
-a
"
${
tokenAddr
}
"
| jq
".res"
| jq
".[]"
)
balance_ret
"
${
result
}
"
"0"
eth_block_wait
2
https://ropsten-rpc.linkpool.io/
eth_block_wait
$((
maturityDegree
+
3
))
https://ropsten-rpc.linkpool.io/
start_ebrelayerC
...
...
plugin/dapp/x2ethereum/cmd/build/allRelayerTest.sh
View file @
e9e43cb7
...
...
@@ -275,7 +275,7 @@ function TestETH2Chain33Assets() {
result
=
$(${
Chain33Cli
}
x2ethereum balance
-s
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-t
eth | jq
".res"
| jq
".[]"
)
balance_ret
"
${
result
}
"
"0"
eth_block_wait
2
eth_block_wait
$((
maturityDegree
+
3
))
result
=
$(${
CLIA
}
relayer ethereum balance
-o
"
${
bridgeBankAddr
}
"
)
cli_ret
"
${
result
}
"
"balance"
".balance"
"0"
...
...
@@ -332,7 +332,7 @@ function TestETH2Chain33Erc20() {
result
=
$(${
Chain33Cli
}
x2ethereum balance
-s
"
${
chain33Validator1
}
"
-t
"
${
tokenSymbol
}
"
-a
"
${
tokenAddr
}
"
| jq
".res"
| jq
".[]"
)
balance_ret
"
${
result
}
"
"0"
eth_block_wait
2
eth_block_wait
$((
maturityDegree
+
3
))
result
=
$(${
CLIA
}
relayer ethereum balance
-o
"
${
ethReceiverAddr2
}
"
-t
"
${
tokenAddr
}
"
)
cli_ret
"
${
result
}
"
"balance"
".balance"
"100"
...
...
@@ -441,7 +441,7 @@ function TestETH2Chain33AssetsKill() {
result
=
$(${
Chain33Cli
}
x2ethereum balance
-s
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-t
eth | jq
".res"
| jq
".[]"
)
balance_ret
"
${
result
}
"
"0"
eth_block_wait
2
eth_block_wait
$((
maturityDegree
+
3
))
result
=
$(${
CLIA
}
relayer ethereum balance
-o
"
${
bridgeBankAddr
}
"
)
cli_ret
"
${
result
}
"
"balance"
".balance"
"0.1"
...
...
@@ -513,7 +513,7 @@ function TestETH2Chain33Erc20Kill() {
result
=
$(${
Chain33Cli
}
x2ethereum balance
-s
"
${
chain33Validator1
}
"
-t
"
${
tokenSymbol
}
"
-a
"
${
tokenAddr2
}
"
| jq
".res"
| jq
".[]"
)
balance_ret
"
${
result
}
"
"0"
eth_block_wait
2
eth_block_wait
$((
maturityDegree
+
3
))
start_ebrelayerC
start_ebrelayerD
...
...
plugin/dapp/x2ethereum/cmd/test/test-rpc.sh
View file @
e9e43cb7
...
...
@@ -351,7 +351,7 @@ function TestETH2Chain33Assets() {
req
=
'{"method":"Chain33.Query","params":[{"execer":"x2ethereum","funcName":"GetRelayerBalance","payload":{"tokenSymbol":"eth","address":"'
${
sendAddress
}
'","tokenAddr":"0x0000000000000000000000000000000000000000"}}]}'
queryChain33X2ethBalance
"
${
req
}
"
"0"
eth_block_wait
2
eth_block_wait
$((
maturityDegree
+
3
))
req
=
'{"method":"Manager.GetBalance","params":[{"owner":"'
${
bridgeBankAddr
}
'","tokenAddr":""}]}'
queryRelayerBalance
"
$req
"
"0"
...
...
@@ -408,7 +408,7 @@ function TestETH2Chain33Erc20() {
req
=
'{"method":"Chain33.Query","params":[{"execer":"x2ethereum","funcName":"GetRelayerBalance","payload":{"tokenSymbol":"testc","address":"'
${
chain33Validator1
}
'","tokenAddr":"'
${
tokenAddr
}
'"}}]}'
queryChain33X2ethBalance
"
${
req
}
"
"0"
eth_block_wait
2
eth_block_wait
$((
maturityDegree
+
3
))
req
=
'{"method":"Manager.GetBalance","params":[{"owner":"'
${
ethReceiverAddr2
}
'","tokenAddr":"'
${
tokenAddr
}
'"}]}'
queryRelayerBalance
"
$req
"
"100"
...
...
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