Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

shape-network/assembly-contracts

Repository files navigation

Otoms by golid

This repository contains the contracts for Otoms by golid, as well as the contracts used in the Assembly system.

The Assembly system, built on top of Otoms, is a flexible ERC1155 implementation enabling the creation, crafting, and management of both fungible and non-fungible items on the blockchain. Built with upgradeability in mind, the system allows for component-based crafting where items can be created using blueprints that define required components with specific properties.

Check out the Assembly docs for more information on creating and crafting items and what.

Creating Assembly Items

This repo contains a few example scripts for creating Assembly items using the OtomItemsCore contract.

Used to create a fungible "Jusonic Materia". This material can be crafted using two Ju2 otoms.

Used to create a non-fungible "Jusonic Sword". This item can be crafted using one Ju3 and one U77 otom.

Used to create a non-fungible tiered "Jusonic Sword". This item can be crafted using one Ju3, one U77 otom and one additional miscellaneous otom. This extra otom will be used to calculate the tier of the sword.

The logic for tiering is handled in the SwordMutator. It calculates the tier based on the mass of the otom. Scaling the damage of the sword based on its tier.

The mutator also keeps track of the number of battles fought. If 100 battles have been fought, the sword will be destroyed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •