Commit Graph

241 Commits

Author SHA1 Message Date
chase-45 2dc8d45b95 typescript tooling major refactor 2023-01-09 14:50:44 -07:00
chase-45 d49fec47cc relay provider proxies through itself 2023-01-09 14:50:44 -07:00
scnale c4df1ecbab
Removes redundant abicoder pragmas. (#33)
See https://docs.soliditylang.org/en/latest/080-breaking-changes.html#silent-changes-of-the-semantics
2023-01-09 15:14:40 -05:00
Joe Howarth dec426b1e6
remove go offchain relayer in favor of relayer-engine (#25) 2023-01-09 15:13:22 -05:00
derpy-duck db159946bb Redelivery Error Testing - Errors 1, 9-17 2023-01-06 22:27:03 +00:00
Joe Howarth d9f9dfb173 run forge fmt 2023-01-05 17:46:58 -07:00
derpy-duck a8bccd6753 Start of revert tests 2023-01-05 17:46:25 -07:00
dependabot[bot] c95e4db5ff
build(deps): bump json5 from 1.0.1 to 1.0.2 in /ethereum (#28)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-05 18:17:47 -05:00
dependabot[bot] 46619bc9cf
build(deps): bump decode-uri-component in /relayer_engine/src/plugin (#27)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-05 18:17:41 -05:00
dependabot[bot] d4e1a156d1
build(deps): bump json5 from 1.0.1 to 1.0.2 in /sdk (#26)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-05 18:17:33 -05:00
Joe Howarth ac22124e6c
add pkeys.sh to gitignore, fix imports (#24) 2023-01-05 18:04:30 -05: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 ddc421bb90
Update comments and interface (#9)
* Update comments and interface

* Remove casting to uint8 in struct definitions

Co-authored-by: gator-boi <gator-boi@users.noreply.github.com>
2022-10-31 14:57:07 -05:00
A5 Pickle b8b35d0c8d
update README (#5)
Co-authored-by: A5 Pickle <a5-pickle@users.noreply.github.com>
2022-10-06 12:39:31 -05:00
A5 Pickle 684912a8ba
Merge pull request #4 from wormhole-foundation/core-relayer/integration
Clean up send (#2)
2022-10-06 12:19:04 -05:00
A5 Pickle 0b9e81ffc5
Clean up send (#2)
* Update README.md with trustlessness

* ethereum: rename AllowedEmitterSequence; remove arbitrary payloads

* ethereum: refactor integrator contract; add verifying payload

* ethereum: update IWormhole

* ethereum: add message verifying in mock integration

* Remove deliveryList from DeliveryInstructions and fix stack too deep

* Remove maximum batch size from relay parameters

* ethereum: fix observation loop; formatting

* sdk: fix eth-integration test

* offchain-relayer: add regenerate-abi.sh

* fix Makefile

* offchain-relayer: add relayer.tilt.yaml

Co-authored-by: Evan Gray <56235822+evan-gray@users.noreply.github.com>
Co-authored-by: A5 Pickle <a5-pickle@users.noreply.github.com>
Co-authored-by: gator-boi <gator-boi@users.noreply.github.com>
2022-10-06 12:16:57 -05:00
Evan Gray f88ca0fcec
Update README.md with trustlessness 2022-10-05 02:22:20 -04:00
wonge97 4ea2a42a92
generic relayer README (#13)
* Add WHITEPAPER.md

* proposing slightly different documentation

* Update README.md

Co-authored-by: Karl Kempe <karlkempe@users.noreply.github.com>
Co-authored-by: Drew <dsterioti@users.noreply.github.com>
2022-10-03 10:03:51 -05:00
Reptile 7a75a33d19
Start offchain-relayer process in integration test script (#12)
Co-authored-by: Drew <dsterioti@users.noreply.github.com>
2022-10-03 08:30:17 -05:00
Justin Schuldt 86c5f26b54
rm "npm run abigen" from eth/Mathfile (#11) 2022-09-30 13:29:17 -05:00
Justin Schuldt fbadea1de9
add offchain-relayer (#10)
* add offchain-relayer

* Update test to use off-chain relayer

Co-authored-by: Drew <dsterioti@users.noreply.github.com>
2022-09-30 12:58:39 -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 66d5155971 Add WHITEPAPER.md 2022-09-23 16:42:01 -05:00
Drew f714f8928e Update LICENSE 2022-09-21 16:04:18 -05:00
Karl Kempe f3072f2402 offchain-gas-oracle: add balances for debugging cost 2022-09-15 09:30:32 -05:00
Karl Kempe 60436ae59f offchain-gas-oracle: add config check 2022-09-15 09:30:32 -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
Karl Kempe a58e046a35 ethereum: fix Makefile 2022-09-15 09:30:32 -05:00
Karl Kempe a317a3715e ethereum: remove build directories 2022-09-15 09:30:32 -05:00
Karl Kempe 1385bd1172 ethereum: fix test 2022-09-13 17:00:31 -05:00
Karl Kempe a5bd4d3793 ethereum: fix .gitignore 2022-09-13 17:00:31 -05:00
Karl Kempe e546efde92 ethereum: fix interface 2022-09-13 17:00:31 -05:00
Karl Kempe 504b4c0012 ethereum: remove state variable 2022-09-13 17:00:31 -05:00
Karl Kempe 3c631db55f ethereum: fix gasOracle constructor 2022-09-13 17:00:31 -05:00
Karl Kempe 9c0a213e95 ethereum: remove proxy 2022-09-13 17:00:31 -05:00
Karl Kempe dc98293ae5 ethereum: add updatePrices 2022-09-13 17:00:31 -05:00
Karl Kempe 70a7af84ee ethereum: Clean up; fix GasOracle; add tests 2022-09-13 17:00:31 -05:00
Drew c263f84a32
Add foundy install script 2022-09-09 16:25:49 +00:00
Drew 725f92683b
Add wormhole artifacts 2022-09-09 15:10:12 +00:00
Reptile dd834504a3
Initial commit 2022-09-08 19:15:31 -05:00