Socket
Socket
Sign inDemoInstall

@safe-global/protocol-kit

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@safe-global/protocol-kit - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

5

dist/src/contracts/Safe/SafeBaseContract.js

@@ -8,2 +8,3 @@ "use strict";

const config_1 = require("../../contracts/config");
const utils_1 = require("../../utils");
/**

@@ -39,3 +40,5 @@ * Abstract class SafeBaseContract extends BaseContract to specifically integrate with the Safe contract.

constructor(chainId, safeProvider, defaultAbi, safeVersion, isL1SafeSingleton = false, customContractAddress, customContractAbi) {
const isL1Contract = config_1.safeDeploymentsL1ChainIds.includes(chainId) || isL1SafeSingleton;
const isL1Contract = config_1.safeDeploymentsL1ChainIds.includes(chainId) ||
isL1SafeSingleton ||
!(0, utils_1.hasSafeFeature)(utils_1.SAFE_FEATURES.SAFE_L2_CONTRACTS, safeVersion);
const contractName = isL1Contract ? 'safeSingletonVersion' : 'safeSingletonL2Version';

@@ -42,0 +45,0 @@ super(contractName, chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi);

19

dist/src/utils/eip-3770/config.js

@@ -94,4 +94,6 @@ "use strict";

{ chainId: 1294n, shortName: 'bobabeam' },
{ chainId: 1329n, shortName: 'sei' },
{ chainId: 1442n, shortName: 'testnet-zkEVM-mango' },
{ chainId: 1559n, shortName: 'tenet' },
{ chainId: 1625n, shortName: 'gravity' },
{ chainId: 1663n, shortName: 'Gobi' },

@@ -111,2 +113,3 @@ { chainId: 1729n, shortName: 'reya' },

{ chainId: 2021n, shortName: 'edg' },
{ chainId: 2039n, shortName: 'aleph' },
{ chainId: 2221n, shortName: 'tkava' },

@@ -141,2 +144,3 @@ { chainId: 2222n, shortName: 'kava' },

{ chainId: 7341n, shortName: 'shyft' },
{ chainId: 7560n, shortName: 'cyeth' },
{ chainId: 7700n, shortName: 'canto' },

@@ -158,2 +162,3 @@ { chainId: 7771n, shortName: 'tbitrock' },

{ chainId: 10243n, shortName: 'aat' },
{ chainId: 10849n, shortName: 'lamina1' },
{ chainId: 11111n, shortName: 'WAGMI' },

@@ -171,6 +176,9 @@ { chainId: 11235n, shortName: 'islm' },

{ chainId: 17172n, shortName: 'eclipse' },
{ chainId: 18231n, shortName: 'unreal' },
{ chainId: 18231n, shortName: 'unreal-old' },
{ chainId: 18233n, shortName: 'unreal' },
{ chainId: 23294n, shortName: 'sapphire' },
{ chainId: 23295n, shortName: 'sapphire-testnet' },
{ chainId: 28979n, shortName: 'kimbonet-testnet' },
{ chainId: 32769n, shortName: 'zil' },
{ chainId: 33101n, shortName: 'zil-testnet' },
{ chainId: 34443n, shortName: 'mode' },

@@ -186,2 +194,3 @@ { chainId: 42161n, shortName: 'arb1' },

{ chainId: 47805n, shortName: 'rei' },
{ chainId: 48899n, shortName: 'zircuit-testnet' },
{ chainId: 54211n, shortName: 'islmt' },

@@ -192,2 +201,3 @@ { chainId: 56288n, shortName: 'boba-bnb' },

{ chainId: 59140n, shortName: 'linea-testnet' },
{ chainId: 59141n, shortName: 'linea-sepolia' },
{ chainId: 59144n, shortName: 'linea' },

@@ -205,3 +215,6 @@ { chainId: 71401n, shortName: 'gw-testnet-v1' },

{ chainId: 105105n, shortName: 'stratis' },
{ chainId: 111188n, shortName: 're-al' },
{ chainId: 167000n, shortName: 'tko-mainnet' },
{ chainId: 167008n, shortName: 'tko-katla' },
{ chainId: 167009n, shortName: 'tko-hekla' },
{ chainId: 200101n, shortName: 'milktada' },

@@ -222,2 +235,4 @@ { chainId: 200202n, shortName: 'milktalgo' },

{ chainId: 713715n, shortName: 'sei-devnet' },
{ chainId: 764984n, shortName: 'lamina1test' },
{ chainId: 810180n, shortName: 'zklink-nova' },
{ chainId: 7225878n, shortName: 'saakuru' },

@@ -229,3 +244,5 @@ { chainId: 7777777n, shortName: 'zora' },

{ chainId: 94204209n, shortName: 'polygon-blackberry' },
{ chainId: 111557560n, shortName: 'cysep' },
{ chainId: 123420111n, shortName: 'opcelestia-raspberry' },
{ chainId: 161221135n, shortName: 'plume-testnet' },
{ chainId: 168587773n, shortName: 'blastsepolia' },

@@ -232,0 +249,0 @@ { chainId: 222000222n, shortName: 'kanazawa' },

@@ -14,3 +14,4 @@ import { SafeContractImplementationType } from '../types';

REQUIRED_TXGAS = "REQUIRED_TXGAS",
SIMULATE_AND_REVERT = "SIMULATE_AND_REVERT"
SIMULATE_AND_REVERT = "SIMULATE_AND_REVERT",
SAFE_L2_CONTRACTS = "SAFE_L2_CONTRACTS"
}

@@ -17,0 +18,0 @@ export declare const hasSafeFeature: (feature: SAFE_FEATURES, version: string) => boolean;

@@ -17,2 +17,3 @@ "use strict";

SAFE_FEATURES["SIMULATE_AND_REVERT"] = "SIMULATE_AND_REVERT";
SAFE_FEATURES["SAFE_L2_CONTRACTS"] = "SAFE_L2_CONTRACTS";
})(SAFE_FEATURES || (exports.SAFE_FEATURES = SAFE_FEATURES = {}));

@@ -26,3 +27,4 @@ const SAFE_FEATURES_BY_VERSION = {

[SAFE_FEATURES.REQUIRED_TXGAS]: '<=1.2.0',
[SAFE_FEATURES.SIMULATE_AND_REVERT]: '>=1.3.0'
[SAFE_FEATURES.SIMULATE_AND_REVERT]: '>=1.3.0',
[SAFE_FEATURES.SAFE_L2_CONTRACTS]: '>=1.3.0'
};

@@ -29,0 +31,0 @@ const hasSafeFeature = (feature, version) => {

{
"name": "@safe-global/protocol-kit",
"version": "4.0.1",
"version": "4.0.2",
"description": "SDK that facilitates the interaction with Safe Smart Accounts",

@@ -53,3 +53,3 @@ "main": "dist/src/index.js",

"@gnosis.pm/safe-contracts-v1.3.0": "npm:@gnosis.pm/safe-contracts@1.3.0",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-ethers": "^3.0.6",
"@openzeppelin/contracts": "^2.5.1",

@@ -71,3 +71,3 @@ "@safe-global/safe-contracts-v1.4.1": "npm:@safe-global/safe-contracts@1.4.1",

"tsconfig-paths": "^4.2.0",
"viem": "^2.10.2",
"viem": "^2.15.1",
"web3": "^4.7.0",

@@ -78,9 +78,9 @@ "yargs": "^17.7.2"

"@noble/hashes": "^1.3.3",
"@safe-global/safe-core-sdk-types": "^5.0.1",
"@safe-global/safe-deployments": "^1.36.0",
"@safe-global/safe-core-sdk-types": "^5.0.2",
"@safe-global/safe-deployments": "^1.37.0",
"abitype": "^1.0.2",
"ethereumjs-util": "^7.1.5",
"ethers": "^6.12.1",
"semver": "^7.6.1"
"ethers": "^6.13.1",
"semver": "^7.6.2"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc