1. Feb 14, 2023
    • Bastian Köcher's avatar
      pallet-timestamp: Remove `ValidAtTimestamp` error variant (#13346) · 4af64eb0
      Bastian Köcher authored
      
      
      * pallet-timestamp: Remove `ValidAtTimestamp` error variant
      
      The error variant wasn't that useful and it was also used wrongly in the code. In the code we
      returned this variant when the `timestamp < minimum`. The problem of this is that we waited on the
      node side some time, but then `set` function rejects the timestamp because of the same check (the
      timestamp in the block stays the same). We ensure that the timestamp isn't drifting too much in the
      future, but waiting for the timestamp to be "valid" would open some attack vector. The consensus
      protocols also compare the slots in the blocks to ensure that there isn't a block from the future
      and in the runtime we then ensure that `slot = timestamp / slot_duration`. So, we can just remove
      this variant and replace it with a new variant `TimeBetweenBlocksTooShort` to not even try importing
      a block which uses a too short delay since the last block.
      
      * Update primitives/timestamp/src/lib.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * Rename to `TooEarly`
      
      * FMT
      
      ---------
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      4af64eb0
    • Michal Kucharczyk's avatar
    • Vivek Pandya's avatar
      cleanup `<weight></weight>` from docs comments (#13350) · 35e8e137
      Vivek Pandya authored
      * cleanup <weight></weight> from docs comments
      
      * Changes to address review commnets
      
      * Fix CI cargo test --docs
      
      ---------
      
      Co-authored-by: parity-processbot <>
      35e8e137
    • yjh's avatar
      feat: improve FinalityProofProvider api (#13374) · 56b90e19
      yjh authored
      
      
      * feat: improve prove_finality api and export it
      
      * fmt
      
      * fix
      
      * improve prove_finality and kept private
      
      * Update client/finality-grandpa/src/finality_proof.rs
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      
      * add `prove_finality_proof` to `FinalityProofProvider`
      
      * fix some and impl Clone for FinalityProofProvider
      
      * improve by suggestions
      
      ---------
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      56b90e19
    • Jegor Sidorenko's avatar
      [NFTs] Offchain mint (#13158) · 3b767e12
      Jegor Sidorenko authored
      
      
      * Allow to mint with the pre-signed signatures
      
      * Another try
      
      * WIP: test encoder
      
      * Fix the deposits
      
      * Refactoring + tests + benchmarks
      
      * Add sp-core/runtime-benchmarks
      
      * Remove sp-core from dev deps
      
      * Enable full_crypto for benchmarks
      
      * Typo
      
      * Fix
      
      * Update frame/nfts/src/mock.rs
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      
      * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nfts
      
      * Add docs
      
      * Add attributes into the pre-signed object & track the deposit owner for attributes
      
      * Update docs
      
      * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nfts
      
      * Add the number of attributes provided to weights
      
      * Apply suggestions
      
      * Remove dead code
      
      * Remove Copy
      
      * Fix docs
      
      * Update frame/nfts/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Update frame/nfts/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      ---------
      
      Co-authored-by: default avatarSquirrel <[email protected]>
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      3b767e12
  2. Feb 13, 2023
  3. Feb 12, 2023
  4. Feb 11, 2023
  5. Feb 10, 2023
  6. Feb 09, 2023
    • Roman Useinov's avatar
      [Fix] Try-state feature-gated for BagsList (#13296) · 03e9f43f
      Roman Useinov authored
      
      
      * [Fix] Try-state feature-gated for BagsList
      
      * fix comment
      
      * fix try_state remote-tests
      
      * feature-gate try-state remote test for bags-list
      
      * remove try-state from a migration
      
      * more SortedListProvider fixes
      
      * more fixes
      
      * more fixes to allow do_try_state usage in other crates
      
      * do-try-state for fuzz
      
      * more fixes
      
      * more fixes
      
      * remove feature-flag
      
      * do-try-state
      
      * fix review comments
      
      * Update frame/bags-list/src/mock.rs
      
      Co-authored-by: default avatarAnton <[email protected]>
      
      ---------
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarAnton <[email protected]>
      03e9f43f
    • Bastian Köcher's avatar
      pallet-scheduler: Ensure we request a preimage (#13340) · 214d1c0c
      Bastian Köcher authored
      * pallet-scheduler: Ensure we request a preimage
      
      The scheduler was not requesting a preimage. When a preimage is requested, a user can deposit it
      without paying any fees.
      
      * Review changes
      214d1c0c
  7. Feb 08, 2023
  8. Feb 07, 2023
  9. Feb 06, 2023
  10. Feb 05, 2023
  11. Feb 03, 2023
  12. Feb 02, 2023