Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.13 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.13 KB

STARKNET

Prerequisites

Compile and Deploy

  1. Compile the contract
nile compile
  1. Deploy the contract
export STARKNET_NETWORK=alpha-goerli
starknet deploy --contract artifacts/StakeL2.json --no_wallet
Contract address: 0x04af2d5488fbf9de5b9dfaf8a6b720e22ccfae33f94c0cc42f095569cd921756
Transaction hash: 0x726020ef93751569c72f991f613ae76221bd20546b3eba81b57751e8fbd4473

Finish the setup for this contract

  1. Deploy L1 contract before doing the next step here (Follow README file inside L1 folder)

  2. Install Argent/Braavos wallet for Starknet in your browser

  3. Go to Voyager and search for the contract address you got in step 2.

  4. Inside 'Write Contract' tab, take 'set_stake_l1_address' function.

  5. Provide Stake contract address (L1) and transact. Now the L1 address is saved in L2 contract.

Starknet Documentation

Read more about Starknet here