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

Added the signed extension for ledger support #970

Merged
merged 36 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f746f6d
Added tests
zktony May 29, 2024
147c76a
Removed dprint statement
zktony May 29, 2024
9316a6c
Fixed transact fn
zktony May 30, 2024
95832aa
Fixed warnings
zktony May 30, 2024
f5c84ff
benchmarks
Gauthamastro May 30, 2024
fcbfbeb
Fixed benchmark code
zktony May 30, 2024
4a3fae7
Merge remote-tracking branch 'origin/ksr/added-xcm-tests' into ksr/ad…
zktony May 30, 2024
baf7d8f
Fixed test name
zktony May 30, 2024
25c1414
Fixed tests
zktony May 30, 2024
d46a3d4
Added events
zktony May 31, 2024
38b9bec
Extended XCM Test Cases (#962)
Gauthamastro May 31, 2024
ffabb9b
Added new ext
zktony Jun 3, 2024
391562f
Resolved clippy warnings
zktony Jun 3, 2024
5f77a40
Added new Ext to insert parachain asset mapping (#963)
Gauthamastro Jun 3, 2024
1fec944
Don't reset offchain state on error
Gauthamastro Jun 4, 2024
366b3ad
Update last processed snashot condition.
Gauthamastro Jun 5, 2024
657620e
Fix LMP epoch handoff logic
Gauthamastro Jun 5, 2024
1f78adc
Reduce threshold to hot fix the snapshot progress
Gauthamastro Jun 13, 2024
0a082db
Resign the summary if validator set changed
Gauthamastro Jun 25, 2024
f480827
Increment spec version
Gauthamastro Jun 25, 2024
4bf7231
Reduce threshold as a hot fix to get more time to fix,
Gauthamastro Jun 25, 2024
fc56fc3
Reduce threshold as a hot fix to get more time to fix,
Gauthamastro Jun 25, 2024
3491f6e
Increase back the threshold
Gauthamastro Jul 2, 2024
de9c328
Gj/don't reset offchain state (#968)
Gauthamastro Jul 2, 2024
3e8a123
Ledger Integration
Gauthamastro Jul 2, 2024
2bf72a1
cargo fmt
Gauthamastro Jul 2, 2024
66a4a79
increment spec version
Gauthamastro Jul 2, 2024
640b42e
Merge remote-tracking branch 'refs/remotes/origin/mainnet-release' in…
Gauthamastro Jul 2, 2024
f5e2dac
Merge branch 'refs/heads/Develop' into gj/ledger-integration
Gauthamastro Jul 2, 2024
c60f923
Fix clippy errors
Gauthamastro Jul 2, 2024
c481768
Remove old code
Gauthamastro Jul 2, 2024
1307b20
Support for Frame Metadata Hash - Ledger Integration (#969)
Gauthamastro Jul 2, 2024
a56d180
Remove node's ignored tests
Gauthamastro Jul 3, 2024
6b3a751
Merge remote-tracking branch 'origin/Develop' into Develop
Gauthamastro Jul 3, 2024
664c8b7
cargo fmt
Gauthamastro Jul 3, 2024
966eccd
insert SignedExtension
Gauthamastro Jul 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
273 changes: 71 additions & 202 deletions Cargo.lock

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ pallet-statement = { git = "https://github.com/paritytech/polkadot-sdk", branch
sp-statement-store = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
pallet-asset-conversion = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
pallet-asset-conversion-tx-payment = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }

frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
orml-vesting = { git = "https://github.com/Polkadex-Substrate/orml-1.1.0.git", branch = "master", default-features = false }
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false}
sp-version = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-staking = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
Expand Down Expand Up @@ -187,7 +187,6 @@ serde = { version = "1.0.171", default-features = false, features = ["derive"] }
serde_json = { version = "1.0.102", default-features = false, features = ["alloc"] }
hash-db = { version = "0.16.0", default-features = false }
trie-db = { version = "0.27.1", default-features = false }

#Parachain Dependencies
cumulus-primitives-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
orml-xtokens = { git = "https://github.com/Polkadex-Substrate/orml-1.1.0.git", branch = "master", default-features = false } #FIXME: Remove rev
Expand All @@ -204,7 +203,7 @@ cumulus-pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", branc
cumulus-pallet-xcmp-queue = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
cumulus-primitives-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
cumulus-primitives-utility = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
#Here Oeml
#Here Orml
orml-xcm-support = { git = "https://github.com/Polkadex-Substrate/orml-1.1.0.git", branch = "master", default-features = false } #FIXME: Remove rev
pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.1.0" }
pallet-collator-selection = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion check-all-ci-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

cargo fmt --check || exit
RUSTFLAGS="-D warnings" cargo build || exit
cargo build --features try-runtime || exit
RUSTFLAGS="-D warnings" cargo build --features try-runtime || exit
cargo build --features runtime-benchmarks || exit
./target/debug/polkadex-node benchmark pallet --pallet "*" --extrinsic "*" --steps 2 --repeat 1 || exit
cargo clippy -- -D warnings || exit
Expand Down
24 changes: 12 additions & 12 deletions nodes/mainnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository = "https://github.com/Polkadex-Substrate/Polkadex/"
targets = ["x86_64-unknown-linux-gnu"]

[build-dependencies]
substrate-build-script-utils = { version = "5.0.0" }
substrate-build-script-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
structopt = { version = "0.3.8", optional = true }

[dependencies]
Expand All @@ -26,16 +26,18 @@ clap = { version = "4.0.9", features = ["derive"] }
itertools = "0.10.1"
jsonrpsee = { version = "0.16.2", features = ["server"] }
# local dependencies
node-polkadex-runtime = { path = "../../runtimes/mainnet" }
node-polkadex-runtime = { path = "../../runtimes/mainnet"}
rpc-assets = { path = "../../rpc/assets" }
pallet-rewards-rpc = { path = "../../pallets/rewards/rpc" }
pallet-ocex-rpc = { path = "../../pallets/ocex/rpc" }
polkadex-client = { path = "../../client" }

thea = { path = "../../pallets/thea" }
pallet-ocex-lmp = { path = "../../pallets/ocex" }
swap-rpc = { path = "../../rpc/swap" }


# Substrate dependencies
frame-metadata-hash-extension = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
frame-support = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
pallet-im-online = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
Expand Down Expand Up @@ -73,7 +75,6 @@ sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "rel
sc-telemetry = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
#sp-io = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
frame-system = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
sc-transaction-pool-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
sp-authority-discovery = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
Expand All @@ -82,7 +83,7 @@ sp-statement-store = { git = "https://github.com/paritytech/polkadot-sdk", branc
sc-network-statement = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
pallet-asset-conversion-tx-payment = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
pallet-asset-conversion = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
#Primitives
##Primitives
polkadex-primitives = { path = "../../primitives/polkadex" }
sc-executor = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
Expand All @@ -93,13 +94,12 @@ try-runtime-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", bran

[dev-dependencies]
futures = "0.3.9"
tempfile = "3.1.0"
sc-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
sc-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
sc-consensus-epochs = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
sc-service-test = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
#tempfile = "3.1.0"
#sc-consensus = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
#sc-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
#sc-consensus-epochs = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
#sp-tracing = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0" }
#sc-service-test = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0"}

[features]
default = []
Expand Down
1 change: 1 addition & 0 deletions nodes/mainnet/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ pub fn get_stakeholder_tokens() -> Vec<(AccountId, Balance)> {
}

#[cfg(test)]
#[allow(dead_code)]
pub(crate) mod tests {
use sp_runtime::BuildStorage;

Expand Down
Loading
Loading