mesh-browser/

directory
v0.0.0-...-613d1fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2021 License: Apache-2.0

README

@0x/mesh-browser

This package provides an easy way to run a browser-based Mesh node. Specifically, it provides Typescript and Javascript bindings that can be used to interact with a Mesh node that is running in the browser and handles the process of loading the mesh node on the webpage. Because of the fact that this package handles Wasm loading, it is considerably heavier-weight and may take longer to load than the @0x/mesh-browser-lite package.

Installation

yarn add @0x/mesh-browser

If your project is in TypeScript, add the following to your tsconfig.json:

"compilerOptions": {
    "typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}

Contributing

If you would like to contribute bug fixes or new features to the client, checkout the 0xproject/0x-mesh project and use the below commands to install the dependencies, build, lint and test your changes.

Install dependencies

yarn install

Build

yarn build

Clean

yarn clean

Lint

yarn lint

Directories

Path Synopsis
go
browserutil
NOTE(jalextowle): This file contains utilities used by browser based mesh nodes that need to be tested and would cause cyclic dependencies if they were moved to jsutil.
NOTE(jalextowle): This file contains utilities used by browser based mesh nodes that need to be tested and would cause cyclic dependencies if they were moved to jsutil.
jsutil
Package jsutil contains various utility functions for working with JavaScript and WebAssembly
Package jsutil contains various utility functions for working with JavaScript and WebAssembly
providerwrapper
Package providerwrapper wraps a web3 provider in order to implement the RPCClient interface.
Package providerwrapper wraps a web3 provider in order to implement the RPCClient interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL