UnchangedSharedKind
sealed class UnchangedSharedKind : Disposable
Type of unchanged shared object
BCS
The BCS serialized form of this type is specified in bcs-schema.abnf.
Inheritors
| ReadOnlyRoot |
| MutateDeleted |
| ReadDeleted |
| Canceled |
| PerEpochConfig |
Types
| Name | Summary |
|---|---|
| Canceled | data class Canceled(val version: Version) : UnchangedSharedKind Shared objects in canceled transaction. The sequence number embed cancellation reason. |
| MutateDeleted | data class MutateDeleted(val version: Version) : UnchangedSharedKind Deleted shared objects that appear mutably/owned in the input. |
| PerEpochConfig | object PerEpochConfig : UnchangedSharedKind Read of a per-epoch config object that should remain the same during an epoch. |
| ReadDeleted | data class ReadDeleted(val version: Version) : UnchangedSharedKind Deleted shared objects that appear as read-only in the input. |
| ReadOnlyRoot | data class ReadOnlyRoot(val version: Version, val digest: ObjectDigest) : UnchangedSharedKind Read-only shared objects from the input. We don't really need ObjectDigest for protocol correctness, but it will make it easier to verify untrusted read. |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
Canceled
data class Canceled(val version: Version) : UnchangedSharedKind
Shared objects in canceled transaction. The sequence number embed cancellation reason.
Constructors
| Canceled | constructor(version: Version) |
Properties
| Name | Summary |
|---|---|
| version | val version: Version |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
MutateDeleted
data class MutateDeleted(val version: Version) : UnchangedSharedKind
Deleted shared objects that appear mutably/owned in the input.
Constructors
| MutateDeleted | constructor(version: Version) |
Properties
| Name | Summary |
|---|---|
| version | val version: Version |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
PerEpochConfig
object PerEpochConfig : UnchangedSharedKind
Read of a per-epoch config object that should remain the same during an epoch.
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
ReadDeleted
data class ReadDeleted(val version: Version) : UnchangedSharedKind
Deleted shared objects that appear as read-only in the input.
Constructors
| ReadDeleted | constructor(version: Version) |
Properties
| Name | Summary |
|---|---|
| version | val version: Version |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |
ReadOnlyRoot
data class ReadOnlyRoot(val version: Version, val digest: ObjectDigest) : UnchangedSharedKind
Read-only shared objects from the input. We don't really need ObjectDigest for protocol correctness, but it will make it easier to verify untrusted read.
Constructors
| ReadOnlyRoot | constructor(version: Version, digest: ObjectDigest) |
Properties
| Name | Summary |
|---|---|
| digest | val digest: ObjectDigest |
| version | val version: Version |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |