This dApp runs on the Massa network and manages on-chain subscription plans.
Prerequisites: Node.js, Bearby or Massa Station wallet
- Install dependencies:
npm install - Configure env in
.env.local:GEMINI_API_KEY=your_keyVITE_MASSA_CONTRACT_ADDRESS=YOUR_DEPLOYED_CONTRACT_ADDRESS - Start:
npm run dev
Source is in contracts/streamless/Streamless.ts (AssemblyScript). It exposes createPlan, subscribe, and cancel entry points and stores plan and subscription data in contract storage.
- Create a Massa smart contract project and copy
contracts/streamless/Streamless.tsinto it. - Install
@massalabs/massa-as-sdkand compile to Wasm. - Deploy the Wasm to Massa testnet/mainnet using Massa CLI or Bearby.
- Set the deployed address in
VITE_MASSA_CONTRACT_ADDRESS.
The app detects Bearby and Massa Station. On-chain operations are executed via the connected wallet. If no provider is available, actions continue locally for demo purposes.