From 5c384cefa8c3c22bb0c531f0fb3f87ea72af6dd3 Mon Sep 17 00:00:00 2001 From: Nam Chu Hoai Date: Tue, 26 Jul 2022 13:47:42 +0200 Subject: [PATCH] Increase Avalanche Finality Blocks (#824) --- rust/config/mainnet/arbitrum_config.json | 2 +- rust/config/mainnet/bsc_config.json | 2 +- rust/config/mainnet/celo_config.json | 2 +- rust/config/mainnet/ethereum_config.json | 2 +- rust/config/mainnet/optimism_config.json | 2 +- rust/config/mainnet/polygon_config.json | 2 +- .../config/environments/mainnet/core/rust/arbitrum_config.json | 2 +- .../infra/config/environments/mainnet/core/rust/bsc_config.json | 2 +- .../config/environments/mainnet/core/rust/celo_config.json | 2 +- .../config/environments/mainnet/core/rust/ethereum_config.json | 2 +- .../config/environments/mainnet/core/rust/optimism_config.json | 2 +- .../config/environments/mainnet/core/rust/polygon_config.json | 2 +- typescript/sdk/src/consts/chainConnectionConfigs.ts | 2 +- typescript/sdk/src/consts/chainMetadata.ts | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/rust/config/mainnet/arbitrum_config.json b/rust/config/mainnet/arbitrum_config.json index 4fa2f5eef..150e95128 100644 --- a/rust/config/mainnet/arbitrum_config.json +++ b/rust/config/mainnet/arbitrum_config.json @@ -20,7 +20,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/rust/config/mainnet/bsc_config.json b/rust/config/mainnet/bsc_config.json index 2d24ce20b..b8a9c83af 100644 --- a/rust/config/mainnet/bsc_config.json +++ b/rust/config/mainnet/bsc_config.json @@ -6,7 +6,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/rust/config/mainnet/celo_config.json b/rust/config/mainnet/celo_config.json index a0079ea3b..6b6dc9bec 100644 --- a/rust/config/mainnet/celo_config.json +++ b/rust/config/mainnet/celo_config.json @@ -20,7 +20,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/rust/config/mainnet/ethereum_config.json b/rust/config/mainnet/ethereum_config.json index 972134ec8..4fc21bba2 100644 --- a/rust/config/mainnet/ethereum_config.json +++ b/rust/config/mainnet/ethereum_config.json @@ -20,7 +20,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/rust/config/mainnet/optimism_config.json b/rust/config/mainnet/optimism_config.json index ed0137285..26dce2d62 100644 --- a/rust/config/mainnet/optimism_config.json +++ b/rust/config/mainnet/optimism_config.json @@ -20,7 +20,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/rust/config/mainnet/polygon_config.json b/rust/config/mainnet/polygon_config.json index 13b21c07a..aec1ea064 100644 --- a/rust/config/mainnet/polygon_config.json +++ b/rust/config/mainnet/polygon_config.json @@ -20,7 +20,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/typescript/infra/config/environments/mainnet/core/rust/arbitrum_config.json b/typescript/infra/config/environments/mainnet/core/rust/arbitrum_config.json index 4fa2f5eef..150e95128 100644 --- a/typescript/infra/config/environments/mainnet/core/rust/arbitrum_config.json +++ b/typescript/infra/config/environments/mainnet/core/rust/arbitrum_config.json @@ -20,7 +20,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/typescript/infra/config/environments/mainnet/core/rust/bsc_config.json b/typescript/infra/config/environments/mainnet/core/rust/bsc_config.json index 2d24ce20b..b8a9c83af 100644 --- a/typescript/infra/config/environments/mainnet/core/rust/bsc_config.json +++ b/typescript/infra/config/environments/mainnet/core/rust/bsc_config.json @@ -6,7 +6,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/typescript/infra/config/environments/mainnet/core/rust/celo_config.json b/typescript/infra/config/environments/mainnet/core/rust/celo_config.json index a0079ea3b..6b6dc9bec 100644 --- a/typescript/infra/config/environments/mainnet/core/rust/celo_config.json +++ b/typescript/infra/config/environments/mainnet/core/rust/celo_config.json @@ -20,7 +20,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/typescript/infra/config/environments/mainnet/core/rust/ethereum_config.json b/typescript/infra/config/environments/mainnet/core/rust/ethereum_config.json index 972134ec8..4fc21bba2 100644 --- a/typescript/infra/config/environments/mainnet/core/rust/ethereum_config.json +++ b/typescript/infra/config/environments/mainnet/core/rust/ethereum_config.json @@ -20,7 +20,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/typescript/infra/config/environments/mainnet/core/rust/optimism_config.json b/typescript/infra/config/environments/mainnet/core/rust/optimism_config.json index ed0137285..26dce2d62 100644 --- a/typescript/infra/config/environments/mainnet/core/rust/optimism_config.json +++ b/typescript/infra/config/environments/mainnet/core/rust/optimism_config.json @@ -20,7 +20,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/typescript/infra/config/environments/mainnet/core/rust/polygon_config.json b/typescript/infra/config/environments/mainnet/core/rust/polygon_config.json index 13b21c07a..aec1ea064 100644 --- a/typescript/infra/config/environments/mainnet/core/rust/polygon_config.json +++ b/typescript/infra/config/environments/mainnet/core/rust/polygon_config.json @@ -20,7 +20,7 @@ "domain": "1635148152", "name": "avalanche", "rpcStyle": "ethereum", - "finalityBlocks": "1", + "finalityBlocks": "3", "connection": { "type": "http", "url": "" diff --git a/typescript/sdk/src/consts/chainConnectionConfigs.ts b/typescript/sdk/src/consts/chainConnectionConfigs.ts index f6faab5d5..ef18839a9 100644 --- a/typescript/sdk/src/consts/chainConnectionConfigs.ts +++ b/typescript/sdk/src/consts/chainConnectionConfigs.ts @@ -33,7 +33,7 @@ export const avalanche: IChainConnection = { 'https://api.avax.network/ext/bc/C/rpc', 43114, ), - confirmations: 1, + confirmations: 3, blockExplorerUrl: 'https://snowtrace.io', }; diff --git a/typescript/sdk/src/consts/chainMetadata.ts b/typescript/sdk/src/consts/chainMetadata.ts index ffd37445e..c5be8fd26 100644 --- a/typescript/sdk/src/consts/chainMetadata.ts +++ b/typescript/sdk/src/consts/chainMetadata.ts @@ -56,7 +56,7 @@ export const bsc: ChainMetadata = { export const avalanche: ChainMetadata = { id: 0x61766178, // b'avax' interpreted as an int - finalityBlocks: 1, + finalityBlocks: 3, paginate: { // Needs to be low to avoid RPC timeouts blocks: 100000,