open-index/open-npm huggingface dataset:
npm package: @mayankzalavadia/magento-2-pwa-studio-override-mapping-webpack-plugin
Description: This plugin is used on PWA Studio project. It helps you to override Components and Files.
Author: Mayank Zalavadia
Latest version: 1.0.0

# Magento 2 PWA Studio Override Mapping Webpack Plugin

This plugin is used on PWA Studio project. It helps you to override Components and Files.


# Usage

Please review this blog to know how to use this plugin [Easiest Way to Override Component and Files in Magento 2 PWA Studio
](https://devhooks.in/blog/easiest-way-to-override-component-and-files-in-magento-2-pwa-studio)
npm package: @mayaprotocol/xchain-avax
Description: Avax EVM client for XChainJS
Author: XChainJS
Latest version: 0.1.1

# `@mayaprotocol/xchain-avax`

## Modules

- `client` - Custom client for communicating with avax by using [`ethers`](https://github.com/ethers-io/ethers.js)

## Installation

```
yarn add @mayaprotocol/xchain-avax
```

Following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-avax`.

```
yarn add @mayaprotocol/xchain-evm @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util axios ethers
```

## Documentation

### [`xchain avax`](http://docs.xchainjs.org/xchain-client/xchain-avax/)

[`How xchain-avax works`](http://docs.xchainjs.org/xchain-client/xchain-avax/how-it-works.html)\
[`How to use xchain-avax`](http://docs.xchainjs.org/xchain-client/xchain-avax/how-to-use.html)

## Service Providers

This package uses the following service providers:

| Function                  | Service   | Notes                                                                          |
| ------------------------- | --------- | ------------------------------------------------------------------------------ |
| ETH balances              | Etherscan | https://api.snowtrace.io/apis#accounts (module=`account`, action=`balance`)        |
| Token balances            | Etherscan | https://api.snowtrace.io/apis#tokens (module=`account`, action=`tokenbalance`)     |
| ETH transaction history   | Etherscan | https://api.snowtrace.io/apis#accounts (module=`account`, action=`txlistinternal`) |
| Token transaction history | Etherscan | https://api.snowtrace.io/apis#accounts (module=`account`, action=`tokentx`)        |
| Explorer                  | Etherscan | https://snowtrace.io/                                                          |

Etherscan API rate limits: https://snowtrace.io/apis

- This package uses `etherjs` library, by default it uses several providers. (`https://docs.ethers.io/v5/api-keys/`)
npm package: @mayaprotocol/xchain-binance
Description: Custom Binance client and utilities used by XChainJS clients
Author: THORChain
Latest version: 5.6.6

# `@mayaprotocol/xchain-binance`

Binance Module for XChainJS Clients

## Modules

- `client` - Custom client for communicating with Binance Chain by using [`binance-chain/javascript-sdk`](https://github.com/binance-chain/javascript-sdk)
- `types` - TypeScript type definitions for [`binance-chain/javascript-sdk`](https://github.com/binance-chain/javascript-sdk) (not completed) and [`Binance WebSocket Streams`](https://docs.binance.org/api-reference/dex-api/ws-streams.html).
- `util` - Utitilies for using [`binance-chain/javascript-sdk`](https://github.com/binance-chain/javascript-sdk)

## Installation

```
yarn add @mayaprotocol/xchain-binance
```

Following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-binance`.

```
yarn add @binance-chain/javascript-sdk @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util
```

## Documentation

### [`xchain binance`](http://docs.xchainjs.org/xchain-client/xchain-binance/)
[`How xchain-binance works`](http://docs.xchainjs.org/xchain-client/xchain-binance/how-it-works.html)\
[`How to use xchain-binance`](http://docs.xchainjs.org/xchain-client/xchain-binance/how-to-use.html)

## Service Providers

This package uses the following service providers:

| Function                    | Service              | Notes                                                                         | Rate limits                   |
| --------------------------- | -------------------- | ----------------------------------------------------------------------------- | ----------------------------- |
| Balances                    | Binance Dex          | https://docs.binance.org/api-reference/dex-api/paths.html#apiv1accountaddress | 5 requests per IP per second. |
| Transaction history         | Binance Dex          | https://docs.binance.org/api-reference/dex-api/paths.html#apiv1transactions   | 60 requests per IP per minute |
| Transaction details by hash | Binance Dex          | https://docs.binance.org/api-reference/dex-api/paths.html#apiv1txhash         | 10 requests per IP per second |
| Transaction fees            | Binance Dex          | https://docs.binance.org/api-reference/dex-api/paths.html#apiv1fees           | 1 request per IP per second   |
| Transaction broadcast       | Binance Dex          | https://docs.binance.org/api-reference/dex-api/paths.html#apiv1broadcast      | 5 requests per IP per second  |
| Explorer                    | Binance Dex Explorer | https://explorer.binance.org                                                  |                               |

This package gets the node information (`https://docs.binance.org/api-reference/dex-api/paths.html#apiv1node-info`) to transfer tokens.
npm package: @mayaprotocol/xchain-bitcoin
Description: Custom Bitcoin client and utilities used by XChainJS clients
Author: XChainJS
Latest version: 0.20.6

# `@mayaprotocol/xchain-bitcoin`

## Modules

- `client` - Custom client for communicating with Bitcoin using [BIP39](https://github.com/bitcoinjs/bip39) [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) and [WIF](https://github.com/bitcoinjs/wif)

## Installation

```
yarn add @mayaprotocol/xchain-bitcoin
```

Following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-bitcoin`.

```
yarn add @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util axios bitcoinjs-lib wif
```

## Documentation

### [`xchain bitcoin`](http://docs.xchainjs.org/xchain-client/xchain-bitcoin/)
[`How xchain-bitcoin works`](http://docs.xchainjs.org/xchain-client/xchain-bitcoin/how-it-works.html)\
[`How to use xchain-bitcoin`](http://docs.xchainjs.org/xchain-client/xchain-bitcoin/how-to-use.html)


## Service Providers

This package uses the following service providers:

| Function                    | Service     | Notes                                                                            |
| --------------------------- | ----------- | -------------------------------------------------------------------------------- |
| Balances                    | Sochain     | https://sochain.com/api#get-balance                                              |
| Transaction history         | Sochain     | https://sochain.com/api#get-display-data-address, https://sochain.com/api#get-tx |
| Transaction details by hash | Sochain     | https://sochain.com/api#get-tx                                                   |
| Transaction fees            | Bitgo       | https://app.bitgo.com/docs/#operation/v2.tx.getfeeestimate                       |
| Transaction broadcast       | Sochain     | https://sochain.com/api#send-transaction                                         |
| Explorer                    | Blockstream | https://blockstream.info                                                         |

Sochain API rate limits: https://sochain.com/api#rate-limits (300 requests/minute)

Bitgo API rate limits: https://app.bitgo.com/docs/#section/Rate-Limiting (10 requests/second)
npm package: @mayaprotocol/xchain-bitcoincash
Description: Custom bitcoincash client and utilities used by XChainJS clients
Author: XChainJS
Latest version: 0.15.5

# `@mayaprotocol/xchain-bitcoincash`

## Modules

- `client` - Custom client for communicating with Bitcoin Cash by using [@psf/bitcoincashjs-lib](https://www.npmjs.com/package/@psf/bitcoincashjs-lib)

## Installation

```
yarn add @mayaprotocol/xchain-bitcoincash
```

Following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-bitcoincash`.

```
yarn add @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util axios @psf/bitcoincashjs-lib bchaddrjs
```

## Documentation

### [`xchain bitcoincash`](http://docs.xchainjs.org/xchain-client/xchain-bitcoincash/)
[`How xchain-bitcoincash works`](http://docs.xchainjs.org/xchain-client/xchain-bitcoincash/how-it-works.html)\
[`How to use xchain-bitcoincash`](http://docs.xchainjs.org/xchain-client/xchain-bitcoincash/how-to-use.html)


## Service Providers

This package uses the following service providers:

| Function                    | Service           | Notes                                                               |
| --------------------------- | ----------------- | ------------------------------------------------------------------- |
| Balances                    | Haskoin           | https://api.haskoin.com/#/Address/getBalance                        |
| Transaction history         | Haskoin           | https://api.haskoin.com/#/Address/getAddressTxsFull                 |
| Transaction details by hash | Haskoin           | https://api.haskoin.com/#/Transaction/getTransaction                |
| Transaction fees            | Bitgo             | https://app.bitgo.com/docs/#operation/v2.tx.getfeeestimate          |
| Transaction broadcast       | Bitcoin Cash Node | https://developer.bitcoin.org/reference/rpc/sendrawtransaction.html |
| Explorer                    | Blockchain.com    | https://www.blockchain.com/explorer?view=bch                                          |

Haskoin API rate limits: No

Bitgo API rate limits: https://app.bitgo.com/docs/#section/Rate-Limiting (10 requests/second)


## Extras
npm package: @mayaprotocol/xchain-client
Description: A specification for a generalised interface for crypto wallets clients, to be used by XChainJS implementations. The client should not have any functionality to generate a key, instead, the `asgardex-crypto` library should be used to ensure cross-chain com
Latest version: 0.13.2

# XChainJS Wallet Client Interface

A specification for a generalised interface for crypto wallets clients, to be used by XChainJS implementations. The client should not have any functionality to generate a key, instead, the `asgardex-crypto` library should be used to ensure cross-chain compatible keystores are handled. The client is only ever passed a master BIP39 phrase, from which a temporary key and address is decoded.

## Documentation

### [`xchain client`](http://docs.xchainjs.org/xchain-client/)
[`Overview of xchain-client`](http://docs.xchainjs.org/xchain-client/overview.html)\
[`Interface of xchain-client`](http://docs.xchainjs.org/xchain-client/interface.html)
npm package: @mayaprotocol/xchain-cosmos
Description: Custom Cosmos client and utilities used by XChainJS clients
Author: XChainJS
Latest version: 0.20.5

# `@mayaprotocol/xchain-client`

Cosmos Module for XChainJS Clients

## Installation

```
yarn add @mayaprotocol/xchain-cosmos
```

Following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-cosmos`.

```
yarn add @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util axios cosmos-client/core

```

## Cosmos Client Testing

```
yarn install
yarn test
```
## Documentation

### [`xchain cosmos`](http://docs.xchainjs.org/xchain-client/xchain-cosmos/)
[`How xchain-cosmos works`](http://docs.xchainjs.org/xchain-client/xchain-cosmos/how-it-works.html)\
[`How to use xchain-cosmos`](http://docs.xchainjs.org/xchain-client/xchain-cosmos/how-to-use.html)


## Service Providers

This package uses the following service providers:

| Function                    | Service    | Notes                                                               |
| --------------------------- | ---------- | ------------------------------------------------------------------- |
| Balances                    | Cosmos RPC | https://cosmos.network/rpc/v0.37.9 (`GET /bank/balances/{address}`) |
| Transaction history         | Cosmos RPC | https://cosmos.network/rpc/v0.37.9 (`GET /txs`)                     |
| Transaction details by hash | Cosmos RPC | https://cosmos.network/rpc/v0.37.9 (`GET /txs/{hash}`)              |
| Transaction broadcast       | Cosmos RPC | https://cosmos.network/rpc/v0.37.9 (`POST /txs`)                    |
| Explorer                    | BigDipper  | https://cosmos.bigdipper.live                                       |

Rate limits: No


## Extras
Important note: Make sure to install same version of `cosmos-client/core` as `xchain-cosmos` is using (currently `"@cosmos-client/core": "^0.45.1",` ). In other case things might break.
npm package: @mayaprotocol/xchain-crypto
Description: XChain Crypto is a crypto module needed by all XChain clients.
Author: Thorchain
Latest version: 0.2.7

# XCHAIN-CRYPTO

The XCHAIN CRYPTO package is a crypto package used by all `XCHAIN` clients.

XCHAIN-CRYPTO encrypts a master phrase to a keystore. This keystore can then be exported to other XCHAIN wallets or stored securely.

Users can export their phrase and import them into other wallets since it is a BIP39 compatible phrase.

## Installation

- Install `@mayaprotocol/xchain-crypto` from `npm`

```bash
yarn add @mayaprotocol/xchain-crypto
```

## Documentation

### [`xchain crypto`](http://docs.xchainjs.org/xchain-crypto/)
[`How xchain-crypto works`](http://docs.xchainjs.org/xchain-crypto/how-it-works.html)\
[`How to use xchain-crypto`](http://docs.xchainjs.org/xchain-crypto/how-to-use.html)


## Build

```bash
yarn build
```

## Tests

```bash
yarn test
```

### Constants

```js
// Crypto Constants for xchain
const cipher = 'aes-128-ctr'
const kdf = 'pbkdf2'
const prf = 'hmac-sha256'
const dklen = 32
const c = 262144
const hashFunction = 'sha256'
const meta = 'xchain-keystore'
```

### Keystore Type

```js
export type Keystore = {
  address: string
  crypto: {
    cipher: string
    ciphertext: string
    cipherparams: {
      iv: string
    }
    kdf: string
    kdfparams: {
      prf: string
      dklen: number
      salt: string
      c: number
    }
    mac: string
  }
  id: string
  version: number
  meta: string
}
```
npm package: @mayaprotocol/xchain-ethereum
Description: Ethereum client for XChainJS
Author: XChainJS
Latest version: 0.27.5

# `@mayaprotocol/xchain-ethereum`

## Modules

- `client` - Custom client for communicating with Ethereum by using [`ethers`](https://github.com/ethers-io/ethers.js)

## Installation

```
yarn add @mayaprotocol/xchain-ethereum
```

Following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-ethereum`.

```
yarn add @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util axios ethers
```

## Documentation

### [`xchain ethereum`](http://docs.xchainjs.org/xchain-client/xchain-ethereum/)

[`How xchain-ethereum works`](http://docs.xchainjs.org/xchain-client/xchain-ethereum/how-it-works.html)\
[`How to use xchain-ethereum`](http://docs.xchainjs.org/xchain-client/xchain-ethereum/how-to-use.html)

## Service Providers

This package uses the following service providers:

| Function                  | Service   | Notes                                                                          |
| ------------------------- | --------- | ------------------------------------------------------------------------------ |
| ETH balances              | Etherscan | https://etherscan.io/apis#accounts (module=`account`, action=`balance`)        |
| Token balances            | Etherscan | https://etherscan.io/apis#tokens (module=`account`, action=`tokenbalance`)     |
| ETH transaction history   | Etherscan | https://etherscan.io/apis#accounts (module=`account`, action=`txlistinternal`) |
| Token transaction history | Etherscan | https://etherscan.io/apis#accounts (module=`account`, action=`tokentx`)        |
| Transaction fees          | Etherscan | https://etherscan.io/apis#gastracker (module=`gastracker`, action=`gasoracle`) |
| Transaction broadcast     | Etherscan | https://sebs.github.io/etherscan-api/#eth_sendrawtransaction                   |
| Explorer                  | Etherscan | https://etherscan.io/                                                          |

Etherscan API rate limits: https://info.etherscan.com/api-return-errors/

- This package uses `etherjs` library, by default it uses several providers. (`https://docs.ethers.io/v5/api-keys/`)
npm package: @mayaprotocol/xchain-evm
Description: Genereic EVM client for XChainJS
Author: XChainJS
Latest version: 0.1.1

# `@mayaprotocol/xchain-evm`

## Modules

- `client` - Custom client for communicating with evm by using [`ethers`](https://github.com/ethers-io/ethers.js)

## Installation

```
yarn add @mayaprotocol/xchain-evm
```

Following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-evm`.

```
yarn add @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util axios ethers
```

## Documentation

### [`xchain evm`](http://docs.xchainjs.org/xchain-client/xchain-evm/)

[`How xchain-evm works`](http://docs.xchainjs.org/xchain-client/xchain-evm/how-it-works.html)\
[`How to use xchain-evm`](http://docs.xchainjs.org/xchain-client/xchain-evm/how-to-use.html)

- This package uses `etherjs` library, by default it uses several providers. (`https://docs.ethers.io/v5/api-keys/`)
npm package: @mayaprotocol/xchain-litecoin
Description: Custom Litecoin client and utilities used by XChainJS clients
Author: XChainJS
Latest version: 0.10.7

# `@mayaprotocol/xchain-client`

## Modules

- `client` - Custom client for communicating with Litecoin using [BIP39](https://github.com/bitcoinjs/bip39) [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) and [WIF](https://github.com/bitcoinjs/wif)

## Installation

```
yarn add @mayaprotocol/xchain-litecoin
```

Following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-litecoin`.

```
yarn add @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util axios bitcoinjs-lib coininfo wif
```

## Documentation

### [`xchain litecoin`](http://docs.xchainjs.org/xchain-client/xchain-litecoin/)
[`How xchain-litecoin works`](http://docs.xchainjs.org/xchain-client/xchain-litecoin/how-it-works.html)\
[`How to use xchain-litecoin`](http://docs.xchainjs.org/xchain-client/xchain-litecoin/how-to-use.html)


## Service Providers

This package uses the following service providers:

| Function                    | Service     | Notes                                                                            |
| --------------------------- | ----------- | -------------------------------------------------------------------------------- |
| Balances                    | Sochain     | https://sochain.com/api#get-balance                                              |
| Transaction history         | Sochain     | https://sochain.com/api#get-display-data-address, https://sochain.com/api#get-tx |
| Transaction details by hash | Sochain     | https://sochain.com/api#get-tx                                                   |
| Transaction fees            | Bitgo       | https://app.bitgo.com/docs/#operation/v2.tx.getfeeestimate                       |
| Transaction broadcast       | Bitaps      | https://ltc.bitaps.com/broadcast                                                 |
| Explorer                    | Blockstream | https://litecoinblockexplorer.net/                                                        |

Sochain API rate limits: https://sochain.com/api#rate-limits (300 requests/minute)

Bitgo API rate limits: https://app.bitgo.com/docs/#section/Rate-Limiting (10 requests/second)

Bitaps API rate limits: Standard limit 15 requests within 5 seconds for a single IP address.
npm package: @mayaprotocol/xchain-midgard
Description: Midgard module that exposes all midgard functions using openapi-generator-cli
Author: THORChain
Latest version: 0.4.0

# `@mayaprotocol/xchain-midgard`

Midgard Module for XChainJS Clients

## Modules

Midgard module has been created using openapi-generator-cli auto-generation reading from "https://midgard.thorchain.info/v2/swagger.json" This library exposes all the midgard api functions defined in the swagger doc "https://midgard.thorchain.info/v2/swagger.json"



## Installation

```
yarn add @mayaprotocol/xchain-midgard
```

## Examples
Request data from midgardApi

```
import { MidgardApi } from '@mayaprotocol/xchain-midgard'

const midgardApi = new MidgardApi()
const data = midgardApi.getPool('BTC.BTC') 

```

## Documentation

[`Midgard Thorchain endpoint`](https://midgard.thorchain.info/v2/doc)
[`Midgard Thorswap endpoint`](https://midgard.thorswap.net/v2/doc)
[`Midgard NineRelms endpoint`](https://midgard.ninerealms.com/v2/doc)
npm package: @mayaprotocol/xchain-thorchain
Description: Custom Thorchain client and utilities used by XChainJS clients
Author: THORChain
Latest version: 0.27.6

# `@mayaprotocol/xchain-thorchain`

Thorchain Module for XChainJS Clients

## Installation

```
yarn add @mayaprotocol/xchain-thorchain
```

Following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-thorchain`.

```
yarn add @mayaprotocol/xchain-client @mayaprotocol/xchain-crypto @mayaprotocol/xchain-util @mayaprotocol/xchain-cosmos axios @cosmos-client/core bech32-buffer
```

Important note: Make sure to install same version of `@cosmos-client/core` as `xchain-thorchain` is using (currently `@cosmos-client/core@0.45.1` ). In other case things might break.


## Documentation

### [`xchain thorchain`](http://docs.xchainjs.org/xchain-client/xchain-thorchain/)
[`How xchain-thorchain works`](http://docs.xchainjs.org/xchain-client/xchain-thorchain/how-it-works.html)\
[`How to use xchain-thorchain`](http://docs.xchainjs.org/xchain-client/xchain-thorchain/how-to-use.html)


For more examples check out tests in `./__tests__/client.test.ts`

## Service Providers

This package uses the following service providers:

| Function                    | Service        | Notes                                                               |
| --------------------------- | -------------- | ------------------------------------------------------------------- |
| Balances                    | Cosmos RPC     | https://cosmos.network/rpc/v0.37.9 (`GET /bank/balances/{address}`) |
| Transaction history         | Tendermint RPC | https://docs.tendermint.com/master/rpc/#/Info/tx_search             |
| Transaction details by hash | Cosmos RPC     | https://cosmos.network/rpc/v0.37.9 (`GET /txs/{hash}`)              |
| Transaction broadcast       | Cosmos RPC     | https://cosmos.network/rpc/v0.37.9 (`POST /txs`)                    |
| Explorer                    | Thorchain.net  | https://thorchain.net                                               |

Rate limits: No

## Extras

## Creating protobuffer typescript bindings

In order for this library to de/serialize proto3 structures, you can use the following to create bindings

1. `git clone https://gitlab.com/thorchain/thornode`
2. run the following (adjust the paths acordingly) to generate a typecript file for MsgDeposit
   ```bash
   yarn run pbjs -w commonjs  -t static-module  <path to repo>/thornode/proto/thorchain/v1/x/thorchain/types/msg_deposit.proto <path to repo>/thornode/proto/thorchain/v1/common/common.proto <path to repo>/thornode/proto/thorchain/v1/x/thorchain/types/msg_send.proto <path to repo>/thornode/third_party/proto/cosmos/base/v1beta1/coin.proto -o src/types/proto/MsgCompiled.js
   ```
3. run the following to generate the .d.ts file
   ```bash
   yarn run pbts src/types/proto/MsgCompiled.js -o src/types/proto/MsgCompiled.d.ts
   ```

Alternatively, you can run the convenience script: `genMsgs.sh`, which will overwrite the proto/js files in types/proto. This should only be done and checked in if changes were made to the upstream Msg in the THORNode repo.
npm package: @mayaprotocol/xchain-thorchain-query
Description: Thorchain query module that is resposible for estimating swap calculations and add/remove liquidity for thorchain 
Author: THORChain
Latest version: 0.1.9

# `@mayaprotocol/xchain-thorchain-query`

Thorchain-query module to query thorchain for estimation of swaps. Returns a TxDetail object with all the information needed to conduct a swap.

## Installation

```
yarn add @mayaprotocol/xchain-thorchain-query
```

Following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-thorchain-query`.

```
yarn add @mayaprotocol/xchain-client @mayaprotocol/xchain-util @mayaprotocol/xchain-midgard @mayaprotocol/xchain-thornode axios

```

## Examples

Estimation example from a swap of 2 BTC to RUNE

```ts
{
  memo: '=:THOR.RUNE::2071168559999',
  expiry: 2022-09-07T02:16:45.732Z,
  toAddress: '',
  txEstimate: {
    input: '₿ 2',
    totalFees: {
      inboundFee: 'ᚱ 0.02',
      swapFee: 'ᚱ 52.85380999',
      outboundFee: 'ᚱ 0.06',
      affiliateFee: 'ᚱ 0'
    },
    slipPercentage: '0.00246920801878638026',
    netOutput: 'ᚱ 21,352.25318742',
    waitTimeSeconds: '1248',
    canSwap: true,
    errors: []
  }
}
```

## Documentation

[`Overview `](https://dev.thorchain.org/thorchain-dev/xchainjs-integration-guide/query-package)

For bash exmples, see example folder at the base of this repository xchainjs/xchainjs-lib.

### [`xchain-thorchain-query`](http://docs.xchainjs.org/xchain-thorchain-query/)

How xchain-thorchain-query works: http://docs.xchainjs.org/xchain-thorchain-query/how-it-works.html\
How to use xchain-thorchain-query: http://docs.xchainjs.org/xchain-thorchain-query/how-to-use.html

## For Live examples

Estimate swap: https://replit.com/@thorchain/estimateSwap#index.ts\
Estimate add: https://replit.com/@thorchain/estimateAddliquidity\
Estimate withdraw: https://replit.com/@thorchain/estimateWithdrawLiquidity\
Check liquidity: https://replit.com/@thorchain/checkLiquidity\
List pools: https://replit.com/@thorchain/listPools#package.json\
Get Network Values: https://replit.com/@thorchain/networkValues#index.ts\

Estimate AddSaver() & WithdrawSaver() & getSaverPosition() https://replit.com/@thorchain/quoteDepositTS#index.ts
npm package: @mayaprotocol/xchain-thornode
Description: Thornode module that exposes all thornode functions using openapi-generator-cli
Author: THORChain
Latest version: 0.1.4

# `@mayaprotocol/xchain-thornode`

Thornode Module for XChainJS Clients

## Modules

Thornode module has been created using openapi-generator-cli to auto-generate rest api reading from "https://gitlab.com/thorchain/thornode/-/raw/release-{version}/openapi/openapi.yaml"
This library exposes all the Api's outlined in the swagger doc "https://thornode.ninerealms.com/thorchain/doc"

## Installation

```
yarn add @mayaprotocol/xchain-thornode
```

## Examples

Request data from MimirApi

```
// THORNODE_API_9R_URL - default exported URL
// import { MimirApi, THORNODE_API_9R_URL, Configuration } from '@mayaprotocol/xchain-thornode'

  const baseUrl = THORNODE_API_9R_URL
  const apiconfig = new Configuration({ basePath: baseUrl })
  const mimirApi = new MimirApi(apiconfig)
  const mimirResponse = await mimirApi.mimir()
  console.log(mimirResponse.data)

```
## Example - set custom header

Request data from MimirApi

```
// THORNODE_API_9R_URL - default exported URL
// import { MimirApi, THORNODE_API_9R_URL, Configuration } from '@mayaprotocol/xchain-thornode'

  const baseUrl = THORNODE_API_9R_URL
  const headers = {"x-client-id": "my-custom-val"}
  const baseOptions = { headers }
  const apiconfig = new Configuration({ basePath: baseUrl , baseOptions })
  const mimirApi = new MimirApi(apiconfig)
  const mimirResponse = await mimirApi.mimir()
  console.log(mimirResponse.data)

```

## Documentation

[`Thornode NineRelms endpoint`](https://thornode.ninerealms.com/)
npm package: @mayaprotocol/xchain-util
Description: Helper utilities for XChain clients
Author: THORChain
Latest version: 0.11.1

# `@mayaprotocol/xchain-util`

Utility helpers for XChain clients

## Modules (in alphabetical order)

- `asset` - Utilities for handling assets
- `async` - Utilities for `async` handling
- `bn` - Utilities for using `bignumber.js`
- `chain` - Utilities for multi-chain
- `string` - Utilities for strings

## Installation

```
yarn add @mayaprotocol/xchain-util
```
The following peer dependencies have to be installed into your project. These are not included in `@mayaprotocol/xchain-util`.

```
yarn add bignumber.js
```

## Documentation

### [`xchain util`](http://docs.xchainjs.org/xchain-util/)
[`How xchain-util works`](http://docs.xchainjs.org/xchain-util/how-it-works.html)\
[`How to use xchain-util`](http://docs.xchainjs.org/xchain-util/how-to-use.html)
npm package: @mayaprotocol/xchain-zcash
Description: Custom Zcash client and utilities used by XChainJS clients
Author: XChainJS
Latest version: 1.0.7

# `@xchainjs/xchain-zcash`

# **ATTENTION: SUPPORT FOR T-ADDRESSES ONLY**

## Modules

- `client` - Custom client for communicating with Zcash using [BIP39](https://github.com/bitcoinjs/bip39) [zcash wallet js](https://gitlab.com/mayachain/chains/zcash/-/tree/main/js?ref_type=heads) and [WIF](https://github.com/bitcoinjs/wif)

## Installation

```
yarn add @xchainjs/xchain-zcash
```

Following peer dependencies have to be installed into your project. These are not included in `@xchainjs/xchain-doge`.

```
yarn add @xchainjs/xchain-client @xchainjs/xchain-crypto @xchainjs/xchain-util
```

## Service Providers

This package uses the following service providers:

| Function                    | Service     | Notes                                                                            |
| --------------------------- | ----------- | -------------------------------------------------------------------------------- |
| Balances                    | Nownodes    | https://nownodes.gitbook.io/documentation/zec-zcash/blockbook                    |
| Transaction history         | Nownodes    | https://nownodes.gitbook.io/documentation/zec-zcash/blockbook                    |
| Transaction details by hash | Nownodes    | https://nownodes.gitbook.io/documentation/zec-zcash/blockbook                    |
| Transaction fees            | Nownodes    | https://nownodes.gitbook.io/documentation/zec-zcash/blockbook                    |
| Transaction broadcast       | Nownodes    | https://nownodes.gitbook.io/documentation/zec-zcash/blockbook                    |
| Explorer                    | Nownodes    | https://nownodes.gitbook.io/documentation/zec-zcash/blockbook                    |

Nownodes rate limits: https://nownodes.io/pricing

## Overriding providers

You can specify own array of providers, whoch will be executed in array-order, to provide automated failover to the subsequent providers if calls to the first providers fail
npm package: @mayarid/n8n-nodes-mayar
Description: n8n community nodes for Mayar Headless API (actions & triggers)
Latest version: 0.4.0

# n8n-nodes-mayar

n8n community nodes untuk Mayar Headless API (Actions & Trigger).

## Instalasi

- n8n Cloud:
  - Buka Community Nodes dan cari `n8n-nodes-mayar`.
  - Install dari UI n8n, lalu tambahkan kredensial Mayar API.

- Self-hosted:
  - `npm install n8n-nodes-mayar`
  - Pastikan environment n8n Anda memuat paket ini (Community Nodes aktif).

## Konfigurasi

Buat kredensial "Mayar API" di n8n:
- `API Key`: token Mayar Anda
- `Base URL`: default `https://api.mayar.id/hl/v1` (Sandbox: `https://api.mayar.club/hl/v1`)

## Fitur

- Mayar Action Node
  - Balance: `Get`
  - Invoice: `Create`, `Get Many`
  - Coupon: `Create`, `Get`, `Get Many`
  - Customer: `Get Many`, `Create`, `Update Email`
  - Options:
    - `Continue On Fail`: lanjut workflow saat error dengan output error
    - `Max Retries`: retry untuk error sementara (429, 5xx)
    - `Retry Delay (ms)`: jeda antar retry
    - `Debug`: menambahkan meta informasi ke output

- Mayar Trigger Node
  - Satu webhook endpoint (`mayar`) yang meneruskan payload request apa adanya
  - Output tunggal (`main`), `webhookResponse` meng-echo payload untuk memudahkan pengujian

## Contoh Penggunaan

- Trigger (Webhook)
  - Kirim `POST` ke endpoint webhook dengan JSON payload. Contoh:
    ```json
    {
      "event": "payment.received",
      "data": { "id": "123", "status": "SUCCESS" }
    }
    ```
  - Payload akan diteruskan ke output `main` dan di-echo sebagai respons HTTP.

- Action: Invoice Create
  - Tambahkan node `Mayar`
  - Set `Resource: Invoice`, `Operation: Create`
  - Isi parameter: `name`, `email`, `mobile`, `redirectUrl`, `description`, `expiredAt (opsional)`, `items`
  - Atur `Options` bila perlu (misal `Max Retries` untuk kestabilan)

- Action: Customer Get Many
  - `Resource: Customer`, `Operation: Get Many`
  - Parameter: `page`, `pageSize`

## Pengembangan

- `npm install`
- `npm run build`
- Struktur build: output berada di `dist/` dan direferensikan oleh n8n melalui field `n8n` di `package.json`.

## Versioning (bump.sh)

Gunakan skrip `bump.sh` untuk menaikkan versi dan rilis cepat:

```bash
./bump.sh [major|minor|patch] [publish]
```

- `major|minor|patch`: tipe versi semver
- Skrip akan:
  - membangun paket,
  - menjalankan `npm version` (membuat commit dan tag),
  - `git push` dan `git push --tags`.
- Tambahkan argumen `publish` untuk sekaligus menjalankan `npm publish --access public`.

## Lisensi

MIT

## Tautan

- n8n Community Nodes: https://docs.n8n.io/integrations/community-nodes/
- Mayar API: silakan merujuk dokumentasi resmi Mayar / tim Mayar
npm package: @mayaxxp/cueui
Description: X.xp Front-end Development Learning
Author: mayaxxp
Latest version: 1.0.3

# cue-ui

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).