centrifuge / centrifuge-chain

Centrifuge Chain: the layer-1 blockchain for real-world assets, built on Substrate.
https://centrifuge.io
GNU Lesser General Public License v3.0
182 stars 78 forks source link

Feat: remark enum variant for transactions #1960

Closed hieronx closed 3 weeks ago

hieronx commented 1 month ago

Description

Add an enum option to the Remark enum, to support associating 1 extrinsic with an extrinsic from a previous block (with a known block number and transaction hash).

Something like

#[derive(Clone, Debug, Eq, PartialEq, Encode, Decode, TypeInfo)]
pub enum Remark {
    ...

    /// Association with an extrinsic
    Extrinsic(BlockNumber, Hash)
}

Research/based on

[Which codebases, pallets or designs did you base your design on]

How will this affect the code base

[Does it improve readability, performance? Will it introduce new complexity?]

What are foreseen obstacles or hurdles to overcome?

[Are migrations needed, structural changes around testing etc?]