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

🧹 Example to programatically configure send and receive configs #857

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

ravinagill15
Copy link
Contributor

@ravinagill15 ravinagill15 commented Aug 16, 2024

In this PR

  • New package ua-devtools-evm-foundry with example solidity scripts to demonstrate how send and receive configs can be programatically set
  • Updated README with instructions on how to run forge scripts
  • Created test package tests/ua-devtools-evm-foundry-test

Copy link

socket-security bot commented Aug 16, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@ravinagill15 ravinagill15 marked this pull request as draft August 16, 2024 23:43
@ravinagill15 ravinagill15 marked this pull request as ready for review August 19, 2024 17:16
@ravinagill15 ravinagill15 changed the title 🧹 Set config example scripts 🧹 Example to Programatically configure send and receive configs Aug 19, 2024
@ravinagill15 ravinagill15 changed the title 🧹 Example to Programatically configure send and receive configs 🧹 Example to programatically configure send and receive configs Aug 19, 2024
forge-config-scripts/README.md Outdated Show resolved Hide resolved
forge-config-scripts/scripts/ReceiveConfig.s.sol Outdated Show resolved Hide resolved
forge-config-scripts/scripts/ReceiveConfig.s.sol Outdated Show resolved Hide resolved
forge-config-scripts/scripts/ReceiveConfig.s.sol Outdated Show resolved Hide resolved
forge-config-scripts/scripts/ReceiveConfig.s.sol Outdated Show resolved Hide resolved
forge-config-scripts/scripts/ReceiveConfig.s.sol Outdated Show resolved Hide resolved
forge-config-scripts/scripts/SendConfig.s.sol Outdated Show resolved Hide resolved
forge-config-scripts/scripts/SendConfig.s.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@ryandgoulding ryandgoulding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool stuff! Had some nitty comments, but the approach looks right. Let me know if you have any questions!

@ravinagill15 ravinagill15 marked this pull request as draft August 20, 2024 00:05
@@ -0,0 +1,35 @@
// SPDX-License-Identifier: MIT
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please double check licenses

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should replace in scripts with:

// SPDX-License-Identifier: UNLICENSED

@ravinagill15 ravinagill15 marked this pull request as ready for review August 20, 2024 20:03
@ravinagill15 ravinagill15 marked this pull request as draft August 20, 2024 20:04
@ravinagill15 ravinagill15 marked this pull request as ready for review August 20, 2024 20:18
@ravinagill15
Copy link
Contributor Author

Added do not merge label because we have not yet made a decision on whether we want to support foundry-only development. The reason is because this example cannot be used on non-evm chains, so if a client wants to move to solana, for example, they would need to learn a whole new set of tools.

Copy link
Contributor

@St0rmBr3w St0rmBr3w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing that would be great to be added here is E2E for calling:

setSendLibrary
setReceiveLibrary
setReceiveLibraryTimeout

forge-config-scripts/scripts/ReceiveConfig.s.sol Outdated Show resolved Hide resolved
@@ -0,0 +1,35 @@
// SPDX-License-Identifier: MIT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should replace in scripts with:

// SPDX-License-Identifier: UNLICENSED

@ravinagill15 ravinagill15 marked this pull request as draft September 12, 2024 15:35
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@layerzerolabs/[email protected] Transitive: filesystem, network +27 15.8 MB layerzero-bot
npm/@layerzerolabs/[email protected] None 0 5.37 MB layerzero-bot
npm/@layerzerolabs/[email protected] None +1 913 kB layerzero-bot

View full report↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants