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
5e4e66a6
Commit
5e4e66a6
authored
May 25, 2020
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify SetPassphase and ChangePassphase
parent
49765aa0
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
263 additions
and
1942 deletions
+263
-1942
allRelayerTest.sh
plugin/dapp/x2Ethereum/cmd/build/allRelayerTest.sh
+2
-2
command.go
plugin/dapp/x2Ethereum/ebcli/command.go
+31
-3
account.go
plugin/dapp/x2Ethereum/ebrelayer/relayer/chain33/account.go
+1
-1
account.go
plugin/dapp/x2Ethereum/ebrelayer/relayer/ethereum/account.go
+1
-1
manager.go
plugin/dapp/x2Ethereum/ebrelayer/relayer/manager.go
+51
-8
config.pb.go
plugin/dapp/x2Ethereum/ebrelayer/types/config.pb.go
+64
-511
relayer.proto
plugin/dapp/x2Ethereum/ebrelayer/types/protos/relayer.proto
+5
-1
relayer.pb.go
plugin/dapp/x2Ethereum/ebrelayer/types/relayer.pb.go
+99
-1406
allRelayerTest.sh
plugin/dapp/x2Ethereum/testsh/allRelayerTest.sh
+2
-2
bridgeBankTest.sh
plugin/dapp/x2Ethereum/testsh/bridgeBankTest.sh
+1
-1
ebrelayerTest.sh
plugin/dapp/x2Ethereum/testsh/ebrelayerTest.sh
+2
-2
publicTest.sh
plugin/dapp/x2Ethereum/testsh/publicTest.sh
+1
-1
x2ethereumTest.sh
plugin/dapp/x2Ethereum/testsh/x2ethereumTest.sh
+3
-3
No files found.
plugin/dapp/x2Ethereum/cmd/build/allRelayerTest.sh
View file @
5e4e66a6
...
@@ -67,7 +67,7 @@ function start_ebrelayerD() {
...
@@ -67,7 +67,7 @@ function start_ebrelayerD() {
function
InitAndDeploy
()
{
function
InitAndDeploy
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
result
=
$(${
CLIA
}
relayer set_pwd
-
n
123456hzj
-o
kk
)
result
=
$(${
CLIA
}
relayer set_pwd
-
p
123456hzj
)
cli_ret
"
${
result
}
"
"set_pwd"
cli_ret
"
${
result
}
"
"set_pwd"
result
=
$(${
CLIA
}
relayer unlock
-p
123456hzj
)
result
=
$(${
CLIA
}
relayer unlock
-p
123456hzj
)
...
@@ -88,7 +88,7 @@ function EthImportKey() {
...
@@ -88,7 +88,7 @@ function EthImportKey() {
# 导入测试地址私钥
# 导入测试地址私钥
CLI
=
"./ebcli_
$name
"
CLI
=
"./ebcli_
$name
"
result
=
$(${
CLI
}
relayer set_pwd
-
n
123456hzj
-o
kk
)
result
=
$(${
CLI
}
relayer set_pwd
-
p
123456hzj
)
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
cli_ret
"
${
result
}
"
"unlock"
cli_ret
"
${
result
}
"
"unlock"
...
...
plugin/dapp/x2Ethereum/ebcli/command.go
View file @
5e4e66a6
...
@@ -20,6 +20,7 @@ func RelayerCmd() *cobra.Command {
...
@@ -20,6 +20,7 @@ func RelayerCmd() *cobra.Command {
cmd
.
AddCommand
(
cmd
.
AddCommand
(
SetPwdCmd
(),
SetPwdCmd
(),
ChangePwdCmd
(),
LockCmd
(),
LockCmd
(),
UnlockCmd
(),
UnlockCmd
(),
Chain33RelayerCmd
(),
Chain33RelayerCmd
(),
...
@@ -41,6 +42,33 @@ func SetPwdCmd() *cobra.Command {
...
@@ -41,6 +42,33 @@ func SetPwdCmd() *cobra.Command {
}
}
func
addSetPwdFlags
(
cmd
*
cobra
.
Command
)
{
func
addSetPwdFlags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
StringP
(
"password"
,
"p"
,
""
,
"password,[8-30]letter and digit"
)
cmd
.
MarkFlagRequired
(
"password"
)
}
func
setPwd
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
newPwd
,
_
:=
cmd
.
Flags
()
.
GetString
(
"password"
)
params
:=
relayerTypes
.
ReqSetPasswd
{
Passphase
:
newPwd
,
}
var
res
rpctypes
.
Reply
ctx
:=
jsonclient
.
NewRPCCtx
(
rpcLaddr
,
"Manager.SetPassphase"
,
params
,
&
res
)
ctx
.
Run
()
}
// ChangePwdCmd set password
func
ChangePwdCmd
()
*
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"change_pwd"
,
Short
:
"Change password"
,
Run
:
changePwd
,
}
addChangePwdFlags
(
cmd
)
return
cmd
}
func
addChangePwdFlags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
StringP
(
"old"
,
"o"
,
""
,
"old password"
)
cmd
.
Flags
()
.
StringP
(
"old"
,
"o"
,
""
,
"old password"
)
cmd
.
MarkFlagRequired
(
"old"
)
cmd
.
MarkFlagRequired
(
"old"
)
...
@@ -48,16 +76,16 @@ func addSetPwdFlags(cmd *cobra.Command) {
...
@@ -48,16 +76,16 @@ func addSetPwdFlags(cmd *cobra.Command) {
cmd
.
MarkFlagRequired
(
"new"
)
cmd
.
MarkFlagRequired
(
"new"
)
}
}
func
set
Pwd
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
change
Pwd
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
oldPwd
,
_
:=
cmd
.
Flags
()
.
GetString
(
"old"
)
oldPwd
,
_
:=
cmd
.
Flags
()
.
GetString
(
"old"
)
newPwd
,
_
:=
cmd
.
Flags
()
.
GetString
(
"new"
)
newPwd
,
_
:=
cmd
.
Flags
()
.
GetString
(
"new"
)
params
:=
relayerTypes
.
Req
Set
Passwd
{
params
:=
relayerTypes
.
Req
Change
Passwd
{
OldPassphase
:
oldPwd
,
OldPassphase
:
oldPwd
,
NewPassphase
:
newPwd
,
NewPassphase
:
newPwd
,
}
}
var
res
rpctypes
.
Reply
var
res
rpctypes
.
Reply
ctx
:=
jsonclient
.
NewRPCCtx
(
rpcLaddr
,
"Manager.
Set
Passphase"
,
params
,
&
res
)
ctx
:=
jsonclient
.
NewRPCCtx
(
rpcLaddr
,
"Manager.
Change
Passphase"
,
params
,
&
res
)
ctx
.
Run
()
ctx
.
Run
()
}
}
...
...
plugin/dapp/x2Ethereum/ebrelayer/relayer/chain33/account.go
View file @
5e4e66a6
...
@@ -75,7 +75,7 @@ func (chain33Relayer *Relayer4Chain33) StoreAccountWithNewPassphase(newPassphras
...
@@ -75,7 +75,7 @@ func (chain33Relayer *Relayer4Chain33) StoreAccountWithNewPassphase(newPassphras
accountInfo
,
err
:=
chain33Relayer
.
db
.
Get
(
chain33AccountKey
)
accountInfo
,
err
:=
chain33Relayer
.
db
.
Get
(
chain33AccountKey
)
if
nil
!=
err
{
if
nil
!=
err
{
relayerLog
.
Info
(
"StoreAccountWithNewPassphase"
,
"pls check account is created already, err"
,
err
)
relayerLog
.
Info
(
"StoreAccountWithNewPassphase"
,
"pls check account is created already, err"
,
err
)
return
nil
return
err
}
}
ethAccount
:=
&
x2ethTypes
.
Account4Relayer
{}
ethAccount
:=
&
x2ethTypes
.
Account4Relayer
{}
if
err
:=
chain33Types
.
Decode
(
accountInfo
,
ethAccount
);
nil
!=
err
{
if
err
:=
chain33Types
.
Decode
(
accountInfo
,
ethAccount
);
nil
!=
err
{
...
...
plugin/dapp/x2Ethereum/ebrelayer/relayer/ethereum/account.go
View file @
5e4e66a6
...
@@ -139,7 +139,7 @@ func (ethRelayer *Relayer4Ethereum) StoreAccountWithNewPassphase(newPassphrase,
...
@@ -139,7 +139,7 @@ func (ethRelayer *Relayer4Ethereum) StoreAccountWithNewPassphase(newPassphrase,
accountInfo
,
err
:=
ethRelayer
.
db
.
Get
(
ethAccountKey
)
accountInfo
,
err
:=
ethRelayer
.
db
.
Get
(
ethAccountKey
)
if
nil
!=
err
{
if
nil
!=
err
{
relayerLog
.
Info
(
"StoreAccountWithNewPassphase"
,
"pls check account is created already, err"
,
err
)
relayerLog
.
Info
(
"StoreAccountWithNewPassphase"
,
"pls check account is created already, err"
,
err
)
return
nil
return
err
}
}
ethAccount
:=
&
x2ethTypes
.
Account4Relayer
{}
ethAccount
:=
&
x2ethTypes
.
Account4Relayer
{}
if
err
:=
chain33Types
.
Decode
(
accountInfo
,
ethAccount
);
nil
!=
err
{
if
err
:=
chain33Types
.
Decode
(
accountInfo
,
ethAccount
);
nil
!=
err
{
...
...
plugin/dapp/x2Ethereum/ebrelayer/relayer/manager.go
View file @
5e4e66a6
...
@@ -66,6 +66,49 @@ func NewRelayerManager(chain33Relayer *chain33.Relayer4Chain33, ethRelayer *ethe
...
@@ -66,6 +66,49 @@ func NewRelayerManager(chain33Relayer *chain33.Relayer4Chain33, ethRelayer *ethe
func
(
manager
*
Manager
)
SetPassphase
(
setPasswdReq
relayerTypes
.
ReqSetPasswd
,
result
*
interface
{})
error
{
func
(
manager
*
Manager
)
SetPassphase
(
setPasswdReq
relayerTypes
.
ReqSetPasswd
,
result
*
interface
{})
error
{
manager
.
mtx
.
Lock
()
manager
.
mtx
.
Lock
()
defer
manager
.
mtx
.
Unlock
()
defer
manager
.
mtx
.
Unlock
()
// 第一次设置密码的时候才使用 后面用 ChangePasswd
if
EncryptEnable
==
manager
.
encryptFlag
{
return
errors
.
New
(
"passphase alreade exists"
)
}
// 密码合法性校验
if
!
utils
.
IsValidPassWord
(
setPasswdReq
.
Passphase
)
{
return
chain33Types
.
ErrInvalidPassWord
}
//使用密码生成passwdhash用于下次密码的验证
newBatch
:=
manager
.
store
.
NewBatch
(
true
)
err
:=
manager
.
store
.
SetPasswordHash
(
setPasswdReq
.
Passphase
,
newBatch
)
if
err
!=
nil
{
mlog
.
Error
(
"SetPassphase"
,
"SetPasswordHash err"
,
err
)
return
err
}
//设置钱包加密标志位
err
=
manager
.
store
.
SetEncryptionFlag
(
newBatch
)
if
err
!=
nil
{
mlog
.
Error
(
"SetPassphase"
,
"SetEncryptionFlag err"
,
err
)
return
err
}
err
=
newBatch
.
Write
()
if
err
!=
nil
{
mlog
.
Error
(
"ProcWalletSetPasswd newBatch.Write"
,
"err"
,
err
)
return
err
}
manager
.
passphase
=
setPasswdReq
.
Passphase
atomic
.
StoreInt64
(
&
manager
.
encryptFlag
,
EncryptEnable
)
*
result
=
rpctypes
.
Reply
{
IsOk
:
true
,
Msg
:
"Succeed to set passphase"
,
}
return
nil
}
func
(
manager
*
Manager
)
ChangePassphase
(
setPasswdReq
relayerTypes
.
ReqChangePasswd
,
result
*
interface
{})
error
{
manager
.
mtx
.
Lock
()
defer
manager
.
mtx
.
Unlock
()
// 新密码合法性校验
// 新密码合法性校验
if
!
utils
.
IsValidPassWord
(
setPasswdReq
.
NewPassphase
)
{
if
!
utils
.
IsValidPassWord
(
setPasswdReq
.
NewPassphase
)
{
return
chain33Types
.
ErrInvalidPassWord
return
chain33Types
.
ErrInvalidPassWord
...
@@ -79,17 +122,17 @@ func (manager *Manager) SetPassphase(setPasswdReq relayerTypes.ReqSetPasswd, res
...
@@ -79,17 +122,17 @@ func (manager *Manager) SetPassphase(setPasswdReq relayerTypes.ReqSetPasswd, res
atomic
.
CompareAndSwapInt32
(
&
manager
.
isLocked
,
Unlocked
,
tempislock
)
atomic
.
CompareAndSwapInt32
(
&
manager
.
isLocked
,
Unlocked
,
tempislock
)
}()
}()
// 钱包已经加密需要验证oldpass的正确性
// 钱包已经加密需要验证oldpass的正确性
??? 什么时候会进入到这个里
if
len
(
manager
.
passphase
)
==
0
&&
manager
.
encryptFlag
==
1
{
if
len
(
manager
.
passphase
)
==
0
&&
manager
.
encryptFlag
==
1
{
isok
:=
manager
.
store
.
VerifyPasswordHash
(
setPasswdReq
.
OldPassphase
)
isok
:=
manager
.
store
.
VerifyPasswordHash
(
setPasswdReq
.
OldPassphase
)
if
!
isok
{
if
!
isok
{
mlog
.
Error
(
"
Set
Passphase Verify Oldpasswd fail!"
)
mlog
.
Error
(
"
Change
Passphase Verify Oldpasswd fail!"
)
return
chain33Types
.
ErrVerifyOldpasswdFail
return
chain33Types
.
ErrVerifyOldpasswdFail
}
}
}
}
if
len
(
manager
.
passphase
)
!=
0
&&
setPasswdReq
.
OldPassphase
!=
manager
.
passphase
{
if
len
(
manager
.
passphase
)
!=
0
&&
setPasswdReq
.
OldPassphase
!=
manager
.
passphase
{
mlog
.
Error
(
"
Set
Passphase Oldpass err!"
)
mlog
.
Error
(
"
Change
Passphase Oldpass err!"
)
return
chain33Types
.
ErrVerifyOldpasswdFail
return
chain33Types
.
ErrVerifyOldpasswdFail
}
}
...
@@ -97,25 +140,25 @@ func (manager *Manager) SetPassphase(setPasswdReq relayerTypes.ReqSetPasswd, res
...
@@ -97,25 +140,25 @@ func (manager *Manager) SetPassphase(setPasswdReq relayerTypes.ReqSetPasswd, res
newBatch
:=
manager
.
store
.
NewBatch
(
true
)
newBatch
:=
manager
.
store
.
NewBatch
(
true
)
err
:=
manager
.
store
.
SetPasswordHash
(
setPasswdReq
.
NewPassphase
,
newBatch
)
err
:=
manager
.
store
.
SetPasswordHash
(
setPasswdReq
.
NewPassphase
,
newBatch
)
if
err
!=
nil
{
if
err
!=
nil
{
mlog
.
Error
(
"
Set
Passphase"
,
"SetPasswordHash err"
,
err
)
mlog
.
Error
(
"
Change
Passphase"
,
"SetPasswordHash err"
,
err
)
return
err
return
err
}
}
//设置钱包加密标志位
//设置钱包加密标志位
err
=
manager
.
store
.
SetEncryptionFlag
(
newBatch
)
err
=
manager
.
store
.
SetEncryptionFlag
(
newBatch
)
if
err
!=
nil
{
if
err
!=
nil
{
mlog
.
Error
(
"
Set
Passphase"
,
"SetEncryptionFlag err"
,
err
)
mlog
.
Error
(
"
Change
Passphase"
,
"SetEncryptionFlag err"
,
err
)
return
err
return
err
}
}
err
=
manager
.
ethRelayer
.
StoreAccountWithNewPassphase
(
setPasswdReq
.
NewPassphase
,
setPasswdReq
.
OldPassphase
)
err
=
manager
.
ethRelayer
.
StoreAccountWithNewPassphase
(
setPasswdReq
.
NewPassphase
,
setPasswdReq
.
OldPassphase
)
if
err
!=
nil
{
if
err
!=
nil
{
mlog
.
Error
(
"
Set
Passphase"
,
"StoreAccountWithNewPassphase err"
,
err
)
mlog
.
Error
(
"
Change
Passphase"
,
"StoreAccountWithNewPassphase err"
,
err
)
return
err
return
err
}
}
err
=
manager
.
chain33Relayer
.
StoreAccountWithNewPassphase
(
setPasswdReq
.
NewPassphase
,
setPasswdReq
.
OldPassphase
)
err
=
manager
.
chain33Relayer
.
StoreAccountWithNewPassphase
(
setPasswdReq
.
NewPassphase
,
setPasswdReq
.
OldPassphase
)
if
err
!=
nil
{
if
err
!=
nil
{
mlog
.
Error
(
"
Set
Passphase"
,
"StoreAccountWithNewPassphase err"
,
err
)
mlog
.
Error
(
"
Change
Passphase"
,
"StoreAccountWithNewPassphase err"
,
err
)
return
err
return
err
}
}
...
@@ -129,7 +172,7 @@ func (manager *Manager) SetPassphase(setPasswdReq relayerTypes.ReqSetPasswd, res
...
@@ -129,7 +172,7 @@ func (manager *Manager) SetPassphase(setPasswdReq relayerTypes.ReqSetPasswd, res
*
result
=
rpctypes
.
Reply
{
*
result
=
rpctypes
.
Reply
{
IsOk
:
true
,
IsOk
:
true
,
Msg
:
"Succeed to
set
passphase"
,
Msg
:
"Succeed to
change
passphase"
,
}
}
return
nil
return
nil
}
}
...
...
plugin/dapp/x2Ethereum/ebrelayer/types/config.pb.go
View file @
5e4e66a6
// Code generated by protoc-gen-go.
DO NOT EDIT.
// Code generated by protoc-gen-go.
// source: config.proto
// source: config.proto
// DO NOT EDIT!
/*
Package types is a generated protocol buffer package.
It is generated from these files:
config.proto
relayer.proto
It has these top-level messages:
SyncTxConfig
Log
RelayerConfig
SyncTxReceiptConfig
Deploy
*/
package
types
package
types
import
(
import
proto
"github.com/golang/protobuf/proto"
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion3
// please upgrade the proto package
type
SyncTxConfig
struct
{
type
SyncTxConfig
struct
{
Chain33Host
string
`protobuf:"bytes,1,opt,name=chain33host,proto3" json:"chain33host,omitempty"`
Chain33Host
string
`protobuf:"bytes,1,opt,name=chain33host" json:"chain33host,omitempty"`
PushHost
string
`protobuf:"bytes,2,opt,name=pushHost,proto3" json:"pushHost,omitempty"`
PushHost
string
`protobuf:"bytes,2,opt,name=pushHost" json:"pushHost,omitempty"`
PushName
string
`protobuf:"bytes,3,opt,name=pushName,proto3" json:"pushName,omitempty"`
PushName
string
`protobuf:"bytes,3,opt,name=pushName" json:"pushName,omitempty"`
PushBind
string
`protobuf:"bytes,4,opt,name=pushBind,proto3" json:"pushBind,omitempty"`
PushBind
string
`protobuf:"bytes,4,opt,name=pushBind" json:"pushBind,omitempty"`
MaturityDegree
int32
`protobuf:"varint,5,opt,name=maturityDegree,proto3" json:"maturityDegree,omitempty"`
MaturityDegree
int32
`protobuf:"varint,5,opt,name=maturityDegree" json:"maturityDegree,omitempty"`
Dbdriver
string
`protobuf:"bytes,6,opt,name=dbdriver,proto3" json:"dbdriver,omitempty"`
Dbdriver
string
`protobuf:"bytes,6,opt,name=dbdriver" json:"dbdriver,omitempty"`
DbPath
string
`protobuf:"bytes,7,opt,name=dbPath,proto3" json:"dbPath,omitempty"`
DbPath
string
`protobuf:"bytes,7,opt,name=dbPath" json:"dbPath,omitempty"`
DbCache
int32
`protobuf:"varint,8,opt,name=dbCache,proto3" json:"dbCache,omitempty"`
DbCache
int32
`protobuf:"varint,8,opt,name=dbCache" json:"dbCache,omitempty"`
FetchHeightPeriodMs
int64
`protobuf:"varint,9,opt,name=fetchHeightPeriodMs,proto3" json:"fetchHeightPeriodMs,omitempty"`
FetchHeightPeriodMs
int64
`protobuf:"varint,9,opt,name=fetchHeightPeriodMs" json:"fetchHeightPeriodMs,omitempty"`
StartSyncHeight
int64
`protobuf:"varint,10,opt,name=startSyncHeight,proto3" json:"startSyncHeight,omitempty"`
StartSyncHeight
int64
`protobuf:"varint,10,opt,name=startSyncHeight" json:"startSyncHeight,omitempty"`
StartSyncSequence
int64
`protobuf:"varint,11,opt,name=startSyncSequence,proto3" json:"startSyncSequence,omitempty"`
StartSyncSequence
int64
`protobuf:"varint,11,opt,name=startSyncSequence" json:"startSyncSequence,omitempty"`
StartSyncHash
string
`protobuf:"bytes,12,opt,name=startSyncHash,proto3" json:"startSyncHash,omitempty"`
StartSyncHash
string
`protobuf:"bytes,12,opt,name=startSyncHash" json:"startSyncHash,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
SyncTxConfig
)
Reset
()
{
*
m
=
SyncTxConfig
{}
}
func
(
m
*
SyncTxConfig
)
Reset
()
{
*
m
=
SyncTxConfig
{}
}
func
(
m
*
SyncTxConfig
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
SyncTxConfig
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
SyncTxConfig
)
ProtoMessage
()
{}
func
(
*
SyncTxConfig
)
ProtoMessage
()
{}
func
(
*
SyncTxConfig
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_3eaf2c85e69e9ea4
,
[]
int
{
0
}
}
func
(
m
*
SyncTxConfig
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_SyncTxConfig
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
SyncTxConfig
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_SyncTxConfig
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
SyncTxConfig
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_SyncTxConfig
.
Merge
(
m
,
src
)
}
func
(
m
*
SyncTxConfig
)
XXX_Size
()
int
{
return
xxx_messageInfo_SyncTxConfig
.
Size
(
m
)
}
func
(
m
*
SyncTxConfig
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_SyncTxConfig
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_SyncTxConfig
proto
.
InternalMessageInfo
func
(
m
*
SyncTxConfig
)
GetChain33Host
()
string
{
if
m
!=
nil
{
return
m
.
Chain33Host
}
return
""
}
func
(
m
*
SyncTxConfig
)
GetPushHost
()
string
{
if
m
!=
nil
{
return
m
.
PushHost
}
return
""
}
func
(
m
*
SyncTxConfig
)
GetPushName
()
string
{
if
m
!=
nil
{
return
m
.
PushName
}
return
""
}
func
(
m
*
SyncTxConfig
)
GetPushBind
()
string
{
if
m
!=
nil
{
return
m
.
PushBind
}
return
""
}
func
(
m
*
SyncTxConfig
)
GetMaturityDegree
()
int32
{
if
m
!=
nil
{
return
m
.
MaturityDegree
}
return
0
}
func
(
m
*
SyncTxConfig
)
GetDbdriver
()
string
{
if
m
!=
nil
{
return
m
.
Dbdriver
}
return
""
}
func
(
m
*
SyncTxConfig
)
GetDbPath
()
string
{
if
m
!=
nil
{
return
m
.
DbPath
}
return
""
}
func
(
m
*
SyncTxConfig
)
GetDbCache
()
int32
{
if
m
!=
nil
{
return
m
.
DbCache
}
return
0
}
func
(
m
*
SyncTxConfig
)
GetFetchHeightPeriodMs
()
int64
{
if
m
!=
nil
{
return
m
.
FetchHeightPeriodMs
}
return
0
}
func
(
m
*
SyncTxConfig
)
GetStartSyncHeight
()
int64
{
if
m
!=
nil
{
return
m
.
StartSyncHeight
}
return
0
}
func
(
m
*
SyncTxConfig
)
GetStartSyncSequence
()
int64
{
if
m
!=
nil
{
return
m
.
StartSyncSequence
}
return
0
}
func
(
m
*
SyncTxConfig
)
GetStartSyncHash
()
string
{
if
m
!=
nil
{
return
m
.
StartSyncHash
}
return
""
}
type
Log
struct
{
type
Log
struct
{
Loglevel
string
`protobuf:"bytes,1,opt,name=loglevel,proto3" json:"loglevel,omitempty"`
Loglevel
string
`protobuf:"bytes,1,opt,name=loglevel" json:"loglevel,omitempty"`
LogConsoleLevel
string
`protobuf:"bytes,2,opt,name=logConsoleLevel,proto3" json:"logConsoleLevel,omitempty"`
LogConsoleLevel
string
`protobuf:"bytes,2,opt,name=logConsoleLevel" json:"logConsoleLevel,omitempty"`
LogFile
string
`protobuf:"bytes,3,opt,name=logFile,proto3" json:"logFile,omitempty"`
LogFile
string
`protobuf:"bytes,3,opt,name=logFile" json:"logFile,omitempty"`
MaxFileSize
uint32
`protobuf:"varint,4,opt,name=maxFileSize,proto3" json:"maxFileSize,omitempty"`
MaxFileSize
uint32
`protobuf:"varint,4,opt,name=maxFileSize" json:"maxFileSize,omitempty"`
MaxBackups
uint32
`protobuf:"varint,5,opt,name=maxBackups,proto3" json:"maxBackups,omitempty"`
MaxBackups
uint32
`protobuf:"varint,5,opt,name=maxBackups" json:"maxBackups,omitempty"`
MaxAge
uint32
`protobuf:"varint,6,opt,name=maxAge,proto3" json:"maxAge,omitempty"`
MaxAge
uint32
`protobuf:"varint,6,opt,name=maxAge" json:"maxAge,omitempty"`
LocalTime
bool
`protobuf:"varint,7,opt,name=localTime,proto3" json:"localTime,omitempty"`
LocalTime
bool
`protobuf:"varint,7,opt,name=localTime" json:"localTime,omitempty"`
Compress
bool
`protobuf:"varint,8,opt,name=compress,proto3" json:"compress,omitempty"`
Compress
bool
`protobuf:"varint,8,opt,name=compress" json:"compress,omitempty"`
CallerFile
bool
`protobuf:"varint,9,opt,name=callerFile,proto3" json:"callerFile,omitempty"`
CallerFile
bool
`protobuf:"varint,9,opt,name=callerFile" json:"callerFile,omitempty"`
CallerFunction
bool
`protobuf:"varint,10,opt,name=callerFunction,proto3" json:"callerFunction,omitempty"`
CallerFunction
bool
`protobuf:"varint,10,opt,name=callerFunction" json:"callerFunction,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
Log
)
Reset
()
{
*
m
=
Log
{}
}
func
(
m
*
Log
)
Reset
()
{
*
m
=
Log
{}
}
func
(
m
*
Log
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Log
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Log
)
ProtoMessage
()
{}
func
(
*
Log
)
ProtoMessage
()
{}
func
(
*
Log
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_3eaf2c85e69e9ea4
,
[]
int
{
1
}
}
func
(
m
*
Log
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Log
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Log
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Log
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Log
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Log
.
Merge
(
m
,
src
)
}
func
(
m
*
Log
)
XXX_Size
()
int
{
return
xxx_messageInfo_Log
.
Size
(
m
)
}
func
(
m
*
Log
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Log
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Log
proto
.
InternalMessageInfo
func
(
m
*
Log
)
GetLoglevel
()
string
{
if
m
!=
nil
{
return
m
.
Loglevel
}
return
""
}
func
(
m
*
Log
)
GetLogConsoleLevel
()
string
{
if
m
!=
nil
{
return
m
.
LogConsoleLevel
}
return
""
}
func
(
m
*
Log
)
GetLogFile
()
string
{
if
m
!=
nil
{
return
m
.
LogFile
}
return
""
}
func
(
m
*
Log
)
GetMaxFileSize
()
uint32
{
if
m
!=
nil
{
return
m
.
MaxFileSize
}
return
0
}
func
(
m
*
Log
)
GetMaxBackups
()
uint32
{
if
m
!=
nil
{
return
m
.
MaxBackups
}
return
0
}
func
(
m
*
Log
)
GetMaxAge
()
uint32
{
if
m
!=
nil
{
return
m
.
MaxAge
}
return
0
}
func
(
m
*
Log
)
GetLocalTime
()
bool
{
if
m
!=
nil
{
return
m
.
LocalTime
}
return
false
}
func
(
m
*
Log
)
GetCompress
()
bool
{
if
m
!=
nil
{
return
m
.
Compress
}
return
false
}
func
(
m
*
Log
)
GetCallerFile
()
bool
{
if
m
!=
nil
{
return
m
.
CallerFile
}
return
false
}
func
(
m
*
Log
)
GetCallerFunction
()
bool
{
if
m
!=
nil
{
return
m
.
CallerFunction
}
return
false
}
type
RelayerConfig
struct
{
type
RelayerConfig
struct
{
Title
string
`protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Title
string
`protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
SyncTxConfig
*
SyncTxConfig
`protobuf:"bytes,2,opt,name=syncTxConfig,proto3" json:"syncTxConfig,omitempty"`
SyncTxConfig
*
SyncTxConfig
`protobuf:"bytes,2,opt,name=syncTxConfig" json:"syncTxConfig,omitempty"`
Log
*
Log
`protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
Log
*
Log
`protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
JrpcBindAddr
string
`protobuf:"bytes,4,opt,name=jrpcBindAddr,proto3" json:"jrpcBindAddr,omitempty"`
JrpcBindAddr
string
`protobuf:"bytes,4,opt,name=jrpcBindAddr" json:"jrpcBindAddr,omitempty"`
EthProvider
string
`protobuf:"bytes,5,opt,name=ethProvider,proto3" json:"ethProvider,omitempty"`
EthProvider
string
`protobuf:"bytes,5,opt,name=ethProvider" json:"ethProvider,omitempty"`
BridgeRegistry
string
`protobuf:"bytes,6,opt,name=bridgeRegistry,proto3" json:"bridgeRegistry,omitempty"`
BridgeRegistry
string
`protobuf:"bytes,6,opt,name=bridgeRegistry" json:"bridgeRegistry,omitempty"`
Deploy
*
Deploy
`protobuf:"bytes,7,opt,name=deploy,proto3" json:"deploy,omitempty"`
Deploy
*
Deploy
`protobuf:"bytes,7,opt,name=deploy" json:"deploy,omitempty"`
EthMaturityDegree
int32
`protobuf:"varint,8,opt,name=ethMaturityDegree,proto3" json:"ethMaturityDegree,omitempty"`
EthMaturityDegree
int32
`protobuf:"varint,8,opt,name=ethMaturityDegree" json:"ethMaturityDegree,omitempty"`
EthBlockFetchPeriod
int32
`protobuf:"varint,9,opt,name=ethBlockFetchPeriod,proto3" json:"ethBlockFetchPeriod,omitempty"`
EthBlockFetchPeriod
int32
`protobuf:"varint,9,opt,name=ethBlockFetchPeriod" json:"ethBlockFetchPeriod,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
RelayerConfig
)
Reset
()
{
*
m
=
RelayerConfig
{}
}
func
(
m
*
RelayerConfig
)
Reset
()
{
*
m
=
RelayerConfig
{}
}
func
(
m
*
RelayerConfig
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
RelayerConfig
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RelayerConfig
)
ProtoMessage
()
{}
func
(
*
RelayerConfig
)
ProtoMessage
()
{}
func
(
*
RelayerConfig
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_3eaf2c85e69e9ea4
,
[]
int
{
2
}
}
func
(
m
*
RelayerConfig
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RelayerConfig
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
RelayerConfig
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_RelayerConfig
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
RelayerConfig
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RelayerConfig
.
Merge
(
m
,
src
)
}
func
(
m
*
RelayerConfig
)
XXX_Size
()
int
{
return
xxx_messageInfo_RelayerConfig
.
Size
(
m
)
}
func
(
m
*
RelayerConfig
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_RelayerConfig
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_RelayerConfig
proto
.
InternalMessageInfo
func
(
m
*
RelayerConfig
)
GetTitle
()
string
{
if
m
!=
nil
{
return
m
.
Title
}
return
""
}
func
(
m
*
RelayerConfig
)
GetSyncTxConfig
()
*
SyncTxConfig
{
func
(
m
*
RelayerConfig
)
GetSyncTxConfig
()
*
SyncTxConfig
{
if
m
!=
nil
{
if
m
!=
nil
{
...
@@ -320,27 +89,6 @@ func (m *RelayerConfig) GetLog() *Log {
...
@@ -320,27 +89,6 @@ func (m *RelayerConfig) GetLog() *Log {
return
nil
return
nil
}
}
func
(
m
*
RelayerConfig
)
GetJrpcBindAddr
()
string
{
if
m
!=
nil
{
return
m
.
JrpcBindAddr
}
return
""
}
func
(
m
*
RelayerConfig
)
GetEthProvider
()
string
{
if
m
!=
nil
{
return
m
.
EthProvider
}
return
""
}
func
(
m
*
RelayerConfig
)
GetBridgeRegistry
()
string
{
if
m
!=
nil
{
return
m
.
BridgeRegistry
}
return
""
}
func
(
m
*
RelayerConfig
)
GetDeploy
()
*
Deploy
{
func
(
m
*
RelayerConfig
)
GetDeploy
()
*
Deploy
{
if
m
!=
nil
{
if
m
!=
nil
{
return
m
.
Deploy
return
m
.
Deploy
...
@@ -348,229 +96,34 @@ func (m *RelayerConfig) GetDeploy() *Deploy {
...
@@ -348,229 +96,34 @@ func (m *RelayerConfig) GetDeploy() *Deploy {
return
nil
return
nil
}
}
func
(
m
*
RelayerConfig
)
GetEthMaturityDegree
()
int32
{
if
m
!=
nil
{
return
m
.
EthMaturityDegree
}
return
0
}
func
(
m
*
RelayerConfig
)
GetEthBlockFetchPeriod
()
int32
{
if
m
!=
nil
{
return
m
.
EthBlockFetchPeriod
}
return
0
}
type
SyncTxReceiptConfig
struct
{
type
SyncTxReceiptConfig
struct
{
Chain33Host
string
`protobuf:"bytes,1,opt,name=chain33host,proto3" json:"chain33host,omitempty"`
Chain33Host
string
`protobuf:"bytes,1,opt,name=chain33host" json:"chain33host,omitempty"`
PushHost
string
`protobuf:"bytes,2,opt,name=pushHost,proto3" json:"pushHost,omitempty"`
PushHost
string
`protobuf:"bytes,2,opt,name=pushHost" json:"pushHost,omitempty"`
PushName
string
`protobuf:"bytes,3,opt,name=pushName,proto3" json:"pushName,omitempty"`
PushName
string
`protobuf:"bytes,3,opt,name=pushName" json:"pushName,omitempty"`
PushBind
string
`protobuf:"bytes,4,opt,name=pushBind,proto3" json:"pushBind,omitempty"`
PushBind
string
`protobuf:"bytes,4,opt,name=pushBind" json:"pushBind,omitempty"`
StartSyncHeight
int64
`protobuf:"varint,5,opt,name=startSyncHeight,proto3" json:"startSyncHeight,omitempty"`
StartSyncHeight
int64
`protobuf:"varint,5,opt,name=startSyncHeight" json:"startSyncHeight,omitempty"`
StartSyncSequence
int64
`protobuf:"varint,6,opt,name=startSyncSequence,proto3" json:"startSyncSequence,omitempty"`
StartSyncSequence
int64
`protobuf:"varint,6,opt,name=startSyncSequence" json:"startSyncSequence,omitempty"`
StartSyncHash
string
`protobuf:"bytes,7,opt,name=startSyncHash,proto3" json:"startSyncHash,omitempty"`
StartSyncHash
string
`protobuf:"bytes,7,opt,name=startSyncHash" json:"startSyncHash,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
SyncTxReceiptConfig
)
Reset
()
{
*
m
=
SyncTxReceiptConfig
{}
}
func
(
m
*
SyncTxReceiptConfig
)
Reset
()
{
*
m
=
SyncTxReceiptConfig
{}
}
func
(
m
*
SyncTxReceiptConfig
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
SyncTxReceiptConfig
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
SyncTxReceiptConfig
)
ProtoMessage
()
{}
func
(
*
SyncTxReceiptConfig
)
ProtoMessage
()
{}
func
(
*
SyncTxReceiptConfig
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_3eaf2c85e69e9ea4
,
[]
int
{
3
}
}
func
(
m
*
SyncTxReceiptConfig
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_SyncTxReceiptConfig
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
SyncTxReceiptConfig
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_SyncTxReceiptConfig
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
SyncTxReceiptConfig
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_SyncTxReceiptConfig
.
Merge
(
m
,
src
)
}
func
(
m
*
SyncTxReceiptConfig
)
XXX_Size
()
int
{
return
xxx_messageInfo_SyncTxReceiptConfig
.
Size
(
m
)
}
func
(
m
*
SyncTxReceiptConfig
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_SyncTxReceiptConfig
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_SyncTxReceiptConfig
proto
.
InternalMessageInfo
func
(
m
*
SyncTxReceiptConfig
)
GetChain33Host
()
string
{
if
m
!=
nil
{
return
m
.
Chain33Host
}
return
""
}
func
(
m
*
SyncTxReceiptConfig
)
GetPushHost
()
string
{
if
m
!=
nil
{
return
m
.
PushHost
}
return
""
}
func
(
m
*
SyncTxReceiptConfig
)
GetPushName
()
string
{
if
m
!=
nil
{
return
m
.
PushName
}
return
""
}
func
(
m
*
SyncTxReceiptConfig
)
GetPushBind
()
string
{
if
m
!=
nil
{
return
m
.
PushBind
}
return
""
}
func
(
m
*
SyncTxReceiptConfig
)
GetStartSyncHeight
()
int64
{
if
m
!=
nil
{
return
m
.
StartSyncHeight
}
return
0
}
func
(
m
*
SyncTxReceiptConfig
)
GetStartSyncSequence
()
int64
{
if
m
!=
nil
{
return
m
.
StartSyncSequence
}
return
0
}
func
(
m
*
SyncTxReceiptConfig
)
GetStartSyncHash
()
string
{
if
m
!=
nil
{
return
m
.
StartSyncHash
}
return
""
}
type
Deploy
struct
{
type
Deploy
struct
{
//操作管理员地址
// 操作管理员地址
OperatorAddr
string
`protobuf:"bytes,1,opt,name=operatorAddr,proto3" json:"operatorAddr,omitempty"`
OperatorAddr
string
`protobuf:"bytes,1,opt,name=operatorAddr" json:"operatorAddr,omitempty"`
//合约部署人员私钥,用于部署合约时签名使用
// 合约部署人员私钥,用于部署合约时签名使用
DeployerPrivateKey
string
`protobuf:"bytes,2,opt,name=deployerPrivateKey,proto3" json:"deployerPrivateKey,omitempty"`
DeployerPrivateKey
string
`protobuf:"bytes,2,opt,name=deployerPrivateKey" json:"deployerPrivateKey,omitempty"`
//验证人地址
// 验证人地址
ValidatorsAddr
[]
string
`protobuf:"bytes,3,rep,name=validatorsAddr,proto3" json:"validatorsAddr,omitempty"`
ValidatorsAddr
[]
string
`protobuf:"bytes,3,rep,name=validatorsAddr" json:"validatorsAddr,omitempty"`
//验证人权重
// 验证人权重
InitPowers
[]
int64
`protobuf:"varint,4,rep,packed,name=initPowers,proto3" json:"initPowers,omitempty"`
InitPowers
[]
int64
`protobuf:"varint,4,rep,name=initPowers" json:"initPowers,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
Deploy
)
Reset
()
{
*
m
=
Deploy
{}
}
func
(
m
*
Deploy
)
Reset
()
{
*
m
=
Deploy
{}
}
func
(
m
*
Deploy
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Deploy
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Deploy
)
ProtoMessage
()
{}
func
(
*
Deploy
)
ProtoMessage
()
{}
func
(
*
Deploy
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_3eaf2c85e69e9ea4
,
[]
int
{
4
}
}
func
(
m
*
Deploy
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Deploy
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Deploy
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Deploy
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Deploy
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Deploy
.
Merge
(
m
,
src
)
}
func
(
m
*
Deploy
)
XXX_Size
()
int
{
return
xxx_messageInfo_Deploy
.
Size
(
m
)
}
func
(
m
*
Deploy
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Deploy
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Deploy
proto
.
InternalMessageInfo
func
(
m
*
Deploy
)
GetOperatorAddr
()
string
{
if
m
!=
nil
{
return
m
.
OperatorAddr
}
return
""
}
func
(
m
*
Deploy
)
GetDeployerPrivateKey
()
string
{
if
m
!=
nil
{
return
m
.
DeployerPrivateKey
}
return
""
}
func
(
m
*
Deploy
)
GetValidatorsAddr
()
[]
string
{
if
m
!=
nil
{
return
m
.
ValidatorsAddr
}
return
nil
}
func
(
m
*
Deploy
)
GetInitPowers
()
[]
int64
{
if
m
!=
nil
{
return
m
.
InitPowers
}
return
nil
}
func
init
()
{
proto
.
RegisterType
((
*
SyncTxConfig
)(
nil
),
"types.SyncTxConfig"
)
proto
.
RegisterType
((
*
Log
)(
nil
),
"types.Log"
)
proto
.
RegisterType
((
*
RelayerConfig
)(
nil
),
"types.RelayerConfig"
)
proto
.
RegisterType
((
*
SyncTxReceiptConfig
)(
nil
),
"types.SyncTxReceiptConfig"
)
proto
.
RegisterType
((
*
Deploy
)(
nil
),
"types.Deploy"
)
}
func
init
()
{
func
init
()
{
proto
.
RegisterFile
(
"config.proto"
,
fileDescriptor_3eaf2c85e69e9ea4
)
}
var
fileDescriptor_3eaf2c85e69e9ea4
=
[]
byte
{
// 680 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xc4
,
0x55
,
0xcd
,
0x6e
,
0x1a
,
0x3b
,
0x18
,
0x15
,
0x4c
,
0x20
,
0x60
,
0xe0
,
0x5e
,
0x5d
,
0xe7
,
0xaa
,
0x1a
,
0x55
,
0x51
,
0x85
,
0x50
,
0x5b
,
0xb1
,
0xa8
,
0x50
,
0x95
,
0x2c
,
0xba
,
0xce
,
0x8f
,
0xa2
,
0x48
,
0x4d
,
0x2a
,
0xe4
,
0xe4
,
0x05
,
0x8c
,
0xe7
,
0xcb
,
0x8c
,
0x1b
,
0xcf
,
0x78
,
0x6a
,
0x1b
,
0xca
,
0xf4
,
0x0d
,
0xfa
,
0x1e
,
0x5d
,
0xf5
,
0x2d
,
0xfa
,
0x48
,
0x7d
,
0x83
,
0xca
,
0xdf
,
0x0c
,
0x30
,
0x10
,
0x16
,
0xed
,
0xaa
,
0x3b
,
0xce
,
0x39
,
0xd6
,
0x87
,
0x7d
,
0xce
,
0x77
,
0x80
,
0xf4
,
0x85
,
0xce
,
0x1e
,
0x64
,
0x3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c
,
0x07
,
0x46
,
0xd2
,
0x62
,
0xfb
,
0xa4
,
0xd1
,
0xd7
,
0x26
,
0x39
,
0x2a
,
0x1d
,
0x63
,
0x20
,
0x40
,
0xe6
,
0xee
,
0xaf
,
0xfe
,
0xd6
,
0xec
,
0xe9
,
0x70
,
0xeb
,
0x0f
,
0x3a
,
0xdc
,
0xfe
,
0xed
,
0x0e
,
0x1f
,
0xee
,
0xeb
,
0xf0
,
0xb7
,
0x06
,
0x69
,
0x97
,
0xf6
,
0xfb
,
0x5d
,
0xd0
,
0x39
,
0x18
,
0xee
,
0xb4
,
0xc1
,
0x5d
,
0x28
,
0xdf
,
0xbf
,
0xc5
,
0xd1
,
0x09
,
0xa1
,
0x65
,
0x48
,
0x60
,
0xa6
,
0x46
,
0x2e
,
0xb8
,
0x83
,
0xf7
,
0x50
,
0x54
,
0x56
,
0xec
,
0x51
,
0xfc
,
0x66
,
0x2c
,
0xb8
,
0x92
,
0x91
,
0x1f
,
0x60
,
0x71
,
0x6a
,
0x30
,
0x0c
,
0xfc
,
0x66
,
0x6c
,
0xb3
,
0xbe
,
0x4e
,
0x32
,
0x93
,
0x6e
,
0xaa
,
0x3f
,
0x83
,
0xb1
,
0xe1
,
0xc1
,
0x30
,
0x18
,
0x07
,
0xac
,
0xc6
,
0xcc
,
0xda
,
0xf8
,
0x2f
,
0x71
,
0xfa
,
0x2b
,
0x00
,
0x00
,
0xff
,
0xff
,
0x09
,
0xa3
,
0xd6
,
0xaa
,
0x35
,
0x06
,
0x00
,
0x00
,
}
}
plugin/dapp/x2Ethereum/ebrelayer/types/protos/relayer.proto
View file @
5e4e66a6
...
@@ -19,11 +19,15 @@ message Txhashes {
...
@@ -19,11 +19,15 @@ message Txhashes {
repeated
string
txhash
=
1
;
repeated
string
txhash
=
1
;
}
}
message
Req
Set
Passwd
{
message
Req
Change
Passwd
{
string
oldPassphase
=
1
;
string
oldPassphase
=
1
;
string
newPassphase
=
2
;
string
newPassphase
=
2
;
}
}
message
ReqSetPasswd
{
string
Passphase
=
1
;
}
message
Account4Show
{
message
Account4Show
{
string
privkey
=
1
;
string
privkey
=
1
;
string
addr
=
2
;
string
addr
=
2
;
...
...
plugin/dapp/x2Ethereum/ebrelayer/types/relayer.pb.go
View file @
5e4e66a6
// Code generated by protoc-gen-go.
DO NOT EDIT.
// Code generated by protoc-gen-go.
// source: relayer.proto
// source: relayer.proto
// DO NOT EDIT!
package
types
package
types
import
(
import
proto
"github.com/golang/protobuf/proto"
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion3
// please upgrade the proto package
//以太坊账户信息
//
以太坊账户信息
// privkey : 账户地址对应的私钥
// privkey : 账户地址对应的私钥
// addr :账户地址
//
addr :账户地址
type
Account4Relayer
struct
{
type
Account4Relayer
struct
{
Privkey
[]
byte
`protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
Privkey
[]
byte
`protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
Account4Relayer
)
Reset
()
{
*
m
=
Account4Relayer
{}
}
func
(
m
*
Account4Relayer
)
Reset
()
{
*
m
=
Account4Relayer
{}
}
func
(
m
*
Account4Relayer
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Account4Relayer
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Account4Relayer
)
ProtoMessage
()
{}
func
(
*
Account4Relayer
)
ProtoMessage
()
{}
func
(
*
Account4Relayer
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
0
}
}
func
(
m
*
Account4Relayer
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Account4Relayer
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Account4Relayer
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Account4Relayer
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Account4Relayer
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Account4Relayer
.
Merge
(
m
,
src
)
}
func
(
m
*
Account4Relayer
)
XXX_Size
()
int
{
return
xxx_messageInfo_Account4Relayer
.
Size
(
m
)
}
func
(
m
*
Account4Relayer
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Account4Relayer
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Account4Relayer
proto
.
InternalMessageInfo
func
(
m
*
Account4Relayer
)
GetPrivkey
()
[]
byte
{
if
m
!=
nil
{
return
m
.
Privkey
}
return
nil
}
func
(
m
*
Account4Relayer
)
GetAddr
()
string
{
if
m
!=
nil
{
return
m
.
Addr
}
return
""
}
type
ValidatorAddr4EthRelayer
struct
{
type
ValidatorAddr4EthRelayer
struct
{
EthValidator
string
`protobuf:"bytes,1,opt,name=ethValidator,proto3" json:"ethValidator,omitempty"`
EthValidator
string
`protobuf:"bytes,1,opt,name=ethValidator" json:"ethValidator,omitempty"`
Chain33Validator
string
`protobuf:"bytes,2,opt,name=chain33Validator,proto3" json:"chain33Validator,omitempty"`
Chain33Validator
string
`protobuf:"bytes,2,opt,name=chain33Validator" json:"chain33Validator,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
ValidatorAddr4EthRelayer
)
Reset
()
{
*
m
=
ValidatorAddr4EthRelayer
{}
}
func
(
m
*
ValidatorAddr4EthRelayer
)
Reset
()
{
*
m
=
ValidatorAddr4EthRelayer
{}
}
func
(
m
*
ValidatorAddr4EthRelayer
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ValidatorAddr4EthRelayer
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ValidatorAddr4EthRelayer
)
ProtoMessage
()
{}
func
(
*
ValidatorAddr4EthRelayer
)
ProtoMessage
()
{}
func
(
*
ValidatorAddr4EthRelayer
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
1
}
}
func
(
m
*
ValidatorAddr4EthRelayer
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ValidatorAddr4EthRelayer
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ValidatorAddr4EthRelayer
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ValidatorAddr4EthRelayer
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ValidatorAddr4EthRelayer
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ValidatorAddr4EthRelayer
.
Merge
(
m
,
src
)
}
func
(
m
*
ValidatorAddr4EthRelayer
)
XXX_Size
()
int
{
return
xxx_messageInfo_ValidatorAddr4EthRelayer
.
Size
(
m
)
}
func
(
m
*
ValidatorAddr4EthRelayer
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ValidatorAddr4EthRelayer
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ValidatorAddr4EthRelayer
proto
.
InternalMessageInfo
func
(
m
*
ValidatorAddr4EthRelayer
)
GetEthValidator
()
string
{
if
m
!=
nil
{
return
m
.
EthValidator
}
return
""
}
func
(
m
*
ValidatorAddr4EthRelayer
)
GetChain33Validator
()
string
{
if
m
!=
nil
{
return
m
.
Chain33Validator
}
return
""
}
type
Txhashes
struct
{
type
Txhashes
struct
{
Txhash
[]
string
`protobuf:"bytes,1,rep,name=txhash,proto3" json:"txhash,omitempty"`
Txhash
[]
string
`protobuf:"bytes,1,rep,name=txhash" json:"txhash,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
Txhashes
)
Reset
()
{
*
m
=
Txhashes
{}
}
func
(
m
*
Txhashes
)
Reset
()
{
*
m
=
Txhashes
{}
}
func
(
m
*
Txhashes
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Txhashes
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Txhashes
)
ProtoMessage
()
{}
func
(
*
Txhashes
)
ProtoMessage
()
{}
func
(
*
Txhashes
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
2
}
}
func
(
m
*
Txhashes
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
type
ReqChangePasswd
struct
{
return
xxx_messageInfo_Txhashes
.
Unmarshal
(
m
,
b
)
OldPassphase
string
`protobuf:"bytes,1,opt,name=oldPassphase" json:"oldPassphase,omitempty"`
}
NewPassphase
string
`protobuf:"bytes,2,opt,name=newPassphase" json:"newPassphase,omitempty"`
func
(
m
*
Txhashes
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Txhashes
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Txhashes
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Txhashes
.
Merge
(
m
,
src
)
}
}
func
(
m
*
Txhashes
)
XXX_Size
()
int
{
return
xxx_messageInfo_Txhashes
.
Size
(
m
)
}
func
(
m
*
Txhashes
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Txhashes
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Txhashes
proto
.
InternalMessageInfo
func
(
m
*
Txhashes
)
GetTxhash
()
[]
string
{
func
(
m
*
ReqChangePasswd
)
Reset
()
{
*
m
=
ReqChangePasswd
{}
}
if
m
!=
nil
{
func
(
m
*
ReqChangePasswd
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
return
m
.
Txhash
func
(
*
ReqChangePasswd
)
ProtoMessage
()
{}
}
return
nil
}
type
ReqSetPasswd
struct
{
type
ReqSetPasswd
struct
{
OldPassphase
string
`protobuf:"bytes,1,opt,name=oldPassphase,proto3" json:"oldPassphase,omitempty"`
Passphase
string
`protobuf:"bytes,1,opt" json:"Passphase,omitempty"`
NewPassphase
string
`protobuf:"bytes,2,opt,name=newPassphase,proto3" json:"newPassphase,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
ReqSetPasswd
)
Reset
()
{
*
m
=
ReqSetPasswd
{}
}
func
(
m
*
ReqSetPasswd
)
Reset
()
{
*
m
=
ReqSetPasswd
{}
}
func
(
m
*
ReqSetPasswd
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ReqSetPasswd
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqSetPasswd
)
ProtoMessage
()
{}
func
(
*
ReqSetPasswd
)
ProtoMessage
()
{}
func
(
*
ReqSetPasswd
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
3
}
}
func
(
m
*
ReqSetPasswd
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqSetPasswd
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqSetPasswd
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqSetPasswd
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReqSetPasswd
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqSetPasswd
.
Merge
(
m
,
src
)
}
func
(
m
*
ReqSetPasswd
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqSetPasswd
.
Size
(
m
)
}
func
(
m
*
ReqSetPasswd
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReqSetPasswd
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReqSetPasswd
proto
.
InternalMessageInfo
func
(
m
*
ReqSetPasswd
)
GetOldPassphase
()
string
{
if
m
!=
nil
{
return
m
.
OldPassphase
}
return
""
}
func
(
m
*
ReqSetPasswd
)
GetNewPassphase
()
string
{
if
m
!=
nil
{
return
m
.
NewPassphase
}
return
""
}
type
Account4Show
struct
{
type
Account4Show
struct
{
Privkey
string
`protobuf:"bytes,1,opt,name=privkey,proto3" json:"privkey,omitempty"`
Privkey
string
`protobuf:"bytes,1,opt,name=privkey" json:"privkey,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
Account4Show
)
Reset
()
{
*
m
=
Account4Show
{}
}
func
(
m
*
Account4Show
)
Reset
()
{
*
m
=
Account4Show
{}
}
func
(
m
*
Account4Show
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Account4Show
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Account4Show
)
ProtoMessage
()
{}
func
(
*
Account4Show
)
ProtoMessage
()
{}
func
(
*
Account4Show
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
4
}
}
func
(
m
*
Account4Show
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Account4Show
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Account4Show
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Account4Show
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Account4Show
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Account4Show
.
Merge
(
m
,
src
)
}
func
(
m
*
Account4Show
)
XXX_Size
()
int
{
return
xxx_messageInfo_Account4Show
.
Size
(
m
)
}
func
(
m
*
Account4Show
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Account4Show
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Account4Show
proto
.
InternalMessageInfo
func
(
m
*
Account4Show
)
GetPrivkey
()
string
{
if
m
!=
nil
{
return
m
.
Privkey
}
return
""
}
func
(
m
*
Account4Show
)
GetAddr
()
string
{
if
m
!=
nil
{
return
m
.
Addr
}
return
""
}
type
AssetType
struct
{
type
AssetType
struct
{
Chain
string
`protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
Chain
string
`protobuf:"bytes,1,opt,name=chain" json:"chain,omitempty"`
IssueContract
string
`protobuf:"bytes,2,opt,name=issueContract,proto3" json:"issueContract,omitempty"`
IssueContract
string
`protobuf:"bytes,2,opt,name=issueContract" json:"issueContract,omitempty"`
Symbol
string
`protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
Symbol
string
`protobuf:"bytes,3,opt,name=symbol" json:"symbol,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
AssetType
)
Reset
()
{
*
m
=
AssetType
{}
}
func
(
m
*
AssetType
)
Reset
()
{
*
m
=
AssetType
{}
}
func
(
m
*
AssetType
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
AssetType
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AssetType
)
ProtoMessage
()
{}
func
(
*
AssetType
)
ProtoMessage
()
{}
func
(
*
AssetType
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
5
}
}
func
(
m
*
AssetType
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AssetType
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AssetType
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AssetType
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
AssetType
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AssetType
.
Merge
(
m
,
src
)
}
func
(
m
*
AssetType
)
XXX_Size
()
int
{
return
xxx_messageInfo_AssetType
.
Size
(
m
)
}
func
(
m
*
AssetType
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_AssetType
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_AssetType
proto
.
InternalMessageInfo
func
(
m
*
AssetType
)
GetChain
()
string
{
if
m
!=
nil
{
return
m
.
Chain
}
return
""
}
func
(
m
*
AssetType
)
GetIssueContract
()
string
{
if
m
!=
nil
{
return
m
.
IssueContract
}
return
""
}
func
(
m
*
AssetType
)
GetSymbol
()
string
{
if
m
!=
nil
{
return
m
.
Symbol
}
return
""
}
type
EthBridgeClaim
struct
{
type
EthBridgeClaim
struct
{
EthereumChainID
int64
`protobuf:"varint,1,opt,name=ethereumChainID,proto3" json:"ethereumChainID,omitempty"`
EthereumChainID
int64
`protobuf:"varint,1,opt,name=ethereumChainID" json:"ethereumChainID,omitempty"`
BridgeBrankAddr
string
`protobuf:"bytes,2,opt,name=bridgeBrankAddr,proto3" json:"bridgeBrankAddr,omitempty"`
BridgeBrankAddr
string
`protobuf:"bytes,2,opt,name=bridgeBrankAddr" json:"bridgeBrankAddr,omitempty"`
Nonce
int64
`protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
Nonce
int64
`protobuf:"varint,3,opt,name=nonce" json:"nonce,omitempty"`
TokenAddr
string
`protobuf:"bytes,4,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
TokenAddr
string
`protobuf:"bytes,4,opt,name=tokenAddr" json:"tokenAddr,omitempty"`
Symbol
string
`protobuf:"bytes,5,opt,name=symbol,proto3" json:"symbol,omitempty"`
Symbol
string
`protobuf:"bytes,5,opt,name=symbol" json:"symbol,omitempty"`
EthereumSender
string
`protobuf:"bytes,6,opt,name=ethereumSender,proto3" json:"ethereumSender,omitempty"`
EthereumSender
string
`protobuf:"bytes,6,opt,name=ethereumSender" json:"ethereumSender,omitempty"`
Chain33Receiver
string
`protobuf:"bytes,7,opt,name=chain33Receiver,proto3" json:"chain33Receiver,omitempty"`
Chain33Receiver
string
`protobuf:"bytes,7,opt,name=chain33Receiver" json:"chain33Receiver,omitempty"`
Amount
string
`protobuf:"bytes,9,opt,name=amount,proto3" json:"amount,omitempty"`
Amount
string
`protobuf:"bytes,9,opt,name=amount" json:"amount,omitempty"`
ClaimType
int32
`protobuf:"varint,10,opt,name=claimType,proto3" json:"claimType,omitempty"`
ClaimType
int32
`protobuf:"varint,10,opt,name=claimType" json:"claimType,omitempty"`
ChainName
string
`protobuf:"bytes,11,opt,name=chainName,proto3" json:"chainName,omitempty"`
ChainName
string
`protobuf:"bytes,11,opt,name=chainName" json:"chainName,omitempty"`
Decimal
int64
`protobuf:"varint,12,opt,name=decimal,proto3" json:"decimal,omitempty"`
Decimal
int64
`protobuf:"varint,12,opt,name=decimal" json:"decimal,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
EthBridgeClaim
)
Reset
()
{
*
m
=
EthBridgeClaim
{}
}
func
(
m
*
EthBridgeClaim
)
Reset
()
{
*
m
=
EthBridgeClaim
{}
}
func
(
m
*
EthBridgeClaim
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
EthBridgeClaim
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
EthBridgeClaim
)
ProtoMessage
()
{}
func
(
*
EthBridgeClaim
)
ProtoMessage
()
{}
func
(
*
EthBridgeClaim
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
6
}
}
func
(
m
*
EthBridgeClaim
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_EthBridgeClaim
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
EthBridgeClaim
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_EthBridgeClaim
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
EthBridgeClaim
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_EthBridgeClaim
.
Merge
(
m
,
src
)
}
func
(
m
*
EthBridgeClaim
)
XXX_Size
()
int
{
return
xxx_messageInfo_EthBridgeClaim
.
Size
(
m
)
}
func
(
m
*
EthBridgeClaim
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_EthBridgeClaim
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_EthBridgeClaim
proto
.
InternalMessageInfo
func
(
m
*
EthBridgeClaim
)
GetEthereumChainID
()
int64
{
if
m
!=
nil
{
return
m
.
EthereumChainID
}
return
0
}
func
(
m
*
EthBridgeClaim
)
GetBridgeBrankAddr
()
string
{
if
m
!=
nil
{
return
m
.
BridgeBrankAddr
}
return
""
}
func
(
m
*
EthBridgeClaim
)
GetNonce
()
int64
{
if
m
!=
nil
{
return
m
.
Nonce
}
return
0
}
func
(
m
*
EthBridgeClaim
)
GetTokenAddr
()
string
{
if
m
!=
nil
{
return
m
.
TokenAddr
}
return
""
}
func
(
m
*
EthBridgeClaim
)
GetSymbol
()
string
{
if
m
!=
nil
{
return
m
.
Symbol
}
return
""
}
func
(
m
*
EthBridgeClaim
)
GetEthereumSender
()
string
{
if
m
!=
nil
{
return
m
.
EthereumSender
}
return
""
}
func
(
m
*
EthBridgeClaim
)
GetChain33Receiver
()
string
{
if
m
!=
nil
{
return
m
.
Chain33Receiver
}
return
""
}
func
(
m
*
EthBridgeClaim
)
GetAmount
()
string
{
if
m
!=
nil
{
return
m
.
Amount
}
return
""
}
func
(
m
*
EthBridgeClaim
)
GetClaimType
()
int32
{
if
m
!=
nil
{
return
m
.
ClaimType
}
return
0
}
func
(
m
*
EthBridgeClaim
)
GetChainName
()
string
{
if
m
!=
nil
{
return
m
.
ChainName
}
return
""
}
func
(
m
*
EthBridgeClaim
)
GetDecimal
()
int64
{
if
m
!=
nil
{
return
m
.
Decimal
}
return
0
}
type
ImportKeyReq
struct
{
type
ImportKeyReq
struct
{
PrivateKey
string
`protobuf:"bytes,1,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
PrivateKey
string
`protobuf:"bytes,1,opt,name=privateKey" json:"privateKey,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
ImportKeyReq
)
Reset
()
{
*
m
=
ImportKeyReq
{}
}
func
(
m
*
ImportKeyReq
)
Reset
()
{
*
m
=
ImportKeyReq
{}
}
func
(
m
*
ImportKeyReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ImportKeyReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ImportKeyReq
)
ProtoMessage
()
{}
func
(
*
ImportKeyReq
)
ProtoMessage
()
{}
func
(
*
ImportKeyReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
7
}
}
func
(
m
*
ImportKeyReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ImportKeyReq
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ImportKeyReq
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ImportKeyReq
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ImportKeyReq
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ImportKeyReq
.
Merge
(
m
,
src
)
}
func
(
m
*
ImportKeyReq
)
XXX_Size
()
int
{
return
xxx_messageInfo_ImportKeyReq
.
Size
(
m
)
}
func
(
m
*
ImportKeyReq
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ImportKeyReq
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ImportKeyReq
proto
.
InternalMessageInfo
func
(
m
*
ImportKeyReq
)
GetPrivateKey
()
string
{
if
m
!=
nil
{
return
m
.
PrivateKey
}
return
""
}
type
RelayerRunStatus
struct
{
type
RelayerRunStatus
struct
{
Status
int32
`protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Status
int32
`protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
Details
string
`protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
Details
string
`protobuf:"bytes,2,opt,name=details" json:"details,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
RelayerRunStatus
)
Reset
()
{
*
m
=
RelayerRunStatus
{}
}
func
(
m
*
RelayerRunStatus
)
Reset
()
{
*
m
=
RelayerRunStatus
{}
}
func
(
m
*
RelayerRunStatus
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
RelayerRunStatus
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RelayerRunStatus
)
ProtoMessage
()
{}
func
(
*
RelayerRunStatus
)
ProtoMessage
()
{}
func
(
*
RelayerRunStatus
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
8
}
}
func
(
m
*
RelayerRunStatus
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RelayerRunStatus
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
RelayerRunStatus
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_RelayerRunStatus
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
RelayerRunStatus
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RelayerRunStatus
.
Merge
(
m
,
src
)
}
func
(
m
*
RelayerRunStatus
)
XXX_Size
()
int
{
return
xxx_messageInfo_RelayerRunStatus
.
Size
(
m
)
}
func
(
m
*
RelayerRunStatus
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_RelayerRunStatus
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_RelayerRunStatus
proto
.
InternalMessageInfo
func
(
m
*
RelayerRunStatus
)
GetStatus
()
int32
{
if
m
!=
nil
{
return
m
.
Status
}
return
0
}
func
(
m
*
RelayerRunStatus
)
GetDetails
()
string
{
if
m
!=
nil
{
return
m
.
Details
}
return
""
}
type
NewProphecyClaim
struct
{
type
NewProphecyClaim
struct
{
ClaimType
uint32
`protobuf:"varint,1,opt,name=claimType,proto3" json:"claimType,omitempty"`
ClaimType
uint32
`protobuf:"varint,1,opt,name=claimType" json:"claimType,omitempty"`
Chain33Sender
string
`protobuf:"bytes,2,opt,name=chain33Sender,proto3" json:"chain33Sender,omitempty"`
Chain33Sender
string
`protobuf:"bytes,2,opt,name=chain33Sender" json:"chain33Sender,omitempty"`
TokenAddr
string
`protobuf:"bytes,3,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
TokenAddr
string
`protobuf:"bytes,3,opt,name=tokenAddr" json:"tokenAddr,omitempty"`
Symbol
string
`protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"`
Symbol
string
`protobuf:"bytes,4,opt,name=symbol" json:"symbol,omitempty"`
EthReceiver
string
`protobuf:"bytes,5,opt,name=ethReceiver,proto3" json:"ethReceiver,omitempty"`
EthReceiver
string
`protobuf:"bytes,5,opt,name=ethReceiver" json:"ethReceiver,omitempty"`
Amount
string
`protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
Amount
string
`protobuf:"bytes,6,opt,name=amount" json:"amount,omitempty"`
TxHash
string
`protobuf:"bytes,7,opt,name=txHash,proto3" json:"txHash,omitempty"`
TxHash
string
`protobuf:"bytes,7,opt,name=txHash" json:"txHash,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
NewProphecyClaim
)
Reset
()
{
*
m
=
NewProphecyClaim
{}
}
func
(
m
*
NewProphecyClaim
)
Reset
()
{
*
m
=
NewProphecyClaim
{}
}
func
(
m
*
NewProphecyClaim
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
NewProphecyClaim
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
NewProphecyClaim
)
ProtoMessage
()
{}
func
(
*
NewProphecyClaim
)
ProtoMessage
()
{}
func
(
*
NewProphecyClaim
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
9
}
}
func
(
m
*
NewProphecyClaim
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_NewProphecyClaim
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
NewProphecyClaim
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_NewProphecyClaim
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
NewProphecyClaim
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_NewProphecyClaim
.
Merge
(
m
,
src
)
}
func
(
m
*
NewProphecyClaim
)
XXX_Size
()
int
{
return
xxx_messageInfo_NewProphecyClaim
.
Size
(
m
)
}
func
(
m
*
NewProphecyClaim
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_NewProphecyClaim
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_NewProphecyClaim
proto
.
InternalMessageInfo
func
(
m
*
NewProphecyClaim
)
GetClaimType
()
uint32
{
if
m
!=
nil
{
return
m
.
ClaimType
}
return
0
}
func
(
m
*
NewProphecyClaim
)
GetChain33Sender
()
string
{
if
m
!=
nil
{
return
m
.
Chain33Sender
}
return
""
}
func
(
m
*
NewProphecyClaim
)
GetTokenAddr
()
string
{
if
m
!=
nil
{
return
m
.
TokenAddr
}
return
""
}
func
(
m
*
NewProphecyClaim
)
GetSymbol
()
string
{
if
m
!=
nil
{
return
m
.
Symbol
}
return
""
}
func
(
m
*
NewProphecyClaim
)
GetEthReceiver
()
string
{
if
m
!=
nil
{
return
m
.
EthReceiver
}
return
""
}
func
(
m
*
NewProphecyClaim
)
GetAmount
()
string
{
if
m
!=
nil
{
return
m
.
Amount
}
return
""
}
func
(
m
*
NewProphecyClaim
)
GetTxHash
()
string
{
if
m
!=
nil
{
return
m
.
TxHash
}
return
""
}
type
BalanceAddr
struct
{
type
BalanceAddr
struct
{
Owner
string
`protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
Owner
string
`protobuf:"bytes,1,opt,name=owner" json:"owner,omitempty"`
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr" json:"tokenAddr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
BalanceAddr
)
Reset
()
{
*
m
=
BalanceAddr
{}
}
func
(
m
*
BalanceAddr
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
BalanceAddr
)
ProtoMessage
()
{}
func
(
*
BalanceAddr
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
10
}
}
func
(
m
*
BalanceAddr
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_BalanceAddr
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
BalanceAddr
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_BalanceAddr
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
BalanceAddr
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BalanceAddr
.
Merge
(
m
,
src
)
}
func
(
m
*
BalanceAddr
)
XXX_Size
()
int
{
return
xxx_messageInfo_BalanceAddr
.
Size
(
m
)
}
func
(
m
*
BalanceAddr
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_BalanceAddr
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_BalanceAddr
proto
.
InternalMessageInfo
func
(
m
*
BalanceAddr
)
GetOwner
()
string
{
if
m
!=
nil
{
return
m
.
Owner
}
return
""
}
func
(
m
*
BalanceAddr
)
GetTokenAddr
()
string
{
if
m
!=
nil
{
return
m
.
TokenAddr
}
return
""
}
type
MintToken
struct
{
Owner
string
`protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
Amount
string
`protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
MintToken
)
Reset
()
{
*
m
=
MintToken
{}
}
func
(
m
*
MintToken
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
MintToken
)
ProtoMessage
()
{}
func
(
*
MintToken
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
11
}
}
func
(
m
*
MintToken
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_MintToken
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
MintToken
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_MintToken
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
MintToken
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_MintToken
.
Merge
(
m
,
src
)
}
func
(
m
*
MintToken
)
XXX_Size
()
int
{
return
xxx_messageInfo_MintToken
.
Size
(
m
)
}
func
(
m
*
MintToken
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_MintToken
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_MintToken
proto
.
InternalMessageInfo
func
(
m
*
MintToken
)
GetOwner
()
string
{
if
m
!=
nil
{
return
m
.
Owner
}
return
""
}
func
(
m
*
MintToken
)
GetTokenAddr
()
string
{
if
m
!=
nil
{
return
m
.
TokenAddr
}
return
""
}
func
(
m
*
MintToken
)
GetAmount
()
string
{
if
m
!=
nil
{
return
m
.
Amount
}
return
""
}
type
ApproveAllowance
struct
{
OwnerKey
string
`protobuf:"bytes,1,opt,name=ownerKey,proto3" json:"ownerKey,omitempty"`
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
Amount
string
`protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ApproveAllowance
)
Reset
()
{
*
m
=
ApproveAllowance
{}
}
func
(
m
*
ApproveAllowance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ApproveAllowance
)
ProtoMessage
()
{}
func
(
*
ApproveAllowance
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
12
}
}
func
(
m
*
ApproveAllowance
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ApproveAllowance
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ApproveAllowance
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ApproveAllowance
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ApproveAllowance
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ApproveAllowance
.
Merge
(
m
,
src
)
}
func
(
m
*
ApproveAllowance
)
XXX_Size
()
int
{
return
xxx_messageInfo_ApproveAllowance
.
Size
(
m
)
}
func
(
m
*
ApproveAllowance
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ApproveAllowance
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ApproveAllowance
proto
.
InternalMessageInfo
func
(
m
*
ApproveAllowance
)
GetOwnerKey
()
string
{
if
m
!=
nil
{
return
m
.
OwnerKey
}
return
""
}
func
(
m
*
ApproveAllowance
)
GetTokenAddr
()
string
{
if
m
!=
nil
{
return
m
.
TokenAddr
}
return
""
}
func
(
m
*
ApproveAllowance
)
GetAmount
()
string
{
if
m
!=
nil
{
return
m
.
Amount
}
return
""
}
type
LockEthErc20
struct
{
OwnerKey
string
`protobuf:"bytes,1,opt,name=ownerKey,proto3" json:"ownerKey,omitempty"`
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
Amount
string
`protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
//将lock住的资产跨链转移到chain33的该账户名下
Chain33Receiver
string
`protobuf:"bytes,4,opt,name=chain33Receiver,proto3" json:"chain33Receiver,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
LockEthErc20
)
Reset
()
{
*
m
=
LockEthErc20
{}
}
func
(
m
*
LockEthErc20
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LockEthErc20
)
ProtoMessage
()
{}
func
(
*
LockEthErc20
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
13
}
}
func
(
m
*
LockEthErc20
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_LockEthErc20
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
LockEthErc20
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_LockEthErc20
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
LockEthErc20
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_LockEthErc20
.
Merge
(
m
,
src
)
}
func
(
m
*
LockEthErc20
)
XXX_Size
()
int
{
return
xxx_messageInfo_LockEthErc20
.
Size
(
m
)
}
func
(
m
*
LockEthErc20
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_LockEthErc20
.
DiscardUnknown
(
m
)
}
}
var
xxx_messageInfo_LockEthErc20
proto
.
InternalMessageInfo
func
(
m
*
BalanceAddr
)
Reset
()
{
*
m
=
BalanceAddr
{}
}
func
(
m
*
BalanceAddr
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
BalanceAddr
)
ProtoMessage
()
{}
func
(
m
*
LockEthErc20
)
GetOwnerKey
()
string
{
type
MintToken
struct
{
if
m
!=
nil
{
Owner
string
`protobuf:"bytes,1,opt,name=owner" json:"owner,omitempty"`
return
m
.
OwnerKey
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr" json:"tokenAddr,omitempty"`
}
Amount
string
`protobuf:"bytes,3,opt,name=amount" json:"amount,omitempty"`
return
""
}
}
func
(
m
*
LockEthErc20
)
GetTokenAddr
()
string
{
func
(
m
*
MintToken
)
Reset
()
{
*
m
=
MintToken
{}
}
if
m
!=
nil
{
func
(
m
*
MintToken
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
return
m
.
TokenAddr
func
(
*
MintToken
)
ProtoMessage
()
{}
}
return
""
}
func
(
m
*
LockEthErc20
)
GetAmount
()
string
{
type
ApproveAllowance
struct
{
if
m
!=
nil
{
OwnerKey
string
`protobuf:"bytes,1,opt,name=ownerKey" json:"ownerKey,omitempty"`
return
m
.
Amount
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr" json:"tokenAddr,omitempty"`
}
Amount
string
`protobuf:"bytes,3,opt,name=amount" json:"amount,omitempty"`
return
""
}
}
func
(
m
*
LockEthErc20
)
GetChain33Receiver
()
string
{
func
(
m
*
ApproveAllowance
)
Reset
()
{
*
m
=
ApproveAllowance
{}
}
if
m
!=
nil
{
func
(
m
*
ApproveAllowance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
return
m
.
Chain33Receiver
func
(
*
ApproveAllowance
)
ProtoMessage
()
{}
}
return
""
type
LockEthErc20
struct
{
OwnerKey
string
`protobuf:"bytes,1,opt,name=ownerKey" json:"ownerKey,omitempty"`
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr" json:"tokenAddr,omitempty"`
Amount
string
`protobuf:"bytes,3,opt,name=amount" json:"amount,omitempty"`
// 将lock住的资产跨链转移到chain33的该账户名下
Chain33Receiver
string
`protobuf:"bytes,4,opt,name=chain33Receiver" json:"chain33Receiver,omitempty"`
}
}
func
(
m
*
LockEthErc20
)
Reset
()
{
*
m
=
LockEthErc20
{}
}
func
(
m
*
LockEthErc20
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LockEthErc20
)
ProtoMessage
()
{}
type
ReplyAddr
struct
{
type
ReplyAddr
struct
{
IsOK
bool
`protobuf:"varint,1,opt,name=isOK,proto3" json:"isOK,omitempty"`
IsOK
bool
`protobuf:"varint,1,opt,name=isOK" json:"isOK,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
ReplyAddr
)
Reset
()
{
*
m
=
ReplyAddr
{}
}
func
(
m
*
ReplyAddr
)
Reset
()
{
*
m
=
ReplyAddr
{}
}
func
(
m
*
ReplyAddr
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ReplyAddr
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyAddr
)
ProtoMessage
()
{}
func
(
*
ReplyAddr
)
ProtoMessage
()
{}
func
(
*
ReplyAddr
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
14
}
}
func
(
m
*
ReplyAddr
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReplyAddr
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReplyAddr
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReplyAddr
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReplyAddr
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyAddr
.
Merge
(
m
,
src
)
}
func
(
m
*
ReplyAddr
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyAddr
.
Size
(
m
)
}
func
(
m
*
ReplyAddr
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReplyAddr
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReplyAddr
proto
.
InternalMessageInfo
func
(
m
*
ReplyAddr
)
GetIsOK
()
bool
{
if
m
!=
nil
{
return
m
.
IsOK
}
return
false
}
func
(
m
*
ReplyAddr
)
GetAddr
()
string
{
if
m
!=
nil
{
return
m
.
Addr
}
return
""
}
type
ReplyBalance
struct
{
type
ReplyBalance
struct
{
IsOK
bool
`protobuf:"varint,1,opt,name=isOK,proto3" json:"isOK,omitempty"`
IsOK
bool
`protobuf:"varint,1,opt,name=isOK" json:"isOK,omitempty"`
Balance
string
`protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
Balance
string
`protobuf:"bytes,2,opt,name=balance" json:"balance,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
ReplyBalance
)
Reset
()
{
*
m
=
ReplyBalance
{}
}
func
(
m
*
ReplyBalance
)
Reset
()
{
*
m
=
ReplyBalance
{}
}
func
(
m
*
ReplyBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ReplyBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyBalance
)
ProtoMessage
()
{}
func
(
*
ReplyBalance
)
ProtoMessage
()
{}
func
(
*
ReplyBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
15
}
}
func
(
m
*
ReplyBalance
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReplyBalance
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReplyBalance
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReplyBalance
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReplyBalance
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyBalance
.
Merge
(
m
,
src
)
}
func
(
m
*
ReplyBalance
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyBalance
.
Size
(
m
)
}
func
(
m
*
ReplyBalance
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReplyBalance
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReplyBalance
proto
.
InternalMessageInfo
func
(
m
*
ReplyBalance
)
GetIsOK
()
bool
{
if
m
!=
nil
{
return
m
.
IsOK
}
return
false
}
func
(
m
*
ReplyBalance
)
GetBalance
()
string
{
if
m
!=
nil
{
return
m
.
Balance
}
return
""
}
type
Burn
struct
{
type
Burn
struct
{
OwnerKey
string
`protobuf:"bytes,1,opt,name=ownerKey,proto3" json:"ownerKey,omitempty"`
OwnerKey
string
`protobuf:"bytes,1,opt,name=ownerKey" json:"ownerKey,omitempty"`
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr" json:"tokenAddr,omitempty"`
Amount
string
`protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
Amount
string
`protobuf:"bytes,3,opt,name=amount" json:"amount,omitempty"`
Chain33Receiver
string
`protobuf:"bytes,4,opt,name=chain33Receiver,proto3" json:"chain33Receiver,omitempty"`
Chain33Receiver
string
`protobuf:"bytes,4,opt,name=chain33Receiver" json:"chain33Receiver,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
Burn
)
Reset
()
{
*
m
=
Burn
{}
}
func
(
m
*
Burn
)
Reset
()
{
*
m
=
Burn
{}
}
func
(
m
*
Burn
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Burn
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Burn
)
ProtoMessage
()
{}
func
(
*
Burn
)
ProtoMessage
()
{}
func
(
*
Burn
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
16
}
}
func
(
m
*
Burn
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Burn
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Burn
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Burn
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Burn
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Burn
.
Merge
(
m
,
src
)
}
func
(
m
*
Burn
)
XXX_Size
()
int
{
return
xxx_messageInfo_Burn
.
Size
(
m
)
}
func
(
m
*
Burn
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Burn
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Burn
proto
.
InternalMessageInfo
func
(
m
*
Burn
)
GetOwnerKey
()
string
{
if
m
!=
nil
{
return
m
.
OwnerKey
}
return
""
}
func
(
m
*
Burn
)
GetTokenAddr
()
string
{
if
m
!=
nil
{
return
m
.
TokenAddr
}
return
""
}
func
(
m
*
Burn
)
GetAmount
()
string
{
if
m
!=
nil
{
return
m
.
Amount
}
return
""
}
func
(
m
*
Burn
)
GetChain33Receiver
()
string
{
if
m
!=
nil
{
return
m
.
Chain33Receiver
}
return
""
}
type
StaticsRequest
struct
{
type
StaticsRequest
struct
{
Owner
string
`protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
Owner
string
`protobuf:"bytes,1,opt,name=owner" json:"owner,omitempty"`
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
TokenAddr
string
`protobuf:"bytes,2,opt,name=tokenAddr" json:"tokenAddr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
StaticsRequest
)
Reset
()
{
*
m
=
StaticsRequest
{}
}
func
(
m
*
StaticsRequest
)
Reset
()
{
*
m
=
StaticsRequest
{}
}
func
(
m
*
StaticsRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StaticsRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StaticsRequest
)
ProtoMessage
()
{}
func
(
*
StaticsRequest
)
ProtoMessage
()
{}
func
(
*
StaticsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
17
}
}
func
(
m
*
StaticsRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_StaticsRequest
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
StaticsRequest
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_StaticsRequest
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
StaticsRequest
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StaticsRequest
.
Merge
(
m
,
src
)
}
func
(
m
*
StaticsRequest
)
XXX_Size
()
int
{
return
xxx_messageInfo_StaticsRequest
.
Size
(
m
)
}
func
(
m
*
StaticsRequest
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StaticsRequest
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_StaticsRequest
proto
.
InternalMessageInfo
func
(
m
*
StaticsRequest
)
GetOwner
()
string
{
if
m
!=
nil
{
return
m
.
Owner
}
return
""
}
func
(
m
*
StaticsRequest
)
GetTokenAddr
()
string
{
if
m
!=
nil
{
return
m
.
TokenAddr
}
return
""
}
type
StaticsAll
struct
{
type
StaticsAll
struct
{
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
StaticsAll
)
Reset
()
{
*
m
=
StaticsAll
{}
}
func
(
m
*
StaticsAll
)
Reset
()
{
*
m
=
StaticsAll
{}
}
func
(
m
*
StaticsAll
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StaticsAll
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StaticsAll
)
ProtoMessage
()
{}
func
(
*
StaticsAll
)
ProtoMessage
()
{}
func
(
*
StaticsAll
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
18
}
}
func
(
m
*
StaticsAll
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_StaticsAll
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
StaticsAll
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_StaticsAll
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
StaticsAll
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StaticsAll
.
Merge
(
m
,
src
)
}
func
(
m
*
StaticsAll
)
XXX_Size
()
int
{
return
xxx_messageInfo_StaticsAll
.
Size
(
m
)
}
func
(
m
*
StaticsAll
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StaticsAll
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_StaticsAll
proto
.
InternalMessageInfo
type
StaticsSingle
struct
{
type
StaticsSingle
struct
{
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
StaticsSingle
)
Reset
()
{
*
m
=
StaticsSingle
{}
}
func
(
m
*
StaticsSingle
)
Reset
()
{
*
m
=
StaticsSingle
{}
}
func
(
m
*
StaticsSingle
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StaticsSingle
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StaticsSingle
)
ProtoMessage
()
{}
func
(
*
StaticsSingle
)
ProtoMessage
()
{}
func
(
*
StaticsSingle
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
19
}
}
func
(
m
*
StaticsSingle
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_StaticsSingle
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
StaticsSingle
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_StaticsSingle
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
StaticsSingle
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StaticsSingle
.
Merge
(
m
,
src
)
}
func
(
m
*
StaticsSingle
)
XXX_Size
()
int
{
return
xxx_messageInfo_StaticsSingle
.
Size
(
m
)
}
func
(
m
*
StaticsSingle
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StaticsSingle
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_StaticsSingle
proto
.
InternalMessageInfo
type
StaticsLockResponse
struct
{
type
StaticsLockResponse
struct
{
All
*
StaticsLock
`protobuf:"bytes,1,opt,name=all,proto3" json:"all,omitempty"`
All
*
StaticsLock
`protobuf:"bytes,1,opt,name=all" json:"all,omitempty"`
Single
*
StaticsLockSingle
`protobuf:"bytes,2,opt,name=single,proto3" json:"single,omitempty"`
Single
*
StaticsLockSingle
`protobuf:"bytes,2,opt,name=single" json:"single,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
StaticsLockResponse
)
Reset
()
{
*
m
=
StaticsLockResponse
{}
}
func
(
m
*
StaticsLockResponse
)
Reset
()
{
*
m
=
StaticsLockResponse
{}
}
func
(
m
*
StaticsLockResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StaticsLockResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StaticsLockResponse
)
ProtoMessage
()
{}
func
(
*
StaticsLockResponse
)
ProtoMessage
()
{}
func
(
*
StaticsLockResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
20
}
}
func
(
m
*
StaticsLockResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_StaticsLockResponse
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
StaticsLockResponse
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_StaticsLockResponse
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
StaticsLockResponse
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StaticsLockResponse
.
Merge
(
m
,
src
)
}
func
(
m
*
StaticsLockResponse
)
XXX_Size
()
int
{
return
xxx_messageInfo_StaticsLockResponse
.
Size
(
m
)
}
func
(
m
*
StaticsLockResponse
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StaticsLockResponse
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_StaticsLockResponse
proto
.
InternalMessageInfo
func
(
m
*
StaticsLockResponse
)
GetAll
()
*
StaticsLock
{
func
(
m
*
StaticsLockResponse
)
GetAll
()
*
StaticsLock
{
if
m
!=
nil
{
if
m
!=
nil
{
...
@@ -1133,495 +240,81 @@ func (m *StaticsLockResponse) GetSingle() *StaticsLockSingle {
...
@@ -1133,495 +240,81 @@ func (m *StaticsLockResponse) GetSingle() *StaticsLockSingle {
}
}
type
StaticsResponse
struct
{
type
StaticsResponse
struct
{
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
StaticsResponse
)
Reset
()
{
*
m
=
StaticsResponse
{}
}
func
(
m
*
StaticsResponse
)
Reset
()
{
*
m
=
StaticsResponse
{}
}
func
(
m
*
StaticsResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StaticsResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StaticsResponse
)
ProtoMessage
()
{}
func
(
*
StaticsResponse
)
ProtoMessage
()
{}
func
(
*
StaticsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
21
}
}
func
(
m
*
StaticsResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_StaticsResponse
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
StaticsResponse
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_StaticsResponse
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
StaticsResponse
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StaticsResponse
.
Merge
(
m
,
src
)
}
func
(
m
*
StaticsResponse
)
XXX_Size
()
int
{
return
xxx_messageInfo_StaticsResponse
.
Size
(
m
)
}
func
(
m
*
StaticsResponse
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StaticsResponse
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_StaticsResponse
proto
.
InternalMessageInfo
type
StaticsLock
struct
{
type
StaticsLock
struct
{
Balance
string
`protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
Balance
string
`protobuf:"bytes,1,opt,name=balance" json:"balance,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
StaticsLock
)
Reset
()
{
*
m
=
StaticsLock
{}
}
func
(
m
*
StaticsLock
)
Reset
()
{
*
m
=
StaticsLock
{}
}
func
(
m
*
StaticsLock
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StaticsLock
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StaticsLock
)
ProtoMessage
()
{}
func
(
*
StaticsLock
)
ProtoMessage
()
{}
func
(
*
StaticsLock
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
22
}
}
func
(
m
*
StaticsLock
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_StaticsLock
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
StaticsLock
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_StaticsLock
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
StaticsLock
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StaticsLock
.
Merge
(
m
,
src
)
}
func
(
m
*
StaticsLock
)
XXX_Size
()
int
{
return
xxx_messageInfo_StaticsLock
.
Size
(
m
)
}
func
(
m
*
StaticsLock
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StaticsLock
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_StaticsLock
proto
.
InternalMessageInfo
func
(
m
*
StaticsLock
)
GetBalance
()
string
{
if
m
!=
nil
{
return
m
.
Balance
}
return
""
}
type
StaticsDeposit
struct
{
type
StaticsDeposit
struct
{
Supply
string
`protobuf:"bytes,1,opt,name=supply,proto3" json:"supply,omitempty"`
Supply
string
`protobuf:"bytes,1,opt,name=supply" json:"supply,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
StaticsDeposit
)
Reset
()
{
*
m
=
StaticsDeposit
{}
}
func
(
m
*
StaticsDeposit
)
Reset
()
{
*
m
=
StaticsDeposit
{}
}
func
(
m
*
StaticsDeposit
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StaticsDeposit
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StaticsDeposit
)
ProtoMessage
()
{}
func
(
*
StaticsDeposit
)
ProtoMessage
()
{}
func
(
*
StaticsDeposit
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
23
}
}
func
(
m
*
StaticsDeposit
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_StaticsDeposit
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
StaticsDeposit
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_StaticsDeposit
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
StaticsDeposit
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StaticsDeposit
.
Merge
(
m
,
src
)
}
func
(
m
*
StaticsDeposit
)
XXX_Size
()
int
{
return
xxx_messageInfo_StaticsDeposit
.
Size
(
m
)
}
func
(
m
*
StaticsDeposit
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StaticsDeposit
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_StaticsDeposit
proto
.
InternalMessageInfo
func
(
m
*
StaticsDeposit
)
GetSupply
()
string
{
if
m
!=
nil
{
return
m
.
Supply
}
return
""
}
type
StaticsLockSingle
struct
{
type
StaticsLockSingle
struct
{
TotalLockedAccumated
int64
`protobuf:"varint,1,opt,name=totalLockedAccumated,proto3" json:"totalLockedAccumated,omitempty"`
TotalLockedAccumated
int64
`protobuf:"varint,1,opt,name=totalLockedAccumated" json:"totalLockedAccumated,omitempty"`
Locked
[]
int64
`protobuf:"varint,2,rep,packed,name=locked,proto3" json:"locked,omitempty"`
Locked
[]
int64
`protobuf:"varint,2,rep,name=locked" json:"locked,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
StaticsLockSingle
)
Reset
()
{
*
m
=
StaticsLockSingle
{}
}
func
(
m
*
StaticsLockSingle
)
Reset
()
{
*
m
=
StaticsLockSingle
{}
}
func
(
m
*
StaticsLockSingle
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
StaticsLockSingle
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
StaticsLockSingle
)
ProtoMessage
()
{}
func
(
*
StaticsLockSingle
)
ProtoMessage
()
{}
func
(
*
StaticsLockSingle
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
24
}
}
func
(
m
*
StaticsLockSingle
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_StaticsLockSingle
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
StaticsLockSingle
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_StaticsLockSingle
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
StaticsLockSingle
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_StaticsLockSingle
.
Merge
(
m
,
src
)
}
func
(
m
*
StaticsLockSingle
)
XXX_Size
()
int
{
return
xxx_messageInfo_StaticsLockSingle
.
Size
(
m
)
}
func
(
m
*
StaticsLockSingle
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_StaticsLockSingle
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_StaticsLockSingle
proto
.
InternalMessageInfo
func
(
m
*
StaticsLockSingle
)
GetTotalLockedAccumated
()
int64
{
if
m
!=
nil
{
return
m
.
TotalLockedAccumated
}
return
0
}
func
(
m
*
StaticsLockSingle
)
GetLocked
()
[]
int64
{
if
m
!=
nil
{
return
m
.
Locked
}
return
nil
}
type
TransferToken
struct
{
type
TransferToken
struct
{
TokenAddr
string
`protobuf:"bytes,1,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
TokenAddr
string
`protobuf:"bytes,1,opt,name=tokenAddr" json:"tokenAddr,omitempty"`
FromKey
string
`protobuf:"bytes,2,opt,name=fromKey,proto3" json:"fromKey,omitempty"`
FromKey
string
`protobuf:"bytes,2,opt,name=fromKey" json:"fromKey,omitempty"`
ToAddr
string
`protobuf:"bytes,3,opt,name=toAddr,proto3" json:"toAddr,omitempty"`
ToAddr
string
`protobuf:"bytes,3,opt,name=toAddr" json:"toAddr,omitempty"`
Amount
string
`protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
Amount
string
`protobuf:"bytes,4,opt,name=amount" json:"amount,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
TransferToken
)
Reset
()
{
*
m
=
TransferToken
{}
}
func
(
m
*
TransferToken
)
Reset
()
{
*
m
=
TransferToken
{}
}
func
(
m
*
TransferToken
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
TransferToken
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransferToken
)
ProtoMessage
()
{}
func
(
*
TransferToken
)
ProtoMessage
()
{}
func
(
*
TransferToken
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
25
}
}
func
(
m
*
TransferToken
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TransferToken
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TransferToken
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TransferToken
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
TransferToken
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TransferToken
.
Merge
(
m
,
src
)
}
func
(
m
*
TransferToken
)
XXX_Size
()
int
{
return
xxx_messageInfo_TransferToken
.
Size
(
m
)
}
func
(
m
*
TransferToken
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TransferToken
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TransferToken
proto
.
InternalMessageInfo
func
(
m
*
TransferToken
)
GetTokenAddr
()
string
{
if
m
!=
nil
{
return
m
.
TokenAddr
}
return
""
}
func
(
m
*
TransferToken
)
GetFromKey
()
string
{
if
m
!=
nil
{
return
m
.
FromKey
}
return
""
}
func
(
m
*
TransferToken
)
GetToAddr
()
string
{
if
m
!=
nil
{
return
m
.
ToAddr
}
return
""
}
func
(
m
*
TransferToken
)
GetAmount
()
string
{
if
m
!=
nil
{
return
m
.
Amount
}
return
""
}
type
Uint64
struct
{
type
Uint64
struct
{
Data
uint64
`protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"`
Data
uint64
`protobuf:"varint,1,opt,name=data" json:"data,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
Uint64
)
Reset
()
{
*
m
=
Uint64
{}
}
func
(
m
*
Uint64
)
Reset
()
{
*
m
=
Uint64
{}
}
func
(
m
*
Uint64
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Uint64
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Uint64
)
ProtoMessage
()
{}
func
(
*
Uint64
)
ProtoMessage
()
{}
func
(
*
Uint64
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
26
}
}
func
(
m
*
Uint64
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Uint64
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Uint64
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Uint64
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Uint64
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Uint64
.
Merge
(
m
,
src
)
}
func
(
m
*
Uint64
)
XXX_Size
()
int
{
return
xxx_messageInfo_Uint64
.
Size
(
m
)
}
func
(
m
*
Uint64
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Uint64
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Uint64
proto
.
InternalMessageInfo
func
(
m
*
Uint64
)
GetData
()
uint64
{
if
m
!=
nil
{
return
m
.
Data
}
return
0
}
type
TokenStatics
struct
{
type
TokenStatics
struct
{
TokenAddr
string
`protobuf:"bytes,1,opt,name=tokenAddr,proto3" json:"tokenAddr,omitempty"`
TokenAddr
string
`protobuf:"bytes,1,opt,name=tokenAddr" json:"tokenAddr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
TokenStatics
)
Reset
()
{
*
m
=
TokenStatics
{}
}
func
(
m
*
TokenStatics
)
Reset
()
{
*
m
=
TokenStatics
{}
}
func
(
m
*
TokenStatics
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
TokenStatics
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TokenStatics
)
ProtoMessage
()
{}
func
(
*
TokenStatics
)
ProtoMessage
()
{}
func
(
*
TokenStatics
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
27
}
}
func
(
m
*
TokenStatics
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TokenStatics
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TokenStatics
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TokenStatics
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
TokenStatics
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TokenStatics
.
Merge
(
m
,
src
)
}
func
(
m
*
TokenStatics
)
XXX_Size
()
int
{
return
xxx_messageInfo_TokenStatics
.
Size
(
m
)
}
func
(
m
*
TokenStatics
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TokenStatics
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TokenStatics
proto
.
InternalMessageInfo
func
(
m
*
TokenStatics
)
GetTokenAddr
()
string
{
if
m
!=
nil
{
return
m
.
TokenAddr
}
return
""
}
type
EventLogIndex
struct
{
type
EventLogIndex
struct
{
Height
uint64
`protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Height
uint64
`protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
Index
uint32
`protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
Index
uint32
`protobuf:"varint,2,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
EventLogIndex
)
Reset
()
{
*
m
=
EventLogIndex
{}
}
func
(
m
*
EventLogIndex
)
Reset
()
{
*
m
=
EventLogIndex
{}
}
func
(
m
*
EventLogIndex
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
EventLogIndex
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
EventLogIndex
)
ProtoMessage
()
{}
func
(
*
EventLogIndex
)
ProtoMessage
()
{}
func
(
*
EventLogIndex
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
28
}
}
func
(
m
*
EventLogIndex
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_EventLogIndex
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
EventLogIndex
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_EventLogIndex
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
EventLogIndex
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_EventLogIndex
.
Merge
(
m
,
src
)
}
func
(
m
*
EventLogIndex
)
XXX_Size
()
int
{
return
xxx_messageInfo_EventLogIndex
.
Size
(
m
)
}
func
(
m
*
EventLogIndex
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_EventLogIndex
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_EventLogIndex
proto
.
InternalMessageInfo
func
(
m
*
EventLogIndex
)
GetHeight
()
uint64
{
if
m
!=
nil
{
return
m
.
Height
}
return
0
}
func
(
m
*
EventLogIndex
)
GetIndex
()
uint32
{
if
m
!=
nil
{
return
m
.
Index
}
return
0
}
type
EthTxStatus
struct
{
type
EthTxStatus
struct
{
Status
string
`protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
Status
string
`protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
Txhash
string
`protobuf:"bytes,2,opt,name=txhash,proto3" json:"txhash,omitempty"`
Txhash
string
`protobuf:"bytes,2,opt,name=txhash" json:"txhash,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
}
func
(
m
*
EthTxStatus
)
Reset
()
{
*
m
=
EthTxStatus
{}
}
func
(
m
*
EthTxStatus
)
Reset
()
{
*
m
=
EthTxStatus
{}
}
func
(
m
*
EthTxStatus
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
EthTxStatus
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
EthTxStatus
)
ProtoMessage
()
{}
func
(
*
EthTxStatus
)
ProtoMessage
()
{}
func
(
*
EthTxStatus
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_202a89775a80bd4c
,
[]
int
{
29
}
}
func
(
m
*
EthTxStatus
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_EthTxStatus
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
EthTxStatus
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_EthTxStatus
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
EthTxStatus
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_EthTxStatus
.
Merge
(
m
,
src
)
}
func
(
m
*
EthTxStatus
)
XXX_Size
()
int
{
return
xxx_messageInfo_EthTxStatus
.
Size
(
m
)
}
func
(
m
*
EthTxStatus
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_EthTxStatus
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_EthTxStatus
proto
.
InternalMessageInfo
func
(
m
*
EthTxStatus
)
GetStatus
()
string
{
if
m
!=
nil
{
return
m
.
Status
}
return
""
}
func
(
m
*
EthTxStatus
)
GetTxhash
()
string
{
if
m
!=
nil
{
return
m
.
Txhash
}
return
""
}
func
init
()
{
proto
.
RegisterType
((
*
Account4Relayer
)(
nil
),
"types.Account4Relayer"
)
proto
.
RegisterType
((
*
ValidatorAddr4EthRelayer
)(
nil
),
"types.ValidatorAddr4EthRelayer"
)
proto
.
RegisterType
((
*
Txhashes
)(
nil
),
"types.Txhashes"
)
proto
.
RegisterType
((
*
ReqSetPasswd
)(
nil
),
"types.ReqSetPasswd"
)
proto
.
RegisterType
((
*
Account4Show
)(
nil
),
"types.Account4Show"
)
proto
.
RegisterType
((
*
AssetType
)(
nil
),
"types.assetType"
)
proto
.
RegisterType
((
*
EthBridgeClaim
)(
nil
),
"types.EthBridgeClaim"
)
proto
.
RegisterType
((
*
ImportKeyReq
)(
nil
),
"types.ImportKeyReq"
)
proto
.
RegisterType
((
*
RelayerRunStatus
)(
nil
),
"types.RelayerRunStatus"
)
proto
.
RegisterType
((
*
NewProphecyClaim
)(
nil
),
"types.NewProphecyClaim"
)
proto
.
RegisterType
((
*
BalanceAddr
)(
nil
),
"types.BalanceAddr"
)
proto
.
RegisterType
((
*
MintToken
)(
nil
),
"types.MintToken"
)
proto
.
RegisterType
((
*
ApproveAllowance
)(
nil
),
"types.ApproveAllowance"
)
proto
.
RegisterType
((
*
LockEthErc20
)(
nil
),
"types.LockEthErc20"
)
proto
.
RegisterType
((
*
ReplyAddr
)(
nil
),
"types.ReplyAddr"
)
proto
.
RegisterType
((
*
ReplyBalance
)(
nil
),
"types.ReplyBalance"
)
proto
.
RegisterType
((
*
Burn
)(
nil
),
"types.Burn"
)
proto
.
RegisterType
((
*
StaticsRequest
)(
nil
),
"types.StaticsRequest"
)
proto
.
RegisterType
((
*
StaticsAll
)(
nil
),
"types.StaticsAll"
)
proto
.
RegisterType
((
*
StaticsSingle
)(
nil
),
"types.StaticsSingle"
)
proto
.
RegisterType
((
*
StaticsLockResponse
)(
nil
),
"types.StaticsLockResponse"
)
proto
.
RegisterType
((
*
StaticsResponse
)(
nil
),
"types.StaticsResponse"
)
proto
.
RegisterType
((
*
StaticsLock
)(
nil
),
"types.StaticsLock"
)
proto
.
RegisterType
((
*
StaticsDeposit
)(
nil
),
"types.StaticsDeposit"
)
proto
.
RegisterType
((
*
StaticsLockSingle
)(
nil
),
"types.StaticsLockSingle"
)
proto
.
RegisterType
((
*
TransferToken
)(
nil
),
"types.TransferToken"
)
proto
.
RegisterType
((
*
Uint64
)(
nil
),
"types.Uint64"
)
proto
.
RegisterType
((
*
TokenStatics
)(
nil
),
"types.TokenStatics"
)
proto
.
RegisterType
((
*
EventLogIndex
)(
nil
),
"types.EventLogIndex"
)
proto
.
RegisterType
((
*
EthTxStatus
)(
nil
),
"types.EthTxStatus"
)
}
func
init
()
{
func
init
()
{
proto
.
RegisterFile
(
"relayer.proto"
,
fileDescriptor_202a89775a80bd4c
)
}
var
fileDescriptor_202a89775a80bd4c
=
[]
byte
{
// 983 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,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
0x6f
,
0xa0
,
0x3b
,
0x36
,
0xd9
,
0xe4
,
0x61
,
0xe3
,
0x3b
,
0xd2
,
0x59
,
0xbe
,
0x23
,
0xab
,
0xbf
,
0xa4
,
0xad
,
0xf2
,
0x92
,
0xb5
,
0xe8
,
0xba
,
0xed
,
0x7e
,
0x02
,
0x8f
,
0xff
,
0x09
,
0x00
,
0x00
,
0xff
,
0xff
,
0x93
,
0x4d
,
0xd2
,
0x14
,
0x15
,
0x0a
,
0x00
,
0x00
,
}
}
plugin/dapp/x2Ethereum/testsh/allRelayerTest.sh
View file @
5e4e66a6
...
@@ -43,7 +43,7 @@ maturityDegree=10
...
@@ -43,7 +43,7 @@ maturityDegree=10
function
InitAndDeploy
()
{
function
InitAndDeploy
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
result
=
$(${
CLIA
}
relayer set_pwd
-
n
123456hzj
-o
kk
)
result
=
$(${
CLIA
}
relayer set_pwd
-
p
123456hzj
)
cli_ret
"
${
result
}
"
"set_pwd"
cli_ret
"
${
result
}
"
"set_pwd"
result
=
$(${
CLIA
}
relayer unlock
-p
123456hzj
)
result
=
$(${
CLIA
}
relayer unlock
-p
123456hzj
)
...
@@ -64,7 +64,7 @@ function EthImportKey() {
...
@@ -64,7 +64,7 @@ function EthImportKey() {
# 导入测试地址私钥
# 导入测试地址私钥
CLI
=
"../build/ebcli_
$name
"
CLI
=
"../build/ebcli_
$name
"
result
=
$(${
CLI
}
relayer set_pwd
-
n
123456hzj
-o
kk
)
result
=
$(${
CLI
}
relayer set_pwd
-
p
123456hzj
)
#cli_ret "${result}" "set_pwd"
#cli_ret "${result}" "set_pwd"
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
...
...
plugin/dapp/x2Ethereum/testsh/bridgeBankTest.sh
View file @
5e4e66a6
...
@@ -35,7 +35,7 @@ prophecyTx6="0x772260c98aec81b3e235af47c355db720f60e751cce100fed6f334e1b1530bde"
...
@@ -35,7 +35,7 @@ prophecyTx6="0x772260c98aec81b3e235af47c355db720f60e751cce100fed6f334e1b1530bde"
InitAndDeploy
()
{
InitAndDeploy
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
result
=
$(${
CLI
}
relayer set_pwd
-
n
123456hzj
-o
kk
)
result
=
$(${
CLI
}
relayer set_pwd
-
p
123456hzj
)
cli_ret
"
${
result
}
"
"set_pwd"
cli_ret
"
${
result
}
"
"set_pwd"
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
...
...
plugin/dapp/x2Ethereum/testsh/ebrelayerTest.sh
View file @
5e4e66a6
...
@@ -30,7 +30,7 @@ InitAndDeploy() {
...
@@ -30,7 +30,7 @@ InitAndDeploy() {
cp
'../build/ebrelayer'
'../build/A/ebrelayer'
cp
'../build/ebrelayer'
'../build/A/ebrelayer'
start_ebrelayer
"./../build/A/ebrelayer"
"./../build/A/ebrelayer.log"
start_ebrelayer
"./../build/A/ebrelayer"
"./../build/A/ebrelayer.log"
result
=
$(${
CLIA
}
relayer set_pwd
-
n
123456hzj
-o
kk
)
result
=
$(${
CLIA
}
relayer set_pwd
-
p
123456hzj
)
cli_ret
"
${
result
}
"
"set_pwd"
cli_ret
"
${
result
}
"
"set_pwd"
result
=
$(${
CLIA
}
relayer unlock
-p
123456hzj
)
result
=
$(${
CLIA
}
relayer unlock
-p
123456hzj
)
...
@@ -83,7 +83,7 @@ function ImportCBDKey() {
...
@@ -83,7 +83,7 @@ function ImportCBDKey() {
# 导入测试地址私钥
# 导入测试地址私钥
CLI
=
"../build/ebcli_
$name
"
CLI
=
"../build/ebcli_
$name
"
result
=
$(${
CLI
}
relayer set_pwd
-
n
123456hzj
-o
kk
)
result
=
$(${
CLI
}
relayer set_pwd
-
p
123456hzj
)
cli_ret
"
${
result
}
"
"set_pwd"
cli_ret
"
${
result
}
"
"set_pwd"
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
...
...
plugin/dapp/x2Ethereum/testsh/publicTest.sh
View file @
5e4e66a6
...
@@ -165,7 +165,7 @@ function start_ebrelayer_and_setpwd_unlock() {
...
@@ -165,7 +165,7 @@ function start_ebrelayer_and_setpwd_unlock() {
local
CLI
=
"./ebcli_
$1
"
local
CLI
=
"./ebcli_
$1
"
local
count
=
0
local
count
=
0
while
true
;
do
while
true
;
do
result
=
$(${
CLI
}
relayer set_pwd
-
n
123456hzj
-o
kk
| jq
-r
.isOK
)
result
=
$(${
CLI
}
relayer set_pwd
-
p
123456hzj
| jq
-r
.isOK
)
if
[[
${
result
}
==
"true"
]]
;
then
if
[[
${
result
}
==
"true"
]]
;
then
break
break
fi
fi
...
...
plugin/dapp/x2Ethereum/testsh/x2ethereumTest.sh
View file @
5e4e66a6
...
@@ -35,7 +35,7 @@ maturityDegree=10
...
@@ -35,7 +35,7 @@ maturityDegree=10
function
InitAndDeploy
()
{
function
InitAndDeploy
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
result
=
$(${
CLI
}
relayer set_pwd
-
n
123456hzj
-o
kk
)
result
=
$(${
CLI
}
relayer set_pwd
-
p
123456hzj
)
cli_ret
"
${
result
}
"
"set_pwd"
cli_ret
"
${
result
}
"
"set_pwd"
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
...
@@ -49,7 +49,7 @@ function InitAndDeploy() {
...
@@ -49,7 +49,7 @@ function InitAndDeploy() {
function
EthImportKey
()
{
function
EthImportKey
()
{
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
begin ===========
${
NOC
}
"
result
=
$(${
CLI
}
relayer set_pwd
-
n
123456hzj
-o
kk
)
result
=
$(${
CLI
}
relayer set_pwd
-
p
123456hzj
)
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj
)
...
@@ -94,7 +94,7 @@ function StartRelayerAndDeploy() {
...
@@ -94,7 +94,7 @@ function StartRelayerAndDeploy() {
# 重启 ebrelayer 并解锁
# 重启 ebrelayer 并解锁
start_ebrelayer
"../build/ebrelayer"
"../build/ebrelayer.log"
start_ebrelayer
"../build/ebrelayer"
"../build/ebrelayer.log"
${
CLI
}
relayer set_pwd
-
n
123456hzj
-o
kk
${
CLI
}
relayer set_pwd
-
p
123456hzj
${
CLI
}
relayer unlock
-p
123456hzj
${
CLI
}
relayer unlock
-p
123456hzj
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
echo
-e
"
${
GRE
}
===========
$FUNCNAME
end ===========
${
NOC
}
"
...
...
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