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

Send LSK tokens to a different addresses after smart contracts deployment #19

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

matjazv
Copy link
Contributor

@matjazv matjazv commented Jan 3, 2024

What was the problem?

This PR resolves #16.

How was it solved?

TransferFunds.s.sol script was modified to read json file with L1 and L2 addresses and amounts where to send Lisk tokens after all contracts are successfully deployed (Lisk L1 token, Lisk L2 token, Claim smart contract). The remaining tokens are send to the Claim smart contract.

How was it tested?

  • All unit tests passed.
  • Logs from executing deployContracts.sh script:
Simulation: Transferring Lisk tokens from L1 to a different addresses on L1 and L2 networks...
Simulation: L1 Lisk token address: 0x25303f9eA3666683CE984178037c30BaA8d9adD2
Simulation: L2 Lisk token address: 0xA92ab431ad45656E6fafA25C622e7E2AA9706ccf
Simulation: L2 Claim contract address: 0x8a5ae5b97c60Cd0D1bc13b5BbAa385E6b44E110d
Simulation: Number of L1 addresses: 2
Simulation: 1: 0xe708A1b91dDC44576731f7fEb4e193F48923Abba
Simulation: 2: 0x1CA256b7a7883FFb046F39fC0602311B88C04AF9
Simulation: Number of L2 addresses: 2
Simulation: 1: 0x396DF972a284bA7F5a8BEc2D9B9eC2377a099215
Simulation: 2: 0xf50c46F0b23a0e90409E7270568Dbb62522c28B9
Simulation: Sending L1 Lisk tokens to all L1 addresses...
Simulation: Sending 2000000000000000000000 L1 Lisk tokens to L1 address: 0xe708A1b91dDC44576731f7fEb4e193F48923Abba
Simulation: Sending 4000000000000000000000 L1 Lisk tokens to L1 address: 0x1CA256b7a7883FFb046F39fC0602311B88C04AF9
Simulation: L1 Lisk tokens successfully sent to all L1 addresses!
Simulation: Approving all remaining L1 Lisk tokens to be transfered by L1 Standard Bridge to the L2 network: 199994000000000000000000000
Simulation: L1 Lisk tokens successfully approved to be transfered by L1 Standard Bridge!
Simulation: Sending L1 Lisk tokens to all L2 addresses...
Simulation: Sending 3000000000000000000000 L1 Lisk tokens to L2 address: 0x396DF972a284bA7F5a8BEc2D9B9eC2377a099215
Simulation: Sending 5000000000000000000000 L1 Lisk tokens to L2 address: 0xf50c46F0b23a0e90409E7270568Dbb62522c28B9
Simulation: L1 Lisk tokens successfully sent to all L2 addresses!
Simulation: Transferring all remaining L1 Lisk tokens to the L2 Claim contract...
Simulation: L1 Lisk tokens successfully transferred to the L2 Claim contract!

@matjazv matjazv self-assigned this Jan 3, 2024
script/Utils.sol Show resolved Hide resolved
script/TransferFunds.s.sol Outdated Show resolved Hide resolved
@shuse2 shuse2 merged commit acaf610 into main Jan 10, 2024
3 checks passed
@shuse2 shuse2 deleted the 16-send-tokens-after-deployment branch January 10, 2024 08:37
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.

Modify TransferFunds.s.sol script to enable sending of varying amounts of Lisk tokens to different addresses
4 participants