Questions tagged [frame]

Questions about Substrate's framework for developing custom runtime logic.

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers

How to use sp_tracing?

When I walk through the sp_tracing documents, it's an overview and does not show us how to use it I have some questions about sp_tracing: How to use it? What command that we run it? (Debug Mode?) ...
CocDap's user avatar
  • 616
3 votes
1 answer

boxed argument of a dispatchable

there are cases when we want to Box an argument of a dispatchable. One such case is when the type is large, for instance, xcm::MultiLocation and we do not want to blow the size of Call type. these ...
muharem's user avatar
  • 354
3 votes
1 answer

duplicate lang item in crate `ink_env` - astar-frame/astar

Trying to build Astar shibuya-runtime crate is failing after adding the ink_env dependency an astar-frame chain-extension. Here are the changes to both Astar and astar-frame. Run: cargo build --...
Snowmead's user avatar
  • 605
3 votes
0 answers

Cannot create a runtime on benchmark run

Using polkadot-v0.9.19 branch I've created benchmarks for a pallet, added it into runtime, compiled. On run of any of created benchmarks getting this error: Error: Service(Client(RuntimeApiError(...
Ivan Temchenko's user avatar
3 votes
0 answers

How to do a manual implementation for 'AccountId'

I am working on creating a custom map which takes T::AccountId as a perimeter: #[pallet::storage] #[pallet::getter(fn declaration_map)] pub(super) type Declarations<T: Config> = StorageMap < ...
Jacgoldberg's user avatar
1 vote
1 answer

Ensure that a call is dispatched from a specific pallet

So I want my instance of the pallet membership to be managed only by a specific pallet, and not even the Root origin. Is there anyway to create an EnsureOrigin object that can verify that a specific ...
SailorSnoW's user avatar
1 vote
1 answer

Storage migrations for frame pallets

I've noticed that some of the frame pallets have migrations and others don't, so I was just wondering if all the required migrations are implemented by the frame pallets, or if it depends on the ...
Sebastian's user avatar
  • 123
1 vote
0 answers

Add a `StorageMap` to a pallet (metadata) from outside the pallet

my problem is the following: There is a pallet which contains some storage, some extrinsics, and a type in its Config implementing trait CustomPalletHooks to which it delegates some logic. Assuming ...
Antonio Antonino's user avatar
1 vote
0 answers

Batch signed transactions

I need to execute some list of signed extrinsics in order, but because of the randomness that can exist in the transaction pool I have no way to actually ensure that they will execute in the proper ...
Valentin Fernandez's user avatar
1 vote
0 answers

BoundedBTreeMap error with Debug trait

Consider the following snippet #[weight = 100_000_000] //TODO: update weights pub fn test( _origin, _outputs: frame_support::BoundedBTreeSet<JoyBalanceOf<...
mr_bovo's user avatar
  • 171
1 vote
0 answers

What is the difference between Referenda and Democracy pallets?

Both Democracy and Referenda pallets are used for purposes of on-chain governance. However, only Democracy is used on Polkadot and Kusama runtimes. What is the difference between these two pallets?
Bernardo Rodrigues's user avatar
0 votes
0 answers

Standalone Runtime

I want to use Substrate Runtime in my application without consensus layer (outer node). I only want to create extrinsics in memory and pass them to runtime (or FRAME) of my custom pallets to proceed. ...
Saman H. Pasha's user avatar