Commit Graph

5 Commits

Author SHA1 Message Date
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
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
Sebastián Claudio Nale ce4eaf75e2 Updates sdk package-lock.
This allows `npm ci` to work.
2023-01-17 15:11:41 -07: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
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