@@ -26,6 +26,7 @@ const contractAddresses = {
26
26
berachain : [ "0xa05A3380889115bf313f1Db9d5f335157Be4D816" ] ,
27
27
mantle : [ "0xe0F010e465f15dcD42098dF9b99F1038c11B3056" ] ,
28
28
ink : [ "0xa05A3380889115bf313f1Db9d5f335157Be4D816" ] ,
29
+ solana : [ "everUnMiUkvZG8EyXAtW8HfMavCBTVeMhQszbrtpUQm" ] ,
29
30
} as const ;
30
31
31
32
// Helper function to convert bytes32 to address
@@ -36,9 +37,9 @@ function bytes32ToAddress(bytes32: string) {
36
37
// Deposit event (IntentAdded)
37
38
const depositIntent : PartialContractEventParams = {
38
39
target : "" ,
39
- topic : "IntentAdded(bytes32,bytes32 ,(bytes32,bytes32,bytes32,bytes32,uint24,uint32,uint64,uint48,uint48,uint256,uint32[],bytes))" ,
40
+ topic : "IntentAdded(bytes32,uint256 ,(bytes32,bytes32,bytes32,bytes32,uint24,uint32,uint64,uint48,uint48,uint256,uint32[],bytes))" ,
40
41
abi : [
41
- "event IntentAdded(bytes32 indexed _intentId, bytes32 indexed _queueId, tuple (bytes32 initiator, bytes32 receiver, bytes32 inputAsset, bytes32 outputAsset, uint24 maxFee, uint32 origin, uint64 nonce, uint48 timestamp, uint48 ttl, uint256 amount, uint32[] destinations, bytes data) _intent)" ,
42
+ "event IntentAdded(bytes32 indexed _intentId, uint256 _queueId, (bytes32 initiator, bytes32 receiver, bytes32 inputAsset, bytes32 outputAsset, uint24 maxFee, uint32 origin, uint64 nonce, uint48 timestamp, uint48 ttl, uint256 amount, uint32[] destinations, bytes data) _intent)" ,
42
43
] ,
43
44
logKeys : {
44
45
blockNumber : "blockNumber" ,
@@ -47,6 +48,7 @@ const depositIntent: PartialContractEventParams = {
47
48
argKeys : {
48
49
amount : "_intent.amount" ,
49
50
from : "_intent.initiator" ,
51
+ to : "_intent.receiver" ,
50
52
token : "_intent.inputAsset" ,
51
53
} ,
52
54
argGetters : {
@@ -81,12 +83,12 @@ const constructParams = (chain: Chain) => {
81
83
82
84
// Create event params for both deposit and withdrawal events for each contract address
83
85
const eventParams : PartialContractEventParams [ ] = [ ] ;
84
-
86
+
85
87
// Add deposit (IntentAdded) events
86
88
chainConfig . forEach ( address => {
87
89
eventParams . push ( { ...depositIntent , target : address } ) ;
88
90
} ) ;
89
-
91
+
90
92
// Add withdrawal (Settled) events
91
93
chainConfig . forEach ( address => {
92
94
eventParams . push ( { ...withdrawalIntent , target : address } ) ;
@@ -120,6 +122,7 @@ const adapter: BridgeAdapter = {
120
122
berachain : constructParams ( "berachain" ) ,
121
123
mantle : constructParams ( "mantle" ) ,
122
124
ink : constructParams ( "ink" ) ,
125
+ solana : constructParams ( "solana" ) ,
123
126
} ;
124
127
125
- export default adapter ;
128
+ export default adapter ;
0 commit comments