Skip to content

Commit

Permalink
Feat: overwrite existing fastbridge abi with multicall version
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Oct 9, 2024
1 parent 653b0b3 commit bdb2742
Show file tree
Hide file tree
Showing 24 changed files with 18 additions and 12,628 deletions.
2 changes: 1 addition & 1 deletion services/rfq/contracts/fastbridge/bridgestatus_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions services/rfq/contracts/fastbridge/events.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package fastbridge
package fastbridgemulti

import (
"bytes"
"strings"

"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"strings"
)

// TODO: consider not exporting to avoid accidental mutation.
Expand Down
2 changes: 1 addition & 1 deletion services/rfq/contracts/fastbridge/eventtype_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/rfq/contracts/fastbridge/export_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fastbridge
package fastbridgemulti

// GetAllBridgeStatuses exports all bridge statuses for testing.
func GetAllBridgeStatuses() []BridgeStatus {
Expand Down
12,220 changes: 0 additions & 12,220 deletions services/rfq/contracts/fastbridge/fastbridge.abigen.go

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions services/rfq/contracts/fastbridge/fastbridge.metadata.go

This file was deleted.

4 changes: 2 additions & 2 deletions services/rfq/contracts/fastbridge/generate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package fastbridge
package fastbridgemulti

//go:generate go run github.com/synapsecns/sanguine/tools/abigen generate --sol ../../../../packages/contracts-rfq/flattened/FastBridge.sol --pkg fastbridge --sol-version 0.8.20 --filename fastbridge --evm-version istanbul
//go:generate go run github.com/synapsecns/sanguine/tools/abigen generate --sol ../../../../packages/contracts-rfq/flattened/FastBridge.sol --pkg fastbridgemulti --sol-version 0.8.20 --filename fastbridgemulti --evm-version istanbul
2 changes: 1 addition & 1 deletion services/rfq/contracts/fastbridge/helper.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fastbridge
package fastbridgemulti

import (
"github.com/ethereum/go-ethereum/accounts/abi/bind"
Expand Down
3 changes: 2 additions & 1 deletion services/rfq/contracts/fastbridge/parser.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package fastbridge
package fastbridgemulti

import (
"fmt"

"github.com/ethereum/go-ethereum/common"
ethTypes "github.com/ethereum/go-ethereum/core/types"
)
Expand Down
2 changes: 1 addition & 1 deletion services/rfq/contracts/fastbridge/status.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fastbridge
package fastbridgemulti

// BridgeStatus is an enum for the on-chain status of a request
//
Expand Down
11 changes: 6 additions & 5 deletions services/rfq/contracts/fastbridge/status_test.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package fastbridge_test
package fastbridgemulti_test

import (
"math/big"
"testing"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/stretchr/testify/suite"
"github.com/synapsecns/sanguine/core/testsuite"
"github.com/synapsecns/sanguine/ethergo/backends"
"github.com/synapsecns/sanguine/ethergo/backends/simulated"
"github.com/synapsecns/sanguine/services/rfq/contracts/fastbridge"
"github.com/synapsecns/sanguine/services/rfq/contracts/fastbridgemulti"
"github.com/synapsecns/sanguine/services/rfq/testutil"
"math/big"
"testing"
)

// FastBridgeSuite tests the basic test suite.
Expand Down Expand Up @@ -40,7 +41,7 @@ func (s *FastBridgeSuite) SetupTest() {
// TestStatusEnum makes sure.
func (s *FastBridgeSuite) TestStatusEnum() {
_, fb := s.manager.GetMockFastBridge(s.GetTestContext(), s.backend)
for _, status := range fastbridge.GetAllBridgeStatuses() {
for _, status := range fastbridgemulti.GetAllBridgeStatuses() {
solstatus, err := fb.GetEnumKeyByValue(&bind.CallOpts{Context: s.GetTestContext()}, status.Int())
s.Require().NoError(err, "error getting enum key by value")
s.Require().Equal(solstatus, status.String(), "status %s does not match. BridgeStatus enums out of sync.", status)
Expand Down
27 changes: 0 additions & 27 deletions services/rfq/contracts/fastbridgemulti/bridgestatus_string.go

This file was deleted.

82 changes: 0 additions & 82 deletions services/rfq/contracts/fastbridgemulti/events.go

This file was deleted.

28 changes: 0 additions & 28 deletions services/rfq/contracts/fastbridgemulti/eventtype_string.go

This file was deleted.

6 changes: 0 additions & 6 deletions services/rfq/contracts/fastbridgemulti/export_test.go

This file was deleted.

3 changes: 0 additions & 3 deletions services/rfq/contracts/fastbridgemulti/generate.go

This file was deleted.

35 changes: 0 additions & 35 deletions services/rfq/contracts/fastbridgemulti/helper.go

This file was deleted.

Loading

1 comment on commit bdb2742

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[stale:feat/relayer-multicall]

@dwasse Your branch feat/relayer-multicall hasn't been updated in the last 60 days and is marked as stale. It will be removed in a week. If a pull request is open on this branch, you can ignore this message, you can always restore your branch on the pull request link.
If you want to keep this branch around, delete this comment or add new commits to this branch.

Please sign in to comment.