-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add admin check to native token minter
Signed-off-by: aeryz <abdullaheryz@protonmail.com>
- Loading branch information
Showing
9 changed files
with
60 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,13 @@ | ||
use cosmwasm_std::{StdError, Uint128}; | ||
|
||
#[derive(Debug, thiserror::Error)] | ||
pub enum Error { | ||
#[error(transparent)] | ||
StdError(#[from] StdError), | ||
|
||
#[error("only the admin can execute")] | ||
OnlyAdmin, | ||
|
||
#[error("missing funds for denom {denom} with amount {amount}")] | ||
MissingFunds { denom: String, amount: Uint128 }, | ||
} |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
pub mod contract; | ||
pub mod error; | ||
pub mod state; |
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,4 @@ | ||
use cosmwasm_std::Addr; | ||
use cw_storage_plus::Item; | ||
|
||
pub const ADMIN: Item<Addr> = Item::new("admin"); |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
[package] | ||
name = "ucs03-zkgm-token-minter-api" | ||
version = "0.1.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
authors.workspace = true | ||
edition.workspace = true | ||
license-file.workspace = true | ||
publish.workspace = true | ||
repository.workspace = true | ||
name = "ucs03-zkgm-token-minter-api" | ||
publish.workspace = true | ||
repository.workspace = true | ||
version = "0.1.0" | ||
|
||
[dependencies] | ||
cosmwasm-schema = { version = "1.5" } | ||
cosmwasm-std = { version = "1.5" } | ||
enumorph = { workspace = true } | ||
token-factory-api = { workspace = true } | ||
cosmwasm-std = { version = "1.5" } | ||
cosmwasm-schema = { version = "1.5" } | ||
enumorph = { workspace = true } | ||
|
||
[lints] | ||
workspace = true |