ContractPermission

Interface
Describes which contracts may be invoked and which methods are called.
export interface ContractPermission { 
  readonly contract?: Address | PublicKey; 
  readonly methods?: readonly string[]; 
  readonly [OpaqueTagSymbol0]: unique symbol; 
} 

Properties

contract
Address | PublicKey
Indicates the contract to be invoked. Can be either a contract hash, the public key of a group, or a wildcard.
methods
readonly string[]
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