@polkadot/types/interfaces APIs
- AccountId
- BlockNumber
- Balance
- EventRecord
- Header
- Hash
- Event
- Extrinsic
- BlockHash
- BalanceOf
- SignedBlock
- Nominations
- EraIndex
- DispatchError
- H256
- SessionIndex
- RuntimeVersion
- Moment
- RuntimeDispatchInfo
- VoteThreshold
- StakingLedger
- AccountInfo
- ParaId
- Index
- Call
- Exposure
- Votes
- ChainProperties
- RegistrarInfo
- EraRewardPoints
- DispatchInfo
- AccountIndex
- Address
- ProxyDefinition
- ProxyType
- Voting
- Multisig
- Conviction
- Registration
- AccountInfoWithProviders
- AccountInfoWithRefCount
- UnappliedSlash
- Weight
- Proposal
- ActiveEraInfo
- SlashingSpans
- ValidatorId
- ValidatorPrefs
- OpenTip
- ChainType
- LockIdentifier
- ValidatorPrefsTo145
- ExtrinsicSignature
- Keys
- Timepoint
- Permill
- RegistrationJudgement
- IdentityInfo
- AccountData
- MultiLocation
- XcmpMessageFormat
- RecoveryConfig
- AssetId
- AssetDetails
- AssetMetadata
- BountyIndex
- BountyStatus
- Bounty
- Scheduled
- EthereumAddress
- StatementKind
- EcdsaSignature
- PrefabWasmModule
- ContractInfo
- ProposalIndex
- IndividualExposure
- Vote
- TreasuryProposal
- DigestItem
- Forcing
- ActiveGiltsTotal
- AuctionIndex
- LeasePeriodOf
- WinningData
- FundInfo
- ParaLifecycle
- HeadData
- ParaInfo
- CandidateReceipt
- ParaValidatorIndex
- ParaGenesisArgs
- ParachainProposal
- Approvals
- Bid
- BidKind
- SocietyVote
- ElectionStatus
- StorageEntryTypeLatest
- OpenTipTo225
- ExtrinsicStatus
- StorageEntryMetadataLatest
- ContractExecResultErr
- AccountId32
- IdentityJudgement
- IdentityFields
- H160
- ContractInstantiateResult
- FeeDetails
- WeightToFeeCoefficient
- DispatchResult
- LastRuntimeUpgradeInfo
- MetadataLatest
Other Related APIs
@polkadot/types/interfaces#DigestItem TypeScript Examples
The following examples show how to use
@polkadot/types/interfaces#DigestItem.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Logs.tsx From crust-apps with Apache License 2.0 | 6 votes |
function formatItem (item: DigestItem): React.ReactNode {
if (item.value instanceof Struct) {
return formatStruct(item.value);
} else if (item.value instanceof Tuple) {
return formatTuple(item.value);
} else if (item.value instanceof Vec) {
return formatVector(item.value);
} else if (item.value instanceof Raw) {
return formatU8a(item.value);
}
return <div>{item.value.toString().split(',').join(', ')}</div>;
}