open-index/open-npm huggingface dataset:
npm package: @one-delta/aptos-swap-sdk
Description: 🛠 An SDK for building applications on top of Pancakeswap Aptos.
Latest version: 0.0.1

# PancakeSwap Aptos Swap SDK

You can refer to the Uniswap SDK documentation [uniswap.org](https://docs.uniswap.org/sdk/2.0.0/).
npm package: @one-delta/awgmi
Description: Connect to Aptos with similar [wagmi](https://github.com/wagmi-dev/wagmi) React hooks.
Latest version: 0.0.1

# @one-delta/awgmi

Connect to Aptos with similar [wagmi](https://github.com/wagmi-dev/wagmi) React hooks.

Support Aptos Wallet Connectors:
- Petra
- Martian
- Pontem
- Fewcha
- SafePal
- Trust Wallet


```jsx
import {
  createClient,
  AwgmiConfig,
  useConnect,
  getDefaultProviders,
  defaultChains,
} from '@one-delta/awgmi';
import { PetraConnector } from '@one-delta/awgmi/connectors/petra'
import { MartianConnector } from '@one-delta/awgmi/connectors/martain'
import { SafePalConnector } from '@one-delta/awgmi/connectors/safePal'
import { BloctoConnector } from '@one-delta/awgmi/connectors/blocto'
import { FewchaConnector } from '@one-delta/awgmi/connectors/fewcha'

 // import { mainnet, testnet } from '@one-delta/awgmi/core'
const chains = defaultChains // mainnet, testnet, devnet

export const client = createClient({
  connectors: [
    new PetraConnector({ chains }),
    new MartianConnector({ chains }),
    new PetraConnector({ chains, options: { name: 'Trust Wallet', id: 'trustWallet' } }),
    new SafePalConnector({ chains }),
    new BloctoConnector({ chains, options: { appId: BLOCTO_APP_ID } }),
    new FewchaConnector({ chains }),
  ],
  provider: getDefaultProviders,
  autoConnect: true,
});


function App() {
  return (
    <AwgmiConfig client={client}>
      <YourApp />
    </AwgmiConfig>
  )
}
```


## Connector
```jsx
import { useConnect, useDisconnect } from '@one-delta/awgmi'

function ConnectButton() {
  const { connect, connectors } = useConnect()

  return (
    <div>
      {connectors.map((connector) => (
        <button type="button" key={connector.id} onClick={() => connect({ connector, networkName: 'mainnet' })}>
          {connector.name}
        </button>
      ))}
    </div>
  )
}
```


## Hooks
```jsx
import {
  useAccountBalance,
  useAccountBalances,
  useAccountResource,
  useAccountResources,
  useCoin,
  useCoins,
  useNetwork,
  useSendTransaction,
  useSimulateTransaction,
  useTableItem,
} from '@one-delta/awgmi'
```

### Balance
```js
const { data } = useAccountBalance({
  address: Address,
  coin: '0x1::aptos_coin::AptosCoin',
  watch: true
})
```

### Send Transaction
```js
import { UserRejectedRequestError } from '@one-delta/awgmi'

const { sendTransactionAsync } = useSendTransaction()

sendTransactionAsync({
  payload: {
    type: 'entry_function_payload',
    function: '<address>::message::set_message',
    arguments: ['are we gonna make it?'],
    type_arguments: [],
  },
}).catch(err => {
  if (err instanceof UserRejectedRequestError) {
    // handle user reject
  }
  // handle transaction error
})
```
npm package: @one-delta/sdk
Description: 🛠 An SDK for building applications on top of Pancakeswap.
Latest version: 0.0.1

# PancakeSwap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://docs.uniswap.org/sdk/2.0.0/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [pnpm](https://pnpm.io) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancake-swap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
pnpm install
```

Run tests

```sh
pnpm test
```

You should see output like the following:

```sh
pnpm run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @one-for-all-ui/core
Description: JavaScript Design Library
Author: Akshay Jat
Latest version: 0.0.5-beta.6

# One For All UI

### 🎉 React Binding Is Here

## Note
- NPM project is moved from <b>one-fro-all-ui</b> to <b>@one-for-all-ui/core</b>.
- Bindings for angular and vue are coming soon for easy use.

## Installation
#### NPM
- React (For more info look at examples)
    ```bash
    npm i @one-for-all-ui/react --save
    ```
- Other
    ```bash
    npm i @one-for-all-ui/core --save
    ```

#### JavaScript
```javascript
<script src="https://cdn.jsdelivr.net/npm/@one-for-all-ui/core/dist/one-for-all-ui/one-for-all-ui.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@one-for-all-ui/core/dist/one-for-all-ui/one-for-all-ui.css">
```

#### Themeing
- Below css variables are provided for theming of all components
```css
--color-primary: your_color;
--color-secondary: your_color;
--color-font: your_color;
```

Note: Replace your_color with your choice of color.

<br />

## Example
#### Dark Shadow (Modal)
- JavaScript \- [Example Link](https://codesandbox.io/s/javascript-one-for-all-ui-darkshadow-modal-zkjmi)
- React \- [Example Link](https://codesandbox.io/s/react-one-for-all-ui-darkshadow-modal-r9lxx)

#### Special Card (Card)
- JavaScript \- [Example Link](https://codesandbox.io/s/javascript-one-for-all-ui-specialcard-card-insx1)
- React \- [Example Link](https://codesandbox.io/s/react-one-for-all-ui-specialcard-card-db04u)

#### Zero Gravity Button (Floating Action Button)
- JavaScript \- [Example Link](https://codesandbox.io/s/javascript-one-for-all-ui-zerogravitybutton-fab-8psx0)
- React \- [Example Link](https://codesandbox.io/s/react-one-for-all-ui-zerogravitybutton-fab-335lc)

- Note: If you want to show button respective to any element then set position to relative for that element.

#### Quirk Boomerang (Carousel)
- JavaScript \- [Example Link](https://codesandbox.io/s/javascript-one-for-all-ui-quirkboomerang-carousel-u8edv)
- React \- [Example Link](https://codesandbox.io/s/react-one-for-all-ui-quirkboomerang-carousel-7ypq3)

<br />

## For Development

To start locally, run:

```bash
npm install
npm start
```

To build the component for production, run:

```bash
npm run build
```

To run the unit tests for the components, run:

```bash
npm test
```
npm package: @one-for-all-ui/react
Description: React Design Library
Author: Akshay Jat
Latest version: 0.0.5-beta.6

# @one-for-all-ui/react

> React Design Library

## Install

```bash
npm install --save @one-for-all-ui/react
```

## Usage

```tsx
import React, { Component } from 'react'

import { MyComponent } from '@one-for-all-ui/react'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## License

MIT © [akki-jat](https://github.com/akki-jat)