Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.claude
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog].

[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## 0.17.0 (2025-12-03)

- Add extrinsic encode methods in `frame_decode::extrinsics`. This covers encoding v4 and v5 unsigned and signed extrinsics, new traits for providing transaction extensions, encoding v4 and v5 signer payloads and encoding call data.

## 0.16.1 (2025-12-03)

- Expose the `crate::helpers::ToTypeRegistry` trait so that inputs to `crate::helpers::type_registry_from_metadata` can be named. Make it sealed so that others cannot rely on it.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "frame-decode"
version = "0.16.1"
version = "0.17.0"
edition = "2024"
description = "Decode extrinsics and storage from Substrate based chains"
license = "Apache-2.0"
Expand Down
16 changes: 14 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,21 @@ pub mod extrinsics {
Extrinsic, ExtrinsicDecodeError, ExtrinsicExtensions, ExtrinsicOwned, ExtrinsicSignature,
ExtrinsicType, NamedArg, decode_extrinsic,
};
pub use crate::methods::extrinsic_encoder::{
ExtrinsicEncodeError, TransactionExtension, TransactionExtensionError,
TransactionExtensions, TransactionExtensionsError,
best_v5_general_transaction_extension_version, encode_call_data, encode_call_data_to,
encode_call_data_with_info, encode_call_data_with_info_to, encode_v4_signed,
encode_v4_signed_to, encode_v4_signed_with_info_to, encode_v4_signer_payload,
encode_v4_signer_payload_with_info, encode_v4_unsigned, encode_v4_unsigned_to,
encode_v4_unsigned_with_info_to, encode_v5_bare, encode_v5_bare_to,
encode_v5_bare_with_info_to, encode_v5_general, encode_v5_general_to,
encode_v5_general_with_info_to, encode_v5_signer_payload,
encode_v5_signer_payload_with_info,
};
pub use crate::methods::extrinsic_type_info::{
ExtrinsicCallInfo, ExtrinsicExtensionInfo, ExtrinsicInfoArg, ExtrinsicInfoError,
ExtrinsicSignatureInfo, ExtrinsicTypeInfo,
ExtrinsicCallInfo, ExtrinsicCallInfoArg, ExtrinsicExtensionInfo, ExtrinsicExtensionInfoArg,
ExtrinsicInfoError, ExtrinsicSignatureInfo, ExtrinsicTypeInfo,
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/methods/extrinsic_decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ where
let call_index: u8 =
Decode::decode(cursor).map_err(ExtrinsicDecodeError::CannotDecodeCallIndex)?;
let call_info = info
.extrinsic_call_info(pallet_index, call_index)
.extrinsic_call_info_by_index(pallet_index, call_index)
.map_err(|e| ExtrinsicDecodeError::CannotGetInfo(e.into_owned()))?;

let mut call_data = vec![];
Expand Down
Loading
Loading