0.0.3 • Published 1 year ago

@sandbox-smart-contracts/land v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

LAND

A LAND is a digital piece of real-estate in The Sandbox's metaverse. Each LAND is a unique piece of the metaverse map which is a grid of 408x408 lands.

Architecture

The main goal of this package is to merge the base code of the 2 LAND contracts that has been deployed on ethereum & polygon networks in order to unify the features and reduce the technical differences. Learn more about the differences between the 2 contracts & this upgrade in this documentation.

The package contains 3 main contracts:

ComponentDescription
LandERC721 contract handling the LAND tokens deployed on the ethereum network (L1)
PolygonLandERC721 contract handling the LAND tokens deployed on the polygon network (L2)
LandMetadataRegistryContract managing extra metadata onchain like premiumness & neighborhood

Running the project locally

Install dependencies with yarn

Testing: Use yarn test inside packages/land to run tests locally inside this package

For testing from root (with workspace feature) use: yarn workspace @sandbox-smart-contracts/land test

Coverage: Run yarn coverage

Formatting: Run yarn format to check and yarn format:fix to fix formatting errors

Linting: Run yarn lint to check and yarn lint:fix to fix static analysis errors

Deployment

This package exports the contract source code, for deployments see: @sandbox-smart-contract/deploy package.

Dependencies