-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate custom snip20 for testing into here
- Loading branch information
Showing
23 changed files
with
10,732 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[package] | ||
name = "snip20-reference-impl" | ||
version = "1.0.0" | ||
authors = ["Itzik <itzik@keytango.io>"] | ||
edition = "2021" | ||
exclude = [ | ||
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication. | ||
"contract.wasm", | ||
"hash.txt", | ||
] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
[profile.release] | ||
opt-level = 3 | ||
debug = false | ||
rpath = false | ||
lto = true | ||
debug-assertions = false | ||
codegen-units = 1 | ||
panic = 'abort' | ||
incremental = false | ||
overflow-checks = true | ||
|
||
[features] | ||
# for quicker tests, cargo test --lib | ||
# for more explicit tests, cargo test --features=backtraces | ||
#default = ["debug-print"] | ||
backtraces = ["cosmwasm-std/backtraces"] | ||
library = [] | ||
|
||
# debug-print = ["cosmwasm-std/debug-print"] | ||
[dependencies] | ||
cosmwasm-std = { workspace = true } | ||
cosmwasm-storage = { workspace = true } | ||
cosmwasm-schema = { workspace = true } | ||
|
||
shade-toolkit = { workspace = true } | ||
|
||
secret-toolkit = { git = "https://github.com/securesecrets/secret-toolkit", features = [ | ||
"permit", | ||
"viewing-key", | ||
] } | ||
secret-toolkit-crypto = { git = "https://github.com/securesecrets/secret-toolkit", features = [ | ||
"rand", | ||
"hash", | ||
] } | ||
|
||
rand = { workspace = true } | ||
schemars = { workspace = true } | ||
serde = { workspace = true } | ||
base64 = { workspace = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use std::env::current_dir; | ||
use std::fs::create_dir_all; | ||
|
||
use cosmwasm_schema::{export_schema, remove_schemas, schema_for}; | ||
|
||
use snip20_reference_impl::msg::{ | ||
ExecuteAnswer, ExecuteMsg, InstantiateMsg, QueryAnswer, QueryMsg, | ||
}; | ||
|
||
fn main() { | ||
let mut out_dir = current_dir().unwrap(); | ||
out_dir.push("schema"); | ||
create_dir_all(&out_dir).unwrap(); | ||
remove_schemas(&out_dir).unwrap(); | ||
|
||
export_schema(&schema_for!(InstantiateMsg), &out_dir); | ||
export_schema(&schema_for!(ExecuteMsg), &out_dir); | ||
export_schema(&schema_for!(ExecuteAnswer), &out_dir); | ||
export_schema(&schema_for!(QueryMsg), &out_dir); | ||
export_schema(&schema_for!(QueryAnswer), &out_dir); | ||
} |
Oops, something went wrong.