programs/staker/src/lib.rs
solana rust program in anchor ehich have 3 functions:
- create_myspl_atacreate ata for stake frogram for hold user tokens
- stakeget user token save them in program ata and give the stake token
- unstakeget 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- .envand- conts.tsshould be set)
- scripts/spl/call/update.tsfor update spl token metadata (before this- .envand- conts.tsshould be set)
- scripts/spl/call/disableMintAuthority.tsfor disable mint authority
- scripts/spl/call/disableMetadataMutable.tsfor disable metadata mutable
- scripts/spl/call/disableFreezeAuthority.tsfor disable freeze authority