Immutable Platform Contracts Save Abandoned

Smart Contracts for Gods Unchained.

Project README

Immutable is the creator behind the hit game - Gods Unchained. Here is a mono-repo containing all the code for our public contracts.

Packages :package:

Contracts

Package Version Description
@imtbl/gods-unchained npm Gods Unchained smart contracts and typings
@imtbl/immutable-wallet npm Immutable Smart Contract Wallet contracts and typings

Published

Package Version Description
@imtbl/tests-utils npm Developer utilities
@imtbl/utils npm Utilities while developing with our contracts

Private

Package Description
@imtbl/deployment Immutable contract deployment scripts
@imtbl/order-generator Order generator used for testing

Addresses :innocent:

We get it, you're just here to find the contract addresses. Luckily for you, they're all listed here.

Contracts (Main Net)

Contract Name Address
Cards 0x0e3a2a1f2146d86a604adc220b4967a898d7fe07
Forwarder 0xb04239b53806ab31141e6cd47c63fb3480cac908

Dependencies (Main Net)

Contract Name Address
Wrapped Ether 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
0x Exchange 0x080bf510fcbf18b91105470639e9561022937712
0x ERC20 Proxy 0x95e6f48254609a6ee006f7d493c8e5fb97094cef
0x ERC721 Proxy 0xefc70a1b18c432bdc64b596838b4d138f6bc6cad

Contracts (Ropsten)

Contract Name Address
Cards 0xADC559D1afbCBBf427728577F40E7358D96F1209
OpenMinter 0x36F26280B80e609e347c843E2AE5351Ee4b5f7eD
Forwarder 0xc79C9c624ea8A3dEdfae0dbf9295Bfb159eE5F3b
Fusing 0xFfFB48F70Dd10a468957cDD099047e046AdE8670

Dependencies (Ropsten)

Contract Name Address
Wrapped Ether 0xc778417e063141139fce010982780140aa0cd5ab
0x Exchange 0xbff9493f92a3df4b0429b6d00743b3cfb4c85831
0x ERC20 Proxy 0xb1408f4c245a23c31b98d2c626777d4c0d766caa
0x ERC721 Proxy 0xe654aac058bfbf9f83fcaee7793311dd82f6ddb4

Repo Guide

While we've done our best to simplify the repo setup as much as possible, there's some steps we require.

Step 1:

Install required global dependencies

npm install -g lerna
npm install -g [email protected]
Step 2:

Install all the required local dependencies. Lerna will ensure all local dependenices are setup correctly.

lerna bootstrap
Step 3

Run a local blockchain instance on your localhost. We recommend opening this in a new terminal window/tab.

yarn chain
Step 4

Compile all packages. This will compile all the contracts and generate all the relevant Typescript bindings for other repos to work. Tests will run to ensure everything works as expected.

yarn setup && yarn test

Creating Test Cards

In order to generate test cards on your local blockchain or testnet deployment, follow these steps.

Step 1

Create a copy of .env.defaults and rename it to .env

Step 2

Fill out all the required variables inside the .env file. You don't need ETHERSCAN_KEY unless you want verified contracts on Etherscan.

Make sure to set DEPLOYMENT_NETWORK_ID for 50 if testing locally.

Step 3

Run yarn deploy-cards - that's it! Your newly deployed cards will be on your specified chain and you'll be able to see them in the specified DB!

Open Source Agenda is not affiliated with "Immutable Platform Contracts" Project. README Source: immutable/platform-contracts
Stars
34
Open Issues
47
Last Commit
10 months ago

Open Source Agenda Badge

Open Source Agenda Rating