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
8ed37c85
Commit
8ed37c85
authored
Dec 17, 2021
by
hezhengjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update contracts
parent
c92b55a0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
39 deletions
+49
-39
BridgeBank.sol
...eth/contracts/contracts4chain33/BridgeBank/BridgeBank.sol
+2
-2
EthereumBank.sol
...h/contracts/contracts4chain33/BridgeBank/EthereumBank.sol
+1
-0
BridgeBank.go
...s2eth/contracts/contracts4chain33/generated/BridgeBank.go
+0
-0
config.pb.go
plugin/dapp/cross2eth/ebrelayer/types/config.pb.go
+44
-34
relayer.pb.go
plugin/dapp/cross2eth/ebrelayer/types/relayer.pb.go
+2
-3
No files found.
plugin/dapp/cross2eth/contracts/contracts4chain33/BridgeBank/BridgeBank.sol
View file @
8ed37c85
...
...
@@ -181,10 +181,10 @@ contract BridgeBank is EthereumBank, Chain33Bank {
)
public
{
return
burn
EthereumTokens(
return
withdraw
EthereumTokens(
msg.sender,
_ethereumReceiver,
_
ethereum
TokenAddress,
_
bridge
TokenAddress,
_amount
);
}
...
...
plugin/dapp/cross2eth/contracts/contracts4chain33/BridgeBank/EthereumBank.sol
View file @
8ed37c85
...
...
@@ -232,6 +232,7 @@ contract EthereumBank {
bridgeTokenCreated[symHash] = true;
depositBurnWithdrawCounts[newBridgeTokenAddress] = DepositBurnWithdrawCount(
uint256(0),
uint256(0),
uint256(0));
token2address[symHash] = newBridgeTokenAddress;
...
...
plugin/dapp/cross2eth/contracts/contracts4chain33/generated/BridgeBank.go
View file @
8ed37c85
This source diff could not be displayed because it is too large. You can
view the blob
instead.
plugin/dapp/cross2eth/ebrelayer/types/config.pb.go
View file @
8ed37c85
...
...
@@ -7,12 +7,11 @@
package
types
import
(
reflect
"reflect"
sync
"sync"
proto
"github.com/golang/protobuf/proto"
protoreflect
"google.golang.org/protobuf/reflect/protoreflect"
protoimpl
"google.golang.org/protobuf/runtime/protoimpl"
reflect
"reflect"
sync
"sync"
)
const
(
...
...
@@ -307,6 +306,7 @@ type RelayerConfig struct {
BridgeRegistryOnChain33
string
`protobuf:"bytes,12,opt,name=bridgeRegistryOnChain33,proto3" json:"bridgeRegistryOnChain33,omitempty"`
ChainName
string
`protobuf:"bytes,13,opt,name=chainName,proto3" json:"chainName,omitempty"`
ChainID4Chain33
int32
`protobuf:"varint,14,opt,name=chainID4Chain33,proto3" json:"chainID4Chain33,omitempty"`
ProcessWithDraw
bool
`protobuf:"varint,15,opt,name=processWithDraw,proto3" json:"processWithDraw,omitempty"`
}
func
(
x
*
RelayerConfig
)
Reset
()
{
...
...
@@ -439,6 +439,13 @@ func (x *RelayerConfig) GetChainID4Chain33() int32 {
return
0
}
func
(
x
*
RelayerConfig
)
GetProcessWithDraw
()
bool
{
if
x
!=
nil
{
return
x
.
ProcessWithDraw
}
return
false
}
type
SyncTxReceiptConfig
struct
{
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
...
...
@@ -670,7 +677,7 @@ var file_config_proto_rawDesc = []byte{
0x52
,
0x0a
,
0x63
,
0x61
,
0x6c
,
0x6c
,
0x65
,
0x72
,
0x46
,
0x69
,
0x6c
,
0x65
,
0x12
,
0x26
,
0x0a
,
0x0e
,
0x63
,
0x61
,
0x6c
,
0x6c
,
0x65
,
0x72
,
0x46
,
0x75
,
0x6e
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x0a
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x0e
,
0x63
,
0x61
,
0x6c
,
0x6c
,
0x65
,
0x72
,
0x46
,
0x75
,
0x6e
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x22
,
0x
d2
,
0x04
,
0x0a
,
0x0d
,
0x52
,
0x65
,
0x6c
,
0x61
,
0x79
,
0x65
,
0x72
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x22
,
0x
fc
,
0x04
,
0x0a
,
0x0d
,
0x52
,
0x65
,
0x6c
,
0x61
,
0x79
,
0x65
,
0x72
,
0x43
,
0x6f
,
0x6e
,
0x66
,
0x69
,
0x67
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x74
,
0x69
,
0x74
,
0x6c
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x74
,
0x69
,
0x74
,
0x6c
,
0x65
,
0x12
,
0x37
,
0x0a
,
0x0c
,
0x73
,
0x79
,
0x6e
,
0x63
,
0x54
,
0x78
,
0x43
,
0x6f
,
0x6e
,
0x66
,
0x69
,
0x67
,
0x18
,
0x02
,
0x20
,
0x01
,
...
...
@@ -707,37 +714,40 @@ var file_config_proto_rawDesc = []byte{
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x09
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x4e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x28
,
0x0a
,
0x0f
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x49
,
0x44
,
0x34
,
0x43
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x33
,
0x33
,
0x18
,
0x0e
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x0f
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x49
,
0x44
,
0x34
,
0x43
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x33
,
0x33
,
0x22
,
0xa7
,
0x02
,
0x0a
,
0x13
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x54
,
0x78
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x43
,
0x6f
,
0x6e
,
0x66
,
0x69
,
0x67
,
0x12
,
0x20
,
0x0a
,
0x0b
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x33
,
0x33
,
0x68
,
0x6f
,
0x73
,
0x74
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x33
,
0x33
,
0x68
,
0x6f
,
0x73
,
0x74
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x48
,
0x6f
,
0x73
,
0x74
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x48
,
0x6f
,
0x73
,
0x74
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x4e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x4e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x42
,
0x69
,
0x6e
,
0x64
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x42
,
0x69
,
0x6e
,
0x64
,
0x12
,
0x28
,
0x0a
,
0x0f
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x48
,
0x65
,
0x69
,
0x67
,
0x68
,
0x74
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x0f
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x48
,
0x65
,
0x69
,
0x67
,
0x68
,
0x74
,
0x12
,
0x2c
,
0x0a
,
0x11
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x53
,
0x65
,
0x71
,
0x75
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x11
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x53
,
0x65
,
0x71
,
0x75
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x12
,
0x24
,
0x0a
,
0x0d
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x48
,
0x61
,
0x73
,
0x68
,
0x18
,
0x07
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0d
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x48
,
0x61
,
0x73
,
0x68
,
0x12
,
0x1c
,
0x0a
,
0x09
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x72
,
0x61
,
0x63
,
0x74
,
0x73
,
0x18
,
0x08
,
0x20
,
0x03
,
0x28
,
0x09
,
0x52
,
0x09
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x72
,
0x61
,
0x63
,
0x74
,
0x73
,
0x22
,
0xa4
,
0x01
,
0x0a
,
0x06
,
0x44
,
0x65
,
0x70
,
0x6c
,
0x6f
,
0x79
,
0x12
,
0x22
,
0x0a
,
0x0c
,
0x6f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x41
,
0x64
,
0x64
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0c
,
0x6f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x41
,
0x64
,
0x64
,
0x72
,
0x12
,
0x2e
,
0x0a
,
0x12
,
0x64
,
0x65
,
0x70
,
0x6c
,
0x6f
,
0x79
,
0x65
,
0x72
,
0x50
,
0x72
,
0x69
,
0x76
,
0x61
,
0x74
,
0x65
,
0x4b
,
0x65
,
0x79
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x12
,
0x44
,
0x34
,
0x43
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x33
,
0x33
,
0x12
,
0x28
,
0x0a
,
0x0f
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x65
,
0x73
,
0x73
,
0x57
,
0x69
,
0x74
,
0x68
,
0x44
,
0x72
,
0x61
,
0x77
,
0x18
,
0x0f
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x0f
,
0x70
,
0x72
,
0x6f
,
0x63
,
0x65
,
0x73
,
0x73
,
0x57
,
0x69
,
0x74
,
0x68
,
0x44
,
0x72
,
0x61
,
0x77
,
0x22
,
0xa7
,
0x02
,
0x0a
,
0x13
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x54
,
0x78
,
0x52
,
0x65
,
0x63
,
0x65
,
0x69
,
0x70
,
0x74
,
0x43
,
0x6f
,
0x6e
,
0x66
,
0x69
,
0x67
,
0x12
,
0x20
,
0x0a
,
0x0b
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x33
,
0x33
,
0x68
,
0x6f
,
0x73
,
0x74
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x63
,
0x68
,
0x61
,
0x69
,
0x6e
,
0x33
,
0x33
,
0x68
,
0x6f
,
0x73
,
0x74
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x48
,
0x6f
,
0x73
,
0x74
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x48
,
0x6f
,
0x73
,
0x74
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x4e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x4e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x42
,
0x69
,
0x6e
,
0x64
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x08
,
0x70
,
0x75
,
0x73
,
0x68
,
0x42
,
0x69
,
0x6e
,
0x64
,
0x12
,
0x28
,
0x0a
,
0x0f
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x48
,
0x65
,
0x69
,
0x67
,
0x68
,
0x74
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x0f
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x48
,
0x65
,
0x69
,
0x67
,
0x68
,
0x74
,
0x12
,
0x2c
,
0x0a
,
0x11
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x53
,
0x65
,
0x71
,
0x75
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x11
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x53
,
0x65
,
0x71
,
0x75
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x12
,
0x24
,
0x0a
,
0x0d
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x48
,
0x61
,
0x73
,
0x68
,
0x18
,
0x07
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0d
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x53
,
0x79
,
0x6e
,
0x63
,
0x48
,
0x61
,
0x73
,
0x68
,
0x12
,
0x1c
,
0x0a
,
0x09
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x72
,
0x61
,
0x63
,
0x74
,
0x73
,
0x18
,
0x08
,
0x20
,
0x03
,
0x28
,
0x09
,
0x52
,
0x09
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x72
,
0x61
,
0x63
,
0x74
,
0x73
,
0x22
,
0xa4
,
0x01
,
0x0a
,
0x06
,
0x44
,
0x65
,
0x70
,
0x6c
,
0x6f
,
0x79
,
0x12
,
0x22
,
0x0a
,
0x0c
,
0x6f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x41
,
0x64
,
0x64
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0c
,
0x6f
,
0x70
,
0x65
,
0x72
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x41
,
0x64
,
0x64
,
0x72
,
0x12
,
0x2e
,
0x0a
,
0x12
,
0x64
,
0x65
,
0x70
,
0x6c
,
0x6f
,
0x79
,
0x65
,
0x72
,
0x50
,
0x72
,
0x69
,
0x76
,
0x61
,
0x74
,
0x65
,
0x4b
,
0x65
,
0x79
,
0x12
,
0x26
,
0x0a
,
0x0e
,
0x76
,
0x61
,
0x6c
,
0x69
,
0x64
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x73
,
0x41
,
0x64
,
0x64
,
0x72
,
0x18
,
0x03
,
0x20
,
0x03
,
0x28
,
0x09
,
0x52
,
0x0e
,
0x76
,
0x61
,
0x6c
,
0x69
,
0x64
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x73
,
0x41
,
0x64
,
0x64
,
0x72
,
0x12
,
0x1e
,
0x0a
,
0x0a
,
0x69
,
0x6e
,
0x69
,
0x74
,
0x50
,
0x6f
,
0x77
,
0x65
,
0x72
,
0x73
,
0x18
,
0x04
,
0x20
,
0x03
,
0x28
,
0x03
,
0x52
,
0x0a
,
0x69
,
0x6e
,
0x69
,
0x74
,
0x50
,
0x6f
,
0x77
,
0x65
,
0x72
,
0x73
,
0x42
,
0x0a
,
0x5a
,
0x08
,
0x2e
,
0x2e
,
0x2f
,
0x74
,
0x79
,
0x70
,
0x65
,
0x73
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x65
,
0x79
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x12
,
0x64
,
0x65
,
0x70
,
0x6c
,
0x6f
,
0x79
,
0x65
,
0x72
,
0x50
,
0x72
,
0x69
,
0x76
,
0x61
,
0x74
,
0x65
,
0x4b
,
0x65
,
0x79
,
0x12
,
0x26
,
0x0a
,
0x0e
,
0x76
,
0x61
,
0x6c
,
0x69
,
0x64
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x73
,
0x41
,
0x64
,
0x64
,
0x72
,
0x18
,
0x03
,
0x20
,
0x03
,
0x28
,
0x09
,
0x52
,
0x0e
,
0x76
,
0x61
,
0x6c
,
0x69
,
0x64
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x73
,
0x41
,
0x64
,
0x64
,
0x72
,
0x12
,
0x1e
,
0x0a
,
0x0a
,
0x69
,
0x6e
,
0x69
,
0x74
,
0x50
,
0x6f
,
0x77
,
0x65
,
0x72
,
0x73
,
0x18
,
0x04
,
0x20
,
0x03
,
0x28
,
0x03
,
0x52
,
0x0a
,
0x69
,
0x6e
,
0x69
,
0x74
,
0x50
,
0x6f
,
0x77
,
0x65
,
0x72
,
0x73
,
0x42
,
0x0a
,
0x5a
,
0x08
,
0x2e
,
0x2e
,
0x2f
,
0x74
,
0x79
,
0x70
,
0x65
,
0x73
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
var
(
...
...
plugin/dapp/cross2eth/ebrelayer/types/relayer.pb.go
View file @
8ed37c85
...
...
@@ -7,12 +7,11 @@
package
types
import
(
reflect
"reflect"
sync
"sync"
proto
"github.com/golang/protobuf/proto"
protoreflect
"google.golang.org/protobuf/reflect/protoreflect"
protoimpl
"google.golang.org/protobuf/runtime/protoimpl"
reflect
"reflect"
sync
"sync"
)
const
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment