Skip to content

Commit

Permalink
Merge pull request #78 from eigerco/feat/11/market-pallet-setup
Browse files Browse the repository at this point in the history
feat: Market Pallet add_balance and withdraw_balance
  • Loading branch information
th7nder authored Jun 26, 2024
2 parents a3a2a5d + 1ab4a39 commit 37753a5
Show file tree
Hide file tree
Showing 9 changed files with 1,174 additions and 7 deletions.
50 changes: 49 additions & 1 deletion Cargo.lock

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

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license-file = "LICENSE"
repository = "https://github.com/eigerco/polka-storage"

[workspace]
members = ["cli/polka-storage-provider", "node", "primitives/cli", "runtime", "storage/mater", "storage/polka-index"]
members = ["cli/polka-storage-provider", "node", "pallets/market", "primitives/cli", "runtime", "storage/mater", "storage/polka-index"]
resolver = "2"

[profile.ci]
Expand All @@ -28,11 +28,12 @@ async-channel = "2.3.1"
async-stream = "0.3.5"
base64 = "0.22.1"
bitflags = "2.5.0"
blake2b_simd = { version = "1.0.2" }
byteorder = "1.5.0"
bytes = "1.6.0"
chrono = "0.4.38"
ciborium = "0.2.2"
cid = { version = "0.11.1" }
cid = { version = "0.11.1", default-features = false }
clap = { version = "4.5.3" }
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
color-print = "0.3.4"
Expand All @@ -48,6 +49,7 @@ ipld-dagpb = "0.2.1"
itertools = "0.13.0"
jsonrpsee = { version = "0.22.5" }
log = { version = "0.4.21", default-features = false }
multihash-codetable = { version = "0.1.1", default-features = false }
polkavm = "0.9.3"
polkavm-derive = "0.9.1"
polkavm-linker = "0.9.2"
Expand Down Expand Up @@ -79,6 +81,7 @@ uuid = "1.8.0"

# Local
cli-primitives = { path = "primitives/cli" }
pallet-market = { path = "pallets/market", default-features = false }
polka-storage-runtime = { path = "runtime" }

# Substrate
Expand All @@ -100,6 +103,7 @@ sc-tracing = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkad
sc-transaction-pool = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.13.0" }
sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.13.0" }
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.13.0", default-features = false }
sp-arithmetic = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.13.0", default-features = false }
sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.13.0", default-features = false }
sp-blockchain = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.13.0" }
sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-v1.13.0", default-features = false }
Expand Down
60 changes: 60 additions & 0 deletions pallets/market/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[package]
authors.workspace = true
description = "handles deal interactions between Storage Clients and Storage Providers"
edition.workspace = true
homepage.workspace = true
license-file.workspace = true
name = "pallet-market"
publish = false
repository.workspace = true
version = "0.0.0"

[lints]
workspace = true

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

[dependencies]
cid = { workspace = true, default-features = false, features = ["scale-codec"] }
codec = { workspace = true, default-features = false, features = ["derive"] }
log = { workspace = true }
scale-info = { workspace = true, default-features = false, features = ["derive"] }

# frame deps
frame-benchmarking = { workspace = true, default-features = false, optional = true }
frame-support = { workspace = true, default-features = false }
frame-system = { workspace = true, default-features = false }
sp-arithmetic = { workspace = true, default-features = false }
sp-std = { workspace = true, default-features = false }

[dev-dependencies]
blake2b_simd = { workspace = true }
env_logger = { workspace = true }
multihash-codetable = { workspace = true, features = ["blake2b"] }
pallet-balances = { workspace = true, default-features = false }
sp-core = { workspace = true, default-features = false }
sp-io = { workspace = true }
sp-runtime = { workspace = true, default-features = false }

[features]
default = ["std"]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
std = [
"cid/std",
"codec/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
]
try-runtime = ["frame-support/try-runtime", "frame-system/try-runtime", "sp-runtime/try-runtime"]
Loading

0 comments on commit 37753a5

Please sign in to comment.