- Compile the contract
nile compile
- Deploy the contract
export STARKNET_NETWORK=alpha-goerli
starknet deploy --contract artifacts/StakeL2.json --no_wallet
Contract address: 0x04af2d5488fbf9de5b9dfaf8a6b720e22ccfae33f94c0cc42f095569cd921756
Transaction hash: 0x726020ef93751569c72f991f613ae76221bd20546b3eba81b57751e8fbd4473
-
Deploy L1 contract before doing the next step here (Follow README file inside L1 folder)
-
Install Argent/Braavos wallet for Starknet in your browser
-
Go to Voyager and search for the contract address you got in step 2.
-
Inside 'Write Contract' tab, take 'set_stake_l1_address' function.
-
Provide Stake contract address (L1) and transact. Now the L1 address is saved in L2 contract.
Read more about Starknet here