├── .cargo ├── config └── config.toml ├── .circleci └── config.yml ├── .editorconfig ├── .github ├── dependabot.yml └── workflows │ └── test.yml ├── .gitignore ├── .vscode ├── launch.json └── settings.json ├── Cargo.lock ├── Cargo.toml ├── Developing.md ├── Importing.md ├── LICENSE ├── Makefile ├── NOTICE ├── Publishing.md ├── README.md ├── examples └── schema.rs ├── rustfmt.toml ├── schema ├── handle_answer.json ├── handle_msg.json ├── init_msg.json ├── query_answer.json └── query_msg.json ├── src ├── batch.rs ├── btbe.rs ├── constants.rs ├── contract.rs ├── dwb.rs ├── execute.rs ├── execute_admin.rs ├── execute_deposit_redeem.rs ├── execute_mint_burn.rs ├── execute_transfer_send.rs ├── gas_tracker.rs ├── lib.rs ├── msg.rs ├── notifications.rs ├── query.rs ├── receiver.rs ├── state.rs ├── strings.rs └── transaction_history.rs └── tests ├── dwb ├── .env.example ├── README.md ├── bun.lockb ├── eslint.config.mjs ├── package.json ├── src │ ├── constants.ts │ ├── contract.ts │ ├── dwb-entry.ts │ ├── dwb.ts │ ├── gas-checker.ts │ ├── helper.ts │ ├── main.ts │ └── snip.ts ├── tsconfig.json └── tsconfig.tsc-esm-fix.json ├── example-receiver ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── Makefile ├── README.md ├── rustfmt.toml └── src │ ├── contract.rs │ ├── lib.rs │ ├── msg.rs │ └── state.rs ├── integration.rs └── integration.sh /.cargo/config: -------------------------------------------------------------------------------- 1 | config.toml -------------------------------------------------------------------------------- /.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/.cargo/config.toml -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Developing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/Developing.md -------------------------------------------------------------------------------- /Importing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/Importing.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/Makefile -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/NOTICE -------------------------------------------------------------------------------- /Publishing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/Publishing.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/README.md -------------------------------------------------------------------------------- /examples/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/examples/schema.rs -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/rustfmt.toml -------------------------------------------------------------------------------- /schema/handle_answer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/schema/handle_answer.json -------------------------------------------------------------------------------- /schema/handle_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/schema/handle_msg.json -------------------------------------------------------------------------------- /schema/init_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/schema/init_msg.json -------------------------------------------------------------------------------- /schema/query_answer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/schema/query_answer.json -------------------------------------------------------------------------------- /schema/query_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/schema/query_msg.json -------------------------------------------------------------------------------- /src/batch.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/batch.rs -------------------------------------------------------------------------------- /src/btbe.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/btbe.rs -------------------------------------------------------------------------------- /src/constants.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/constants.rs -------------------------------------------------------------------------------- /src/contract.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/contract.rs -------------------------------------------------------------------------------- /src/dwb.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/dwb.rs -------------------------------------------------------------------------------- /src/execute.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/execute.rs -------------------------------------------------------------------------------- /src/execute_admin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/execute_admin.rs -------------------------------------------------------------------------------- /src/execute_deposit_redeem.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/execute_deposit_redeem.rs -------------------------------------------------------------------------------- /src/execute_mint_burn.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/execute_mint_burn.rs -------------------------------------------------------------------------------- /src/execute_transfer_send.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/execute_transfer_send.rs -------------------------------------------------------------------------------- /src/gas_tracker.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/gas_tracker.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/msg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/msg.rs -------------------------------------------------------------------------------- /src/notifications.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/notifications.rs -------------------------------------------------------------------------------- /src/query.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/query.rs -------------------------------------------------------------------------------- /src/receiver.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/receiver.rs -------------------------------------------------------------------------------- /src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/state.rs -------------------------------------------------------------------------------- /src/strings.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/strings.rs -------------------------------------------------------------------------------- /src/transaction_history.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/src/transaction_history.rs -------------------------------------------------------------------------------- /tests/dwb/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/.env.example -------------------------------------------------------------------------------- /tests/dwb/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/README.md -------------------------------------------------------------------------------- /tests/dwb/bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/bun.lockb -------------------------------------------------------------------------------- /tests/dwb/eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/eslint.config.mjs -------------------------------------------------------------------------------- /tests/dwb/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/package.json -------------------------------------------------------------------------------- /tests/dwb/src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/src/constants.ts -------------------------------------------------------------------------------- /tests/dwb/src/contract.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/src/contract.ts -------------------------------------------------------------------------------- /tests/dwb/src/dwb-entry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/src/dwb-entry.ts -------------------------------------------------------------------------------- /tests/dwb/src/dwb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/src/dwb.ts -------------------------------------------------------------------------------- /tests/dwb/src/gas-checker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/src/gas-checker.ts -------------------------------------------------------------------------------- /tests/dwb/src/helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/src/helper.ts -------------------------------------------------------------------------------- /tests/dwb/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/src/main.ts -------------------------------------------------------------------------------- /tests/dwb/src/snip.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/src/snip.ts -------------------------------------------------------------------------------- /tests/dwb/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/tsconfig.json -------------------------------------------------------------------------------- /tests/dwb/tsconfig.tsc-esm-fix.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/dwb/tsconfig.tsc-esm-fix.json -------------------------------------------------------------------------------- /tests/example-receiver/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/example-receiver/.gitignore -------------------------------------------------------------------------------- /tests/example-receiver/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/example-receiver/Cargo.lock -------------------------------------------------------------------------------- /tests/example-receiver/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/example-receiver/Cargo.toml -------------------------------------------------------------------------------- /tests/example-receiver/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/example-receiver/Makefile -------------------------------------------------------------------------------- /tests/example-receiver/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/example-receiver/README.md -------------------------------------------------------------------------------- /tests/example-receiver/rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/example-receiver/rustfmt.toml -------------------------------------------------------------------------------- /tests/example-receiver/src/contract.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/example-receiver/src/contract.rs -------------------------------------------------------------------------------- /tests/example-receiver/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/example-receiver/src/lib.rs -------------------------------------------------------------------------------- /tests/example-receiver/src/msg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/example-receiver/src/msg.rs -------------------------------------------------------------------------------- /tests/example-receiver/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/example-receiver/src/state.rs -------------------------------------------------------------------------------- /tests/integration.rs: -------------------------------------------------------------------------------- 1 | #[test] 2 | #[ignore] 3 | fn empty_test() {} 4 | -------------------------------------------------------------------------------- /tests/integration.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrtlabs/snip20-reference-impl/HEAD/tests/integration.sh --------------------------------------------------------------------------------