Options
All
  • Public
  • Public/Protected
  • All
Menu

@stove-labs/wxtz-sdk

Index

Type aliases

ContractDeployment

ContractDeployment: { address?: address; checksum: string }

Type declaration

  • Optional address?: address
  • checksum: string

CoreContractStorage

CoreContractStorage: { arbitraryValues: { get: any }; lambdas: { get: any }; ovens: { id: BigNumber; get: any } }

Models: WXTZ Core, Oven, Token

Type declaration

Deployment

Deployment: { core: ContractDeployment; lambdaCreateOven: ContractDeployment; oven: ContractDeployment; token: ContractDeployment }

Type declaration

Deployments

Deployments: { delphinet: Deployment; localhost: Deployment; mainnet: Deployment }

Type declaration

OvenContractStorage

OvenContractStorage: address

TezosBalance

TezosBalance: BigNumber

TokenContractStorage

TokenContractStorage: { token: { ledger: { get: any }; totalSupply: WrappedXTZBalance } }

Type declaration

WrappedXTZBalance

WrappedXTZBalance: TezosBalance

address

address: string

arbitraryValue

arbitraryValue: string | number

arbitraryValueKey

arbitraryValueKey: string

blockHeight

blockHeight: number

bytes

bytes: string

checksum

checksum: string

contractDetails

contractDetails: { lastAction: string; originatedAtDate: string; originatedAtHeight: blockHeight }
originatedatdate

Time and date of oven creation.

originatedatheight

Block height of oven creation.

lastaction

Time and date of last oven action.

Type declaration

  • lastAction: string
  • originatedAtDate: string
  • originatedAtHeight: blockHeight

contractInfoFromRpc

contractInfoFromRpc: { balance: number; script: { code: micheline; storage: any } }

Services

Type declaration

coreContractStorage

coreContractStorage: { u: string }

Type declaration

  • u: string

delegate

delegate: keyHash | null

keyHash

keyHash: string

lambdaName

lambdaName: string

lambdaParameter

lambdaParameter: bytes

micheline

micheline: string

michelsonType

michelsonType: string

mutez

mutez: number

ovenBcdResponse

ovenBcdResponse: { data: { key_string: address; level: blockHeight; timestamp: Date } }

Type declaration

ovenOwner

ovenOwner: address

packedArbitraryValue

packedArbitraryValue: bytes

packedLambda

packedLambda: bytes

tokenAddress

tokenAddress: address

wXTZConfig

wXTZConfig: { indexerUrl: string; network: NetworkType; tezos: TezosToolkit }

Type declaration

  • indexerUrl: string
  • network: NetworkType
  • tezos: TezosToolkit

Variables

Const defaultBalance

defaultBalance: 0 = 0

Functions

checkIntegrity

  • checkIntegrity(checksum: string, contractCode: string): Promise<boolean>
  • Parameters

    • checksum: string
    • contractCode: string

    Returns Promise<boolean>

pack

  • pack(code: string, type: string, format: TezosParameterFormat): string
  • Parameters

    • code: string
    • type: string
    • format: TezosParameterFormat

    Returns string

packMichelson

  • packMichelson(code: string, type: string): string

sha256

  • sha256(message: string): Promise<string>

unpack

Generated using TypeDoc