/kings-toilet

Primary LanguageSolidity

King's Toilet Contracts

Duel, Please the King, Win... and may become the next King?!

alt text

Testnet (Base Goerli) Addressess

Contract Address
Kings Toilet 0x1f8974a179B096c915bcFA222308C93da71CBD56
Kings Toilet Prizes 0x1Cf125bC22ADD95fF09993FE882fC1f66Df10BF8
Duelist Drop Funds 0x27678F4B1657d8D3819a67248bA3D44aea52EAE0
Duelist Drop Funds Factory 0x04E60BcE7aFc1e345Aa716c19D923b75C3ED5021

What's it?

An onchain game that will be deployed on the Base network. Get people to register as duelists and challenge each other to meet the contests set by the kingdom, create good art, please the king and win prizes.

Every week a different new king is defined by the previous week's king as his successor or comes to reign, taking the throne for himself.

Let the plebs of the kingdom bet on the duels, collect the art-submissions produced during the duels like Open Editions (using zora rewards protocol to return ETH to duelists) and throw tomatoes at the duelists they hate.

Some mechanics that I'm excited about in this game:

  • Every week there is a different king who comes to the kingdom through succession or by taking the throne
  • The king decides who wins the duel between two duelists, which opens the door to the question: is the king fair or corrupt?
  • The artwork produced by the winning duelist is transformed into an open edition and is available for 24 hours to mint for "free" by paying the duelist through the zora protocol rewards retroactive fee.
  • The king, upon reaching the throne, sets NFTs that will be given as prizes to the duelists who win duels and the winner of the week.
  • The " plebs " can bet ETH on which duelist they think will win the duel

Take in mind the kingdom note below:

In a realm of yore, where shadows danced on cobblestone, There reigned a king, stout and wide, whose whims were widely known. A connoisseur of art and jests, in memes he sought delight, Yet oft his mirth could swiftly wane, veering towards cruel might.

Upon a throne bizarrely shaped, a toilet grand and high, He sat, a ruler of caprice, beneath the azure sky. A fickle heart, with passions vast, demanded ceaseless cheer, Or wrath would swell, a tempest fierce, none dared to draw too near.

Thus, knights and jesters, artisans, sought ever to appease, In quests and feats, they toiled hard, their prowess put to ease. Through valleys deep and mountains tall, they sought to bring him glee, For in their toil, they knew full well, the heart of kings was free...

Technical

Install Foundry

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help

Contact

If you're a builder or artist (or not) and would like to be my friend, send me a DM on Twitter. I'm always open to meeting people.

My account is @promatheus_