Skip to content

Commit

Permalink
Use workspace nomenclature for internal dependencies (#1148)
Browse files Browse the repository at this point in the history
* yarn 4.2.2

* yarn 4.2.2 script

* inmutable parameter

* Audit dependencies

* Examples built with turbo

* Tools built with turbo

* TxJammer lint bug fix

* Test bug fix

* Changeset version file

* Lint
  • Loading branch information
0xp3gasus authored May 14, 2024
1 parent 54ba9c2 commit 582d682
Show file tree
Hide file tree
Showing 59 changed files with 13,728 additions and 19,796 deletions.
47 changes: 47 additions & 0 deletions .changeset/swift-roses-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
'@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-mayamidgard': 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-mayanode': patch
'@xchainjs/xchain-thornode': patch
'@xchainjs/xchain-binance': patch
'@xchainjs/xchain-bitcoin': patch
'@xchainjs/xchain-midgard': patch
'xchainjs-estimate-swap': patch
'@xchainjs/xchain-client': patch
'@xchainjs/xchain-cosmos': patch
'@xchainjs/xchain-crypto': patch
'@xchainjs/xchain-kujira': patch
'@xchainjs/xchain-wallet': patch
'xchainjs-maya-do-swap': patch
'@xchainjs/xchain-avax': 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-prepare-tx': patch
'xchainjs-check-tx': patch
'xchainjs-do-swap': patch
'xchainjs-wallet': patch
'xchainjs-loans': patch
'txJammer': patch
---

Internal dependencies updated to use workspace nomenclature
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile && yarn yarn-audit-ci --high
run: yarn install --immutable && yarn npm audit --all --severity high

- name: Build packages
run: yarn build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable

- name: Create release pull request or publish to npm
id: changesets
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ packages/*/yarn.lock
.env
*.txt
!LICENSE.txt

.yarn/*
!.yarn/cache
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs
19 changes: 10 additions & 9 deletions examples/check-tx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@
"private": true,
"version": "1.0.3",
"scripts": {
"checktx": "npx ts-node check-tx.ts"
"checktx": "npx ts-node check-tx.ts",
"build": "tsc --noEmit"
},
"description": "example of doing checking a Tx with thorchain-query package",
"main": "index.js",
"author": "GRC",
"license": "MIT",
"dependencies": {
"@xchainjs/xchain-client": "workspace:*",
"@xchainjs/xchain-crypto": "workspace:*",
"@xchainjs/xchain-midgard": "workspace:*",
"@xchainjs/xchain-midgard-query": "workspace:*",
"@xchainjs/xchain-thorchain-query": "workspace:*",
"@xchainjs/xchain-thornode": "workspace:*",
"@xchainjs/xchain-util": "workspace:*",
"axios": "^1.3.6",
"axios-retry": "^3.2.5",
"bignumber.js": "9.0.1",
"rimraf": "~3.0.2",
"@xchainjs/xchain-thorchain-query": "*",
"@xchainjs/xchain-midgard-query": "*",
"@xchainjs/xchain-client": "*",
"@xchainjs/xchain-midgard": "*",
"@xchainjs/xchain-thornode": "*",
"@xchainjs/xchain-util": "*",
"@xchainjs/xchain-crypto": "*"
"rimraf": "~3.0.2"
},
"devDependencies": {
"@types/node": "20.11.28",
Expand Down
37 changes: 19 additions & 18 deletions examples/do-maya-swap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,34 @@
"private": true,
"version": "1.0.6",
"scripts": {
"doSwap": "npx ts-node do-maya-swap.ts"
"doSwap": "npx ts-node do-maya-swap.ts",
"build": "tsc --noEmit"
},
"description": "example of doing a swap with mayachain-amm package",
"main": "index.js",
"license": "MIT",
"dependencies": {
"@xchainjs/xchain-bitcoin": "*",
"@xchainjs/xchain-client": "*",
"@xchainjs/xchain-cosmos": "*",
"@xchainjs/xchain-crypto": "*",
"@xchainjs/xchain-ethereum": "*",
"@xchainjs/xchain-thorchain": "*",
"@xchainjs/xchain-mayachain": "*",
"@xchainjs/xchain-kujira": "*",
"@xchainjs/xchain-dash": "*",
"@xchainjs/xchain-util": "*",
"@xchainjs/xchain-mayanode": "*",
"@xchainjs/xchain-mayamidgard": "*",
"@xchainjs/xchain-mayamidgard-query": "*",
"@xchainjs/xchain-mayachain-query": "*",
"@xchainjs/xchain-mayachain-amm": "*",
"@xchainjs/xchain-wallet": "*",
"@xchainjs/xchain-bitcoin": "workspace:*",
"@xchainjs/xchain-client": "workspace:*",
"@xchainjs/xchain-cosmos": "workspace:*",
"@xchainjs/xchain-crypto": "workspace:*",
"@xchainjs/xchain-dash": "workspace:*",
"@xchainjs/xchain-ethereum": "workspace:*",
"@xchainjs/xchain-kujira": "workspace:*",
"@xchainjs/xchain-mayachain": "workspace:*",
"@xchainjs/xchain-mayachain-amm": "workspace:*",
"@xchainjs/xchain-mayachain-query": "workspace:*",
"@xchainjs/xchain-mayamidgard": "workspace:*",
"@xchainjs/xchain-mayamidgard-query": "workspace:*",
"@xchainjs/xchain-mayanode": "workspace:*",
"@xchainjs/xchain-thorchain": "workspace:*",
"@xchainjs/xchain-util": "workspace:*",
"@xchainjs/xchain-wallet": "workspace:*",
"axios": "^1.3.6",
"axios-retry": "^3.3.1",
"bech32-buffer": "^0.2.0",
"bitcoinjs-lib": "5.2.0",
"dotenv": "^16.0.0",
"axios": "^1.3.6",
"ethers": "^5.6.6"
},
"devDependencies": {
Expand Down
55 changes: 28 additions & 27 deletions examples/do-swap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,46 @@
"version": "1.0.8",
"scripts": {
"doSwap": "npx ts-node doSwap.ts",
"doStreamingSwap": "npx ts-node doStreamingSwap.ts"
"doStreamingSwap": "npx ts-node doStreamingSwap.ts",
"build": "tsc --noEmit"
},
"description": "example of doing a swap withthorchain-amm package",
"main": "index.js",
"author": "THORIANITE",
"license": "MIT",
"dependencies": {
"@psf/bitcoincashjs-lib": "^4.0.3",
"@xchainjs/xchain-avax": "*",
"@xchainjs/xchain-binance": "*",
"@xchainjs/xchain-bitcoin": "*",
"@xchainjs/xchain-bitcoincash": "*",
"@xchainjs/xchain-bsc": "*",
"@xchainjs/xchain-client": "*",
"@xchainjs/xchain-cosmos": "*",
"@xchainjs/xchain-cosmos-sdk": "*",
"@xchainjs/xchain-crypto": "*",
"@xchainjs/xchain-dash": "*",
"@xchainjs/xchain-doge": "*",
"@xchainjs/xchain-ethereum": "*",
"@xchainjs/xchain-evm": "*",
"@xchainjs/xchain-evm-providers": "*",
"@xchainjs/xchain-litecoin": "*",
"@xchainjs/xchain-midgard": "*",
"@xchainjs/xchain-midgard-query": "*",
"@xchainjs/xchain-thorchain": "*",
"@xchainjs/xchain-thorchain-amm": "*",
"@xchainjs/xchain-thorchain-query": "*",
"@xchainjs/xchain-thornode": "*",
"@xchainjs/xchain-util": "*",
"@xchainjs/xchain-utxo": "*",
"@xchainjs/xchain-utxo-providers": "*",
"@xchainjs/xchain-wallet": "*",
"@xchainjs/xchain-avax": "workspace:*",
"@xchainjs/xchain-binance": "workspace:*",
"@xchainjs/xchain-bitcoin": "workspace:*",
"@xchainjs/xchain-bitcoincash": "workspace:*",
"@xchainjs/xchain-bsc": "workspace:*",
"@xchainjs/xchain-client": "workspace:*",
"@xchainjs/xchain-cosmos": "workspace:*",
"@xchainjs/xchain-cosmos-sdk": "workspace:*",
"@xchainjs/xchain-crypto": "workspace:*",
"@xchainjs/xchain-dash": "workspace:*",
"@xchainjs/xchain-doge": "workspace:*",
"@xchainjs/xchain-ethereum": "workspace:*",
"@xchainjs/xchain-evm": "workspace:*",
"@xchainjs/xchain-evm-providers": "workspace:*",
"@xchainjs/xchain-litecoin": "workspace:*",
"@xchainjs/xchain-midgard": "workspace:*",
"@xchainjs/xchain-midgard-query": "workspace:*",
"@xchainjs/xchain-thorchain": "workspace:*",
"@xchainjs/xchain-thorchain-amm": "workspace:*",
"@xchainjs/xchain-thorchain-query": "workspace:*",
"@xchainjs/xchain-thornode": "workspace:*",
"@xchainjs/xchain-util": "workspace:*",
"@xchainjs/xchain-utxo": "workspace:*",
"@xchainjs/xchain-utxo-providers": "workspace:*",
"@xchainjs/xchain-wallet": "workspace:*",
"axios": "^1.3.6",
"axios-retry": "^3.3.1",
"bchaddrjs": "^0.5.2",
"bech32-buffer": "^0.2.0",
"bitcoinjs-lib": "5.2.0",
"dotenv": "^16.0.0",
"axios": "^1.3.6",
"ethers": "^5.6.6"
},
"devDependencies": {
Expand Down
17 changes: 9 additions & 8 deletions examples/estimate-swap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
"scripts": {
"listPools": "npx ts-node listPools.ts",
"estimateSwap": "npx ts-node estimateSwap.ts",
"doSwap": "npx ts-node doSwap.ts"
"doSwap": "npx ts-node doSwap.ts",
"build": "tsc --noEmit"
},
"description": "Test folder for xchainjs thorchain-amm package",
"main": "index.js",
"author": "THORIANITE",
"license": "MIT",
"dependencies": {
"@xchainjs/xchain-thorchain-query": "*",
"@xchainjs/xchain-midgard-query": "*",
"@xchainjs/xchain-client": "*",
"@xchainjs/xchain-midgard": "*",
"@xchainjs/xchain-thornode": "*",
"@xchainjs/xchain-util": "*",
"@xchainjs/xchain-crypto": "*",
"@xchainjs/xchain-client": "workspace:*",
"@xchainjs/xchain-crypto": "workspace:*",
"@xchainjs/xchain-midgard": "workspace:*",
"@xchainjs/xchain-midgard-query": "workspace:*",
"@xchainjs/xchain-thorchain-query": "workspace:*",
"@xchainjs/xchain-thornode": "workspace:*",
"@xchainjs/xchain-util": "workspace:*",
"axios": "^1.3.6",
"axios-retry": "^3.2.5",
"bignumber.js": "9.0.1",
Expand Down
8 changes: 4 additions & 4 deletions examples/frameworks/next.js-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"next": "14.1.4",
"@xchainjs/xchain-dash": "*",
"@xchainjs/xchain-crypto": "*",
"@xchainjs/xchain-util": "*",
"@xchainjs/xchain-client": "*",
"@xchainjs/xchain-dash": "workspace:*",
"@xchainjs/xchain-crypto": "workspace:*",
"@xchainjs/xchain-util": "workspace:*",
"@xchainjs/xchain-client": "workspace:*",
"ahooks": "3.7.10"
},
"devDependencies": {
Expand Down
16 changes: 8 additions & 8 deletions examples/frameworks/vite-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
"@rollup/plugin-inject": "^5.0.3",
"@rollup/plugin-terser": "^0.4.3",
"@xchainjs/xchain-client": "^0.16.1",
"@xchainjs/xchain-cosmos": "*",
"@xchainjs/xchain-cosmos-sdk": "*",
"@xchainjs/xchain-crypto": "*",
"@xchainjs/xchain-kujira": "*",
"@xchainjs/xchain-thorchain": "*",
"@xchainjs/xchain-util": "*",
"@xchainjs/xchain-cosmos": "workspace:*",
"@xchainjs/xchain-cosmos-sdk": "workspace:*",
"@xchainjs/xchain-crypto": "workspace:*",
"@xchainjs/xchain-kujira": "workspace:*",
"@xchainjs/xchain-thorchain": "workspace:*",
"@xchainjs/xchain-util": "workspace:*",
"axios": "^1.6.1",
"bech32-buffer": "^0.2.1",
"buffer": "^6.0.3",
"core-js": "^3.29.0",
"crypto-browserify": "^3.12.0",
"node-stdlib-browser": "^1.2.0",
"roboto-fontface": "*",
"roboto-fontface": "workspace:*",
"stream-browserify": "^3.0.0",
"vite-plugin-comlink": "^3.0.5",
"vite-plugin-node-stdlib-browser": "^0.2.1",
Expand All @@ -49,4 +49,4 @@
"vite-plugin-vuetify": "^1.0.0",
"vue-tsc": "^1.2.0"
}
}
}
19 changes: 10 additions & 9 deletions examples/liquidity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@
"estimateAddSaver": "npx ts-node estimate-add-saver.ts",
"estimateWithdrawSaver": "npx ts-node estimate-withdraw-saver.ts",
"addSaver": "npx ts-node add-savers.ts",
"withdrawSaver": "npx ts-node withdrawSavers.ts"
"withdrawSaver": "npx ts-node withdrawSavers.ts",
"build": "tsc --noEmit"
},
"description": "examples for adding liquidity",
"main": "index.js",
"author": "THORIANITE",
"license": "MIT",
"dependencies": {
"@xchainjs/xchain-thorchain-amm": "*",
"@xchainjs/xchain-thorchain-query": "*",
"@xchainjs/xchain-midgard-query": "*",
"@xchainjs/xchain-client": "*",
"@xchainjs/xchain-midgard": "*",
"@xchainjs/xchain-thornode": "*",
"@xchainjs/xchain-util": "*",
"@xchainjs/xchain-crypto": "*",
"@xchainjs/xchain-client": "workspace:*",
"@xchainjs/xchain-crypto": "workspace:*",
"@xchainjs/xchain-midgard": "workspace:*",
"@xchainjs/xchain-midgard-query": "workspace:*",
"@xchainjs/xchain-thorchain-amm": "workspace:*",
"@xchainjs/xchain-thorchain-query": "workspace:*",
"@xchainjs/xchain-thornode": "workspace:*",
"@xchainjs/xchain-util": "workspace:*",
"axios": "^1.3.6",
"axios-retry": "^3.2.5",
"bignumber.js": "^9.0.0",
Expand Down
Loading

0 comments on commit 582d682

Please sign in to comment.