Skip to content
Merged
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: 2 additions & 2 deletions src/antelope/chains/evm/telos-evm-testnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ const W_TOKEN = new TokenClass({

const RPC_ENDPOINT = {
protocol: 'https',
host: 'testnet.telos.net',
host: 'rpc.testnet.telos.net',
port: 443,
path: '/evm',
path: '/',
};
const ESCROW_CONTRACT_ADDRESS = '0x7E9cF9fBc881652B05BB8F26298fFAB538163b6f';
const API_ENDPOINT = 'https://api-dev.telos.net/v1';
Expand Down
4 changes: 2 additions & 2 deletions src/antelope/chains/evm/telos-evm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ const W_TOKEN = new TokenClass({

const RPC_ENDPOINT = {
protocol: 'https',
host: 'mainnet.telos.net',
host: 'rpc.telos.net',
port: 443,
path: '/evm',
path: '/',
};
const ESCROW_CONTRACT_ADDRESS = '0x95F5713A1422Aa3FBD3DCB8D553945C128ee3855';
const API_ENDPOINT = 'https://api.telos.net/v1';
Expand Down
9 changes: 8 additions & 1 deletion src/antelope/stores/allowances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
TransactionResponse,
isErc20AllowanceRow,
isErc721SingleAllowanceRow,
isNftCollectionAllowanceRow,
isNftCollectionAllowanceRow, EvmContractFactoryData,
} from 'src/antelope/types';
import { createTraceFunction } from 'src/antelope/config';
import EVMChainSettings from 'src/antelope/chains/EVMChainSettings';
Expand Down Expand Up @@ -253,6 +253,13 @@ export const useAllowancesStore = defineStore(store_name, {
const erc721AllowancesData = (allowancesResults[1] as IndexerAllowanceResponseErc721)?.results ?? [];
const erc1155AllowancesData = (allowancesResults[2] as IndexerAllowanceResponseErc1155)?.results ?? [];

// Load these in the cache so they're available later and we don't abuse the indexer API
allowancesResults.map((result) => {
for (const [address, contract] of Object.entries(result.contracts)) {
useContractStore().createAndStoreContract(CURRENT_CONTEXT, address, contract as EvmContractFactoryData);
}
});

const shapedErc20AllowanceRowPromises = Promise.allSettled(erc20AllowancesData.map(allowanceData => this.shapeErc20AllowanceRow(allowanceData)));
const shapedErc721AllowanceRowPromises = Promise.allSettled(erc721AllowancesData.map(allowanceData => this.shapeErc721AllowanceRow(allowanceData)));
const shapedErc1155AllowanceRowPromises = Promise.allSettled(erc1155AllowancesData.map(allowanceData => this.shapeErc1155AllowanceRow(allowanceData)));
Expand Down
Loading