Skip to content

Commit

Permalink
Merge pull request #27 from XP-NETWORK/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
D4mph1r authored Dec 18, 2024
2 parents ea24bc8 + 8c28108 commit e352af0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const bridgeTestChains = [
blockChunks: 1000,
chainType: "scrt",
chainId: "secret-4",
contractAddress: "secret1ym9jslryg6r8nlch2036py92gd50vejznwhuvx",
contractAddress: "secret13kgatwt6cachvy2v9n7lkkwewq9qhvphynuns3",
decimals: 6,
intialFund: "5000000",
lastBlock: 16833475,
Expand Down Expand Up @@ -118,17 +118,17 @@ export const bridgeTestChains = [
theGraphApiUrl:
"https://api.studio.thegraph.com/query/89122/near-xp/version/latest",
},
{
chain: "BLAST",
rpcURL: "https://blast-sepolia.blockpi.network/v1/rpc/public",
nativeCoinSymbol: "ETH",
intialFund: "50000000000000000",
contractAddress: "0x2Aa8Dbb7543754d70B5A40D52cB81c2a0bB08B83",
chainType: "evm",
lastBlock: 11980723,
decimals: 18,
blockChunks: 1000,
},
// {
// chain: "BLAST",
// rpcURL: "https://blast-sepolia.blockpi.network/v1/rpc/public",
// nativeCoinSymbol: "ETH",
// intialFund: "50000000000000000",
// contractAddress: "0x2Aa8Dbb7543754d70B5A40D52cB81c2a0bB08B83",
// chainType: "evm",
// lastBlock: 11980723,
// decimals: 18,
// blockChunks: 1000,
// },
{
chain: "APTOS",
chainType: "aptos",
Expand Down
3 changes: 3 additions & 0 deletions src/handler/chains/evm/utils/listenForStakingEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ const listenForStakingEvents = (
logger.info(`Processing TX at: ${log.transactionHash}`);
const decoded = stakerInt.parseLog(log);
const receipt = await log.getTransactionReceipt();
const erc = ERC20Staking__factory.connect(staker, provider);
const balance = await erc.stakingBalances(receipt.from);
if (balance <= 0) continue;
if (!decoded) continue;
await cb(
builder.staked(
Expand Down

0 comments on commit e352af0

Please sign in to comment.