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

2198 implement ord no bound and partial ord no bound #16

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
654987f
Added code from substrate repo
adelarja Nov 8, 2023
622fc7f
Updated files
adelarja Nov 8, 2023
f8e6e68
Fixed test issues.
adelarja Nov 18, 2023
95e521b
Added PartialOrdNoBound and OrdNoBound to prelude.
adelarja Nov 18, 2023
e4c52a3
Improved format
adelarja Nov 18, 2023
7de1005
Merge branch 'master' of github.com:adelarja/polkadot-sdk into 2198-i…
adelarja Nov 18, 2023
7b17978
Add licenses
ggwpez Nov 20, 2023
5ed0a75
Run bridges zombienet tests on CI (#2439)
svyatonik Jan 12, 2024
5208bed
Extract warp sync strategy from `ChainSync` (#2467)
dmitry-markin Jan 12, 2024
c421b87
Bump zombienet version `v1.3.91` (#2912)
pepoviola Jan 12, 2024
bd80dcf
Contracts: Translate .wat fixtures to rust (#2654)
pgherveou Jan 12, 2024
38a0ac0
Upgrade aquamarine to v0.5.0, v0.4.0 has yanked (#2921)
jasl Jan 13, 2024
127b9be
wasm-builder: bump toml from 0.8.2 to 0.8.8; replace ansi_term (#2914)
maksimryndin Jan 13, 2024
e879c48
Warp sync zombienet tests: update DB snapshot (#2928)
serban300 Jan 15, 2024
46090ff
Unbalanced and Balanced fungible conformance tests, and fungible fixe…
liamaharon Jan 15, 2024
53bcbb1
archive: Implement archive_unstable_storage (#1846)
lexnv Jan 15, 2024
ac30340
Bump the known_good_semver group with 1 update (#2926)
dependabot[bot] Jan 15, 2024
36a8318
Add missing crates to the workspace (#2932)
ggwpez Jan 15, 2024
f2fbba3
Contracts: stabilize sr25519 (#2920)
pgherveou Jan 15, 2024
0c166ae
Bump lycheeverse/lychee-action (#2900)
dependabot[bot] Jan 15, 2024
1c2db17
Some random fixes (#2936)
bkchr Jan 16, 2024
4c4963a
Bump Swatinem/rust-cache from 2.7.2 to 2.7.3 (#2925)
dependabot[bot] Jan 16, 2024
2cb39f8
XCM WeightTrader: Swap Fee Asset for Native Asset (#1845)
muharem Jan 16, 2024
a42a47f
Bump rococo relay and coretime-rococo to 1.6 (#2913)
seadanda Jan 16, 2024
05cfb02
CI check features (#1708)
AurevoirXavier Jan 16, 2024
82c057e
Bump walkdir from 2.3.3 to 2.4.0 (#2910)
dependabot[bot] Jan 16, 2024
ec7bfae
subsystem-bench: cache misses profiling (#2893)
AndreiEres Jan 16, 2024
8428f67
XCMv4 (#1230)
franciscoaguirre Jan 16, 2024
33d533e
Bump futures-util from 0.3.28 to 0.3.30 (#2952)
dependabot[bot] Jan 17, 2024
c01dbeb
Revert "pallet-core-fellowship: import an unimported member on approv…
joepetrowski Jan 17, 2024
8b28031
Add `Storage` to `PolkadotXcm` for People Chains (#2959)
NachoPal Jan 17, 2024
c1c0e62
contracts: Update to Polkavm 0.5 (#2945)
athei Jan 17, 2024
f80cfc2
[Backport] Version bumps from 1.6.0 release (#2965)
EgorPopelyaev Jan 17, 2024
f574868
Rococo Identity Migration Part 2 + Bug Fix (#2946)
joepetrowski Jan 18, 2024
f895409
Filter votes from disabled validators in `BackedCandidates` in proces…
tdimitrov Jan 18, 2024
d6c0f15
Fix typo in traits.rs (#2971)
smoelius Jan 18, 2024
38205bf
Downgrade logging to `debug` (#2980)
bkchr Jan 18, 2024
1113fce
Bump the known_good_semver group with 1 update (#2953)
dependabot[bot] Jan 18, 2024
9a8ef49
Fix typos (#2983)
cristiantroy Jan 18, 2024
13f2342
Bump prost from 0.11.9 to 0.12.3 (#2976)
dependabot[bot] Jan 18, 2024
dcc7652
Westend/Rococo Asset Hub: pay xcm fees with sufficient assets (#2978)
muharem Jan 18, 2024
0e124a0
pallet-contracts: Fix compilation on latest nightly (#2986)
bkchr Jan 18, 2024
b469960
approval-distribution: downgrade errors to debug (#2989)
sandreim Jan 18, 2024
f9bbe7d
contracts: Update weights (#2969)
Robbepop Jan 18, 2024
b4b523c
Fix contracts compilation with `CARGO_TARGET_DIR` set (#2927)
nazar-pc Jan 18, 2024
87927bb
`GenesisBuilder`: `arbitrary_precision` feature enabled for `serde_js…
michalkucharczyk Jan 18, 2024
9db9211
More tests and checks confirming that `ledger.controller` is always c…
gpestana Jan 18, 2024
697c2c3
Update `translate` to use `defensive!` (#2985)
liamaharon Jan 19, 2024
47a3faa
Pvf thiserror (#2958)
maksimryndin Jan 19, 2024
66b2fa2
Bump libc from 0.2.149 to 0.2.152 (#2994)
dependabot[bot] Jan 19, 2024
50a2e28
Enable cross-chain NFT transfers on asset-hub (#2796)
Szegoo Jan 19, 2024
2e9b440
Contract fixtures tests: fixe nightly version (#3000)
ggwpez Jan 19, 2024
320b528
Update bridges subtree (#2996)
serban300 Jan 19, 2024
e02c520
Update Wasm benchmarks (#2957)
Robbepop Jan 19, 2024
4fb2a55
Make `Slot` and `SlotDuration` transparent (#2999)
nazar-pc Jan 19, 2024
f2336d3
better debugging for accountid32 in debug build (#2990)
pgherveou Jan 19, 2024
84ff0a9
Bump h2 from 0.3.21 to 0.3.24 (#3004)
dependabot[bot] Jan 19, 2024
3b7a8c7
Adding `try_state` hook for Tips pallet (#1871)
Doordashcon Jan 20, 2024
a5370fb
Bump comfy-table from 7.0.1 to 7.1.0 (#2993)
dependabot[bot] Jan 20, 2024
caa987d
Adder Parachain: Accept output file argument to `export-genesis-*` su…
JoshOrndorff Jan 20, 2024
21ef949
Use clone instead of fork on pvf (#2477)
jpserrat Jan 21, 2024
d37a456
Make candidate validation bounded again (#2125)
s0me0ne-unkn0wn Jan 21, 2024
757ae37
Switch All `construct_runtime`s to New Syntax (#2979)
joepetrowski Jan 22, 2024
e2caa81
Review: Remove audit rules (#3010)
bkchr Jan 22, 2024
d53534c
Enable async backing on asset-hub-rococo (#2826)
mrcnski Jan 22, 2024
deb72f4
sc-informant: Respect `--disable-log-color` (#3009)
bkchr Jan 22, 2024
10be8a3
Bump memmap2 from 0.5.10 to 0.9.3 (#3012)
dependabot[bot] Jan 22, 2024
c83ccda
Adds missing feature flags in UI Test update script (#3015)
codekitz Jan 22, 2024
3029280
Implement wrapping of EPM types (#1633)
wirednkod Jan 22, 2024
bbfff66
Bump wasm-instrument from 0.3.0 to 0.4.0 (#1294)
dependabot[bot] Jan 22, 2024
95ff9b2
approval-voting: Move verbose log from debug to tracing (#3019)
alexggh Jan 22, 2024
4c10fd2
Move cryptographic hashing procedures to crypto folder. (#2306)
davxy Jan 22, 2024
1417a02
Add unit impl for XcmAssetTransfers trait (#3022)
franciscoaguirre Jan 23, 2024
eb9b570
Bump shlex from 1.1.0 to 1.3.0 (#3023)
dependabot[bot] Jan 23, 2024
76c37c9
Bump substrate-bip39 from 0.4.4 to 0.4.5 (#3025)
dependabot[bot] Jan 23, 2024
e16ef08
rpc: backpressured RPC server (bump jsonrpsee 0.20) (#1313)
niklasad1 Jan 23, 2024
8eeacff
Update Westend / People Runtimes for Post-Migration (#3026)
joepetrowski Jan 23, 2024
b4dfad8
approval-distribution: aggresion must target unfinalized chain rather…
sandreim Jan 23, 2024
01ac54d
rpc-v2: Enable the `archive` class of methods (#3017)
lexnv Jan 23, 2024
a817d31
Various nits and alignments for testnet runtimes (#3024)
bkontur Jan 23, 2024
488cbe6
Registrar: Deposit covering max code size (#3020)
Szegoo Jan 24, 2024
a989ddf
statement-distribution: Ensure we deactivate leaves before activating…
bkchr Jan 24, 2024
4374b5d
Refactor `pallet-state-trie-migration` to `fungible::*` traits (#1801)
bkontur Jan 24, 2024
a78ff7d
[cumulus] Feature gates for rococo/westend related stuff in the `para…
bkontur Jan 24, 2024
50eb12c
Transactional processing for XCM (#1222)
vstam1 Jan 24, 2024
5b8abbc
statement-dist: activate leaves before unconditional deactivate (#3048)
rphmeier Jan 24, 2024
c4028a5
Bump docify from 0.2.6 to 0.2.7 (#3036)
dependabot[bot] Jan 24, 2024
b57e53d
Bump arbitrary from 1.3.0 to 1.3.2 (#3037)
dependabot[bot] Jan 24, 2024
a6952c7
approval-distribution: Update topology if authorities are discovered …
alexggh Jan 25, 2024
4ca193f
Add RadiumBlock collectives-westend bootnode (#3044)
radiumb Jan 25, 2024
73fd8cd
test-runtime: json_patch dep removed (#3062)
michalkucharczyk Jan 25, 2024
47e46d1
Add subsystem benchmarks for `availability-distribution` and `biftiel…
sandreim Jan 25, 2024
5c79ed3
rpc-v2/tx: Rename `transaction` to `transactionWatch` (#3040)
lexnv Jan 25, 2024
6633253
Add `NonFungibleAdapter` (#2924)
Szegoo Jan 26, 2024
30ecd85
bump reed-solomon-novelpoly version (#3065)
alindima Jan 26, 2024
7f28ac6
Remove duplicate `subsystem-bench` from Cargo.toml (#3073)
sandreim Jan 26, 2024
acd043b
Remove bridges zombienet tests from CI (#3071)
svyatonik Jan 26, 2024
b9735c6
Merge branch 'master' into 2198-implement-OrdNoBound-and-PartialOrdNo…
ggwpez Jan 26, 2024
fdb9aab
Dont derive on pallet for backwards comp
ggwpez Jan 26, 2024
abe9d16
Fix test imports
ggwpez Jan 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .config/lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ exclude = [
"https://w3f.github.io/parachain-implementers-guide/node/index.html",
"https://w3f.github.io/parachain-implementers-guide/protocol-chain-selection.html",
"https://w3f.github.io/parachain-implementers-guide/runtime/session_info.html",

# Behind a captcha (code 403):
"https://iohk.io/en/blog/posts/2023/11/03/partner-chains-are-coming-to-cardano/",
"https://www.reddit.com/r/rust/comments/3spfh1/does_collect_allocate_more_than_once_while/",
]
17 changes: 0 additions & 17 deletions .github/review-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,6 @@ rules:
teams:
- core-devs

- name: Audit rules
type: basic
condition:
include:
- ^polkadot/runtime/common/.*
- ^polkadot/primitives/src\/.+\.rs$
- ^substrate/primitives/.*
- ^substrate/frame/.*
exclude:
- ^substrate\/frame\/.+\.md$
minApprovals: 1
allowedToSkipRule:
teams:
- core-devs
teams:
- srlabs

- name: Core developers
countAuthor: true
condition:
Expand Down
162 changes: 162 additions & 0 deletions .github/scripts/check-workspace.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
#!/usr/bin/env python3

# Ensures that:
# - all crates are added to the root workspace
# - local dependencies are resolved via `path`
#
# It does not check that the local paths resolve to the correct crate. This is already done by cargo.
#
# Must be called with a folder containing a `Cargo.toml` workspace file.

import os
import sys
import toml
import argparse

def parse_args():
parser = argparse.ArgumentParser(description='Check Rust workspace integrity.')

parser.add_argument('workspace_dir', help='The directory to check', metavar='workspace_dir', type=str, nargs=1)
parser.add_argument('--exclude', help='Exclude crate paths from the check', metavar='exclude', type=str, nargs='*', default=[])

args = parser.parse_args()
return (args.workspace_dir[0], args.exclude)

def main(root, exclude):
workspace_crates = get_members(root, exclude)
all_crates = get_crates(root, exclude)
print(f'📦 Found {len(all_crates)} crates in total')

check_missing(workspace_crates, all_crates)
check_links(all_crates)

# Extract all members from a workspace.
# Return: list of all workspace paths
def get_members(workspace_dir, exclude):
print(f'🔎 Indexing workspace {os.path.abspath(workspace_dir)}')

root_manifest_path = os.path.join(workspace_dir, "Cargo.toml")
if not os.path.exists(root_manifest_path):
print(f'❌ No root manifest found at {root_manifest}')
sys.exit(1)

root_manifest = toml.load(root_manifest_path)
if not 'workspace' in root_manifest:
print(f'❌ No workspace found in root {root_manifest_path}')
sys.exit(1)

if not 'members' in root_manifest['workspace']:
return []

members = []
for member in root_manifest['workspace']['members']:
if member in exclude:
print(f'❌ Excluded member should not appear in the workspace {member}')
sys.exit(1)
members.append(member)

return members

# List all members of the workspace.
# Return: Map name -> (path, manifest)
def get_crates(workspace_dir, exclude_crates) -> dict:
crates = {}

for root, dirs, files in os.walk(workspace_dir):
if "target" in root:
continue
for file in files:
if file != "Cargo.toml":
continue

path = os.path.join(root, file)
with open(path, "r") as f:
content = f.read()
manifest = toml.loads(content)

if 'workspace' in manifest:
if root != workspace_dir:
print("⏩ Excluded recursive workspace at %s" % path)
continue

# Cut off the root path and the trailing /Cargo.toml.
path = path[len(workspace_dir)+1:-11]
name = manifest['package']['name']
if path in exclude_crates:
print("⏩ Excluded crate %s at %s" % (name, path))
continue
crates[name] = (path, manifest)

return crates

# Check that all crates are in the workspace.
def check_missing(workspace_crates, all_crates):
print(f'🔎 Checking for missing crates')
if len(workspace_crates) == len(all_crates):
print(f'✅ All {len(all_crates)} crates are in the workspace')
return

missing = []
# Find out which ones are missing.
for name, (path, manifest) in all_crates.items():
if not path in workspace_crates:
missing.append([name, path, manifest])
missing.sort()

for name, path, _manifest in missing:
print("❌ %s in %s" % (name, path))
print(f'😱 {len(all_crates) - len(workspace_crates)} crates are missing from the workspace')
sys.exit(1)

# Check that all local dependencies are good.
def check_links(all_crates):
print(f'🔎 Checking for broken dependency links')
links = []
broken = []

for name, (path, manifest) in all_crates.items():
def check_deps(deps):
for dep in deps:
# Could be renamed:
dep_name = dep
if 'package' in deps[dep]:
dep_name = deps[dep]['package']
if dep_name in all_crates:
links.append((name, dep_name))

if not 'path' in deps[dep]:
broken.append((name, dep_name, "crate must be linked via `path`"))
return

def check_crate(deps):
to_checks = ['dependencies', 'dev-dependencies', 'build-dependencies']

for to_check in to_checks:
if to_check in deps:
check_deps(deps[to_check])

# There could possibly target dependant deps:
if 'target' in manifest:
# Target dependant deps can only have one level of nesting:
for _, target in manifest['target'].items():
check_crate(target)

check_crate(manifest)



links.sort()
broken.sort()

if len(broken) > 0:
for (l, r, reason) in broken:
print(f'❌ {l} -> {r} ({reason})')

print("💥 %d out of %d links are broken" % (len(broken), len(links)))
sys.exit(1)
else:
print("✅ All %d internal dependency links are correct" % len(links))

if __name__ == "__main__":
args = parse_args()
main(args[0], args[1])
19 changes: 19 additions & 0 deletions .github/workflows/check-features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check Features

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
check-features:
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@v4
- name: Check
uses: hack-ink/cargo-featalign-action@bea88a864d6ca7d0c53c26f1391ce1d431dc7f34 # v0.1.1
with:
crate: substrate/bin/node/runtime
features: std,runtime-benchmarks,try-runtime
ignore: sc-executor
default-std: true
2 changes: 1 addition & 1 deletion .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.0 (22. Sep 2023)

- name: Lychee link checker
uses: lycheeverse/lychee-action@fdea7032675810093199f485fe075f057cc37b3e # for v1.9.0 (5. Jan 2024)
uses: lycheeverse/lychee-action@c3089c702fbb949e3f7a8122be0c33c017904f9b # for v1.9.1 (10. Jan 2024)
with:
args: >-
--config .config/lychee.toml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Rust Cache
uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-on-failure: true

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/check-workspace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check workspace

on:
pull_request:
paths:
- "*.toml"
merge_group:

jobs:
check-workspace:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.0 (22. Sep 2023)

- name: install python deps
run: pip3 install toml

- name: check integrity
run: >
python3 .github/scripts/check-workspace.py .
--exclude
"substrate/frame/contracts/fixtures/build"
"substrate/frame/contracts/fixtures/contracts/common"
2 changes: 1 addition & 1 deletion .github/workflows/claim-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Rust Cache
uses: Swatinem/rust-cache@a22603398250b864f7190077025cf752307154dc # v2.7.2
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
cache-on-failure: true

Expand Down
2 changes: 1 addition & 1 deletion .gitlab/pipeline/zombienet.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.zombienet-refs:
extends: .build-refs
variables:
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.86"
ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.91"

include:
# substrate tests
Expand Down
6 changes: 3 additions & 3 deletions .gitlab/pipeline/zombienet/substrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
extends:
- .zombienet-substrate-common
variables:
# DB generated from commit: https://github.com/paritytech/polkadot-sdk/commit/2e4b8996c4924fc39f85198019039cf0987f89ec
# DB generated from commit: https://github.com/paritytech/polkadot-sdk/commit/868788a5bff3ef94869bd36432726703fe3b4e96
# TODO: As a workaround for https://github.com/paritytech/polkadot-sdk/issues/2568 the DB was generated in archive mode.
# After the issue is fixed, we should replace it with a pruned version of the DB.
DB_SNAPSHOT: "https://storage.googleapis.com/zombienet-db-snaps/substrate/0001-basic-warp-sync/chains-510ac1c891afe26bad6fcd6d74185917b3fb1b4f.tgz"
DB_BLOCK_HEIGHT: 47222
DB_SNAPSHOT: "https://storage.googleapis.com/zombienet-db-snaps/substrate/0001-basic-warp-sync/chains-9677807d738b951e9f6c82e5fd15518eb0ae0419.tgz"
DB_BLOCK_HEIGHT: 56687

zombienet-substrate-0000-block-building:
extends:
Expand Down
Loading
Loading