open-index/open-npm huggingface dataset:
npm package: @o3swap/v2-sdk
Description: [![npm version](https://img.shields.io/npm/v/@o3swap/v2-sdk/latest.svg)](https://www.npmjs.com/package/@o3swap/v2-sdk/v/latest)
Author: o3.network
Latest version: 1.4.1

# O3 SDK

[![npm version](https://img.shields.io/npm/v/@o3swap/v2-sdk/latest.svg)](https://www.npmjs.com/package/@o3swap/v2-sdk/v/latest)

## Setup

Install from npm:

`npm install @o3swap/v2-sdk`

## Init

```ts
const o3swap = await new O3Swap().init();
// You can use the RPC provided by us, or use your own RPC
o3swap.setRPC(chainId, '');
```

## Quoter

```ts
const bscUSDC: Token = {
  hash: '0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d',
  chainId: 56,
};
const bscBNB: Token = {
  hash: '0x0000000000000000000000000000000000000000',
  chainId: 56,
};
const amount = '1000000000000000000'; // 1
const o3swap = await new O3Swap().init();
// Quoter BNB Chain 1 USDC -> BNB
const quoterResult = await o3swap.swapQuoter.quoter(bscUSDC, bscBNB, amount);
```

## Swap

```ts
const quoterItem = quoterResult?.[0];
if (quoterItem) {
  const callParams = await o3swap.swap.exchange({
    quoter: quoterItem,
    deadlineSeconds: 600,
    toAddress: walletAddress,
    slip: 0.05,
  });

  // You need check approve by yourself

  (window as any).ethereum.request({
    method: 'eth_sendTransaction',
    params: [
      {
        from: '',
        to: callParams.contract,
        value: callParams.value,
        data: callParams.callData,
      },
    ],
  });
}
```
npm package: @o3world/backstopjs
Description: A commandline utility and node server to assist in creating drupal backstop tests
Author: Nick Lewis
Latest version: 1.8.1

# backstop-starter-kit
A stupid simple starter kit for getting started running backstop tests.
# Run your first test in one command
`git clone https://github.com/o3world/backstop-starter-kit.git && cd backstop-starter-kit && npm install && node backstop.js reference && node backstop.js test`
# Usage
1. Clone this repo and cd into it. Run:

`npm install`

2. Generate a reference of o3world.com:

`node backstop.js reference`

3. Generate a test of o3world.com dev:

`node backstop.js test`

# Options
Override reference or test urls
`node backstop.js test --referenceUrl=https://o3world.com --testUrl=https://dev-o3-world.pantheonsite.io`

# Config
[See config.js.](https://github.com/o3world/backstop-starter-kit/blob/master/config.js)