Browser-Lite API documentation

Class: Mesh

The main class for this package. Has methods for receiving order events and sending orders through the 0x Mesh network.

Hierarchy

  • Mesh

Constructors

constructer

+ new Mesh(config: Config): Mesh

Defined in mesh.ts:141arrow-up-right

Instantiates a new Mesh instance.

Parameters:

Name

Type

Description

config

Configuration options for Mesh

Returns: Mesh

An instance of Mesh

Methods

addOrdersAsync

▸ addOrdersAsync(orders: SignedOrder[], pinned: boolean): Promise‹ValidationResults›

Defined in mesh.ts:291arrow-up-right

Validates and adds the given orders to Mesh. If an order is successfully added, Mesh will share it with any peers in the network and start watching it for changes (e.g. filled, canceled, expired). The returned promise will only be rejected if there was an error validating or adding the order; it will not be rejected for any invalid orders (check results.rejected instead).

Parameters:

Name

Type

Default

Description

orders

SignedOrder[]

-

An array of orders to add.

pinned

boolean

true

Whether or not the orders should be pinned. Pinned orders will not be affected by any DDoS prevention or incentive mechanisms and will always stay in storage until they are no longer fillable.

Returns: Promise‹ValidationResults›

Validation results for the given orders, indicating which orders were accepted and which were rejected.

getOrdersAsync

▸ getOrdersAsync(perPage: number): Promise‹GetOrdersResponse›

Defined in mesh.ts:220arrow-up-right

Get all 0x signed orders currently stored in the Mesh node

Parameters:

Name

Type

Default

Description

perPage

number

200

number of signedOrders to fetch per paginated request

Returns: Promise‹GetOrdersResponse›

the snapshotID, snapshotTimestamp and all orders, their hashes and fillableTakerAssetAmounts

getOrdersForPageAsync

▸ getOrdersForPageAsync(page: number, perPage: number, snapshotID?: undefined | string): Promise‹GetOrdersResponse›

Defined in mesh.ts:262arrow-up-right

Get page of 0x signed orders stored on the Mesh node at the specified snapshot

Parameters:

Name

Type

Description

page

number

Page index at which to retrieve orders

perPage

number

Number of signedOrders to fetch per paginated request

snapshotID?

undefined | string

The DB snapshot at which to fetch orders. If omitted, a new snapshot is created

Returns: Promise‹GetOrdersResponse›

the snapshotID, snapshotTimestamp and all orders, their hashes and fillableTakerAssetAmounts

getStatsAsync

▸ getStatsAsync(): Promise‹Stats›

Defined in mesh.ts:203arrow-up-right

Returns various stats about Mesh, including the total number of orders and the number of peers Mesh is connected to.

Returns: Promise‹Stats›

onError

â–¸ onError(handler: function): void

Defined in mesh.ts:161arrow-up-right

Registers a handler which will be called in the event of a critical error. Note that the handler will not be called for non-critical errors. In order to ensure no errors are missed, this should be called before startAsync.

Parameters:

â–ª handler: function

The handler to be called.

â–¸ (err: Error): void

Parameters:

Name

Type

err

Error

Returns: void

onOrderEvents

â–¸ onOrderEvents(handler: function): void

Defined in mesh.ts:176arrow-up-right

Registers a handler which will be called for any incoming order events. Order events are fired whenver an order is added, canceled, expired, or filled. In order to ensure no events are missed, this should be called before startAsync.

Parameters:

â–ª handler: function

The handler to be called.

â–¸ (events: OrderEvent[]): void

Parameters:

Name

Type

events

Returns: void

startAsync

▸ startAsync(): Promise‹void›

Defined in mesh.ts:187arrow-up-right

Starts the Mesh node in the background. Mesh will automatically find peers in the network and begin receiving orders from them.

Returns: Promise‹void›

Enumeration: ContractEventKind

Enumeration members

ERC1155ApprovalForAllEvent

• ERC1155ApprovalForAllEvent: = "ERC1155ApprovalForAllEvent"

Defined in types.ts:444arrow-up-right

ERC1155TransferBatchEvent

• ERC1155TransferBatchEvent: = "ERC1155TransferBatchEvent"

Defined in types.ts:446arrow-up-right

ERC1155TransferSingleEvent

• ERC1155TransferSingleEvent: = "ERC1155TransferSingleEvent"

Defined in types.ts:445arrow-up-right

ERC20ApprovalEvent

• ERC20ApprovalEvent: = "ERC20ApprovalEvent"

Defined in types.ts:440arrow-up-right

ERC20TransferEvent

• ERC20TransferEvent: = "ERC20TransferEvent"

Defined in types.ts:439arrow-up-right

ERC721ApprovalEvent

• ERC721ApprovalEvent: = "ERC721ApprovalEvent"

Defined in types.ts:442arrow-up-right

ERC721ApprovalForAllEvent

• ERC721ApprovalForAllEvent: = "ERC721ApprovalForAllEvent"

Defined in types.ts:443arrow-up-right

ERC721TransferEvent

• ERC721TransferEvent: = "ERC721TransferEvent"

Defined in types.ts:441arrow-up-right

ExchangeCancelEvent

• ExchangeCancelEvent: = "ExchangeCancelEvent"

Defined in types.ts:448arrow-up-right

ExchangeCancelUpToEvent

• ExchangeCancelUpToEvent: = "ExchangeCancelUpToEvent"

Defined in types.ts:449arrow-up-right

ExchangeFillEvent

• ExchangeFillEvent: = "ExchangeFillEvent"

Defined in types.ts:447arrow-up-right

WethDepositEvent

• WethDepositEvent: = "WethDepositEvent"

Defined in types.ts:450arrow-up-right

WethWithdrawalEvent

• WethWithdrawalEvent: = "WethWithdrawalEvent"

Defined in types.ts:451arrow-up-right

Enumeration: OrderEventEndState

Enumeration members

Added

• Added: = "ADDED"

Defined in types.ts:509arrow-up-right

Cancelled

• Cancelled: = "CANCELLED"

Defined in types.ts:512arrow-up-right

Expired

• Expired: = "EXPIRED"

Defined in types.ts:513arrow-up-right

FillabilityIncreased

• FillabilityIncreased: = "FILLABILITY_INCREASED"

Defined in types.ts:516arrow-up-right

Filled

• Filled: = "FILLED"

Defined in types.ts:510arrow-up-right

FullyFilled

• FullyFilled: = "FULLY_FILLED"

Defined in types.ts:511arrow-up-right

Invalid

• Invalid: = "INVALID"

Defined in types.ts:508arrow-up-right

StoppedWatching

• StoppedWatching: = "STOPPED_WATCHING"

Defined in types.ts:517arrow-up-right

Unexpired

• Unexpired: = "UNEXPIRED"

Defined in types.ts:514arrow-up-right

Unfunded

• Unfunded: = "UNFUNDED"

Defined in types.ts:515arrow-up-right

Enumeration: RejectedOrderKind

A set of categories for rejected orders.

Enumeration members

CoordinatorError

• CoordinatorError: = "COORDINATOR_ERROR"

Defined in types.ts:600arrow-up-right

MeshError

• MeshError: = "MESH_ERROR"

Defined in types.ts:598arrow-up-right

MeshValidation

• MeshValidation: = "MESH_VALIDATION"

Defined in types.ts:599arrow-up-right

ZeroExValidation

• ZeroExValidation: = "ZEROEX_VALIDATION"

Defined in types.ts:597arrow-up-right

Enumeration: Verbosity

Enumeration members

Debug

• Debug: = 5

Defined in types.ts:209arrow-up-right

Error

• Error: = 2

Defined in types.ts:206arrow-up-right

Fatal

• Fatal: = 1

Defined in types.ts:205arrow-up-right

Info

• Info: = 4

Defined in types.ts:208arrow-up-right

Panic

• Panic: = 0

Defined in types.ts:204arrow-up-right

Trace

• Trace: = 6

Defined in types.ts:210arrow-up-right

Warn

• Warn: = 3

Defined in types.ts:207arrow-up-right

Interface: AcceptedOrderInfo

Info for any orders that were accepted.

Hierarchy

  • AcceptedOrderInfo

Properties

fillableTakerAssetAmount

• fillableTakerAssetAmount: BigNumber

Defined in types.ts:578arrow-up-right

isNew

• isNew: boolean

Defined in types.ts:579arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:576arrow-up-right

signedOrder

• signedOrder: SignedOrder

Defined in types.ts:577arrow-up-right

Interface: Config

A set of configuration options for Mesh.

Hierarchy

  • Config

Properties

Optional blockPollingIntervalSeconds

• blockPollingIntervalSeconds? : undefined | number

Defined in types.ts:116arrow-up-right

Optional bootstrapList

• bootstrapList? : string[]

Defined in types.ts:109arrow-up-right

Optional customContractAddresses

• customContractAddresses? : ContractAddresses

Defined in types.ts:160arrow-up-right

Optional customOrderFilter

• customOrderFilter? : JsonSchema

Defined in types.ts:185arrow-up-right

Optional enableEthereumRPCRateLimiting

• enableEthereumRPCRateLimiting? : undefined | false | true

Defined in types.ts:133arrow-up-right

ethereumChainID

• ethereumChainID: number

Defined in types.ts:101arrow-up-right

Optional ethereumRPCMaxContentLength

• ethereumRPCMaxContentLength? : undefined | number

Defined in types.ts:125arrow-up-right

Optional ethereumRPCMaxRequestsPer24HrUTC

• ethereumRPCMaxRequestsPer24HrUTC? : undefined | number

Defined in types.ts:138arrow-up-right

Optional ethereumRPCMaxRequestsPerSecond

• ethereumRPCMaxRequestsPerSecond? : undefined | number

Defined in types.ts:144arrow-up-right

Optional ethereumRPCURL

• ethereumRPCURL? : undefined | string

Defined in types.ts:98arrow-up-right

Optional maxOrdersInStorage

• maxOrdersInStorage? : undefined | number

Defined in types.ts:165arrow-up-right

Optional useBootstrapList

• useBootstrapList? : undefined | false | true

Defined in types.ts:104arrow-up-right

Optional verbosity

• verbosity? : Verbosity

Defined in types.ts:95arrow-up-right

Optional web3Provider

• web3Provider? : SupportedProvider

Defined in types.ts:188arrow-up-right

Interface: ContractAddresses

Hierarchy

  • ContractAddresses

Properties

Optional coordinator

• coordinator? : undefined | string

Defined in types.ts:197arrow-up-right

Optional coordinatorRegistry

• coordinatorRegistry? : undefined | string

Defined in types.ts:198arrow-up-right

devUtils

• devUtils: string

Defined in types.ts:193arrow-up-right

erc1155Proxy

• erc1155Proxy: string

Defined in types.ts:196arrow-up-right

erc20Proxy

• erc20Proxy: string

Defined in types.ts:194arrow-up-right

erc721Proxy

• erc721Proxy: string

Defined in types.ts:195arrow-up-right

exchange

• exchange: string

Defined in types.ts:192arrow-up-right

Optional weth9

• weth9? : undefined | string

Defined in types.ts:199arrow-up-right

Optional zrxToken

• zrxToken? : undefined | string

Defined in types.ts:200arrow-up-right

Interface: ContractEvent

Hierarchy

  • ContractEvent

Properties

address

• address: string

Defined in types.ts:490arrow-up-right

blockHash

• blockHash: string

Defined in types.ts:485arrow-up-right

isRemoved

• isRemoved: boolean

Defined in types.ts:489arrow-up-right

kind

• kind: ContractEventKind

Defined in types.ts:491arrow-up-right

logIndex

• logIndex: number

Defined in types.ts:488arrow-up-right

parameters

• parameters: ContractEventParameters

Defined in types.ts:492arrow-up-right

txHash

• txHash: string

Defined in types.ts:486arrow-up-right

txIndex

• txIndex: number

Defined in types.ts:487arrow-up-right

Interface: ERC1155ApprovalForAllEvent

Hierarchy

  • ERC1155ApprovalForAllEvent

Properties

approved

• approved: boolean

Defined in types.ts:360arrow-up-right

operator

• operator: string

Defined in types.ts:359arrow-up-right

owner

• owner: string

Defined in types.ts:358arrow-up-right

Interface: ERC1155TransferBatchEvent

Hierarchy

  • ERC1155TransferBatchEvent

Properties

from

• from: string

Defined in types.ts:343arrow-up-right

ids

• ids: BigNumber[]

Defined in types.ts:345arrow-up-right

operator

• operator: string

Defined in types.ts:342arrow-up-right

to

• to: string

Defined in types.ts:344arrow-up-right

values

• values: BigNumber[]

Defined in types.ts:346arrow-up-right

Interface: ERC1155TransferSingleEvent

Hierarchy

  • ERC1155TransferSingleEvent

Properties

from

• from: string

Defined in types.ts:327arrow-up-right

id

• id: BigNumber

Defined in types.ts:329arrow-up-right

operator

• operator: string

Defined in types.ts:326arrow-up-right

to

• to: string

Defined in types.ts:328arrow-up-right

value

• value: BigNumber

Defined in types.ts:330arrow-up-right

Interface: ERC20ApprovalEvent

Hierarchy

  • ERC20ApprovalEvent

Properties

owner

• owner: string

Defined in types.ts:284arrow-up-right

spender

• spender: string

Defined in types.ts:285arrow-up-right

value

• value: BigNumber

Defined in types.ts:286arrow-up-right

Interface: ERC20TransferEvent

Hierarchy

  • ERC20TransferEvent

Properties

from

• from: string

Defined in types.ts:272arrow-up-right

to

• to: string

Defined in types.ts:273arrow-up-right

value

• value: BigNumber

Defined in types.ts:274arrow-up-right

Interface: ERC721ApprovalEvent

Hierarchy

  • ERC721ApprovalEvent

Properties

approved

• approved: string

Defined in types.ts:309arrow-up-right

owner

• owner: string

Defined in types.ts:308arrow-up-right

tokenId

• tokenId: BigNumber

Defined in types.ts:310arrow-up-right

Interface: ERC721ApprovalForAllEvent

Hierarchy

  • ERC721ApprovalForAllEvent

Properties

approved

• approved: boolean

Defined in types.ts:322arrow-up-right

operator

• operator: string

Defined in types.ts:321arrow-up-right

owner

• owner: string

Defined in types.ts:320arrow-up-right

Interface: ERC721TransferEvent

Hierarchy

  • ERC721TransferEvent

Properties

from

• from: string

Defined in types.ts:296arrow-up-right

to

• to: string

Defined in types.ts:297arrow-up-right

tokenId

• tokenId: BigNumber

Defined in types.ts:298arrow-up-right

Interface: ExchangeCancelEvent

Hierarchy

  • ExchangeCancelEvent

Properties

feeRecipientAddress

• feeRecipientAddress: string

Defined in types.ts:400arrow-up-right

makerAddress

• makerAddress: string

Defined in types.ts:398arrow-up-right

makerAssetData

• makerAssetData: string

Defined in types.ts:402arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:401arrow-up-right

senderAddress

• senderAddress: string

Defined in types.ts:399arrow-up-right

takerAssetData

• takerAssetData: string

Defined in types.ts:403arrow-up-right

Interface: ExchangeCancelUpToEvent

Hierarchy

  • ExchangeCancelUpToEvent

Properties

makerAddress

• makerAddress: string

Defined in types.ts:407arrow-up-right

orderEpoch

• orderEpoch: BigNumber

Defined in types.ts:409arrow-up-right

orderSenderAddress

• orderSenderAddress: string

Defined in types.ts:408arrow-up-right

Interface: ExchangeFillEvent

Hierarchy

  • ExchangeFillEvent

Properties

feeRecipientAddress

• feeRecipientAddress: string

Defined in types.ts:367arrow-up-right

makerAddress

• makerAddress: string

Defined in types.ts:364arrow-up-right

makerAssetData

• makerAssetData: string

Defined in types.ts:374arrow-up-right

makerAssetFilledAmount

• makerAssetFilledAmount: BigNumber

Defined in types.ts:368arrow-up-right

makerFeeAssetData

• makerFeeAssetData: string

Defined in types.ts:376arrow-up-right

makerFeePaid

• makerFeePaid: BigNumber

Defined in types.ts:370arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:373arrow-up-right

protocolFeePaid

• protocolFeePaid: BigNumber

Defined in types.ts:372arrow-up-right

senderAddress

• senderAddress: string

Defined in types.ts:366arrow-up-right

takerAddress

• takerAddress: string

Defined in types.ts:365arrow-up-right

takerAssetData

• takerAssetData: string

Defined in types.ts:375arrow-up-right

takerAssetFilledAmount

• takerAssetFilledAmount: BigNumber

Defined in types.ts:369arrow-up-right

takerFeeAssetData

• takerFeeAssetData: string

Defined in types.ts:377arrow-up-right

takerFeePaid

• takerFeePaid: BigNumber

Defined in types.ts:371arrow-up-right

Interface: GetOrdersResponse

Hierarchy

  • GetOrdersResponse

Properties

ordersInfos

• ordersInfos: OrderInfo[]

Defined in types.ts:18arrow-up-right

snapshotID

• snapshotID: string

Defined in types.ts:16arrow-up-right

snapshotTimestamp

• snapshotTimestamp: number

Defined in types.ts:17arrow-up-right

Interface: JsonSchema

An interface for JSON schema types, which are used for custom order filters.

Hierarchy

  • JsonSchema

Properties

Optional $ref

• $ref? : undefined | string

Defined in types.ts:39arrow-up-right

Optional $schema

• $schema? : undefined | string

Defined in types.ts:38arrow-up-right

Optional additionalItems

• additionalItems? : boolean | JsonSchema

Defined in types.ts:50arrow-up-right

Optional additionalProperties

• additionalProperties? : boolean | JsonSchema

Defined in types.ts:58arrow-up-right

Optional allOf

• allOf? : JsonSchema[]

Defined in types.ts:80arrow-up-right

Optional anyOf

• anyOf? : JsonSchema[]

Defined in types.ts:81arrow-up-right

Optional const

• const? : any

Defined in types.ts:77arrow-up-right

Optional definitions

• definitions? : undefined | object

Defined in types.ts:59arrow-up-right

Optional dependencies

• dependencies? : undefined | object

Defined in types.ts:68arrow-up-right

Optional description

• description? : undefined | string

Defined in types.ts:41arrow-up-right

Optional enum

• enum? : any[]

Defined in types.ts:71arrow-up-right

Optional exclusiveMaximum

• exclusiveMaximum? : undefined | false | true

Defined in types.ts:44arrow-up-right

Optional exclusiveMinimum

• exclusiveMinimum? : undefined | false | true

Defined in types.ts:46arrow-up-right

Optional format

• format? : undefined | string

Defined in types.ts:79arrow-up-right

Optional id

• id? : undefined | string

Defined in types.ts:37arrow-up-right

Optional items

• items? : JsonSchema | JsonSchema[]

Defined in types.ts:51arrow-up-right

Optional maxItems

• maxItems? : undefined | number

Defined in types.ts:52arrow-up-right

Optional maxLength

• maxLength? : undefined | number

Defined in types.ts:47arrow-up-right

Optional maxProperties

• maxProperties? : undefined | number

Defined in types.ts:55arrow-up-right

Optional maximum

• maximum? : undefined | number

Defined in types.ts:43arrow-up-right

Optional minItems

• minItems? : undefined | number

Defined in types.ts:53arrow-up-right

Optional minLength

• minLength? : undefined | number

Defined in types.ts:48arrow-up-right

Optional minProperties

• minProperties? : undefined | number

Defined in types.ts:56arrow-up-right

Optional minimum

• minimum? : undefined | number

Defined in types.ts:45arrow-up-right

Optional multipleOf

• multipleOf? : undefined | number

Defined in types.ts:42arrow-up-right

Optional not

• not? : JsonSchema

Defined in types.ts:83arrow-up-right

Optional oneOf

• oneOf? : JsonSchema[]

Defined in types.ts:82arrow-up-right

Optional pattern

• pattern? : string | RegExp

Defined in types.ts:49arrow-up-right

Optional patternProperties

• patternProperties? : undefined | object

Defined in types.ts:65arrow-up-right

Optional properties

• properties? : undefined | object

Defined in types.ts:62arrow-up-right

Optional required

• required? : string[]

Defined in types.ts:57arrow-up-right

Optional title

• title? : undefined | string

Defined in types.ts:40arrow-up-right

Optional type

• type? : string | string[]

Defined in types.ts:78arrow-up-right

Optional uniqueItems

• uniqueItems? : undefined | false | true

Defined in types.ts:54arrow-up-right

Interface: LatestBlock

Hierarchy

  • LatestBlock

Properties

hash

• hash: string

Defined in types.ts:613arrow-up-right

number

• number: number

Defined in types.ts:612arrow-up-right

Interface: OrderEvent

Order events are fired by Mesh whenever an order is added, canceled, expired, or filled.

Hierarchy

  • OrderEvent

Properties

contractEvents

• contractEvents: ContractEvent[]

Defined in types.ts:539arrow-up-right

endState

• endState: OrderEventEndState

Defined in types.ts:537arrow-up-right

fillableTakerAssetAmount

• fillableTakerAssetAmount: BigNumber

Defined in types.ts:538arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:535arrow-up-right

signedOrder

• signedOrder: SignedOrder

Defined in types.ts:536arrow-up-right

timestampMs

• timestampMs: number

Defined in types.ts:534arrow-up-right

Interface: OrderInfo

Hierarchy

  • OrderInfo

Properties

fillableTakerAssetAmount

• fillableTakerAssetAmount: BigNumber

Defined in types.ts:30arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:28arrow-up-right

signedOrder

• signedOrder: SignedOrder

Defined in types.ts:29arrow-up-right

Interface: RejectedOrderInfo

Info for any orders that were rejected, including the reason they were rejected.

Hierarchy

  • RejectedOrderInfo

Properties

kind

• kind: RejectedOrderKind

Defined in types.ts:589arrow-up-right

orderHash

• orderHash: string

Defined in types.ts:587arrow-up-right

signedOrder

• signedOrder: SignedOrder

Defined in types.ts:588arrow-up-right

status

• status: RejectedOrderStatus

Defined in types.ts:590arrow-up-right

Interface: RejectedOrderStatus

Provides more information about why an order was rejected.

Hierarchy

  • RejectedOrderStatus

Properties

code

• code: string

Defined in types.ts:607arrow-up-right

message

• message: string

Defined in types.ts:608arrow-up-right

Interface: Stats

Hierarchy

  • Stats

Properties

ethRPCRateLimitExpiredRequests

• ethRPCRateLimitExpiredRequests: number

Defined in types.ts:649arrow-up-right

ethRPCRequestsSentInCurrentUTCDay

• ethRPCRequestsSentInCurrentUTCDay: number

Defined in types.ts:648arrow-up-right

ethereumChainID

• ethereumChainID: number

Defined in types.ts:640arrow-up-right

latestBlock

• latestBlock: LatestBlock

Defined in types.ts:641arrow-up-right

maxExpirationTime

• maxExpirationTime: BigNumber

Defined in types.ts:646arrow-up-right

numOrders

• numOrders: number

Defined in types.ts:643arrow-up-right

numOrdersIncludingRemoved

• numOrdersIncludingRemoved: number

Defined in types.ts:644arrow-up-right

numPeers

• numPeers: number

Defined in types.ts:642arrow-up-right

numPinnedOrders

• numPinnedOrders: number

Defined in types.ts:645arrow-up-right

peerID

• peerID: string

Defined in types.ts:639arrow-up-right

pubSubTopic

• pubSubTopic: string

Defined in types.ts:636arrow-up-right

rendezvous

• rendezvous: string

Defined in types.ts:637arrow-up-right

secondaryRendezvous

• secondaryRendezvous: string[]

Defined in types.ts:638arrow-up-right

startOfCurrentUTCDay

• startOfCurrentUTCDay: Date

Defined in types.ts:647arrow-up-right

version

• version: string

Defined in types.ts:635arrow-up-right

Interface: ValidationResults

Indicates which orders where accepted, which were rejected, and why.

Hierarchy

  • ValidationResults

Properties

accepted

• accepted: AcceptedOrderInfo[]

Defined in types.ts:568arrow-up-right

rejected

• rejected: RejectedOrderInfo[]

Defined in types.ts:569arrow-up-right

Interface: WethDepositEvent

Hierarchy

  • WethDepositEvent

Properties

owner

• owner: string

Defined in types.ts:429arrow-up-right

value

• value: BigNumber

Defined in types.ts:430arrow-up-right

Interface: WethWithdrawalEvent

Hierarchy

  • WethWithdrawalEvent

Properties

owner

• owner: string

Defined in types.ts:419arrow-up-right

value

• value: BigNumber

Defined in types.ts:420arrow-up-right

Functions

loadMeshStreamingForURLAsync

▸ loadMeshStreamingWithURLAsync(url: string): Promise‹void›

Defined in index.ts:7arrow-up-right

Loads the Wasm module that is provided by fetching a url.

Parameters:

Name

Type

Description

url

string

The URL to query for the Wasm binary

loadMeshStreamingAsync

▸ loadMeshStreamingAsync(response: Response | Promise<Response>): Promise‹void›

Defined in index.ts:15arrow-up-right

Loads the Wasm module that is provided by a response.

Parameters:

Name

Type

Description

response

`Response

Promise`

The Wasm response that supplies the Wasm binary

Last updated

Was this helpful?