ContractMethodDescriptorClient

Interface
Method specification in the ContractABI of a smart contract generated by the NEO•ONE compiler and for use in Client APIs. ContractMethodDescriptClient provides extra information for use in the NEO•ONE Client.
export interface ContractMethodDescriptorClient { 
  readonly name: string; 
  readonly parameters?: readonly ABIParameter[]; // TODO: should be be optional or no? 
  readonly returnType: ABIReturn; // TODO: should this be ContractParameterType? 
  readonly offset: number; 
  readonly safe: boolean; 
  readonly constant?: boolean; 
  readonly receive?: boolean; 
} 

Properties

name
string
Name of the method.
parameters
readonly ABIParameter[]
Parameters of the method.
returnType
Return type of the method.
offset
number
Used to set the instruction pointer before executing the method.
safe
boolean
true if the function is "safe" to be called by any other contract
constant
boolean
true if the function is constant or read-only.
receive
boolean
true if the function is marked for receiving tokens.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE