SmartContract

Class
Marks a class as a SmartContract.
export class SmartContract 

Properties

properties
Properties used for deployment of the SmartContract See the Deployment chapter of the main guide for more information.
deployed
true
Property primarily used internally to validate that the smart contract is deployed only once.

Methods

destroy

Permanently deletes the contract. See the Deployment chapter of the main guide for more information.
() => void 

upgrade

Used internally by client APIs to upgrade the contract. Control whether an invocation is allowed to upgrade the contract by overriding approveUpgrade. See the Deployment chapter of the main guide for more information.
(script: Buffer, manifest: Buffer) => boolean 
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE