Skip to content

Commit

Permalink
Uses the right version of subxt (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelDD1 authored Nov 8, 2022
1 parent 3721b71 commit 8aecae1
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions avail-subxt/build_api.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
#!/bin/sh
../../subxt/target/debug/subxt codegen \
cargo install --git https://github.com/fmiguelgarcia/subxt --branch cli_derives_for_type_2
subxt codegen \
--derive Clone \
--derive PartialEq \
--derive Eq \
--derive_for_type da_primitives::header::extension::HeaderExtension=serde::Serialize \
--derive_for_type da_primitives::header::extension::HeaderExtension=serde::Deserialize \
--derive_for_type da_primitives::header::extension::v1::HeaderExtension=serde::Serialize \
--derive_for_type da_primitives::header::extension::v1::HeaderExtension=serde::Deserialize \
--derive_for_type da_primitives::header::extension::v1::HeaderExtension=Default \
--derive_for_type da_primitives::kate_commitment::KateCommitment=serde::Serialize \
--derive_for_type da_primitives::kate_commitment::KateCommitment=serde::Deserialize \
--derive_for_type da_primitives::kate_commitment::KateCommitment=Default \
--derive_for_type da_primitives::asdr::data_lookup::DataLookup=serde::Serialize \
--derive_for_type da_primitives::asdr::data_lookup::DataLookup=serde::Deserialize \
--derive_for_type da_primitives::asdr::data_lookup::DataLookup=Default \
--derive_for_type da_primitives::asdr::data_lookup::DataLookupIndexItem=serde::Serialize \
--derive_for_type da_primitives::asdr::data_lookup::DataLookupIndexItem=serde::Deserialize \
--derive_for_type da_primitives::asdr::AppId=serde::Serialize \
--derive_for_type da_primitives::asdr::AppId=serde::Deserialize \
--derive_for_type da_primitives::asdr::AppId=Default \
--derive_for_type da_primitives::asdr::AppId=Copy \
--derive_for_type da_primitives::asdr::AppId=derive_more::From \
--derive-for-type da_primitives::header::extension::HeaderExtension=serde::Serialize \
--derive-for-type da_primitives::header::extension::HeaderExtension=serde::Deserialize \
--derive-for-type da_primitives::header::extension::v1::HeaderExtension=serde::Serialize \
--derive-for-type da_primitives::header::extension::v1::HeaderExtension=serde::Deserialize \
--derive-for-type da_primitives::header::extension::v1::HeaderExtension=Default \
--derive-for-type da_primitives::kate_commitment::KateCommitment=serde::Serialize \
--derive-for-type da_primitives::kate_commitment::KateCommitment=serde::Deserialize \
--derive-for-type da_primitives::kate_commitment::KateCommitment=Default \
--derive-for-type da_primitives::asdr::data_lookup::DataLookup=serde::Serialize \
--derive-for-type da_primitives::asdr::data_lookup::DataLookup=serde::Deserialize \
--derive-for-type da_primitives::asdr::data_lookup::DataLookup=Default \
--derive-for-type da_primitives::asdr::data_lookup::DataLookupIndexItem=serde::Serialize \
--derive-for-type da_primitives::asdr::data_lookup::DataLookupIndexItem=serde::Deserialize \
--derive-for-type da_primitives::asdr::AppId=serde::Serialize \
--derive-for-type da_primitives::asdr::AppId=serde::Deserialize \
--derive-for-type da_primitives::asdr::AppId=Default \
--derive-for-type da_primitives::asdr::AppId=Copy \
--derive-for-type da_primitives::asdr::AppId=derive_more::From \
--url http://localhost:9933 \
| sed -En "s/pub struct KateCommitment/#\[serde\(rename_all = \"camelCase\"\)\] \0/p" \
| sed '1i \#\[allow(clippy::all)]' \
Expand Down

0 comments on commit 8aecae1

Please sign in to comment.