forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bridge.go
23 lines (21 loc) · 1.12 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
package relayer
import (
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"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)
FilterMessageProcessed(opts *bind.FilterOpts, msgHash [][32]byte) (*bridge.BridgeMessageProcessedIterator, error)
MessageStatus(opts *bind.CallOpts, msgHash [32]byte) (uint8, error)
ProcessMessage(opts *bind.TransactOpts, _message bridge.IBridgeMessage, _proof []byte) (*types.Transaction, error)
FilterMessageStatusChanged(
opts *bind.FilterOpts,
msgHash [][32]byte,
) (*bridge.BridgeMessageStatusChangedIterator, error)
ParseMessageSent(log types.Log) (*bridge.BridgeMessageSent, error)
IsMessageReceived(opts *bind.CallOpts, _message bridge.IBridgeMessage, _proof []byte) (bool, error)
SendMessage(opts *bind.TransactOpts, _message bridge.IBridgeMessage) (*types.Transaction, error)
Paused(opts *bind.CallOpts) (bool, error)
}