This smart contract is a SuperApp for the Superfluid protocol that allows users to stream a game and rent tiles on PlanetIX. The contract utilizes the IMissionControl interface to allow users to create, update, and delete rented tiles.
Players can use SuperTokens Astro Gold
and Astro Gold Lite
to rent tiles.
You'll need to have the following tools installed:
Foundry: Development environment for smart contracts Hardhat: Deployment of smart contracts and SuperTokens Yarn is used as the package manager.
Run tests
forge test --vvv
Generate and view the documentation for the smart contracts
forge doc --serve
npx hardhat deploySuperApp --network <network> --mission <missionControlAddress> --token1 <SuperToken1Address> --token2 <SuperToken2Address>
npx hardhat verify --network <network> <SuperAppAddress>
npx hardhat upgradeSuperApp --network <network> --superApp <superAppAddr>
npx hardhat deploySuperToken --network <network>
npx hardhat verify --network <network> <SuperTokenAddress>
Contract | Description |
---|---|
MissionControlStream |
SuperApp for streaming a game and renting tiles on PlanetIX |
IMissionControlExtension |
Interface for the PlanetIX MissionControl contract |
GoldLiteProxy |
SuperToken that can be minted by the trusted minter |
The MissionControlStream
contract is upgradable, using Transparent Proxy, the contract can be upgraded without affecting the state of the contract.
Allows the contract owner to approve another address to move the ISuperToken contract on behalf of the MissionControlStream contract.
Contract | Network | Address |
---|---|---|
MissionControlStream |
Polygon | 0xb9d70840cca6e6f71d3c884060ee123e13b4c27d |
SuperToken AGOLD |
Polygon | 0xfac83774854237b6e31c4b051b91015e403956d3 |
SuperToken ALITE |
Polygon | 0x9308A7116106269eB11834dF494eFd00d244cF8e |