├── .gitignore ├── LICENSE ├── README.md └── challenges ├── 01-storewhat ├── Cargo.lock ├── Cargo.toml ├── EXPLANATION.md ├── README.md ├── examples │ └── schema.rs ├── rustfmt.toml ├── schema │ ├── balance_response.json │ ├── execute_msg.json │ ├── instantiate_msg.json │ └── query_msg.json └── src │ ├── contract.rs │ ├── error.rs │ ├── helpers.rs │ ├── lib.rs │ ├── msg.rs │ ├── state.rs │ └── tests │ ├── exploit.rs │ ├── mod.rs │ └── unittests.rs ├── 02-auth ├── Cargo.lock ├── Cargo.toml ├── EXPLANATION.md ├── README.md ├── examples │ └── schema.rs ├── rustfmt.toml ├── schema │ ├── balance_response.json │ ├── execute_msg.json │ ├── instantiate_msg.json │ └── query_msg.json └── src │ ├── contract.rs │ ├── error.rs │ ├── helpers.rs │ ├── lib.rs │ ├── msg.rs │ ├── state.rs │ └── tests │ ├── exploit.rs │ ├── mod.rs │ └── unittests.rs ├── 03-mint ├── .cargo │ └── config ├── .editorconfig ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── NOTICE ├── README.md └── src │ ├── bin │ └── schema.rs │ ├── contract.rs │ ├── error.rs │ ├── exploit.rs │ ├── integration_tests.rs │ ├── lib.rs │ ├── msg.rs │ └── state.rs ├── 04-nft ├── .cargo │ └── config ├── .editorconfig ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── NOTICE ├── README.md └── src │ ├── bin │ └── schema.rs │ ├── contract.rs │ ├── error.rs │ ├── lib.rs │ ├── msg.rs │ ├── state.rs │ └── tests │ ├── exploit.rs │ ├── mod.rs │ └── unittests.rs ├── 05-addressing ├── Cargo.lock ├── Cargo.toml ├── EXPLANATION.md ├── README.md ├── examples │ └── schema.rs ├── rustfmt.toml ├── schema │ ├── balance_response.json │ ├── execute_msg.json │ ├── instantiate_msg.json │ └── query_msg.json └── src │ ├── contract.rs │ ├── error.rs │ ├── exploit.rs │ ├── lib.rs │ ├── msg.rs │ ├── state.rs │ └── unittests.rs └── 06-rounding ├── Cargo.lock ├── Cargo.toml ├── EXPLANATION.md ├── README.md ├── examples └── schema.rs ├── rustfmt.toml ├── schema ├── balance_response.json ├── execute_msg.json ├── instantiate_msg.json └── query_msg.json └── src ├── contract.rs ├── error.rs ├── lib.rs ├── msg.rs ├── state.rs └── tests ├── exploit.rs ├── mod.rs └── unittests.rs /.gitignore: -------------------------------------------------------------------------------- 1 | challenges/*/target/ 2 | .vscode/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/README.md -------------------------------------------------------------------------------- /challenges/01-storewhat/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/Cargo.lock -------------------------------------------------------------------------------- /challenges/01-storewhat/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/Cargo.toml -------------------------------------------------------------------------------- /challenges/01-storewhat/EXPLANATION.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/EXPLANATION.md -------------------------------------------------------------------------------- /challenges/01-storewhat/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/README.md -------------------------------------------------------------------------------- /challenges/01-storewhat/examples/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/examples/schema.rs -------------------------------------------------------------------------------- /challenges/01-storewhat/rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/rustfmt.toml -------------------------------------------------------------------------------- /challenges/01-storewhat/schema/balance_response.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/schema/balance_response.json -------------------------------------------------------------------------------- /challenges/01-storewhat/schema/execute_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/schema/execute_msg.json -------------------------------------------------------------------------------- /challenges/01-storewhat/schema/instantiate_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/schema/instantiate_msg.json -------------------------------------------------------------------------------- /challenges/01-storewhat/schema/query_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/schema/query_msg.json -------------------------------------------------------------------------------- /challenges/01-storewhat/src/contract.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/src/contract.rs -------------------------------------------------------------------------------- /challenges/01-storewhat/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/src/error.rs -------------------------------------------------------------------------------- /challenges/01-storewhat/src/helpers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/src/helpers.rs -------------------------------------------------------------------------------- /challenges/01-storewhat/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/src/lib.rs -------------------------------------------------------------------------------- /challenges/01-storewhat/src/msg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/src/msg.rs -------------------------------------------------------------------------------- /challenges/01-storewhat/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/src/state.rs -------------------------------------------------------------------------------- /challenges/01-storewhat/src/tests/exploit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/src/tests/exploit.rs -------------------------------------------------------------------------------- /challenges/01-storewhat/src/tests/mod.rs: -------------------------------------------------------------------------------- 1 | mod unittests; 2 | mod exploit; 3 | 4 | pub const DENOM: &str = "uoaksec"; -------------------------------------------------------------------------------- /challenges/01-storewhat/src/tests/unittests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/01-storewhat/src/tests/unittests.rs -------------------------------------------------------------------------------- /challenges/02-auth/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/Cargo.lock -------------------------------------------------------------------------------- /challenges/02-auth/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/Cargo.toml -------------------------------------------------------------------------------- /challenges/02-auth/EXPLANATION.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/EXPLANATION.md -------------------------------------------------------------------------------- /challenges/02-auth/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/README.md -------------------------------------------------------------------------------- /challenges/02-auth/examples/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/examples/schema.rs -------------------------------------------------------------------------------- /challenges/02-auth/rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/rustfmt.toml -------------------------------------------------------------------------------- /challenges/02-auth/schema/balance_response.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/schema/balance_response.json -------------------------------------------------------------------------------- /challenges/02-auth/schema/execute_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/schema/execute_msg.json -------------------------------------------------------------------------------- /challenges/02-auth/schema/instantiate_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/schema/instantiate_msg.json -------------------------------------------------------------------------------- /challenges/02-auth/schema/query_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/schema/query_msg.json -------------------------------------------------------------------------------- /challenges/02-auth/src/contract.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/src/contract.rs -------------------------------------------------------------------------------- /challenges/02-auth/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/src/error.rs -------------------------------------------------------------------------------- /challenges/02-auth/src/helpers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/src/helpers.rs -------------------------------------------------------------------------------- /challenges/02-auth/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/src/lib.rs -------------------------------------------------------------------------------- /challenges/02-auth/src/msg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/src/msg.rs -------------------------------------------------------------------------------- /challenges/02-auth/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/src/state.rs -------------------------------------------------------------------------------- /challenges/02-auth/src/tests/exploit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/src/tests/exploit.rs -------------------------------------------------------------------------------- /challenges/02-auth/src/tests/mod.rs: -------------------------------------------------------------------------------- 1 | mod exploit; 2 | mod unittests; 3 | 4 | pub const DENOM: &str = "uoaksec"; 5 | -------------------------------------------------------------------------------- /challenges/02-auth/src/tests/unittests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/02-auth/src/tests/unittests.rs -------------------------------------------------------------------------------- /challenges/03-mint/.cargo/config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/.cargo/config -------------------------------------------------------------------------------- /challenges/03-mint/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/.editorconfig -------------------------------------------------------------------------------- /challenges/03-mint/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/Cargo.lock -------------------------------------------------------------------------------- /challenges/03-mint/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/Cargo.toml -------------------------------------------------------------------------------- /challenges/03-mint/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/LICENSE -------------------------------------------------------------------------------- /challenges/03-mint/NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/NOTICE -------------------------------------------------------------------------------- /challenges/03-mint/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/README.md -------------------------------------------------------------------------------- /challenges/03-mint/src/bin/schema.rs: -------------------------------------------------------------------------------- 1 | fn main() {} 2 | -------------------------------------------------------------------------------- /challenges/03-mint/src/contract.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/src/contract.rs -------------------------------------------------------------------------------- /challenges/03-mint/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/src/error.rs -------------------------------------------------------------------------------- /challenges/03-mint/src/exploit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/src/exploit.rs -------------------------------------------------------------------------------- /challenges/03-mint/src/integration_tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/src/integration_tests.rs -------------------------------------------------------------------------------- /challenges/03-mint/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/src/lib.rs -------------------------------------------------------------------------------- /challenges/03-mint/src/msg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/src/msg.rs -------------------------------------------------------------------------------- /challenges/03-mint/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/03-mint/src/state.rs -------------------------------------------------------------------------------- /challenges/04-nft/.cargo/config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/.cargo/config -------------------------------------------------------------------------------- /challenges/04-nft/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/.editorconfig -------------------------------------------------------------------------------- /challenges/04-nft/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/Cargo.lock -------------------------------------------------------------------------------- /challenges/04-nft/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/Cargo.toml -------------------------------------------------------------------------------- /challenges/04-nft/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/LICENSE -------------------------------------------------------------------------------- /challenges/04-nft/NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/NOTICE -------------------------------------------------------------------------------- /challenges/04-nft/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/README.md -------------------------------------------------------------------------------- /challenges/04-nft/src/bin/schema.rs: -------------------------------------------------------------------------------- 1 | fn main() {} 2 | -------------------------------------------------------------------------------- /challenges/04-nft/src/contract.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/src/contract.rs -------------------------------------------------------------------------------- /challenges/04-nft/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/src/error.rs -------------------------------------------------------------------------------- /challenges/04-nft/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/src/lib.rs -------------------------------------------------------------------------------- /challenges/04-nft/src/msg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/src/msg.rs -------------------------------------------------------------------------------- /challenges/04-nft/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/src/state.rs -------------------------------------------------------------------------------- /challenges/04-nft/src/tests/exploit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/src/tests/exploit.rs -------------------------------------------------------------------------------- /challenges/04-nft/src/tests/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/src/tests/mod.rs -------------------------------------------------------------------------------- /challenges/04-nft/src/tests/unittests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/04-nft/src/tests/unittests.rs -------------------------------------------------------------------------------- /challenges/05-addressing/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/Cargo.lock -------------------------------------------------------------------------------- /challenges/05-addressing/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/Cargo.toml -------------------------------------------------------------------------------- /challenges/05-addressing/EXPLANATION.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/EXPLANATION.md -------------------------------------------------------------------------------- /challenges/05-addressing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/README.md -------------------------------------------------------------------------------- /challenges/05-addressing/examples/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/examples/schema.rs -------------------------------------------------------------------------------- /challenges/05-addressing/rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/rustfmt.toml -------------------------------------------------------------------------------- /challenges/05-addressing/schema/balance_response.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/schema/balance_response.json -------------------------------------------------------------------------------- /challenges/05-addressing/schema/execute_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/schema/execute_msg.json -------------------------------------------------------------------------------- /challenges/05-addressing/schema/instantiate_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/schema/instantiate_msg.json -------------------------------------------------------------------------------- /challenges/05-addressing/schema/query_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/schema/query_msg.json -------------------------------------------------------------------------------- /challenges/05-addressing/src/contract.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/src/contract.rs -------------------------------------------------------------------------------- /challenges/05-addressing/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/src/error.rs -------------------------------------------------------------------------------- /challenges/05-addressing/src/exploit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/src/exploit.rs -------------------------------------------------------------------------------- /challenges/05-addressing/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/src/lib.rs -------------------------------------------------------------------------------- /challenges/05-addressing/src/msg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/src/msg.rs -------------------------------------------------------------------------------- /challenges/05-addressing/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/src/state.rs -------------------------------------------------------------------------------- /challenges/05-addressing/src/unittests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/05-addressing/src/unittests.rs -------------------------------------------------------------------------------- /challenges/06-rounding/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/Cargo.lock -------------------------------------------------------------------------------- /challenges/06-rounding/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/Cargo.toml -------------------------------------------------------------------------------- /challenges/06-rounding/EXPLANATION.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/EXPLANATION.md -------------------------------------------------------------------------------- /challenges/06-rounding/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/README.md -------------------------------------------------------------------------------- /challenges/06-rounding/examples/schema.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/examples/schema.rs -------------------------------------------------------------------------------- /challenges/06-rounding/rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/rustfmt.toml -------------------------------------------------------------------------------- /challenges/06-rounding/schema/balance_response.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/schema/balance_response.json -------------------------------------------------------------------------------- /challenges/06-rounding/schema/execute_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/schema/execute_msg.json -------------------------------------------------------------------------------- /challenges/06-rounding/schema/instantiate_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/schema/instantiate_msg.json -------------------------------------------------------------------------------- /challenges/06-rounding/schema/query_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/schema/query_msg.json -------------------------------------------------------------------------------- /challenges/06-rounding/src/contract.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/src/contract.rs -------------------------------------------------------------------------------- /challenges/06-rounding/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/src/error.rs -------------------------------------------------------------------------------- /challenges/06-rounding/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/src/lib.rs -------------------------------------------------------------------------------- /challenges/06-rounding/src/msg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/src/msg.rs -------------------------------------------------------------------------------- /challenges/06-rounding/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/src/state.rs -------------------------------------------------------------------------------- /challenges/06-rounding/src/tests/exploit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/src/tests/exploit.rs -------------------------------------------------------------------------------- /challenges/06-rounding/src/tests/mod.rs: -------------------------------------------------------------------------------- 1 | mod unittests; 2 | mod exploit; 3 | 4 | pub const DENOM: &str = "uoaksec"; -------------------------------------------------------------------------------- /challenges/06-rounding/src/tests/unittests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oak-security/cosmwasm-security-dojo/HEAD/challenges/06-rounding/src/tests/unittests.rs --------------------------------------------------------------------------------