-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add native ETH support to relayer #1840
Merged
Merged
Changes from 64 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
eb4c98e
WIP: initial relayer api
dwasse 0129b41
WIP: use ByTxID naming
dwasse c740fbf
Feat: add GetQuoteRequestStatusByTxHash
dwasse 571e865
WIP: initial impl for PUT /tx/retry
dwasse 521e7fa
Cleanup: comments
dwasse 2e2eba3
Feat: add OriginTxHash to QuoteRequest, RequestForQuote models
dwasse de99481
Merge branch 'feat/rfq-origin-tx-hash' into feat/rfq-status
dwasse 20123b6
Feat: fetch request by origin tx hash instead of dest
dwasse 29a27d7
WIP: initial relayer api suite
dwasse 90d1f5f
Feat: add /health endpoint
dwasse 8645575
Feat: add TestGetQuoteRequestByTxHash
dwasse 902f4aa
Fix: use /health in TestNewAPIServer
dwasse 86d01e7
Feat: add TestGetQuoteRequestByTxID
dwasse 8689d37
Cleanup: reorder funcs
dwasse a7a9cf2
WIP: add TestPutTxRetry
dwasse 165f46f
Feat: PutTxRetry -> GetTxRetry, remove auth
dwasse c352481
WIP: set chain IDs on test request
dwasse 5e3f0a7
Fix: set transaction submitter in suite
dwasse ee218b2
Feat: check for submitted tx in TestGetTxRetry
dwasse a5b254f
Cleanup: add SubmitRelay func to deduplicate code
dwasse b99e4fa
Cleanup: lints
dwasse 27b7998
Cleanup: lints
dwasse d75654b
Merge branch 'master' into feat/rfq-status update w/ working test [go…
trajan0x 32db813
Fix: bump server start timeout
dwasse 833fca4
Lint: disable depguard
dwasse acd3f44
Fix: check nil tx in TestListenForEvents
dwasse aa743d2
Cleanup: use itoa instead of sprintf
dwasse 831c50d
[goreleaser] Bump timeout on server startup
dwasse 1cca179
Fix: server_test
dwasse 5ca7680
Merge branch 'master' into feat/rfq-status
dwasse f42f2ce
[goreleaser] Cleanup: lint
dwasse dbed1e3
WIP: add relayer api config
dwasse 2c57477
WIP: add new chain pkg, add APIConfig section for relayer api
dwasse 0d0615c
Cleanup: lint
dwasse 4e4e4d4
Cleanup: APIConfig -> RelayerAPIConfig
dwasse 9abe98c
Cleanup: APIServer -> QuoterAPIServer
dwasse 49b6ce4
Fix: build
dwasse 98dcf6b
Merge branch 'master' into feat/rfq-status
dwasse 83aa7d9
Cleanup: lint
dwasse 51f719d
Fix: build
dwasse 497bdff
Cleanup: lint
dwasse 6a297fb
[goreleaser] Merge branch 'master' into feat/rfq-status
dwasse 5dbd12e
Cleanup: lint
dwasse 5fa3598
[goreleaser] Remove redundant RelayerAPIConfig section
dwasse 6beb0f7
Merge branch 'master' into feat/rfq-status [goreleaser]
trajan0x 070766c
Feat: add MinGasToken to relayer config
dwasse ae13600
WIP: initial gas token bridging logic
dwasse 5f08473
Merge branch 'master' into feat/rfq-eth
dwasse 4fe8a8a
Feat: add TestGenerateQuotesForNativeToken
dwasse 48eef61
Fix: GetMinGasToken doesn't error on unset val
dwasse 98a1b9f
Feat: inventory manager registers native token metadata
dwasse 78755ae
Feat: add TestETHtoETH integration test
dwasse ae965b4
Fix: TestUSDCtoUSDC
dwasse ee72578
Cleanup: lint
dwasse 1fd187b
Cleanup: isNative -> isGasToken, remove unnecessary lines
dwasse fb09c14
Merge branch 'master' into feat/rfq-eth
dwasse 883fbe1
Add `hasSufficientGas` check in quote processing (#1939)
dwasse c7425b6
[goreleaser]
dwasse df3cfb3
Fix: eth to eth integration test
dwasse baa8aef
[goreleaser] fix panic
trajan0x 23429f9
update quoter/generated files
trajan0x 059a279
Merge branch 'master' into feat/rfq-eth
trajan0x 3460b8a
fix err assertion
trajan0x f687e5d
CI: lower individual timeout to 5m, increase retries
dwasse f78c023
Revert "CI: lower individual timeout to 5m, increase retries"
dwasse 3a68063
Fix: Skip TestETHtoETH for now pending anvil fix
dwasse 644d58c
Fix: check CI env var to run integration tests
dwasse File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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,11 @@ | ||
package chain | ||
|
||
import "github.com/ethereum/go-ethereum/common" | ||
|
||
// EthAddress is the address of a chain's native gas token. | ||
var EthAddress = common.HexToAddress("0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE") | ||
|
||
// IsGasToken returns true if the given token is the gas token. | ||
func IsGasToken(token common.Address) bool { | ||
return token == EthAddress | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The configuration for the "ETH" token within the
setupRelayer
function correctly sets theAddress
field usingchain.EthAddress.String()
, ensuring that the native Ethereum token is recognized and handled properly by the relayer. This change is crucial for supporting native Ethereum transactions without requiring wrapping into ERC-20 tokens. However, ensure that thePriceUSD
andDecimals
values are accurate and reflect the current standards for Ethereum. Additionally, consider externalizing these values to a configuration file or environment variables for easier updates and maintenance.