Skip to content

zelosgg/shards-contracts

Repository files navigation

Eternal Shards

Contracts

Development Testing

Dependencies

Running

  • Install dependencies
yarn # or npm i
  • Initialize Flow
flow init
  • Run the test suite
yarn test

Shards Deployer

Deploy the Shards contract to testnet

Update the flow.json with your account keys using the steps found here

flow project deploy --network testnet

Running

  • Create .env file with the following contents, replacing your testnet account address, keys, and the Shard address from the previous step
SKIP_PREFLIGHT_CHECK=true
REACT_APP_FLOW_ACCESS_NODE=https://access-testnet.onflow.org
REACT_APP_FLOW_ACCOUNT_ADDRESS=4fcbf393977f9976
REACT_APP_FLOW_ACCOUNT_PRIVATE_KEY=0ee5f8cd60227c75e0148c8039121c997efa18177f9a69dbec4f3b8a8abb9b6b
REACT_APP_FLOW_NFT_ADDRESS=0x631e88ae7f1d7c20
REACT_APP_FLOW_SHARD_ADDRESS=0x4fcbf393977f9976
REACT_APP_SHARD_RECEIVER=0x22a706cc6b8fe63b
  • Run the web app
yarn start

Reset the contract (for testing purposes)

Click the "Reset Contract" button in the web app FIRST

Then run:

flow accounts remove-contract Shard --network testnet --signer testnet-account

About

Contract specification for Shards and Crystals on eternal.gg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published