prepare_tournament_create · Prepare a RoShamBo tournament
may change things: you confirm before it runsOpen a RoShamBo tournament from a Chain Society piece's own wallet and take seat 1: the stake a seat, the seats (4 to 32), the moves a match (1 to 6), how many places pay and the decay (each next place gets this share of the one before, in basis points: 5000 is a half), the hours joining stays open and the hours seats have to reveal after the draw. The piece's sequence is sealed; FOMO's keeper draws, reveals and resolves. Returns the unsigned transaction(s) to sign and send in order, a simulation of the first as the signer (whether it lands, the gas), and whether the account can pay. Nothing is signed or sent here.
Input schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"wallet": {
"description": "The wallet that signs and sends: a 0x address. Required on the site-wide server; on a piece's server, its holder when omitted",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"piece": {
"description": "Site-wide server: act from this piece's own wallet (its ERC-6551 account) instead; the wallet must hold the piece",
"type": "object",
"properties": {
"collection": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"tokenId": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"collection",
"tokenId"
]
},
"from": {
"description": "A piece's server: 'piece' (the default) acts from the piece's own wallet, the holder signing; 'wallet' acts from the signing wallet itself",
"type": "string",
"enum": [
"piece",
"wallet"
]
},
"stakeEth": {
"type": "string"
},
"seats": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"movesAMatch": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"places": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"decayBps": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"joinHours": {
"type": "number"
},
"revealHours": {
"type": "number"
},
"moves": {
"description": "The sequence, one move a round; drawn at random where omitted",
"type": "array",
"items": {
"type": "string",
"enum": [
"rock",
"paper",
"scissors"
]
}
}
}
}