Smart Contracts
BayarR uses two contracts on Base Sepolia.
Paylink.sol
Purpose: store and manage payment requests.
Core fields:
creator: who created the paylinkamount: IDRX amount in 18 decimalsexpiry: unix timestampnote: short description stored onchainpaid: status flagpayer: wallet that paidpaidAt: unix timestamp
Key functions:
createPaylink(amount, expiryDays, note)pay(id)getPaylink(id)
Events:
PaylinkCreatedPaylinkPaid
MockIDRX.sol
Purpose: test token with open minting for hackathon demo.
Key functions:
mint(to, amount)approve(spender, amount)balanceOf(account)