requirement
constrequirement:object
Defined in: ootle/src/helpers/access-rule-builder.ts:22
The conditions an access rule can require. Combine them with AccessRuleBuilder.
Type Declaration
Section titled “Type Declaration”callerComponent
Section titled “callerComponent”
readonlycallerComponent: (component) =>RuleRequirement
Called by component.
Parameters
Section titled “Parameters”component
Section titled “component”string
Returns
Section titled “Returns”RuleRequirement
directCallerTemplate
Section titled “directCallerTemplate”
readonlydirectCallerTemplate: (template) =>RuleRequirement
Called directly by a component or function of template.
Parameters
Section titled “Parameters”template
Section titled “template”string
Returns
Section titled “Returns”RuleRequirement
nonFungible
Section titled “nonFungible”
readonlynonFungible: (address) =>RuleRequirement
A proof of one non-fungible token.
Parameters
Section titled “Parameters”address
Section titled “address”NonFungibleAddressContents
Returns
Section titled “Returns”RuleRequirement
publicKey
Section titled “publicKey”
readonlypublicKey: (publicKey) =>RuleRequirement
A transaction signed by publicKey: the Rust public_key(pk).
Parameters
Section titled “Parameters”publicKey
Section titled “publicKey”string | Uint8Array<ArrayBufferLike>
Returns
Section titled “Returns”RuleRequirement
resource
Section titled “resource”
readonlyresource: (resource) =>RuleRequirement
A proof of any amount of resource.
Parameters
Section titled “Parameters”resource
Section titled “resource”string
Returns
Section titled “Returns”RuleRequirement
scopedToComponent
Section titled “scopedToComponent”
readonlyscopedToComponent: (component) =>RuleRequirement
Running inside component.
Parameters
Section titled “Parameters”component
Section titled “component”string
Returns
Section titled “Returns”RuleRequirement
scopedToTemplate
Section titled “scopedToTemplate”
readonlyscopedToTemplate: (template) =>RuleRequirement
Running inside template.
Parameters
Section titled “Parameters”template
Section titled “template”string
Returns
Section titled “Returns”RuleRequirement