ForwardValue

Interface
An opaque type that represents a method parameter which is typically forwarded as an argument to another smart contract. See the Forward Values chapter of the advanced guide for more information.
export interface ForwardValue { 
  readonly asString: () => string; 
  readonly asStringNullable: () => string | undefined; 
  readonly asNumber: () => number; 
  readonly asNumberNullable: () => number | undefined; 
  readonly asBoolean: () => boolean; 
  readonly asBuffer: () => Buffer; 
  readonly asBufferNullable: () => Buffer | undefined; 
  readonly asAddress: () => Address; 
  readonly asAddressNullable: () => Address | undefined; 
  readonly asHash256: () => Hash256; 
  readonly asHash256Nullable: () => Hash256 | undefined; 
  readonly asPublicKey: () => PublicKey; 
  readonly asPublicKeyNullable: () => PublicKey | undefined; 
  readonly asArray: () => Array<ForwardValue>; 
  readonly asArrayNullable: () => Array<ForwardValue> | undefined; 
  readonly asMap: () => Map<ForwardValue, ForwardValue>; 
  readonly asMapNullable: () => Map<ForwardValue, ForwardValue> | undefined; 
  readonly [OpaqueTagSymbol0]: unique symbol; 
} 

Methods

asString

() => string 

asStringNullable

() => string | undefined 

asNumber

() => number 

asNumberNullable

() => number | undefined 

asBoolean

() => boolean 

asBuffer

() => Buffer 

asBufferNullable

() => Buffer | undefined 

asAddress

() => Address 

asAddressNullable

() => Address | undefined 

asHash256

() => Hash256 

asHash256Nullable

() => Hash256 | undefined 

asPublicKey

() => PublicKey 

asPublicKeyNullable

() => PublicKey | undefined 

asArray

() => Array<ForwardValue> 

asArrayNullable

() => Array<ForwardValue> | undefined 

asMap

asMapNullable

() => Map<ForwardValue, ForwardValue> | undefined 
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE