|
9 ヶ月 前 | |
---|---|---|
.. | ||
migrations | 9 ヶ月 前 | |
programs | 9 ヶ月 前 | |
tests | 9 ヶ月 前 | |
ts-programs | 9 ヶ月 前 | |
.gitignore | 9 ヶ月 前 | |
Anchor.toml | 9 ヶ月 前 | |
Cargo.toml | 9 ヶ月 前 | |
README.md | 9 ヶ月 前 | |
package.json | 9 ヶ月 前 | |
pnpm-lock.yaml | 9 ヶ月 前 | |
tsconfig.json | 9 ヶ月 前 |
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