open-index/open-npm huggingface dataset:
npm package: @polyaztec/blockchain
Description: This package is responsible for smart contract and other blockchain related work.
Latest version: 2.2.3

# Blockchain

This package is responsible for smart contract and other blockchain related work.

## Getting started

```
./bootstrap.sh
```

## Testing

To test and incorporate changes to circuits:  
`yarn test`

To save time after only changing a contract:  
`yarn compile && NODE_NO_WARNINGS=1 yarn jest`

To save time after only changing a test file:  
`yarn jest --runInBand`  
(`runInBand` gives more debugging info).

To test a specific file:  
`yarn jest contracts/rollup_processor/loan_defi_bridge.test.ts --runInBand`  
(notice the path is relative to `./src` due to the `"jest"` config in the `package.json`).
npm package: @polyaztec/sdk
Description: Aztec's SDK is the gateway for developers to access the Aztec network, and benefit from low gas fees and privacy on Ethereum. The SDK connects to our ZkRollup service and can be integrated with one line of code.
Author: AZTEC
Latest version: 2.5.6

# Aztec SDK

Aztec's SDK is the gateway for developers to access the Aztec network, and benefit from low gas fees and privacy on Ethereum. The SDK connects to our ZkRollup service and can be integrated with one line of code.

The SDK is designed to abstract away the complexities of Zero-knowledge proofs from the developer and end users. It provides a simple API for creating accounts, depositing and withdrawing tokens anonymously. The core transfer inside the SDK is private by default.

Under the hood the SDK keeps track of a users private balances across multiples assets and provides easy to use helper methods to the developer to create seamless private UI's.

## Installation

To install the SDK from NPM use the following command.

```
yarn add @aztec/sdk
```

## Docs

Please see the documentation site [here](https://github.com/AztecProtocol/docs/blob/aztec-connect/docs/sdk/overview.md).
npm package: @polybase/client
Description: Client (browser/node) for Polybase
Latest version: 0.6.6

# [Polybase](https://polybase.xyz) Client (Browser/Node)

A client to connect to the [Polybase decentralized database](https://polybase.xyz).


## Install Polybase

```bash
npm install @polybase/client
```
```bash
yarn add @polybase/client
```

## Initialize the SDK

```typescript
import Polybase from '@polybase/client'

const db = new Polybase({
  ...config
})
```

## Get a single record

You can read data once, by calling the `.record(id: string).get()` method on a collection.

```ts
const colRef = db.collection("org/places")
const record = await colRef.record("id").get()

const { id, ...data } = record
```


## Write data 

```ts
const colRef = db.collection("org/places")
const record = await colRef.record("london").call("setName", ["Name"])
```


# Tests

To run E2E tests, ensure that [Polybase](https://github.com/polybase/polybase) is running, and then run:

```
yarn test:e2e
```
npm package: @polybase/lezer-parser-javascript
Description: lezer-based JavaScript grammar (with polylang)
Latest version: 1.4.1

# @polylang/lezer-parser-javascript

This has been adopted for use with [Polylang](https://github.com/polybase/polylang).

This is a JavaScript grammar for the
[lezer](https://lezer.codemirror.net/) parser system.

It parses ES2020, and supports a `"ts"`
[dialect](https://lezer.codemirror.net/docs/guide/#dialects) to parse
TypeScript, and a `"jsx"` dialect to parse JSX.

The `top` option can be set to `"SingleExpression"` or
`"SingleClassItem"` to parse an expression or class item instead of a
full program.

The code is licensed under an MIT license.
npm package: @polybase/react
Description: React wrapper for @polybase/client
Latest version: 0.6.6

# [Polybase](https://polybase.xyz) React

React wrapper for @polybase/client.


## Install Polybase

```bash
npm install @polybase/react
```
```bash
yarn add @polybase/react
```


## Add Polybase Provider

```tsx
import * as React from 'react'
import { PolybaseProvider } from '@polybase/react'
import { Polybase } from '@polybase/client/web'

const polybase = new Polybase()

export const App = () => {
  return (
    <PolybaseProvider polybase={polybase}>
      {/* ... your app routes */}
    </PolybaseProvider>
  )
}
```

## Read a record (with updates)

```tsx
import * as React from 'react'
import { usePolybase, useRecord } from '@polybase/react'

export const Component = () => {
  const polybase = usePolybase()
  const { data, error, loading } = useRecord<OptionalCustomType>(polybase.collection('users').record('id'))

  return data.data.name
}
```


## List collection records (with updates)

```tsx
import * as React from 'react'
import { usePolybase, useCollection } from '@polybase/react'

export const Component = () => {
  const polybase = usePolybase()
  const { data, error, loading } = useCollection<OptionalCustomType>(polybase.collection('users'))

  const usersEl = map(data, ({ data }) => {
    return (
      <div key={data.id}>
        {data.name}
      </div>
    )
  })

  return usersEl
}
```
npm package: @polybase/util
Description: Utility functions for Polybase
Latest version: 0.6.6

# @[polybase](https://polybase.xyz)/util

A utility library to help support common [Polybase](https://polybase.xyz) utility functions.

## Browser Tests

We use `puppeteer` to run our tests in the browser.
We also run the same tests in Node.js.

Only the function in the first argument of `testNodeAndBrowser` runs in the browser (and Node).
This function can't depend on any code outside of the function.
It might also fail if given code that depends on features from ES version higher than
the ES version specified in ts-jest's tsconfig, as it will depend on extra Typescript runtime code.
It's best to keep the function as simple as possible.