Skip to content
Snippets Groups Projects
Benjamin Gallois's avatar
Benjamin Gallois authored
* allow clippy needless_pass_by_ref_mut

* fix clippy

°_°

* fix provider behavior

* fix build errors

* change behavior of going below ED

* fix provider initialization

* add mock epoch change

* add session number test

* add session number test

* WIP fix tests

* fix time-based ud test

* update metadata

* FIX apply all fix from flash branch

* partial fix clippy

other suggestions are not legit

* fix metadata and end2end test

* fix build tests

* fix build and clippy

* remove benchmark of upgrade_accounts

this happens in substrate dependency
I also updated other packages because why not :D
and I removed a useless implementation in mock
but the test do not compile with feature runtime benchmarks anyway

* test_total_issuance_vs_monetary_mass

* proofreading comment

* fix total issuance differently

this actually fixes total issuance at genesis
instead of creating duplicate account data

* fix test scenario

the thing tested here was not the ability to call the function,
but the impossibility of deleting the account

* add comment to explain test

* fix providers and sufficients counts

* fix initial balance

* fix initial TotalIssuance

* fix clippy warnings and optimization

* fix xtask

* update docs

* add DustHandle

* fix pallets config

* fix tests

* fix pallet_balance genesis config

* wip: fix end2end-test

* fix manual and instant sealing

* fix live-tests

* fix offences after rebase

* generate all weights

* add rust toolchain file

* fix benchmarks

Pallet balances benchmarks need https://github.com/duniter/substrate/commit/c36ab4f32454318a47777b24b6533c44121fc10b because pallet duniter-account add another provider.

* fix babe-worker

* fix subxt dependency

* fix ImplicitCallIndex and Weight::from_ref_time deprecation

* fix consensus_babe dependency

* regenerate weights

Regenerate all weights except for pallet-balance failing on one extrinsic

* workaround pallet_duniter_account

Workaround to be able to pass https://github.com/paritytech/substrate/blob/6ef184e33f6ce0f56999ae84b212ea6148c0624d/frame/balances/src/benchmarking.rs#L271 in the benchmark.
ExtraFlags is private and Default is always new_logic not suitable for the benchmark.

* wip fix node errors

* wip fix runtime errors

* fix pallet-duniter-account errors

* fix pallet-balance errors

* fix pallet-identity errors

* fix pallet-duniter-account errors

* upgrade Cargo files

* update docs
31a25023
History
Name Last commit Last update
..
src
tests
Cargo.toml
README.md

Duniter live tests

Kind of tests that run against a live chain!

Sanity tests

Test suite that verifies the consistency of the onchain storage.

Run sanity tests

  1. Checkout the git tag of the runtime that you want to check
  2. run the tests again the default network of the specified runtime type: cargo sanity-RUNTIME_TYPE

RUNTIME_TYPE should be replaced by gdev, gtest or g1.

Custom RPC endpoint

You can choose to use another RPC endpoint by setting the environment variable WS_RPC_ENDPOINT. This is also the only way to test against a different network that the default one.

run against a specific block

You can choose to use run the sanity tests against a specific block by setting the environment variable AT_BLOCK_NUMBER.

Be careful: this would require to use an archive node.

Contribute to sanity tests

The code is in the file live-tests/tests/sanity_RUNTIME_TYPE.rs

There is 3 different parts:

  1. Runtime types definitions
  2. Collect storage data
  3. Verify consistency of collected data