Skip to content

paritytech/simple-survey

Repository files navigation

Survey DApp

Decentralized survey application on Polkadot. Create surveys, collect responses, and view results — all on-chain.

How it works

  • Surveys are stored as JSON on the Bulletin Chain and get a content-addressed CID.
  • A smart contract on Asset Hub indexes survey CIDs and links response CIDs to them.
  • Responses are also stored on Bulletin, with their CIDs recorded in the contract.
  • To view results, the app reads all response CIDs from the contract, fetches the data from Bulletin, and aggregates the answers.

Stack

  • Smart contract — PVM (PolkaVM) on Paseo Asset Hub, managed via CDM
  • Bulletin Chain — decentralized data storage via @polkadot-apps/bulletin
  • Account management@polkadot-apps/signer (Host API, browser extensions, dev accounts)
  • Frontend — React + Vite

Setup

npm install
npm run dev

Deploy contract (first time only)

cdm build
cdm deploy -n paseo
cdm install @example/surveys -n paseo

Build & deploy frontend

npm run build:frontend
bulletin-deploy ./dist <your-domain>.dot

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors