Sol.College

Structure lesson (licence does not allow quoting code)

SolTick-Renaissance-Global-Online-Hackathon

SolTick revolutionizes ticket sales using blockchain technology and NFTs, ensuring authenticity and eliminating fraud. We connect promoters, artists and users in a transparent market. NFTs generate royalties and offer exclusive art to fans after the event.

Original
ericksgv/SolTick-Renaissance-Global-Online-Hackathon
SuperStack fork
Blockchains/SolTick-Renaissance-Global-Online-Hackathon @ 05b8229
Stars
0
Last push (original)
2024-04-08
Languages
TypeScript, CSS, JavaScript, Rust
Detected stack
AnchorMetaplexNext.jsweb3.js
Categories
NFTs & Digital AssetsConsumer & Social
Licence
GPL-3.0: code not quoted on Sol.College

Architecture

45 source files. By extension: .tsx ×27, .ts ×13, .js ×4, .rs ×1.

Top-level directorySource files
web37
anchor6
(root)2

On-chain programs: anchor/programs/counter

How it works: instructions and accounts

Each instruction handler and the accounts struct it validates, found by reading the Rust source. Links go to the exact line at the pinned commit.

InstructionAccountsSource
decrementUpdateanchor/programs/counter/src/lib.rs:15
incrementUpdateanchor/programs/counter/src/lib.rs:20
setUpdateanchor/programs/counter/src/lib.rs:29

Where the Solana code lives

Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.

FileSolana APIs used
web/components/account/account-data-access.tsxPublicKey, useConnection, VersionedTransaction, TransactionMessage, transfer, useWallet
web/components/account/account-ui.tsxPublicKey, useWallet, Transaction, sendTransaction
web/components/counter/counter-data-access.tsxProgram, useConnection, Keypair, PublicKey
web/components/solana/solana-provider.tsxAnchorProvider, useConnection, useWallet, WalletMultiButton
anchor/tests/counter.spec.tsProgram, Keypair, AnchorProvider
web/components/counter/counter-ui.tsxKeypair, PublicKey, Program
anchor/src/counter-exports.tsPublicKey, Program
web/api/nfts.tsConnection, Keypair
web/components/cluster/cluster-ui.tsxuseConnection
web/components/cluster/cluster-data-access.tsxConnection
web/components/account/account-detail-feature.tsxPublicKey
web/components/account/account-list-feature.tsxuseWallet

Dapp: devnet deploy pending

⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/soltick-renaissance-global-online-hackathon/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

How to run, build and test

These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.

DirectoryCommandRuns
.npm run dev
.npm run build
anchoranchor build
anchoranchor test
anchoranchor run test

What you could build from it