Commit Graph

57 Commits

Author SHA1 Message Date
Joe Howarth 48e206168b
Fix: get rx retry and overlapping block ranges (#120)
* Fix: get rx retry and overlapping block ranges

* ScopedLogger => Logger
2023-03-15 15:36:13 -07: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
Gabriel Zimmermann 844a407a3f
Adds k8s namespace & upgrade relayer engine (#113)
* Adds k8s namespace

* Upgrade relayer engine version

---------

Co-authored-by: Joe Howarth <josephehowarth@gmail.com>
2023-03-14 11:58:55 -07:00
Joe Howarth 68892ae849
Refactor plugin into mulitple file with more consistent names and helpers (#88) 2023-03-14 11:05:20 -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
derpy-duck f7de3d649d
Code cleanup (#109)
* DRY: Remove duplicate structs

* Move encode/decode/convert-request-to-instruction related files to CoreRelayerMessages

* remove rolloverchain; now it is just the chain of the first request

* forge test fix to accomdoate for removing two getters

* DRY: Remove repeated error messages

* Remove miscellaneous comments

* DRY send and forward

* replace relayprovider interface with address to match the IWormholeRelayer interface

* forge fmt

* Remove byteslib from CoreRelayer

* Remove the encoding and decoding of the delivery request -> just store the struct itself!

* forge fmt

* Rewriting of checks in send/resend/forward

* test passes

* DRY - Emit only one event

* DRY

* forge fmt

* Fix typescript error

* using IWormholeRelayer

* Consistent naming

* call wormhole.messageFee() once

* Remove unnecessary line

* Compute the length once, not every iteration

* forge tests pass
2023-02-27 14:32:57 -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 047fdb1abc
Dont relay not sufficiently funded (#95)
* Add fix to relayer engine not relaying not sufficiently funded messages. But Incomplete test; how to eventually relay these!

* comment out part of test that doesn't work

* Log info that the delivery instruction is not sufficiently funded
2023-02-17 15:05:42 -05:00
derpy-duck 30c8d162e3 changes to get typescript test to work 2023-02-14 14:08:21 -05:00
derpy-duck 8ebd9ca255 easier implementation of parsing deliveryinstructioncontainer 2023-02-14 14:08:21 -05:00
derpy-duck 840f18b931 Nonce is a uint32, not a uint256 2023-02-14 14:05:58 -05: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 94b6318643 Fix to Multideliveries/Multiforwards 2023-02-13 17:20:15 -05:00
derpy-duck b8db370dde Forge tests pass! 2023-02-13 17:13:42 -05:00
Joe Howarth b62927362b save 2023-02-09 15:48:57 -07:00
Joe Howarth 783ac90c90 Update package.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 2a3283dc8e solve db deadlock and incorrect wormholeRpc 2023-02-09 15:48:57 -07:00
Joe Howarth d34db742b1 update tilt wormhole rpc 2023-02-09 15:48:57 -07:00
Joe Howarth c4282f38cd configure relayer engine for tilt 2023-02-09 15:48:57 -07:00
Joe Howarth 84e83e1b63 fix return of consumeEvent 2023-02-07 10:16:46 -07:00
Gabriel Zimmermann 004f280ced Switches config back to memoryDB 2023-02-07 10:16:46 -07:00
Gabriel Zimmermann 9fa624e552 update relayer engine version 2023-02-07 10:16:46 -07:00
Gabriel Zimmermann 323723167c adds cluster flag to config 2023-02-07 10:16:46 -07:00
Gabriel Zimmermann 338e7fdf8f typing fix 2023-02-07 10:16:46 -07:00
Gabriel Zimmermann 9fc1c410fe minor plugin fixes due to interface changes and config updates 2023-02-07 10:16:46 -07:00
Joe Howarth 06250cc3c4 reference new relayer engine package 2023-02-07 10:16:46 -07:00
Gabriel Zimmermann 74f41bab30 Updates relayer engine hash version 2023-02-07 10:16:46 -07:00
Gabriel Zimmermann 55055bd088 Adds variables to deploy memorydb to relayer engine 2023-02-07 10:16:46 -07:00
Joe Howarth 7fa160e50e crearted -> created
Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
2023-02-01 12:18:56 -07:00
Joe Howarth 935a6732c1 Test redelivery 2023-02-01 12:18:56 -07:00
Joe Howarth 3cac2165b4 update with changes from 'redelidevery-fixes' branch 2023-01-29 14:46:35 -05:00
Joe Howarth 2cf9fb0dca refactor handle workflow 2023-01-29 14:46:35 -05:00
Joe Howarth 4f9e02111d save 2023-01-29 14:46:35 -05:00
Joe Howarth 387450aa5c redelivery code drafted, testing inconclusive 2023-01-29 14:46:35 -05:00
chase-45 312df2d862 redelivery draft 2023-01-29 14:46:35 -05:00
Joe Howarth b0644fa083 improve message test again 2023-01-27 15:01:50 -07:00
Joe Howarth 3f5588d26d improve messageTest and update configs 2023-01-27 15:01:50 -07:00
Joe Howarth feaa30abc7 update relayer engine config 2023-01-27 15:01:50 -07: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
Joe Howarth 7357f20f64 remove extra docker-publish gh action; use published image in simple-gr.yaml 2023-01-18 14:59:05 -07:00
Joe Howarth 4cdeca0d34 improve deployment 2023-01-18 13:28:53 -07:00
Joe Howarth c119f88024 save 2023-01-18 13:28:53 -07:00
Joe Howarth a9a1bbae2a update relayer_engine stuff 2023-01-18 13:05:33 -07:00
Joe Howarth ee829d12bf First k8s deployment 2023-01-17 11:02:12 -07:00
Joe Howarth f088551a55 remove useless relayer service 2023-01-17 11:02:12 -07:00
Joe Howarth 7c2c68be3b remove nested sdk 2023-01-17 11:02:12 -07:00
Joe Howarth 03f09c9a1a first k8s deployment w/ relayer engine and redis 2023-01-17 11:02:12 -07:00
Joe Howarth b146a7ac82 clarfiying comment 2023-01-11 11:38:45 -07:00
Joe Howarth a61dc90043 constants for db keys 2023-01-11 11:38:45 -07:00