Skip to content
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
Merged
Show file tree
Hide file tree
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 Jan 26, 2021
0d086ae
Update the chainspecs (#311)
bkchr Jan 26, 2021
cb00749
Print an error when we can not find the genesis block (#313)
bkchr Jan 29, 2021
6438d32
Complete telemetry for parachain & relaychain (#301)
cecton Jan 29, 2021
c3e3f44
Block announce validation should use the correct `Validation` result …
bkchr Jan 29, 2021
309bc92
MQC authorization (#308)
pepyakin Feb 2, 2021
b32ce07
Fix HRMP Sibling Location (#318)
shawntabrizi Feb 8, 2021
e065c57
Migrate from MQCs in persisted validation data to merkle proofs (#317)
pepyakin Feb 8, 2021
fbacfe7
The great refactor (#325)
bkchr Feb 10, 2021
886a1e1
Move parachain inherent data into its own crate (#326)
bkchr Feb 11, 2021
ec08d11
New genesis (#327)
bkchr Feb 15, 2021
4820fa1
Parachain Consensus abstractions (#329)
bkchr Feb 16, 2021
f04ce06
Update Substrate & Polkadot (#330)
bkchr Feb 16, 2021
28d1d00
Update Substrate & Polkadot again (#332)
bkchr Feb 18, 2021
da79d42
Minor fixes and clarifications (#333)
JoshOrndorff Feb 18, 2021
d8126cd
Deposit XCM execution success and fail events. (#338)
shaunxw Feb 23, 2021
fc8c690
Update to latest Substrate & Polkadot (#341)
bkchr Feb 24, 2021
6b38755
Same procedure as every day (#345)
bkchr Feb 25, 2021
9535ee2
XCM handler: make send origin configurable. (#346)
shaunxw Feb 26, 2021
f511757
Change the way we store, handle and validate the validation data (#342)
bkchr Feb 27, 2021
16bc09f
Update to latest Substrate and Polkadot (#348)
ascjones Mar 3, 2021
5cdbd7c
Add a command to purge the relay chain only (#306)
cecton Mar 3, 2021
937cd76
Update Polkadot & Substrate (#354)
bkchr Mar 4, 2021
b50848e
Remove `frame-executive` that isn't required anymore (#355)
bkchr Mar 4, 2021
56f60a1
Update XcmError on sending failure. (#358)
shaunxw Mar 8, 2021
c7d2446
Update Substrate & Polkadot (#359)
bkchr Mar 9, 2021
cb5a244
Support xcm local execution in xcm-handler. (#357)
shaunxw Mar 9, 2021
a3d50f2
Adapt code to new sc-telemetry (#362)
cecton Mar 11, 2021
cb9d101
Fix block propagation between non-collator nodes (#363)
bkchr Mar 11, 2021
00bc5cd
Update to latest Substrate & Polkadot and also move cli crate (#365)
bkchr Mar 12, 2021
8f1ef9d
Use correct HRMP path for parachain sibling (#366)
vgeddes Mar 16, 2021
a90308b
Fix incorrect prefix for "Prepared block for proposing at" (#305)
cecton Mar 17, 2021
662e9dc
Change spelling of 'PoVBlocks' to be consistent with other polkadot d…
Byron Mar 19, 2021
a8bf0e1
Update Substrate & Polkadot (#375)
bkchr Mar 23, 2021
8807510
Hook up XcmHandler to the system module (#381)
pepyakin Mar 30, 2021
dc666c7
Improve Storage and Add `set_upgrade_block` to Validation Function Up…
shawntabrizi Mar 31, 2021
1d4c02c
Update Substrate & Polkadot (#387)
bkchr Apr 2, 2021
cbd72e7
Declare Error type in decl_module! (#390)
KiChjang Apr 7, 2021
3b4ca53
Do not accept `--parachain-id` and `--chain` together (#393)
bkchr Apr 7, 2021
605ab2b
Fix export genesis command (#395)
bkchr Apr 11, 2021
959f585
Approve block announcements of backed blocks (#394)
bkchr Apr 12, 2021
498595a
Remove pov hash comparison when waiting on a block to announce (#396)
bkchr Apr 12, 2021
a70ab40
Make `set_validation_data` public (#399)
JoshOrndorff Apr 13, 2021
5fe32eb
XCM revamp & Ping pallet (#391)
gavofyork Apr 14, 2021
18c9e4e
Docs (#401)
gavofyork Apr 14, 2021
5157780
Update Substrate & Polkadot (#405)
bkchr Apr 14, 2021
8c37b0d
Runtime upgrade test (#364)
cecton Apr 16, 2021
689cb16
Two-stage upgrade for parachains (#392)
gavofyork Apr 16, 2021
2180cf4
Bump polkadot and substrate deps (#408)
shawntabrizi Apr 25, 2021
859524f
Bump polkadot + fix parachain unnamed field (#412)
gui1117 Apr 27, 2021
0ab15b2
Integrate a governance XCM origin (#407)
gavofyork Apr 28, 2021
4f56cc7
Integrate Shell runtime into collator (#414)
gavofyork Apr 28, 2021
3fa1ccc
Panic instead of ensure (#413)
pepyakin Apr 28, 2021
5edcffb
Companion for #2953 (#418)
gavofyork Apr 28, 2021
7d315cf
Strip down Shell to bare minimum (#421)
gavofyork Apr 29, 2021
42c18b8
Fix condition (#424)
gavofyork Apr 30, 2021
315c5d1
Chain ID and ParaID don't collide (#425)
gavofyork Apr 30, 2021
3f68717
DMP Queue pallet (#416)
gavofyork May 2, 2021
6364eee
Update Substrate & Polkadot (#427)
bkchr May 4, 2021
b9056fe
Update Substrate & Polkadot (#428)
bkchr May 4, 2021
af28a85
Make `--collator` reusable and imply `--validator` (#380)
JoshOrndorff May 6, 2021
78ad174
Upgrade pallets to FRAMEv2 (#404)
KiChjang May 8, 2021
d01bc24
Aura consensus for parachains (#371)
bkchr May 10, 2021
63231bc
Companion #2995: Dispatchable for teleporting assets (#431)
gavofyork May 11, 2021
eb23023
Rename `rococo-collator` to `polkadot-collator` (#435)
bkchr May 12, 2021
84bd378
Companion for #3007 (Track teleported assets) (#436)
gavofyork May 12, 2021
c515f16
Companion for #3010 (Reserve Xfer extrinsic) (#434)
gavofyork May 13, 2021
5245525
Fix chain spec handling (#438)
bkchr May 13, 2021
6674430
Introduce `CollectCollationInfo` runtime api (#443)
bkchr May 17, 2021
70afaae
Slap runtime_version macro everywhere (#444)
pepyakin May 19, 2021
91aa54d
basic rebranding to encointer, no encointer pallets yet
Jan 12, 2021
df1de33
Add pallets: `personhood-oracle` and `sybil-gate-template` (#9)
clangenb Feb 19, 2021
8e0ee61
bump version to 0.3.0. spec v6
Feb 20, 2021
1340bcd
add config to locally test live spec
Feb 20, 2021
fd56584
upgrade to 4th reset of rococo
Mar 17, 2021
8e0aa85
fixing chain_spec
Mar 17, 2021
36ed059
bump spec version to 7
Mar 17, 2021
4e8da41
bump version
Mar 26, 2021
39e9328
add upgrade doc
Mar 26, 2021
f7fd8c6
upgrade to rococo 5th reset
Mar 26, 2021
881d304
upgrade info fix
Mar 30, 2021
b0a3070
rebase and bump version 0.5.8
Mar 30, 2021
f5c20df
rebase upstream. bump 0.5.1 v9
Apr 5, 2021
1bd23d6
* bump parity-scale-codec for pallet compatibility
clangenb May 25, 2021
c37f586
add rust-toolchain
clangenb May 25, 2021
88a7eb5
cleanup rebase chaos
clangenb May 25, 2021
c54e73d
bump runtime spec: v10
clangenb May 25, 2021
7f8b8c7
minor readme fixmes
clangenb May 25, 2021
aeada3e
updated polkadot-launch configs and tmux_setup.sh. Successfully launc…
clangenb May 25, 2021
adb761b
.gitignore: files generated by polkadot-launch
clangenb May 25, 2021
f01673c
extracted types for polkadot-launch to separate file.
clangenb May 25, 2021
812056c
[README] update with new names for the generated logs.
clangenb May 25, 2021
3673a8d
Fix sybil demo (#12)
clangenb May 27, 2021
8a37021
Remove cumulus stuff (#13)
clangenb Aug 10, 2021
7fa46a8
fix encointer-deps
clangenb Aug 10, 2021
ed76767
Merge pull request #15 from encointer/fix/cl-build-by-changing-encoin…
clangenb Aug 11, 2021
c31373e
added new Bazaartypes. Not sure, if articleId and shopId should be re…
anizeani Sep 11, 2021
7ac237a
Merge pull request #17 from encointer/updated-Typedef
clangenb Sep 13, 2021
69e3c9c
Runtime Optimizations (#23)
clangenb Oct 5, 2021
597662c
Rustfmt (#25)
clangenb Oct 14, 2021
c0038e6
polkadot-v0.9.10 (#30)
clangenb Oct 26, 2021
6288546
Add launch-runtime draft (#31)
clangenb Oct 27, 2021
b18204a
Add treasury pallet (#32)
clangenb Oct 27, 2021
c9bd3d8
Add utility pallet (#33)
clangenb Oct 27, 2021
4fbb1c1
[GA] cancel previous runs and add cargo cache (#35)
clangenb Oct 27, 2021
f308bd8
Add dispatchable filter: SudoOnlyFilter (#34)
clangenb Oct 27, 2021
e894b4d
Polkadot v0.9.12 (#38)
clangenb Oct 28, 2021
9032ada
add doc for native downward token tx. (#41)
clangenb Oct 28, 2021
5345c2e
Upwards native token tx (#43)
clangenb Oct 29, 2021
3081177
Add encointer authority-keys + abstractions around those keys (#46)
clangenb Oct 31, 2021
b492f1a
Rename ERT to KSM (#49)
clangenb Oct 31, 2021
93f46b0
readme fixes
brenzi Oct 31, 2021
3966361
bump polkadot-deps to latest v0.9.12 (#51)
clangenb Nov 1, 2021
2d3a3a2
[runtimes] fix naming of network location and id. (#52)
clangenb Nov 1, 2021
bc457ef
Fix downward token tx documentation (#53)
clangenb Nov 1, 2021
1d84c36
Benchmark runtimes (#55)
clangenb Nov 2, 2021
910fe80
Tune existential deposit and fees to match statemine (#56)
clangenb Nov 2, 2021
4710573
Add kusama and westend chain-specs for launch runtime. (#57)
clangenb Nov 3, 2021
dc56dba
fix README
brenzi Nov 3, 2021
c6d6011
Added new CI (#58) (#60)
mosonyi Nov 4, 2021
19efb8f
Dockerize binary (#58) (#65)
mosonyi Nov 4, 2021
e6d5ab4
Apply trivial statemine updates. (#64)
clangenb Nov 5, 2021
56dd6fe
[runtimes] minor pallet tweaks from statemine; fixes flaky block-prod…
clangenb Nov 5, 2021
1ed8e5e
Aply statemine xcm config. (#66)
clangenb Nov 5, 2021
3938ba6
Remove sudo + add encointer council (with dev-keys) (#68)
clangenb Nov 5, 2021
7ef7f72
[command] fix branding (#70)
clangenb Nov 5, 2021
03b7f26
[collator] fix version discrepancy + add bootnode to hardcoded specs.…
clangenb Nov 5, 2021
9a66a5c
add encointer association members for council (#75)
brenzi Nov 8, 2021
df55d24
Fix bootnode id (#29) (#72)
mosonyi Nov 8, 2021
fcc9406
benchmark launch-runtime (#77)
brenzi Nov 8, 2021
f73d3df
bump version. reset runtime spec_versions
Nov 8, 2021
3b560a8
fix CI by adding lock file
Nov 8, 2021
610fba8
fix for deterministic chain specs in CI (#80)
brenzi Nov 8, 2021
dfa7537
Add back bash to be able to debug if needed
mosonyi Nov 8, 2021
2982317
add new launch configs
Nov 12, 2021
d48f129
[#54/runtime] add pallet proxy and re-enable encointer pallets after …
NicJak Nov 15, 2021
4896a83
introduce protocolId in chinspec
Nov 17, 2021
64a3b0f
fix misbranded protocolid and bump collator version
Nov 17, 2021
bedd69c
Add bootnodes to config (#29) (#83)
mosonyi Nov 22, 2021
2e53dfe
bump version
brenzi Nov 22, 2021
9f61d9e
discriminate network name by relaychain only. fixes collision in tele…
brenzi Nov 24, 2021
fbc9b2a
bump version
brenzi Nov 24, 2021
051d042
polkadot v0.9.13 + enable upward teleport (#87)
clangenb Nov 26, 2021
fa12f3b
Sort generated chain-specs to make them deterministic and recreate th…
clangenb Nov 26, 2021
cfeaecf
bump version and remove typedefs after metadata V14 (#89)
brenzi Nov 28, 2021
0e4e393
[docs] fix upward xfer image link (#88)
clangenb Dec 2, 2021
186581e
Polkadot v0.9.16 (#91)
clangenb Feb 4, 2022
6895348
Add docker healthchecker (#92)
mosonyi Feb 4, 2022
988e310
bump polkadot final 0.9.16 release and bump collator version to 0.6.8
brenzi Feb 7, 2022
ff85f3c
change ss58 prefix to 2 (#96)
clangenb Mar 5, 2022
d5c60fe
clean up chain specs (#97)
brenzi Mar 14, 2022
4b179c9
Upgrade polka and pallets (#98)
brenzi Mar 16, 2022
b006c1e
let council accept and reject treasury spend proposals (#100)
brenzi Mar 20, 2022
4002a34
Benchmark encointer plallets (#105)
pifragile Mar 22, 2022
1542314
Fix misleading chain-spec names (#104)
clangenb Mar 27, 2022
89a19bc
regenesis and bumps (#106)
brenzi Mar 27, 2022
fae25a8
expose encointer's custom RPCs (#108)
clangenb Mar 31, 2022
d24cba2
[encointer-runtime] re-enable scheduler (#111)
clangenb Apr 2, 2022
c70e66f
allow council to schedule calls (#114)
brenzi Apr 3, 2022
8f311b6
fix teleport fees (#115)
brenzi Apr 3, 2022
0753f30
upgrade pallets deps and integrate new rpc/weights (#117)
brenzi Apr 4, 2022
a24d176
bump v0.6.11. spec v5
brenzi Apr 4, 2022
16d499f
Adjust dev setup to match solo ci (#116)
brenzi Apr 4, 2022
0554c2d
Enable Fee Payment in community currency (#118)
clangenb Apr 7, 2022
c6099e3
hot bump pallets 1.0.1
brenzi Apr 7, 2022
7ac532c
bump encointer-pallets (#124)
clangenb Apr 23, 2022
562df50
hot bump version to 1.1.0
brenzi Apr 24, 2022
c06e450
Rpc cors for app and explorer (#125)
brenzi Apr 24, 2022
cc82e90
update readme (#121)
pifragile Apr 27, 2022
f6a3005
Fix substrate_proposer_block_constructed_count metrics. fixes #122 (#…
mosonyi May 22, 2022
878954c
[encointer-parachain] bump-pallets (#132)
clangenb May 27, 2022
a1b4482
bump collator patch version: v1.1.1 (#133)
clangenb May 27, 2022
eef3a3e
polkadot v0.9.23 (#134)
clangenb Jun 5, 2022
60e0966
Polkadot v0.9.24 (#137)
pifragile Jun 22, 2022
66f31bd
bump pallets (#139)
pifragile Jul 26, 2022
3bf427f
Bump to polkadot-v0.9.28 (#149)
clangenb Nov 14, 2022
9181258
update polkadot-launch configs (#150)
clangenb Nov 14, 2022
3ee309d
bump collator version
clangenb Nov 13, 2022
920be10
bump encointer pallets (#151)
clangenb Nov 20, 2022
faadbd2
bump versions: collator version, spec_versions, transaction version (…
clangenb Nov 20, 2022
19558d7
bump encointer-pallets (#153)
clangenb Nov 23, 2022
6f18a35
Bump deprecated CI actions (#154)
clangenb Nov 23, 2022
ca26674
fix storage leak; bump runtime spec version and binary patch version …
clangenb Nov 26, 2022
7f1ca0c
bootstrappers can endorse as reputables + bump binary patch version a…
clangenb Nov 27, 2022
6bb9bb7
Make demurrage computation sound; bump pallets and versions (#160)
clangenb Jan 22, 2023
203bb3f
Polkadot v0.9.37 (#171)
pifragile May 10, 2023
9a42cc6
Added Dwellir bootnode. (#179)
Maharacha May 16, 2023
caebf8d
Add Helikon boot node for Encointer on Kusama. (#167)
kukabi May 22, 2023
d4ed533
add turboflakes encointer bootnode (#164)
paulormart May 24, 2023
f890f84
add amforc bootnode (#166)
tugytur Jun 3, 2023
92da6dc
Add try-runtime with storage migrations of the encointer-pallets (#177)
pifragile Jun 5, 2023
d16b51f
Add bootnode information - Gatotech (#183)
miloskriz Jun 12, 2023
15f3755
add taplo fmt (#185)
clangenb Jun 13, 2023
59cd129
Polkadot update v0.9.42 (#186)
OverOrion Jun 15, 2023
b21dfbc
GHA: fix deprecation warnings (save-state, set-output, Nodejs12) (#189)
OverOrion Jul 29, 2023
7f24f0a
integrate community metadata migration (#192)
brenzi Jul 30, 2023
54cbd07
add faucet and reputation-commitments pallets (#193)
brenzi Jul 31, 2023
09bffea
bump versions
brenzi Jul 31, 2023
44b0e4d
first toml bends
brenzi Jul 28, 2023
088eb08
bump versions
brenzi Jul 31, 2023
2fe84ac
cont. expected changes. but upstream seems not ready yet
brenzi Jul 31, 2023
d4e61b9
prepare move
pifragile Aug 2, 2023
7a4df04
remove more clutter
pifragile Aug 2, 2023
646af09
remove clutter
pifragile Aug 2, 2023
63aafb0
Merge remote-tracking branch 'parachain_remote/fellow-integration' in…
pifragile Aug 2, 2023
29acb83
bump deps
pifragile Aug 7, 2023
24c572d
fmt
pifragile Aug 7, 2023
b1ba7cf
Merge remote-tracking branch 'upstream/main' into ab/add-encointer-ru…
brenzi Oct 27, 2023
1142a9f
bending all encointer dependencies to crates.io
brenzi Oct 27, 2023
e73bcc2
align dep versions
brenzi Oct 27, 2023
7660efe
builds without warnings now. untested
brenzi Oct 27, 2023
425cae6
cosmetics and copyright
brenzi Oct 27, 2023
f2d2e19
fmt +nightly
brenzi Oct 27, 2023
e9013c8
prepare for async backing
brenzi Oct 27, 2023
946fd79
fix benchmarking
brenzi Oct 27, 2023
36b71cb
Merge branch 'main' into ab/add-encointer-runtime
brenzi Nov 3, 2023
4a0d2c2
fix todo: reasonable proxy deposits & bump spec_version
brenzi Dec 29, 2023
b504a94
Merge remote-tracking branch 'upstream/main' into ab/add-encointer-ru…
brenzi Dec 29, 2023
80bf1a3
Update system-parachains/encointer/src/xcm_config.rs
brenzi Jan 7, 2024
a037078
Update system-parachains/encointer/src/xcm_config.rs
brenzi Jan 7, 2024
ba21d10
bump sdk 1.2 > 1.3
brenzi Jan 7, 2024
f4af02e
incomplete fix of v1.3 upgrade
brenzi Jan 7, 2024
a45b304
align spec_version
brenzi Jan 7, 2024
11f50eb
cleanups
brenzi Jan 7, 2024
a5f0eb6
invert proxy filter logic for NonTransfer
brenzi Jan 7, 2024
4e3bec4
adapt teleporter config
brenzi Jan 7, 2024
eaa2ceb
add comment to teleport config
brenzi Jan 7, 2024
eb95dbb
hack treasury to only allow spending native KSM (untested)
brenzi Jan 8, 2024
5603294
fix ambiguous AssetId (XCM vs CommunityIdentifier)
brenzi Jan 8, 2024
99e89a8
cleanup
brenzi Jan 8, 2024
f3623ce
lift patches and toml alignment with other crates
brenzi Jan 8, 2024
99b0be9
Merge remote-tracking branch 'upstream/main' into ab/add-encointer-ru…
brenzi Jan 8, 2024
0f87f5c
merge fix and crate name alignment
brenzi Jan 8, 2024
2574399
fmt
brenzi Jan 8, 2024
e66deb5
fmt nightly
brenzi Jan 8, 2024
b2834bf
add encointer to runtime matrix for CI
brenzi Jan 8, 2024
44b2ae8
fix clippy
brenzi Jan 8, 2024
b8917c4
bump encointer pallets to fix runtime-benchmarks build
brenzi Jan 8, 2024
4e7971b
taplo
brenzi Jan 8, 2024
4f9efb2
revert out-of-scope changes by zepter
brenzi Jan 8, 2024
b99c40a
comment outdated migrations. kept for convenience
brenzi Jan 9, 2024
4665259
fmt
brenzi Jan 9, 2024
52ce8f8
fmt nightly :-(
brenzi Jan 9, 2024
d4a0605
storage migration fixes
brenzi Jan 9, 2024
24c8e70
dummy commit to re-trigger CI
brenzi Jan 9, 2024
f0f0b27
dummy commit to re-trigger CI
brenzi Jan 10, 2024
f159ff6
Merge remote-tracking branch 'upstream/main' into ab/add-encointer-ru…
brenzi Jan 10, 2024
5c4b98c
Merge branch 'main' into ab/add-encointer-runtime
brenzi Jan 10, 2024
ee4fd2c
add changelog
brenzi Jan 10, 2024
13b81b7
typo
brenzi Jan 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
579 changes: 516 additions & 63 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ members = [
"system-parachains/bridge-hubs/bridge-hub-kusama",
"system-parachains/bridge-hubs/bridge-hub-polkadot",
"system-parachains/collectives/collectives-polkadot",
"system-parachains/encointer",
"system-parachains/gluttons/glutton-kusama",
]

Expand Down
223 changes: 223 additions & 0 deletions system-parachains/encointer/Cargo.toml
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'
Copy link
Contributor Author

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

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" ]
27 changes: 27 additions & 0 deletions system-parachains/encointer/build.rs
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() {}
45 changes: 45 additions & 0 deletions system-parachains/encointer/src/deal_with_fees.rs
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);
}
}
}
Loading
Loading