threepwave / crypts-realms

Temporary repo housing the Crypts and Caverns x Realms integration
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Users can bridge dungeons from mainnet (L1) to Starknet (L2) #2

Open threepwave opened 2 years ago

threepwave commented 2 years ago

Once a user stakes a dungeon, we need to migrate it over to Starknet and expose its information.

1a. On stake, send message from L1->L2 1b. Listen for message from dungeonStaker contract on Starknet 1c. Create an instance of the dungeon in question on starknet (w/ metadata) 1d. Store the time of stake so we can calculate rewards.

2a. On unstake, send message from L1->L2. 2b. Listen for message from dungeonStaker contract on Starknet. 2c. Remove instance of the dungeon in question on starknet.