For smart contract developers who wish to build on top of Story directly.
In this section, we will briefly go over the protocol contracts and then guide you through how to start building on top of the protocol. If you haven’t yet familiarized yourself with the overall architecture, we recommend first going over the Architecture Overview section.
Skip the tutorial and view the completed code. Follow the README instructions
to run the tests, or go to the /test
folder to view all of the example
contracts.
If you want to set things up from scratch, then continue with the following tutorials, starting with the Setup Your Own Project step.
As of the current version, our Proof-of-Creativity Protocol is compatible with all EVM chains and is written as a set of Smart Contracts in Solidity. There are two repositories that you may interact with as a developer:
The approach to deploy & verify contracts comes from the Blockscout official documentation.
Verify a contract with Blockscout right after deployment (make sure you add “/api/” to the end of the Blockscout homepage explorer URL):
Or if using foundry scripts:
Do not use RANDAO for pseudo-randomness, instead use onchain VRF (Pyth or Gelato). Currently, RANDAO value is set as the parent block hash and thus is not random for X-1 block.