|
il y a 9 mois | |
---|---|---|
.. | ||
migrations | il y a 9 mois | |
programs | il y a 9 mois | |
tests | il y a 9 mois | |
ts-programs | il y a 9 mois | |
.gitignore | il y a 9 mois | |
Anchor.toml | il y a 9 mois | |
Cargo.toml | il y a 9 mois | |
README.md | il y a 9 mois | |
package.json | il y a 9 mois | |
pnpm-lock.yaml | il y a 9 mois | |
tsconfig.json | il y a 9 mois |
NOTE:_ If you haven't installed poseidon yet, follow the installation steps here
- We're writing our TypeScript program code in /ts-programs
Once TypeScript program is completed, generate a program id and replace the
PROGRAM_ID
with the actual one. To generate a program id, run:anchor keys list # You'll get something similar, but it will definitely be different close-account: At2EEHZ4zq2roeR5Cba6dryYEsmsHz7MKt9tjUCpCng1
To convert your TypeScript Solana program to Anchor program, run
poseidon -i ./ts-programs/closeAccount.ts -o programs/close-account/src/lib.rs