Skip to content

Commit

Permalink
Merge branch 'main' of github.com:SocketDotTech/socket-v2-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
salil-naik committed May 14, 2023
2 parents 359c3b3 + 099db7e commit 4818c33
Show file tree
Hide file tree
Showing 14 changed files with 1,379 additions and 1,337 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@socket.tech/socket-v2-sdk",
"version": "1.21.10",
"version": "1.21.11",
"module": "lib/src/index.js",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
Expand Down Expand Up @@ -40,7 +40,7 @@
"typescript": "^4.6.4"
},
"dependencies": {
"@socket.tech/ll-core": "^0.1.14",
"@socket.tech/ll-core": "^0.1.36",
"@socket.tech/ll-core-v2": "^0.0.32",
"axios": "^0.27.2",
"ethers": "^5.6.5",
Expand Down
2 changes: 1 addition & 1 deletion src/baseSocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { SocketTx } from "./socketTx";
import { TokenList } from "./tokenList";
import { QuoteParams, SocketOptions, SocketQuote } from "./types";
import { Web3Provider } from "@ethersproject/providers";
import { ChainId } from "@socket.tech/ll-core/constants/types";
import { ChainId } from "@socket.tech/ll-core";
import { ActiveRoutesRequest } from "./client/models/ActiveRoutesRequest";
import { SocketPreferences } from "./client/models/SocketPreferences";
import { TokenListRequest } from "./client/models/TokenListRequest";
Expand Down
2 changes: 1 addition & 1 deletion src/client/models/BalanceResult.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChainId } from "@socket.tech/ll-core/constants/types";
import { ChainId } from "@socket.tech/ll-core";

export type BalanceResult = {
chainId: ChainId;
Expand Down
2 changes: 1 addition & 1 deletion src/client/models/BridgeDetails.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Bridge } from "@socket.tech/ll-core/constants/types";
import { Bridge } from "@socket.tech/ll-core";

export import BridgeName = Bridge;

Expand Down
2 changes: 1 addition & 1 deletion src/client/models/ChainId.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { ChainId } from "@socket.tech/ll-core/constants/types";
import { ChainId } from "@socket.tech/ll-core";

export import ChainId = ChainId;
2 changes: 1 addition & 1 deletion src/client/models/Dexes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { Middleware } from "@socket.tech/ll-core/constants/types";
import { Middleware } from "@socket.tech/ll-core";

export type Dexes = Middleware.OneInch | Middleware.ZeroX;
2 changes: 1 addition & 1 deletion src/client/models/SingleTxResponse.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ApprovalData } from "./ApprovalData";
import { TxType } from "./TxType";
import { UserTxType } from "./UserTxType";
import { ChainId } from "@socket.tech/ll-core/constants/types";
import { ChainId } from "@socket.tech/ll-core";

export type SingleTxResponse = {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/client/services/Supported.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { SupportedChainsOutputDTO } from "../models/SupportedChainsOutputDT
import type { CancelablePromise } from "../core/CancelablePromise";
import { OpenAPI } from "../core/OpenAPI";
import { request as __request } from "../core/request";
import { ChainId } from "@socket.tech/ll-core/constants/types";
import { ChainId } from "@socket.tech/ll-core";

export class Supported {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/socket.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { UserTxType } from "./client/models/UserTxType";
import { TxType } from "./client/models/TxType";
import { BridgeName } from "./client/models/BridgeDetails";
import { PrepareActiveRouteStatus } from "./client/models/RouteStatusOutputDTO";
import { Middleware } from "@socket.tech/ll-core/constants/types";
import { Middleware } from "@socket.tech/ll-core";

jest.mock("./client/services/Routes");
const mockedRoutes = jest.mocked(Routes, true);
Expand Down
2 changes: 1 addition & 1 deletion src/socketTx.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { addresses as socketV1Addresses } from "@socket.tech/ll-core";
import { addresses as socketV2Addresses } from "@socket.tech/ll-core-v2";
import { Bridge, ChainId } from "@socket.tech/ll-core/constants/types";
import { Bridge, ChainId } from "@socket.tech/ll-core";
import { BigNumber } from "ethers";
import { Approvals, NextTxResponse, Routes } from "./client";
import { PrepareActiveRouteStatus } from "./client/models/RouteStatusOutputDTO";
Expand Down
2 changes: 1 addition & 1 deletion src/tokenList.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChainId } from "@socket.tech/ll-core/constants/types";
import { ChainId } from "@socket.tech/ll-core";
import { Token } from ".";
import { NATIVE_TOKEN_ADDRESS } from "./constants";

Expand Down
2 changes: 1 addition & 1 deletion src/web3ConnectedSocket.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Web3Provider } from "@ethersproject/providers";
import { ChainId } from "@socket.tech/ll-core/constants/types";
import { ChainId } from "@socket.tech/ll-core";
import { ethers } from "ethers";
import { SocketOptions, SocketQuote } from "./types";
import { SocketTx } from ".";
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"declaration": true,
"module": "commonjs",
"moduleResolution": "node",
"strict": true,
"strict": false,
"allowSyntheticDefaultImports": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
Expand Down
2,688 changes: 1,365 additions & 1,323 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 4818c33

Please sign in to comment.