Cargo.toml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. [package]
  2. authors = ['Joystream contributors']
  3. edition = '2018'
  4. name = 'joystream-node-runtime'
  5. # Follow convention: https://github.com/Joystream/substrate-runtime-joystream/issues/1
  6. # {Authoring}.{Spec}.{Impl} of the RuntimeVersion
  7. version = '10.5.0'
  8. [dependencies]
  9. # Third-party dependencies
  10. serde = { version = "1.0.101", optional = true, features = ["derive"] }
  11. lazy_static = {version = "1.4.0", features = ["spin_no_std"] }
  12. lite-json = { version = '0.1.3', default-features = false}
  13. codec = { package = 'parity-scale-codec', version = '1.3.4', default-features = false, features = ['derive'] }
  14. smallvec = "1.6.0"
  15. # Substrate primitives
  16. sp-std = { package = 'sp-std', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  17. sp-arithmetic = { package = 'sp-arithmetic', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  18. sp-runtime = { package = 'sp-runtime', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  19. sp-offchain = { package = 'sp-offchain', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  20. sp-core = { package = 'sp-core', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  21. sp-authority-discovery = { package = 'sp-authority-discovery', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  22. sp-consensus-babe = { package = 'sp-consensus-babe', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  23. sp-transaction-pool = { package = 'sp-transaction-pool', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  24. sp-session = { package = 'sp-session', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  25. sp-block-builder = { package = 'sp-block-builder', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  26. sp-api = { package = 'sp-api', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  27. sp-version = { package = 'sp-version', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  28. sp-staking = { package = 'sp-staking', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  29. sp-application-crypto = { package = 'sp-application-crypto', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  30. # Frame
  31. frame-support = { package = 'frame-support', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  32. frame-executive = { package = 'frame-executive', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  33. frame-system-rpc-runtime-api = { package = 'frame-system-rpc-runtime-api', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  34. frame-system = { package = 'frame-system', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  35. # Pallets
  36. pallet-grandpa = { package = 'pallet-grandpa', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  37. pallet-staking-reward-curve = { package = 'pallet-staking-reward-curve', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  38. pallet-babe = { package = 'pallet-babe', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  39. pallet-transaction-payment = { package = 'pallet-transaction-payment', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  40. pallet-transaction-payment-rpc-runtime-api = { package = 'pallet-transaction-payment-rpc-runtime-api', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  41. pallet-authorship = { package = 'pallet-authorship', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  42. pallet-session = { package = 'pallet-session', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  43. pallet-offences = { package = 'pallet-offences', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  44. pallet-finality-tracker = { package = 'pallet-finality-tracker', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  45. pallet-randomness-collective-flip = { package = 'pallet-randomness-collective-flip', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  46. pallet-authority-discovery = { package = 'pallet-authority-discovery', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  47. pallet-sudo = { package = 'pallet-sudo', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  48. pallet-staking = { package = 'pallet-staking', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  49. pallet-timestamp = { package = 'pallet-timestamp', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  50. pallet-balances = { package = 'pallet-balances', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  51. pallet-im-online = { package = 'pallet-im-online', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  52. substrate-utility = { package = 'pallet-utility', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  53. # Benchmarking
  54. frame-benchmarking = { git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62', default-features = false, optional = true }
  55. frame-system-benchmarking = { git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62', default-features = false, optional = true }
  56. pallet-offences-benchmarking = { git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62', default-features = false, optional = true }
  57. pallet-session-benchmarking = { git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62', default-features = false, optional = true }
  58. hex-literal = { optional = true, version = '0.3.1' }
  59. # Joystream
  60. common = { package = 'pallet-common', default-features = false, path = '../runtime-modules/common'}
  61. forum = { package = 'pallet-forum', default-features = false, path = '../runtime-modules/forum'}
  62. membership = { package = 'pallet-membership', default-features = false, path = '../runtime-modules/membership'}
  63. referendum = { package = 'pallet-referendum', default-features = false, path = '../runtime-modules/referendum'}
  64. council = { package = 'pallet-council', default-features = false, path = '../runtime-modules/council'}
  65. working-group = { package = 'pallet-working-group', default-features = false, path = '../runtime-modules/working-group'}
  66. storage = { package = 'pallet-storage', default-features = false, path = '../runtime-modules/storage'}
  67. proposals-engine = { package = 'pallet-proposals-engine', default-features = false, path = '../runtime-modules/proposals/engine'}
  68. proposals-discussion = { package = 'pallet-proposals-discussion', default-features = false, path = '../runtime-modules/proposals/discussion'}
  69. proposals-codex = { package = 'pallet-proposals-codex', default-features = false, path = '../runtime-modules/proposals/codex'}
  70. pallet-constitution = { package = 'pallet-constitution', default-features = false, path = '../runtime-modules/constitution' }
  71. staking-handler = { package = 'pallet-staking-handler', default-features = false, path = '../runtime-modules/staking-handler'}
  72. bounty = { package = 'pallet-bounty', default-features = false, path = '../runtime-modules/bounty'}
  73. blog = { package = 'pallet-blog', default-features = false, path = '../runtime-modules/blog'}
  74. content = { package = 'pallet-content', default-features = false, path = '../runtime-modules/content'}
  75. joystream-utility = { package = 'pallet-utility', default-features = false, path = '../runtime-modules/utility'}
  76. [dev-dependencies]
  77. sp-io = { package = 'sp-io', default-features = false, git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62'}
  78. strum = {version = "0.19", default-features = false}
  79. [build-dependencies]
  80. wasm-builder-runner = { version = "1.0.5", package = "substrate-wasm-builder-runner", git = 'https://github.com/paritytech/substrate.git', rev = '2cd20966cc09b059817c3ebe12fc130cdd850d62' }
  81. [features]
  82. default = ['std']
  83. no_std = []
  84. std = [
  85. # Third-party dependencies
  86. 'serde',
  87. 'codec/std',
  88. # Substrate primitives
  89. 'sp-std/std',
  90. 'sp-core/std',
  91. 'sp-api/std',
  92. 'sp-version/std',
  93. 'sp-runtime/std',
  94. 'sp-arithmetic/std',
  95. 'sp-offchain/std',
  96. 'sp-authority-discovery/std',
  97. 'sp-consensus-babe/std',
  98. 'sp-transaction-pool/std',
  99. 'sp-block-builder/std',
  100. 'sp-session/std',
  101. 'sp-staking/std',
  102. 'sp-application-crypto/std',
  103. # Frame
  104. 'frame-support/std',
  105. 'frame-executive/std',
  106. 'frame-system-rpc-runtime-api/std',
  107. 'frame-system/std',
  108. # Pallets
  109. 'pallet-timestamp/std',
  110. 'pallet-balances/std',
  111. 'pallet-transaction-payment/std',
  112. 'pallet-transaction-payment-rpc-runtime-api/std',
  113. 'pallet-grandpa/std',
  114. 'pallet-babe/std',
  115. 'pallet-session/std',
  116. 'pallet-finality-tracker/std',
  117. 'pallet-authority-discovery/std',
  118. 'pallet-authorship/std',
  119. 'pallet-randomness-collective-flip/std',
  120. 'pallet-staking/std',
  121. # 'pallet-staking-reward-curve/std', // don't have 'std' features
  122. 'pallet-sudo/std',
  123. 'pallet-im-online/std',
  124. 'pallet-offences/std',
  125. 'substrate-utility/std',
  126. # Joystream
  127. 'common/std',
  128. 'forum/std',
  129. 'membership/std',
  130. 'council/std',
  131. 'referendum/std',
  132. 'working-group/std',
  133. 'storage/std',
  134. 'proposals-engine/std',
  135. 'proposals-discussion/std',
  136. 'proposals-codex/std',
  137. 'pallet-constitution/std',
  138. 'staking-handler/std',
  139. 'bounty/std',
  140. 'blog/std',
  141. 'joystream-utility/std',
  142. 'content/std',
  143. ]
  144. runtime-benchmarks = [
  145. "hex-literal",
  146. "frame-support/runtime-benchmarks",
  147. "sp-runtime/runtime-benchmarks",
  148. "frame-benchmarking",
  149. "frame-system-benchmarking",
  150. "frame-system/runtime-benchmarks",
  151. "pallet-offences-benchmarking",
  152. "pallet-session-benchmarking",
  153. "pallet-balances/runtime-benchmarks",
  154. "pallet-im-online/runtime-benchmarks",
  155. "pallet-staking/runtime-benchmarks",
  156. "pallet-timestamp/runtime-benchmarks",
  157. "substrate-utility/runtime-benchmarks",
  158. # Joystream
  159. "proposals-discussion/runtime-benchmarks",
  160. "proposals-engine/runtime-benchmarks",
  161. "proposals-codex/runtime-benchmarks",
  162. "joystream-utility/runtime-benchmarks",
  163. "pallet-constitution/runtime-benchmarks",
  164. "working-group/runtime-benchmarks",
  165. "forum/runtime-benchmarks",
  166. "membership/runtime-benchmarks",
  167. "council/runtime-benchmarks",
  168. "referendum/runtime-benchmarks",
  169. "bounty/runtime-benchmarks",
  170. 'storage/runtime-benchmarks',
  171. "blog/runtime-benchmarks",
  172. ]
  173. # Staging and testing configurations
  174. # configuration suitable for staging networks and playground
  175. staging_runtime = []
  176. playground_runtime = ['staging_runtime']
  177. # configuration suitable for integration testing
  178. testing_runtime = []