ts-nodeas global command
- Confirm the solana wallet preparation:
/home/fury/.config/solana/id.jsonin test case
- Main script source for all functionality is here:
- Program account types are declared here:
- Idl to make the JS binding easy is here:
Able to test the script functions working in this way.
- Change commands properly in the main functions of the
script.tsfile to call the other functions
- Confirm the
ANCHOR_WALLETenvironment variable of the
As a Smart Contract Owner
For the first time use, the Smart Contract Owner should
initialize the Smart Contract for global account allocation.
initialize function for update the Threshold values after change the constants properly
Maintain the Reward token($WWV) vault's balance
REWARD_TOKEN_MINTis the reward token mint (for test).
rewardVaultis the reward token account for owner. The owner should have the token's
Mint Authorityor should
This is current test value. Should be revised properly.
EPOCH= 60 // A day
REWARD_PER_DAY= 100_000_000 // 0.1 $WWV According to the rank of NFTs, there reward amount will be changed automatically following the below logic.
RANK /DAILY PRIZE
As a NFT Holder
Stake Shred Collection NFTs with NFT
mint address and a boolean parameter weather the NFT is Legendary NFT.
As a Staker
Unstake their staked NFTs with
mint address and get rewards. ( Calculate generated reward by this NFT too )
Claim reward to receive generated $WWV from their staking.