Skip to content

Commit

Permalink
MESH-2130/Add settlement constants to metadata (#1651)
Browse files Browse the repository at this point in the history
* Add settlement constants to metadata

* Add maxAssetMediators to chain metadata

---------

Co-authored-by: Adam Dossa <adam.dossa@gmail.com>
  • Loading branch information
HenriqueNogara and adamdossa committed Apr 23, 2024
1 parent 849dd13 commit 8ac0b67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/asset/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ decl_module! {

const AssetNameMaxLength: u32 = T::AssetNameMaxLength::get();
const FundingRoundNameMaxLength: u32 = T::FundingRoundNameMaxLength::get();

const AssetMetadataNameMaxLength: u32 = T::AssetMetadataNameMaxLength::get();
const AssetMetadataValueMaxLength: u32 = T::AssetMetadataValueMaxLength::get();
const AssetMetadataTypeDefMaxLength: u32 = T::AssetMetadataTypeDefMaxLength::get();
const MaxAssetMediators: u32 = T::MaxAssetMediators::get();

/// Registers a new ticker or extends validity of an existing ticker.
/// NB: Ticker validity does not get carry forward when renewing ticker.
Expand Down
6 changes: 6 additions & 0 deletions pallets/settlement/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,12 @@ decl_module! {
pub struct Module<T: Config> for enum Call where origin: <T as frame_system::Config>::RuntimeOrigin {
type Error = Error<T>;

const MaxNumberOfOffChainAssets: u32 = T::MaxNumberOfOffChainAssets::get();
const MaxNumberOfFungibleAssets: u32 = T::MaxNumberOfFungibleAssets::get();
const MaxNumberOfNFTsPerLeg: u32 = T::MaxNumberOfNFTsPerLeg::get();
const MaxNumberOfNFTs: u32 = T::MaxNumberOfNFTs::get();
const MaxNumberOfVenueSigners: u32 = T::MaxNumberOfVenueSigners::get();

fn deposit_event() = default;

/// Registers a new venue.
Expand Down

0 comments on commit 8ac0b67

Please sign in to comment.