LinkedSmartContract

Const
export interface LinkedSmartContract { 
  readonly for: <T extends SmartContract>() => T extends IsValidSmartContract<T> ? T : never; 
  readonly [OpaqueTagSymbol0]: unique symbol; 
} 

Properties

for
<T extends SmartContract>() => T extends IsValidSmartContract<T> ? T : never
Returns the singleton instance of the statically linked contract T. `T` is checked for validity and LinkedSmartContract.for` will report an error during compilation if the interface is invalid. See the Calling Smart Contracts chapter of the main guide for more information.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE