Example contracts
Check out any of the starter contracts for Tableland controllers or registry interactions.
Tableland offers a number of starter contracts to use at your own discretion. For all of the examples, there is an import required from the @tableland/evm
package, so if you're writing and deploying any of these, be sure to install @tableland/evm
accordingly. Some will also leverage contracts from @openzeppelin/contracts
.
Allow all controller
Provision access so that any account can perform any action on a table.
Complex controller
Create a controller with balance and token ownership checks.
Gated voting
Create a contract that gates writes to a voting table based on ERC721 token ownership.
Create from contract
Create a table from a contract.