-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Substrate to follow Polkadot releases (#207)
* PR #201 key association logic; to be reverted * Revert "PR #201 key association logic; to be reverted" This reverts commit 44a3ed2. * added types and comments for readability and clarity in staking-extension * subxt points to temp branch with updated deps * refactored server sp_core stuff to use subxt::ext::sp_core * updated server to use subxt 0.24.0 (from 0.20.0) * BROKEN: updated substrate to polkadot-v0.9.30 and jakehemmerle subxt * update Event and Call to RuntimeEvent and RuntimeCall * fix pallet-free-tx weights * fix pallet-transaction-pause weights * fix pallet-staking-extension weights * updated mock runtimes and tests still needs updated free-tx test since FRAME tx are transactional by default * upgraded pallet-free-tx to substrate-polkadot 0.9.30 * pallets are all updated * entropy-runtime tests pass with runtime-benchmarks * handled client rpc and service...? * entropy compiles and tests * additional refactoring * added entropy-executor * entropy tests pass with runtime-benchmarks * fixed testing-utils * thanks jesse, fixed server, everything works * clippy pt 1 * clippy pt 2 * fixing tests * reenable extensions * fixed a test * updated runtime metadata * added babe and grandpa to rpc * jesse rocks; fixed subxt Config * fmt * clippy * taplo * fmt and clippy * clippy * updated deps * updates
- Loading branch information
1 parent
6aca4a2
commit 0e31aa7
Showing
83 changed files
with
5,027 additions
and
4,714 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Protocol Implementation | ||
A convenience wrapper around methods from our [tofn](https://github.com/Entropyxyz/tofn) fork. | ||
A convenience wrapper around methods from our [tofn](https://github.com/entropyxyz/tofn) fork. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
#![allow(clippy::all)] | ||
use subxt::{ClientBuilder, DefaultConfig, PairSigner, PolkadotExtrinsicParams}; | ||
pub use subxt::config::PolkadotConfig as EntropyConfig; | ||
use subxt::{ | ||
config::Config, | ||
tx::{PairSigner, SubstrateExtrinsicParams}, | ||
OnlineClient, | ||
}; | ||
#[subxt::subxt(runtime_metadata_path = "entropy_metadata.scale")] | ||
pub mod entropy {} | ||
|
||
pub type EntropyRuntime = | ||
entropy::RuntimeApi<DefaultConfig, PolkadotExtrinsicParams<DefaultConfig>>; | ||
|
||
/// Creates an api instance to talk to chain | ||
/// Chain endpoint set on launch | ||
pub async fn get_api(url: &str) -> Result<EntropyRuntime, subxt::Error<entropy::DispatchError>> { | ||
let api = ClientBuilder::new().set_url(url).build().await?.to_runtime_api::<EntropyRuntime>(); | ||
pub async fn get_api(url: &str) -> Result<OnlineClient<EntropyConfig>, subxt::Error> { | ||
let api = OnlineClient::<EntropyConfig>::from_url(url).await?; | ||
Ok(api) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.