Skip to content
  1. Dec 28, 2023
    • dependabot[bot]'s avatar
      Bump the known_good_semver group with 2 updates (#2810) · 00cb41b9
      dependabot[bot] authored
      
      
      Bumps the known_good_semver group with 2 updates:
      [syn](https://github.com/dtolnay/syn) and
      [serde_yaml](https://github.com/dtolnay/serde-yaml).
      
      Updates `syn` from 2.0.41 to 2.0.43
      <details>
      <summary>Release notes</summary>
      <p><em>Sourced from <a
      href="https://github.com/dtolnay/syn/releases">syn's
      releases</a>.</em></p>
      <blockquote>
      <h2>2.0.43</h2>
      <ul>
      <li>Insert trailing comma if not already present when printing a 1-tuple
      in pattern position (<a
      href="https://redirect.github.com/dtolnay/syn/issues/1553">#1553</a>)</li>
      </ul>
      <h2>2.0.42</h2>
      <ul>
      <li>Documentation improvements</li>
      </ul>
      </blockquote>
      </details>
      <details>
      <summary>Commits</summary>
      <ul>
      <li><a
      href="https://github.com/dtolnay/syn/commit/95ee05214030f936b8db3ee295188d5dc2c89621"><code>95ee052</code></a>
      Release 2.0.43</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/7383e81b1ab6f9983692ebd9d6caa54aeff8fb85"><code>7383e81</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/syn/issues/1559">#1559</a>
      from dtolnay/pattuple</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/712fde5a6fce0e7bee3615ab5c7545ce442bf034"><code>712fde5</code></a>
      Fix ToTokens for PatTuple to insert trailing comma</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/ed9b94e3395cffb33db4254439e23dbc3a2e9e43"><code>ed9b94e</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/syn/issues/1558">#1558</a>
      from dtolnay/tupletests</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/ec8517b33c137c48c38b74ba5be21815763a50f5"><code>ec8517b</code></a>
      Add tuple comma tests</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/3cf16c76bdbe4e16261a167592a77edab853c6aa"><code>3cf16c7</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/syn/issues/1557">#1557</a>
      from dtolnay/snapshotparsequote</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/553549ff12358a6ad95baaed2601a9dab541d693"><code>553549f</code></a>
      Generalize snapshot parsing to types that do not implement Parse</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/f9ad833e4a77c61003861f4e14d16b10b9708f9e"><code>f9ad833</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/syn/issues/1556">#1556</a>
      from dtolnay/punctuatedsnapshot</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/131b40ba2904ec8755bb34466f369072dc34d588"><code>131b40b</code></a>
      Debug impl for punctuated::Pairs superseded by Punctuated</li>
      <li><a
      href="https://github.com/dtolnay/syn/commit/3f12d652a8871955a7e27e0369933288bc387dd5"><code>3f12d65</code></a>
      Include punctuation tokens in snapshot tests containing Punctuated</li>
      <li>Additional commits viewable in <a
      href="https://github.com/dtolnay/syn/compare/2.0.41...2.0.43">compare
      view</a></li>
      </ul>
      </details>
      <br />
      
      Updates `serde_yaml` from 0.9.27 to 0.9.29
      <details>
      <summary>Release notes</summary>
      <p><em>Sourced from <a
      href="https://github.com/dtolnay/serde-yaml/releases">serde_yaml's
      releases</a>.</em></p>
      <blockquote>
      <h2>0.9.29</h2>
      <ul>
      <li>Turn on <code>deny(unsafe_op_in_unsafe_fn)</code> lint</li>
      </ul>
      <h2>0.9.28</h2>
      <ul>
      <li>Update <code>unsafe-libyaml</code> dependency to pull in unaligned
      write fix</li>
      </ul>
      </blockquote>
      </details>
      <details>
      <summary>Commits</summary>
      <ul>
      <li><a
      href="https://github.com/dtolnay/serde-yaml/commit/b957d2b15d7f3d96279997800fa0610b41b8fe00"><code>b957d2b</code></a>
      Release 0.9.29</li>
      <li><a
      href="https://github.com/dtolnay/serde-yaml/commit/007fc2d5c1987847a0f1ac95885c56f8e6e5f808"><code>007fc2d</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/serde-yaml/issues/401">#401</a>
      from dtolnay/unsafeop</li>
      <li><a
      href="https://github.com/dtolnay/serde-yaml/commit/5bac2475b0017d6a635d641df17165d71b951f0e"><code>5bac247</code></a>
      Fill in unsafe blocks inside unsafe functions</li>
      <li><a
      href="https://github.com/dtolnay/serde-yaml/commit/0f6dba18ab8db598c4963e9242afd490ee0202f0"><code>0f6dba1</code></a>
      Turn on deny(unsafe_op_in_unsafe_fn)</li>
      <li><a
      href="https://github.com/dtolnay/serde-yaml/commit/1b6e44837f0db0a1c15537311fed3579a7e8c6d2"><code>1b6e448</code></a>
      Release 0.9.28</li>
      <li><a
      href="https://github.com/dtolnay/serde-yaml/commit/ec1a3145d7b6b809f7b3aa2d9dcd7db30f0588d4"><code>ec1a314</code></a>
      Force unsafe-libyaml version that contains unaligned write fix</li>
      <li><a
      href="https://github.com/dtolnay/serde-yaml/commit/a6b2dc075a6eb1bed0d927df7b7ac2bb288f3bb4"><code>a6b2dc0</code></a>
      Update name of blocks_in_if_conditions clippy lint</li>
      <li>See full diff in <a
      href="https://github.com/dtolnay/serde-yaml/compare/0.9.27...0.9.29">compare
      view</a></li>
      </ul>
      </details>
      <br />
      
      
      Dependabot will resolve any conflicts with this PR as long as you don't
      alter it yourself. You can also trigger a rebase manually by commenting
      `@dependabot rebase`.
      
      [//]: # (dependabot-automerge-start)
      [//]: # (dependabot-automerge-end)
      
      ---
      
      <details>
      <summary>Dependabot commands and options</summary>
      <br />
      
      You can trigger Dependabot actions by commenting on this PR:
      - `@dependabot rebase` will rebase this PR
      - `@dependabot recreate` will recreate this PR, overwriting any edits
      that have been made to it
      - `@dependabot merge` will merge this PR after your CI passes on it
      - `@dependabot squash and merge` will squash and merge this PR after
      your CI passes on it
      - `@dependabot cancel merge` will cancel a previously requested merge
      and block automerging
      - `@dependabot reopen` will reopen this PR if it is closed
      - `@dependabot close` will close this PR and stop Dependabot recreating
      it. You can achieve the same result by closing it manually
      - `@dependabot show <dependency name> ignore conditions` will show all
      of the ignore conditions of the specified dependency
      - `@dependabot ignore <dependency name> major version` will close this
      group update PR and stop Dependabot creating any more for the specific
      dependency's major version (unless you unignore this specific
      dependency's major version or upgrade to it yourself)
      - `@dependabot ignore <dependency name> minor version` will close this
      group update PR and stop Dependabot creating any more for the specific
      dependency's minor version (unless you unignore this specific
      dependency's minor version or upgrade to it yourself)
      - `@dependabot ignore <dependency name>` will close this group update PR
      and stop Dependabot creating any more for the specific dependency
      (unless you unignore this specific dependency or upgrade to it yourself)
      - `@dependabot unignore <dependency name>` will remove all of the ignore
      conditions of the specified dependency
      - `@dependabot unignore <dependency name> <ignore condition>` will
      remove the ignore condition of the specified dependency and ignore
      conditions
      
      
      </details>
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      00cb41b9
    • Sophia Gold's avatar
      Fix slot_duration divide by zero panic in rococo-parachain runtime (#2612) · 201ec44a
      Sophia Gold authored
      Adds the fix in https://github.com/paritytech/polkadot-sdk/pull/2039 to
      the rococo-parachain runtime.
      201ec44a
  2. Dec 27, 2023
  3. Dec 26, 2023
  4. Dec 25, 2023
  5. Dec 24, 2023
  6. Dec 23, 2023
    • Liam Aharon's avatar
      Improve `TryDecodeEntireState` output (#2724) · 8acd6300
      Liam Aharon authored
      Found some areas for improvement while working on
      https://github.com/polkadot-fellows/runtimes/pull/122.
      
      ## Improvements
      
      - If multiple keys in a storage item (e.g. a map) are undecodable,
      return all the undecodable keys rather than only the first one found
      - Include the key of the undecodable storage in the INFO log
      - Write output as hex string where appropriate
      - Write INFO log on successful decoding
      8acd6300
  7. Dec 22, 2023
    • Bastian Köcher's avatar
    • joe petrowski's avatar
      Rococo & Westend People Chain (#2281) · ecbbb5a7
      joe petrowski authored
      
      
      Rococo and Westend runtimes for the "People Chain". This chain contains
      the Identity pallet with plans to migrate all related data from the
      Relay Chain.
      
      Changes `IdentityInfo` to:
      
      - Remove `additional_fields`.
      - Add `github` and `discord` as first class fields. From scraping chain
      data, these were the only two additional fields used (for the Fellowship
      and Ambassador Program, respectively).
      - Rename `riot` to `matrix`.
      
      Note: This will use the script in
      https://github.com/paritytech/polkadot-sdk/pull/2025 to generate the
      genesis state.
      
      TODO:
      
      - [x] https://github.com/paritytech/polkadot-sdk/pull/1814 and
      integration of the Identity Migrator pallet for migration.
      - [x] Tests: https://github.com/paritytech/polkadot-sdk/pull/2373
      
      ---------
      
      Co-authored-by: default avatarMuharem <[email protected]>
      Co-authored-by: default avatarMichal Kucharczyk <[email protected]>
      Co-authored-by: default avatarDónal Murray <[email protected]>
      Co-authored-by: default avatarRichard Melkonian <[email protected]>
      Co-authored-by: default avatarLiam Aharon <[email protected]>
      ecbbb5a7
    • Sachin Charakhwal's avatar
      fix overflow in `balance_to_point` conversion (#2706) · 4c0e0e07
      Sachin Charakhwal authored
      Closes #416
      
      As I mentioned in the above issue `balance_to_points` conversion
      currently overflows the `Balance` types even before computing the actual
      points for the given tokens. This fixes that,
      4c0e0e07
    • Emanuele Valzano's avatar
      incrementing sufficient accounts references with saturating_add for safety. (#2768) · 0ce506ef
      Emanuele Valzano authored
      
      
      Even though it is difficult to overflow the sufficients variable, since
      an attacker that is willing to rapidly increase the number must every
      time deposit a minimum deposit of a given asset, it is safer to use
      saturating_add().
      
      ---------
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      0ce506ef
    • Svyatoslav Nikolsky's avatar
      Final nits for bridge-hub-test-utils (#2788) · b62df695
      Svyatoslav Nikolsky authored
      closes https://github.com/paritytech/parity-bridges-common/issues/2739
      b62df695
    • dependabot[bot]'s avatar
      Bump unsafe-libyaml from 0.2.9 to 0.2.10 (#2776) · 0686cf17
      dependabot[bot] authored
      
      
      Bumps [unsafe-libyaml](https://github.com/dtolnay/unsafe-libyaml) from
      0.2.9 to 0.2.10.
      <details>
      <summary>Release notes</summary>
      <p><em>Sourced from <a
      href="https://github.com/dtolnay/unsafe-libyaml/releases">unsafe-libyaml's
      releases</a>.</em></p>
      <blockquote>
      <h2>0.2.10</h2>
      <ul>
      <li>Fix write to improperly aligned pointer in 32-bit targets (<a
      href="https://redirect.github.com/dtolnay/unsafe-libyaml/issues/21">#21</a>)</li>
      </ul>
      </blockquote>
      </details>
      <details>
      <summary>Commits</summary>
      <ul>
      <li><a
      href="https://github.com/dtolnay/unsafe-libyaml/commit/61f3ab82b271ac90d6a04f65520614ca08c58abe"><code>61f3ab8</code></a>
      Release 0.2.10</li>
      <li><a
      href="https://github.com/dtolnay/unsafe-libyaml/commit/d90d7abc4e31d590881a055c6ade175e40cd498f"><code>d90d7ab</code></a>
      Clean up some redundant casts</li>
      <li><a
      href="https://github.com/dtolnay/unsafe-libyaml/commit/7755559145c9cf5573639bfecc557893d4a46b0d"><code>7755559</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/unsafe-libyaml/issues/24">#24</a>
      from dtolnay/mallocalign</li>
      <li><a
      href="https://github.com/dtolnay/unsafe-libyaml/commit/b8a0863c1bb2a0e1b3d226679e4a7bd31d14c2b4"><code>b8a0863</code></a>
      Fix insufficient alignment of malloc's return value on 32-bit</li>
      <li><a
      href="https://github.com/dtolnay/unsafe-libyaml/commit/389373f0d99dd8726eb52199e622056aa1d4ac8f"><code>389373f</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/unsafe-libyaml/issues/23">#23</a>
      from dtolnay/malloc</li>
      <li><a
      href="https://github.com/dtolnay/unsafe-libyaml/commit/fd41ef659dcd9eaa973771985edce227cdcfe084"><code>fd41ef6</code></a>
      Check arithmetic in malloc computations</li>
      <li><a
      href="https://github.com/dtolnay/unsafe-libyaml/commit/9e054fbfee5523f904bd70091170ad7a0e5402a2"><code>9e054fb</code></a>
      Merge pull request <a
      href="https://redirect.github.com/dtolnay/unsafe-libyaml/issues/22">#22</a>
      from dtolnay/force</li>
      <li><a
      href="https://github.com/dtolnay/unsafe-libyaml/commit/5b40a9e0edc5c5e87585d49f9fd34603c2c4742b"><code>5b40a9e</code></a>
      Check more arithmetic operations</li>
      <li><a
      href="https://github.com/dtolnay/unsafe-libyaml/commit/97a4332d8d5a47478e659cb9b872ed6613eee8a9"><code>97a4332</code></a>
      Delete cast to long followed by size_t</li>
      <li><a
      href="https://github.com/dtolnay/unsafe-libyaml/commit/e5f4bbd0f0ff8c48c8df8e88f810e5d0c4143159"><code>e5f4bbd</code></a>
      Clean up duplicated casting to size_t</li>
      <li>Additional commits viewable in <a
      href="https://github.com/dtolnay/unsafe-libyaml/compare/0.2.9...0.2.10">compare
      view</a></li>
      </ul>
      </details>
      <br />
      
      
      [![Dependabot compatibility
      score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=unsafe-libyaml&package-manager=cargo&previous-version=0.2.9&new-version=0.2.10)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
      
      Dependabot will resolve any conflicts with this PR as long as you don't
      alter it yourself. You can also trigger a rebase manually by commenting
      `@dependabot rebase`.
      
      [//]: # (dependabot-automerge-start)
      [//]: # (dependabot-automerge-end)
      
      ---
      
      <details>
      <summary>Dependabot commands and options</summary>
      <br />
      
      You can trigger Dependabot actions by commenting on this PR:
      - `@dependabot rebase` will rebase this PR
      - `@dependabot recreate` will recreate this PR, overwriting any edits
      that have been made to it
      - `@dependabot merge` will merge this PR after your CI passes on it
      - `@dependabot squash and merge` will squash and merge this PR after
      your CI passes on it
      - `@dependabot cancel merge` will cancel a previously requested merge
      and block automerging
      - `@dependabot reopen` will reopen this PR if it is closed
      - `@dependabot close` will close this PR and stop Dependabot recreating
      it. You can achieve the same result by closing it manually
      - `@dependabot show <dependency name> ignore conditions` will show all
      of the ignore conditions of the specified dependency
      - `@dependabot ignore this major version` will close this PR and stop
      Dependabot creating any more for this major version (unless you reopen
      the PR or upgrade to it yourself)
      - `@dependabot ignore this minor version` will close this PR and stop
      Dependabot creating any more for this minor version (unless you reopen
      the PR or upgrade to it yourself)
      - `@dependabot ignore this dependency` will close this PR and stop
      Dependabot creating any more for this dependency (unless you reopen the
      PR or upgrade to it yourself)
      You can disable automated security fix PRs for this repo from the
      [Security Alerts
      page](https://github.com/paritytech/polkadot-sdk/network/alerts).
      
      </details>
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      0686cf17
    • joe petrowski's avatar
      Update Safe Call Filters (#2786) · d7ca2cb5
      joe petrowski authored
      
      
      - Updates all safe call filters to allow `system::authorize_upgrade`.
      - Updates Coretime safe call filter to allow `sudo` and
      `system_set_storage`.
      - Update Coretime teleports to allow teleportation with other system
      chains.
      
      ---------
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      d7ca2cb5
    • Bastian Köcher's avatar
      pallet-sudo: Accept `Root` origin as valid sudo (#2783) · 96bec7a7
      Bastian Köcher authored
      This changes `pallet-sudo` to also accept `Root` origin for
      `ensure_sudo`. This can be useful for parachains who allow the relay
      chain to have superuser rights to setup the sudo pallet for example.
      96bec7a7
    • Bastian Köcher's avatar
    • Branislav Kontur's avatar
  8. Dec 21, 2023
  9. Dec 20, 2023
    • joe petrowski's avatar
      Fix Coretime Master (#2765) · d84e135b
      joe petrowski authored
      Should have merged master into #2682 before merging.
      d84e135b
    • Dónal Murray's avatar
      Fix clippy lints behind feature gates and add new CI step all features (#2569) · d68868f6
      Dónal Murray authored
      
      
      Many clippy lints usually enforced by `-Dcomplexity` and `-Dcorrectness`
      are not caught by CI as they are gated by `features`, like
      `runtime-benchmarks`, while the clippy CI job runs with only the default
      features for all targets.
      
      This PR also adds a CI step to run clippy with `--all-features` to
      ensure the code quality is maintained behind feature gates from now on.
      
      To improve local development, clippy lints are downgraded to warnings,
      but they still will result in an error at CI due to the `-Dwarnings`
      rustflag.
      
      ---------
      
      Co-authored-by: default avatarLiam Aharon <[email protected]>
      d68868f6
    • joe petrowski's avatar
      Add Authorize Upgrade Pattern to Frame System (#2682) · 280aa0b5
      joe petrowski authored
      Adds the `authorize_upgrade` -> `enact_authorized_upgrade` pattern to
      `frame-system`. This will be useful for upgrading bridged chains that
      are under the governance of Polkadot without passing entire runtime Wasm
      blobs over a bridge.
      
      Notes:
      
      - Changed `enact_authorized_upgrade` to `apply_authorized_upgrade`.
      Personal opinion, "apply" more accurately expresses what it's doing. Can
      change back if outvoted.
      - Remove `check_version` in favor of two extrinsics, so as to make
      _checked_ the default.
      - Left calls in `parachain-system` and marked as deprecated to prevent
      breaking the API. They just call into the `frame-system` functions.
      - Updated `frame-system` benchmarks to v2 syntax.
      
      ---------
      
      Co-authored-by: command-bot <>
      280aa0b5
    • André Silva's avatar
      use a single source for simple-mermaid dependency (#2760) · b51904da
      André Silva authored
      this breaks cargo vendor which is necessary for building polkadot with
      nix
      b51904da
    • Muharem Ismailov's avatar
      pallet-asset-conversion: Decoupling Native Currency Dependancy (#2031) · 4f832ea8
      Muharem Ismailov authored
      closes https://github.com/paritytech/polkadot-sdk/issues/1842
      
      Decoupling Pallet from the Concept of Native Currency
      
      Currently, the pallet is intrinsically linked with the concept of native
      currency, requiring users to provide implementations of the
      `fungible::*` and `fungibles::*` traits to interact with native and non
      native assets. This incapsulates some non-related to the pallet
      complexity and makes it less adaptable in contexts where the native
      currency concept is absent.
      
      With this PR, the dependence on `fungible::*` for liquidity-supplying
      assets has been removed. Instead, the native and non-native currencies'
      handling is now overseen by a single type that implements the
      `fungibles::*` traits. To simplify this integration, types have been
      introduced to facilitate the creation of a union between `fungible::*`
      and `fungibles::*` implementations, producing a unified `fungibles::*`
      type.
      
      One of the reasons driving these changes is the ambition to create a
      more user-friendly API for the `SwapCredit` implementation. Given that
      it interacts with two distinct credit types from `fungible` and
      `fungibles`, a unified type was introduced. Clients now manage potential
      conversion failures for those credit types. In certain contexts, it's
      vital to guarantee that operations are fail-safe, like in this impl -
      [PR](https://github.com/paritytech/polkadot-sdk/pull/1845), place in
      [code](https://github.com/paritytech/polkadot-sdk/blob/20b85a5f
      
      /cumulus/primitives/utility/src/lib.rs#L429).
      
      Additional Updates:
      - abstracted the pool ID and its account derivation logic via trait
      bounds, along with common implementation offerings;
      - removed `inc_providers` on a pool creation for the pool account;
      - benchmarks:
      -- swap complexity is N, not const;
      -- removed `From<u128> + Into<u128>` bound from `T::Balance`;
      -- removed swap/liquidity/.. amount constants, resolve them dynamically
      based on pallet configuration;
      -- migrated to v2 API;
      - `OnUnbalanced` handler for the pool creation fee, replacing direct
      transfers to a specified account ID;
      - renamed `MultiAssetId` to `AssetKind` aligning with naming across
      frame crates;
      
      related PRs:
      - (depends) https://github.com/paritytech/polkadot-sdk/pull/1677
      - (caused) https://github.com/paritytech/polkadot-sdk/pull/2033
      - (caused) https://github.com/paritytech/polkadot-sdk/pull/1876
      
      ---------
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      Co-authored-by: default avatarLiam Aharon <[email protected]>
      4f832ea8
    • dependabot[bot]'s avatar
      Bump chrono from 0.4.27 to 0.4.31 (#2761) · d32f66fb
      dependabot[bot] authored
      
      
      Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.27 to
      0.4.31.
      <details>
      <summary>Release notes</summary>
      <p><em>Sourced from <a
      href="https://github.com/chronotope/chrono/releases">chrono's
      releases</a>.</em></p>
      <blockquote>
      <h2>0.4.31</h2>
      <p>Another maintenance release.
      It was not a planned effort to improve our support for UNIX timestamps,
      yet most PRs seem related to this.</p>
      <h3>Deprecations</h3>
      <ul>
      <li>Deprecate <code>timestamp_nanos</code> in favor of the non-panicking
      <code>timestamp_nanos_opt</code> (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1275">#1275</a>)</li>
      </ul>
      <h3>Additions</h3>
      <ul>
      <li>Add <code>DateTime::&lt;Utc&gt;::from_timestamp</code> (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1279">#1279</a>,
      thanks <a
      href="https://github.com/demurgos"><code>@​demurgos</code></a>)</li>
      <li>Add <code>TimeZone::timestamp_micros</code> (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1285">#1285</a>,
      thanks <a
      href="https://github.com/emikitas"><code>@​emikitas</code></a>)</li>
      <li>Add <code>DateTime&lt;Tz&gt;::timestamp_nanos_opt</code> and
      <code>NaiveDateTime::timestamp_nanos_opt</code> (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1275">#1275</a>)</li>
      <li>Add <code>UNIX_EPOCH</code> constants (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1291">#1291</a>)</li>
      </ul>
      <h3>Fixes</h3>
      <ul>
      <li>Format day of month in RFC 2822 without padding (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1272">#1272</a>)</li>
      <li>Don't allow strange leap seconds which are not on a minute boundary
      initialization methods (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1283">#1283</a>)
      This makes many methods a little more strict:
      <ul>
      <li><code>NaiveTime::from_hms_milli</code></li>
      <li><code>NaiveTime::from_hms_milli_opt</code></li>
      <li><code>NaiveTime::from_hms_micro</code></li>
      <li><code>NaiveTime::from_hms_micro_opt</code></li>
      <li><code>NaiveTime::from_hms_nano</code></li>
      <li><code>NaiveTime::from_hms_nano_opt</code></li>
      <li><code>NaiveTime::from_num_seconds_from_midnight</code></li>
      <li><code>NaiveTime::from_num_seconds_from_midnight_opt</code></li>
      <li><code>NaiveDate::and_hms_milli</code></li>
      <li><code>NaiveDate::and_hms_milli_opt</code></li>
      <li><code>NaiveDate::and_hms_micro</code></li>
      <li><code>NaiveDate::and_hms_micro_opt</code></li>
      <li><code>NaiveDate::and_hms_nano</code></li>
      <li><code>NaiveDate::and_hms_nano_opt</code></li>
      <li><code>NaiveDateTime::from_timestamp</code></li>
      <li><code>NaiveDateTime::from_timestamp_opt</code></li>
      <li><code>TimeZone::timestamp</code></li>
      <li><code>TimeZone::timestamp_opt</code></li>
      </ul>
      </li>
      <li>Fix underflow in <code>NaiveDateTime::timestamp_nanos_opt</code> (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1294">#1294</a>,
      thanks <a
      href="https://github.com/crepererum"><code>@​crepererum</code></a>)</li>
      </ul>
      <h3>Documentation</h3>
      <ul>
      <li>Add more documentation about the RFC 2822 obsolete date format (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1267">#1267</a>)</li>
      </ul>
      <h3>Internal</h3>
      <ul>
      <li>Remove internal <code>__doctest</code> feature and
      <code>doc_comment</code> dependency (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1276">#1276</a>)</li>
      <li>CI: Bump <code>actions/checkout</code> from 3 to 4 (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1280">#1280</a>)</li>
      <li>Optimize <code>NaiveDate::add_days</code> for small values (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1214">#1214</a>)</li>
      <li>Upgrade <code>pure-rust-locales</code> to 0.7.0 (<a
      href="https://redirect.github.com/chronotope/chrono/issues/1288">#1288</a>,
      thanks <a href="https://github.com/jeremija"><code>@​jeremija</code></a>
      wo did good improvements on <code>pure-rust-locales</code>)</li>
      </ul>
      <p>Thanks to all contributors on behalf of the chrono team, <a
      href="https://github.com/djc"><code>@​djc</code></a> and <a
      href="https://github.com/pitdicker"><code>@​pitdicker</code></a>!</p>
      <h2>0.4.30</h2>
      <p>In this release, we have decided to swap out the
      <code>chrono::Duration</code> type (which has been a re-export of time
      0.1 <code>Duration</code> type) with our own definition, which exposes a
      strict superset of the <code>time::Duration</code> API. This helps avoid
      warnings about the [CVE-2020-26235] and [RUSTSEC-2020-0071] advisories
      for downstream users and allows us to improve the <code>Duration</code>
      API going forward.</p>
      <!-- raw HTML omitted -->
      </blockquote>
      <p>... (truncated)</p>
      </details>
      <details>
      <summary>Commits</summary>
      <ul>
      <li><a
      href="https://github.com/chronotope/chrono/commit/e730c6ac45649a6a636abf30b796304bc46ecd15"><code>e730c6a</code></a>
      Bump version to 0.4.31</li>
      <li><a
      href="https://github.com/chronotope/chrono/commit/2afdde8f7f23f087b5027662e2882dba0663fef7"><code>2afdde8</code></a>
      fix: underflow during datetime-&gt;nanos conversion</li>
      <li><a
      href="https://github.com/chronotope/chrono/commit/46ad2c2b2c901eb20e43a7fca025aac02605bda4"><code>46ad2c2</code></a>
      Add <code>UNIX_EPOCH</code> constants</li>
      <li><a
      href="https://github.com/chronotope/chrono/commit/1df8db3a547bf50929d3d1774306f996b63e9e7c"><code>1df8db3</code></a>
      Add TimeZone::timestamp_micros</li>
      <li><a
      href="https://github.com/chronotope/chrono/commit/861d4e12487181e71744478a320db20f56bd61af"><code>861d4e1</code></a>
      Make TimeZone::timestamp_millis_opt use</li>
      <li><a
      href="https://github.com/chronotope/chrono/commit/3c4846a88235a38105a047b0acd34ce239a1cfb5"><code>3c4846a</code></a>
      Upgrade pure-rust-locales to 0.7.0</li>
      <li><a
      href="https://github.com/chronotope/chrono/commit/6665804676e55e9e2375eed7c10cc9e0910abf11"><code>6665804</code></a>
      Deny leap second if secs != 59 in
      <code>from_num_seconds_from_midnight_opt</code></li>
      <li><a
      href="https://github.com/chronotope/chrono/commit/61b7ffbb7a95df577c308eb0f2ab5c68e1566cf1"><code>61b7ffb</code></a>
      Deny leap second if secs != 59 in <code>from_hms_nano_opt</code></li>
      <li><a
      href="https://github.com/chronotope/chrono/commit/202af6cfda9bfdb195dc96377fcdeee7ed024b65"><code>202af6c</code></a>
      Don't generate leap seconds that are not 60 in NaiveTime's Arbitrary
      impl</li>
      <li><a
      href="https://github.com/chronotope/chrono/commit/60283ab55cbc9ea6caa86e19bf5da2c086cdf4bc"><code>60283ab</code></a>
      Don't create strange leap seconds in tests</li>
      <li>Additional commits viewable in <a
      href="https://github.com/chronotope/chrono/compare/v0.4.27...v0.4.31">compare
      view</a></li>
      </ul>
      </details>
      <br />
      
      
      [![Dependabot compatibility
      score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=chrono&package-manager=cargo&previous-version=0.4.27&new-version=0.4.31)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
      
      Dependabot will resolve any conflicts with this PR as long as you don't
      alter it yourself. You can also trigger a rebase manually by commenting
      `@dependabot rebase`.
      
      [//]: # (dependabot-automerge-start)
      [//]: # (dependabot-automerge-end)
      
      ---
      
      <details>
      <summary>Dependabot commands and options</summary>
      <br />
      
      You can trigger Dependabot actions by commenting on this PR:
      - `@dependabot rebase` will rebase this PR
      - `@dependabot recreate` will recreate this PR, overwriting any edits
      that have been made to it
      - `@dependabot merge` will merge this PR after your CI passes on it
      - `@dependabot squash and merge` will squash and merge this PR after
      your CI passes on it
      - `@dependabot cancel merge` will cancel a previously requested merge
      and block automerging
      - `@dependabot reopen` will reopen this PR if it is closed
      - `@dependabot close` will close this PR and stop Dependabot recreating
      it. You can achieve the same result by closing it manually
      - `@dependabot show <dependency name> ignore conditions` will show all
      of the ignore conditions of the specified dependency
      - `@dependabot ignore <dependency name> major version` will close this
      group update PR and stop Dependabot creating any more for the specific
      dependency's major version (unless you unignore this specific
      dependency's major version or upgrade to it yourself)
      - `@dependabot ignore <dependency name> minor version` will close this
      group update PR and stop Dependabot creating any more for the specific
      dependency's minor version (unless you unignore this specific
      dependency's minor version or upgrade to it yourself)
      - `@dependabot ignore <dependency name>` will close this group update PR
      and stop Dependabot creating any more for the specific dependency
      (unless you unignore this specific dependency or upgrade to it yourself)
      - `@dependabot unignore <dependency name>` will remove all of the ignore
      conditions of the specified dependency
      - `@dependabot unignore <dependency name> <ignore condition>` will
      remove the ignore condition of the specified dependency and ignore
      conditions
      
      
      </details>
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      d32f66fb
    • Svyatoslav Nikolsky's avatar
      Fix bridges scripts to test Rococo <> Westend bridge locally (#2752) · c9f9b4b2
      Svyatoslav Nikolsky authored
      
      
      I think I broke it in
      https://github.com/paritytech/polkadot-sdk/pull/2139 - fees has
      increased and amounts that we send are no longer enough to cover fees.
      Also changed a consts (test + 33%) using latest weights.
      
      ---------
      
      Co-authored-by: default avatarBranislav Kontur <[email protected]>
      c9f9b4b2
  10. Dec 19, 2023
    • André Silva's avatar
      Update schnorrkel to 0.11.4 (#2524) · 421af26b
      André Silva authored
      421af26b
    • Egor_P's avatar
      Add srtool GHA (#2755) · 8efaabd6
      Egor_P authored
      This PR introduces the `srtool` GHA which was used in the old `cumulus`
      repo to build and check runtimes on the weekly basis schedule. The job
      is triggered:
      - every Monday at 2AM, automatically
      - on each tag push or push to the release branch
      - can be triggered manually as well
      
      Addresses #1271
      8efaabd6
    • Muharem Ismailov's avatar
      pallet-asset-conversion: Swap Credit (#1677) · 5ce04514
      Muharem Ismailov authored
      
      
      Introduces a swap implementation that allows the exchange of a credit
      (aka Negative Imbalance) of one asset for a credit of another asset.
      
      This is particularly useful when a credit swap is required but may not
      have sufficient value to meet the ED constraint, hence cannot be
      deposited to temp account before. An example use case is when XCM fees
      are paid using an asset held in the XCM executor registry and has to be
      swapped for native currency.
      
      Additional Updates:
      - encapsulates the existing `Swap` trait impl within a transactional
      context, since partial storage mutation is possible when an error
      occurs;
      - supplied `Currency` and `Assets` impls must be implemented over the
      same `Balance` type, the `AssetBalance` generic type is dropped. This
      helps to avoid numerous type conversion and overflow cases. If those
      types are different it should be handled outside of the pallet;
      - `Box` asset kind on a pallet level, unbox on a runtime level - here
      [why](https://substrate.stackexchange.com/questions/10039/boxed-argument-of-a-dispatchable/10103#10103);
      - `path` uses `Vec` now, instead of `BoundedVec` since it is never used
      in PoV;
      - removes the `Transfer` event due to it's redundancy with the events
      emitted by `fungible/s` implementations;
      - modifies the `SwapExecuted` event type;
      
      related issue: 
      - https://github.com/paritytech/polkadot-sdk/issues/105
      
      related PRs:
      - (required for) https://github.com/paritytech/polkadot-sdk/pull/1845
      - (caused) https://github.com/paritytech/polkadot-sdk/pull/1717
      
      // DONE make the pallet work only with `fungibles` trait and make it
      free from the concept of a `native` asset -
      https://github.com/paritytech/polkadot-sdk/issues/1842
      
      ---------
      
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      5ce04514
    • Bastian Köcher's avatar
      pallet-uniques/nfts: Small optimizations (#2754) · 84d6342c
      Bastian Köcher authored
      Use `contains_key` to not require decoding the actual value.
      84d6342c
    • juangirini's avatar
      SDK docs ref cli (#2741) · 7c79741e
      juangirini authored
      Closes https://github.com/paritytech/polkadot-sdk-docs/issues/53
      7c79741e
    • juangirini's avatar
      Ref docs: runtime vs contracts (#2609) · d1924013
      juangirini authored
      closes https://github.com/paritytech/polkadot-sdk-docs/issues/41
      d1924013
    • joe petrowski's avatar
      Rococo/Westend Coretime Runtime · 2e70dd3b
      joe petrowski authored
      
      
      New runtimes for the Coretime Chain (a.k.a. "Broker Chain") described in
      RFC-1.
      
      Replaces https://github.com/paritytech/cumulus/pull/2889
      
      
      - [x] Add Agile Coretime pallet
      https://github.com/paritytech/substrate/pull/14568
      - [x] Generate chain specs for local and testnets
      - [x] Deploy parachain on Rococo - Done:
      [rococo-coretime-rpc.polkadot.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-coretime-rpc.polkadot.io#/explorer)
      
      DevOps issue for Aura keygen:
      https://github.com/paritytech/devops/issues/2725
      
      Edit (Dónal): This PR is mainly for Rococo, the Westend runtime is a
      shell with no `Broker` pallet. The Rococo runtime has the broker calls
      filtered for initial deployment.
      
      ---------
      
      Co-authored-by: default avatarDónal Murray <[email protected]>
      Co-authored-by: default avatar0xmovses <[email protected]>
      Co-authored-by: default avatarLiam Aharon <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarMarcin S. <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarBranislav Kontur <[email protected]>
      2e70dd3b
    • Jegor Sidorenko's avatar
      [NFTs] Fix consumers issue (#2653) · 166ae5ae
      Jegor Sidorenko authored
      When we call the `set_accept_ownership` method, we increase the number
      of account consumers, but then we don't decrease it on collection
      transfer, which leads to the wrong consumers number an account has.
      166ae5ae
    • Muharem Ismailov's avatar
      `UnionOf` types for merged `fungible` and `fungibles` implementations (#2033) · 0b74812c
      Muharem Ismailov authored
      Introduces `UnionOf` types, crafted to merge `fungible` and `fungibles`
      implementations or two `fungibles` implementations into a single type
      implementing `fungibles`.
      
      This also addresses an issue where `ItemOf` initiates a double drop for
      an imbalance type, leading to inaccurate total issuance accounting.
      
      Find the application of these types in this PR -
      [link](https://github.com/paritytech/polkadot-sdk/pull/2031), places in
      code -
      [1](https://github.com/paritytech/polkadot-sdk/blob/4ec7496f/cumulus/parachains/runtimes/assets/asset-hub-kusama/src/lib.rs#L327),
      [2](https://github.com/paritytech/polkadot-sdk/blob/4ec7496f
      
      /cumulus/parachains/runtimes/assets/asset-hub-kusama/src/lib.rs#L343).
      
      ---------
      
      Co-authored-by: default avatarLiam Aharon <[email protected]>
      Co-authored-by: default avatarjoe petrowski <[email protected]>
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      Co-authored-by: default avatarjoepetrowski <[email protected]>
      0b74812c