programs/staker/src/lib.rs
solana rust program in anchor ehich have 3 functions:
create_myspl_atacreate ata for stake frogram for hold user tokensstakeget user token save them in program ata and give the stake tokenunstakeget stake token back from user and give his token back to him
run script for get functions params address ts-node scripts/getPdaAndAtaAddressForProgram.ts
scripts/spl
- for mint spl token 1st set the
.envrequirements - set the token metadata in
scripts/spl/splHelper/consts.ts - after mint mint address and other info will save in
scripts/spl/outputsfolder with the token name
scripts/spl/call/mint.tsfor mint new spl token (before this.envandconts.tsshould be set)scripts/spl/call/update.tsfor update spl token metadata (before this.envandconts.tsshould be set)scripts/spl/call/disableMintAuthority.tsfor disable mint authorityscripts/spl/call/disableMetadataMutable.tsfor disable metadata mutablescripts/spl/call/disableFreezeAuthority.tsfor disable freeze authority