Skip to content
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
44 changes: 44 additions & 0 deletions .changeset/shy-wombats-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
'@xchainjs/xchain-mayamidgard-query': patch
'@xchainjs/xchain-mayachain-query': patch
'@xchainjs/xchain-thorchain-query': patch
'@xchainjs/xchain-utxo-providers': patch
'@xchainjs/xchain-evm-providers': patch
'@xchainjs/xchain-mayachain-amm': patch
'@xchainjs/xchain-midgard-query': patch
'@xchainjs/xchain-thorchain-amm': patch
'@xchainjs/xchain-bitcoincash': patch
'@xchainjs/xchain-aggregator': patch
'@xchainjs/xchain-cosmos-sdk': patch
'@xchainjs/xchain-mayachain': patch
'@xchainjs/xchain-thorchain': patch
'@xchainjs/xchain-arbitrum': patch
'@xchainjs/xchain-ethereum': patch
'@xchainjs/xchain-litecoin': patch
'@xchainjs/xchain-binance': patch
'@xchainjs/xchain-bitcoin': patch
'@xchainjs/xchain-cardano': patch
'xchainjs-estimate-swap': patch
'@xchainjs/xchain-client': patch
'@xchainjs/xchain-cosmos': patch
'@xchainjs/xchain-crypto': patch
'@xchainjs/xchain-kujira': patch
'@xchainjs/xchain-solana': patch
'@xchainjs/xchain-wallet': patch
'@xchainjs/xchain-radix': patch
'@xchainjs/xchain-zcash': patch
'@xchainjs/xchain-avax': patch
'@xchainjs/xchain-base': patch
'@xchainjs/xchain-dash': patch
'@xchainjs/xchain-doge': patch
'@xchainjs/xchain-util': patch
'@xchainjs/xchain-utxo': patch
'@xchainjs/xchain-bsc': patch
'@xchainjs/xchain-evm': patch
'xchainjs-liquidity': patch
'xchainjs-check-tx': patch
'xchainjs-loans': patch
'txJammer': patch
---

updates and jest config changes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testMatch: ['<rootDir>/__e2e__/**/*.[jt]s?(x)'],
setupFilesAfterEnv: ['./jest.setup.js'],
testTimeout: 60000,
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
Expand Down
1 change: 0 additions & 1 deletion packages/xchain-aggregator/jest.setup.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/xchain-aggregator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"clean": "rm -rf .turbo && rm -rf lib",
"build": "yarn clean && rollup -c --bundleConfigAsCjs",
"build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
"e2e": "jest --config jest.config.e2e.js",
"e2e": "jest --config jest.config.e2e.mjs",
"test": "jest"
},
"publishConfig": {
Expand Down
6 changes: 0 additions & 6 deletions packages/xchain-arbitrum/jest.config.js

This file was deleted.

6 changes: 6 additions & 0 deletions packages/xchain-arbitrum/jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testTimeout: 60000,
}
1 change: 0 additions & 1 deletion packages/xchain-arbitrum/jest.setup.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/xchain-arbitrum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build": "yarn clean && rollup -c --bundleConfigAsCjs",
"build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
"test": "jest --passWithNoTests",
"e2e": "jest --config jest.config.e2e.js",
"e2e": "jest --config jest.config.e2e.mjs",
"lint": "eslint \"{src,__tests__, __mocks__}/**/*.ts\" --fix --max-warnings 0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/xchain-arbitrum/src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EVMClientParams } from '@xchainjs/xchain-evm'
import { EtherscanProviderV2 } from '@xchainjs/xchain-evm-providers'
import { Asset, AssetType, TokenAsset } from '@xchainjs/xchain-util'
import { JsonRpcProvider } from 'ethers'
import { BigNumber } from 'bignumber.js'
import BigNumber from 'bignumber.js'

// Define constants related to Arbitrum
export const ARB_DECIMAL = 18
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testMatch: ['<rootDir>/__e2e__/**/*.[jt]s?(x)'],
setupFilesAfterEnv: ['./jest.setup.js'],
testTimeout: 60000,
}
6 changes: 0 additions & 6 deletions packages/xchain-avax/jest.config.js

This file was deleted.

6 changes: 6 additions & 0 deletions packages/xchain-avax/jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testTimeout: 60000,
}
1 change: 0 additions & 1 deletion packages/xchain-avax/jest.setup.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/xchain-avax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build": "yarn clean && rollup -c --bundleConfigAsCjs",
"build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
"test": "jest --passWithNoTests",
"e2e": "jest --config jest.config.e2e.js",
"e2e": "jest --config jest.config.e2e.mjs",
"lint": "eslint \"{src,__tests__, __mocks__}/**/*.ts\" --fix --max-warnings 0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/xchain-avax/src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EVMClientParams } from '@xchainjs/xchain-evm'
import { EtherscanProviderV2, RoutescanProvider } from '@xchainjs/xchain-evm-providers'
import { Asset, AssetType } from '@xchainjs/xchain-util'
import { JsonRpcProvider } from 'ethers'
import { BigNumber } from 'bignumber.js'
import BigNumber from 'bignumber.js'

// Define constants related to Avalanche
export const AVAX_DECIMAL = 18
Expand Down
6 changes: 0 additions & 6 deletions packages/xchain-base/jest.config.js

This file was deleted.

6 changes: 6 additions & 0 deletions packages/xchain-base/jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testTimeout: 60000,
}
1 change: 0 additions & 1 deletion packages/xchain-base/jest.setup.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/xchain-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build": "yarn clean && rollup -c --bundleConfigAsCjs",
"build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
"test": "jest --passWithNoTests",
"e2e": "jest --config jest.config.e2e.js",
"e2e": "jest --config jest.config.e2e.mjs",
"lint": "eslint \"{src,__tests__, __mocks__}/**/*.ts\" --fix --max-warnings 0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/xchain-base/src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EVMClientParams } from '@xchainjs/xchain-evm'
import { EtherscanProviderV2 } from '@xchainjs/xchain-evm-providers'
import { Asset, AssetType } from '@xchainjs/xchain-util'
import { JsonRpcProvider } from 'ethers'
import { BigNumber } from 'bignumber.js'
import BigNumber from 'bignumber.js'

// Define constants related to Base
export const BASE_DECIMAL = 18
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testMatch: ['<rootDir>/__e2e__/**/*.[jt]s?(x)'],
setupFilesAfterEnv: ['./jest.setup.js'],
testTimeout: 60000,
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
Expand Down
1 change: 0 additions & 1 deletion packages/xchain-bitcoin/jest.setup.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/xchain-bitcoin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build": "yarn clean && rollup -c --bundleConfigAsCjs",
"build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
"test": "jest",
"e2e": "jest --config jest.config.e2e.js",
"e2e": "jest --config jest.config.e2e.mjs",
"lint": "eslint \"{src,__tests__}/**/*.ts\" --fix --max-warnings 0",
"postversion": "git push --follow-tags"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/xchain-bitcoin/src/clientLedger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import AppBtc from '@ledgerhq/hw-app-btc'
import { Transaction } from '@ledgerhq/hw-app-btc/lib/types'
import type { Transaction } from '@ledgerhq/hw-app-btc/lib/types'
import { FeeOption, FeeRate, TxHash, checkFeeBounds } from '@xchainjs/xchain-client'
import { Address } from '@xchainjs/xchain-util'
import { TxParams, UTXO, UtxoClientParams } from '@xchainjs/xchain-utxo'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testMatch: ['<rootDir>/__e2e__/**/*.[jt]s?(x)'],
setupFilesAfterEnv: ['./jest.setup.js'],
testTimeout: 60000,
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
Expand Down
1 change: 0 additions & 1 deletion packages/xchain-bitcoincash/jest.setup.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/xchain-bitcoincash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build": "yarn clean && rollup -c --bundleConfigAsCjs",
"build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
"test": "jest",
"e2e": "jest --config jest.config.e2e.js",
"e2e": "jest --config jest.config.e2e.mjs",
"lint": "eslint \"{src,__tests__,__mocks__}/**/*.ts\" --fix --max-warnings 0",
"postversion": "git push --follow-tags"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/xchain-bitcoincash/src/clientLedger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import AppBtc from '@ledgerhq/hw-app-btc'
import { Transaction } from '@ledgerhq/hw-app-btc/lib/types'
import type { Transaction } from '@ledgerhq/hw-app-btc/lib/types'
import { FeeOption, FeeRate, TxHash, checkFeeBounds } from '@xchainjs/xchain-client'
import { Address } from '@xchainjs/xchain-util'
import { TxParams, UtxoClientParams } from '@xchainjs/xchain-utxo'
Expand Down
7 changes: 0 additions & 7 deletions packages/xchain-bsc/jest.config.e2e.js

This file was deleted.

7 changes: 7 additions & 0 deletions packages/xchain-bsc/jest.config.e2e.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testMatch: ['<rootDir>/__e2e__/**/*.[jt]s?(x)'],
testTimeout: 60000,
}
6 changes: 0 additions & 6 deletions packages/xchain-bsc/jest.config.js

This file was deleted.

6 changes: 6 additions & 0 deletions packages/xchain-bsc/jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testTimeout: 60000,
}
1 change: 0 additions & 1 deletion packages/xchain-bsc/jest.setup.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/xchain-bsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build": "yarn clean && rollup -c --bundleConfigAsCjs",
"build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
"test": "jest --passWithNoTests",
"e2e": "jest --config jest.config.e2e.js",
"e2e": "jest --config jest.config.e2e.mjs",
"lint": "eslint \"{src,__tests__, __mocks__}/**/*.ts\" --fix --max-warnings 0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/xchain-bsc/src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { EVMClientParams } from '@xchainjs/xchain-evm' // Importing EVMClientPar
import { EtherscanProviderV2 } from '@xchainjs/xchain-evm-providers' // Importing EtherscanProvider from xchain-evm-providers
import { Asset, AssetType } from '@xchainjs/xchain-util' // Importing Asset from xchain-util
import { JsonRpcProvider } from 'ethers'
import { BigNumber } from 'bignumber.js'
import BigNumber from 'bignumber.js'

/**
* Lower fee bound for BSC transactions.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
setupFilesAfterEnv: ['./jest.setup.js'],
testTimeout: 60000,
moduleNameMapper: {
'@emurgo/cardano-serialization-lib-browser': '<rootDir>/__mocks__/@emurgo/cardano-serialization-lib-browser.js',
},
Expand Down
1 change: 0 additions & 1 deletion packages/xchain-cardano/jest.setup.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/xchain-cardano/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build": "yarn clean && rollup -c --bundleConfigAsCjs",
"build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
"test": "jest",
"e2e": "jest --config jest.config.e2e.js",
"e2e": "jest --config jest.config.e2e.mjs",
"lint": "eslint \"{src,__tests__}/**/*.ts\" --fix --max-warnings 0"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testMatch: ['<rootDir>/__e2e__/**/*.[jt]s?(x)'],
maxConcurrency: 1,
setupFilesAfterEnv: ['./jest.setup.js'],
testTimeout: 60000,
}
6 changes: 0 additions & 6 deletions packages/xchain-cosmos-sdk/jest.config.js

This file was deleted.

6 changes: 6 additions & 0 deletions packages/xchain-cosmos-sdk/jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testTimeout: 60000,
}
1 change: 0 additions & 1 deletion packages/xchain-cosmos-sdk/jest.setup.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/xchain-cosmos-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build": "yarn clean && rollup -c --bundleConfigAsCjs",
"build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
"test": "jest --passWithNoTests",
"e2e": "jest --config jest.config.e2e.js",
"e2e": "jest --config jest.config.e2e.mjs",
"lint": "eslint \"{src,__tests__, __mocks__}/**/*.ts\" --fix --max-warnings 0"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testMatch: ['<rootDir>/__e2e__/**/*.[jt]s?(x)'],
maxConcurrency: 1,
setupFilesAfterEnv: ['./jest.setup.js'],
testTimeout: 60000,
}
6 changes: 0 additions & 6 deletions packages/xchain-cosmos/jest.config.js

This file was deleted.

6 changes: 6 additions & 0 deletions packages/xchain-cosmos/jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/lib'],
testTimeout: 60000,
}
1 change: 0 additions & 1 deletion packages/xchain-cosmos/jest.setup.js

This file was deleted.

Loading