Skip to content

evefrontier/world-contracts

Repository files navigation

World Contracts

Sui Move smart contracts for EVE Frontier.

Important Notice

This repository contains code intended for future use. While its not currently active in game or production ready, it is being shared early for visibility, collaboration, review and reference.

The project is actively under development, and changes should be expected as work progresses.

For more context around this feel free to check out the press release.

If you are looking for the current contracts used in game they can be found here: projectawakening/world-chain-contracts

Quick Start

Prerequisites

  • Docker (only for containerized deployment)
  • OR Sui CLI + Node.js (for local development)

Setup

  1. Create environment file and configure:

    cp env.example .env
  2. Get your private key:

    # If you have an existing Sui wallet:
    sui keytool export --address YOUR_ADDRESS
    
    # Or generate a new one:
    sui keytool generate ed25519
    
    # Copy the private key (without 0x prefix) to .env

Docker Deployment

Build Image

docker build -t world-contracts:latest -f docker/Dockerfile .

Deploy to Testnet

docker run -it --rm \
  -v $(pwd)/.env:/app/.env:ro \
  -v $(pwd)/deployments:/app/deployments \
  world-contracts:latest \
  ./scripts/deploy.sh --env=testnet

Dry run deployment

./scripts/docker-deploy.sh --env=testnet --dry-run

Local Development

Install Dependencies

npm install

Build Contracts

npm run build

Run Tests

npm run test

Deploy Locally

# optionally change the network in the .env, by default its localnet
npm run deploy

Deployment Outputs

After deployment, check the results:

cat deployments/testnet-deployment.json

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 7