Skip to content

Commit

Permalink
Merge branch 'main' into trevor/relayer-validator-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter authored Jan 2, 2024
2 parents b92095e + 0e60c22 commit f05ef89
Show file tree
Hide file tree
Showing 23 changed files with 110 additions and 52 deletions.
6 changes: 0 additions & 6 deletions .changeset/five-spoons-complain.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/many-apes-invite.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/tame-cougars-attack.md

This file was deleted.

2 changes: 1 addition & 1 deletion rust/config/mainnet3_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
"canonicalAsset": "untrn",
"prefix": "neutron",
"gasPrice": {
"amount": "0.5",
"amount": "0.57",
"denom": "untrn"
},
"index": {
Expand Down
6 changes: 6 additions & 0 deletions solidity/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @hyperlane-xyz/core

## 3.5.0

### Patch Changes

- @hyperlane-xyz/utils@3.5.0

## 3.4.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions solidity/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@hyperlane-xyz/core",
"description": "Core solidity contracts for Hyperlane",
"version": "3.4.0",
"version": "3.5.0",
"dependencies": {
"@eth-optimism/contracts": "^0.6.0",
"@hyperlane-xyz/utils": "3.4.0",
"@hyperlane-xyz/utils": "3.5.0",
"@openzeppelin/contracts": "^4.9.3",
"@openzeppelin/contracts-upgradeable": "^v4.9.3"
},
Expand Down
11 changes: 11 additions & 0 deletions typescript/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @hyperlane-xyz/cli

## 3.5.0

### Patch Changes

- 05a943b4a: Skip mandatory balance check for remotes in send commands"
- Updated dependencies [655b6a0cd]
- Updated dependencies [08ba0d32b]
- Updated dependencies [f7d285e3a]
- @hyperlane-xyz/sdk@3.5.0
- @hyperlane-xyz/utils@3.5.0

## 3.4.0

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions typescript/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@hyperlane-xyz/cli",
"version": "3.4.0",
"version": "3.5.0",
"description": "A command-line utility for common Hyperlane operations",
"dependencies": {
"@hyperlane-xyz/sdk": "3.4.0",
"@hyperlane-xyz/utils": "3.4.0",
"@hyperlane-xyz/sdk": "3.5.0",
"@hyperlane-xyz/utils": "3.5.0",
"@inquirer/prompts": "^3.0.0",
"bignumber.js": "^9.1.1",
"chalk": "^5.3.0",
Expand Down
14 changes: 13 additions & 1 deletion typescript/cli/src/deploy/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ export async function runPreflightChecks({
signer,
multiProvider,
minGas,
chainsToGasCheck,
}: {
origin: ChainName;
remotes: ChainName[];
signer: ethers.Signer;
multiProvider: MultiProvider;
minGas: string;
chainsToGasCheck?: ChainName[];
}) {
log('Running pre-flight checks...');

Expand All @@ -37,6 +39,7 @@ export async function runPreflightChecks({
signer,
multiProvider,
minGas,
chainsToGasCheck,
});
}

Expand All @@ -45,11 +48,15 @@ export async function runPreflightChecksForChains({
signer,
multiProvider,
minGas,
chainsToGasCheck,
}: {
chains: ChainName[];
signer: ethers.Signer;
multiProvider: MultiProvider;
minGas: string;
// Chains for which to assert a native balance
// Defaults to all chains if not specified
chainsToGasCheck?: ChainName[];
}) {
log('Running pre-flight checks...');

Expand All @@ -65,7 +72,12 @@ export async function runPreflightChecksForChains({
assertSigner(signer);
logGreen('Signer is valid ✅');

await assertGasBalances(multiProvider, signer, chains, minGas);
await assertGasBalances(
multiProvider,
signer,
chainsToGasCheck ?? chains,
minGas,
);
logGreen('Balances are sufficient ✅');
}

Expand Down
1 change: 1 addition & 0 deletions typescript/cli/src/send/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export async function sendTestMessage({
multiProvider,
signer,
minGas: MINIMUM_TEST_SEND_GAS,
chainsToGasCheck: [origin],
});

await timeout(
Expand Down
1 change: 1 addition & 0 deletions typescript/cli/src/send/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export async function sendTestTransfer({
multiProvider,
signer,
minGas: MINIMUM_TEST_SEND_GAS,
chainsToGasCheck: [origin],
});

await timeout(
Expand Down
2 changes: 1 addition & 1 deletion typescript/cli/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '3.4.0';
export const VERSION = '3.5.0';
10 changes: 10 additions & 0 deletions typescript/helloworld/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @hyperlane-xyz/helloworld

## 3.5.0

### Patch Changes

- Updated dependencies [655b6a0cd]
- Updated dependencies [08ba0d32b]
- Updated dependencies [f7d285e3a]
- @hyperlane-xyz/sdk@3.5.0
- @hyperlane-xyz/core@3.5.0

## 3.4.0

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions typescript/helloworld/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@hyperlane-xyz/helloworld",
"description": "A basic skeleton of an Hyperlane app",
"version": "3.4.0",
"version": "3.5.0",
"dependencies": {
"@hyperlane-xyz/core": "3.4.0",
"@hyperlane-xyz/sdk": "3.4.0",
"@hyperlane-xyz/core": "3.5.0",
"@hyperlane-xyz/sdk": "3.5.0",
"@openzeppelin/contracts-upgradeable": "^4.9.3",
"ethers": "^5.7.2"
},
Expand Down
16 changes: 16 additions & 0 deletions typescript/infra/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @hyperlane-xyz/infra

## 3.5.0

### Minor Changes

- 655b6a0cd: Redeploy Routing ISM Factories

### Patch Changes

- f7d285e3a: Adds Test Recipient addresses to the SDK artifacts
- Updated dependencies [655b6a0cd]
- Updated dependencies [08ba0d32b]
- Updated dependencies [f7d285e3a]
- @hyperlane-xyz/sdk@3.5.0
- @hyperlane-xyz/helloworld@3.5.0
- @hyperlane-xyz/utils@3.5.0

## 3.4.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion typescript/infra/config/environments/mainnet3/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const neutron: RootAgentConfig = {
rpcConsensusType: RpcConsensusType.Fallback,
docker: {
repo,
tag: '86b7f98-20231207-153805',
tag: '67585a2-20231220-223937',
},
gasPaymentEnforcement: [
{
Expand Down
8 changes: 4 additions & 4 deletions typescript/infra/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hyperlane-xyz/infra",
"description": "Infrastructure utilities for the Hyperlane Network",
"version": "3.4.0",
"version": "3.5.0",
"dependencies": {
"@arbitrum/sdk": "^3.0.0",
"@aws-sdk/client-iam": "^3.74.0",
Expand All @@ -12,9 +12,9 @@
"@ethersproject/experimental": "^5.7.0",
"@ethersproject/hardware-wallets": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@hyperlane-xyz/helloworld": "3.4.0",
"@hyperlane-xyz/sdk": "3.4.0",
"@hyperlane-xyz/utils": "3.4.0",
"@hyperlane-xyz/helloworld": "3.5.0",
"@hyperlane-xyz/sdk": "3.5.0",
"@hyperlane-xyz/utils": "3.5.0",
"@nomiclabs/hardhat-etherscan": "^3.0.3",
"@safe-global/api-kit": "^1.3.0",
"@safe-global/protocol-kit": "^1.2.0",
Expand Down
13 changes: 13 additions & 0 deletions typescript/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @hyperlane-xyz/sdk

## 3.5.0

### Minor Changes

- 655b6a0cd: Redeploy Routing ISM Factories

### Patch Changes

- 08ba0d32b: Remove dead arbitrum goerli explorer link"
- f7d285e3a: Adds Test Recipient addresses to the SDK artifacts
- @hyperlane-xyz/core@3.5.0
- @hyperlane-xyz/utils@3.5.0

## 3.4.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions typescript/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@hyperlane-xyz/sdk",
"description": "The official SDK for the Hyperlane Network",
"version": "3.4.0",
"version": "3.5.0",
"dependencies": {
"@cosmjs/cosmwasm-stargate": "^0.31.3",
"@cosmjs/stargate": "^0.31.3",
"@hyperlane-xyz/core": "3.4.0",
"@hyperlane-xyz/utils": "3.4.0",
"@hyperlane-xyz/core": "3.5.0",
"@hyperlane-xyz/utils": "3.5.0",
"@solana/spl-token": "^0.3.8",
"@solana/web3.js": "^1.78.0",
"@types/coingecko-api": "^1.0.10",
Expand Down
5 changes: 4 additions & 1 deletion typescript/sdk/src/core/HyperlaneCoreDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ export class HyperlaneCoreDeployer extends HyperlaneDeployer<
if (
!e.message.includes('already initialized') &&
// Some RPC providers dont return the revert reason (nor allow ethers to parse it), so we have to check the message
!e.message.includes('Reverted 0x08c379a')
!e.message.includes('Reverted 0x08c379a') &&
// Handle situation where the gas estimation fails on the call function,
// then the real error reason is not available in `e.message`, but rather in `e.error.reason`
!e.error?.reason?.includes('already initialized')
) {
throw e;
}
Expand Down
2 changes: 2 additions & 0 deletions typescript/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @hyperlane-xyz/utils

## 3.5.0

## 3.4.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion typescript/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hyperlane-xyz/utils",
"description": "General utilities and types for the Hyperlane network",
"version": "3.4.0",
"version": "3.5.0",
"dependencies": {
"@cosmjs/encoding": "^0.31.3",
"@solana/web3.js": "^1.78.0",
Expand Down
28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4235,8 +4235,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "@hyperlane-xyz/cli@workspace:typescript/cli"
dependencies:
"@hyperlane-xyz/sdk": "npm:3.4.0"
"@hyperlane-xyz/utils": "npm:3.4.0"
"@hyperlane-xyz/sdk": "npm:3.5.0"
"@hyperlane-xyz/utils": "npm:3.5.0"
"@inquirer/prompts": "npm:^3.0.0"
"@types/mocha": "npm:^10.0.1"
"@types/node": "npm:^18.14.5"
Expand All @@ -4261,12 +4261,12 @@ __metadata:
languageName: unknown
linkType: soft

"@hyperlane-xyz/core@npm:3.4.0, @hyperlane-xyz/core@workspace:solidity":
"@hyperlane-xyz/core@npm:3.5.0, @hyperlane-xyz/core@workspace:solidity":
version: 0.0.0-use.local
resolution: "@hyperlane-xyz/core@workspace:solidity"
dependencies:
"@eth-optimism/contracts": "npm:^0.6.0"
"@hyperlane-xyz/utils": "npm:3.4.0"
"@hyperlane-xyz/utils": "npm:3.5.0"
"@nomiclabs/hardhat-ethers": "npm:^2.2.1"
"@nomiclabs/hardhat-waffle": "npm:^2.0.6"
"@openzeppelin/contracts": "npm:^4.9.3"
Expand All @@ -4293,12 +4293,12 @@ __metadata:
languageName: unknown
linkType: soft

"@hyperlane-xyz/helloworld@npm:3.4.0, @hyperlane-xyz/helloworld@workspace:typescript/helloworld":
"@hyperlane-xyz/helloworld@npm:3.5.0, @hyperlane-xyz/helloworld@workspace:typescript/helloworld":
version: 0.0.0-use.local
resolution: "@hyperlane-xyz/helloworld@workspace:typescript/helloworld"
dependencies:
"@hyperlane-xyz/core": "npm:3.4.0"
"@hyperlane-xyz/sdk": "npm:3.4.0"
"@hyperlane-xyz/core": "npm:3.5.0"
"@hyperlane-xyz/sdk": "npm:3.5.0"
"@nomiclabs/hardhat-ethers": "npm:^2.2.1"
"@nomiclabs/hardhat-waffle": "npm:^2.0.6"
"@openzeppelin/contracts-upgradeable": "npm:^4.9.3"
Expand Down Expand Up @@ -4343,9 +4343,9 @@ __metadata:
"@ethersproject/experimental": "npm:^5.7.0"
"@ethersproject/hardware-wallets": "npm:^5.7.0"
"@ethersproject/providers": "npm:^5.7.2"
"@hyperlane-xyz/helloworld": "npm:3.4.0"
"@hyperlane-xyz/sdk": "npm:3.4.0"
"@hyperlane-xyz/utils": "npm:3.4.0"
"@hyperlane-xyz/helloworld": "npm:3.5.0"
"@hyperlane-xyz/sdk": "npm:3.5.0"
"@hyperlane-xyz/utils": "npm:3.5.0"
"@nomiclabs/hardhat-ethers": "npm:^2.2.1"
"@nomiclabs/hardhat-etherscan": "npm:^3.0.3"
"@nomiclabs/hardhat-waffle": "npm:^2.0.6"
Expand Down Expand Up @@ -4393,14 +4393,14 @@ __metadata:
languageName: unknown
linkType: soft

"@hyperlane-xyz/sdk@npm:3.4.0, @hyperlane-xyz/sdk@workspace:typescript/sdk":
"@hyperlane-xyz/sdk@npm:3.5.0, @hyperlane-xyz/sdk@workspace:typescript/sdk":
version: 0.0.0-use.local
resolution: "@hyperlane-xyz/sdk@workspace:typescript/sdk"
dependencies:
"@cosmjs/cosmwasm-stargate": "npm:^0.31.3"
"@cosmjs/stargate": "npm:^0.31.3"
"@hyperlane-xyz/core": "npm:3.4.0"
"@hyperlane-xyz/utils": "npm:3.4.0"
"@hyperlane-xyz/core": "npm:3.5.0"
"@hyperlane-xyz/utils": "npm:3.5.0"
"@nomiclabs/hardhat-ethers": "npm:^2.2.1"
"@nomiclabs/hardhat-waffle": "npm:^2.0.6"
"@solana/spl-token": "npm:^0.3.8"
Expand Down Expand Up @@ -4437,7 +4437,7 @@ __metadata:
languageName: unknown
linkType: soft

"@hyperlane-xyz/utils@npm:3.4.0, @hyperlane-xyz/utils@workspace:typescript/utils":
"@hyperlane-xyz/utils@npm:3.5.0, @hyperlane-xyz/utils@workspace:typescript/utils":
version: 0.0.0-use.local
resolution: "@hyperlane-xyz/utils@workspace:typescript/utils"
dependencies:
Expand Down

0 comments on commit f05ef89

Please sign in to comment.