-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathIChainBridgeGateway.sol
More file actions
43 lines (36 loc) · 1.24 KB
/
IChainBridgeGateway.sol
File metadata and controls
43 lines (36 loc) · 1.24 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
// SPDX-License-Identifier: GPL-3.0-or-later
import {IBCRebaseGatewayEvents, ISCRebaseGatewayEvents, ITransferGatewayEvents} from "./IGateway.sol";
interface IChainBridgeBCRebaseGateway is IBCRebaseGatewayEvents {
function validateRebaseReport(uint256 globalAmpleforthEpoch, uint256 globalAMPLSupply) external;
}
interface IChainBridgeSCRebaseGateway is ISCRebaseGatewayEvents {
function reportRebase(uint256 globalAmpleforthEpoch, uint256 globalAMPLSupply) external;
}
interface IChainBridgeBCTransferGateway is ITransferGatewayEvents {
function validateAndLock(
address sender,
address recipientInTargetChain,
uint256 amount,
uint256 globalAMPLSupply
) external;
function unlock(
address senderInSourceChain,
address recipient,
uint256 amount,
uint256 globalAMPLSupply
) external;
}
interface IChainBridgeSCTransferGateway is ITransferGatewayEvents {
function mint(
address senderInSourceChain,
address recipient,
uint256 amount,
uint256 globalAMPLSupply
) external;
function validateAndBurn(
address sender,
address recipientInTargetChain,
uint256 amount,
uint256 globalAMPLSupply
) external;
}