Skip to content
Merged

Test #27

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
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: "10000000",
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
Loading