Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pragma Protocol

Repository for the Tokenomics postgraduate course. Each lesson adds a layer to the same Web3 services ecosystem.

Token: Pragma (PGM) — ERC-20, fixed supply 10,000,000 PGM
Network: Ethereum (Sepolia Testnet)
Stack: Solidity, Foundry

Contents

Three lesson folders. Each has reports (required deliverables) and contracts or dapp (bonus implementation).

Folder Reports Bonus
01-token-design/ One-pager (PGM tokenomics), pitch script PGM ERC-20 — utility token, 10M supply, 2% fee, premium access (Sepolia)
02-eip1559-bme/ EIP-1559 case study (burn, deflationary periods, investors) BMEToken — adaptive burn rate, EIP-1559 style (Foundry)
03-axie-autopsy/ Axie Infinity tokenomics autopsy (dual-token, inflation, redesign) DApp — Pragma Access Gate (marketplace, history, analytics, burn, approve)

01 defines the base token (design, distribution, payment + access). 02 adds the economic model: BME adaptive burn inspired by EIP-1559. 03 analyses the Axie collapse and demonstrates PGM utility via a live DApp with tier gating and marketplace simulation.

Structure

bme-model/
├── README.md
├── index.html         GitHub Pages hub (links to DApp)
├── 01-token-design/
│   ├── reports/       OnePager_PGM.md, Pitch_Roteiro.md (+ .docx/.pptx)
│   └── contracts/     PragmaToken.sol, tests, deploy script
├── 02-eip1559-bme/
│   ├── reports/       EIP1559_BME.md (+ .docx)
│   └── contracts/     BMEToken.sol, tests, deploy script
└── 03-axie-autopsy/
    ├── reports/       Axie_Autopsy.md (+ .docx, .pdf)
    └── dapp/          Pragma Access Gate DApp (single-page, Sepolia)

Live DApp

The lesson 03 DApp is published on GitHub Pages:

Connect MetaMask on Sepolia to check your PGM tier, transfer tokens, use the marketplace simulation, view tx history, approve/allowance, and burn to the dead address.

Deployed contracts (Sepolia)

Contract Address Etherscan
PragmaToken (PGM) 0xC7b1Fff31eC9ce8075C1fCE0339E751135e310eb View
BMEToken (BME) 0xEBc255fC63aF6AFD115bEF3c7844460429726Dc8 View

Deploy and on-chain reads were tested; contracts are verified on Etherscan.

Note: The codebase was updated to Solidity 0.8.33 to address compiler warnings. The contracts listed above were deployed with older compiler versions and may still show those warnings on Etherscan. A re-deploy and re-verify are required to clear them.

References

About

Repository for the Tokenomics postgraduate course. Each lesson adds a layer to the same Web3 services ecosystem.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages