Package org.polkadot.types
Interface Codec
-
- All Known Subinterfaces:
Compactable,SubmittableExtrinsic<ApplyResult>,Types.IExtrinsic,Types.IExtrinsicSignature,Types.IHash,Types.IMethod
- All Known Implementing Classes:
AbstractArray,AbstractInt,AccountId,AccountId.AccountIdOf,AccountIndex,AccountInfo,Address,Amount,AssetOf,AttestedCandidate,AttestedCandidate.AvailabilityVote,AttestedCandidate.BalanceUpload,AttestedCandidate.CandidateReceipt,AttestedCandidate.CandidateSignature,AttestedCandidate.EgressQueueRoot,AttestedCandidate.ExplicitCandidateSignature,AttestedCandidate.HeadData,AttestedCandidate.ValidityAttestation,AttestedCandidate.ValidityVote,AuthorityId,Balance,Balance.BalanceOf,BalanceLock,BftAuthoritySignature,BftAuthoritySignature.BftHashSignature,Block,BlockNumber,Bool,Bytes,Calls.MetadataCall,Calls.MetadataCallArg,Calls.OuterDispatchCall,Calls.OuterDispatchMetadata,ChainProperties,CodeHash,Compact,DemocracyFunctions.ReferendumInfoExtended,Digest,Digest.AuthoritiesChange,Digest.ChangesTrieRoot,Digest.Consensus,Digest.DigestItem,Digest.Other,Digest.Seal,Enum,EnumType,Event,Event.EventData,Event.EventIndex,EventRecord,EventRecord.ApplyExtrinsic,EventRecord.Finalization,EventRecord.Phase,Events.EventMetadata,Events.MetadataEvent,Events.OuterEventMetadata,Events.OuterEventMetadataEvent,Exposure,Extrinsic,ExtrinsicEra,Extrinsics,ExtrinsicSignature,ExtrinsicStatus,ExtrinsicStatus.Broadcast,ExtrinsicStatus.Dropped,ExtrinsicStatus.Finalized,ExtrinsicStatus.Future,ExtrinsicStatus.Invalid,ExtrinsicStatus.Ready,ExtrinsicStatus.Usurped,Gas,H160,H256,H512,Hash,Header,Header.HeaderExtended,Health,I128,I16,I256,I32,I64,I8,Index,IndividualExposure,InherentOfflineReport,Int,Json,Justification,Justification.RhdJustification,Key,KeyValue,KeyValue.KeyValueOption,Linkage,Linkage.LinkageResult,LockIdentifier,LocKPeriods,MagicNumber,Metadata,MetadataV0,MetadataV1,MetadataV1.MetadataModule,MetadataV2,MetadataV2.MetadataModule,MetadataV3,MetadataV3.MetadataModule,MetadataVersioned,MetadataVersioned.MetadataEnum,Method,Method.MethodIndex,MisbehaviorReport,MisbehaviorReport.BftAtReport,MisbehaviorReport.BftDoubleCommit,MisbehaviorReport.BftDoublePrepare,MisbehaviorReport.BftDoublePropose,MisbehaviorReport.BftProposeOutOfTurn,MisbehaviorReport.MisbehaviorKind,Modules.CallMetadata,Modules.FunctionArgumentMetadata,Modules.FunctionMetadata,Modules.MapType,Modules.ModuleMetadata,Modules.PlainType,Modules.RuntimeModuleMetadata,Modules.StorageFunctionMetadata,Modules.StorageFunctionModifier,Modules.StorageFunctionType,Modules.StorageMetadata,Moment,Moment.MomentOf,NetworkState,NewAccountOutcome,Nonce,NonceCompact,Null,Option,Origin,ParaId,PeerInfo,PendingExtrinsics,Perbill,Permill,PrefabWasmModule,PrefabWasmModule.PrefabWasmModuleReserved,PropIndex,Proposal,ProposalIndex,ReferendumIndex,ReferendumInfo,RewardDestination,RuntimeVersion,RuntimeVersion.ApiId,RuntimeVersion.RuntimeVersionApi,Schedule,SeedOf,SessionKey,Set,Signature,Signature.Ed25519Signature,Signature.Sr25519Signature,SignaturePayload,SignedBlock,StakingLedger,Storage.Default,Storage.Default,Storage.DoubleMapType,Storage.MapType,Storage.MapType,Storage.MetadataStorageModifier,Storage.MetadataStorageType,Storage.MetadataStorageType,Storage.MetadataStorageType,Storage.MetadataStorageV1,Storage.MetadataStorageV2,Storage.MetadataStorageV3,Storage.Optional,Storage.Optional,Storage.PlainType,Storage.PlainType,StorageChangeSet,StorageData,StorageKey,StoredPendingChange,StoredPendingChange.NextAuthority,Struct,SubmittableExtrinsic.SubmittableExtrinsicImpl,SubmittableExtrinsic.SubmittableResult,Text,TreasuryProposal,Tuple,Type,U128,U16,U256,U32,U64,U8,U8a,U8aFixed,UInt,UnlockChunk,USize,ValidatorPrefs,Vector,VestingSchedule,Vote,VoteIndex,VoteThreshold,WithdrawReasons
public interface Codec
-
-
Method Summary
Modifier and Type Method Description booleaneq(java.lang.Object other)static Types.ConstructorCodecgetConstructorCodec()intgetEncodedLength()booleanisEmpty()java.lang.StringtoHex()java.lang.ObjecttoJson()default byte[]toU8a()byte[]toU8a(boolean isBare)
-
-
-
Method Detail
-
getEncodedLength
int getEncodedLength()
-
isEmpty
boolean isEmpty()
-
eq
boolean eq(java.lang.Object other)
-
toHex
java.lang.String toHex()
-
toJson
java.lang.Object toJson()
-
toU8a
default byte[] toU8a()
-
toU8a
byte[] toU8a(boolean isBare)
-
getConstructorCodec
static Types.ConstructorCodec getConstructorCodec()
-
-