-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathIGateway.sol
More file actions
53 lines (49 loc) · 1.89 KB
/
IGateway.sol
File metadata and controls
53 lines (49 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// SPDX-License-Identifier: GPL-3.0-or-later
interface IBCRebaseGatewayEvents {
// Logged on the base chain gateway (ethereum) when rebase report is propagated out
event XCRebaseReportOut(
// epoch from the Ampleforth Monetary Policy on the base chain
uint256 globalAmpleforthEpoch,
// totalSupply of AMPL ERC-20 contract on the base chain
uint256 globalAMPLSupply
);
}
interface ISCRebaseGatewayEvents {
// Logged on the satellite chain gateway when bridge reports most recent rebase
event XCRebaseReportIn(
// new value coming in from the base chain
uint256 globalAmpleforthEpoch,
// new value coming in from the base chain
uint256 globalAMPLSupply,
// existing value on the satellite chain
uint256 recordedGlobalAmpleforthEpoch,
// existing value on the satellite chain
uint256 recordedGlobalAMPLSupply
);
}
interface ITransferGatewayEvents {
// Logged on source chain when cross-chain transfer is initiated
event XCTransferOut(
// user sending funds
address indexed sender,
// user receiving funds, set to address(0) if unavailable
address indexed recipientInTargetChain,
// amount to be locked/burnt
uint256 amount,
// existing value on the current source chain
uint256 recordedGlobalAMPLSupply
);
// Logged on target chain when cross-chain transfer is completed
event XCTransferIn(
// user sending funds, set to address(0) if unavailable
address indexed senderInSourceChain,
// user receiving funds
address indexed recipient,
// value on remote chain when transaction was initiated
uint256 globalAMPLSupply,
// amount to be unlocked/mint
uint256 amount,
// existing value on the current target chain
uint256 recordedGlobalAMPLSupply
);
}