Interface CasperSerializableObject
-
- All Superinterfaces:
SerializableObject
- All Known Subinterfaces:
PricingMode,TransactionInvocationTarget,TransactionScheduling,TransactionTarget
- All Known Implementing Classes:
AbstractCLValue,AbstractCLValueWithChildren,AbstractSerializedKeyTaggedHex,AccountHashKey,ActivateBidEntryPoint,AddBidEntryPoint,AddReservationsEntryPoint,AddressableEntityKey,Approval,BalanceHoldKey,BidAddrKey,BlockGlobalKey,ByHash,ByName,ByPackageHash,ByPackageName,ByteCodeKey,CallEntryPoint,CalltableSerializationEnvelopeBuilder,CancelReservationsEntryPoint,ChangeBidPublicKeyEntryPoint,CLValueAny,CLValueBool,CLValueByteArray,CLValueI32,CLValueI64,CLValueKey,CLValueList,CLValueMap,CLValueOption,CLValuePublicKey,CLValueResult,CLValueString,CLValueTuple1,CLValueTuple2,CLValueTuple3,CLValueU128,CLValueU256,CLValueU32,CLValueU512,CLValueU64,CLValueU8,CLValueUnit,CLValueURef,CustomEntryPoint,DelegateEntryPoint,Deploy,DeployHeader,Digest,EntryPointKey,EraInfoKey,ExecutableDeployItem,ExecutableDeployItemWithEntryPoint,Field,Fields,FixedPricingMode,FutureEra,FutureTimestamp,InitiatorAccountHash,InitiatorAddr,InitiatorPublicKey,Key,MessageKey,ModuleBytes,NamedArg,NamedArgs,NamedKeyKey,Native,PaymentLimited,PrepaidPricingMode,PublicKey,RedelegateEntryPoint,Session,Signature,Standard,Stored,StoredContractByHash,StoredContractByName,StoredVersionedContractByHash,StoredVersionedContractByName,TransactionCategory,TransactionEntryPoint,TransactionHash,TransactionHashDeploy,TransactionHashV1,TransactionRuntime,TransactionV1,TransactionV1Payload,Transfer,TransferEntryPoint,Ttl,UndelegateEntryPoint,URefKey,WithdrawBidEntryPoint
public interface CasperSerializableObject extends SerializableObject
Defines an object as being capable of encoding withSerializerBuffer- Since:
- 0.2.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidserialize(SerializerBuffer ser)Called when the object's values must be serializedvoidserialize(SerializerBuffer ser, Target target)Called when the object's values must be serialized
-
-
-
Method Detail
-
serialize
void serialize(SerializerBuffer ser, Target target) throws ValueSerializationException, NoSuchTypeException
Called when the object's values must be serialized- Parameters:
ser- the serializer to be usedtarget- target serialization standard- Throws:
ValueSerializationException- exception holding information of failure to serialize a valueNoSuchTypeException
-
serialize
default void serialize(SerializerBuffer ser) throws ValueSerializationException
Called when the object's values must be serializedAllows to use the default serialize with the custom casper serialize signature, defaulting encodeType to false
- Specified by:
serializein interfaceSerializableObject- Parameters:
ser- the serializer to be used- Throws:
ValueSerializationException- exception holding information of failure to serialize a value
-
-