@@ -19,7 +19,7 @@ forge bind --module --overwrite \
19
19
# Install subxt
20
20
command -v subxt || cargo install subxt-cli \
21
21
--git https://github.com/paritytech/subxt.git \
22
- --tag v0.42.1
22
+ --tag v0.43.0
23
23
24
24
eth_network=" ${ETH_NETWORK:- localhost} "
25
25
polkadot_network=" ${POLKADOT_NETWORK:- localhost} "
36
36
exit 1
37
37
fi
38
38
# Fetch metadata from BridgeHub and generate client
39
- subxt codegen --url ws://localhost:11144 > src/parachains/bridgehub.rs
39
+ subxt codegen --url ws://localhost:11144 > src/parachains/bridgehub.rs \
40
+ --derive ::subxt::ext::subxt_core::ext::codec::Encode \
41
+ --derive ::subxt::ext::subxt_core::ext::codec::Decode
40
42
subxt codegen --url ws://localhost:12144 > src/parachains/assethub.rs \
41
43
--derive-for-type staging_xcm::v5::location::Location=Clone,recursive \
44
+ --derive-for-type staging_xcm::v5::location::Location=::subxt::ext::codec::Encode,recursive \
45
+ --derive-for-type staging_xcm::v5::location::Location=::subxt::ext::codec::Decode,recursive \
46
+ --derive-for-type xcm::VersionedXcm=::subxt::ext::codec::Encode,recursive \
47
+ --derive-for-type xcm::VersionedXcm=::subxt::ext::codec::Decode,recursive \
42
48
--derive-for-type staging_xcm::v5::asset::AssetId=Clone,recursive \
43
49
--derive-for-type staging_xcm::v5::asset::Assets=Clone,recursive
44
- subxt codegen --url ws://localhost:9944 > src/parachains/relaychain.rs
45
- subxt codegen --url ws://localhost:13144 > src/parachains/penpal.rs
50
+ subxt codegen --url ws://localhost:9944 > src/parachains/relaychain.rs \
51
+ --derive ::subxt::ext::subxt_core::ext::codec::Encode \
52
+ --derive ::subxt::ext::subxt_core::ext::codec::Decode
53
+ subxt codegen --url ws://localhost:13144 > src/parachains/penpal.rs \
54
+ --derive-for-type staging_xcm::v5::location::Location=Clone,recursive \
55
+ --derive-for-type staging_xcm::v5::asset::AssetId=Clone,recursive \
56
+ --derive-for-type staging_xcm::v5::asset::Assets=Clone,recursive \
57
+ --derive ::subxt::ext::subxt_core::ext::codec::Encode \
58
+ --derive ::subxt::ext::subxt_core::ext::codec::Decode
59
+
46
60
fi
47
61
48
62
0 commit comments