mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-13 21:52:36 +03:00
Bump contracts
This commit is contained in:
18
package-lock.json
generated
18
package-lock.json
generated
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.10.4-rc.4",
|
||||
"version": "0.10.4-rc.6",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.10.4-rc.4",
|
||||
"version": "0.10.4-rc.6",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@ethersproject/abstract-signer": "^5.6.0",
|
||||
"@ethersproject/providers": "^5.6.2",
|
||||
"@lukeed/csprng": "^1.0.1",
|
||||
"@orionprotocol/contracts": "0.0.7",
|
||||
"@orionprotocol/contracts": "0.0.8",
|
||||
"bignumber.js": "^9.0.2",
|
||||
"buffer": "^6.0.3",
|
||||
"crypto-browserify": "^3.12.0",
|
||||
@@ -2486,9 +2486,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@orionprotocol/contracts": {
|
||||
"version": "0.0.7",
|
||||
"resolved": "https://registry.npmjs.org/@orionprotocol/contracts/-/contracts-0.0.7.tgz",
|
||||
"integrity": "sha512-v8+3gff6LdqSzJTkNyw422N8memes+yrgss4Sc6KcNBPyqqjm0apiS3wpKKVpJSsZekWrVferiTPuiwLhiVo1Q=="
|
||||
"version": "0.0.8",
|
||||
"resolved": "https://registry.npmjs.org/@orionprotocol/contracts/-/contracts-0.0.8.tgz",
|
||||
"integrity": "sha512-dgfowYXTf2nu/o9wcQbnLZg+kF7mJusP62unGSxhRKjquVrF1qids+lpSyjvbA9KT/XYKbXg61tXOZ9pOdrBTw=="
|
||||
},
|
||||
"node_modules/@sinonjs/commons": {
|
||||
"version": "1.8.3",
|
||||
@@ -12342,9 +12342,9 @@
|
||||
}
|
||||
},
|
||||
"@orionprotocol/contracts": {
|
||||
"version": "0.0.7",
|
||||
"resolved": "https://registry.npmjs.org/@orionprotocol/contracts/-/contracts-0.0.7.tgz",
|
||||
"integrity": "sha512-v8+3gff6LdqSzJTkNyw422N8memes+yrgss4Sc6KcNBPyqqjm0apiS3wpKKVpJSsZekWrVferiTPuiwLhiVo1Q=="
|
||||
"version": "0.0.8",
|
||||
"resolved": "https://registry.npmjs.org/@orionprotocol/contracts/-/contracts-0.0.8.tgz",
|
||||
"integrity": "sha512-dgfowYXTf2nu/o9wcQbnLZg+kF7mJusP62unGSxhRKjquVrF1qids+lpSyjvbA9KT/XYKbXg61tXOZ9pOdrBTw=="
|
||||
},
|
||||
"@sinonjs/commons": {
|
||||
"version": "1.8.3",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.10.4-rc.6",
|
||||
"version": "0.10.4-rc.7",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/esm/index.js",
|
||||
"module": "./lib/esm/index.js",
|
||||
"types": "./lib/esm/types.d.ts",
|
||||
"types": "./lib/esm/index.d.ts",
|
||||
"scripts": {
|
||||
"start": "npm run build && node lib/esm/index.js",
|
||||
"develop": "concurrently -i -k -p \"[{name}]\" -n \"Node,TypeScript\" -c \"yellow.bold,cyan.bold\" \"yarn watch-js\" \"yarn watch-ts\"",
|
||||
@@ -12,6 +12,7 @@
|
||||
"watch-ts": "tsc -w --skipLibCheck",
|
||||
"watch-js": "nodemon lib/esm/index.js",
|
||||
"prepare": "npm run build",
|
||||
"prebuild": "tsc",
|
||||
"build": "webpack",
|
||||
"test": "exit 0",
|
||||
"coverage": "jest --coverage",
|
||||
@@ -59,7 +60,7 @@
|
||||
"@ethersproject/abstract-signer": "^5.6.0",
|
||||
"@ethersproject/providers": "^5.6.2",
|
||||
"@lukeed/csprng": "^1.0.1",
|
||||
"@orionprotocol/contracts": "0.0.7",
|
||||
"@orionprotocol/contracts": "0.0.8",
|
||||
"bignumber.js": "^9.0.2",
|
||||
"buffer": "^6.0.3",
|
||||
"crypto-browserify": "^3.12.0",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import BigNumber from 'bignumber.js';
|
||||
import { ethers } from 'ethers';
|
||||
import clone from 'just-clone';
|
||||
import { ERC20__factory } from '@orionprotocol/contracts/ethers';
|
||||
import { ERC20__factory } from '@orionprotocol/contracts';
|
||||
import { utils } from '.';
|
||||
import { APPROVE_ERC20_GAS_LIMIT, NATIVE_CURRENCY_PRECISION } from './constants';
|
||||
import {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable max-len */
|
||||
import BigNumber from 'bignumber.js';
|
||||
import { ethers } from 'ethers';
|
||||
import { Exchange__factory } from '@orionprotocol/contracts/ethers';
|
||||
import { Exchange__factory } from '@orionprotocol/contracts';
|
||||
import getBalances from '../../utils/getBalances';
|
||||
import BalanceGuard from '../../BalanceGuard';
|
||||
import OrionUnit from '..';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* eslint-disable max-len */
|
||||
import BigNumber from 'bignumber.js';
|
||||
import { ethers } from 'ethers';
|
||||
import { Exchange__factory } from '@orionprotocol/contracts/ethers';
|
||||
import { Exchange__factory } from '@orionprotocol/contracts';
|
||||
import getBalances from '../../utils/getBalances';
|
||||
import BalanceGuard from '../../BalanceGuard';
|
||||
import getAvailableSources from '../../utils/getAvailableFundsSources';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable max-len */
|
||||
import BigNumber from 'bignumber.js';
|
||||
import { ethers } from 'ethers';
|
||||
import { Exchange__factory } from '@orionprotocol/contracts/ethers';
|
||||
import { Exchange__factory } from '@orionprotocol/contracts';
|
||||
import getBalances from '../../utils/getBalances';
|
||||
import BalanceGuard from '../../BalanceGuard';
|
||||
import OrionUnit from '..';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Exchange__factory, IUniswapV2Pair__factory, IUniswapV2Router__factory } from '@orionprotocol/contracts/ethers';
|
||||
import { Exchange__factory, IUniswapV2Pair__factory, IUniswapV2Router__factory } from '@orionprotocol/contracts';
|
||||
import BigNumber from 'bignumber.js';
|
||||
import { ethers } from 'ethers';
|
||||
import OrionUnit from '..';
|
||||
|
||||
@@ -3,8 +3,8 @@ import { Provider } from '@ethersproject/providers';
|
||||
import {
|
||||
Exchange as ExchangeContract,
|
||||
Exchange__factory as ExchangeContract__factory,
|
||||
} from '@orionprotocol/contracts/ethers';
|
||||
import { LibAtomic } from '@orionprotocol/contracts/ethers/Exchange';
|
||||
} from '@orionprotocol/contracts';
|
||||
import { LibAtomic } from '@orionprotocol/contracts/lib/ethers/Exchange';
|
||||
import { BytesLike, ethers, Signer } from 'ethers';
|
||||
import {
|
||||
DEPOSIT_ERC20_GAS_LIMIT, DEPOSIT_ETH_GAS_LIMIT, LOCKATOMIC_GAS_LIMIT,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable camelcase */
|
||||
import { ERC20__factory } from '@orionprotocol/contracts/ethers';
|
||||
import { ERC20__factory } from '@orionprotocol/contracts';
|
||||
import { ethers } from 'ethers';
|
||||
import invariant from 'tiny-invariant';
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { ERC20__factory } from '@orionprotocol/contracts/ethers';
|
||||
import type { Exchange } from '@orionprotocol/contracts/ethers';
|
||||
import { ERC20__factory, Exchange } from '@orionprotocol/contracts';
|
||||
|
||||
import BigNumber from 'bignumber.js';
|
||||
import { ethers } from 'ethers';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Exchange } from '@orionprotocol/contracts/ethers';
|
||||
import { Exchange } from '@orionprotocol/contracts';
|
||||
import BigNumber from 'bignumber.js';
|
||||
import { ethers } from 'ethers';
|
||||
import { OrionAggregator } from '../services/OrionAggregator';
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
||||
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
||||
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
|
||||
"outDir": "./lib", /* Specify an output folder for all emitted files. */
|
||||
"outDir": "./lib/esm", /* Specify an output folder for all emitted files. */
|
||||
// "removeComments": true, /* Disable emitting comments. */
|
||||
// "noEmit": true, /* Disable emitting files from a compilation. */
|
||||
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
||||
|
||||
@@ -3,35 +3,25 @@ const path = require("path");
|
||||
module.exports = (env, argv) => {
|
||||
return {
|
||||
mode: "production",
|
||||
entry: './src/index.ts',
|
||||
// devtool: 'inline-source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
use: [{
|
||||
loader: 'ts-loader',
|
||||
options: { allowTsInNodeModules: true }
|
||||
}]
|
||||
},
|
||||
],
|
||||
entry: {
|
||||
index: path.resolve(__dirname, "./lib/esm/index.js")
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, "lib"), // builds to ./lib
|
||||
path: path.resolve(__dirname, "./lib/umd"), // builds to ./lib/umd/
|
||||
filename: "[name].js", // index.js
|
||||
library: {
|
||||
name: 'orionprotocol', // aka window.myLibrary
|
||||
type: 'umd', // supports commonjs, amd and web browsers
|
||||
},
|
||||
library: "orionprotocol", // aka window.myLibrary
|
||||
libraryTarget: "umd", // supports commonjs, amd and web browsers
|
||||
globalObject: "this"
|
||||
},
|
||||
module: {
|
||||
rules: [{ test: /\.t|js$/, use: "babel-loader" }]
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.ts', '.js'],
|
||||
// fallback: {
|
||||
// "crypto": require.resolve("crypto-browserify"),
|
||||
// "buffer": require.resolve("buffer/"),
|
||||
// "stream": require.resolve("stream-browserify"),
|
||||
// }
|
||||
fallback: {
|
||||
"crypto": require.resolve("crypto-browserify"),
|
||||
"buffer": require.resolve("buffer/"),
|
||||
"stream": require.resolve("stream-browserify"),
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user