Skip to content

Commit

Permalink
Merge pull request #82 from Cryptorubic/feature/celer-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
axtezy authored May 30, 2022
2 parents 2554350 + 65be9ef commit 5a705e6
Show file tree
Hide file tree
Showing 184 changed files with 3,889 additions and 1,627 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
/coverage/
/__tests__/env.js
/lib/
/dist/
/cache/
/scripts/node.log
/docker-compose.yml
2 changes: 1 addition & 1 deletion __tests__/api-tests/cross-chain-trades.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/BLOCKCHAIN_NAME';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';
import { SDK } from '@core/sdk/sdk';
import { minimalConfiguration } from '../utils/configuration';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/api-tests/instant-trades.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/BLOCKCHAIN_NAME';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';
import { SDK } from '@core/sdk/sdk';
import { minimalConfiguration } from '../utils/configuration';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit-tests/common/utils/p-timeout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('p-timeout tests', () => {
customTimers: {
setTimeout: function (handler: () => void, timeout?: number) {
setTimeoutSpy(timeout);
return setTimeout(handler as unknown as () => void, timeout);
return setTimeout(handler as unknown as () => void, timeout || 1000);
} as typeof setTimeout,
clearTimeout(timeoutId) {
clearTimeoutSpy();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { JoeProvider } from 'src/features/instant-trades/dexes/avalanche/joe/joe-provider';
import { JoeTrade } from 'src/features/instant-trades/dexes/avalanche/joe/joe-trade';
import { JOE_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/avalanche/joe/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const joeAvalancheProviderSpec = () => {
describe('Joe provider tests', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { PangolinProvider } from 'src/features/instant-trades/dexes/avalanche/pangolin/pangolin-provider';
import { PangolinTrade } from 'src/features/instant-trades/dexes/avalanche/pangolin/pangolin-trade';
import { PANGOLIN_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/avalanche/pangolin/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const pangolinAvalancheProviderSpec = () => {
describe('Pangolin provider tests', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { SushiSwapAvalancheProvider } from 'src/features/instant-trades/dexes/avalanche/sushi-swap-avalanche/sushi-swap-avalanche-provider';
import { SushiSwapAvalancheTrade } from 'src/features/instant-trades/dexes/avalanche/sushi-swap-avalanche/sushi-swap-avalanche-trade';
import { SUSHI_SWAP_AVALANCHE_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/avalanche/sushi-swap-avalanche/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const sushiSwapAvalancheProviderSpec = () => {
describe('SushiSwap provider tests', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { TRADE_TYPE } from 'src/features';
import { OneinchBscProvider } from 'src/features/instant-trades/dexes/bsc/oneinch-bsc/oneinch-bsc-provider';
import { mockEmptyInjector } from '__tests__/utils/mock-injector';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const oneinchBscProviderSpec = () => {
let oneinchProvider: OneinchBscProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { PancakeSwapProvider } from 'src/features/instant-trades/dexes/bsc/pancake-swap/pancake-swap-provider';
import { PancakeSwapTrade } from 'src/features/instant-trades/dexes/bsc/pancake-swap/pancake-swap-trade';
import { PANCAKE_SWAP_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/bsc/pancake-swap/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const pancakeSwapBscProviderSpec = () => {
let pancakeSwapProvider: PancakeSwapProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { SushiSwapBscProvider } from 'src/features/instant-trades/dexes/bsc/sushi-swap-bsc/sushi-swap-bsc-provider';
import { SushiSwapBscTrade } from 'src/features/instant-trades/dexes/bsc/sushi-swap-bsc/sushi-swap-bsc-trade';
import { SUSHI_SWAP_BSC_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/bsc/sushi-swap-bsc/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const sushiSwapBscProviderSpec = () => {
let sushiSwapBscProvider: SushiSwapBscProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { TRADE_TYPE } from 'src/features';
import { OneinchEthereumProvider } from 'src/features/instant-trades/dexes/ethereum/oneinch-ethereum/oneinch-ethereum-provider';
import { mockEmptyInjector } from '__tests__/utils/mock-injector';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const oneinchProviderEthereumSpec = () => {
let oneinchProvider: OneinchEthereumProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { SushiSwapEthereumProvider } from 'src/features/instant-trades/dexes/ethereum/sushi-swap-ethereum/sushi-swap-ethereum-provider';
import { SUSHI_SWAP_ETHEREUM_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/ethereum/sushi-swap-ethereum/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const sushiSwapProviderEthereumSpec = () => {
let sushiSwapProvider: SushiSwapEthereumProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Chain } from '__tests__/utils/chain';
import { mockInjector } from '__tests__/utils/mock-injector';
import { TOKENS as ALL_TOKENS } from '__tests__/utils/tokens';
import BigNumber from 'bignumber.js';
import { BLOCKCHAIN_NAME } from 'src/core';
import { PriceTokenAmount } from 'src/core/blockchain/tokens/price-token-amount';
import { PriceToken } from 'src/core/blockchain/tokens/price-token';
import { UniSwapV2EthereumProvider } from 'src/features/instant-trades/dexes/ethereum/uni-swap-v2-ethereum/uni-swap-v2-ethereum-provider';
import { UniSwapV2EthereumTrade } from 'src/features/instant-trades/dexes/ethereum/uni-swap-v2-ethereum/uni-swap-v2-ethereum-trade';
import { UNISWAP_V2_ETHEREUM_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/ethereum/uni-swap-v2-ethereum/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

const TOKENS = ALL_TOKENS[BLOCKCHAIN_NAME.ETHEREUM];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { mockInjector } from '__tests__/utils/mock-injector';
import { TOKENS as ALL_TOKENS } from '__tests__/utils/tokens';
import { Injector } from '@core/sdk/injector';
import BigNumber from 'bignumber.js';
import { BLOCKCHAIN_NAME, Web3Public } from 'src/core';
import { Web3Public } from 'src/core';
import { PriceTokenAmount } from 'src/core/blockchain/tokens/price-token-amount';
import { PriceToken } from 'src/core/blockchain/tokens/price-token';
import { TransactionReceipt } from 'web3-eth';
import { UniSwapV2EthereumProvider } from '@features/instant-trades/dexes/ethereum/uni-swap-v2-ethereum/uni-swap-v2-ethereum-provider';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';
import fn = jest.fn;

const TOKENS = ALL_TOKENS[BLOCKCHAIN_NAME.ETHEREUM];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { Chain } from '__tests__/utils/chain';
import { mockInjector } from '__tests__/utils/mock-injector';
import { TOKENS as ALL_TOKENS } from '__tests__/utils/tokens';
import BigNumber from 'bignumber.js';
import { BLOCKCHAIN_NAME } from 'src/core';
import { PriceTokenAmount } from 'src/core/blockchain/tokens/price-token-amount';
import { PriceToken } from 'src/core/blockchain/tokens/price-token';
import { UniSwapV3EthereumTrade } from 'src/features/instant-trades/dexes/ethereum/uni-swap-v3-ethereum/uni-swap-v3-ethereum-trade';
import { UNI_SWAP_V3_ETHEREUM_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/ethereum/uni-swap-v3-ethereum/constants/provider-configuration';
import { UNI_SWAP_V3_ETHEREUM_ROUTER_CONFIGURATION } from 'src/features/instant-trades/dexes/ethereum/uni-swap-v3-ethereum/constants/router-configuration';
import { UniSwapV3EthereumProvider } from 'src/features/instant-trades/dexes/ethereum/uni-swap-v3-ethereum/uni-swap-v3-ethereum-provider';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

const TOKENS = ALL_TOKENS[BLOCKCHAIN_NAME.ETHEREUM];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { TOKENS as ALL_TOKENS } from '__tests__/utils/tokens';
import { Utils } from '__tests__/unit-tests/features/swap/utils/utils';
import { Injector } from '@core/sdk/injector';
import BigNumber from 'bignumber.js';
import { BLOCKCHAIN_NAME, Web3Public } from 'src/core';
import { Web3Public } from 'src/core';
import { PriceTokenAmount } from 'src/core/blockchain/tokens/price-token-amount';
import { PriceToken } from 'src/core/blockchain/tokens/price-token';
import { UniSwapV3EthereumProvider } from 'src/features/instant-trades/dexes/ethereum/uni-swap-v3-ethereum/uni-swap-v3-ethereum-provider';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';
import fn = jest.fn;

const TOKENS = ALL_TOKENS[BLOCKCHAIN_NAME.ETHEREUM];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { TRADE_TYPE } from 'src/features';
import { ZrxEthereumProvider } from 'src/features/instant-trades/dexes/ethereum/zrx-ethereum/zrx-ethereum-provider';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const zrxProviderEthereumSpec = () => {
let zrxProvider: ZrxEthereumProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { SushiSwapFantomProvider } from 'src/features/instant-trades/dexes/fantom/sushi-swap-fantom/sushi-swap-fantom-provider';
import { SushiSwapFantomTrade } from 'src/features/instant-trades/dexes/fantom/sushi-swap-fantom/sushi-swap-fantom-trade';
import { SUSHI_SWAP_FANTOM_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/fantom/sushi-swap-fantom/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const sushiSwapFantomProviderSpec = () => {
let sushiSwapProvider: SushiSwapFantomProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { SushiSwapHarmonyProvider } from 'src/features/instant-trades/dexes/harmony/sushi-swap-harmony/sushi-swap-harmony-provider';
import { SushiSwapHarmonyTrade } from 'src/features/instant-trades/dexes/harmony/sushi-swap-harmony/sushi-swap-harmony-trade';
import { SUSHI_SWAP_HARMONY_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/harmony/sushi-swap-harmony/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const sushiSwapHarmonyProviderSpec = () => {
let sushiSwapProvider: SushiSwapHarmonyProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { SolarbeamProvider } from 'src/features/instant-trades/dexes/moonriver/solarbeam/solarbeam-provider';
import { SolarbeamTrade } from 'src/features/instant-trades/dexes/moonriver/solarbeam/solarbeam-trade';
import { SOLARBEAM_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/moonriver/solarbeam/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const solarbeamMoonriverProviderSpec = () => {
describe('Solarbeam provider tests', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { SushiSwapMoonriverProvider } from 'src/features/instant-trades/dexes/moonriver/sushi-swap-moonriver/sushi-swap-moonriver-provider';
import { SushiSwapMoonriverTrade } from 'src/features/instant-trades/dexes/moonriver/sushi-swap-moonriver/sushi-swap-moonriver-trade';
import { SUSHI_SWAP_MOONRIVER_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/moonriver/sushi-swap-moonriver/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const sushiSwapMoonriverProviderSpec = () => {
describe('SushiSwap provider tests', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TRADE_TYPE } from 'src/features';
import { BLOCKCHAIN_NAME } from 'src/core';
import { OneinchPolygonProvider } from 'src/features/instant-trades/dexes/polygon/oneinch-polygon/oneinch-polygon-provider';
import { mockEmptyInjector } from '__tests__/utils/mock-injector';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const oneinchPolygonProviderSpec = () => {
describe('QuickSwap provider tests', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Chain } from '__tests__/utils/chain';
import { mockInjector } from '__tests__/utils/mock-injector';
import { TOKENS as ALL_TOKENS } from '__tests__/utils/tokens';
import BigNumber from 'bignumber.js';
import { BLOCKCHAIN_NAME } from 'src/core';
import { PriceTokenAmount } from 'src/core/blockchain/tokens/price-token-amount';
import { PriceToken } from 'src/core/blockchain/tokens/price-token';
import { QuickSwapProvider } from 'src/features/instant-trades/dexes/polygon/quick-swap/quick-swap-provider';
import { QuickSwapTrade } from 'src/features/instant-trades/dexes/polygon/quick-swap/quick-swap-trade';
import { QUICK_SWAP_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/polygon/quick-swap/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

const TOKENS = ALL_TOKENS[BLOCKCHAIN_NAME.POLYGON];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { mockInjector } from '__tests__/utils/mock-injector';
import { TOKENS as ALL_TOKENS } from '__tests__/utils/tokens';
import { PriceTokenAmount } from 'src/core/blockchain/tokens/price-token-amount';
import { PriceToken } from 'src/core/blockchain/tokens/price-token';
import { BLOCKCHAIN_NAME } from 'src/core';
import BigNumber from 'bignumber.js';
import { SushiSwapPolygonProvider } from 'src/features/instant-trades/dexes/polygon/sushi-swap-polygon/sushi-swap-polygon-provider';
import { SushiSwapPolygonTrade } from 'src/features/instant-trades/dexes/polygon/sushi-swap-polygon/sushi-swap-polygon-trade';
import { SUSHI_SWAP_POLYGON_PROVIDER_CONFIGURATION } from 'src/features/instant-trades/dexes/polygon/sushi-swap-polygon/constants';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

const TOKENS = ALL_TOKENS[BLOCKCHAIN_NAME.POLYGON];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Chain } from '__tests__/utils/chain';
import { mockInjector } from '__tests__/utils/mock-injector';
import { TOKENS as ALL_TOKENS } from '__tests__/utils/tokens';
import BigNumber from 'bignumber.js';
import { BLOCKCHAIN_NAME } from 'src/core';
import { PriceTokenAmount } from 'src/core/blockchain/tokens/price-token-amount';
import { PriceToken } from 'src/core/blockchain/tokens/price-token';
import { UniSwapV3PolygonProvider } from '@features/instant-trades/dexes/polygon/uni-swap-v3-polygon/uni-swap-v3-polygon-provider';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

const TOKENS = ALL_TOKENS[BLOCKCHAIN_NAME.POLYGON];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { TOKENS as ALL_TOKENS } from '__tests__/utils/tokens';
import { Utils } from '__tests__/unit-tests/features/swap/utils/utils';
import { Injector } from '@core/sdk/injector';
import BigNumber from 'bignumber.js';
import { BLOCKCHAIN_NAME, Web3Public } from 'src/core';
import { Web3Public } from 'src/core';
import { PriceTokenAmount } from 'src/core/blockchain/tokens/price-token-amount';
import { PriceToken } from 'src/core/blockchain/tokens/price-token';
import { UniSwapV3PolygonProvider } from 'src/features/instant-trades/dexes/polygon/uni-swap-v3-polygon/uni-swap-v3-polygon-provider';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';
import fn = jest.fn;

const TOKENS = ALL_TOKENS[BLOCKCHAIN_NAME.POLYGON];
Expand Down
4 changes: 2 additions & 2 deletions __tests__/utils/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DEFAULT_MNEMONIC } from '__tests__/utils/constants/mnemonic';
import { TOKENS_HOLDERS } from '__tests__/utils/tokens';
import axios from 'axios';
import BigNumber from 'bignumber.js';
import { BLOCKCHAIN_NAME, Configuration, Token } from 'src/core';
import { BlockchainName, Configuration, Token } from 'src/core';
import * as util from 'util';
import Web3 from 'web3';
import { HttpProvider } from 'web3-core';
Expand All @@ -33,7 +33,7 @@ export class Chain {
}

public static async reset(
blockchainName: BLOCKCHAIN_NAME,
blockchainName: BlockchainName,
blockNumber?: number
): Promise<Chain> {
const rpcUrl = publicProvidersRPC[blockchainName];
Expand Down
6 changes: 3 additions & 3 deletions __tests__/utils/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/BLOCKCHAIN_NAME';
import { BLOCKCHAIN_NAME, BlockchainName } from '@core/blockchain/models/blockchain-name';
import { Configuration } from 'src/core';

const baseRpcUrl = 'http://localhost';

const addPort = (port: number) => `${baseRpcUrl}:${port}`;

export const publicProvidersRPC: Partial<Record<BLOCKCHAIN_NAME, string>> = {
export const publicProvidersRPC: Partial<Record<BlockchainName, string>> = {
[BLOCKCHAIN_NAME.ETHEREUM]: addPort(8545),
[BLOCKCHAIN_NAME.BINANCE_SMART_CHAIN]: addPort(8546),
[BLOCKCHAIN_NAME.POLYGON]: addPort(8547)
};

export const publicProvidersSupportServerUrls: Partial<Record<BLOCKCHAIN_NAME, string>> = {
export const publicProvidersSupportServerUrls: Partial<Record<BlockchainName, string>> = {
[BLOCKCHAIN_NAME.ETHEREUM]: addPort(1545),
[BLOCKCHAIN_NAME.BINANCE_SMART_CHAIN]: addPort(1546),
[BLOCKCHAIN_NAME.POLYGON]: addPort(1547)
Expand Down
4 changes: 2 additions & 2 deletions __tests__/utils/models/global.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BLOCKCHAIN_NAME } from 'src/core';
import { BlockchainName } from 'src/core';

export interface Global {
sdkEnv: {
providers: Record<BLOCKCHAIN_NAME, { jsonRpcUrl: string; blockNumber: number }>;
providers: Record<BlockchainName, { jsonRpcUrl: string; blockNumber: number }>;
};
}
5 changes: 3 additions & 2 deletions __tests__/utils/tokens.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { NATIVE_TOKEN_ADDRESS } from '@core/blockchain/constants/native-token-address';
import { BLOCKCHAIN_NAME } from 'src/core';
import { BlockchainName } from 'src/core';
import { Token } from 'src/core/blockchain/tokens/token';
import { BLOCKCHAIN_NAME } from '@core/blockchain/models/blockchain-name';

export const TOKENS = {
[BLOCKCHAIN_NAME.ETHEREUM]: {
Expand Down Expand Up @@ -100,7 +101,7 @@ export const TOKENS = {
}
};

export const TOKENS_HOLDERS: Partial<Record<BLOCKCHAIN_NAME, Record<string, string>>> = {
export const TOKENS_HOLDERS: Partial<Record<BlockchainName, Record<string, string>>> = {
[BLOCKCHAIN_NAME.ETHEREUM]: {
'0xa4eed63db85311e22df4473f87ccfc3dadcfa3e3': '0x0541f3300307984984a587aeb7c34139e19124fa', // RBC
'0xdac17f958d2ee523a2206206994597c13d831ec7': '0x5754284f345afc66a98fbb0a0afe71e0f007b949' // USDT
Expand Down
45 changes: 0 additions & 45 deletions dist/rubic-sdk.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/rubic-sdk.min.js.map

This file was deleted.

16 changes: 0 additions & 16 deletions docker-compose.yml

This file was deleted.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubic-sdk",
"version": "1.2.2",
"version": "1.3.0",
"description": "Simplify dApp creation",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -41,6 +41,11 @@
"name": "Andrey Ott",
"email": "[email protected]",
"url": "https://github.com/ottebrut"
},
{
"name": "Sleta Dmitry",
"email": "[email protected]",
"url": "https://github.com/axtezy"
}
],
"license": "GPL-3.0",
Expand All @@ -56,7 +61,7 @@
"assert": "^2.0.0",
"axios": "^0.22.0",
"bignumber.js": "^9.0.1",
"web3": "~1.5.3"
"web3": "~1.7.3"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
Expand Down Expand Up @@ -89,6 +94,7 @@
"ts-loader": "^9.2.6",
"tsconfig-paths-webpack-plugin": "^3.5.2",
"tscpaths": "^0.0.9",
"typedoc": "^0.22.15",
"typescript": "^4.4.2",
"webpack": "^5.65.0",
"webpack-bundle-analyzer": "^4.5.0",
Expand Down
Loading

0 comments on commit 5a705e6

Please sign in to comment.