@@ -24,39 +24,41 @@ export const OutboundTransferQueuedTopic =
24
24
25
25
/// @notice Emitted when an outbound transfer is rate limited.
26
26
/// @dev Topic0
27
- /// 0x754d657d1363ee47d967b415652b739bfe96d5729ccf2f26625dcdbc147db68b .
27
+ /// 0xf33512b84e24a49905c26c6991942fc5a9652411769fc1e448f967cdb049f08a .
28
28
/// @param sender The initial sender of the transfer.
29
29
/// @param amount The amount to be transferred.
30
30
/// @param currentCapacity The capacity left for transfers within the 24-hour window.:w
31
- /// event OutboundTransferRateLimited( address indexed sender, uint64 sequence, uint256 amount, uint256 currentCapacity);
31
+ /// OutboundTransferRateLimited(address, uint64, uint256, uint256)
32
32
export const OutboundTransferRateLimitedTopic =
33
- '0x754d657d1363ee47d967b415652b739bfe96d5729ccf2f26625dcdbc147db68b ' ;
33
+ '0xf33512b84e24a49905c26c6991942fc5a9652411769fc1e448f967cdb049f08a ' ;
34
34
35
35
//
36
36
// The following are from INttManagerEvents.sol
37
37
//
38
38
39
39
/// @notice Emitted when a message is sent from the nttManager.
40
40
/// @dev Topic0
41
- /// 0x9716fe52fe4e02cf924ae28f19f5748ef59877c6496041b986fbad3dae6a8ecf
41
+ /// 0x9cc8ade41ef46b98ba8bcad8c6bfa643934e6b84d3ce066cd38b5f0813bb2ae5.
42
42
/// @param recipient The recipient of the message.
43
+ /// @param refundAddress The address on the destination chain to which the
44
+ /// refund of unused gas will be paid
43
45
/// @param amount The amount transferred.
44
46
/// @param fee The amount of ether sent along with the tx to cover the delivery fee.
45
47
/// @param recipientChain The chain ID of the recipient.
46
48
/// @param msgSequence The unique sequence ID of the message.
47
- /// event TransferSent( bytes32 recipient, uint256 amount, uint256 fee, uint16 recipientChain, uint64 msgSequence);
48
49
export const TransferSentTopic =
49
- '0x9716fe52fe4e02cf924ae28f19f5748ef59877c6496041b986fbad3dae6a8ecf ' ;
50
+ '0xe54e51e42099622516fa3b48e9733581c9dbdcb771cafb093f745a0532a35982 ' ;
50
51
51
52
/// @notice Emitted when the peer contract is updated.
52
53
/// @dev Topic0
53
- /// 0x51b8437a7e22240c473f4cbdb4ed3a4f4bf5a9e7b3c511d7cfe0197325735700 .
54
+ /// 0x1456404e7f41f35c3daac941bb50bad417a66275c3040061b4287d787719599d .
54
55
/// @param chainId_ The chain ID of the peer contract.
55
56
/// @param oldPeerContract The old peer contract address.
57
+ /// @param oldPeerDecimals The old peer contract decimals.
56
58
/// @param peerContract The new peer contract address.
57
- /// event PeerUpdated(uint16 indexed chainId_, bytes32 oldPeerContract, bytes32 peerContract);
59
+ /// @param peerDecimals The new peer contract decimals.
58
60
export const PeerUpdatedTopic =
59
- '0x51b8437a7e22240c473f4cbdb4ed3a4f4bf5a9e7b3c511d7cfe0197325735700 ' ;
61
+ '0x1456404e7f41f35c3daac941bb50bad417a66275c3040061b4287d787719599d ' ;
60
62
61
63
/// @notice Emitted when a message has been attested to.
62
64
/// @dev Topic0
@@ -79,22 +81,22 @@ export const ThresholdChangedTopic =
79
81
80
82
/// @notice Emitted when an transceiver is removed from the nttManager.
81
83
/// @dev Topic0
82
- /// 0xc6289e62021fd0421276d06677862d6b328d9764cdd4490ca5ac78b173f25883 .
84
+ /// 0xf05962b5774c658e85ed80c91a75af9d66d2af2253dda480f90bce78aff5eda5 .
83
85
/// @param transceiver The address of the transceiver.
84
86
/// @param transceiversNum The current number of transceivers.
85
87
/// @param threshold The current threshold of transceivers.
86
- /// event TransceiverAdded(address transceiver, uint256 transceiversNum, uint8 threshold);
88
+ /// Event | TransceiverAdded(address, uint256, uint8) | 0xf05962b5774c658e85ed80c91a75af9d66d2af2253dda480f90bce78aff5eda5
87
89
export const TransceiverAddedTopic =
88
- '0xc6289e62021fd0421276d06677862d6b328d9764cdd4490ca5ac78b173f25883 ' ;
90
+ '0xf05962b5774c658e85ed80c91a75af9d66d2af2253dda480f90bce78aff5eda5 ' ;
89
91
90
92
/// @notice Emitted when an transceiver is removed from the nttManager.
91
93
/// @dev Topic0
92
- /// 0x638e631f34d9501a3ff0295873b29f50d0207b5400bf0e48b9b34719e6b1a39e .
94
+ /// 0x697a3853515b88013ad432f29f53d406debc9509ed6d9313dcfe115250fcd18f .
93
95
/// @param transceiver The address of the transceiver.
94
96
/// @param threshold The current threshold of transceivers.
95
- /// event TransceiverRemoved(address transceiver, uint8 threshold);
97
+ /// Event | TransceiverRemoved(address, uint8) | 0x697a3853515b88013ad432f29f53d406debc9509ed6d9313dcfe115250fcd18f
96
98
export const TransceiverRemovedTopic =
97
- '0x638e631f34d9501a3ff0295873b29f50d0207b5400bf0e48b9b34719e6b1a39e ' ;
99
+ '0x697a3853515b88013ad432f29f53d406debc9509ed6d9313dcfe115250fcd18f ' ;
98
100
99
101
/// @notice Emitted when a message has already been executed to
100
102
/// notify client of against retries.
@@ -116,6 +118,16 @@ export const MessageAlreadyExecutedTopic =
116
118
export const TransferRedeemedTopic =
117
119
'0x504e6efe18ab9eed10dc6501a417f5b12a2f7f2b1593aed9b89f9bce3cf29a91' ;
118
120
121
+ /// @notice Emitted when an outbound transfer has been cancelled
122
+ /// @dev Topic0
123
+ /// 0xf80e572ae1b63e2449629b6c7d783add85c36473926f216077f17ee002bcfd07.
124
+ /// @param sequence The sequence number being cancelled
125
+ /// @param recipient The canceller and recipient of the funds
126
+ /// @param amount The amount of the transfer being cancelled
127
+ // event OutboundTransferCancelled(uint256 sequence, address recipient, uint256 amount);
128
+ export const OutboundTransferCancelledTopic =
129
+ '0xf80e572ae1b63e2449629b6c7d783add85c36473926f216077f17ee002bcfd07' ;
130
+
119
131
// All topics:
120
132
export const NTT_TOPICS = [
121
133
InboundTransferQueuedTopic ,
@@ -129,6 +141,16 @@ export const NTT_TOPICS = [
129
141
TransceiverRemovedTopic ,
130
142
MessageAlreadyExecutedTopic ,
131
143
TransferRedeemedTopic ,
144
+ OutboundTransferCancelledTopic ,
145
+ ] ;
146
+
147
+ // Lifecycle topics:
148
+ export const NTT_LIFECYCLE_TOPICS = [
149
+ InboundTransferQueuedTopic ,
150
+ OutboundTransferQueuedTopic ,
151
+ OutboundTransferRateLimitedTopic ,
152
+ TransferSentTopic ,
153
+ TransferRedeemedTopic ,
132
154
] ;
133
155
134
156
export const TransferLockIx = 'transferLock' ;
@@ -156,7 +178,10 @@ export const NTT_SOLANA_IXS = [
156
178
export const NTT_CONTRACT : { [ key in Network ] : { [ key in Chain ] ?: string [ ] } } = {
157
179
[ 'Mainnet' ] : {
158
180
Ethereum : [ '0xeBdCe9a913d9400EE75ef31Ce8bd34462D01a1c1' ] ,
159
- Fantom : [ '0x68dB2f05Aa2d77DEf981fd2be32661340c9222FB' ] ,
181
+ Fantom : [
182
+ '0x68dB2f05Aa2d77DEf981fd2be32661340c9222FB' ,
183
+ '0x2F733095B80A04b38b0D10cC884524a3d09b836a' ,
184
+ ] ,
160
185
} ,
161
186
[ 'Testnet' ] : {
162
187
Solana : [ 'nTTh3bZ5Aer6xboWZe39RDEft4MeVxSQ8D1EYAVLZw9' ] ,
0 commit comments