Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump dependencies #1110

Merged
merged 6 commits into from
Jan 27, 2025
Merged
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
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v20
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -19,20 +19,20 @@
"author": "Safe (https://safe.global)",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.13",
"@types/node": "^20.14.5",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.9",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.6",
"eslint-plugin-prettier": "^5.2.3",
"husky": "^9.1.7",
"jest": "^29.7.0",
"lerna": "^8.1.8",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"rimraf": "^3.0.2",
"ts-jest": "^29.1.5",
"lerna": "^8.1.9",
"lint-staged": "^15.4.2",
"prettier": "^3.4.2",
"rimraf": "^5.0.10",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.8",
"typescript": "^5.3.3"
22 changes: 11 additions & 11 deletions packages/api-kit/package.json
Original file line number Diff line number Diff line change
@@ -41,19 +41,19 @@
"devDependencies": {
"@safe-global/relay-kit": "^3.4.0",
"@safe-global/testing-kit": "^0.1.1",
"@types/chai": "^4.3.19",
"@types/chai": "^4.3.20",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.8",
"@types/node-fetch": "^2.6.11",
"@types/sinon-chai": "^3.2.11",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.1",
"ethers": "^6.13.2",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"@types/mocha": "^10.0.10",
"@types/node-fetch": "^2.6.12",
"@types/sinon": "^17.0.3",
"chai": "^4.5.0",
"chai-as-promised": "^7.1.2",
"ethers": "^6.13.5",
"mocha": "^11.1.0",
"nyc": "^17.1.0",
"semver": "^7.6.1",
"sinon": "^14.0.2",
"sinon-chai": "^3.7.0",
"sinon": "^19.0.2",
"sinon-chai": "3.7.0",
"tsconfig-paths": "^4.2.0",
"web3": "^4.12.1"
},
2 changes: 0 additions & 2 deletions packages/api-kit/tests/e2e/addSafeOperation.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
import sinon from 'sinon'
import sinonChai from 'sinon-chai'
import Safe from '@safe-global/protocol-kit'
import SafeApiKit from '@safe-global/api-kit/index'
import { getAddSafeOperationProps } from '@safe-global/api-kit/utils/safeOperation'
@@ -17,7 +16,6 @@ import * as safe4337Utils from '@safe-global/relay-kit/dist/src/packs/safe-4337/
import { getKits } from '../utils/setupKits'

chai.use(chaiAsPromised)
chai.use(sinonChai)

const SIGNER_PK = '0x83a415ca62e11f5fa5567e98450d0f82ae19ff36ef876c10a8d448c788a53676'
const SAFE_ADDRESS = '0x60C4Ab82D06Fd7dFE9517e17736C2Dcc77443EF0' // 1/2 Safe (v1.4.1) with signer above being an owner + 4337 module enabled
2 changes: 0 additions & 2 deletions packages/api-kit/tests/e2e/confirmSafeOperation.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
import sinon from 'sinon'
import sinonChai from 'sinon-chai'
import { BundlerClient, Safe4337InitOptions, Safe4337Pack } from '@safe-global/relay-kit'
import { generateTransferCallData } from '@safe-global/relay-kit/packs/safe-4337/testing-utils/helpers'
import SafeApiKit from '@safe-global/api-kit/index'
@@ -16,7 +15,6 @@ import {
} from '@safe-global/relay-kit/packs/safe-4337/constants'

chai.use(chaiAsPromised)
chai.use(sinonChai)

const PRIVATE_KEY_1 = '0x83a415ca62e11f5fa5567e98450d0f82ae19ff36ef876c10a8d448c788a53676'
const PRIVATE_KEY_2 = '0xb88ad5789871315d0dab6fc5961d6714f24f35a6393f13a6f426dfecfc00ab44'
19 changes: 10 additions & 9 deletions packages/protocol-kit/package.json
Original file line number Diff line number Diff line change
@@ -53,21 +53,22 @@
"homepage": "https://github.com/safe-global/safe-core-sdk#readme",
"devDependencies": {
"@safe-global/testing-kit": "^0.1.1",
"@types/chai": "^4.3.19",
"@types/chai": "^4.3.20",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.8",
"@types/mocha": "^10.0.10",
"@types/semver": "^7.5.8",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.1",
"dotenv": "^16.4.5",
"ethers": "^6.13.2",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"chai": "^4.5.0",
"chai-as-promised": "^7.1.2",
"dotenv": "^16.4.7",
"ethers": "^6.13.5",
"mocha": "^11.1.0",
"nyc": "^17.1.0",
"sinon": "^19.0.2",
"tsconfig-paths": "^4.2.0",
"web3": "^4.12.1"
},
"dependencies": {
"@safe-global/safe-deployments": "^1.37.22",
"@safe-global/safe-deployments": "^1.37.24",
"@safe-global/safe-modules-deployments": "^2.2.4",
"@safe-global/types-kit": "^1.0.1",
"abitype": "^1.0.2",
11 changes: 11 additions & 0 deletions packages/protocol-kit/src/utils/eip-3770/config.ts
Original file line number Diff line number Diff line change
@@ -54,6 +54,7 @@ export const networks: NetworkShortName[] = [
{ chainId: 148n, shortName: 'shimmerevm' },
{ chainId: 155n, shortName: 'tenet-testnet' },
{ chainId: 169n, shortName: 'manta' },
{ chainId: 177n, shortName: 'hsk' },
{ chainId: 179n, shortName: 'abey' },
{ chainId: 181n, shortName: 'water' },
{ chainId: 195n, shortName: 'tokb' },
@@ -64,6 +65,7 @@ export const networks: NetworkShortName[] = [
{ chainId: 250n, shortName: 'ftm' },
{ chainId: 252n, shortName: 'fraxtal' },
{ chainId: 255n, shortName: 'kroma' },
{ chainId: 274n, shortName: 'lachain' },
{ chainId: 280n, shortName: 'zksync-goerli' },
{ chainId: 282n, shortName: 'zkTCRO' },
{ chainId: 288n, shortName: 'boba' },
@@ -78,9 +80,11 @@ export const networks: NetworkShortName[] = [
{ chainId: 360n, shortName: 'shape' },
{ chainId: 369n, shortName: 'pls' },
{ chainId: 388n, shortName: 'zkCRO' },
{ chainId: 418n, shortName: 'latestnet' },
{ chainId: 420n, shortName: 'ogor' },
{ chainId: 424n, shortName: 'PGN' },
{ chainId: 466n, shortName: 'appchain' },
{ chainId: 478n, shortName: 'formnetwork' },
{ chainId: 480n, shortName: 'wc' },
{ chainId: 530n, shortName: 'FxCore' },
{ chainId: 570n, shortName: 'sys-rollux' },
@@ -104,6 +108,7 @@ export const networks: NetworkShortName[] = [
{ chainId: 1101n, shortName: 'zkevm' },
{ chainId: 1111n, shortName: 'wemix' },
{ chainId: 1112n, shortName: 'twemix' },
{ chainId: 1114n, shortName: 'tcore2' },
{ chainId: 1115n, shortName: 'tcore' },
{ chainId: 1116n, shortName: 'core' },
{ chainId: 1135n, shortName: 'lisk' },
@@ -149,6 +154,7 @@ export const networks: NetworkShortName[] = [
{ chainId: 2810n, shortName: 'hmorph' },
{ chainId: 2818n, shortName: 'morph' },
{ chainId: 3338n, shortName: 'PEAQ' },
{ chainId: 3501n, shortName: 'JFIN' },
{ chainId: 3636n, shortName: 'BTNX' },
{ chainId: 3737n, shortName: 'csb' },
{ chainId: 3776n, shortName: 'astrzk' },
@@ -181,6 +187,7 @@ export const networks: NetworkShortName[] = [
{ chainId: 7000n, shortName: 'zetachain-mainnet' },
{ chainId: 7001n, shortName: 'zetachain-testnet' },
{ chainId: 7171n, shortName: 'bitrock' },
{ chainId: 7200n, shortName: 'xsat' },
{ chainId: 7332n, shortName: 'EON' },
{ chainId: 7341n, shortName: 'shyft' },
{ chainId: 7560n, shortName: 'cyeth' },
@@ -237,6 +244,7 @@ export const networks: NetworkShortName[] = [
{ chainId: 34443n, shortName: 'mode' },
{ chainId: 35441n, shortName: 'q' },
{ chainId: 35443n, shortName: 'q-testnet' },
{ chainId: 37111n, shortName: 'lens-sepolia' },
{ chainId: 41455n, shortName: 'aleph-zero' },
{ chainId: 42161n, shortName: 'arb1' },
{ chainId: 42170n, shortName: 'arb-nova' },
@@ -286,6 +294,7 @@ export const networks: NetworkShortName[] = [
{ chainId: 167000n, shortName: 'tko-mainnet' },
{ chainId: 167008n, shortName: 'tko-katla' },
{ chainId: 167009n, shortName: 'tko-hekla' },
{ chainId: 175188n, shortName: 'lpy' },
{ chainId: 200101n, shortName: 'milktada' },
{ chainId: 200202n, shortName: 'milktalgo' },
{ chainId: 200810n, shortName: 'btrt' },
@@ -302,10 +311,12 @@ export const networks: NetworkShortName[] = [
{ chainId: 534351n, shortName: 'scr-sepolia' },
{ chainId: 534352n, shortName: 'scr' },
{ chainId: 534353n, shortName: 'scr-alpha' },
{ chainId: 543210n, shortName: 'zero-network' },
{ chainId: 555666n, shortName: 'eclipset' },
{ chainId: 622277n, shortName: 'rth' },
{ chainId: 656476n, shortName: 'open-campus-codex' },
{ chainId: 660279n, shortName: 'xai' },
{ chainId: 668668n, shortName: 'cnw' },
{ chainId: 713715n, shortName: 'sei-devnet' },
{ chainId: 743111n, shortName: 'hemi-sep' },
{ chainId: 763373n, shortName: 'inksepolia' },
2 changes: 0 additions & 2 deletions packages/protocol-kit/tests/e2e/erc-20.test.ts
Original file line number Diff line number Diff line change
@@ -8,11 +8,9 @@ import { safeVersionDeployed, setupTests, itif } from '@safe-global/testing-kit'
import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
import sinon from 'sinon'
import sinonChai from 'sinon-chai'
import { getEip1193Provider } from './utils/setupProvider'
import { ZERO_ADDRESS } from '@safe-global/protocol-kit/utils/constants'

chai.use(sinonChai)
chai.use(chaiAsPromised)

const ERC20_TOKEN_ADDRESS = '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d'
4 changes: 2 additions & 2 deletions packages/protocol-kit/tests/e2e/onChainIdentifier.test.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import Safe, {
SafeAccountConfig
} from '@safe-global/protocol-kit/index'
import chai from 'chai'
import Sinon from 'sinon'
import sinon from 'sinon'
import chaiAsPromised from 'chai-as-promised'

import { generateHash } from '@safe-global/protocol-kit/utils/on-chain-tracking/generateOnChainIdentifier'
@@ -48,7 +48,7 @@ describe('On-chain analytics', () => {
platform: 'Web'
}

const stub = Sinon.stub(getProtocolKitVersionModule, 'getProtocolKitVersion').returns('5.0.4')
const stub = sinon.stub(getProtocolKitVersionModule, 'getProtocolKitVersion').returns('5.0.4')

const { safe, contractNetworks } = await setupTests()
const safeAddress = safe.address
2 changes: 0 additions & 2 deletions packages/protocol-kit/tests/e2e/passkey.test.ts
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ import Safe, {
import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
import sinon from 'sinon'
import sinonChai from 'sinon-chai'
import crypto from 'crypto'
import {
getSafeWebAuthnSignerFactoryContract,
@@ -26,7 +25,6 @@ import { waitSafeTxReceipt } from './utils/transactions'
import { createMockPasskey, getWebAuthnCredentials, deployPasskeysContract } from './utils/passkeys'

chai.use(chaiAsPromised)
chai.use(sinonChai)

const webAuthnCredentials = getWebAuthnCredentials()

2 changes: 0 additions & 2 deletions packages/protocol-kit/tests/e2e/safeProvider.test.ts
Original file line number Diff line number Diff line change
@@ -4,12 +4,10 @@ import chaiAsPromised from 'chai-as-promised'
import { getEip1193Provider } from './utils/setupProvider'
import { SafeProvider } from '@safe-global/protocol-kit/index'
import sinon from 'sinon'
import sinonChai from 'sinon-chai'
import { createMockPasskey, getWebAuthnCredentials } from './utils/passkeys'
import { publicActions, walletActions } from 'viem'

chai.use(chaiAsPromised)
chai.use(sinonChai)

const webAuthnCredentials = getWebAuthnCredentials()

2 changes: 1 addition & 1 deletion packages/testing-kit/package.json
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@
"homepage": "https://github.com/safe-global/safe-core-sdk#readme",
"devDependencies": {
"@gnosis.pm/safe-contracts-v1.3.0": "npm:@gnosis.pm/safe-contracts@1.3.0",
"@nomicfoundation/hardhat-viem": "^2.0.4",
"@nomicfoundation/hardhat-viem": "^2.0.6",
"@openzeppelin/contracts": "^2.5.1",
"@safe-global/safe-contracts-v1.4.1": "npm:@safe-global/safe-contracts@1.4.1",
"@safe-global/safe-passkey": "0.2.0-alpha.1",
Loading
Loading