This is the best twitter ever.
Check the development version deployed on github pages.
Build
anchor build
Set the program id for development
DO NOT USE THIS KEY IN PRODUCTION!!!
cp DEVemLxXHPz1tbnBbTVXtvNBHupP2RCBw1jTFN8Uz3FD.json ./target/deploy/solana_twitter-keypair.json
Run the local test validator
solana-test-validator
anchor build
anchor deploy
anchor run copy-idl
anchor run copy-types
To enable the Cartesi support, open the browser inspect and run on console:
localStorage.getItem('ctsi_sol') === '1'
Clone the rollups-examples:
git clone git@github.com:Calindra/rollups-examples.git
git checkout feature/solana-adapter
The directory structure:
workspace
├── rollups-examples
└── solana-twitter
The script deploy-cartesi-prod.sh
will compile the binary program to run inside the Cartesi Machine.
The script deploy-cartesi.sh
will compile to run the Cartesi in host mode.
Both of them will write the binary program at ../rollups-examples/solana-adapter/solana_smart_contract_bin/DEVemLxXHPz1tbnBbTVXtvNBHupP2RCBw1jTFN8Uz3FD