Commit Graph

45 Commits

Author SHA1 Message Date
scnale 2ed875bef7
Updates prices in `RelayProvider` in batch. (#122) 2023-03-24 14:04:02 -04:00
chase-45 2ea98eaa8d
Typescript SDK (#79)
* sdk additions, query delivery status functions

* import fixes

* imports

* Fixes for getDeliveryStatusBySourceTx

* Fix typo in invalidRedeliveryTopics

* Use negative number feature of queryFilter

* 2047 -> 2040

* WIP

* Typescript test for statusByTx

* small changes

* revert reason WIP

* continued WIP for getting revert reason

* Remove reason parsing

* WIP adding default RPCs

* compiles

* SDK nicely prints delivery information!

* SDK nicely prints delivery information!

* Change error msg

* Tests pass, including test for resending a failed forward!

* Enum

* update SDK in relayer engine

* remove testgovernance file

* Nice error logging around not finding a delivery

* Update relayer engine sdk

* Respond to PR comments

* Fix test

* fixed new lines

* helper

---------

Co-authored-by: derpy-duck <115193320+derpy-duck@users.noreply.github.com>
2023-03-15 15:32:33 -07:00
Joe Howarth eff19d28aa
Continuously send messages to create load (#118)
* save

* Continuously send messages to create load

* add metrics
2023-03-14 10:45:03 -07:00
Joe Howarth a0484dead1
Contract deploys (#112)
* Contract deploys

* save
2023-02-28 16:42:53 -05:00
derpy-duck 7416880825
Miscellaneous fixes (#104)
* resend doesn't take nonce as parameter

* Replace 'delivery failure' with 'receiver failure' in specs

* helper send method

* Fix interface to match not having nonce for resend

* Fix forge tests to not have nonce as a parameter

* fix redeliveryTest

* fix build error

* forge fmt

* fix interface of getdefaultrelayprovider
2023-02-27 18:49:38 -05:00
scnale a1df44b3ee
Eliminates redundant `await`s. (#98)
* Eliminates redundant `await`s.

* Adds a couple of missing `await`s.
2023-02-21 16:17:39 -05:00
derpy-duck 30c8d162e3 changes to get typescript test to work 2023-02-14 14:08:21 -05:00
derpy-duck f5c1fe3a7b Multidelivery, forwarding tests work + Relayer engine fix! 2023-02-14 14:08:21 -05:00
derpy-duck 249145af86 Forwarding test passes! 2023-02-14 14:08:21 -05:00
derpy-duck ae5e23cd67 Fix typescript types pt 2 2023-02-14 14:08:21 -05:00
Joe Howarth dee6ba7081 improve message test 2023-02-14 14:08:21 -05:00
derpy-duck 7ec66047b3 typescript test 2023-02-14 14:08:21 -05:00
derpy-duck 58f34e0805 First relayprovider typescript test 2023-02-14 14:08:21 -05:00
derpy-duck fa2018cd0e Fix type in redeliveryTest.ts 2023-02-13 17:13:42 -05:00
derpy-duck 4b420f66ed Run typechain 2023-02-13 17:13:42 -05:00
derpy-duck 346df2e017 Most forge tests pass 2023-02-13 17:13:42 -05:00
derpy-duck 1f69c238d7 forge builds! 2023-02-13 17:13:42 -05:00
Joe Howarth 3c2f114801 remove contracts.json 2023-02-09 15:48:57 -07:00
Joe Howarth ecae2090dc update package-lock.json 2023-02-09 15:48:57 -07:00
Joe Howarth 813c2181ad save 2023-02-01 12:18:56 -07:00
Joe Howarth 935a6732c1 Test redelivery 2023-02-01 12:18:56 -07:00
Joe Howarth b0644fa083 improve message test again 2023-01-27 15:01:50 -07:00
Joe Howarth 68f23a373e set buffer and denom in configureRelayProvider 2023-01-27 15:01:50 -07:00
Joe Howarth 0095681f02 save 2023-01-27 15:01:50 -07:00
Joe Howarth 0682d34d47 Deployment 2/26 2023-01-27 15:01:50 -07:00
chase-45 6cf8f489c2 contract status scripts 2023-01-27 15:01:50 -07:00
Joe Howarth d49fcb128e fix configure relay provider 2023-01-18 13:28:53 -07:00
Joe Howarth 4cdeca0d34 improve deployment 2023-01-18 13:28:53 -07:00
derpy-duck 04999b89eb fix typecheck errors 2023-01-18 13:05:33 -07:00
Joe Howarth da21f00fbb update script 2023-01-17 15:19:08 -07:00
Joe Howarth 4443138296 improve contract deployment infra for bsc and polygon t
estnet deploys
2023-01-17 15:19:08 -07:00
Sebastián Claudio Nale 75f3a1a7a3 Github actions workflow that tests and typechecks. 2023-01-17 15:11:41 -07:00
Joe Howarth ee829d12bf First k8s deployment 2023-01-17 11:02:12 -07:00
Joe Howarth 121ad6d84b test against testnet 2023-01-11 11:38:45 -07:00
Joe Howarth 0e2e6dc7f2 commit testnet contract addresses 2023-01-09 14:50:44 -07:00
Joe Howarth cef9610d8c Fix deployment scripts to work against testnet 2023-01-09 14:50:44 -07:00
Joe Howarth cd1f2fce37 testnet config entries 2023-01-09 14:50:44 -07:00
chase-45 12a09d8b24 upgrade script by VAA for core relayer 2023-01-09 14:50:44 -07:00
chase-45 5bd7ba46ab CoreRelayerLibrary for governance + ts scripts for vaa registrations 2023-01-09 14:50:44 -07:00
chase-45 cd26ace599 core relayer contracts upgrade via governance 2023-01-09 14:50:44 -07:00
chase-45 2b511f97c0 Upgrade script for RelayProvider 2023-01-09 14:50:44 -07:00
chase-45 e2dbc6f5f5 README file for ts tooling 2023-01-09 14:50:44 -07:00
chase-45 7005533a23 refactoring & cleanup in ts tooling 2023-01-09 14:50:44 -07:00
chase-45 2dc8d45b95 typescript tooling major refactor 2023-01-09 14:50:44 -07:00
Joe Howarth ab833b38cf
Move development branch to main (#23)
* refactoring for multidelivery

* partial ts-test fixes

* use typechain in integration tests, update prettier, fix remaining integration tests

* run formatter on solidity files

* gas refunding

* gas forwarding logic

* msg.send -> refundAmount

* minor test refactor & additions

* created relayer engine directory

* more testing & tilt environment config for relayer engine

* starting work on the xMint example contracts

* additions for relayer engine

* minor modifications & todos

* fixed some errors

* refactoring + cleaned up some TODOs

* updated ICoreRelayer interface

* adjusted tests for new interface

* Working testSend

* Merged refactoring + cleaned up some TODOs

* updated ICoreRelayer interface

* adjusted tests for new interface

* Working testSend with new interface'

* refactoring interfaces & files for single VAA design

* GasOracle implementation of new interface

* GasOracle compiles

* Gas oracle upgradable

* Fix compile errors in GasOracleGovernance

* minor core relayer cleanup

* Changes to getters, setters, state

* implement quoteEvmDeliveryPrice, quoteTargetEvmGas, assetConversionAmount for corerelayer

* Correcting interface inconsistencies between CoreRelayerStructs and ICoreRelayer

* Fix encodeDeliveryRequestsContainer

* added single vaa delivery entrypoint logic

* Encode and Decode delivery instructions

* Fixed many compile errors

* First attempt at removing stacktoodeep error

* Commenting out chunks of code to identify stack too deep error

* Continue stack too deep quest

* Revert "Commenting out chunks of code to identify stack too deep error"

This reverts commit 8cd55d26ce.

* Revert "Continue stack too deep quest"

This reverts commit f0cde6871e.

* Fix stack too deep error in CoreRelayerMessages

* tests compile, run, pass

* fixing up fee collection assertions

* GasOracle tests altering

* Rename encodeDeliveryIntructions to convertToEncodedDeliveryInstructions because we are going from delivery request to delivery instruction

* adding evm events to delivery execution

* forwarding refactor for single vaa

* relay provider name refactor

* Test file slight refactor to allow for multiple chains

* first impl of hub and spoke example

* Forward test progress

* Forwarding test passes!

* More general parameters for test

* Testing file more modular, calls 'generic relayer'

* redelivery implementation

* removing todos

* Tests can use arbitrary amount of chains

* Address various TODOs

* refactored RelayProvider to be upgradeable via proxy

* Add overhead inteface to RelayProvider & adjusted necessary fee calculations

* added TODOs related to rewardAddress payout

* provider price quoting changes

* provider payments made at source

* Fixed all compile errors

* testForward and testSend pass again!

* Switched quoteAssetConversion to quoteApplicationBudgetFee in CoreRelayer interface

* First round of changes to support individual vaas in offchain relayer

- Use new custom plugin event source api in relayer engine
- Supports mulit delivery
- Config for celo and fuji

* contracts deploy successfully to tilt

* bug fixes, contracts deploy to tilt

* Starting the redelivery test

* Tests pass again, with exception of the RelayProvider tests that tested reverts, and the new testRedelivery which isn't finished

* small plugin changes

* MockRelayerIntegration is used for sending

* prepare offchain relayer to run in both tilt and testnet

* update readme and npm scripts for offchain relayer

* nit: remove console.log(argv)

* solc version bump

* Tests changed to pass (commented out the tests with differing require statements and kept redelivery incomplete

* chain registration typescript scripts

* Redeliver works!

* Redelivery test works!

* testnet deploy + relayer engine test

* Testing two sends

* Friday changes to round trip on testnet

* Shortening current tests

* Funds are correct! Relayer gets paid!

* Remove extraneous comments

* ts scripts for deployment and config

* Wormhole Fee Test

Co-authored-by: chase-45 <chasemoran45@gmail.com>
Co-authored-by: derpy-duck <115193320+derpy-duck@users.noreply.github.com>
2023-01-05 17:26:27 -05:00