ContractPropertyPermission

Interface
Object that defines a contract permission for use in deployment. See the Deployment chapter of the main guide for more information.
export interface ContractPropertyPermission { 
  readonly contract: { readonly hash?: string; readonly group?: string }; 
  readonly methods: string | readonly string[]; 
} 

Properties

contract
{ readonly hash?: string; readonly group?: string; }
An object indicating the contract to be invoked. It can be the hash of a single contract or the public key of a contract group. If it specifies the hash of a contract then the contract can be invoked. If it specifies the public key of a group, then any contract in this group can be invoked If this object has hash and group as undefined then this will be considered a wildcard ("*") and any contract can be invoked.
methods
string | readonly string[]
An array of methods that are allowed to be called. An empty array means that no methods will be allowed to be called. This can also be a wildcard string: "*", which means that any method can be called.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE