forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bridge.go
33 lines (30 loc) · 1.4 KB
/
bridge.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package relayer
import (
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/taikoxyz/taiko-mono/packages/relayer/bindings/bridge"
)
type Bridge interface {
IsMessageSent(opts *bind.CallOpts, _message bridge.IBridgeMessage) (bool, error)
FilterMessageSent(opts *bind.FilterOpts, msgHash [][32]byte) (*bridge.BridgeMessageSentIterator, error)
FilterMessageReceived(opts *bind.FilterOpts, msgHash [][32]byte) (*bridge.BridgeMessageReceivedIterator, error)
MessageStatus(opts *bind.CallOpts, msgHash [32]byte) (uint8, error)
ProcessMessage(opts *bind.TransactOpts, _message bridge.IBridgeMessage, _proof []byte) (*types.Transaction, error)
ProveMessageReceived(opts *bind.CallOpts, _message bridge.IBridgeMessage, _proof []byte) (bool, error)
FilterMessageStatusChanged(
opts *bind.FilterOpts,
msgHash [][32]byte,
) (*bridge.BridgeMessageStatusChangedIterator, error)
ParseMessageSent(log types.Log) (*bridge.BridgeMessageSent, error)
ProofReceipt(opts *bind.CallOpts, msgHash [32]byte) (struct {
ReceivedAt uint64
PreferredExecutor common.Address
}, error)
GetInvocationDelays(opts *bind.CallOpts) (struct {
InvocationDelay *big.Int
InvocationExtraDelay *big.Int
}, error)
SuspendMessages(opts *bind.TransactOpts, _msgHashes [][32]byte, _toSuspend bool) (*types.Transaction, error)
}