Skip to content

Commit

Permalink
fix(app): update osmo rpc (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimakorzhovnik authored Dec 11, 2023
1 parent 329510f commit 39fef47
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/containers/teleport/pages/bridge/actionBar.bridge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const { STAGE_INIT, STAGE_ERROR, STAGE_SUBMITTED } = LEDGER;

const STAGE_CONFIRMED_IBC = 7.1;

const TIMEOUT_TIMESTAMP = 2 * 60 * 1000; // 2 min

const fee = {
amount: [],
gas: DEFAULT_GAS_LIMITS.toString(),
Expand Down Expand Up @@ -95,7 +97,7 @@ function ActionBar({ stateActionBar }: { stateActionBar: Props }) {
const sourcePort = 'transfer';

const timeoutTimestamp = Long.fromString(
`${new Date().getTime() + 60000}000000`
`${new Date().getTime() + TIMEOUT_TIMESTAMP}000000`
);
const [{ coinDecimals: coinDecimalsA }] = traseDenom(denomIbc);
const amount = convertAmountReverce(tokenAmount, coinDecimalsA);
Expand Down Expand Up @@ -183,7 +185,7 @@ function ActionBar({ stateActionBar }: { stateActionBar: Props }) {
const sourcePort = 'transfer';
const counterpartyAccount = fromBech32(address, prefix);
const timeoutTimestamp = Long.fromString(
`${new Date().getTime() + 60000}000000`
`${new Date().getTime() + TIMEOUT_TIMESTAMP}000000`
);
const [{ coinDecimals: coinDecimalsA }] = traseDenom(tokenSelect);
const amount = convertAmountReverce(tokenAmount, coinDecimalsA);
Expand Down
4 changes: 2 additions & 2 deletions src/utils/configToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const coinDecimalsConfig = {
coinDecimals: 6,
denom: 'OSMO',
coinMinimalDenom: 'uosmo',
rpc: 'https://rpc-osmosis.blockapsis.com/',
rpc: 'https://rpc.osmosis-1.bronbro.io',
prefix: 'osmo',
sourceChannelId: 'channel-95',
destChannelId: 'channel-2',
Expand Down Expand Up @@ -70,7 +70,7 @@ const coinDecimalsConfig = {
coinDecimals: 18,
denom: 'EVMOS',
coinMinimalDenom: 'aevmos',
rpc: 'https://tendermint.bd.evmos.org:26657',
rpc: 'https://rpc.evmos-9001-2.bronbro.io',
sourceChannelId: 'channel-19',
destChannelId: 'channel-9',
},
Expand Down
4 changes: 2 additions & 2 deletions src/utils/networkListIbc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const networkList: ObjectKey<NetworkCons> = {
coinMinimalDenom: 'uosmo',
coinDecimals: 6,
denom: 'OSMO',
rpc: 'https://rpc-osmosis.blockapsis.com/',
rpc: 'https://rpc.osmosis-1.bronbro.io',
prefix: 'osmo',
explorerUrlToTx: 'https://www.mintscan.io/osmosis/txs/{txHash}',
},
Expand Down Expand Up @@ -101,7 +101,7 @@ const networkList: ObjectKey<NetworkCons> = {
},
'evmos_9001-2': {
chainId: 'evmos_9001-2',
rpc: 'https://tendermint.bd.evmos.org:26657',
rpc: 'https://rpc.evmos-9001-2.bronbro.io',
sourceChainId: 'bostrom',
sourceChannelId: 'channel-9',
destinationChainId: 'evmos_9001-2',
Expand Down
4 changes: 2 additions & 2 deletions src/utils/networksList.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const networkList = [
chainId: 'osmosis-1',
chainName: 'osmosis',
prefix: 'osmo',
rpc: 'https://rpc-osmosis.blockapsis.com/',
rpc: 'https://rpc.osmosis-1.bronbro.io',
explorerUrlToTx: 'https://www.mintscan.io/osmosis/txs/{txHash}',
chainIdImageCid: 'QmbS1fKYo9Kxx6g2NwfqABbjKSVcNiRE4wAPYjvak2AZbN',
},
Expand Down Expand Up @@ -50,7 +50,7 @@ const networkList = [
{
chainId: 'evmos_9001-2',
chainName: 'evmos',
rpc: 'https://tendermint.bd.evmos.org:26657',
rpc: 'https://rpc.evmos-9001-2.bronbro.io',
prefix: 'evmos',
explorerUrlToTx: 'https://www.mintscan.io/evmos/txs/{txHash}',
chainIdImageCid: 'QmXhPaHEpLakqEvhY36bzt3ffi9HheF8haPNdbf8RKJbko',
Expand Down

0 comments on commit 39fef47

Please sign in to comment.