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

Add script to deploy OptimismMintableERC20 USDT token using OptimismMintableERC20Factory #155

Merged
merged 11 commits into from
Jun 6, 2024

Conversation

Incede
Copy link
Member

@Incede Incede commented Jun 5, 2024

What was the problem?

This PR resolves #153

How was it solved?

Added script with environment variable for testnet and mainnet

How was it tested?

  • Run the script from inside scripts folder bash 6_deployUSDTContract.sh
  • Add --nonce flag to specify the correct nonce in the command in script, in case there is a nonce mismatch reported
  • Supply private key at the prompt to sign and send the transaction
  • Wait for the process to finish, check the output transaction hex in block explorer

@Incede Incede self-assigned this Jun 5, 2024
.env.factory.mainnet Outdated Show resolved Hide resolved
.env.factory.mainnet Outdated Show resolved Hide resolved
.env.factory.mainnet Outdated Show resolved Hide resolved
@Incede Incede requested a review from shuse2 June 5, 2024 14:30
script/6_deployUSDTContract.sh Outdated Show resolved Hide resolved
@shuse2 shuse2 requested review from matjazv and ricott1 June 5, 2024 14:33
@Incede Incede requested a review from shuse2 June 5, 2024 14:35
@Incede Incede changed the title Add script to deploy OptimismMintableERC20 tokens using OptimismMintableERC20Factory Add script to deploy OptimismMintableERC20 USDT token using OptimismMintableERC20Factory Jun 5, 2024
Copy link
Contributor

@matjazv matjazv left a comment

Choose a reason for hiding this comment

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

Except @ricott1 comment about extra cd ../ it looks fine!

The only question I have is if we want to automatically save newly deployed contract address somewhere like we do it for other contracts? (eg. deployment/testnet/l2addresses.json)

@Incede
Copy link
Member Author

Incede commented Jun 5, 2024

Except @ricott1 comment about extra cd ../ it looks fine!

The only question I have is if we want to automatically save newly deployed contract address somewhere like we do it for other contracts? (eg. deployment/testnet/l2addresses.json)

The thing is most of the times (atleast on Lisk Sepolia) cast doesn't return the deployed contract address but only a transaction hex which may have been added to the mempool

@Incede Incede requested a review from ricott1 June 5, 2024 15:02
@shuse2 shuse2 changed the base branch from main to development June 5, 2024 15:22
script/6_deployUSDTContract.sh Show resolved Hide resolved
script/6_deployUSDTContract.sh Show resolved Hide resolved
@shuse2 shuse2 changed the base branch from development to main June 5, 2024 21:04
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.

Add script to deploy OptimismMintableERC20 USDT token using OptimismMintableERC20Factory
4 participants