Skip to main content

Questions tagged [parse]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
2 answers

How to parse/match a specific frame_system event?

From the following function I can read the frame_system events: let events = frame_system::Pallet::<T>::read_events_no_consensus(); the above provides me the following example array: ...
Pablo Buitrago's user avatar
4 votes
1 answer

Serialisation of Extrinsic objects

Generating transaction via ApiPromise through method generated a SubmittableExtrinsicFunction object. Which has a toJSON() function that return what I would call a raw transaction. Is there ...
Tadej Vengust's user avatar
2 votes
1 answer

How to convert Vec<u8> to u32 in Substrate runtime?

AFAIK, we can't use std in Substrate WASM runtime, what is the most effective way to convert a string to a number in runtime. For example: string "48" in Vec to 48 in u32.
lucycollins's user avatar
2 votes
1 answer

Parsing XCM Inbound Messages

A cross chain transfer generates several extrinsics depending on the number of hops. In this example: we have a ...
Alex's user avatar
  • 21
2 votes
1 answer

How to convert a u32 into a BoundedVec compatible format?

I am using a BoundedVec as the id for a storage map, and intend to transform a u32 value into a compatible format. Is there a streamlined way to accomplish this, or should I split the u32 into smaller ...
frkmnt's user avatar
  • 55