programs/staker/src/lib.rs
solana rust program in anchor ehich have 3 functions:
create_myspl_ata
create ata for stake frogram for hold user tokensstake
get user token save them in program ata and give the stake tokenunstake
get 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
.env
requirements - set the token metadata in
scripts/spl/splHelper/consts.ts
- after mint mint address and other info will save in
scripts/spl/outputs
folder with the token name
scripts/spl/call/mint.ts
for mint new spl token (before this.env
andconts.ts
should be set)scripts/spl/call/update.ts
for update spl token metadata (before this.env
andconts.ts
should be set)scripts/spl/call/disableMintAuthority.ts
for disable mint authorityscripts/spl/call/disableMetadataMutable.ts
for disable metadata mutablescripts/spl/call/disableFreezeAuthority.ts
for disable freeze authority