Commit Graph

17 Commits

Author SHA1 Message Date
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
derpy-duck 92dbc20c8b
Forge tests faster (#117)
* fast tests

* forge fmt

* add --via-ir to build

* remove forge test-fast; just run forge test for the same effect

* remove outdated and unused folder
2023-03-10 10:41:12 -05:00
Sebastián Claudio Nale 44cd7ee49b Set `viaIR` flag in foundry.toml 2023-02-21 12:56:07 -03:00
derpy-duck d434221240
Install with forge not npm (#84)
* forge install: openzeppelin-contracts

v4.8.1

* Using openzeppelin from forge, not npm

* Keep original import

* Remove undesired changes

* add back a @

* makefile changes

* makefile changes

* Remove .gitmodules

* Remove submodule

* remove defaultSettings

* removed submodule openzeppelin

* original package-lock

* uninstall @openzeppelin

* remove truffle-config + two outdated READMEs

* Trying to remove solc

* Revert "Trying to remove solc"

This reverts commit 4debc9d127.

* Trying to remove solc
2023-02-14 10:42:04 -05:00
derpy-duck 20bb4c7f8e
Think about upper limits (#68)
* Change arbitrary contraints

* higher limit asset conversion buffer

* Remove unnecessary constraints on tests, and impose lighter constraints

* Forge fmt

* change to power of 2, and remove fuzz=25 limit

* set deliver gas overhead nonzero (#71)

* Fix previous redelivery tests to test emitting of InvalidRedelivery r… (#69)

* Fix previous redelivery tests to test emitting of InvalidRedelivery rather than the old reverting

* remove extraneous comment

* forge fmt

* Actually fix contracts to work for 2^256
2023-01-31 16:23:58 -05:00
chase-45 6cf8f489c2 contract status scripts 2023-01-27 15:01:50 -07:00
derpy-duck 1e14fe901f
Change CI Forge Testing Check to run 25 times instead of 256 (#54) 2023-01-19 14:27:39 -05:00
Sebastián Claudio Nale ef844a465f Ensures test build and common build are the same.
This avoids unnecessary recompilation in CI pipeline.
2023-01-17 15:11:41 -07:00
Joe Howarth 121ad6d84b test against testnet 2023-01-11 11:38:45 -07:00
chase-45 cd26ace599 core relayer contracts upgrade via governance 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
Reptile d3b6470936
Add tests for send and deliver functionality (#9)
* Complete send and deliver functionality

* Clean up

* Add tests for relayer send method

* ethereum: remove interfaces

* ethereum: fix test

* ethereum: rename directory

* ethereum: clean up; add ts tests

* Add tests and clean up

* ethereum: fix test

* ethereum: fix output

* Add reentrancy protection and reduce gas overhead for relayers

* Add tests for full batch delivery

* Update relayer contracts to reflect changes to batch VAA implementation

* add rewards payout

* implement redeliveries, replay protection

* Complete full batch test suite

* sdk: add sdk

* sdk: fix package.json

* Add partial batch unit test and add to integration test

* Fix comments in integration test

* sdk: fix tsconfig.json

* ethereum: fix build

* Add relayer registration to integration test

* Finish integration test suite

* ethereum: fix readAbi

* ethereum: fix merge conflict

* Complete full batch test suite

* Add partial batch unit test and add to integration test

* Finish integration test suite

* Fix local validator test

* Fix merge conflict

* Add Makefile

* Add documentation to relayer contracts

* Fix Makefile

* ethereum: clean up

* ethereum: fix interface

* ethereum: fix method names and tests

* Prepare integration test for off-chain relayer changes

* Refactor contracts

Co-authored-by: Drew <dsterioti@users.noreply.github.com>
Co-authored-by: Karl Kempe <karlkempe@users.noreply.github.com>
Co-authored-by: valentin <valentinvonalbrecht@yahoo.de>
Co-authored-by: justinschuldt <justinschuldt@gmail.com>
2022-09-30 11:18:49 -05:00
Karl Kempe 517cfe91e3 offchain-gas-oracle: add offchain oracle 2022-09-15 09:30:32 -05:00
Karl Kempe c353018247 ethereum: fix GasOracle; remove files; fix build and tests 2022-09-15 09:30:32 -05:00
Drew 725f92683b
Add wormhole artifacts 2022-09-09 15:10:12 +00:00