-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add encointer runtime #80
Merged
fellowship-merge-bot
merged 469 commits into
polkadot-fellows:main
from
brenzi:ab/add-encointer-runtime
Jan 10, 2024
Merged
Changes from 250 commits
Commits
Show all changes
469 commits
Select commit
Hold shift + click to select a range
57b5ec4
Switch to custom `BlockAnnounceData` (#310)
bkchr 0d086ae
Update the chainspecs (#311)
bkchr cb00749
Print an error when we can not find the genesis block (#313)
bkchr 6438d32
Complete telemetry for parachain & relaychain (#301)
cecton c3e3f44
Block announce validation should use the correct `Validation` result …
bkchr 309bc92
MQC authorization (#308)
pepyakin b32ce07
Fix HRMP Sibling Location (#318)
shawntabrizi e065c57
Migrate from MQCs in persisted validation data to merkle proofs (#317)
pepyakin fbacfe7
The great refactor (#325)
bkchr 886a1e1
Move parachain inherent data into its own crate (#326)
bkchr ec08d11
New genesis (#327)
bkchr 4820fa1
Parachain Consensus abstractions (#329)
bkchr f04ce06
Update Substrate & Polkadot (#330)
bkchr 28d1d00
Update Substrate & Polkadot again (#332)
bkchr da79d42
Minor fixes and clarifications (#333)
JoshOrndorff d8126cd
Deposit XCM execution success and fail events. (#338)
shaunxw fc8c690
Update to latest Substrate & Polkadot (#341)
bkchr 6b38755
Same procedure as every day (#345)
bkchr 9535ee2
XCM handler: make send origin configurable. (#346)
shaunxw f511757
Change the way we store, handle and validate the validation data (#342)
bkchr 16bc09f
Update to latest Substrate and Polkadot (#348)
ascjones 5cdbd7c
Add a command to purge the relay chain only (#306)
cecton 937cd76
Update Polkadot & Substrate (#354)
bkchr b50848e
Remove `frame-executive` that isn't required anymore (#355)
bkchr 56f60a1
Update XcmError on sending failure. (#358)
shaunxw c7d2446
Update Substrate & Polkadot (#359)
bkchr cb5a244
Support xcm local execution in xcm-handler. (#357)
shaunxw a3d50f2
Adapt code to new sc-telemetry (#362)
cecton cb9d101
Fix block propagation between non-collator nodes (#363)
bkchr 00bc5cd
Update to latest Substrate & Polkadot and also move cli crate (#365)
bkchr 8f1ef9d
Use correct HRMP path for parachain sibling (#366)
vgeddes a90308b
Fix incorrect prefix for "Prepared block for proposing at" (#305)
cecton 662e9dc
Change spelling of 'PoVBlocks' to be consistent with other polkadot d…
Byron a8bf0e1
Update Substrate & Polkadot (#375)
bkchr 8807510
Hook up XcmHandler to the system module (#381)
pepyakin dc666c7
Improve Storage and Add `set_upgrade_block` to Validation Function Up…
shawntabrizi 1d4c02c
Update Substrate & Polkadot (#387)
bkchr cbd72e7
Declare Error type in decl_module! (#390)
KiChjang 3b4ca53
Do not accept `--parachain-id` and `--chain` together (#393)
bkchr 605ab2b
Fix export genesis command (#395)
bkchr 959f585
Approve block announcements of backed blocks (#394)
bkchr 498595a
Remove pov hash comparison when waiting on a block to announce (#396)
bkchr a70ab40
Make `set_validation_data` public (#399)
JoshOrndorff 5fe32eb
XCM revamp & Ping pallet (#391)
gavofyork 18c9e4e
Docs (#401)
gavofyork 5157780
Update Substrate & Polkadot (#405)
bkchr 8c37b0d
Runtime upgrade test (#364)
cecton 689cb16
Two-stage upgrade for parachains (#392)
gavofyork 2180cf4
Bump polkadot and substrate deps (#408)
shawntabrizi 859524f
Bump polkadot + fix parachain unnamed field (#412)
gui1117 0ab15b2
Integrate a governance XCM origin (#407)
gavofyork 4f56cc7
Integrate Shell runtime into collator (#414)
gavofyork 3fa1ccc
Panic instead of ensure (#413)
pepyakin 5edcffb
Companion for #2953 (#418)
gavofyork 7d315cf
Strip down Shell to bare minimum (#421)
gavofyork 42c18b8
Fix condition (#424)
gavofyork 315c5d1
Chain ID and ParaID don't collide (#425)
gavofyork 3f68717
DMP Queue pallet (#416)
gavofyork 6364eee
Update Substrate & Polkadot (#427)
bkchr b9056fe
Update Substrate & Polkadot (#428)
bkchr af28a85
Make `--collator` reusable and imply `--validator` (#380)
JoshOrndorff 78ad174
Upgrade pallets to FRAMEv2 (#404)
KiChjang d01bc24
Aura consensus for parachains (#371)
bkchr 63231bc
Companion #2995: Dispatchable for teleporting assets (#431)
gavofyork eb23023
Rename `rococo-collator` to `polkadot-collator` (#435)
bkchr 84bd378
Companion for #3007 (Track teleported assets) (#436)
gavofyork c515f16
Companion for #3010 (Reserve Xfer extrinsic) (#434)
gavofyork 5245525
Fix chain spec handling (#438)
bkchr 6674430
Introduce `CollectCollationInfo` runtime api (#443)
bkchr 70afaae
Slap runtime_version macro everywhere (#444)
pepyakin 91aa54d
basic rebranding to encointer, no encointer pallets yet
df1de33
Add pallets: `personhood-oracle` and `sybil-gate-template` (#9)
clangenb 8e0ee61
bump version to 0.3.0. spec v6
1340bcd
add config to locally test live spec
fd56584
upgrade to 4th reset of rococo
8e0aa85
fixing chain_spec
36ed059
bump spec version to 7
4e8da41
bump version
39e9328
add upgrade doc
f7fd8c6
upgrade to rococo 5th reset
881d304
upgrade info fix
b0a3070
rebase and bump version 0.5.8
f5c20df
rebase upstream. bump 0.5.1 v9
1bd23d6
* bump parity-scale-codec for pallet compatibility
clangenb c37f586
add rust-toolchain
clangenb 88a7eb5
cleanup rebase chaos
clangenb c54e73d
bump runtime spec: v10
clangenb 7f8b8c7
minor readme fixmes
clangenb aeada3e
updated polkadot-launch configs and tmux_setup.sh. Successfully launc…
clangenb adb761b
.gitignore: files generated by polkadot-launch
clangenb f01673c
extracted types for polkadot-launch to separate file.
clangenb 812056c
[README] update with new names for the generated logs.
clangenb 3673a8d
Fix sybil demo (#12)
clangenb 8a37021
Remove cumulus stuff (#13)
clangenb 7fa46a8
fix encointer-deps
clangenb ed76767
Merge pull request #15 from encointer/fix/cl-build-by-changing-encoin…
clangenb c31373e
added new Bazaartypes. Not sure, if articleId and shopId should be re…
anizeani 7ac237a
Merge pull request #17 from encointer/updated-Typedef
clangenb 69e3c9c
Runtime Optimizations (#23)
clangenb 597662c
Rustfmt (#25)
clangenb c0038e6
polkadot-v0.9.10 (#30)
clangenb 6288546
Add launch-runtime draft (#31)
clangenb b18204a
Add treasury pallet (#32)
clangenb c9bd3d8
Add utility pallet (#33)
clangenb 4fbb1c1
[GA] cancel previous runs and add cargo cache (#35)
clangenb f308bd8
Add dispatchable filter: SudoOnlyFilter (#34)
clangenb e894b4d
Polkadot v0.9.12 (#38)
clangenb 9032ada
add doc for native downward token tx. (#41)
clangenb 5345c2e
Upwards native token tx (#43)
clangenb 3081177
Add encointer authority-keys + abstractions around those keys (#46)
clangenb b492f1a
Rename ERT to KSM (#49)
clangenb 93f46b0
readme fixes
brenzi 3966361
bump polkadot-deps to latest v0.9.12 (#51)
clangenb 2d3a3a2
[runtimes] fix naming of network location and id. (#52)
clangenb bc457ef
Fix downward token tx documentation (#53)
clangenb 1d84c36
Benchmark runtimes (#55)
clangenb 910fe80
Tune existential deposit and fees to match statemine (#56)
clangenb 4710573
Add kusama and westend chain-specs for launch runtime. (#57)
clangenb dc56dba
fix README
brenzi c6d6011
Added new CI (#58) (#60)
mosonyi 19efb8f
Dockerize binary (#58) (#65)
mosonyi e6d5ab4
Apply trivial statemine updates. (#64)
clangenb 56dd6fe
[runtimes] minor pallet tweaks from statemine; fixes flaky block-prod…
clangenb 1ed8e5e
Aply statemine xcm config. (#66)
clangenb 3938ba6
Remove sudo + add encointer council (with dev-keys) (#68)
clangenb 7ef7f72
[command] fix branding (#70)
clangenb 03b7f26
[collator] fix version discrepancy + add bootnode to hardcoded specs.…
clangenb 9a66a5c
add encointer association members for council (#75)
brenzi df55d24
Fix bootnode id (#29) (#72)
mosonyi fcc9406
benchmark launch-runtime (#77)
brenzi f73d3df
bump version. reset runtime spec_versions
3b560a8
fix CI by adding lock file
610fba8
fix for deterministic chain specs in CI (#80)
brenzi dfa7537
Add back bash to be able to debug if needed
mosonyi 2982317
add new launch configs
d48f129
[#54/runtime] add pallet proxy and re-enable encointer pallets after …
NicJak 4896a83
introduce protocolId in chinspec
64a3b0f
fix misbranded protocolid and bump collator version
bedd69c
Add bootnodes to config (#29) (#83)
mosonyi 2e53dfe
bump version
brenzi 9f61d9e
discriminate network name by relaychain only. fixes collision in tele…
brenzi fbc9b2a
bump version
brenzi 051d042
polkadot v0.9.13 + enable upward teleport (#87)
clangenb fa12f3b
Sort generated chain-specs to make them deterministic and recreate th…
clangenb cfeaecf
bump version and remove typedefs after metadata V14 (#89)
brenzi 0e4e393
[docs] fix upward xfer image link (#88)
clangenb 186581e
Polkadot v0.9.16 (#91)
clangenb 6895348
Add docker healthchecker (#92)
mosonyi 988e310
bump polkadot final 0.9.16 release and bump collator version to 0.6.8
brenzi ff85f3c
change ss58 prefix to 2 (#96)
clangenb d5c60fe
clean up chain specs (#97)
brenzi 4b179c9
Upgrade polka and pallets (#98)
brenzi b006c1e
let council accept and reject treasury spend proposals (#100)
brenzi 4002a34
Benchmark encointer plallets (#105)
pifragile 1542314
Fix misleading chain-spec names (#104)
clangenb 89a19bc
regenesis and bumps (#106)
brenzi fae25a8
expose encointer's custom RPCs (#108)
clangenb d24cba2
[encointer-runtime] re-enable scheduler (#111)
clangenb c70e66f
allow council to schedule calls (#114)
brenzi 8f311b6
fix teleport fees (#115)
brenzi 0753f30
upgrade pallets deps and integrate new rpc/weights (#117)
brenzi a24d176
bump v0.6.11. spec v5
brenzi 16d499f
Adjust dev setup to match solo ci (#116)
brenzi 0554c2d
Enable Fee Payment in community currency (#118)
clangenb c6099e3
hot bump pallets 1.0.1
brenzi 7ac532c
bump encointer-pallets (#124)
clangenb 562df50
hot bump version to 1.1.0
brenzi c06e450
Rpc cors for app and explorer (#125)
brenzi cc82e90
update readme (#121)
pifragile f6a3005
Fix substrate_proposer_block_constructed_count metrics. fixes #122 (#…
mosonyi 878954c
[encointer-parachain] bump-pallets (#132)
clangenb a1b4482
bump collator patch version: v1.1.1 (#133)
clangenb eef3a3e
polkadot v0.9.23 (#134)
clangenb 60e0966
Polkadot v0.9.24 (#137)
pifragile 66f31bd
bump pallets (#139)
pifragile 3bf427f
Bump to polkadot-v0.9.28 (#149)
clangenb 9181258
update polkadot-launch configs (#150)
clangenb 3ee309d
bump collator version
clangenb 920be10
bump encointer pallets (#151)
clangenb faadbd2
bump versions: collator version, spec_versions, transaction version (…
clangenb 19558d7
bump encointer-pallets (#153)
clangenb 6f18a35
Bump deprecated CI actions (#154)
clangenb ca26674
fix storage leak; bump runtime spec version and binary patch version …
clangenb 7f1ca0c
bootstrappers can endorse as reputables + bump binary patch version a…
clangenb 6bb9bb7
Make demurrage computation sound; bump pallets and versions (#160)
clangenb 203bb3f
Polkadot v0.9.37 (#171)
pifragile 9a42cc6
Added Dwellir bootnode. (#179)
Maharacha caebf8d
Add Helikon boot node for Encointer on Kusama. (#167)
kukabi d4ed533
add turboflakes encointer bootnode (#164)
paulormart f890f84
add amforc bootnode (#166)
tugytur 92da6dc
Add try-runtime with storage migrations of the encointer-pallets (#177)
pifragile d16b51f
Add bootnode information - Gatotech (#183)
miloskriz 15f3755
add taplo fmt (#185)
clangenb 59cd129
Polkadot update v0.9.42 (#186)
OverOrion b21dfbc
GHA: fix deprecation warnings (save-state, set-output, Nodejs12) (#189)
OverOrion 7f24f0a
integrate community metadata migration (#192)
brenzi 54cbd07
add faucet and reputation-commitments pallets (#193)
brenzi 09bffea
bump versions
brenzi 44b0e4d
first toml bends
brenzi 088eb08
bump versions
brenzi 2fe84ac
cont. expected changes. but upstream seems not ready yet
brenzi d4e61b9
prepare move
pifragile 7a4df04
remove more clutter
pifragile 646af09
remove clutter
pifragile 63aafb0
Merge remote-tracking branch 'parachain_remote/fellow-integration' in…
pifragile 29acb83
bump deps
pifragile 24c572d
fmt
pifragile b1ba7cf
Merge remote-tracking branch 'upstream/main' into ab/add-encointer-ru…
brenzi 1142a9f
bending all encointer dependencies to crates.io
brenzi e73bcc2
align dep versions
brenzi 7660efe
builds without warnings now. untested
brenzi 425cae6
cosmetics and copyright
brenzi f2d2e19
fmt +nightly
brenzi e9013c8
prepare for async backing
brenzi 946fd79
fix benchmarking
brenzi 36b71cb
Merge branch 'main' into ab/add-encointer-runtime
brenzi 4a0d2c2
fix todo: reasonable proxy deposits & bump spec_version
brenzi b504a94
Merge remote-tracking branch 'upstream/main' into ab/add-encointer-ru…
brenzi 80bf1a3
Update system-parachains/encointer/src/xcm_config.rs
brenzi a037078
Update system-parachains/encointer/src/xcm_config.rs
brenzi ba21d10
bump sdk 1.2 > 1.3
brenzi f4af02e
incomplete fix of v1.3 upgrade
brenzi a45b304
align spec_version
brenzi 11f50eb
cleanups
brenzi a5f0eb6
invert proxy filter logic for NonTransfer
brenzi 4e3bec4
adapt teleporter config
brenzi eaa2ceb
add comment to teleport config
brenzi eb95dbb
hack treasury to only allow spending native KSM (untested)
brenzi 5603294
fix ambiguous AssetId (XCM vs CommunityIdentifier)
brenzi 99e89a8
cleanup
brenzi f3623ce
lift patches and toml alignment with other crates
brenzi 99b0be9
Merge remote-tracking branch 'upstream/main' into ab/add-encointer-ru…
brenzi 0f87f5c
merge fix and crate name alignment
brenzi 2574399
fmt
brenzi e66deb5
fmt nightly
brenzi b2834bf
add encointer to runtime matrix for CI
brenzi 44b2ae8
fix clippy
brenzi b8917c4
bump encointer pallets to fix runtime-benchmarks build
brenzi 4e7971b
taplo
brenzi 4f9efb2
revert out-of-scope changes by zepter
brenzi b99c40a
comment outdated migrations. kept for convenience
brenzi 4665259
fmt
brenzi 52ce8f8
fmt nightly :-(
brenzi d4a0605
storage migration fixes
brenzi 24c8e70
dummy commit to re-trigger CI
brenzi f0f0b27
dummy commit to re-trigger CI
brenzi f159ff6
Merge remote-tracking branch 'upstream/main' into ab/add-encointer-ru…
brenzi 5c4b98c
Merge branch 'main' into ab/add-encointer-runtime
brenzi ee4fd2c
add changelog
brenzi 13b81b7
typo
brenzi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
[package] | ||
name = 'encointer-runtime' | ||
# major.minor revision must match collator node | ||
# patch revision must match runtime spec_version | ||
version = '1.5.16' | ||
authors = ["Encointer <[email protected]>"] | ||
edition = "2021" | ||
description = "Runtime for Encointer Network (kusama system chain)" | ||
homepage = "https://encointer.org" | ||
repository = "https://github.com/polkadot-fellows/runtimes" | ||
license = "GPL-3.0-or-later" | ||
|
||
[dependencies] | ||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ | ||
"derive", | ||
] } | ||
hex-literal = { version = "0.4.1", optional = true } | ||
log = { version = "0.4.20", default-features = false } | ||
scale-info = { version = "2.9.0", default-features = false, features = [ | ||
"derive", | ||
] } | ||
|
||
# encointer deps | ||
encointer-balances-tx-payment = { default-features = false, version = "1.0.0" } | ||
encointer-balances-tx-payment-rpc-runtime-api = { default-features = false, version = "1.0.0" } | ||
encointer-primitives = { default-features = false, version = "1.3.0" } | ||
pallet-encointer-balances = { default-features = false, version = "1.2.0" } | ||
pallet-encointer-bazaar = { default-features = false, version = "1.1.0" } | ||
pallet-encointer-bazaar-rpc-runtime-api = { default-features = false, version = "1.0.0" } | ||
pallet-encointer-ceremonies = { default-features = false, version = "1.2.0" } | ||
pallet-encointer-ceremonies-rpc-runtime-api = { default-features = false, version = "1.2.0" } | ||
pallet-encointer-communities = { default-features = false, version = "1.3.0" } | ||
pallet-encointer-communities-rpc-runtime-api = { default-features = false, version = "1.2.0" } | ||
pallet-encointer-faucet = { default-features = false, version = "1.2.0" } | ||
pallet-encointer-reputation-commitments = { default-features = false, version = "1.2.0" } | ||
pallet-encointer-scheduler = { default-features = false, version = "1.1.0" } | ||
|
||
# Substrate | ||
frame-benchmarking = { default-features = false, optional = true, version = "23.0.0" } | ||
frame-executive = { default-features = false, version = "23.0.0" } | ||
frame-support = { default-features = false, version = "23.0.0" } | ||
frame-system = { default-features = false, version = "23.0.0" } | ||
frame-system-benchmarking = { default-features = false, optional = true, version = "23.0.0" } | ||
frame-system-rpc-runtime-api = { default-features = false, version = "21.0.0" } | ||
frame-try-runtime = { default-features = false, optional = true, version = "0.29.0" } | ||
sp-api = { default-features = false, version = "21.0.0" } | ||
sp-block-builder = { default-features = false, version = "21.0.0" } | ||
sp-consensus-aura = { default-features = false, version = "0.27.0" } | ||
sp-core = { default-features = false, version = "23.0.0" } | ||
sp-inherents = { default-features = false, version = "21.0.0" } | ||
sp-offchain = { default-features = false, version = "21.0.0" } | ||
sp-runtime = { default-features = false, version = "26.0.0" } | ||
sp-session = { default-features = false, version = "22.0.0" } | ||
sp-std = { default-features = false, version = "10.0.0" } | ||
sp-transaction-pool = { default-features = false, version = "21.0.0" } | ||
sp-version = { default-features = false, version = "24.0.0" } | ||
pallet-asset-tx-payment = { default-features = false, version = "23.0.0" } | ||
pallet-aura = { default-features = false, version = "22.0.0" } | ||
pallet-balances = { default-features = false, version = "23.0.0" } | ||
pallet-collective = { default-features = false, version = "23.0.0" } | ||
pallet-insecure-randomness-collective-flip = { default-features = false, version = "11.0.0" } | ||
pallet-membership = { default-features = false, version = "23.0.0" } | ||
pallet-proxy = { default-features = false, version = "23.0.0" } | ||
pallet-scheduler = { default-features = false, version = "24.0.0" } | ||
pallet-timestamp = { default-features = false, version = "22.0.0" } | ||
pallet-transaction-payment = { default-features = false, version = "23.0.0" } | ||
pallet-transaction-payment-rpc-runtime-api = { default-features = false, version = "23.0.0" } | ||
pallet-treasury = { default-features = false, version = "22.0.0" } | ||
pallet-utility = { default-features = false, version = "23.0.0" } | ||
|
||
# Polkadot dependencies | ||
pallet-xcm = { default-features = false, version = "2.0.0" } | ||
polkadot-parachain-primitives = { default-features = false, version = "1.0.0" } | ||
polkadot-runtime-common = { default-features = false, version = "2.0.0" } | ||
xcm = { package = "staging-xcm", default-features = false, version = "2.0.1" } | ||
xcm-builder = { package = "staging-xcm-builder", default-features = false, version = "2.0.1" } | ||
xcm-executor = { package = "staging-xcm-executor", default-features = false, version = "2.0.0" } | ||
|
||
# Cumulus dependencies | ||
cumulus-pallet-aura-ext = { default-features = false, version = "0.2.0" } | ||
cumulus-pallet-dmp-queue = { default-features = false, version = "0.2.0" } | ||
cumulus-pallet-parachain-system = { default-features = false, features = [ | ||
"parameterized-consensus-hook", | ||
], version = "0.2.0" } | ||
cumulus-pallet-xcm = { default-features = false, version = "0.2.0" } | ||
cumulus-pallet-xcmp-queue = { default-features = false, version = "0.2.0" } | ||
cumulus-primitives-core = { default-features = false, version = "0.2.0" } | ||
cumulus-primitives-timestamp = { default-features = false, version = "0.2.0" } | ||
cumulus-primitives-utility = { default-features = false, version = "0.2.0" } | ||
parachain-info = { package = "staging-parachain-info", default-features = false, version = "0.2.0" } | ||
parachains-common = { default-features = false, version = "2.0.0" } | ||
|
||
# Used for runtime benchmarking | ||
|
||
|
||
[build-dependencies] | ||
substrate-wasm-builder = { optional = true, version = "12.0.0" } | ||
|
||
[features] | ||
default = ["std"] | ||
runtime-benchmarks = [ | ||
"cumulus-pallet-xcmp-queue/runtime-benchmarks", | ||
"frame-benchmarking/runtime-benchmarks", | ||
"frame-support/runtime-benchmarks", | ||
"frame-system-benchmarking/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"hex-literal", | ||
"pallet-balances/runtime-benchmarks", | ||
"pallet-collective/runtime-benchmarks", | ||
"pallet-encointer-balances/runtime-benchmarks", | ||
"pallet-encointer-bazaar/runtime-benchmarks", | ||
"pallet-encointer-ceremonies/runtime-benchmarks", | ||
"pallet-encointer-communities/runtime-benchmarks", | ||
"pallet-encointer-faucet/runtime-benchmarks", | ||
"pallet-encointer-reputation-commitments/runtime-benchmarks", | ||
"pallet-encointer-scheduler/runtime-benchmarks", | ||
"pallet-membership/runtime-benchmarks", | ||
"pallet-proxy/runtime-benchmarks", | ||
"pallet-timestamp/runtime-benchmarks", | ||
"pallet-treasury/runtime-benchmarks", | ||
"pallet-utility/runtime-benchmarks", | ||
"pallet-xcm/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
"xcm-builder/runtime-benchmarks", | ||
"xcm-executor/runtime-benchmarks", | ||
] | ||
std = [ | ||
"codec/std", | ||
"cumulus-pallet-aura-ext/std", | ||
"cumulus-pallet-dmp-queue/std", | ||
"cumulus-pallet-parachain-system/std", | ||
"cumulus-pallet-xcm/std", | ||
"cumulus-pallet-xcmp-queue/std", | ||
"cumulus-primitives-core/std", | ||
"cumulus-primitives-timestamp/std", | ||
"cumulus-primitives-utility/std", | ||
"encointer-balances-tx-payment-rpc-runtime-api/std", | ||
"encointer-balances-tx-payment/std", | ||
"encointer-primitives/serde_derive", | ||
"encointer-primitives/std", | ||
"frame-executive/std", | ||
"frame-support/std", | ||
"frame-system-rpc-runtime-api/std", | ||
"frame-system/std", | ||
"frame-try-runtime/std", | ||
"log/std", | ||
"pallet-asset-tx-payment/std", | ||
"pallet-aura/std", | ||
"pallet-balances/std", | ||
"pallet-collective/std", | ||
"pallet-encointer-balances/std", | ||
"pallet-encointer-bazaar-rpc-runtime-api/std", | ||
"pallet-encointer-bazaar/std", | ||
"pallet-encointer-ceremonies-rpc-runtime-api/std", | ||
"pallet-encointer-ceremonies/std", | ||
"pallet-encointer-communities-rpc-runtime-api/std", | ||
"pallet-encointer-communities/std", | ||
"pallet-encointer-faucet/std", | ||
"pallet-encointer-reputation-commitments/std", | ||
"pallet-encointer-scheduler/std", | ||
"pallet-insecure-randomness-collective-flip/std", | ||
"pallet-membership/std", | ||
"pallet-proxy/std", | ||
"pallet-timestamp/std", | ||
"pallet-transaction-payment-rpc-runtime-api/std", | ||
"pallet-transaction-payment/std", | ||
"pallet-treasury/std", | ||
"pallet-utility/std", | ||
"pallet-xcm/std", | ||
"parachain-info/std", | ||
"parachains-common/std", | ||
"scale-info/std", | ||
"sp-api/std", | ||
"sp-block-builder/std", | ||
"sp-consensus-aura/std", | ||
"sp-core/std", | ||
"sp-inherents/std", | ||
"sp-offchain/std", | ||
"sp-runtime/std", | ||
"sp-session/std", | ||
"sp-std/std", | ||
"sp-transaction-pool/std", | ||
"sp-version/std", | ||
"substrate-wasm-builder", | ||
"xcm-builder/std", | ||
"xcm-executor/std", | ||
"xcm/std", | ||
] | ||
|
||
|
||
try-runtime = [ | ||
"cumulus-pallet-aura-ext/try-runtime", | ||
"cumulus-pallet-dmp-queue/try-runtime", | ||
"cumulus-pallet-parachain-system/try-runtime", | ||
"cumulus-pallet-xcm/try-runtime", | ||
"cumulus-pallet-xcmp-queue/try-runtime", | ||
"frame-executive/try-runtime", | ||
"frame-system/try-runtime", | ||
"frame-try-runtime/try-runtime", | ||
"pallet-asset-tx-payment/try-runtime", | ||
"pallet-aura/try-runtime", | ||
"pallet-balances/try-runtime", | ||
"pallet-collective/try-runtime", | ||
"pallet-encointer-balances/try-runtime", | ||
"pallet-encointer-bazaar/try-runtime", | ||
"pallet-encointer-ceremonies/try-runtime", | ||
"pallet-encointer-communities/try-runtime", | ||
"pallet-encointer-faucet/try-runtime", | ||
"pallet-encointer-reputation-commitments/try-runtime", | ||
"pallet-encointer-scheduler/try-runtime", | ||
"pallet-insecure-randomness-collective-flip/try-runtime", | ||
"pallet-membership/try-runtime", | ||
"pallet-proxy/try-runtime", | ||
"pallet-scheduler/try-runtime", | ||
"pallet-timestamp/try-runtime", | ||
"pallet-transaction-payment/try-runtime", | ||
"pallet-treasury/try-runtime", | ||
"pallet-utility/try-runtime", | ||
"pallet-xcm/try-runtime", | ||
"parachain-info/try-runtime", | ||
] | ||
|
||
experimental = [ "pallet-aura/experimental" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2019-2021 Parity Technologies (UK) Ltd. | ||
// This file is part of Cumulus. | ||
|
||
// Substrate is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Substrate is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
#[cfg(feature = "std")] | ||
fn main() { | ||
substrate_wasm_builder::WasmBuilder::new() | ||
.with_current_project() | ||
.export_heap_base() | ||
.import_memory() | ||
.build() | ||
} | ||
|
||
#[cfg(not(feature = "std"))] | ||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright (c) 2023 Encointer Association | ||
// This file is part of Encointer | ||
// | ||
// Encointer is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Encointer is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Encointer. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
use frame_support::traits::{Currency, Imbalance, OnUnbalanced}; | ||
use sp_runtime::sp_std::marker::PhantomData; | ||
|
||
/// Type alias to conveniently refer to the `Currency::NegativeImbalance` associated type. | ||
pub type NegativeImbalance<T> = <pallet_balances::Pallet<T> as Currency< | ||
<T as frame_system::Config>::AccountId, | ||
>>::NegativeImbalance; | ||
|
||
/// Moves all the fees to the treasury. | ||
/// | ||
/// This does only handle the native currency. The community currencies are managed by the | ||
/// `pallet-asset-tx-payment`. | ||
pub struct FeesToTreasury<Runtime>(PhantomData<Runtime>); | ||
|
||
impl<Runtime> OnUnbalanced<NegativeImbalance<Runtime>> for FeesToTreasury<Runtime> | ||
brenzi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
where | ||
Runtime: pallet_balances::Config + pallet_treasury::Config, | ||
{ | ||
fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item = NegativeImbalance<Runtime>>) { | ||
if let Some(mut fees) = fees_then_tips.next() { | ||
// no burning, add all fees and tips to the treasury | ||
|
||
if let Some(tips) = fees_then_tips.next() { | ||
tips.merge_into(&mut fees); | ||
} | ||
<FeesToTreasury<Runtime> as OnUnbalanced<_>>::on_unbalanced(fees); | ||
} | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is unclear to me if we should change to the spec versioning scheme of other system chains. happy to, but need to investigate implications if encointer doesn't update at the same rhythm