TransactionDenyRulesUpdate
type 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 for this type is defined by the following ABNF:
```text transaction-deny-rules-update = u64 ; epoch u64 ; round (vector address) ; added addresses (vector address) ; removed addresses (vector object-id) ; added objects (vector object-id) ; removed objects (vector object-id) ; added packages (vector object-id) ; removed packages bool ; package publish disabled bool ; package upgrade disabled bool ; shared object disabled bool ; user transaction disabled bool ; receiving objects disabled bool ; move authenticator disabled version ; initial shared version ```
type TransactionDenyRulesUpdate struct {
// Epoch of the deny-rules update transaction
Epoch uint64
// Consensus round of the update
Round uint64
// Addresses added to the sender-or-sponsor deny list.
AddedAddresses []*Address
// Addresses removed from the sender-or-sponsor deny list.
RemovedAddresses []*Address
// Objects added to the input-or-receiving deny list.
AddedObjects []*ObjectId
// Objects removed from the input-or-receiving deny list.
RemovedObjects []*ObjectId
// Packages added to the dependency deny list.
AddedPackages []*ObjectId
// Packages removed from the dependency deny list.
RemovedPackages []*ObjectId
// Denies all package publishing.
PackagePublishDisabled bool
// Denies all package upgrades.
PackageUpgradeDisabled bool
// Denies transactions that use shared objects as inputs.
SharedObjectDisabled bool
// Denies all user transactions (kill switch).
UserTransactionDisabled bool
// Denies transactions that contain receiving objects.
ReceivingObjectsDisabled bool
// Denies transactions signed with a Move authenticator.
MoveAuthenticatorDisabled bool
// The initial version of the deny-rules object that it was shared at
DenyRulesObjInitialSharedVersion *Version
}
func TransactionDenyRulesUpdateFromBcs
func TransactionDenyRulesUpdateFromBcs(bcs []byte) (TransactionDenyRulesUpdate, error)
Create this type from BCS encoded bytes.
func TransactionDenyRulesUpdateFromJson
func TransactionDenyRulesUpdateFromJson(json string) (TransactionDenyRulesUpdate, error)
Create this type from JSON encoded string.
func (*TransactionDenyRulesUpdate) Destroy
func (r *TransactionDenyRulesUpdate) Destroy()