Skip to content

Commit

Permalink
feat(pop-api): further implementation of nfts api
Browse files Browse the repository at this point in the history
  • Loading branch information
evilrobot-01 committed Mar 6, 2024
1 parent e871c2c commit bc6cc43
Show file tree
Hide file tree
Showing 4 changed files with 500 additions and 65 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pop-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ version = "0.0.0"
edition = "2021"

[dependencies]
enumflags2 = { version = "0.7.7" }
ink = { version = "4.3.0", default-features = false }
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "2.6", default-features = false, features = ["derive"] }
sp-io = { version = "23.0.0", default-features = false, features = ["disable_panic_handler", "disable_oom", "disable_allocator"] }
sp-runtime = { version = "24.0", default-features = false }

Expand All @@ -22,6 +23,7 @@ crate-type = ["rlib"]
[features]
default = ["std"]
std = [
"enumflags2/std",
"ink/std",
"pop-api-primitives/std",
"scale/std",
Expand Down
6 changes: 3 additions & 3 deletions pop-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ pub type CollectionId = u32;
// Id used for identifying non-fungible items.
pub type ItemId = u32;

type AccountId = <ink::env::DefaultEnvironment as ink::env::Environment>::AccountId;
type Balance = <ink::env::DefaultEnvironment as ink::env::Environment>::Balance;
type BlockNumber = <ink::env::DefaultEnvironment as ink::env::Environment>::BlockNumber;
type AccountId = <Environment as ink::env::Environment>::AccountId;
type Balance = <Environment as ink::env::Environment>::Balance;
type BlockNumber = <Environment as ink::env::Environment>::BlockNumber;
type StringLimit = u32;
type KeyLimit = u32;
type MaxTips = u32;
Expand Down
Loading

0 comments on commit bc6cc43

Please sign in to comment.