├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── Cargo.toml ├── README.md ├── client ├── @types │ └── buffer-layout │ │ └── index.d.ts ├── README.md ├── fetch.ts ├── keyfile.ts ├── lib.ts ├── main.ts └── tests │ ├── keyfile.ts │ └── soltrans.ts ├── images └── solana-cli-program-template.png ├── keys ├── README.md ├── accounts │ ├── service_account.json │ ├── service_wallet.json │ ├── user1_account.json │ ├── user1_wallet.json │ ├── user2_account.json │ └── user2_wallet.json ├── keys_db.yml └── program │ └── SampGgdt3wioaoMZhC6LTSbg4pnuvQnSfJpDYeuXQBv.json ├── package.json ├── patch.crates-io.sh ├── program ├── Cargo.toml ├── README.md ├── Xargo.toml ├── src │ ├── account_state.rs │ ├── entry_point.rs │ ├── error.rs │ ├── instruction.rs │ ├── lib.rs │ └── processor.rs └── tests │ ├── README.md │ └── lib.rs ├── shared ├── Cargo.toml └── src │ └── lib.rs ├── src ├── README.md ├── clparse.rs ├── lib.rs ├── main.rs ├── utils.rs └── utils │ ├── account_state.rs │ ├── keys_db.rs │ └── txn_utils.rs ├── tests ├── README.md ├── common │ └── mod.rs ├── full.rs └── thin.rs ├── tsconfig.json └── update-solana-dependencies.sh /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/Cargo.toml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/README.md -------------------------------------------------------------------------------- /client/@types/buffer-layout/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'buffer-layout'; -------------------------------------------------------------------------------- /client/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/client/README.md -------------------------------------------------------------------------------- /client/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/client/fetch.ts -------------------------------------------------------------------------------- /client/keyfile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/client/keyfile.ts -------------------------------------------------------------------------------- /client/lib.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/client/lib.ts -------------------------------------------------------------------------------- /client/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/client/main.ts -------------------------------------------------------------------------------- /client/tests/keyfile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/client/tests/keyfile.ts -------------------------------------------------------------------------------- /client/tests/soltrans.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/client/tests/soltrans.ts -------------------------------------------------------------------------------- /images/solana-cli-program-template.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/images/solana-cli-program-template.png -------------------------------------------------------------------------------- /keys/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/keys/README.md -------------------------------------------------------------------------------- /keys/accounts/service_account.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/keys/accounts/service_account.json -------------------------------------------------------------------------------- /keys/accounts/service_wallet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/keys/accounts/service_wallet.json -------------------------------------------------------------------------------- /keys/accounts/user1_account.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/keys/accounts/user1_account.json -------------------------------------------------------------------------------- /keys/accounts/user1_wallet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/keys/accounts/user1_wallet.json -------------------------------------------------------------------------------- /keys/accounts/user2_account.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/keys/accounts/user2_account.json -------------------------------------------------------------------------------- /keys/accounts/user2_wallet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/keys/accounts/user2_wallet.json -------------------------------------------------------------------------------- /keys/keys_db.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/keys/keys_db.yml -------------------------------------------------------------------------------- /keys/program/SampGgdt3wioaoMZhC6LTSbg4pnuvQnSfJpDYeuXQBv.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/keys/program/SampGgdt3wioaoMZhC6LTSbg4pnuvQnSfJpDYeuXQBv.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/package.json -------------------------------------------------------------------------------- /patch.crates-io.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/patch.crates-io.sh -------------------------------------------------------------------------------- /program/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/Cargo.toml -------------------------------------------------------------------------------- /program/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/README.md -------------------------------------------------------------------------------- /program/Xargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/Xargo.toml -------------------------------------------------------------------------------- /program/src/account_state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/src/account_state.rs -------------------------------------------------------------------------------- /program/src/entry_point.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/src/entry_point.rs -------------------------------------------------------------------------------- /program/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/src/error.rs -------------------------------------------------------------------------------- /program/src/instruction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/src/instruction.rs -------------------------------------------------------------------------------- /program/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/src/lib.rs -------------------------------------------------------------------------------- /program/src/processor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/src/processor.rs -------------------------------------------------------------------------------- /program/tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/tests/README.md -------------------------------------------------------------------------------- /program/tests/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/program/tests/lib.rs -------------------------------------------------------------------------------- /shared/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/shared/Cargo.toml -------------------------------------------------------------------------------- /shared/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/shared/src/lib.rs -------------------------------------------------------------------------------- /src/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/src/README.md -------------------------------------------------------------------------------- /src/clparse.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/src/clparse.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/src/utils.rs -------------------------------------------------------------------------------- /src/utils/account_state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/src/utils/account_state.rs -------------------------------------------------------------------------------- /src/utils/keys_db.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/src/utils/keys_db.rs -------------------------------------------------------------------------------- /src/utils/txn_utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/src/utils/txn_utils.rs -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/tests/README.md -------------------------------------------------------------------------------- /tests/common/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/tests/common/mod.rs -------------------------------------------------------------------------------- /tests/full.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/tests/full.rs -------------------------------------------------------------------------------- /tests/thin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/tests/thin.rs -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/tsconfig.json -------------------------------------------------------------------------------- /update-solana-dependencies.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hashblock/solana-cli-program-template/HEAD/update-solana-dependencies.sh --------------------------------------------------------------------------------