fabiooshiro / solana-twitter

Simple tweets as Solana accounts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solana Twitter

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

Cartesi

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

About

Simple tweets as Solana accounts


Languages

Language:TypeScript 68.9%Language:Vue 26.3%Language:Rust 2.5%Language:Shell 0.7%Language:JavaScript 0.7%Language:HTML 0.7%Language:CSS 0.3%