@hyperlane-xyz/sdk 5.2.0-beta.1 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,12 +67,10 @@ export async function getSafe(chain, multiProvider, safeAddress) {
67
67
  multiSend = getMultiSendDeployment({
68
68
  version: multiSendVersion,
69
69
  network: domainId,
70
- released: true,
71
70
  });
72
71
  multiSendCallOnly = getMultiSendCallOnlyDeployment({
73
72
  version: multiSendCallOnlyVersion,
74
73
  network: domainId,
75
- released: true,
76
74
  });
77
75
  }
78
76
 
@@ -80,12 +78,13 @@ export async function getSafe(chain, multiProvider, safeAddress) {
80
78
  ethAdapter,
81
79
  safeAddress,
82
80
  contractNetworks: {
81
+ // DomainId == ChainId for EVM Chains
83
82
  [domainId]: {
84
83
  // Use the safe address for multiSendAddress and multiSendCallOnlyAddress
85
- // if the contract is not deployed or if the version is not found
86
- multiSendAddress: multiSend?.defaultAddress || safeAddress,
84
+ // if the contract is not deployed or if the version is not found.
85
+ multiSendAddress: multiSend?.networkAddresses[domainId] || safeAddress,
87
86
  multiSendCallOnlyAddress:
88
- multiSendCallOnly?.defaultAddress || safeAddress,
87
+ multiSendCallOnly?.networkAddresses[domainId] || safeAddress,
89
88
  },
90
89
  },
91
90
  });
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@hyperlane-xyz/sdk",
3
3
  "description": "The official SDK for the Hyperlane Network",
4
- "version": "5.2.0-beta.1",
4
+ "version": "5.2.0",
5
5
  "dependencies": {
6
6
  "@arbitrum/sdk": "^4.0.0",
7
7
  "@aws-sdk/client-s3": "^3.74.0",
8
8
  "@cosmjs/cosmwasm-stargate": "^0.32.4",
9
9
  "@cosmjs/stargate": "^0.32.4",
10
- "@hyperlane-xyz/core": "5.2.0-beta.1",
11
- "@hyperlane-xyz/utils": "5.2.0-beta.1",
10
+ "@hyperlane-xyz/core": "5.2.0",
11
+ "@hyperlane-xyz/utils": "5.2.0",
12
12
  "@safe-global/api-kit": "1.3.0",
13
13
  "@safe-global/protocol-kit": "1.3.0",
14
- "@safe-global/safe-deployments": "1.37.3",
14
+ "@safe-global/safe-deployments": "1.37.8",
15
15
  "@solana/spl-token": "^0.3.8",
16
16
  "@solana/web3.js": "^1.78.0",
17
17
  "@types/coingecko-api": "^1.0.10",