Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
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
exchain
nebula
Commits
d82af485
Commit
d82af485
authored
Nov 26, 2023
by
Hamdi Allam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove cdm abi types
parent
e3fa9416
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
27 deletions
+2
-27
cross_domain_messenger.go
indexer/processors/contracts/cross_domain_messenger.go
+2
-27
No files found.
indexer/processors/contracts/cross_domain_messenger.go
View file @
d82af485
...
@@ -4,7 +4,6 @@ import (
...
@@ -4,7 +4,6 @@ import (
"fmt"
"fmt"
"math/big"
"math/big"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum-optimism/optimism/indexer/bigint"
"github.com/ethereum-optimism/optimism/indexer/bigint"
...
@@ -13,31 +12,6 @@ import (
...
@@ -13,31 +12,6 @@ import (
"github.com/ethereum-optimism/optimism/op-chain-ops/crossdomain"
"github.com/ethereum-optimism/optimism/op-chain-ops/crossdomain"
)
)
var
(
// Standard ABI types copied from golang ABI tests
addressType
,
_
=
abi
.
NewType
(
"address"
,
""
,
nil
)
bytesType
,
_
=
abi
.
NewType
(
"bytes"
,
""
,
nil
)
uint256Type
,
_
=
abi
.
NewType
(
"uint256"
,
""
,
nil
)
CrossDomainMessengerLegacyRelayMessageEncoding
=
abi
.
NewMethod
(
"relayMessage"
,
"relayMessage"
,
abi
.
Function
,
"external"
,
// mutability
false
,
// isConst
true
,
// payable
abi
.
Arguments
{
// inputs
{
Name
:
"target"
,
Type
:
addressType
},
{
Name
:
"sender"
,
Type
:
addressType
},
{
Name
:
"data"
,
Type
:
bytesType
},
{
Name
:
"nonce"
,
Type
:
uint256Type
},
// The actual transaction on the legacy L1CrossDomainMessenger has a trailing
// proof argument but is ignored for the `XDomainCallData` encoding
},
abi
.
Arguments
{},
// outputs
)
)
type
CrossDomainMessengerSentMessageEvent
struct
{
type
CrossDomainMessengerSentMessageEvent
struct
{
Event
*
database
.
ContractEvent
Event
*
database
.
ContractEvent
BridgeMessage
database
.
BridgeMessage
BridgeMessage
database
.
BridgeMessage
...
@@ -117,7 +91,8 @@ func CrossDomainMessengerSentMessageEvents(chainSelector string, contractAddress
...
@@ -117,7 +91,8 @@ func CrossDomainMessengerSentMessageEvents(chainSelector string, contractAddress
default
:
default
:
// NOTE: We explicitly fail here since the presence of a new version means finalization
// NOTE: We explicitly fail here since the presence of a new version means finalization
// logic needs to be updated to ensure L1 finalization can run from genesis and handle
// logic needs to be updated to ensure L1 finalization can run from genesis and handle
// the changing version formats. This is meant to be a serving indicator of this.
// the changing version formats. Any unrelayed OVM1 messages that have been harcoded with
// the v1 hash format also need to be updated. This failure is a serving indicator
return
nil
,
fmt
.
Errorf
(
"expected cross domain version 0 or version 1: %d"
,
version
)
return
nil
,
fmt
.
Errorf
(
"expected cross domain version 0 or version 1: %d"
,
version
)
}
}
...
...
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