-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(opsim): handle deposit transactions
- Loading branch information
Showing
15 changed files
with
445 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package chainapi | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/ethereum/go-ethereum" | ||
"github.com/ethereum/go-ethereum/core/types" | ||
) | ||
|
||
type Chain interface { | ||
// metadata methods | ||
Endpoint() string | ||
ChainID() uint64 | ||
LogPath() string | ||
|
||
// API methods | ||
EthSendTransaction(ctx context.Context, tx *types.Transaction) error | ||
|
||
EthGetLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error) | ||
|
||
SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) | ||
} |
Submodule lib-keccak
added at
4f628e
Submodule openzeppelin-contracts
added at
fd81a9
Submodule openzeppelin-contracts-upgradeable
added at
0a2cb9
Submodule optimism
added at
9001ee
Submodule solady
added at
862a0a
Submodule solmate
added at
8f9b23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.