Crowdloan::Error
Variant 534 v393pallet_crowdloan::pallet::Error
The `Error` enum of this pallet.
About This Type
Error enum for the Error pallet.
Contains all error types that the Error pallet can return when a call fails.
Variants (22)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | DepositTooLow | none | The crowdloan initial deposit is too low. |
| 1 | CapTooLow | none | The crowdloan cap is too low. |
| 2 | MinimumContributionTooLow | none | The minimum contribution is too low. |
| 3 | CannotEndInPast | none | The crowdloan cannot end in the past. |
| 4 | BlockDurationTooShort | none | The crowdloan block duration is too short. |
| 5 | BlockDurationTooLong | none | The block duration is too long. |
| 6 | InsufficientBalance | none | The account does not have enough balance to pay for the initial deposit/contribution. |
| 7 | Overflow | none | An overflow occurred. |
| 8 | InvalidCrowdloanId | none | The crowdloan id is invalid. |
| 9 | CapRaised | none | The crowdloan cap has been fully raised. |
| 10 | ContributionPeriodEnded | none | The contribution period has ended. |
| 11 | ContributionTooLow | none | The contribution is too low. |
| 12 | InvalidOrigin | none | The origin of this call is invalid. |
| 13 | AlreadyFinalized | none | The crowdloan has already been finalized. |
| 14 | ContributionPeriodNotEnded | none | The crowdloan contribution period has not ended yet. |
| 15 | NoContribution | none | The contributor has no contribution for this crowdloan. |
| 16 | CapNotRaised | none | The crowdloan cap has not been raised. |
| 17 | Underflow | none | An underflow occurred. |
| 18 | CallUnavailable | none | Call to dispatch was not found in the preimage storage. |
| 19 | NotReadyToDissolve | none | The crowdloan is not ready to be dissolved, it still has contributions. |
| 20 | DepositCannotBeWithdrawn | none | The deposit cannot be withdrawn from the crowdloan. |
| 21 | MaxContributorsReached | none | The maximum number of contributors has been reached. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 22 possible variants.
- Size
- variable (1+ bytes)
Examples
DepositTooLow
0x0000 Variant index 0 = DepositTooLowCapTooLow
0x0101 Variant index 1 = CapTooLowMinimumContributionTooLow
0x0202 Variant index 2 = MinimumContributionTooLowCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Crowdloan::Error — variant "DepositTooLow"
const value = registry.createType("Crowdloan::Error", "DepositTooLow");
console.log("Hex:", value.toHex());Type Parameters
T
Referenced By (21)
#726 RuntimeError via System#726 RuntimeError via Grandpa#726 RuntimeError via Balances#726 RuntimeError via SubtensorModule#726 RuntimeError via Utility#726 RuntimeError via Sudo#726 RuntimeError via Multisig#726 RuntimeError via Preimage#726 RuntimeError via Scheduler#726 RuntimeError via Proxy#726 RuntimeError via Registry#726 RuntimeError via Commitments#726 RuntimeError via AdminUtils#726 RuntimeError via SafeMode#726 RuntimeError via Ethereum#726 RuntimeError via EVM#726 RuntimeError via Drand#726 RuntimeError via Crowdloan#726 RuntimeError via Swap#726 RuntimeError via Contracts
and 1 more...
Also See
Type Information
- Type ID
- 534
- Kind
- Variant
- Path
- pallet_crowdloan::pallet::Error
- Runtime
- v393