hammurabi-contracts
v0.0.1
Published
A registry of Guilds and the laws that govern it
Downloads
5
Readme
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
- [x] Create guild
- [x] Send guild invites
- [x] Join guild
- [x] Leave guild
- [x] Rename guild
- [x] Transfer ownership of guild
- [x] Getters
- [x] Get guild by
playerAddress
- [x] Get guild name by
guildId
- [x] Get guild creation date by
guildId
- [x] Get guild creator by
guildId
- [x] 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,