Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions public/dapps/cloak.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/dapps/explorer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/dapps/qudo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
336 changes: 268 additions & 68 deletions src/antelope/chains/EVMChainSettings.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/antelope/chains/evm/telos-evm-testnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TokenClass, TokenSourceInfo } from 'src/antelope/types';
import { useUserStore } from 'src/antelope';
import { getFiatPriceFromIndexer } from 'src/api/price';

const LOGO = 'https://raw.githubusercontent.com/telosnetwork/token-list/main/logos/telos.png';
const LOGO = 'https://raw.githubusercontent.com/telosnetwork/token-list/main/logos/telos.svg';
const CHAIN_ID = '41';
export const NETWORK = 'telos-evm-testnet';
const DISPLAY = 'Telos EVM (Testnet)';
Expand Down
21 changes: 19 additions & 2 deletions src/antelope/chains/evm/telos-evm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TokenClass, TokenSourceInfo } from 'src/antelope/types';
import { useUserStore } from 'src/antelope';
import { getFiatPriceFromIndexer } from 'src/api/price';

const LOGO = 'https://raw.githubusercontent.com/telosnetwork/token-list/main/logos/telos.png';
const LOGO = 'https://raw.githubusercontent.com/telosnetwork/token-list/main/logos/telos.svg';
const CHAIN_ID = '40';
export const NETWORK = 'telos-evm';
const DISPLAY = 'Telos EVM';
Expand Down Expand Up @@ -50,14 +50,23 @@ const RPC_ENDPOINT = {
port: 443,
path: '/',
};

// Fallback RPC endpoints for redundancy
const FALLBACK_RPC_ENDPOINTS = [
{ protocol: 'https', host: 'mainnet.telos.net', port: 443, path: '/evm' },
{ protocol: 'https', host: 'telos.drpc.org', port: 443, path: '/' },
{ protocol: 'https', host: 'rpc1.us.telos.net', port: 443, path: '/evm' },
];
const ESCROW_CONTRACT_ADDRESS = '0x95F5713A1422Aa3FBD3DCB8D553945C128ee3855';
const API_ENDPOINT = 'https://api.telos.net/v1';
const WEI_PRECISION = 18;
const EXPLORER_URL = 'https://teloscan.io';
const ECOSYSTEM_URL = 'https://www.telos.net/ecosystem';
const BRIDGE_URL = 'https://bridge.telos.net/bridge';
const NETWORK_EVM_ENDPOINT = 'https://mainnet.telos.net';
const INDEXER_ENDPOINT = 'https://api.teloscan.io';
const EVM_RPC_ENDPOINT = 'https://rpc.telos.net';
// Blockscout API (replaces legacy api.teloscan.io)
const INDEXER_ENDPOINT = 'https://teloscan.io';
const CONTRACTS_BUCKET = 'https://verified-evm-contracts.s3.amazonaws.com';

declare const fathom: { trackEvent: (eventName: string) => void };
Expand All @@ -79,10 +88,18 @@ export default class TelosEVMTestnet extends EVMChainSettings {
return NETWORK_EVM_ENDPOINT;
}

getEvmRpcEndpoint(): string | null {
return EVM_RPC_ENDPOINT;
}

getRPCEndpoint(): RpcEndpoint {
return RPC_ENDPOINT;
}

getFallbackRPCEndpoints(): RpcEndpoint[] {
return FALLBACK_RPC_ENDPOINTS;
}

getApiEndpoint(): string {
return API_ENDPOINT;
}
Expand Down
2 changes: 1 addition & 1 deletion src/antelope/chains/native/telos-testnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RpcEndpoint } from 'universal-authenticator-library';
import { api } from 'src/api';
import { TokenClass, TokenSourceInfo, PriceChartData, Theme } from 'src/antelope/types';

const LOGO = 'https://raw.githubusercontent.com/telosnetwork/token-list/main/logos/telos.png';
const LOGO = 'https://raw.githubusercontent.com/telosnetwork/token-list/main/logos/telos.svg';
const CHAIN_ID =
'1eaa0824707c8c16bd25145493bf062aecddfeb56c736f6ba6397f3195f33c9f';
const NETWORK = 'telos-testnet';
Expand Down
2 changes: 1 addition & 1 deletion src/antelope/chains/native/telos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RpcEndpoint } from 'universal-authenticator-library';
import { api } from 'src/api';
import { TokenClass, TokenSourceInfo, PriceChartData, Theme } from 'src/antelope/types';

const LOGO = 'https://raw.githubusercontent.com/telosnetwork/token-list/main/logos/telos.png';
const LOGO = 'https://raw.githubusercontent.com/telosnetwork/token-list/main/logos/telos.svg';
const CHAIN_ID =
'4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11';
const NETWORK = 'telos';
Expand Down
Loading