https://linear.app/star-sailors/issue/WB3-7/🫥🔬-↝-interacting-with-anomalies-from-smart-contract

Flow

February/March Flow - Planets

Resource staking demo

This Next.js demo will show the user flow for when a user has minted a planet and wants to generate resources from it. The contract is a duplicate of the Thirdweb 1155 Edition Drop (with Lazy Minting). It will be for both planets and unconfirmed candidates.

Right now, I’m lazy minting planets that are on the “Star Sailors Planet” contract (goerli/0x766215a318E2AD1EbdC4D92cF2A3b70CBedeac31). However, in the next test phase, I’ll add the evolution code to the current drop contract.

Calculating rewards

Rewards will be calculated based on different parameters/traits, but also on the status of the object (i.e. if it’s been confirmed). Multiple ERC20 tokens will be created and based on the primary and secondary resource traits, these will then be substituted in (e.g. if a planet with metal and water is selected, these two ERC20 tokens will be added as rewards).

When a planet is being staked, other work on the planet (e.g. buildings) is cut by 50%, the planet is non-transferrable, etc.

Currently, I’ve set it so that Planets will mine Planets, as I’m not entirely sure what is going to be the equipment yet. This is not going to be the case in the next test phase.

Page components

Planet interaction components

Classification components

Smart contract calls