Skip to content

Commit 3478dea

Browse files
authored
Merge pull request #28 from hippo-protocol/copilot/update-security-dependencies
Resolve high and moderate severity vulnerabilities in dependencies
2 parents 9536c66 + 08215f1 commit 3478dea

File tree

7 files changed

+7565
-1134
lines changed

7 files changed

+7565
-1134
lines changed

lib/wallet/UniClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import {
1212
} from './Wallet';
1313
import { post } from '../utils/http';
1414
import { BroadcastMode, Transaction, TxResponse } from '../utils/type';
15-
import { wasmTypes } from '@cosmjs/cosmwasm-stargate/build/modules';
15+
import { wasmTypes } from '@cosmjs/cosmwasm';
1616
import {
1717
makeAuthInfoBytes,
1818
makeSignDoc,
1919
TxBodyEncodeObject,
20-
} from '@cosmjs/proto-signing/build';
20+
} from '@cosmjs/proto-signing';
2121
import { Any } from 'cosmjs-types/google/protobuf/any';
2222

2323
export function isEthermint(chainId: string) {

lib/wallet/wallets/OKXWallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { fromBase64, fromHex } from '@cosmjs/encoding';
22
import { makeAuthInfoBytes, makeSignBytes, makeSignDoc, Registry, TxBodyEncodeObject } from '@cosmjs/proto-signing';
33

4-
import { serializeSignDoc } from '@cosmjs/amino/build/signdoc';
4+
import { serializeSignDoc } from '@cosmjs/amino';
55

66
import { AbstractWallet, Account, IChain, WalletArgument, WalletName } from '../Wallet';
77
import { Transaction } from '../../utils/type';

lib/wallet/wallets/UnisatWallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { makeSignDoc as makeSignDocAmino } from '@cosmjs/amino';
1212
import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate';
1313
import { Buffer } from 'buffer';
1414

15-
import { serializeSignDoc } from '@cosmjs/amino/build/signdoc';
15+
import { serializeSignDoc } from '@cosmjs/amino';
1616

1717
export class UnisatWallet implements AbstractWallet {
1818
name: WalletName.Unisat = WalletName.Unisat;

package-lock.json

Lines changed: 6385 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@
3232
"trypublish": "npm publish || true"
3333
},
3434
"dependencies": {
35-
"@cosmjs/amino": "^0.36.0",
36-
"@cosmjs/cosmwasm-stargate": "^0.36.0",
37-
"@cosmjs/ledger-amino": "^0.36.0",
38-
"@cosmjs/proto-signing": "^0.36.0",
39-
"@cosmjs/stargate": "^0.36.0",
35+
"@cosmjs/amino": "^0.38.1",
36+
"@cosmjs/cosmwasm-stargate": "^0.38.1",
37+
"@cosmjs/ledger-amino": "^0.38.1",
38+
"@cosmjs/proto-signing": "^0.38.1",
39+
"@cosmjs/stargate": "^0.38.1",
4040
"@ethersproject/hash": "5.8.0",
4141
"@ethersproject/signing-key": "5.8.0",
4242
"@leapwallet/cosmos-snap-provider": "^0.1.26",
4343
"@ledgerhq/hw-transport-web-ble": "^6.29.8",
4444
"@ledgerhq/hw-transport-webusb": "^6.29.8",
45-
"@metamask/eth-sig-util": "^5.1.0",
45+
"@metamask/eth-sig-util": "^8.2.0",
46+
"@noble/curves": "^2.0.1",
4647
"@ping-pub/chain-registry-client": "^0.0.25",
4748
"@tharsis/eip712": "^0.2.4",
4849
"@tharsis/proto": "^0.1.20",
4950
"@tharsis/transactions": "^0.2.6",
50-
"@types/bignumber.js": "^5.0.0",
5151
"@types/lodash": "^4.17.19",
5252
"buffer": "^6.0.3",
5353
"chain-registry": "^2.0.24",
@@ -57,7 +57,7 @@
5757
"dayjs": "^1.11.7",
5858
"fflate": "^0.8.0",
5959
"lodash": "^4.17.21",
60-
"osmojs": "^15.5.0",
60+
"osmojs": "^16.15.0",
6161
"vue": "^3.2.47",
6262
"vue3-webcomponent-wrapper": "^0.2.0"
6363
},
@@ -67,21 +67,36 @@
6767
"@noble/secp256k1": "^2.1.0",
6868
"@rollup/plugin-inject": "^5.0.3",
6969
"@types/elliptic": "^6.4.18",
70-
"@vitejs/plugin-vue": "^4.1.0",
70+
"@vitejs/plugin-vue": "^5.2.1",
7171
"assert-browserify": "^2.0.0",
7272
"autoprefixer": "^10.4.14",
7373
"crypto-browserify": "^3.12.1",
74-
"elliptic": "^6.5.5",
74+
"elliptic": "^6.6.1",
7575
"long": "^5.2.0",
7676
"path-browserify": "^1.0.1",
7777
"postcss": "^8.4.23",
7878
"rollup-plugin-polyfill-node": "^0.12.0",
7979
"stream-browserify": "^3.0.0",
8080
"tailwindcss": "^3.3.2",
8181
"typescript": "^5.0.2",
82-
"vite": "^4.3.2",
82+
"vite": "^5.4.16",
8383
"vite-plugin-css-injected-by-js": "^3.1.0",
84-
"vue-tsc": "^1.4.2"
84+
"vue-tsc": "^2.2.1"
85+
},
86+
"resolutions": {
87+
"esbuild": "^0.27.3",
88+
"minimatch": "^10.2.2",
89+
"axios": "^1.13.5",
90+
"bn.js": "^5.2.3",
91+
"glob": "^11.0.0",
92+
"elliptic": "^6.6.1"
93+
},
94+
"overrides": {
95+
"esbuild": "^0.27.3",
96+
"minimatch": "^10.2.2",
97+
"axios": "^1.13.5",
98+
"bn.js": "^5.2.3",
99+
"elliptic": "^6.6.1"
85100
},
86101
"packageManager": "yarn@1.22.1"
87102
}

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default defineConfig({
1717
stream: 'stream-browserify',
1818
crypto: 'crypto-browserify',
1919
assert: 'assert-browserify',
20+
'@noble/curves/secp256k1': '@noble/curves/secp256k1.js'
2021
},
2122
},
2223
optimizeDeps: {

0 commit comments

Comments
 (0)