-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Fix/message parsing #81
Changes from 7 commits
be942e0
29ce6c9
3417783
0b76b87
4ac99be
4522b47
f700af6
4b11612
27be4d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package headerharness | ||
|
||
//go:generate go run github.com/synapsecns/sanguine/tools/abigen generate --sol ../../../../packages/contracts/flattened/HeaderHarness.sol --pkg headerharness --sol-version 0.8.13 --filename headerharness | ||
// line after go:generate cannot be left blank |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package headerharness | ||
|
||
import ( | ||
"fmt" | ||
"github.com/ethereum/go-ethereum/accounts/abi/bind" | ||
"github.com/ethereum/go-ethereum/common" | ||
"github.com/ethereum/go-ethereum/core/vm" | ||
) | ||
|
||
// HeaderHarnessRef is a header harness reference | ||
//nolint: golint | ||
type HeaderHarnessRef struct { | ||
*HeaderHarness | ||
address common.Address | ||
} | ||
|
||
// Address gets the address of the contract. | ||
func (h HeaderHarnessRef) Address() common.Address { | ||
return h.address | ||
} | ||
|
||
// NewHeaderHarnessRef creates a new header harness. | ||
func NewHeaderHarnessRef(address common.Address, backend bind.ContractBackend) (*HeaderHarnessRef, error) { | ||
contract, err := NewHeaderHarness(address, backend) | ||
if err != nil { | ||
return nil, fmt.Errorf("could not create header harness: %w", err) | ||
} | ||
|
||
return &HeaderHarnessRef{ | ||
HeaderHarness: contract, | ||
address: address, | ||
}, nil | ||
} | ||
|
||
var _ vm.ContractRef = &HeaderHarnessRef{} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package updatermanager | ||
|
||
//go:generate go run github.com/synapsecns/synapse-node/testutils/codegen/abigen generate --sol ../../../packages/contracts/build/UpdaterManager.sol --pkg updatermanager --sol-version 0.8.13 --filename updatemanager | ||
//go:generate go run github.com/synapsecns/synapse-node/testutils/codegen/abigen generate --sol ../../../packages/contracts/flattened/UpdaterManager.sol --pkg updatermanager --sol-version 0.8.13 --filename updatemanager |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the purpose of this? is it okay to comment it out