Top new questions this week:
|
The contract's source code is provided during the contract verification on a block explorer (or some other source verifier).
The block explorer needs to compile that source and verify if the generated ...
|
I feel a little confused about the usage of mem::forget(...) when reading impl Imbalance<T::Balance> for PositiveImbalance<T, I> in pallet-balances pallet.
Accord the forget docs:
Takes ...
|
I am trying to implement the PSP22 token standard but getting errors when building my contract.
The errors are:
#[brush::contract]
| ^^^^^^^^^^^^^^^^^^ use of undeclared crate or module ...
|
I am trying to call api.events.staking.Withdrawn.is in polkadot.js/api.
Docs: https://polkadot.js.org/docs/substrate/events#withdrawnaccountid32-u128
Code sandbox: https://codesandbox.io/s/hardcore-...
|
I am interested in measuring/estimating the transaction throughput of my chain. How should I start?
|
I am new to open source and I would like to contribute to substrate. When creating a pull request I should add labels(A, B, C, and D label). How can I do so? Do the repo maintainers add these labels?
|
I want to get events list by using polkadot.js/api.
I can see api.query.system.events() in docs.
Docs: https://polkadot.js.org/docs/substrate/storage#eventcount-u32
However, this api lists events for ...
|
Greatest hits from previous weeks:
|
I'm using @polkadot-js to decode extrinsic data. The following method call returns a timestamp at a specific block, but I don't know how to parse this.
I tried assuming that it's a unix timestamp in ...
|
As far as I know, the metadata of Polkadot is version 14.
Assuming that the metadata version is not updated,
Can the metadata of the recent block be different?
ex) Block(#9135844)'s metadata != Block(#...
|
Each parachain has a crowdloan account when they conduct crowdloans for the purpose of winning a slot auction. How are these crowdloan accounts generated, and does the parachain have the private keys ...
|
I have an Extrinsic which modifies some storage variables and then returns either Err or Ok.
Will it revert the changes when I return Err?
How can I make sure that it only commits to changes when I ...
|
PolkaDotJS API docs show to get extrinsic, events, etc data for a particular block. Is there a way to get all the extrinsic, events, etc data for the substrate network without having to get for each ...
|
Looking at the docs, it seems I can only return custom weights in dispatchables
I want to be able to create data in storage then return the ID, because we will be calling the chain from a UI/Dapp
I am ...
|
If we are using a single or double maps in our pallets to store data on-chain, is there a limit to the number of records or size of one individual map?
I understand we should be storing the minimal ...
|
Can you answer these questions?
|
I know for a while after Substrate 2.0 came out, there were occasional releases on crates.io. I thought that practice had stopped and been replaced with git annotations of two different varieties
...
|
How to add Staking rewards for collator services for Node operators ?
|
I have integrated the democracy, collective, scheduler, and treasury pallet into my chain.
Everything is working fine just during the end step when the proposal is executing it is giving me the bad ...
|