Skip to content

Commit

Permalink
Merge branch 'main' into env/mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
SGiaccobasso committed Oct 9, 2024
2 parents c5c255c + 372e279 commit 5f5b2c0
Show file tree
Hide file tree
Showing 11 changed files with 10,892 additions and 14,293 deletions.
6 changes: 6 additions & 0 deletions apps/axelarscan-amplifier-apis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# axelarscan-amplifier-apis

## 0.0.4

### Patch Changes

- [#451](https://github.com/axelarnetwork/axelarjs/pull/451) [`89680a5b273e46465e3387346415beaad8e67c8c`](https://github.com/axelarnetwork/axelarjs/commit/89680a5b273e46465e3387346415beaad8e67c8c) Thanks [@SGiaccobasso](https://github.com/SGiaccobasso)! - add hedera to fees and prices file testnet and stagenet

## 0.0.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/axelarscan-amplifier-apis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "axelarscan-amplifier-apis",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"scripts": {
"deploy": "wrangler deploy",
Expand Down
72 changes: 27 additions & 45 deletions apps/axelarscan-amplifier-apis/src/configs/feesAndPrices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ const feesAndPrices = {
approvalCost: 250000,
updated: "2024-09-05",
},
{
name: "hedera",
amplifierChainId: "hedera",
description: null,
gasPriceGwei: 1730,
approvalCost: 250000,
updated: "2024-09-18",
},
],
stagenet: [
{
Expand All @@ -50,74 +58,48 @@ const feesAndPrices = {
approvalCost: 250000,
updated: "2024-09-05",
},
],
"devnet-verifiers": [
{
name: "Avalanche",
amplifierChainId: "avalanche",
description: null,
gasPriceGwei: 25,
approvalCost: 425000,
updated: "2024-08-05",
},
{
name: "fantom",
amplifierChainId: "fantom",
description: null,
gasPriceGwei: 1.03,
approvalCost: 1300000,
updated: "2024-08-05",
},
{
name: "ethereum-sepolia",
amplifierChainId: "ethereum-sepolia",
name: "hedera",
amplifierChainId: "hedera",
description: null,
gasPriceGwei: 11.5,
approvalCost: 200000,
updated: "2024-08-05",
},
{
name: "op-sepolia",
amplifierChainId: "op-sepolia",
description: null,
gasPriceGwei: 0.001,
approvalCost: 300000,
updated: "2024-08-05",
gasPriceGwei: 1730,
approvalCost: 250000,
updated: "2024-09-18",
},
],
"devnet-amplifier": [
{
name: "Avalanche",
amplifierChainId: "avalanche",
amplifierChainId: "avalanche-fuji",
description: null,
gasPriceGwei: 25,
approvalCost: 425000,
updated: "2024-08-05",
},
{
name: "fantom",
amplifierChainId: "fantom",
description: null,
gasPriceGwei: 1.03,
approvalCost: 1300000,
approvalCost: 200000,
updated: "2024-08-05",
},
{
name: "ethereum-sepolia",
amplifierChainId: "ethereum-sepolia",
name: "eth-sepolia",
amplifierChainId: "eth-sepolia",
description: null,
gasPriceGwei: 6.4,
approvalCost: 200000,
updated: "2024-08-05",
},
{
name: "op-sepolia",
amplifierChainId: "op-sepolia",
name: "optimism-sepolia",
amplifierChainId: "optimism-sepolia",
description: null,
gasPriceGwei: 0.001,
approvalCost: 300000,
updated: "2024-08-05",
},
{
name: "flow",
amplifierChainId: "flow",
description: null,
gasPriceGwei: 0.1,
approvalCost: 250000,
updated: "2024-09-05",
},
],
mainnet: [],
};
Expand Down
18 changes: 18 additions & 0 deletions apps/maestro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @axelarjs/maestro

## 0.3.28

### Patch Changes

- [#467](https://github.com/axelarnetwork/axelarjs/pull/467) [`f5764a714a0c7ddf27f9972f8f16ffbe1e3282a1`](https://github.com/axelarnetwork/axelarjs/commit/f5764a714a0c7ddf27f9972f8f16ffbe1e3282a1) Thanks [@SGiaccobasso](https://github.com/SGiaccobasso)! - change ethereum rpc urls

## 0.3.27

### Patch Changes

- [#460](https://github.com/axelarnetwork/axelarjs/pull/460) [`2212d30216b3af7b6d2c2bfce0318bb3de62678b`](https://github.com/axelarnetwork/axelarjs/commit/2212d30216b3af7b6d2c2bfce0318bb3de62678b) Thanks [@SGiaccobasso](https://github.com/SGiaccobasso)! - allow making transfers for tokens with 0 decimals

## 0.3.26

### Patch Changes

- [#454](https://github.com/axelarnetwork/axelarjs/pull/454) [`649ec35ad543c44fd6eb73ee18a184952b9e7598`](https://github.com/axelarnetwork/axelarjs/commit/649ec35ad543c44fd6eb73ee18a184952b9e7598) Thanks [@SGiaccobasso](https://github.com/SGiaccobasso)! - fix search interchain tokens query issue where it was only looking at the results for the first chain searched

## 0.3.25

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/maestro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axelarjs/maestro",
"version": "0.3.25",
"version": "0.3.28",
"private": true,
"publishConfig": {
"access": "restricted"
Expand Down
5 changes: 4 additions & 1 deletion apps/maestro/src/config/evm-chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ function createRpcUrlConfig(chain: Chain, additionalUrls: string[] = []) {
export const ALL_CHAINS: ExtendedWagmiChainConfig[] = [
{
...mainnet,
rpcUrls: createRpcUrlConfig(mainnet, ["https://eth.llamarpc.com"]),
rpcUrls: {
default: { http: ["https://eth.llamarpc.com", "https://eth.drpc.org"] }, // Temporarily using this url
public: { http: ["https://eth.llamarpc.com", "https://eth.drpc.org"] },
},
axelarChainId: "ethereum",
axelarChainName: "ethereum",
environment: ENVIRONMENTS.mainnet,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ export function useInterchainTokenServiceTransferMutation(

const mutation = useMutation<void, unknown, UseSendInterchainTokenInput>({
mutationFn: async ({ amount }) => {
if (!(decimals && address && config.gas)) {
// allow token transfers with decimals === 0 but not undefined
if (!(decimals !== undefined && address && config.gas)) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ async function scanChains(
return null;
});
});

const results = await Promise.all(promises);
const validResult = results.find((result) => result !== null);
const validResult = results.find((result) => result);

return validResult || null;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/maestro/src/services/interchainToken/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { trpc } from "~/lib/trpc";

export function useInterchainTokenDetailsQuery(input: {
chainId?: number;
tokenAddress?: `0x${string}`;
tokenAddress?: `0x${string}` | null;
}) {
return trpc.interchainToken.getInterchainTokenDetails.useQuery(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const InterchainTokensPage: FC = () => {
});

const { data: interchainTokenDetails } = useInterchainTokenDetailsQuery({
chainId: routeChain?.id,
tokenAddress,
chainId: interchainToken?.chainId,
tokenAddress: interchainToken?.tokenAddress,
});

const { data: tokenDetails } = useERC20TokenDetailsQuery({
Expand Down
Loading

0 comments on commit 5f5b2c0

Please sign in to comment.