ContractProperties

Interface
Object with literals for the contract properties to be used in deployment. See the Deployment chapter of the main guide for more information.
export interface ContractProperties { 
  readonly groups: readonly ContractPropertyGroup[]; 
  readonly permissions: readonly ContractPropertyPermission[]; 
  readonly trusts: string | readonly string[]; 
} 

Properties

groups
A group represents a set of mutually trusted contracts. A contract will trust and allow any contract in the same group to invoke it, and the user interface will not give any warnings.
permissions
The permissions field is an array containing a set of ContractPropertyPermission objects. It describes which contracts may be invoked and which methods are called.
trusts
string | readonly string[]
The trusts field is an array containing a set of contract hashes or group public keys. It can also be assigned with a wildcard *. If it is a wildcard *, then it means that this contract trusts any contract. If a contract is trusted, the user interface will not give any warnings when called by the contract.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE