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

Update & rename contract for secure asset transfer - thirdweb deploy #6371

Closed
wants to merge 1 commit into from

Conversation

matu771991
Copy link

@matu771991 matu771991 commented Feb 28, 2025

Added a Solidity contract for secure asset migration, preventing bot attacks and malicious contracts. The contract ensures safe transfers from old wallets to a new wallet and self-destructs after execution for enhanced security. Integrated with thirdweb for seamless deployment


PR-Codex overview

This PR introduces a new Solidity smart contract named AssetMigration, designed to securely transfer assets from multiple old wallets to a new wallet and self-destruct after execution for enhanced security.

Detailed summary

  • Added AssetMigration contract inheriting from ReentrancyGuard.
  • Defined state variables for old wallets, new wallet, owner, and ERC20 tokens.
  • Implemented onlyOwner modifier for access control.
  • Created constructor to initialize contract parameters.
  • Added migrateAssets function to transfer assets from old wallets to the new wallet.
  • Implemented internal _transferAssets function to handle asset transfers.
  • Added _deactivateContract function to self-destruct the contract after migration.
  • Included events for asset transfer and contract deactivation.
  • Added receive and fallback functions for handling Ether transfers.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Added a Solidity contract for secure asset migration, preventing bot attacks and malicious contracts. The contract ensures safe transfers from old wallets to a new wallet and self-destructs after execution for enhanced security. Integrated with thirdweb for seamless deployment

Signed-off-by: matu771991 <[email protected]>
@matu771991 matu771991 requested review from a team as code owners February 28, 2025 12:38
Copy link

changeset-bot bot commented Feb 28, 2025

⚠️ No Changeset found

Latest commit: cc4bfa5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

graphite-app bot commented Feb 28, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

Copy link

vercel bot commented Feb 28, 2025

@matu771991 is attempting to deploy a commit to the thirdweb Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Feb 28, 2025
@jnsdls jnsdls closed this Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Portal Involves changes to the Portal (docs) codebase.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants