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 of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).
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 a JSON encoded string.
func (*TransactionDenyRulesUpdate) Destroy
func (r *TransactionDenyRulesUpdate) Destroy()
func (TransactionDenyRulesUpdate) ToBcs
func (_self TransactionDenyRulesUpdate) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (TransactionDenyRulesUpdate) ToDisplayString
func (_self TransactionDenyRulesUpdate) 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.
func (TransactionDenyRulesUpdate) ToJson
func (_self TransactionDenyRulesUpdate) ToJson() (string, error)
Convert this type to a JSON encoded string.