Skip to content

Commit b8741c7

Browse files
authored
Merge pull request #54 from ampleforth/polygon
Polygon integration & upkeep
2 parents 8221d57 + 5676d54 commit b8741c7

File tree

61 files changed

+3225
-249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3225
-249
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ module.exports = {
153153
'offchain',
154154
'bscscan',
155155
'ropsten',
156+
'matic',
157+
'dev1',
158+
'dev2',
156159

157160
// names
158161
'nithin',

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,5 @@ logs
9696
sdk/deployments/geth*.json
9797

9898
console.js
99+
100+
.DS_Store

contracts/_interfaces/IBatchTxExecutor.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
2-
pragma solidity 0.6.12;
32

43
interface IBatchTxExecutor {
54
function executeAll() external returns (bool);

contracts/_interfaces/IBridgeGateway.sol

Lines changed: 0 additions & 54 deletions
This file was deleted.

contracts/_interfaces/ITokenVault.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
2-
pragma solidity 0.6.12;
32

43
interface ITokenVault {
54
function lock(

contracts/_interfaces/IXCAmple.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
2-
pragma solidity 0.6.12;
3-
42
import "uFragments/contracts/interfaces/IAMPL.sol";
53

64
interface IXCAmple is IAMPL {

contracts/_interfaces/IXCAmpleController.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
2-
pragma solidity 0.6.12;
32

43
interface IXCAmpleController {
54
function rebase() external;

contracts/_interfaces/IXCAmpleControllerGateway.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
2-
pragma solidity 0.6.12;
32

43
interface IXCAmpleControllerGateway {
54
function nextGlobalAmpleforthEpoch() external view returns (uint256);

contracts/_interfaces/IXCAmpleSupplyPolicy.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
2-
pragma solidity 0.6.12;
32

43
interface IXCAmpleSupplyPolicy {
54
function rebase(uint256 globalAmpleforthEpoch_, uint256 globalAMPLSupply_)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
3+
interface IRebaseGatewayEvents {
4+
// Logged on the base chain gateway (ethereum) when rebase report is propagated out
5+
event XCRebaseReportOut(
6+
// epoch from the Ampleforth Monetary Policy on the base chain
7+
uint256 globalAmpleforthEpoch,
8+
// totalSupply of AMPL ERC-20 contract on the base chain
9+
uint256 globalAMPLSupply
10+
);
11+
12+
// Logged on the satellite chain gateway (tron, acala, near) when bridge reports most recent rebase
13+
event XCRebaseReportIn(
14+
// new value coming in from the base chain
15+
uint256 globalAmpleforthEpoch,
16+
// new value coming in from the base chain
17+
uint256 globalAMPLSupply,
18+
// existing value on the satellite chain
19+
uint256 recordedGlobalAmpleforthEpoch,
20+
// existing value on the satellite chain
21+
uint256 recordedGlobalAMPLSupply
22+
);
23+
}

0 commit comments

Comments
 (0)