Skip to content

Commit

Permalink
Merge pull request #21 from ourzora/02-13-Fix_zora_sepolia_safe_conne…
Browse files Browse the repository at this point in the history
…ction

Fix zora sepolia safe connection
  • Loading branch information
iainnash committed Apr 21, 2024
2 parents b2d2e22 + 64089d6 commit 2b0a1a8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 42 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"type": "module",
"dependencies": {
"@safe-global/protocol-kit": "^2.0.0",
"@safe-global/protocol-kit": "^3.0.0",
"@safe-global/safe-deployments": "^1.33.0",
"@zoralabs/zorb": "^0.1.0",
"ethers": "^6.7.1",
Expand All @@ -16,7 +16,7 @@
"react-router-dom": "^6.20.0",
"reshaped": "^2.6.0",
"toastify-js": "^1.12.0",
"viem": "^2.7.16",
"viem": "^2.9.23",
"yup": "^1.3.2"
},
"scripts": {
Expand Down
32 changes: 3 additions & 29 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,22 @@ import * as chains from "viem/chains";

const defaultL2Addresses = {
multiSendAddress: "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",
safeMasterCopyAddress: "0x3E5c63644E683549055b9Be8653de26E0B4CD36E",
safeProxyFactoryAddress: "0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",
multiSendCallOnlyAddress: "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",
fallbackHandlerAddress: "0x1AC114C2099aFAf5261731655Dc6c306bFcd4Dbd",
createCallAddress: "0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",
signMessageLibAddress: "0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",
// renamed from safeMasterCopyAddress
safeSingletonAddress: "0x3E5c63644E683549055b9Be8653de26E0B4CD36E",
simulateTxAccessorAddress: "0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",
};

const blast = {
id: 81457 as const,
name: "Blast",
network: "blast",
nativeCurrency: {
decimals: 18,
name: "Ether",
symbol: "ETH",
},
rpcUrls: {
default: {
http: [],
},
public: {
http: [],
},
},
blockExplorers: {
etherscan: {
name: "Explorer",
url: "https://blastscan.io",
},
default: { name: "Explorer", url: "https://blastscan.io" },
},
};

// Example how to add new networks before they are merged and released from `safe-global/safe-deployments` package.
export const contractNetworks: ContractNetworksConfig = {
[`${chains.zoraSepolia.id}`]: defaultL2Addresses,
[`${chains.blastSepolia.id}`]: defaultL2Addresses,
[`${chains.optimismSepolia.id}`]: defaultL2Addresses,
[`${blast.id}`]: defaultL2Addresses,
[`${chains.blast.id}`]: defaultL2Addresses,
};

export const allowedNetworks: { [chainId: number]: chains.Chain } = {
Expand All @@ -61,7 +35,7 @@ export const allowedNetworks: { [chainId: number]: chains.Chain } = {
[chains.optimism.id]: chains.optimism,
[chains.optimismSepolia.id]: chains.optimismSepolia,
[chains.blastSepolia.id]: chains.blastSepolia,
[blast.id]: blast,
[chains.blast.id]: chains.blast,
};

Object.keys(contractNetworks).map((network) => {
Expand Down
29 changes: 18 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39"
integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==

"@noble/hashes@1.3.3", "@noble/hashes@^1.3.2":
"@noble/hashes@1.3.3", "@noble/hashes@^1.3.3":
version "1.3.3"
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.3.tgz#39908da56a4adc270147bb07968bf3b16cfe1699"
integrity sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==
Expand Down Expand Up @@ -1200,13 +1200,13 @@
resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.5.0.tgz#748970e066839e33ed8c935061e370c4ab050517"
integrity sha512-8kdW+brNhI/NzJ4fxDufuJUjepzINqJKLGHuxyAtpPG9bMbn8P5mtaCcbOm0EzLJ+atg+kF9dwg8jpclkVqx5w==

"@safe-global/protocol-kit@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@safe-global/protocol-kit/-/protocol-kit-2.0.0.tgz#9d7cd6299dc9728c5c5d229a45b73a3b07ec4af7"
integrity sha512-alnSxNZKC1ssKrFG5ytluu9kNKGwBifb1xhOyCqwMnm72JksbCEo0UWlNvaeCiYMwhYvMyS++mfxcLAsV/8Gfw==
"@safe-global/protocol-kit@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@safe-global/protocol-kit/-/protocol-kit-3.0.0.tgz#9db15a214bf307af81b082eab329b33642d5acd8"
integrity sha512-0x/VqxWQvjUpkK9VeO/llfYMNoUV/Zngq3PKD8mC3H40v/KzOa2jUSgwxkTiRJRxH1cjuwAG+tXcdVluk73Wfw==
dependencies:
"@noble/hashes" "^1.3.2"
"@safe-global/safe-deployments" "^1.28.0"
"@noble/hashes" "^1.3.3"
"@safe-global/safe-deployments" "^1.32.0"
ethereumjs-util "^7.1.5"
ethers "^6.7.1"
semver "^7.5.4"
Expand All @@ -1231,6 +1231,13 @@
dependencies:
semver "^7.3.7"

"@safe-global/safe-deployments@^1.32.0":
version "1.34.0"
resolved "https://registry.yarnpkg.com/@safe-global/safe-deployments/-/safe-deployments-1.34.0.tgz#5eef33012a4af55c4440036b1c0cfdb2245c6e49"
integrity sha512-J55iHhB1tiNoPeVQ5s943zrfeKRYPqBtnz/EM7d878WzUmmDlTGKHN98qPYKBxkRKP1UjEWuQDrZxy80lx1rJw==
dependencies:
semver "^7.3.7"

"@safe-global/safe-deployments@^1.33.0":
version "1.33.0"
resolved "https://registry.yarnpkg.com/@safe-global/safe-deployments/-/safe-deployments-1.33.0.tgz#5fc33354e752d02fa06b3ab1c1060ba23f484038"
Expand Down Expand Up @@ -5790,10 +5797,10 @@ verror@1.10.0:
core-util-is "1.0.2"
extsprintf "^1.2.0"

viem@^2.7.16:
version "2.7.16"
resolved "https://registry.yarnpkg.com/viem/-/viem-2.7.16.tgz#99e66bbec661b2284bc32061474f20a90381bdcb"
integrity sha512-yOPa9yaoJUm44m0Qe3ugHnkHol3QQlFxN3jT+bq+lQip7X7cWdPfmguyfLWX2viCXcmYZUDiQdeFbkPW9lw11Q==
viem@^2.9.23:
version "2.9.23"
resolved "https://registry.yarnpkg.com/viem/-/viem-2.9.23.tgz#43a286779bc68b974794e3673175734b92d5db3b"
integrity sha512-KolNI8H8tNkOA6xkC5UnlQjoorJxk4F1F9h42pHnH9/CtrWG9Ka4xmAWwhO2xKNPA2sNsAsJLmedBsz2uvaQow==
dependencies:
"@adraffy/ens-normalize" "1.10.0"
"@noble/curves" "1.2.0"
Expand Down

0 comments on commit 2b0a1a8

Please sign in to comment.