-
Notifications
You must be signed in to change notification settings - Fork 3
/
contract.go
26 lines (22 loc) · 1.97 KB
/
contract.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
package vsl
import (
"github.com/ethereum/go-ethereum/common"
"github.com/rss3-network/node/provider/ethereum/contract"
)
// L1StandardBridge https://etherscan.io/address/0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1
//go:generate go run --mod=mod github.com/ethereum/go-ethereum/cmd/abigen --abi ./abi/L1StandardBridge.abi --pkg vsl --type L1StandardBridge --out contract_l1_standard_bridge.go
// L2StandardBridge https://optimistic.etherscan.io/address/0x4200000000000000000000000000000000000010
//go:generate go run --mod=mod github.com/ethereum/go-ethereum/cmd/abigen --abi ./abi/L2StandardBridge.abi --pkg vsl --type L2StandardBridge --out contract_l2_standard_bridge.go
var (
AddressL1RSS3 = common.HexToAddress("0xc98D64DA73a6616c42117b582e832812e7B8D57F")
AddressL2RSS3 = common.HexToAddress("0x4200000000000000000000000000000000000042")
AddressL1StandardBridge = common.HexToAddress("0x4cbab69108Aa72151EDa5A3c164eA86845f18438")
AddressL2StandardBridge = common.HexToAddress("0x4200000000000000000000000000000000000010")
AddressL1OptimismPortal = common.HexToAddress("0x6A12432491bbbE8d3babf75F759766774C778Db4")
EventHashAddressL1StandardBridgeETHDepositInitiated = contract.EventHash("ETHDepositInitiated(address,address,uint256,bytes)")
EventHashAddressL1StandardBridgeERC20DepositInitiated = contract.EventHash("ERC20DepositInitiated(address,address,address,address,uint256,bytes)")
EventHashAddressL1StandardBridgeETHWithdrawalFinalized = contract.EventHash("ETHWithdrawalFinalized(address,address,uint256,bytes)")
EventHashAddressL1StandardBridgeERC20WithdrawalFinalized = contract.EventHash("ERC20WithdrawalFinalized(address,address,address,address,uint256,bytes)")
EventHashAddressL2StandardBridgeWithdrawalInitiated = contract.EventHash("WithdrawalInitiated(address,address,address,address,uint256,bytes)")
EventHashAddressL2StandardBridgeDepositFinalized = contract.EventHash("DepositFinalized(address,address,address,address,uint256,bytes)")
)