The Time Capsule Smart Contract is a decentralized application built on the XDC blockchain. It enables users to create time capsules that securely store memories and content until a specified unlock date.
- Media Upload: Upload various types of media including images, audio recordings, videos, and text.
- Secure Blockchain Storage: Safeguard your memories using blockchain technology.
- Time Capsule Tokenization: Tokenize each time capsule with a unique NFT.
- Scheduled Unlock Dates: Set specific unlock dates for time capsules.
- Name: TimeCapsule
- Symbol: TCC
registerTimeCapsule
: Register a new time capsule with due date, media URI, description, and recipients.addRecipient
: Add a recipient to an existing time capsule.resetDueDate
: Reset the due date of a time capsule with a penalty fee.calculateResetFee
: Calculate the penalty fee for resetting the due date.tokenURI
: Get the token URI of a time capsule.viewTitle
: View the description of a time capsule.
- Node.js
- Hardhat
- MetaMask or compatible Ethereum wallet
-
Clone the Repository
git clone https://github.com/TangledDevs/xdc-time-capsule-contracts cd xdc-time-capsule-contracts
-
Install Dependencies
npm install
-
Compile Smart Contracts
npx hardhat compile
-
Deploy Smart Contract
Update the
deploy.js
script with your deployment logic and run:npx hardhat run scripts/deploy.js --network <network_name>
Replace
<network_name>
with the desired network (e.g.,xdctestnet
).