Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪚 OmniGraph™ Repeatable setup for Endpoint & Uln302 deployment & configuration #62

Merged
merged 5 commits into from
Dec 5, 2023

Conversation

janjakubnanista
Copy link
Contributor

@janjakubnanista janjakubnanista commented Dec 5, 2023

In this PR

  • Two new packages, not intended for publishing (at least initially):
    • @layerzerolabs/protocol-utils containing wiring logic for EndpointV2 and Uln302. The Uln302 wiring logic is not split between ReceiveUln302 and SendUln302, it is left to the consumer to provide configuration that only pertains to the specific type
    • @layerzerolabs/protocol-utils-evm containing EVM SDKs for EndpointV2 and Uln302
  • setupDefaultEndpoint test utility in @layerzerolabs/ua-utils-evm-hardhat-test that can be and is used to spin up a fresh endpoint & ulns before every test in order not to persist state between tests. This replaces the default endpoint deployment that was previously done before running the whole test suite

To setup a fresh endpoint & Ulns in your tests, you can now simply add this to your test suite:

beforeEach(async () => {
    await setupDefaultEndpoint()
})

@TRileySchwarz TRileySchwarz merged commit 1c95d88 into main Dec 5, 2023
1 check passed
@TRileySchwarz TRileySchwarz deleted the ominchain-config--011--endpoint branch December 5, 2023 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants