Substitute BTreeMap/BTreeSet generated types for Vec (#459)

* Substitute BTreeMap/BTreeSet for Vec

* regen code

* cargo fmt

* undo test tweak since not substituting bounded things at the mo

* add a couple of comments
This commit is contained in:
James Wilson
2022-02-21 14:18:09 +00:00
committed by GitHub
parent e866d744de
commit d01fdd70d2
3 changed files with 13 additions and 47 deletions
+3 -4
View File
@@ -1,3 +1,4 @@
// Note [jsdw]: generated from polkadot 0.9.13-82616422d0-aarch64-macos
#[allow(dead_code, unused_imports, non_camel_case_types)]
pub mod api {
use super::api as root_mod;
@@ -20073,9 +20074,7 @@ pub mod api {
#[derive(
:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug,
)]
pub struct BoundedBTreeMap<_0, _1>(
pub ::std::collections::BTreeMap<_0, _1>,
);
pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::KeyedVec<_0, _1>);
}
pub mod bounded_vec {
use super::runtime_types;
@@ -23047,7 +23046,7 @@ pub mod api {
#[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)]
pub struct EraRewardPoints<_0> {
pub total: ::core::primitive::u32,
pub individual: ::std::collections::BTreeMap<_0, ::core::primitive::u32>,
pub individual: ::subxt::KeyedVec<_0, ::core::primitive::u32>,
}
#[derive(:: subxt :: codec :: Encode, :: subxt :: codec :: Decode, Debug)]
pub struct Exposure<_0, _1> {