explaingit

pplmaverick/tempo-weather-market

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 4/5LicenseSetup · hard

TLDR

A decentralized weather betting market on the Tempo blockchain that settles bets automatically using live weather data.

Mindmap

mindmap
  root((Tempo Weather Market))
    What it does
      Weather betting market
      Oracle settlement
      Bucket based payouts
    Tech stack
      Solidity
      TypeScript
      Hardhat
    Use cases
      Weather betting
      Oracle contract learning
      Tempo feature demo
    Audience
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Bet on tomorrow's temperature in a chosen city using stablecoins.

USE CASE 2

Learn how to build an oracle settled smart contract on Tempo.

USE CASE 3

Study Tempo native features like fee sponsorship and scheduled transactions.

USE CASE 4

Deploy a self locking prediction market that needs no external cron job.

What is it built with?

SolidityTypeScriptNode.jsExpressHardhatOpenZeppelin

How does it compare?

pplmaverick/tempo-weather-market0xradioac7iv/tempfsabboskhonov/hermium
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyhardmoderatemoderate
Complexity4/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires an OpenWeather API key, a funded Tempo wallet, and setting up a separate oracle server plus an n8n workflow.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Tempo Weather Market is a decentralized prediction market built on the Tempo blockchain. A prediction market is an application where people bet on the outcome of a real world event. In this project, users bet on weather outcomes, such as tomorrow's high temperature in a given city, using stablecoins, which are digital currencies whose value is pegged to something stable like the US dollar. Once a market closes, an oracle server fetches the actual weather data and settles the contract on its own, paying out winners automatically without anyone stepping in manually. The project is built specifically to demonstrate four features unique to the Tempo network rather than a generic blockchain. MPP lets the oracle collect its settlement fee in the same transaction as the result submission, instead of requiring a separate side payment and manual check. Payment Memo writes a short, structured record of each settlement directly onto the blockchain, so anyone can later see which city, prediction type, final temperature, and outcome a market settled with. Fee Sponsorship uses a pre funded gas tank so ordinary users can place bets without holding the network's native token at all, needing only the stablecoin they are betting with. Scheduled Transactions let the contract call a built in scheduler when a market is created, so the market locks itself automatically at the right time with no external cron job required. Markets work through a bucket system: the market creator sets a series of temperature ranges, bettors put money into the bucket they think will match the real outcome, and once the oracle reports the actual temperature, everyone in the correct bucket splits the total pool after a two percent fee. If nobody bet in the winning bucket, every bet is refunded in full instead of the fee being collected. The smart contract is written in Solidity using OpenZeppelin's library, developed and tested with Hardhat, and paired with a Node.js and Express oracle server written in TypeScript that pulls real weather data from the OpenWeather API. An n8n workflow automates calling the oracle server after each market's lock time. The project is released under the MIT license.

Copy-paste prompts

Prompt 1
Help me deploy this weather prediction market contract to the Tempo testnet.
Prompt 2
Explain how the fee sponsorship gas tank lets users bet without holding native tokens.
Prompt 3
Show me how to add a new city or prediction type to this market's bucket system.
Prompt 4
Write the n8n workflow steps needed to trigger oracle settlement automatically.

Frequently asked questions

What is tempo-weather-market?

A decentralized weather betting market on the Tempo blockchain that settles bets automatically using live weather data.

What language is tempo-weather-market written in?

Mainly TypeScript. The stack also includes Solidity, TypeScript, Node.js.

What license does tempo-weather-market use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is tempo-weather-market to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is tempo-weather-market for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.