Commits on Source (32)
-
Éloïs authored
* feat(weights): use our benchmarks for pallet proxy * feat(weights): use our benchmarks for pallet multisig * fix(benchmarks): some pallets benchmarking need access to system.remark * feat(weights): use our benchmarks for pallet timestamp * feat(weights): use our benchmarks for pallet scheduler * fix(weights): impl proper weights & benchmarks for pallet upgrade origin * doc(dev):weights-bench: reference machine should use an SSD with USB3 * style(clippy): allow unnecessary_cast for WeighInfo implementations * doc(dev): add "how to benchmarks weights of a Call/Hook/Pallet" * feat(runtimes): use our benchmarks for pallet universal dividend * feat(pallet_ud): add weights info * feat(pallet_ud): add benchmarking * fix(weights): use our own extrinsic base weights constant * feat(weights): use our benchmarks for frame_system * feat(weights): use our benchmarks for pallet balance * fix(accounts): providers should be inc as soon as the account recv money providers should be incremented as soon as the account receive funds * fix(gdev): fix runtime benchmarks compilation
57ac5589 -
Éloïs authored42b9de65
-
Éloïs authoredd7f48f59
-
Éloïs authored9908e1b2
-
Éloïs authored
* ref: move IdtyDataIter in common runtime * bench real weights for pallet ud * bench claim_uds * weights constants * weights: ParametersStorage is whitelisted * pallet ud on_initialize weights * manual ud: not emit event if 0 UDs claimed * tests(gdev): add int test test_remove_identity_after_one_ud * auto claim uds at member removal * migrate pallet id integration tests to manual ud * remove all try_get in pallet ud * write PastReevals * add call claim_uds * remove pallet ud_accounts_storage * update pallet ud interface * create type FirstEligibleUd * add custom IdtyData
52ebb5ef -
Éloïs authoredf31e3083
-
Éloïs authored
* ref(runtime): more generic IdtyData
e6be6a09 -
Éloïs authored
* perf(claim_uds): remove one comparison per reeval
370f31a2 -
Éloïs authored
* feat(identity): add call change_owner_key
8685766d -
Éloïs authored
* ci: not execute live tests on jobs tests_debug & tests_release * mod(membership): remove rule RenewablePeriod * fix live tests compilation * mod(cert): remove rule CertRenewablePeriod
b6d3b28c -
* test: joiner comes after reevaluations
e9a2baf2 -
Éloïs authored
* ref(runtime): rework pallet certification
a276a851 -
Éloïs authored
* opti(cert): idty/membership should be validated/claim manually
67184b79 -
Éloïs authored
* feat(governance): replace smiths collective by technical committee
650f9044 -
fix(account): When a self-sufficient accounts receive money for the first time, that should trigger the random id assignment (!90) * ci: not execute live tests in non-scheduled jobs * fix(account): bug #85 When a self-sufficient accounts receive money for the first time, that should trigger the random id assignment * tests: reproduce bug #85 Conflicts: .cargo/config pallets/duniter-account/src/lib.rs
f1f5ef14 -
Éloïs authored
* upgrade substrate to polkadot-v0.9.23
ae65f879 -
Éloïs authored99fb985b
-
Éloïs authored898ccfc8
-
Éloïs authored213df4bc
-
Éloïs authored4bf87cec
-
Éloïs authored245c8f9f
-
Éloïs authored89b24b69
-
Éloïs authored
* feat(runtime): unfilter go_online on gdev runtime
5ec4ddec -
* run real benchmarks for pallet oneshot * fix(oneshot-account): use benchmarking * fix: metadata should comply subxt & polkadotjs expectations * feat(oneshot-account): Pallet oneshot-account
c89b598e -
Éloïs authored194f75b7
-
Éloïs authoredd785ae97
-
Éloïs authored
* fix(binary): get ParamsAppliedAtGenesis values from json genesis conf
4249248e -
Éloïs authorede079cab2
-
Éloïs authored
* feat(identity): add call force_set_first_eligible_ud * fix(runtime): first_eligible_ud not init for post-genesis identities * tests(gdev): add test test_validate_new_idty_after_few_uds
e2fe0c0a -
Éloïs authored
* upgrade substrate to polkadot-v0.9.26
4310860a -
Éloïs authored
* feat(binary): remove rocksdb
fe298c11
Showing
- .cargo/config 2 additions, 1 deletion.cargo/config
- .gitlab-ci.yml 2 additions, 2 deletions.gitlab-ci.yml
- .vscode/launch.json 0 additions, 19 deletions.vscode/launch.json
- Cargo.lock 1946 additions, 1587 deletionsCargo.lock
- Cargo.toml 58 additions, 55 deletionsCargo.toml
- docker/compose/gdev-mirror.docker-compose.yml 1 addition, 3 deletionsdocker/compose/gdev-mirror.docker-compose.yml
- docker/compose/gdev-validator.docker-compose.yml 6 additions, 7 deletionsdocker/compose/gdev-validator.docker-compose.yml
- docker/cross-arm.Dockerfile 4 additions, 4 deletionsdocker/cross-arm.Dockerfile
- docs/dev/weights-benchmarking.md 33 additions, 0 deletionsdocs/dev/weights-benchmarking.md
- docs/user/rpc.md 2 additions, 2 deletionsdocs/user/rpc.md
- docs/user/smith.md 2 additions, 2 deletionsdocs/user/smith.md
- end2end-tests/Cargo.toml 5 additions, 4 deletionsend2end-tests/Cargo.toml
- end2end-tests/cucumber-features/certification.feature 1 addition, 0 deletionsend2end-tests/cucumber-features/certification.feature
- end2end-tests/cucumber-features/oneshot_account.feature 21 additions, 0 deletionsend2end-tests/cucumber-features/oneshot_account.feature
- end2end-tests/cucumber-genesis/default.json 10 additions, 5 deletionsend2end-tests/cucumber-genesis/default.json
- end2end-tests/cucumber-genesis/wot.json 14 additions, 9 deletionsend2end-tests/cucumber-genesis/wot.json
- end2end-tests/tests/common/balances.rs 45 additions, 39 deletionsend2end-tests/tests/common/balances.rs
- end2end-tests/tests/common/cert.rs 24 additions, 14 deletionsend2end-tests/tests/common/cert.rs
- end2end-tests/tests/common/mod.rs 54 additions, 18 deletionsend2end-tests/tests/common/mod.rs
- end2end-tests/tests/common/oneshot.rs 126 additions, 0 deletionsend2end-tests/tests/common/oneshot.rs
This diff is collapsed.
... | ... | @@ -2,12 +2,12 @@ |
authors = ['Axiom-Team Developers <https://axiom-team.fr>'] | ||
build = 'node/build.rs' | ||
description = 'Crypto-currency software (based on Substrate framework) to operate Ğ1 libre currency' | ||
edition = '2018' | ||
edition = "2021" | ||
homepage = 'https://substrate.dev' | ||
license = 'AGPL-3.0' | ||
name = 'duniter' | ||
repository = 'https://git.duniter.org/nodes/rust/duniter-v2s' | ||
version = '0.1.0' | ||
version = '0.3.0' | ||
[package.metadata.docs.rs] | ||
targets = ['x86_64-unknown-linux-gnu'] | ||
... | ... | @@ -23,12 +23,12 @@ g1 = ["g1-runtime"] |
gdev = ["gdev-runtime"] | ||
gtest = ["gtest-runtime"] | ||
runtime-benchmarks = [ | ||
'g1-runtime', | ||
'g1-runtime/runtime-benchmarks', | ||
#'g1-runtime', | ||
#'g1-runtime/runtime-benchmarks', | ||
'gdev-runtime', | ||
'gdev-runtime/runtime-benchmarks', | ||
'gtest-runtime', | ||
'gtest-runtime/runtime-benchmarks', | ||
#'gtest-runtime', | ||
#'gtest-runtime/runtime-benchmarks', | ||
] | ||
try-runtime = [ | ||
"g1-runtime/try-runtime", | ||
... | ... | @@ -40,16 +40,16 @@ try-runtime = [ |
[build-dependencies] | ||
clap = { version = "3.0" } | ||
#clap_complete = { version = "3.0" } | ||
substrate-build-script-utils = { git = 'https://github.com/librelois/substrate.git', branch = 'duniter-monthly-2022-02' } | ||
substrate-build-script-utils = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.26' } | ||
[dev-dependencies] | ||
rusty-hook = "^0.11.2" | ||
# Dependencies for specific targets | ||
[target.'cfg(any(target_arch="x86_64", target_arch="aarch64"))'.dependencies] | ||
sc-cli = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02", features = ["wasmtime"] } | ||
sc-service = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02", features = ["wasmtime"] } | ||
sp-trie = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02", features = ["memory-tracker"] } | ||
sc-cli = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26", default-features = false, features = ["wasmtime"] } | ||
sc-service = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26", default-features = false, features = ["wasmtime"] } | ||
sp-trie = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26", features = ["memory-tracker"] } | ||
[dependencies] | ||
... | ... | @@ -67,56 +67,59 @@ clap = { version = "3.0", features = ["derive"] } |
clap_complete = { version = "3" } | ||
futures = { version = "0.3.1", features = ["compat"] } | ||
hex = "0.4.3" | ||
jsonrpc-core = '18.0.0' | ||
jsonrpsee = { version = "0.14.0", features = ["server"] } | ||
lazy_static = "1.4.0" | ||
log = "0.4" | ||
maplit = '1.0.2' | ||
memmap2 = "0.5.0" | ||
serde = "1.0" | ||
serde_json = "1.0.64" | ||
tracing-core = "=0.1.26" | ||
# substrate dependencies | ||
frame-benchmarking = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
frame-benchmarking-cli = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
pallet-grandpa = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
pallet-transaction-payment-rpc = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-basic-authorship = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-chain-spec = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-cli = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-client-api = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-consensus = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
babe = { package = "sc-consensus-babe", git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
manual-seal = { package = "sc-consensus-manual-seal", git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-consensus-uncles = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-executor = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-finality-grandpa = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-keystore = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-network = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-rpc-api = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-service = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-telemetry = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-transaction-pool = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sc-transaction-pool-api = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-api = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-authority-discovery = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-block-builder = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-blockchain = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-consensus = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-consensus-babe = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-core = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-finality-grandpa = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-io = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-offchain = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-keyring = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-keystore = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-runtime = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-session = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-storage = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-timestamp = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-transaction-pool = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
sp-trie = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
substrate-frame-rpc-system = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02" } | ||
try-runtime-cli = { git = "https://github.com/librelois/substrate.git", branch = "duniter-monthly-2022-02", optional = true } | ||
frame-benchmarking = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
frame-benchmarking-cli = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
pallet-grandpa = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
pallet-transaction-payment-rpc = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-basic-authorship = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-chain-spec = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-cli = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26", default-features = false } | ||
sc-client-api = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-consensus = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
babe = { package = "sc-consensus-babe", git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
manual-seal = { package = "sc-consensus-manual-seal", git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-consensus-uncles = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-executor = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-finality-grandpa = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-keystore = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-network = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-rpc-api = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-service = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26", default-features = false } | ||
sc-telemetry = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-transaction-pool = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sc-transaction-pool-api = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-api = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-authority-discovery = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-block-builder = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-blockchain = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-consensus = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-consensus-babe = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-core = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-finality-grandpa = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-inherents = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-io = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-offchain = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-keyring = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-keystore = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-runtime = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-session = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-storage = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-timestamp = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-transaction-pool = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
sp-trie = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
substrate-frame-rpc-system = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26" } | ||
try-runtime-cli = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.26", optional = true } | ||
[workspace] | ||
resolver = "2" | ||
... | ... | @@ -130,8 +133,8 @@ members = [ |
'pallets/duniter-wot', | ||
'pallets/identity', | ||
'pallets/membership', | ||
'pallets/oneshot-account', | ||
'pallets/authority-members', | ||
'pallets/ud-accounts-storage', | ||
'pallets/universal-dividend', | ||
'pallets/upgrade-origin', | ||
'primitives/membership', | ||
... | ... | @@ -204,4 +207,4 @@ panic = "unwind" |
[patch.crates-io] | ||
# rw-stream-sink has not been updated for 2 years and uses a too old version of pin-project (v0.4.28) | ||
# For the project to compile, we have to patch this dependency to force the use of pin-project v1.x | ||
rw-stream-sink = { git = "https://github.com/librelois/rw-stream-sink", branch = "master" } | ||
#rw-stream-sink = { git = "https://github.com/librelois/rw-stream-sink", branch = "master" } |
docs/dev/weights-benchmarking.md
0 → 100644
end2end-tests/tests/common/oneshot.rs
0 → 100644