@contextdao/context v2.0.0
Context
Context, built on Arweave, aims to be the biggest repository of Public Data. Context is a UNS (Universal Name Service), and has three main components:
- Smartpod: Smart contracts on arweave to store and evolve data.
- SchemaDAO: A framework to create and evolve standards.
- Universal Registry: Links data (Smartpods) with Schemas
Because Data needs context
Context is the next frontier in data interoperability. Data needs context to be understood and usable. We already have global databases of knowledge like Wikipedia, but we still lack a common language for this data to be used and integrated into any application.
Take NFTs in the Metaverse. An NFT for a car can be minted in a web3 game, but unless we have a known shared schema, that Car cannot be moved into a different game or metaverse. We need coordination of standards if we’re going to have data portability. We need a way to name things in a common language. And when we say standards, we mean simple open and collaborative schemas not controlled by any organization. We need cooperation.
Standards should be public goods. The only way we can have standards today is by going to international standardization bodies, where any standard takes months to years to be built. What if standards were created and evolved by the builders and users on short cycles. We need efficiency.
Basic Usage
To start playing on localhost, create a project install the SDK and start a local arweave node. You can also work with testnet and mainnet.
using npm:
npm i @contextdao/context --save
using Yarn:
yarn add @contextdao/context
and finally.. if you want to play on localhost.. :
npx arlocal
Ask for a resource (DataId)
import {
connectWallet,
initContext,
openWallet,
} from '@contextdao/context'
// Create a Context instance
const context = await initContext({ network: 'localhost' })
// Connect a Wallet (path to the wallet in your drive).
// remember to add funds to the wallet => https://localhost:1984/mint/<addr>/100000000
await connectWallet(context, openWallet(wallet))
Now the setup is complete and some Schemas have been added: Human, Organization... We recommend you to use also de CLI to interact with your installation.
💬 OUR RECOMENDATION:
- Clone this repository into a specific folder
mk context
git clone git@github.com:contextDAO/context.git context
- List the tests folder and have a look to the sdk*.test.ts files. You´re going to find all the necessary examples to able to integrate Context in your code.
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago