DenyRuleSet
type DenyRuleSet
A complete set of transaction deny rules.
The deny lists are exposed as sequences over the FFI; converting into the underlying set-typed Rust representation sorts and deduplicates them, so the BCS encoding is canonical regardless of the order supplied here.
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 DenyRuleSet struct {
// Addresses denied as transaction sender or gas sponsor. A denied address can still receive
// objects.
DeniedAddresses []*Address
// Objects denied as transaction inputs or receiving objects.
DeniedObjects []*ObjectId
// Packages denied as a (transitive) dependency of any command; upgrading a denied package is
// denied too.
DeniedPackages []*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
}
func DenyRuleSetFromBcs
func DenyRuleSetFromBcs(bcs []byte) (DenyRuleSet, error)
Create this type from BCS encoded bytes.
func DenyRuleSetFromJson
func DenyRuleSetFromJson(json string) (DenyRuleSet, error)
Create this type from a JSON encoded string.
func (*DenyRuleSet) Destroy
func (r *DenyRuleSet) Destroy()
func (DenyRuleSet) ToBcs
func (_self DenyRuleSet) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (DenyRuleSet) ToDisplayString
func (_self DenyRuleSet) 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 (DenyRuleSet) ToJson
func (_self DenyRuleSet) ToJson() (string, error)
Convert this type to a JSON encoded string.