0.0.1 • Published 2 years ago
hammurabi-contracts v0.0.1
Hammurabi
A registry of Guilds and the laws that govern it. Ember's very own Code of Hammurabi.
Building and testing
git clone https://github.com/latticexyz/hammurabi.git
cd hammurabi
make # This installs the project's dependencies.
make test
Installing the toolkit
If you do not have DappTools already installed, you'll need to run the below commands
Install Nix
# User must be in sudoers
curl -L https://nixos.org/nix/install | sh
# Run this or login again to use Nix
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
Install DappTools
curl https://dapp.tools/install | sh
Features
V1
- Create guild
- Send guild invites
- Join guild
- Leave guild
- Rename guild
- Transfer ownership of guild
- Getters
- Get guild by
playerAddress
- Get guild name by
guildId
- Get guild creation date by
guildId
- Get guild creator by
guildId
- Get guild by
V2
- Guild levels
- On win, an Ember contract instance should be able to increase the number of points a guild has,
x
points increases the Guild's level
- On win, an Ember contract instance should be able to increase the number of points a guild has,
0.0.1
2 years ago