Skip to content
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

Sync with upstream repo #84

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Jan 6, 2025

Merge latest changes from upstream repo

pxrl and others added 13 commits January 3, 2025 13:03
This will be used to limit the fill size on testnet in order to preserve
the relayer's token balance.
* fix: sepolia bridge definitions

Signed-off-by: bennett <[email protected]>
---------

Signed-off-by: bennett <[email protected]>
* fix(Dataworker): Cannot fund DonationBox using MulticallerClient

The MulticallerClient has [logic](https://github.com/across-protocol/relayer/blob/40b0c7971a3548a0499e7fc5990d150437c527fb/src/clients/MultiCallerClient.ts#L361) that batches transactions together and attempts to `multicall()` them. This works normally with the `HubPool` and `SpokePool` which extend the `Multicaller()` interface.

However, we can't use this logic to make calls on ERC20's like we are doing to fund the `DonationBox`. Instead, we either need to update the `MulticallerClient` to handle cases where transactions are not multicall-able, or we can send these transactions to the `TransactionClient`.

In this PR, I added a new method `simulateAndSubmit` to the `TransactionClient` that the Dataworker uses to `transfer` custom gas tokens to the DonationBox.

* Update src/dataworker/Dataworker.ts

* Update Dataworker.executePoolRebalanceUtils.ts

* Update TransactionClient.ts

* Update TransactionClient.ts

* Update src/clients/TransactionClient.ts

Co-authored-by: James Morris, MS <[email protected]>

* Use Multicaller client

* Consolidate valueTxnsand nonMulticallTxns

* Update MultiCallerClient.ts

* Update MultiCallerClient.ts

---------

Co-authored-by: James Morris, MS <[email protected]>
…1969)

* improve(TransactionUtils): Use base fee multiplier

Builds on across-protocol/sdk#801 and applies relayer's base fee multiplier to new SDK parameter to scale the base fee

* Update TransactionUtils.ts

* Add unsignedTx to getGasPriceEstimate call in TransactionUtils `runTransaction` method

* Add warning

* Use baseFeeMultiplier in ProfitClient

* Remove relayer specific gas padding, add unit test about relayer fee calculator call

* Fix test

* Revert changes to ProfitClient

* Update TransactionUtils.ts

* import sdk

* 3.4.1

* 3.4.2

* 3.4.3

* Update logs

* Update ProfitClient.ts

* Update TransactionUtils.ts

* Update package.json

* Update yarn.lock

* Update TransactionUtils.ts

* Update TransactionUtils.ts

* Update package.json

* 3.4.5-beta.1

* 3.4.5
… fees (#1969)" (#1985)

This reverts commit 03e990d.

Backed out as a precaution against any stuck transactions across any of
the bots.
This is incorrectly dereferencing the `unprofitableDeposits` object, which is type `{ chainId: UnprofitableFill[] }`

Separately, the `depositMrkdwn` doesn't render well unless I put the ternary inside a ${} syntax
…ty log (#1990)

* improve(Relayer): Add information about message size to unprofitability log

Also, send warning about failure to estimate gas costs for deposit to a different slack channel than "unprofitable fills". We should isolate across-unprofitable-fills channel to only include messages for deposits that are unprofitable. The developer should then go to across-warn to figure

* Update Relayer.ts

* Update Relayer.ts

* fix(Relayer): Fix unprofitable deposit log

This is incorrectly dereferencing the `unprofitableDeposits` object, which is type `{ chainId: UnprofitableFill[] }`

Separately, the `depositMrkdwn` doesn't render well unless I put the ternary inside a ${} syntax

* Update Relayer.ts

* Update Relayer.ts

* Update Relayer.ts

* Update Relayer.ts

* Update Relayer.ts

* Update Relayer.ts
…s fees (#1969)" (#1985) (#1987)

* Reapply "improve: Use base fee multiplier option in SDK to resolve gas fees (#1969)" (#1985)

This reverts commit 7227995.

* Update TransactionUtils.ts

* Revert "Update TransactionUtils.ts"

This reverts commit 8e73663.

* import

* 3.4.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants