This repository provides a practical example of how to set up a staking program for your NFT collection using either Anchor or TypeScript. By utilizing the Attribute and Freeze Delegate plugins, it efficiently manages the entire staking process, from time calculations to asset state management (staking/unstaking). Instead of relying on the traditional Program Derived Address (PDA) method, this approach stores staking data directly on the asset itself.
-
Anchor Guide: If you're working with Anchor, check out the Anchor Staking Example Guide for step-by-step instructions.
-
Typescript Guide: For those preferring TypeScript, the Web2 Typescript Staking Example Guide will help you get started.
If you need more technical support and development inquires, you can contact below.
X: @james980114
Telegram: @james_ybarra
Thanks.