ABIFunction

Interface
Function specification in the ABI of a smart contract.
export interface ABIFunction { 
  readonly name: string; 
  readonly parameters?: readonly ABIParameter[]; 
  readonly returnType: ABIReturn; 
  readonly constant?: boolean; 
  readonly send?: boolean; 
  readonly sendUnsafe?: boolean; 
  readonly receive?: boolean; 
  readonly claim?: boolean; 
  readonly refundAssets?: boolean; 
  readonly completeSend?: boolean; 
} 

Properties

name
string
Name of the function
parameters
readonly ABIParameter[]
Parameters of the function.
returnType
Return type of the function.
constant
boolean
true if the function is constant or read-only.
send
boolean
true if the function is used for sending native assets with a two-phase send.
sendUnsafe
boolean
true if the function is used for sending native assets.
receive
boolean
true if the function is used for receiving native assets.
claim
boolean
true if the function is used for claiming GAS.
refundAssets
boolean
true if the function is used for refunding native assets.
completeSend
boolean
true if the function is used for the second phase of a send.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE