Skip to content

Commit

Permalink
nominal fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiabbasi committed Feb 9, 2024
1 parent db48b8d commit cf07d1a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/api/eosio_core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const eosioCore = new APIClient({
export const getAccount = async function (
address: string,
): Promise<API.v1.AccountObject> {
console.log('osioCore.v1.chain.get_account(address)', eosioCore.v1.chain.get_account(address));
return await eosioCore.v1.chain.get_account(address);
};

Expand Down
4 changes: 3 additions & 1 deletion src/api/hyperion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import { GetActionsResponse } from 'src/types/Actions';

const chain: Chain = getChain();
const hyperion = axios.create({ baseURL: chain.getHyperionEndpoint() });
const api = axios.create({ baseURL: chain.getApiEndpoint() });

const controller = new AbortController();
export const DEFAULT_ICON = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNyAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSI5IiByPSI4IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxjaXJjbGUgY3g9IjkiIGN5PSI5IiByPSI4IiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=';

Expand Down Expand Up @@ -217,7 +219,7 @@ export const getPermissionLinks = async function (
export const getTableByScope = async function (
data: unknown,
): Promise<TableByScope[]> {
const response = await hyperion.post('v1/chain/get_table_by_scope', data);
const response = await api.post('v1/chain/get_table_by_scope', data);
return (response.data as {rows:TableByScope[]}).rows;
};

Expand Down
2 changes: 1 addition & 1 deletion src/api/price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getCoingeckoUsdPrice = async (
const stats: PriceStats = await axios.get(
getCoingeckoExchangeStatsUrl(tokenId),
);
console.log('stats', stats);

return stats.data[tokenId].usd;
};

Expand Down
28 changes: 15 additions & 13 deletions src/config/chains/pangea-testnet/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
/*
# MAINNET VALUES
# NETWORK_CHAIN_ID=4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11
# NETWORK_HOST=mainnet.telos.net
# NETWORK_PORT=443
# NETWORK_PROTOCOL=https
# NETWORK_EVM_RPC=https://mainnet.telos.net/evm
# NETWORK_EVM_ENDPOINT=https://mainnet.telos.net
# NETWORK_EVM_CONTRACT=eosio.evm
# NETWORK_EVM_CHAIN_ID=40
# HYPERION_ENDPOINT=https://mainnet.telos.net
# TELOS_API_ENDPOINT=https://api.telos.net/v1
NETWORK_CHAIN_ID=
NETWORK_HOST=testnet.telos.net
NETWORK_PORT=443
NETWORK_PROTOCOL=https
NETWORK_EVM_RPC=https://testnet.telos.net/evm
NETWORK_EVM_ENDPOINT=https://testnet.telos.net
NETWORK_EVM_CONTRACT=eosio.evm
NETWORK_EVM_CHAIN_ID=41
HYPERION_ENDPOINT=https://testnet.telos.net
TELOS_API_ENDPOINT=https://api-dev.telos.net/v1
# TELOS_API_ENDPOINT=localhost:9999/v1
APP_NAME=OBE
PRODUCER_BUCKET_URL=
*/

import BaseChain, { baseUiConfiguration } from 'src/config/BaseChain';
import { RpcEndpoint } from 'universal-authenticator-library';
import {
Expand Down Expand Up @@ -106,7 +108,7 @@ const THEME = {
'color-footer-background': '#67D7ED',
};

export default class Telos extends BaseChain {
export default class PangeaTestnet extends BaseChain {
getName(): string {
return NAME;
}
Expand Down

0 comments on commit cf07d1a

Please sign in to comment.