Skip to content

Seascape-Foundation/moonscape-smartcontracts

Repository files navigation

Moonscape – a free, p2e game on Moonbeam

Watch the Moonscape trailer

Official website: https://moonscapegame.com/

Moonscape is a free play to earn game exclusively on Moonbeam blockchain. It was developed by BitPunch studio, and published by Seascape Network.

Moonscape was the first fundraised project of Lighthouse.

This repository contains the smartcontracts of Moonscape.


Smartcontracts

  • contracts/nfts – The NFTs of Moonscape game.
  • contracts/mscpMSCP a native token of the game.
  • contracts/beta – The smartcontract used as a gate for Close Beta version of the game.
  • contracts/game – The blockchain related gameplay inside the game. e.g import/export nft, purchase in game resource.
  • contracts/defi – The DeFi integration into the game.

Installation

Create .env file on the root folder by adding the following variables:

MOONBASE_PRIV_KEY=
MOONBASE_NODE_URL=https://rpc.api.moonbase.moonbeam.network
MOONBEAM_PRIV_KEY=
MOONBEAM_NODE_URL=https://rpc.api.moonbeam.network

ACCOUNT_1=
ACCOUNT_2=

Set your privatekeys for *_PRIV_KEY variables and in ACCOUNT_* variables.

The ACCOUNT_1 and ACCOUNT_2 are used in local development. So it could be any private keys without any funds on any network.


Then, start the docker container:

docker-compose up -d

In order to deploy or test the smartcontracts, enter into the container:

docker exec -it moonscape-smartcontract bash

Then call truffle compile to compile solidity code. Or call truffle migrate <file name in migrations> --network <network name> to deploy on network.


Once you finished the working on the project, its better to close the containers.

First exit from container:

exit

Then shut down the container:

docker-compose down

Smart contract address on Moonbase

  • Moonscape Defi Address: 0xF6F0c25e6a30F25cB57d46C66F8d559dB4AB2776

    owner – 0xC6EF8A96F20d50E347eD9a1C84142D02b1EFedc0

  • Moonscape Game Address: 0x08d0e15682973eDe47486b8344b8A29d23Bc0D2E

    owner – 0xC6EF8A96F20d50E347eD9a1C84142D02b1EFedc0

  • Moonscape Beta Address: 0x56661EAFC9d6d17b4961E7d650DFf0445A35D014

    owner – 0xC6EF8A96F20d50E347eD9a1C84142D02b1EFedc0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •