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 ContractGroup[]; 
  readonly permissions: readonly ContractPermission[]; 
  readonly trusts: string | readonly string[]; 
} 

Properties

groups
readonly ContractGroup[]
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
readonly ContractPermission[]
The permissions field is an array containing a set of ContractPermission 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 ChatTwitter
COPYRIGHT © 2021 NEO•ONE