Skip to content

Commit

Permalink
Merge pull request #331 from rhinofi/rhino-update-bridge-deposit-event
Browse files Browse the repository at this point in the history
[rhinofi] update bridge deposit event
  • Loading branch information
vrtnd authored Jan 26, 2025
2 parents df5c316 + 3b3d3aa commit 3a81e76
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/adapters/rhinofi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { BridgeAdapter, PartialContractEventParams } from "../../helpers/bridgeA
import { getTxDataFromEVMEventLogs } from "../../helpers/processTransactions";

export const bridgesAddress = {
ethereum: "0xbca3039a18c0d2f2f84ba8a028c67290bc045afa",
arbitrum: "0x10417734001162Ea139e8b044DFe28DbB8B28ad0",
bsc: "0xb80a582fa430645a043bb4f6135321ee01005fef",
polygon: "0xBA4EEE20F434bC3908A0B18DA496348657133A7E",
Expand Down Expand Up @@ -38,16 +39,16 @@ const depositParams = (chain: SupportedChains): PartialContractEventParams => {

return {
target: bridgeAddress,
topic: "BridgedDeposit(address,address,uint256)",
abi: ["event BridgedDeposit(address indexed user, address indexed token, uint256 amount)"],
topic: "BridgedDepositWithId(address,address,address,uint256,uint256)",
abi: ["event BridgedDepositWithId(address sender, address origin, address token, uint256 amount, uint256 commitmentId)"],
isDeposit: true,
logKeys: {
blockNumber: "blockNumber",
txHash: "transactionHash",
},
argKeys: {
token: "token",
from: "user",
from: "origin",
amount: "amount",
},
fixedEventData: {
Expand Down Expand Up @@ -87,6 +88,7 @@ const constructParams = (chain: SupportedChains) => {
};

const adapter: BridgeAdapter = {
ethereum: constructParams("ethereum"),
arbitrum: constructParams("arbitrum"),
bsc: constructParams("bsc"),
polygon: constructParams("polygon"),
Expand Down

0 comments on commit 3a81e76

Please sign in to comment.