Commit Graph

90 Commits

Author SHA1 Message Date
derpy-duck ba8a09d6f7
save target address in state and use it to verify forwarding request (#75)
* save target address in state and use it to verify forwarding request

* Fix to Multideliveries/Multiforwards

* complete merge
2023-02-14 10:33:55 -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 e8637b2b01 Remove unused error messages 2023-02-13 17:13:42 -05:00
derpy-duck e22c98d028 forge fmt 2023-02-13 17:13:42 -05:00
derpy-duck b8db370dde Forge tests pass! 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
chase-45 67ff0b3baa interface refinement 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
derpy-duck e3c4ea0088
Add error messages to interface (#80)
* Add error messages to interface

* Make getDefaultRelayProvider view
2023-02-07 16:43:32 -05:00
derpy-duck d59bd6d82a
Remove provider from requestMultiforward interface (#78) 2023-02-06 12:27:05 -05:00
Sebastián Claudio Nale e1b57fb4df Avoids double read on the same storage slot. 2023-02-02 17:26:23 -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
derpy-duck fc06699266
subtract by the overhead from running gasleft() (#74)
* subtract by the overhead from running gasleft()

* Rename variable

* forge fmt

* Clamp to the upper gas limit

* Forge fmt

* Update ethereum/contracts/coreRelayer/CoreRelayer.sol

Co-authored-by: scnale <sebinale@gmail.com>

---------

Co-authored-by: scnale <sebinale@gmail.com>
2023-02-01 13:20:39 -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
Sebastián Claudio Nale 89c83235c5 Removes `truffle compile` and npm clean install for wormhole dependency.
This speeds up the CI pipeline considerably.
2023-01-31 12:07:30 -07:00
derpy-duck f96902d430
No forwards are allowed from addresses that aren't the targetAddress (#70) 2023-01-30 17:30:22 -05:00
Joe Howarth 48defa84a0 fix up ICoreRelayer 2023-01-29 14:46:35 -05:00
chase-45 312df2d862 redelivery draft 2023-01-29 14:46:35 -05:00
Sebastián Claudio Nale c5a4a6c89d Adds some debugging symbols and metadata for contracts in foundry.toml 2023-01-27 18:51:26 -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
derpy-duck 8b0a776946
Remove wormhole fee from delivery/redelivery quote (#63)
* merge

* Forge fmt
2023-01-26 17:08:42 -05:00
derpy-duck 673542854d
Redelivery fixes (#61)
* smart contract changes for redelivery

* Tests pass for new Redelivery interface

* remove console logs

* forge fmt

* forwarding interface fix

* Remove the rolloverChain parameter from requestForward

Co-authored-by: chase-45 <chasemoran45@gmail.com>
2023-01-26 15:10:44 -05:00
derpy-duck 5a3ff82c43
Application Budget Bugfixes (#60)
* Application Budget Fixes and Tests

* Adding application budget to redelivery test

* Application Budget Test with Redelivery Works

* remove console log import

* Remove console logs from tests

* Remove console logs from mockrelayerintegration

* Use uint32.max and fix outOfFund error in tests

* Removed unnecessary require
2023-01-26 14:27:57 -05:00
Sebastián Nale 7cd5b5871b Fixes typo in comment. 2023-01-24 21:30:21 -03:00
Sebastián Nale 03f8928c0d Documents RelayProviderState. 2023-01-24 21:30:21 -03:00
derpy-duck 546fc1969e
Save Gas: Remove Relay Protection on deliverSingle and redeliverSingle (#45)
* Remove replay protection on deliverSingle and redeliverSingle

* forge fmt

* redelivery fixes, events & relayer refund address

* Got tests passing again (still have to alter a few redelivery tests to validate the new emitted error)

* forge fmt

* Attempt at fixing typescript error

* Forge fmt

* Add indexed

* Fix tests to correctly obtain deliveryVaaHash due to new event structure

* forge fmt

Co-authored-by: chase-45 <chasemoran45@gmail.com>
2023-01-19 14:38:52 -05: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
agodnic 87cfc41bf5
Replace strings with typed errors (#37)
* Replace strings with typed errors

Replace strings with typed errors in `ethereum/contracts/relayProvider/*.sol`.

* Rename misleading identifier

* Update forge assertions to use typed errors

Update RelayProvider unit tests to use typed errors.

* Replace strings with typed errors

Replace strings with typed errors in `ethereum/contracts/coreRelayer/*.sol`.

* Update forge assertions to use typed errors

Update CoreRelayer unit tests to use typed errors.

* `forge fmt`
2023-01-19 09:59:35 -05:00
derpy-duck 9d51fd54ae
Fix bug related to refunding of application budget if delivery fails (#42)
* Fix bug related to refunding of application budget if delivery doesn't succeed

* forge fmt

* Fix some yul error

* forge fmt
2023-01-18 21:35:52 -05:00
derpy-duck 177862cd78
Allow governance to update asset conversion buffer, and also remove t… (#44)
* Allow governance to update asset conversion buffer, and also remove the dependency on source chain for asset conversion buffer

* forge fmt
2023-01-18 18:51:06 -05: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 9e3453709f forge fmt 2023-01-18 13:05:33 -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 a7fb5b46e9 Adds `skipLibCheck: true` to ethereum tsconfig. 2023-01-17 15:11:41 -07:00
Sebastián Claudio Nale 740a77d26c Adds some more granularity to `make build` rule in `ethereum`.
This allows using the checkout action in the CI workflow.
2023-01-17 15:11:41 -07: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
Sebastián Claudio Nale 75f3a1a7a3 Github actions workflow that tests and typechecks. 2023-01-17 15:11:41 -07:00
Agustin Godnic 0df6c6fbf0 Fix typo in `ethereum/Makefile`
Ran into this while compiling the project from scratch.
2023-01-17 15:11:41 -07:00
Joe Howarth ee829d12bf First k8s deployment 2023-01-17 11:02:12 -07:00