Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match heum #25

Merged
merged 2 commits into from
Oct 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2021 @setheum-js/api authors & contributors
// Copyright 2018-2021 @setheum.js/api authors & contributors
// SPDX-License-Identifier: Apache-2.0

module.exports = {
Expand Down
77 changes: 77 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions .yarn/releases/yarn-2.4.2.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-2.4.1.cjs
yarnPath: .yarn/releases/yarn-2.4.2.cjs
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![license](https://img.shields.io/badge/License-Apache%202.0-blue?logo=apache&style=flat-square)
[![npm](https://img.shields.io/npm/v/@setheum-js/api?logo=npm&style=flat-square)](https://www.npmjs.com/package/@setheum-js/api)
[![npm](https://img.shields.io/npm/v/@setheum.js/api?logo=npm&style=flat-square)](https://www.npmjs.com/package/@setheum.js/api)

# @setheum-js
# @setheum.js
Promise and RxJS APIs around Setheum RPC calls.
This library provides additional typing for users to access Setheum networks by using [setheum.js](https://github.com/setheum-js/api) using [polkadot.js](https://github.com/polkadot-js/api).

Expand All @@ -12,15 +12,15 @@ More documentation and examples on [setheum.js.org](https://setheum.js.org).
- Install dependencies

```bash
yarn add @polkadot/api @setheum-js/api@beta
yarn add @polkadot/api @setheum.js/api@beta
```

- Create API instance

```ts
import { ApiPromise } from '@polkadot/api';
import { WsProvider } from '@polkadot/rpc-provider';
import { options } from '@setheum-js/api';
import { options } from '@setheum.js/api';

async function main() {
const provider = new WsProvider('ws://127.0.0.1:9944');
Expand All @@ -45,9 +45,9 @@ console.log(data.toHuman())

The API is split up into a number of internal packages -

- [@setheum-js/api](packages/api/) The API library, providing both Promise and RxJS Observable-based interfaces. This is the main user-facing entry point.
- [@setheum-js/api-derive](packages/api-derive/) Additional polkadot.js derives for Setheum Network.
- [@setheum.js/api](packages/api/) The API library, providing both Promise and RxJS Observable-based interfaces. This is the main user-facing entry point.
- [@setheum.js/api-derive](packages/api-derive/) Additional polkadot.js derives for Setheum Network.
Derived results that are injected into the API, allowing for combinations of various query results (only used internally and exposed on the Api instances via `api.derive.*`).
- [@setheum-js/app-util](./packages/app-util)
- [@setheum.js/app-util](./packages/app-util)
- Utilities to work with Setheum.
- [@setheum-js/types](packages/types/) Codecs for all Polkadot.js type definations for Setheum primitives.
- [@setheum.js/types](packages/types/) Codecs for all Polkadot.js type definations for Setheum primitives.
2 changes: 1 addition & 1 deletion babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018-2021 @setheum-js/api authors & contributors
// Copyright 2018-2021 @setheum.js/api authors & contributors
// SPDX-License-Identifier: Apache-2.0

module.exports = require('@open-web3/dev-config/config/babel-config-cjs.cjs');
14 changes: 7 additions & 7 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Copyright 2018-2021 @setheum-js/api authors & contributors
// Copyright 2018-2021 @setheum.js/api authors & contributors
// SPDX-License-Identifier: Apache-2.0

const config = require('@open-web3/dev-config/config/jest.cjs');

module.exports = Object.assign({}, config, {
moduleNameMapper: {
'@setheum-js/api-derive(.*)$': '<rootDir>/packages/api-derive/src/$1',
'@setheum-js/api(.*)$': '<rootDir>/packages/api/src/$1',
'@setheum-js/types(.*)$': '<rootDir>/packages/types/src/$1',
'@setheum-js/type-definitions(.*)$': '<rootDir>/packages/type-definitions/src/$1',
'@setheum-js/sdk-core(.*)$': '<rootDir>/packages/sdk-core/src/$1',
'@setheum-js/sdk-swap(.*)$': '<rootDir>/packages/sdk-swapcore/src/$1'
'@setheum.js/api-derive(.*)$': '<rootDir>/packages/api-derive/src/$1',
'@setheum.js/api(.*)$': '<rootDir>/packages/api/src/$1',
'@setheum.js/types(.*)$': '<rootDir>/packages/types/src/$1',
'@setheum.js/type-definitions(.*)$': '<rootDir>/packages/type-definitions/src/$1',
'@setheum.js/sdk-core(.*)$': '<rootDir>/packages/sdk-core/src/$1',
'@setheum.js/sdk-swap(.*)$': '<rootDir>/packages/sdk-swapcore/src/$1'
},
modulePathIgnorePatterns: [
'<rootDir>/build',
Expand Down
2 changes: 1 addition & 1 deletion packages/api-derive/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @setheum-js/api-derive
# @setheum.js/api-derive

Additional polkadot.js derives for Setheum Network
4 changes: 2 additions & 2 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@setheum-js/api-derive",
"name": "@setheum.js/api-derive",
"version": "1.0.0",
"description": "Additional polkadot.js derives for Setheum Network",
"main": "index.js",
Expand All @@ -15,7 +15,7 @@
},
"homepage": "https://github.com/setheum-js/setheum.js",
"dependencies": {
"@setheum-js/types": "1.0.0",
"@setheum.js/types": "1.0.0",
"@babel/runtime": "^7.10.2",
"@open-web3/orml-types": "^1.0.2-0",
"@polkadot/api-derive": "^6.3.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/api-derive/src/dex/pool.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ApiInterfaceRx } from '@polkadot/api/types';
import { map } from 'rxjs/operators';
import primitivesConfig from '@setheum-js/type-definitions/primitives';
import primitivesConfig from '@setheum.js/type-definitions/primitives';
import { Observable } from 'rxjs';

import { CurrencyId, Balance } from '@setheum-js/types/interfaces';
import { CurrencyId, Balance } from '@setheum.js/types/interfaces';
import { memo } from '@polkadot/api-derive/util';

import { DerivedDexPool } from '../types/dex';
Expand Down
2 changes: 1 addition & 1 deletion packages/api-derive/src/loan/loan-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { map } from 'rxjs/operators';
import { ApiInterfaceRx } from '@polkadot/api/types';
import { memo } from '@polkadot/api-derive/util';

import { CurrencyId, Rate, ExchangeRate, Balance, Position, Ratio } from '@setheum-js/types/interfaces';
import { CurrencyId, Rate, ExchangeRate, Balance, Position, Ratio } from '@setheum.js/types/interfaces';

import { DerivedLoanConstants, DerivedLoanType, DerivedLoanOverView, CollateralParams } from '../types/loan';
import { getAllCollateralCurrencyIds } from '../utils';
Expand Down
2 changes: 1 addition & 1 deletion packages/api-derive/src/loan/loan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Observable, combineLatest } from 'rxjs';
import { map } from 'rxjs/operators';
import { ApiInterfaceRx } from '@polkadot/api/types';

import { CurrencyId, AccountId, Position } from '@setheum-js/types/interfaces';
import { CurrencyId, AccountId, Position } from '@setheum.js/types/interfaces';
import { memo } from '@polkadot/api-derive/util';

import { DerivedUserLoan } from '../types/loan';
Expand Down
2 changes: 1 addition & 1 deletion packages/api-derive/src/types/balance.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Balance, CurrencyId } from '@setheum-js/types/interfaces';
import { Balance, CurrencyId } from '@setheum.js/types/interfaces';

export interface DerivedBalance {
currency: CurrencyId | string;
Expand Down
2 changes: 1 addition & 1 deletion packages/api-derive/src/types/dex.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { Balance } from '@setheum-js/types/interfaces';
import { Balance } from '@setheum.js/types/interfaces';

export type DerivedDexPool = [Balance, Balance];
2 changes: 1 addition & 1 deletion packages/api-derive/src/types/loan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
AccountId,
Balance,
ExchangeRate
} from '@setheum-js/types/interfaces';
} from '@setheum.js/types/interfaces';

export interface DerivedLoanConstants {
minimumDebitValue: Balance;
Expand Down
2 changes: 1 addition & 1 deletion packages/api-derive/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ApiInterfaceRx } from '@polkadot/api/types';
import { Vec } from '@polkadot/types';
import { CurrencyId } from '@setheum-js/types/interfaces';
import { CurrencyId } from '@setheum.js/types/interfaces';

export function getAllCollateralCurrencyIds(api: ApiInterfaceRx): Vec<CurrencyId> {
/* eslint-disable-next-line @typescript-eslint/no-unsafe-member-access */
Expand Down
2 changes: 1 addition & 1 deletion packages/api/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @setheum-js/api
# @setheum.js/api

Contains necessary options to create a polkadot.js API instance
6 changes: 3 additions & 3 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@setheum-js/api",
"name": "@setheum.js/api",
"version": "1.0.0",
"description": "Setheum JS API",
"main": "index.js",
Expand All @@ -15,8 +15,8 @@
},
"homepage": "https://github.com/setheum-js/setheum.js",
"dependencies": {
"@setheum-js/api-derive": "1.0.0",
"@setheum-js/types": "1.0.0",
"@setheum.js/api-derive": "1.0.0",
"@setheum.js/types": "1.0.0",
"@babel/runtime": "^7.10.2",
"@open-web3/orml-api-derive": "^1.0.2-0",
"@polkadot/api": "^6.3.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { derive as ormlDerives } from '@open-web3/orml-api-derive';
import { derive as setheumDerives } from '@setheum-js/api-derive';
import { derive as setheumDerives } from '@setheum.js/api-derive';
import {
rpc as setheumRpc,
types as setheumTypes,
typesAlias as setheumTypesAlias,
typesBundle as setheumTypesBundle,
signedExtensions as setheumSignedExtensions
} from '@setheum-js/types';
} from '@setheum.js/types';
import { ApiOptions } from '@polkadot/api/types';

export const defaultOptions: ApiOptions = {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-util/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @setheum-js/app-util
# @setheum.js/app-util

Utilities to work with Setheum Network
2 changes: 1 addition & 1 deletion packages/app-util/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@setheum-js/app-util",
"name": "@setheum.js/app-util",
"version": "1.0.0",
"description": "Utilities to work with Setheum Network",
"author": "Setheum Labs",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-core/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# @setheum-js/sdk-core
# @setheum.js/sdk-core
6 changes: 3 additions & 3 deletions packages/sdk-core/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@setheum-js/sdk-core",
"name": "@setheum.js/sdk-core",
"version": "1.0.0",
"description": "the core of Setheum Network sdk",
"main": "index.js",
Expand All @@ -15,8 +15,8 @@
},
"homepage": "https://github.com/setheum-js/setheum.js",
"dependencies": {
"@setheum-js/api": "1.0.0",
"@setheum-js/type-definitions": "1.0.0",
"@setheum.js/api": "1.0.0",
"@setheum.js/type-definitions": "1.0.0",
"@polkadot/api": "^6.3.1",
"@polkadot/types": "^6.3.1",
"@types/events": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-core/src/converter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CurrencyId } from '@setheum-js/types/interfaces';
import { CurrencyId } from '@setheum.js/types/interfaces';
import { Token } from './token';
import { AnyApi, MaybeCurrency } from './types';

Expand Down
4 changes: 2 additions & 2 deletions packages/sdk-core/src/token-pair.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Token } from '@setheum-js/sdk-core/token';
import { CurrencyId, TradingPair } from '@setheum-js/types/interfaces';
import { Token } from '@setheum.js/sdk-core/token';
import { CurrencyId, TradingPair } from '@setheum.js/types/interfaces';
import { assert } from '@polkadot/util';
import { AnyApi } from './types';

Expand Down
4 changes: 2 additions & 2 deletions packages/sdk-core/src/token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CurrencyId, TokenSymbol, DexShare, TradingPair } from '@setheum-js/types/interfaces';
import primitivesConfig from '@setheum-js/type-definitions/primitives';
import { CurrencyId, TokenSymbol, DexShare, TradingPair } from '@setheum.js/types/interfaces';
import primitivesConfig from '@setheum.js/type-definitions/primitives';
import { assert } from '@polkadot/util';

import { AnyApi } from './types';
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-core/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CurrencyId } from '@setheum-js/types/interfaces';
import { CurrencyId } from '@setheum.js/types/interfaces';
import { ApiPromise, ApiRx } from '@polkadot/api';
import { AccountId } from '@polkadot/types/interfaces';
import { Codec, Observable } from '@polkadot/types/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-loan/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# @setheum-js/sdk-loan
# @setheum.js/sdk-loan
6 changes: 3 additions & 3 deletions packages/sdk-loan/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@setheum-js/sdk-loan",
"name": "@setheum.js/sdk-loan",
"version": "1.0.0",
"description": "the loan sub module in Setheum Network sdk",
"main": "index.js",
Expand All @@ -15,8 +15,8 @@
},
"homepage": "https://github.com/setheum-js/setheum.js",
"dependencies": {
"@setheum-js/api-derive": "1.0.0",
"@setheum-js/sdk-core": "1.0.0",
"@setheum.js/api-derive": "1.0.0",
"@setheum.js/sdk-core": "1.0.0",
"@polkadot/api": "^6.3.1",
"@polkadot/types": "^6.3.1",
"lodash": "^4.17.20",
Expand Down
8 changes: 4 additions & 4 deletions packages/sdk-loan/src/loan.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Observable, combineLatest } from 'rxjs';
import { map } from 'rxjs/operators';
import { assert } from '@polkadot/util';
import { FixedPointNumber, forceToCurrencyId, MaybeCurrency, Token } from '@setheum-js/sdk-core';
import { CurrencyId, Position } from '@setheum-js/types/interfaces';
import { DerivedLoanType } from '@setheum-js/api-derive';
import { FixedPointNumber, forceToCurrencyId, MaybeCurrency, Token } from '@setheum.js/sdk-core';
import { CurrencyId, Position } from '@setheum.js/types/interfaces';
import { DerivedLoanType } from '@setheum.js/api-derive';
import { ApiRx } from '@polkadot/api';
import { WalletRx } from '@setheum-js/sdk-wallet';
import { WalletRx } from '@setheum.js/sdk-wallet';
import { memoize } from 'lodash';

export interface LoanParams {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# @setheum-js/sdk-swap
# @setheum.js/sdk-swap
4 changes: 2 additions & 2 deletions packages/sdk-swap/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@setheum-js/sdk-swap",
"name": "@setheum.js/sdk-swap",
"version": "1.0.0",
"description": "the swap sub module in Setheum Network sdk",
"main": "index.js",
Expand All @@ -15,7 +15,7 @@
},
"homepage": "https://github.com/setheum-js/setheum.js",
"dependencies": {
"@setheum-js/sdk-core": "1.0.0",
"@setheum.js/sdk-core": "1.0.0",
"@polkadot/api": "^6.3.1",
"@polkadot/types": "^6.3.1",
"lodash": "^4.17.20",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/src/liquidity-pool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FixedPointNumber, Token } from '@setheum-js/sdk-core';
import { FixedPointNumber, Token } from '@setheum.js/sdk-core';

interface LiquidityPoolState {
token0: Token;
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/src/swap-base.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ApiPromise, ApiRx } from '@polkadot/api';
import { Observable, BehaviorSubject } from 'rxjs';
import { map } from 'rxjs/operators';
import { Token, TokenBalance, TokenPair, FixedPointNumber } from '@setheum-js/sdk-core';
import { Token, TokenBalance, TokenPair, FixedPointNumber } from '@setheum.js/sdk-core';

import { getSupplyAmount, getTargetAmount } from './utils';
import { LiquidityPool, SwapResult, Fee, SwapTradeMode, MiddleResult } from './types';
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/src/swap-parameters.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Token, FixedPointNumber, TokenBalance } from '@setheum-js/sdk-core';
import { Token, FixedPointNumber, TokenBalance } from '@setheum.js/sdk-core';

import { SwapTradeMode } from './types';

Expand Down
6 changes: 3 additions & 3 deletions packages/sdk-swap/src/swap-promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ApiPromise } from '@polkadot/api';
import { memoize } from '@polkadot/util';
import { Observable, from, of } from 'rxjs';
import { switchMap, map, shareReplay, withLatestFrom, filter, take } from 'rxjs/operators';
import { Balance } from '@setheum-js/types/interfaces';
import { eventMethodsFilter, Token, TokenPair, TokenSet } from '@setheum-js/sdk-core';
import { FixedPointNumber } from '@setheum-js/sdk-core/fixed-point-number';
import { Balance } from '@setheum.js/types/interfaces';
import { eventMethodsFilter, Token, TokenPair, TokenSet } from '@setheum.js/sdk-core';
import { FixedPointNumber } from '@setheum.js/sdk-core/fixed-point-number';
import { ITuple } from '@polkadot/types/types';

import { SwapParameters } from './swap-parameters';
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk-swap/src/swap-rx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ApiRx } from '@polkadot/api';
import { memoize } from '@polkadot/util';
import { Observable, from, of } from 'rxjs';
import { filter, switchMap, startWith, map, shareReplay, withLatestFrom } from 'rxjs/operators';
import { Balance, TradingPairStatus } from '@setheum-js/types/interfaces';
import { eventMethodsFilter, mockEventRecord, Token, TokenPair, TokenSet } from '@setheum-js/sdk-core';
import { FixedPointNumber } from '@setheum-js/sdk-core/fixed-point-number';
import { Balance, TradingPairStatus } from '@setheum.js/types/interfaces';
import { eventMethodsFilter, mockEventRecord, Token, TokenPair, TokenSet } from '@setheum.js/sdk-core';
import { FixedPointNumber } from '@setheum.js/sdk-core/fixed-point-number';
import { ITuple } from '@polkadot/types/types';

import { SwapParameters } from './swap-parameters';
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/src/trade-graph.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Token, TokenPair } from '@setheum-js/sdk-core';
import { Token, TokenPair } from '@setheum.js/sdk-core';
import { TradeGraph } from './trade-graph';

describe('trade graph', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/src/trade-graph.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Token, TokenPair } from '@setheum-js/sdk-core';
import { Token, TokenPair } from '@setheum.js/sdk-core';
import { set } from 'lodash';

function tokenEq(token1: Token, token2: Token) {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Token, FixedPointNumber, TokenBalance } from '@setheum-js/sdk-core';
import { Token, FixedPointNumber, TokenBalance } from '@setheum.js/sdk-core';

export interface LiquidityPool {
token1: Token;
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/src/utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getSupplyAmount, getTargetAmount } from './utils';
import { FixedPointNumber } from '@setheum-js/sdk-core';
import { FixedPointNumber } from '@setheum.js/sdk-core';

describe('test getSupplyAmount, getTargetAmount', () => {
const fee = {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-swap/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FixedPointNumber } from '@setheum-js/sdk-core';
import { FixedPointNumber } from '@setheum.js/sdk-core';
import { Fee } from './types';

// get how much target amount will be got fro specific supply amount and price impact
Expand Down
Loading