Skip to content

Commit

Permalink
Update kyc pallet to support authorised accounts (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhath-labs committed Mar 29, 2023
1 parent 28ea100 commit 59c7079
Show file tree
Hide file tree
Showing 12 changed files with 1,252 additions and 23 deletions.
26 changes: 22 additions & 4 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion pallets/carbon-credits-pool/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ impl pallet_carbon_credits::Config for Test {
type MaxIpfsReferenceLength = ConstU32<20>;
type MaxLongStringLength = ConstU32<100>;
type MaxRoyaltyRecipients = ConstU32<5>;
type MaxCoordinatesLength = ConstU32<100>;
type MaxShortStringLength = ConstU32<20>;
type MinProjectId = ConstU32<1000>;
type NFTHandler = Uniques;
Expand Down
45 changes: 45 additions & 0 deletions pallets/kyc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[package]
name = "pallet-kyc"
version = "0.0.1"
authors = ["Bitgreen"]
edition = "2021"
homepage = 'https://bitgreen.org'
license = 'MIT'
description = "Pallet to handle onchain KYC validation"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.2.2", default-features = false }
log = { version = "0.4.17", default-features = false }
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", optional = true, default-features = false }
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", default-features = false }
frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", default-features = false }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", default-features = false }
sp-io = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", default-features = false }
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", default-features = false }

[features]
default = ["std"]
std = [
"codec/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"log/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
try-runtime = ["frame-support/try-runtime"]
6 changes: 6 additions & 0 deletions pallets/kyc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Membership Module

Allows control of membership of a set of `AccountId`s, useful for managing membership of a
collective. A prime member may be set.

License: Apache-2.0
Loading

0 comments on commit 59c7079

Please sign in to comment.