Skip to content

Mothora/mothora-contracts

Repository files navigation

Mothora MVP Contracts

The contracts are organized from a main HUB registry contract (MothoraGame.sol), which also controls game account creation and DAO attribution.

Connected to the HUB are the following core modules:

  • EssenceToken.sol - ERC20 Essence token (non transfereable)
  • Arena.sol - Manages postmatch results and their verification

Currently deployed contracts

open endpoint: https://goerli-rollup.arbitrum.io/rpc

Getting started

  1. Set PRIVATE_KEY env variable

  2. Install submodules and dependencies

Or, if your repo already exists, run:

git submodule update --init --recursive
forge install

First time with Forge/Foundry?

See the official Foundry installation instructions.

Then, install the foundry toolchain installer (foundryup) with:

curl -L https://foundry.paradigm.xyz | bash

Now that you've installed the foundryup binary, anytime you need to get the latest forge or cast binaries, you can run foundryup.

So, simply execute:

foundryup

🎉 Foundry is installed! 🎉

Ideas

https://github.com/ZeframLou/playpen/blob/main/src/ERC20StakingPool.sol https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol

License

MIT

About

Contracts for the Mothora MVP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published