Immutable is the creator behind the hit game - Gods Unchained. Here is a mono-repo containing all the code for our public contracts.
Package | Version | Description |
---|---|---|
@imtbl/gods-unchained |
Gods Unchained smart contracts and typings | |
@imtbl/immutable-wallet |
Immutable Smart Contract Wallet contracts and typings |
Package | Version | Description |
---|---|---|
@imtbl/tests-utils |
Developer utilities | |
@imtbl/utils |
Utilities while developing with our contracts |
Package | Description |
---|---|
@imtbl/deployment |
Immutable contract deployment scripts |
@imtbl/order-generator |
Order generator used for testing |
We get it, you're just here to find the contract addresses. Luckily for you, they're all listed here.
Contract Name | Address |
---|---|
Cards |
0x0e3a2a1f2146d86a604adc220b4967a898d7fe07 |
Forwarder |
0xb04239b53806ab31141e6cd47c63fb3480cac908 |
Contract Name | Address |
---|---|
Wrapped Ether |
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 |
0x Exchange |
0x080bf510fcbf18b91105470639e9561022937712 |
0x ERC20 Proxy |
0x95e6f48254609a6ee006f7d493c8e5fb97094cef |
0x ERC721 Proxy |
0xefc70a1b18c432bdc64b596838b4d138f6bc6cad |
Contract Name | Address |
---|---|
Cards |
0xADC559D1afbCBBf427728577F40E7358D96F1209 |
OpenMinter |
0x36F26280B80e609e347c843E2AE5351Ee4b5f7eD |
Forwarder |
0xc79C9c624ea8A3dEdfae0dbf9295Bfb159eE5F3b |
Fusing |
0xFfFB48F70Dd10a468957cDD099047e046AdE8670 |
Contract Name | Address |
---|---|
Wrapped Ether |
0xc778417e063141139fce010982780140aa0cd5ab |
0x Exchange |
0xbff9493f92a3df4b0429b6d00743b3cfb4c85831 |
0x ERC20 Proxy |
0xb1408f4c245a23c31b98d2c626777d4c0d766caa |
0x ERC721 Proxy |
0xe654aac058bfbf9f83fcaee7793311dd82f6ddb4 |
While we've done our best to simplify the repo setup as much as possible, there's some steps we require.
Install required global dependencies
npm install -g lerna
npm install -g typescript@2.6.2
Install all the required local dependencies. Lerna will ensure all local dependenices are setup correctly.
lerna bootstrap
Run a local blockchain instance on your localhost. We recommend opening this in a new terminal window/tab.
yarn chain
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
In order to generate test cards on your local blockchain or testnet deployment, follow these steps.
Create a copy of .env.defaults
and rename it to .env
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.
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!