ContractPermission

Interface
Describes which contracts may be invoked and which methods are called.
export interface ContractPermission { 
  readonly contract: ContractPermissionDescriptor; 
  readonly methods: WildcardContainer<string>; 
} 

Properties

contract
ContractPermissionDescriptor
Indicates the contract to be invoked. Can be either a contract hash, the public key of a group, or a wildcard.
methods
An array containing a set of methods to be called. If it is a wildcard then any method can be called. If a contract invokes a contract or method that is not declared in the manifest at runtime, the invocation will fail.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE