Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @taquito/tzip16

Index

Type aliases

BigMapId

BigMapId: { int: string }

Type declaration

  • int: string

ErrorsTzip16

ErrorsTzip16: ({ error: MichelineTzip16Expression; expansion: MichelineTzip16Expression; languages?: string[] } | { languages?: string[]; view: string })[]

MetadataContext

MetadataContext: Context & { metadataProvider: MetadataProviderInterface }

MichelineTzip16Expression

MichelineTzip16Expression: MichelsonV1Expression | MichelineTzip16Expression[] | { annots?: string[]; args?: MichelineTzip16Expression[]; prim: Unistring }

MichelsonStorageViewType

MichelsonStorageViewType: { annotations?: { description: string; name: string }[]; code: MichelineTzip16Expression; parameter?: MichelineTzip16Expression; returnType: MichelineTzip16Expression; version?: string }

Type declaration

RestApiQueryType

RestApiQueryType: { baseUri?: string; method?: "GET" | "POST" | "PUT"; path: string; specificationUri: string }

Type declaration

  • Optional baseUri?: string
  • Optional method?: "GET" | "POST" | "PUT"
  • path: string
  • specificationUri: string

ViewImplementation

ViewImplementation: { michelsonStorageView: MichelsonStorageViewType } | { restApiQuery: RestApiQueryType }

Views

Variables

Const DEFAULT_HANDLERS

DEFAULT_HANDLERS: Map<string, Handler> = ...

Const VERSION

VERSION: { commitHash: string; version: string } = ...

Type declaration

  • commitHash: string
  • version: string

Functions

bytes2Char

  • bytes2Char(hex: string): string
  • description

    Convert bytes to a string

    Parameters

    • hex: string

    Returns string

calculateSHA256Hash

  • calculateSHA256Hash(preimage: string): string

char2Bytes

  • char2Bytes(str: string): string
  • description

    Convert a string to bytes

    Parameters

    • str: string

      String to convert

    Returns string

tzip16

  • tzip16<T>(abs: T, context: Context): T & { tzip16: any }
  • Type parameters

    • T: ContractAbstraction<ContractProvider | Wallet, DefaultMethods<ContractProvider | Wallet>, DefaultMethodsObject<ContractProvider | Wallet>, DefaultViews, DefaultContractViews, unknown, T>

    Parameters

    • abs: T
    • context: Context

    Returns T & { tzip16: any }

Generated using TypeDoc