TransactionDenyRulesUpdate
TransactionDenyRulesUpdate
struct TransactionDenyRulesUpdate
Update of the on-chain transaction deny rules.
Carries an add/remove delta for each deny list plus the absolute switch states. The added and removed sets of a list are disjoint by producer contract; converting into the underlying set-typed Rust representation sorts and deduplicates the lists.
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
init(epoch:round:addedAddresses:removedAddresses:addedObjects:removedObjects:addedPackages:removedPackages:packagePublishDisabled:packageUpgradeDisabled:sharedObjectDisabled:userTransactionDisabled:receivingObjectsDisabled:moveAuthenticatorDisabled:denyRulesObjInitialSharedVersion:)
init(epoch: UInt64, round: UInt64, addedAddresses: [Address], removedAddresses: [Address], addedObjects: [ObjectId], removedObjects: [ObjectId], addedPackages: [ObjectId], removedPackages: [ObjectId], packagePublishDisabled: Bool, packageUpgradeDisabled: Bool, sharedObjectDisabled: Bool, userTransactionDisabled: Bool, receivingObjectsDisabled: Bool, moveAuthenticatorDisabled: Bool, denyRulesObjInitialSharedVersion: Version)
addedAddresses
var addedAddresses: [Address]
Addresses added to the sender-or-sponsor deny list.
addedObjects
var addedObjects: [ObjectId]
Objects added to the input-or-receiving deny list.
addedPackages
var addedPackages: [ObjectId]
Packages added to the dependency deny list.
denyRulesObjInitialSharedVersion
var denyRulesObjInitialSharedVersion: Version
The initial version of the deny-rules object that it was shared at
epoch
var epoch: UInt64
Epoch of the deny-rules update transaction
moveAuthenticatorDisabled
var moveAuthenticatorDisabled: Bool
Denies transactions signed with a Move authenticator.
packagePublishDisabled
var packagePublishDisabled: Bool
Denies all package publishing.
packageUpgradeDisabled
var packageUpgradeDisabled: Bool
Denies all package upgrades.
receivingObjectsDisabled
var receivingObjectsDisabled: Bool
Denies transactions that contain receiving objects.
removedAddresses
var removedAddresses: [Address]
Addresses removed from the sender-or-sponsor deny list.
removedObjects
var removedObjects: [ObjectId]
Objects removed from the input-or-receiving deny list.
removedPackages
var removedPackages: [ObjectId]
Packages removed from the dependency deny list.
round
var round: UInt64
Consensus round of the update
sharedObjectDisabled
var sharedObjectDisabled: Bool
Denies transactions that use shared objects as inputs.
userTransactionDisabled
var userTransactionDisabled: Bool
Denies all user transactions (kill switch).
toBcs()
func toBcs() throws -> Data
Convert this type to BCS encoded bytes.
toDisplayString()
func toDisplayString() -> String
Render this type as human-readable text.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
toJson()
func toJson() throws -> String
Convert this type to a JSON encoded string.