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
1eae5e9f
Commit
1eae5e9f
authored
Dec 24, 2021
by
hezhengjun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'withdraw_opt_1217' of github.com:zhengjunhe/plugin into withdraw_opt_1217
parents
1394bb36
0e4dfe1a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
13 deletions
+16
-13
offline.go
plugin/dapp/cross2eth/boss4x/ethereum/offline/offline.go
+1
-1
dockerRelayerTest.sh
plugin/dapp/cross2eth/cmd/build/dockerRelayerTest.sh
+0
-0
mainPubilcRelayerTest.sh
.../dapp/cross2eth/cmd/build/public/mainPubilcRelayerTest.sh
+0
-0
relayerPublic.sh
plugin/dapp/cross2eth/cmd/build/public/relayerPublic.sh
+9
-8
config.pb.go
plugin/dapp/cross2eth/ebrelayer/types/config.pb.go
+3
-2
relayer.pb.go
plugin/dapp/cross2eth/ebrelayer/types/relayer.pb.go
+3
-2
No files found.
plugin/dapp/cross2eth/boss4x/ethereum/offline/offline.go
View file @
1eae5e9f
...
@@ -102,7 +102,7 @@ func CreateTxInfoAndWrite(abiData []byte, deployAddr, contract, name, url string
...
@@ -102,7 +102,7 @@ func CreateTxInfoAndWrite(abiData []byte, deployAddr, contract, name, url string
if
chainEthId
==
1337
{
if
chainEthId
==
1337
{
gasLimit
=
uint64
(
500
*
10000
)
gasLimit
=
uint64
(
500
*
10000
)
}
else
{
}
else
{
gasLimit
,
err
:
=
client
.
EstimateGas
(
context
.
Background
(),
msg
)
gasLimit
,
err
=
client
.
EstimateGas
(
context
.
Background
(),
msg
)
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Println
(
"EstimateGas Err:"
,
err
)
fmt
.
Println
(
"EstimateGas Err:"
,
err
)
return
return
...
...
plugin/dapp/cross2eth/cmd/build/dockerRelayerTest.sh
View file @
1eae5e9f
This diff is collapsed.
Click to expand it.
plugin/dapp/cross2eth/cmd/build/public/mainPubilcRelayerTest.sh
View file @
1eae5e9f
plugin/dapp/cross2eth/cmd/build/public/relayerPublic.sh
View file @
1eae5e9f
...
@@ -66,7 +66,8 @@ function kill_ebrelayerD() {
...
@@ -66,7 +66,8 @@ function kill_ebrelayerD() {
function
start_ebrelayerC
()
{
function
start_ebrelayerC
()
{
nohup
./relayer_C/ebrelayer ./relayer_C/relayer.toml
>
./relayer_C/cross2eth_C.log 2>&1 &
nohup
./relayer_C/ebrelayer ./relayer_C/relayer.toml
>
./relayer_C/cross2eth_C.log 2>&1 &
sleep
2
sleep
2
${
CLIC
}
unlock
-p
${
validatorPwd
}
# shellcheck disable=SC2154
${
CLIC
}
unlock
-p
"
${
validatorPwd
}
"
${
Chain33Cli
}
send coins transfer
-a
1
-n
note
-t
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-k
14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
${
Chain33Cli
}
send coins transfer
-a
1
-n
note
-t
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-k
14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
${
Chain33Cli
}
send coins transfer
-a
1
-n
note
-t
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-k
14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
${
Chain33Cli
}
send coins transfer
-a
1
-n
note
-t
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-k
14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
sleep
${
maturityDegree
}
sleep
${
maturityDegree
}
...
@@ -76,7 +77,7 @@ function start_ebrelayerC() {
...
@@ -76,7 +77,7 @@ function start_ebrelayerC() {
function
start_ebrelayerD
()
{
function
start_ebrelayerD
()
{
nohup
./relayer_D/ebrelayer ./relayer_D/relayer.toml
>
./relayer_D/cross2eth_D.log 2>&1 &
nohup
./relayer_D/ebrelayer ./relayer_D/relayer.toml
>
./relayer_D/cross2eth_D.log 2>&1 &
sleep
2
sleep
2
${
CLID
}
unlock
-p
${
validatorPwd
}
${
CLID
}
unlock
-p
"
${
validatorPwd
}
"
${
Chain33Cli
}
send coins transfer
-a
1
-n
note
-t
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-k
14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
${
Chain33Cli
}
send coins transfer
-a
1
-n
note
-t
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-k
14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
${
Chain33Cli
}
send coins transfer
-a
1
-n
note
-t
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-k
14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
${
Chain33Cli
}
send coins transfer
-a
1
-n
note
-t
12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv
-k
14KEKbYtKKQm4wMthSK9J4La4nAiidGozt
sleep
${
maturityDegree
}
sleep
${
maturityDegree
}
...
@@ -86,10 +87,10 @@ function start_ebrelayerD() {
...
@@ -86,10 +87,10 @@ function start_ebrelayerD() {
function
InitAndDeploy
()
{
function
InitAndDeploy
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
result
=
$(${
CLIA
}
set_pwd
-p
${
validatorPwd
}
)
result
=
$(${
CLIA
}
set_pwd
-p
"
${
validatorPwd
}
"
)
cli_ret
"
${
result
}
"
"set_pwd"
cli_ret
"
${
result
}
"
"set_pwd"
result
=
$(${
CLIA
}
unlock
-p
${
validatorPwd
}
)
result
=
$(${
CLIA
}
unlock
-p
"
${
validatorPwd
}
"
)
cli_ret
"
${
result
}
"
"unlock"
cli_ret
"
${
result
}
"
"unlock"
# shellcheck disable=SC2154
# shellcheck disable=SC2154
...
@@ -287,10 +288,10 @@ function updata_toml_start_BCD() {
...
@@ -287,10 +288,10 @@ function updata_toml_start_BCD() {
sleep
2
sleep
2
CLI
=
"./ebcli_
$name
"
CLI
=
"./ebcli_
$name
"
result
=
$(${
CLI
}
set_pwd
-p
${
validatorPwd
}
)
result
=
$(${
CLI
}
set_pwd
-p
"
${
validatorPwd
}
"
)
cli_ret
"
${
result
}
"
"set_pwd"
cli_ret
"
${
result
}
"
"set_pwd"
result
=
$(${
CLI
}
unlock
-p
${
validatorPwd
}
)
result
=
$(${
CLI
}
unlock
-p
"
${
validatorPwd
}
"
)
cli_ret
"
${
result
}
"
"unlock"
cli_ret
"
${
result
}
"
"unlock"
eval
chain33ValidatorKey
=
\$
chain33ValidatorKey
${
name
}
eval
chain33ValidatorKey
=
\$
chain33ValidatorKey
${
name
}
...
@@ -358,7 +359,7 @@ function StartRelayerAndDeploy() {
...
@@ -358,7 +359,7 @@ function StartRelayerAndDeploy() {
kill_ebrelayer ebrelayer
kill_ebrelayer ebrelayer
start_ebrelayerA
start_ebrelayerA
result
=
$(${
CLIA
}
unlock
-p
${
validatorPwd
}
)
result
=
$(${
CLIA
}
unlock
-p
"
${
validatorPwd
}
"
)
cli_ret
"
${
result
}
"
"unlock"
cli_ret
"
${
result
}
"
"unlock"
# start ebrelayer B C D
# start ebrelayer B C D
...
@@ -526,7 +527,7 @@ function StartOneRelayer() {
...
@@ -526,7 +527,7 @@ function StartOneRelayer() {
kill_ebrelayer ebrelayer
kill_ebrelayer ebrelayer
start_ebrelayerA
start_ebrelayerA
result
=
$(${
CLIA
}
unlock
-p
${
validatorPwd
}
)
result
=
$(${
CLIA
}
unlock
-p
"
${
validatorPwd
}
"
)
cli_ret
"
${
result
}
"
"unlock"
cli_ret
"
${
result
}
"
"unlock"
# 设置 token 地址
# 设置 token 地址
...
...
plugin/dapp/cross2eth/ebrelayer/types/config.pb.go
View file @
1eae5e9f
...
@@ -7,11 +7,12 @@
...
@@ -7,11 +7,12 @@
package
types
package
types
import
(
import
(
reflect
"reflect"
sync
"sync"
proto
"github.com/golang/protobuf/proto"
proto
"github.com/golang/protobuf/proto"
protoreflect
"google.golang.org/protobuf/reflect/protoreflect"
protoreflect
"google.golang.org/protobuf/reflect/protoreflect"
protoimpl
"google.golang.org/protobuf/runtime/protoimpl"
protoimpl
"google.golang.org/protobuf/runtime/protoimpl"
reflect
"reflect"
sync
"sync"
)
)
const
(
const
(
...
...
plugin/dapp/cross2eth/ebrelayer/types/relayer.pb.go
View file @
1eae5e9f
...
@@ -7,11 +7,12 @@
...
@@ -7,11 +7,12 @@
package
types
package
types
import
(
import
(
reflect
"reflect"
sync
"sync"
proto
"github.com/golang/protobuf/proto"
proto
"github.com/golang/protobuf/proto"
protoreflect
"google.golang.org/protobuf/reflect/protoreflect"
protoreflect
"google.golang.org/protobuf/reflect/protoreflect"
protoimpl
"google.golang.org/protobuf/runtime/protoimpl"
protoimpl
"google.golang.org/protobuf/runtime/protoimpl"
reflect
"reflect"
sync
"sync"
)
)
const
(
const
(
...
...
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