Skip to content

Commit

Permalink
RMRK chain extension (#17)
Browse files Browse the repository at this point in the history
* rmrk integration

* fmt

* bump version

* basic rmrk support

* fmt fix

* added AddBasicResource

* fix for create_collection

* added collections() resources()

* moved RmrkFunc to types crate

* changed symbol to Vec

* format toml files

Co-authored-by: Shunsuke Watanabe <[email protected]>
  • Loading branch information
Maar-io and shunsukew committed Aug 1, 2022
1 parent de52b32 commit 6bd11dc
Show file tree
Hide file tree
Showing 11 changed files with 654 additions and 86 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
.direnv

.vscode
vendor/
138 changes: 136 additions & 2 deletions Cargo.lock

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

51 changes: 51 additions & 0 deletions chainextensions/rmrk/impl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[package]
name = "pallet-chain-extension-rmrk"
version = "0.1.0"
authors = ["Stake Technologies <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
homepage = "https://astar.network"
repository = "https://github.com/AstarNetwork/astar-frame"
description = "RMRK chain extension for WASM contracts"

[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26", default-features = false }
frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26", default-features = false }
log = "0.4.16"
num-traits = { version = "0.2", default-features = false }
pallet-contracts = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26", default-features = false, features = ["unstable-interface"] }
pallet-contracts-primitives = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26", default-features = false }
pallet-contracts-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26", default-features = false }
pallet-uniques = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.26", default-features = false }
scale-info = { version = "2.1.0", default-features = false, features = ["derive"] }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26", default-features = false }
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.26", default-features = false }

# RMRK
chain-extension-traits = { path = "../../traits", default-features = false }
pallet-rmrk-core = { git = "https://github.com/AstarNetwork/rmrk-substrate", branch = "polkadot-v0.9.26", default-features = false }
rmrk-chain-extension-types = { path = "../types", default-features = false }
rmrk-traits = { version = "0.0.1", git = "https://github.com/AstarNetwork/rmrk-substrate", branch = "polkadot-v0.9.26", default-features = false }

[features]
default = ["std"]
std = [
"codec/std",
"chain-extension-traits/std",
"frame-support/std",
"frame-system/std",
"num-traits/std",
"pallet-contracts/std",
"pallet-contracts-primitives/std",
"pallet-contracts-rpc-runtime-api/std",
"pallet-rmrk-core/std",
"pallet-uniques/std",
"rmrk-traits/std",
"rmrk-chain-extension-types/std",
"scale-info/std",
"sp-std/std",
"sp-core/std",
"sp-runtime/std",
]
Loading

0 comments on commit 6bd11dc

Please sign in to comment.