tupelo-wasm-sdk

Home > tupelo-wasm-sdk > Community

Community namespace

Signature:

export declare namespace Community 

Functions

Function Description
freshLocalTestCommunity(repo) freshLocalTestCommunity returns a new community that points at a locally running (usually through Docker) Tupelo, using default configs.
getDefault(repo) getDefault returns the default Tupelo commuity. This is currently the Tupelo testnet. It creates a libp2p node and connects to the testnet, establishes the community connection. This method optionally takes a Repo. If you do not pass in a Repo, then it will create a default repo. Details on the default can be found:
setDefault(community) setDefault allows you to set a community you control so that when code calls Community.getDefault() it returns this community. This is useful in situations like local testing, where your test harness can point the code at a local community.