diff --git a/apps/explorer/tsconfig.json b/apps/explorer/tsconfig.json
index 213c874c4..d5aff9e2e 100644
--- a/apps/explorer/tsconfig.json
+++ b/apps/explorer/tsconfig.json
@@ -8,10 +8,11 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
- "noPropertyAccessFromIndexSignature": true,
+ "noPropertyAccessFromIndexSignature": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
- "lib": ["es5", "es6", "dom", "dom.iterable"]
+ "lib": ["es5", "es6", "dom", "dom.iterable"],
+ "resolveJsonModule": true
},
"files": [],
"include": [],
diff --git a/apps/token/src/components/transactions-modal/transactions-modal.tsx b/apps/token/src/components/transactions-modal/transactions-modal.tsx
index 23b5232c7..57acc30e6 100644
--- a/apps/token/src/components/transactions-modal/transactions-modal.tsx
+++ b/apps/token/src/components/transactions-modal/transactions-modal.tsx
@@ -1,4 +1,4 @@
-import type { TxData } from '@vegaprotocol/smart-contracts-sdk';
+import type { TxData } from '@vegaprotocol/smart-contracts';
import { Dialog, EtherscanLink } from '@vegaprotocol/ui-toolkit';
import React from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/apps/token/src/config/ethereum.ts b/apps/token/src/config/ethereum.ts
index 62d603843..f9f7e8e0f 100644
--- a/apps/token/src/config/ethereum.ts
+++ b/apps/token/src/config/ethereum.ts
@@ -1,8 +1,8 @@
-import type { EthereumChainId } from '@vegaprotocol/smart-contracts-sdk';
+import type { EthereumChainId } from '@vegaprotocol/smart-contracts';
import {
EnvironmentConfig,
EthereumChainIds,
-} from '@vegaprotocol/smart-contracts-sdk';
+} from '@vegaprotocol/smart-contracts';
import type { Networks } from './vega';
diff --git a/apps/token/src/contexts/app-state/app-state-context.ts b/apps/token/src/contexts/app-state/app-state-context.ts
index f0fa92853..1f4af80a3 100644
--- a/apps/token/src/contexts/app-state/app-state-context.ts
+++ b/apps/token/src/contexts/app-state/app-state-context.ts
@@ -1,4 +1,4 @@
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
import React from 'react';
import type { BigNumber } from '../../lib/bignumber';
diff --git a/apps/token/src/contexts/contracts/contracts-context.ts b/apps/token/src/contexts/contracts/contracts-context.ts
index 81751498c..d5ec9bc67 100644
--- a/apps/token/src/contexts/contracts/contracts-context.ts
+++ b/apps/token/src/contexts/contracts/contracts-context.ts
@@ -5,7 +5,7 @@ import type {
VegaStaking,
ERC20Token,
VegaVesting,
-} from '@vegaprotocol/smart-contracts-sdk';
+} from '@vegaprotocol/smart-contracts';
import React from 'react';
export interface ContractsContextShape {
diff --git a/apps/token/src/contexts/contracts/contracts-provider.tsx b/apps/token/src/contexts/contracts/contracts-provider.tsx
index 2904056fd..3fc6bd745 100644
--- a/apps/token/src/contexts/contracts/contracts-provider.tsx
+++ b/apps/token/src/contexts/contracts/contracts-provider.tsx
@@ -1,11 +1,11 @@
-import type { TxData } from '@vegaprotocol/smart-contracts-sdk';
+import type { TxData } from '@vegaprotocol/smart-contracts';
import {
VegaClaim,
VegaErc20Bridge,
VegaStaking,
ERC20Token,
VegaVesting,
-} from '@vegaprotocol/smart-contracts-sdk';
+} from '@vegaprotocol/smart-contracts';
import { Splash } from '@vegaprotocol/ui-toolkit';
import { useWeb3React } from '@web3-react/core';
import uniqBy from 'lodash/uniqBy';
diff --git a/apps/token/src/hooks/__mocks__/tranches-mock.ts b/apps/token/src/hooks/__mocks__/tranches-mock.ts
index 8627e2221..c943db27b 100644
--- a/apps/token/src/hooks/__mocks__/tranches-mock.ts
+++ b/apps/token/src/hooks/__mocks__/tranches-mock.ts
@@ -1,6 +1,6 @@
import parseJSON from 'date-fns/parseJSON';
import { BigNumber } from '../../lib/bignumber';
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
const json: Tranche[] = [
{
@@ -71,7 +71,7 @@ const json: Tranche[] = [
],
withdrawals: [],
total_tokens: new BigNumber('112323.67'),
- withdrawn_tokens: '0',
+ withdrawn_tokens: new BigNumber('0'),
remaining_tokens: new BigNumber('112323.67'),
},
],
@@ -254,7 +254,7 @@ const json: Tranche[] = [
],
withdrawals: [],
total_tokens: new BigNumber('44499.2'),
- withdrawn_tokens: '0',
+ withdrawn_tokens: new BigNumber('0'),
remaining_tokens: new BigNumber('44499.2'),
},
{
@@ -373,7 +373,7 @@ const json: Tranche[] = [
],
withdrawals: [],
total_tokens: new BigNumber('1104995.291'),
- withdrawn_tokens: '0',
+ withdrawn_tokens: new BigNumber('0'),
remaining_tokens: new BigNumber('1104995.291'),
},
{
diff --git a/apps/token/src/hooks/__mocks__/use-tranches.ts b/apps/token/src/hooks/__mocks__/use-tranches.ts
index 92ff1fbc4..42afaf090 100644
--- a/apps/token/src/hooks/__mocks__/use-tranches.ts
+++ b/apps/token/src/hooks/__mocks__/use-tranches.ts
@@ -1,7 +1,7 @@
import React from 'react';
import { useContracts } from '../../contexts/contracts/contracts-context';
import mock from './tranches-mock';
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
export function useTranches() {
const { vesting } = useContracts();
diff --git a/apps/token/src/hooks/use-get-association-breakdown.ts b/apps/token/src/hooks/use-get-association-breakdown.ts
index ca836ab3f..ae12a6419 100644
--- a/apps/token/src/hooks/use-get-association-breakdown.ts
+++ b/apps/token/src/hooks/use-get-association-breakdown.ts
@@ -1,9 +1,6 @@
import React from 'react';
import * as Sentry from '@sentry/react';
-import type {
- VegaStaking,
- VegaVesting,
-} from '@vegaprotocol/smart-contracts-sdk';
+import type { VegaStaking, VegaVesting } from '@vegaprotocol/smart-contracts';
import {
AppStateActionType,
diff --git a/apps/token/src/hooks/use-get-user-tranche-balances.ts b/apps/token/src/hooks/use-get-user-tranche-balances.ts
index 56787d39c..65d996d28 100644
--- a/apps/token/src/hooks/use-get-user-tranche-balances.ts
+++ b/apps/token/src/hooks/use-get-user-tranche-balances.ts
@@ -1,6 +1,6 @@
import React from 'react';
import * as Sentry from '@sentry/react';
-import type { VegaVesting } from '@vegaprotocol/smart-contracts-sdk';
+import type { VegaVesting } from '@vegaprotocol/smart-contracts';
import {
AppStateActionType,
diff --git a/apps/token/src/hooks/use-tranches.ts b/apps/token/src/hooks/use-tranches.ts
index e91f57754..b1bca1045 100644
--- a/apps/token/src/hooks/use-tranches.ts
+++ b/apps/token/src/hooks/use-tranches.ts
@@ -1,5 +1,5 @@
import { useFetch } from '@vegaprotocol/react-helpers';
-import type { Networks, Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Networks, Tranche } from '@vegaprotocol/smart-contracts';
import React, { useEffect } from 'react';
import { APP_ENV } from '../config';
diff --git a/apps/token/src/index.html b/apps/token/src/index.html
index 992a6a47a..bc6c9003f 100644
--- a/apps/token/src/index.html
+++ b/apps/token/src/index.html
@@ -17,8 +17,14 @@
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
+
Vega Token dApp
-
diff --git a/apps/token/src/lib/__mocks__/generate-tranche.ts b/apps/token/src/lib/__mocks__/generate-tranche.ts
index de4919d2a..76faefdf0 100644
--- a/apps/token/src/lib/__mocks__/generate-tranche.ts
+++ b/apps/token/src/lib/__mocks__/generate-tranche.ts
@@ -1,4 +1,4 @@
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
import { BigNumber } from '../bignumber';
diff --git a/apps/token/src/routes/claim/claim-flow.tsx b/apps/token/src/routes/claim/claim-flow.tsx
index 91fc101c3..a59330f3d 100644
--- a/apps/token/src/routes/claim/claim-flow.tsx
+++ b/apps/token/src/routes/claim/claim-flow.tsx
@@ -1,10 +1,10 @@
import * as Sentry from '@sentry/react';
-import { UNSPENT_CODE } from '@vegaprotocol/smart-contracts-sdk';
+import { UNSPENT_CODE } from '@vegaprotocol/smart-contracts';
import { format } from 'date-fns';
import React from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
import { KeyValueTable, KeyValueTableRow } from '@vegaprotocol/ui-toolkit';
import { useContracts } from '../../contexts/contracts/contracts-context';
diff --git a/apps/token/src/routes/claim/claim-info.tsx b/apps/token/src/routes/claim/claim-info.tsx
index df693e5c7..19b225824 100644
--- a/apps/token/src/routes/claim/claim-info.tsx
+++ b/apps/token/src/routes/claim/claim-info.tsx
@@ -1,6 +1,6 @@
import { useTranslation } from 'react-i18next';
import { format } from 'date-fns';
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
import { DATE_FORMAT_LONG } from '../../lib/date-formats';
diff --git a/apps/token/src/routes/claim/claim-reducer.ts b/apps/token/src/routes/claim/claim-reducer.ts
index 9d80f876d..b4aa544a8 100644
--- a/apps/token/src/routes/claim/claim-reducer.ts
+++ b/apps/token/src/routes/claim/claim-reducer.ts
@@ -1,6 +1,6 @@
import { BigNumber } from '../../lib/bignumber';
import { addDecimal } from '../../lib/decimals';
-import type { IClaimTokenParams } from '@vegaprotocol/smart-contracts-sdk';
+import type { IClaimTokenParams } from '@vegaprotocol/smart-contracts';
export enum ClaimStatus {
Ready,
diff --git a/apps/token/src/routes/claim/claim.tsx b/apps/token/src/routes/claim/claim.tsx
index bae890aa4..a36bc7067 100644
--- a/apps/token/src/routes/claim/claim.tsx
+++ b/apps/token/src/routes/claim/claim.tsx
@@ -13,7 +13,7 @@ import {
initialClaimState,
} from './claim-reducer';
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
const Claim = ({
address,
diff --git a/apps/token/src/routes/claim/hooks.ts b/apps/token/src/routes/claim/hooks.ts
index ed97ce6cf..6ea6eee60 100644
--- a/apps/token/src/routes/claim/hooks.ts
+++ b/apps/token/src/routes/claim/hooks.ts
@@ -1,6 +1,6 @@
import { useContracts } from '../../contexts/contracts/contracts-context';
import { useTransaction } from '../../hooks/use-transaction';
-import type { IClaimTokenParams } from '@vegaprotocol/smart-contracts-sdk';
+import type { IClaimTokenParams } from '@vegaprotocol/smart-contracts';
export const useClaim = (claimData: IClaimTokenParams, address: string) => {
const claimArgs = {
diff --git a/apps/token/src/routes/claim/targeted-claim/targeted-claim.tsx b/apps/token/src/routes/claim/targeted-claim/targeted-claim.tsx
index 8fe2bffb6..59b038517 100644
--- a/apps/token/src/routes/claim/targeted-claim/targeted-claim.tsx
+++ b/apps/token/src/routes/claim/targeted-claim/targeted-claim.tsx
@@ -1,4 +1,4 @@
-import type { IClaimTokenParams } from '@vegaprotocol/smart-contracts-sdk';
+import type { IClaimTokenParams } from '@vegaprotocol/smart-contracts';
import { FormGroup } from '@vegaprotocol/ui-toolkit';
import React from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/apps/token/src/routes/claim/untargeted-claim/untargeted-claim.tsx b/apps/token/src/routes/claim/untargeted-claim/untargeted-claim.tsx
index 27be4d38f..39106fa41 100644
--- a/apps/token/src/routes/claim/untargeted-claim/untargeted-claim.tsx
+++ b/apps/token/src/routes/claim/untargeted-claim/untargeted-claim.tsx
@@ -1,4 +1,4 @@
-import type { IClaimTokenParams } from '@vegaprotocol/smart-contracts-sdk';
+import type { IClaimTokenParams } from '@vegaprotocol/smart-contracts';
import { FormGroup } from '@vegaprotocol/ui-toolkit';
import { BigNumber } from '../../../lib/bignumber';
import React from 'react';
diff --git a/apps/token/src/routes/home/token-details/token-details-circulating.test.ts b/apps/token/src/routes/home/token-details/token-details-circulating.test.ts
index 1ac742460..7184c4dae 100644
--- a/apps/token/src/routes/home/token-details/token-details-circulating.test.ts
+++ b/apps/token/src/routes/home/token-details/token-details-circulating.test.ts
@@ -1,6 +1,6 @@
import { BigNumber } from '../../../lib/bignumber';
import { sumCirculatingTokens } from './token-details-circulating';
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
test('It sums some easy tranches correctly', () => {
const tranches: Partial[] = [
diff --git a/apps/token/src/routes/home/token-details/token-details-circulating.tsx b/apps/token/src/routes/home/token-details/token-details-circulating.tsx
index 6d856273c..2416b01be 100644
--- a/apps/token/src/routes/home/token-details/token-details-circulating.tsx
+++ b/apps/token/src/routes/home/token-details/token-details-circulating.tsx
@@ -1,6 +1,6 @@
import { BigNumber } from '../../../lib/bignumber';
import { formatNumber } from '../../../lib/format-number';
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
/**
* Add together the circulating tokens from all tranches
diff --git a/apps/token/src/routes/redemption/redemption-reducer.ts b/apps/token/src/routes/redemption/redemption-reducer.ts
index 5fd374285..690c9b9be 100644
--- a/apps/token/src/routes/redemption/redemption-reducer.ts
+++ b/apps/token/src/routes/redemption/redemption-reducer.ts
@@ -1,4 +1,4 @@
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
import type { BigNumber } from '../../lib/bignumber';
export interface TrancheBalance {
diff --git a/apps/token/src/routes/tranches/tranche.tsx b/apps/token/src/routes/tranches/tranche.tsx
index bd5216201..72daa2d2f 100644
--- a/apps/token/src/routes/tranches/tranche.tsx
+++ b/apps/token/src/routes/tranches/tranche.tsx
@@ -1,4 +1,4 @@
-import type { Tranche as ITranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche as ITranche } from '@vegaprotocol/smart-contracts';
import { useWeb3React } from '@web3-react/core';
import React from 'react';
import { useTranslation } from 'react-i18next';
@@ -75,8 +75,10 @@ export const Tranche = () => {
{tranche.users.length ? (
{tranche.users.map((user, i) => {
- const unlocked = user.remaining_tokens.times(lockedData?.unlocked);
- const locked = user.remaining_tokens.times(lockedData?.locked);
+ const unlocked = user.remaining_tokens.times(
+ lockedData?.unlocked || 0
+ );
+ const locked = user.remaining_tokens.times(lockedData?.locked || 0);
return (
-
diff --git a/apps/token/src/routes/tranches/tranches.tsx b/apps/token/src/routes/tranches/tranches.tsx
index 0d29022ca..6e75325b3 100644
--- a/apps/token/src/routes/tranches/tranches.tsx
+++ b/apps/token/src/routes/tranches/tranches.tsx
@@ -1,5 +1,5 @@
import { useOutletContext } from 'react-router-dom';
-import type { Tranche } from '@vegaprotocol/smart-contracts-sdk';
+import type { Tranche } from '@vegaprotocol/smart-contracts';
import { useWeb3React } from '@web3-react/core';
import React from 'react';
import { useTranslation } from 'react-i18next';
diff --git a/apps/token/tsconfig.json b/apps/token/tsconfig.json
index 586e1f677..94e8cb37d 100644
--- a/apps/token/tsconfig.json
+++ b/apps/token/tsconfig.json
@@ -8,7 +8,7 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
- "noPropertyAccessFromIndexSignature": true,
+ "noPropertyAccessFromIndexSignature": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true
diff --git a/libs/deposits/src/lib/use-get-allowance.ts b/libs/deposits/src/lib/use-get-allowance.ts
index 78f0a60ea..842bcdac4 100644
--- a/libs/deposits/src/lib/use-get-allowance.ts
+++ b/libs/deposits/src/lib/use-get-allowance.ts
@@ -1,4 +1,4 @@
-import type { ERC20Token } from '@vegaprotocol/smart-contracts-sdk';
+import type { ERC20Token } from '@vegaprotocol/smart-contracts';
import { useWeb3React } from '@web3-react/core';
import { useCallback } from 'react';
import { useEthereumReadContract } from '@vegaprotocol/web3';
diff --git a/libs/deposits/src/lib/use-get-balance-of-erc20-token.ts b/libs/deposits/src/lib/use-get-balance-of-erc20-token.ts
index 26b30d4c1..cf6ba27d1 100644
--- a/libs/deposits/src/lib/use-get-balance-of-erc20-token.ts
+++ b/libs/deposits/src/lib/use-get-balance-of-erc20-token.ts
@@ -1,5 +1,5 @@
import { useEthereumReadContract } from '@vegaprotocol/web3';
-import type { ERC20Token } from '@vegaprotocol/smart-contracts-sdk';
+import type { ERC20Token } from '@vegaprotocol/smart-contracts';
import { useWeb3React } from '@web3-react/core';
import { useCallback } from 'react';
diff --git a/libs/deposits/src/lib/use-get-deposit-limits.ts b/libs/deposits/src/lib/use-get-deposit-limits.ts
index eb743896f..dcc8b4332 100644
--- a/libs/deposits/src/lib/use-get-deposit-limits.ts
+++ b/libs/deposits/src/lib/use-get-deposit-limits.ts
@@ -1,6 +1,6 @@
import type BigNumber from 'bignumber.js';
import { useCallback } from 'react';
-import type { VegaErc20Bridge } from '@vegaprotocol/smart-contracts-sdk';
+import type { VegaErc20Bridge } from '@vegaprotocol/smart-contracts';
import type { Asset } from './deposit-manager';
import { useEthereumReadContract } from '@vegaprotocol/web3';
diff --git a/libs/deposits/src/lib/use-submit-approval.ts b/libs/deposits/src/lib/use-submit-approval.ts
index 7ba460621..9dc1f6054 100644
--- a/libs/deposits/src/lib/use-submit-approval.ts
+++ b/libs/deposits/src/lib/use-submit-approval.ts
@@ -1,4 +1,4 @@
-import type { ERC20Token } from '@vegaprotocol/smart-contracts-sdk';
+import type { ERC20Token } from '@vegaprotocol/smart-contracts';
import { useEthereumTransaction } from '@vegaprotocol/web3';
export const useSubmitApproval = (
diff --git a/libs/deposits/src/lib/use-submit-deposit.ts b/libs/deposits/src/lib/use-submit-deposit.ts
index d30a61b42..5ae56d7bf 100644
--- a/libs/deposits/src/lib/use-submit-deposit.ts
+++ b/libs/deposits/src/lib/use-submit-deposit.ts
@@ -8,7 +8,7 @@ import { DepositStatus } from '@vegaprotocol/types';
import { useState } from 'react';
import { remove0x } from '@vegaprotocol/react-helpers';
import { useEthereumTransaction } from '@vegaprotocol/web3';
-import type { VegaErc20Bridge } from '@vegaprotocol/smart-contracts-sdk';
+import type { VegaErc20Bridge } from '@vegaprotocol/smart-contracts';
const DEPOSIT_EVENT_SUB = gql`
subscription DepositEvent($partyId: ID!) {
diff --git a/libs/deposits/src/lib/use-submit-faucet.ts b/libs/deposits/src/lib/use-submit-faucet.ts
index 16505c58a..73b53e76c 100644
--- a/libs/deposits/src/lib/use-submit-faucet.ts
+++ b/libs/deposits/src/lib/use-submit-faucet.ts
@@ -1,4 +1,4 @@
-import type { ERC20Token } from '@vegaprotocol/smart-contracts-sdk';
+import type { ERC20Token } from '@vegaprotocol/smart-contracts';
import { useEthereumTransaction } from '@vegaprotocol/web3';
export const useSubmitFaucet = (contract: ERC20Token | null) => {
diff --git a/libs/smart-contracts/.babelrc b/libs/smart-contracts/.babelrc
new file mode 100644
index 000000000..e15ac017a
--- /dev/null
+++ b/libs/smart-contracts/.babelrc
@@ -0,0 +1,3 @@
+{
+ "presets": ["@babel/preset-typescript"]
+}
diff --git a/libs/web3/src/lib/use-bridge-contract.ts b/libs/web3/src/lib/use-bridge-contract.ts
index 6a2a489d2..2cef08a7d 100644
--- a/libs/web3/src/lib/use-bridge-contract.ts
+++ b/libs/web3/src/lib/use-bridge-contract.ts
@@ -1,5 +1,5 @@
-import type { Networks } from '@vegaprotocol/smart-contracts-sdk';
-import { VegaErc20Bridge } from '@vegaprotocol/smart-contracts-sdk';
+import type { Networks } from '@vegaprotocol/smart-contracts';
+import { VegaErc20Bridge } from '@vegaprotocol/smart-contracts';
import { useWeb3React } from '@web3-react/core';
import { useMemo } from 'react';
diff --git a/libs/web3/src/lib/use-token-contract.ts b/libs/web3/src/lib/use-token-contract.ts
index 67cd8d7f9..4a171ccb4 100644
--- a/libs/web3/src/lib/use-token-contract.ts
+++ b/libs/web3/src/lib/use-token-contract.ts
@@ -1,4 +1,4 @@
-import { ERC20Token } from '@vegaprotocol/smart-contracts-sdk';
+import { ERC20Token } from '@vegaprotocol/smart-contracts';
import { useWeb3React } from '@web3-react/core';
import { useMemo } from 'react';
diff --git a/libs/withdraws/jest.config.js b/libs/withdraws/jest.config.js
index f8a8254a3..42b0afa6c 100644
--- a/libs/withdraws/jest.config.js
+++ b/libs/withdraws/jest.config.js
@@ -2,7 +2,8 @@ module.exports = {
displayName: 'withdraws',
preset: '../../jest.preset.js',
transform: {
- '^.+\\.[tj]sx?$': 'babel-jest',
+ '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nrwl/react/plugins/jest',
+ '^.+\\.[tj]sx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/libs/withdraws',
diff --git a/libs/withdraws/tsconfig.json b/libs/withdraws/tsconfig.json
index 4c089585e..e914936cc 100644
--- a/libs/withdraws/tsconfig.json
+++ b/libs/withdraws/tsconfig.json
@@ -3,14 +3,15 @@
"compilerOptions": {
"jsx": "react-jsx",
"allowJs": true,
- "esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
- "noPropertyAccessFromIndexSignature": true,
+ "noPropertyAccessFromIndexSignature": false,
"noImplicitReturns": true,
- "noFallthroughCasesInSwitch": true
+ "noFallthroughCasesInSwitch": true,
+ "resolveJsonModule": true,
+ "esModuleInterop": true
},
"files": [],
"include": [],
diff --git a/package.json b/package.json
index 86ff7b9e9..534a6f823 100644
--- a/package.json
+++ b/package.json
@@ -27,7 +27,6 @@
"@sentry/nextjs": "^6.19.3",
"@sentry/react": "^6.19.2",
"@sentry/tracing": "^6.19.2",
- "@vegaprotocol/smart-contracts-sdk": "^1.6.0",
"@vegaprotocol/vegawallet-service-api-client": "^0.4.11",
"@walletconnect/ethereum-provider": "^1.7.5",
"@web3-react/core": "8.0.20-beta.0",
diff --git a/yarn.lock b/yarn.lock
index 1c97bd565..beb628ee7 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -6179,15 +6179,6 @@
"@typescript-eslint/types" "5.22.0"
eslint-visitor-keys "^3.0.0"
-"@vegaprotocol/smart-contracts-sdk@^1.6.0":
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/@vegaprotocol/smart-contracts-sdk/-/smart-contracts-sdk-1.6.0.tgz#c689d5928148113dddbe39ed963c74817f432d5e"
- integrity sha512-cNFDywrtrvR3V5WQL5BadMS8pckRaetXyxA5ttLZEghlpkMcz5BQ51GuAfK0ufank8vY3xYN0m1DalbfADQIGw==
- dependencies:
- deprecated-decorator "^0.1.6"
- ethers "^5.5.2"
- lodash "^4.17.21"
-
"@vegaprotocol/vegawallet-service-api-client@^0.4.11":
version "0.4.11"
resolved "https://registry.yarnpkg.com/@vegaprotocol/vegawallet-service-api-client/-/vegawallet-service-api-client-0.4.11.tgz#41a623afc9957dcf8b5425f74280ba7861e92b74"
@@ -10407,11 +10398,6 @@ depd@~1.1.2:
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=
-deprecated-decorator@^0.1.6:
- version "0.1.6"
- resolved "https://registry.yarnpkg.com/deprecated-decorator/-/deprecated-decorator-0.1.6.tgz#00966317b7a12fe92f3cc831f7583af329b86c37"
- integrity sha1-AJZjF7ehL+kvPMgx91g68ym4bDc=
-
deps-sort@^2.0.0, deps-sort@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/deps-sort/-/deps-sort-2.0.1.tgz#9dfdc876d2bcec3386b6829ac52162cda9fa208d"
@@ -11478,7 +11464,7 @@ etag@1.8.1, etag@~1.8.1:
resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"
integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=
-ethers@^5.5.2, ethers@^5.6.0:
+ethers@^5.6.0:
version "5.6.2"
resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.6.2.tgz#e75bac7f038c5e0fdde667dba62fc223924143a2"
integrity sha512-EzGCbns24/Yluu7+ToWnMca3SXJ1Jk1BvWB7CCmVNxyOeM4LLvw2OLuIHhlkhQk1dtOcj9UMsdkxUh8RiG1dxQ==