Skip to content

Commit e7b4032

Browse files
committed
prod deployment
1 parent 9e06338 commit e7b4032

11 files changed

+576
-17
lines changed

hardhat.config.js

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,35 +65,31 @@ module.exports = {
6565
},
6666

6767
networks: {
68-
gethBaseChain: {
68+
localGethBaseChain: {
6969
url: 'http://localhost:7545'
7070
},
71-
gethSatChain1: {
71+
localGethSatChain1: {
7272
url: 'http://localhost:7550'
7373
},
74-
gethSatChain2: {
74+
localGethSatChain2: {
7575
url: 'http://localhost:7555'
7676
},
7777

78-
ropstenBaseChain: {
78+
devRopstenBaseChain: {
7979
url: 'https://eth-ropsten.alchemyapi.io/v2/' + process.env.ALCHEMY_SECRET
8080
},
81-
bscTestnetSatChain: {
81+
devBscTestnetSatChain: {
8282
url: 'https://data-seed-prebsc-1-s1.binance.org:8545'
8383
},
84-
meterTestnetSatChain: {
84+
devMeterTestnetSatChain: {
8585
url: 'http://s11.meter.io:8545'
8686
},
8787

88-
// rinkebyBaseChain: {
89-
// url: 'https://rinkeby.infura.io/v3/' + process.env.INFURA_SECRET
90-
// },
91-
// goerliSatChain: {
92-
// url: 'https://goerli.infura.io/v3/' + process.env.INFURA_SECRET
93-
// },
94-
95-
// avaTestnetSatChain: {
96-
// url: 'https://api.avax-test.network/ext/bc/C/rpc'
97-
// }
88+
prodEthereumBaseChain: {
89+
url: 'https://eth-mainnet.alchemyapi.io/v2/' + process.env.ALCHEMY_SECRET
90+
},
91+
prodBscSatChain: {
92+
url: 'https://bsc-dataseed.binance.org/'
93+
},
9894
}
9995
};

helpers/tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function txTask(name, desc) {
77
.addParam(
88
'gasPrice',
99
'Gas price for the transaction',
10-
25000000000,
10+
0,
1111
types.int,
1212
)
1313
.addParam('gasLimit', 'Gas limit for the transaction', 7000000, types.int)

sdk/deployments/prodBscSatChain.json

Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
{
2+
"proxyAdmin": {
3+
"address": "0x47fB203e1d75FB2c518Cd56f3a8094D22A46aF83",
4+
"abi": [
5+
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
6+
"function changeProxyAdmin(address proxy, address newAdmin)",
7+
"function getProxyAdmin(address proxy) view returns (address)",
8+
"function getProxyImplementation(address proxy) view returns (address)",
9+
"function isOwner() view returns (bool)",
10+
"function owner() view returns (address)",
11+
"function renounceOwnership()",
12+
"function transferOwnership(address newOwner)",
13+
"function upgrade(address proxy, address implementation)",
14+
"function upgradeAndCall(address proxy, address implementation, bytes data) payable"
15+
],
16+
"hash": "0x3504e370d1fdc061df2fdf959f7eba098d20196a366bc44ec42b1682adbc209d",
17+
"blockNumber": 7604627
18+
},
19+
"xcAmple": {
20+
"address": "0xDB021b1B247fe2F1fa57e0A87C748Cc1E321F07F",
21+
"abi": [
22+
"event Approval(address indexed owner, address indexed spender, uint256 value)",
23+
"event ControllerUpdated(address controller)",
24+
"event LogRebase(uint256 indexed epoch, uint256 globalAMPLSupply)",
25+
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
26+
"event Transfer(address indexed from, address indexed to, uint256 value)",
27+
"function DOMAIN_SEPARATOR() view returns (bytes32)",
28+
"function EIP712_DOMAIN() view returns (bytes32)",
29+
"function EIP712_REVISION() view returns (string)",
30+
"function PERMIT_TYPEHASH() view returns (bytes32)",
31+
"function allowance(address owner_, address spender) view returns (uint256)",
32+
"function approve(address spender, uint256 value) returns (bool)",
33+
"function balanceOf(address who) view returns (uint256)",
34+
"function burnFrom(address who, uint256 xcAmpleAmount)",
35+
"function controller() view returns (address)",
36+
"function decimals() view returns (uint8)",
37+
"function decreaseAllowance(address spender, uint256 subtractedValue) returns (bool)",
38+
"function globalAMPLSupply() view returns (uint256)",
39+
"function increaseAllowance(address spender, uint256 addedValue) returns (bool)",
40+
"function initialize(string name, string symbol, uint256 globalAMPLSupply_)",
41+
"function mint(address who, uint256 xcAmpleAmount)",
42+
"function name() view returns (string)",
43+
"function nonces(address who) view returns (uint256)",
44+
"function owner() view returns (address)",
45+
"function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s)",
46+
"function rebase(uint256 epoch, uint256 newGlobalAMPLSupply) returns (uint256)",
47+
"function renounceOwnership()",
48+
"function scaledBalanceOf(address who) view returns (uint256)",
49+
"function scaledTotalSupply() pure returns (uint256)",
50+
"function setController(address controller_)",
51+
"function symbol() view returns (string)",
52+
"function totalSupply() view returns (uint256)",
53+
"function transfer(address to, uint256 value) returns (bool)",
54+
"function transferAll(address to) returns (bool)",
55+
"function transferAllFrom(address from, address to) returns (bool)",
56+
"function transferFrom(address from, address to, uint256 value) returns (bool)",
57+
"function transferOwnership(address newOwner)"
58+
],
59+
"hash": "0x40defc78eb8eee5009489af40206b79967a8e8977c3234845ef2189db53e7bc5",
60+
"blockNumber": 7604666
61+
},
62+
"xcAmpleController": {
63+
"address": "0x17F084dFF8a71e38521BCBD3Da871753Dc67aa81",
64+
"abi": [
65+
"event GatewayBurn(address indexed bridgeGateway, address indexed depositor, uint256 xcAmpleAmount)",
66+
"event GatewayMint(address indexed bridgeGateway, address indexed recipient, uint256 xcAmpleAmount)",
67+
"event GatewayRebaseReported(address indexed bridgeGateway, uint256 indexed epoch, uint256 globalAMPLSupply, uint256 timestampSec)",
68+
"event GatewayWhitelistUpdated(address indexed bridgeGateway, bool active)",
69+
"event LogRebase(uint256 indexed epoch, int256 requestedSupplyAdjustment, uint256 timestampSec)",
70+
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
71+
"function addBridgeGateway(address bridgeGateway)",
72+
"function burn(address depositor, uint256 xcAmpleAmount)",
73+
"function globalAmpleforthEpoch() view returns (uint256)",
74+
"function globalAmpleforthEpochAndAMPLSupply() view returns (uint256, uint256)",
75+
"function initialize(address xcAmple_, uint256 globalAmpleforthEpoch_)",
76+
"function lastRebaseTimestampSec() view returns (uint256)",
77+
"function mint(address recipient, uint256 xcAmpleAmount)",
78+
"function nextGlobalAMPLSupply() view returns (uint256)",
79+
"function nextGlobalAmpleforthEpoch() view returns (uint256)",
80+
"function owner() view returns (address)",
81+
"function rebase()",
82+
"function rebaseRelayer() view returns (address)",
83+
"function removeBridgeGateway(address bridgeGateway)",
84+
"function renounceOwnership()",
85+
"function reportRebase(uint256 nextGlobalAmpleforthEpoch_, uint256 nextGlobalAMPLSupply_)",
86+
"function setRebaseRelayer(address rebaseRelayer_)",
87+
"function transferOwnership(address newOwner)",
88+
"function whitelistedBridgeGateways(address) view returns (bool)",
89+
"function xcAmple() view returns (address)"
90+
],
91+
"hash": "0x96581e79a5f927ddf693a63154d2219547bf7e2b96f8e5448c8b3ba994710591",
92+
"blockNumber": 7604709
93+
},
94+
"rebaseRelayer": {
95+
"address": "0x0c0144D04594AB99F4C02691B6684e3d871B589e",
96+
"abi": [
97+
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
98+
"event TransactionFailed(address indexed destination, uint256 index, bytes data, bytes reason)",
99+
"function addTransaction(address destination, bytes data)",
100+
"function executeAll() returns (bool)",
101+
"function owner() view returns (address)",
102+
"function removeTransaction(uint256 index)",
103+
"function renounceOwnership()",
104+
"function setTransactionEnabled(uint256 index, bool enabled)",
105+
"function transactions(uint256) view returns (bool enabled, address destination, bytes data)",
106+
"function transactionsSize() view returns (uint256)",
107+
"function transferOwnership(address newOwner)"
108+
],
109+
"hash": "0x8383945dcdbd72d8b2c335ca1001a07c1b4ebb80b833dca76d915ff9e097734c",
110+
"blockNumber": 7604734
111+
},
112+
"isBaseChain": false,
113+
"chainBridge/bridge": {
114+
"address": "0x39fCb6203cf870F5E37DcCabF99F9bC39108CA70",
115+
"abi": [
116+
"constructor(uint8 chainID, address[] initialRelayers, uint256 initialRelayerThreshold, uint256 fee, uint256 expiry)",
117+
"event Deposit(uint8 indexed destinationChainID, bytes32 indexed resourceID, uint64 indexed depositNonce)",
118+
"event Paused(address account)",
119+
"event ProposalEvent(uint8 indexed originChainID, uint64 indexed depositNonce, uint8 indexed status, bytes32 resourceID, bytes32 dataHash)",
120+
"event ProposalVote(uint8 indexed originChainID, uint64 indexed depositNonce, uint8 indexed status, bytes32 resourceID)",
121+
"event RelayerAdded(address indexed relayer)",
122+
"event RelayerRemoved(address indexed relayer)",
123+
"event RelayerThresholdChanged(uint256 indexed newThreshold)",
124+
"event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)",
125+
"event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)",
126+
"event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)",
127+
"event Unpaused(address account)",
128+
"function DEFAULT_ADMIN_ROLE() view returns (bytes32)",
129+
"function RELAYER_ROLE() view returns (bytes32)",
130+
"function _chainID() view returns (uint8)",
131+
"function _depositCounts(uint8) view returns (uint64)",
132+
"function _depositRecords(uint64, uint8) view returns (bytes)",
133+
"function _expiry() view returns (uint256)",
134+
"function _fee() view returns (uint256)",
135+
"function _hasVotedOnProposal(uint72, bytes32, address) view returns (bool)",
136+
"function _proposals(uint72, bytes32) view returns (bytes32 _resourceID, bytes32 _dataHash, uint8 _status, uint256 _proposedBlock)",
137+
"function _relayerThreshold() view returns (uint256)",
138+
"function _resourceIDToHandlerAddress(bytes32) view returns (address)",
139+
"function _totalProposals() view returns (uint256)",
140+
"function _totalRelayers() view returns (uint256)",
141+
"function adminAddRelayer(address relayerAddress)",
142+
"function adminChangeFee(uint256 newFee)",
143+
"function adminChangeRelayerThreshold(uint256 newThreshold)",
144+
"function adminPauseTransfers()",
145+
"function adminRemoveRelayer(address relayerAddress)",
146+
"function adminSetBurnable(address handlerAddress, address tokenAddress)",
147+
"function adminSetGenericResource(address handlerAddress, bytes32 resourceID, address contractAddress, bytes4 depositFunctionSig, uint256 depositFunctionDepositerOffset, bytes4 executeFunctionSig)",
148+
"function adminSetResource(address handlerAddress, bytes32 resourceID, address tokenAddress)",
149+
"function adminUnpauseTransfers()",
150+
"function adminWithdraw(address handlerAddress, address tokenAddress, address recipient, uint256 amountOrTokenID)",
151+
"function cancelProposal(uint8 chainID, uint64 depositNonce, bytes32 dataHash)",
152+
"function deposit(uint8 destinationChainID, bytes32 resourceID, bytes data) payable",
153+
"function executeProposal(uint8 chainID, uint64 depositNonce, bytes data, bytes32 resourceID)",
154+
"function getProposal(uint8 originChainID, uint64 depositNonce, bytes32 dataHash) view returns (tuple(bytes32 _resourceID, bytes32 _dataHash, address[] _yesVotes, address[] _noVotes, uint8 _status, uint256 _proposedBlock))",
155+
"function getRoleAdmin(bytes32 role) view returns (bytes32)",
156+
"function getRoleMember(bytes32 role, uint256 index) view returns (address)",
157+
"function getRoleMemberCount(bytes32 role) view returns (uint256)",
158+
"function grantRole(bytes32 role, address account)",
159+
"function hasRole(bytes32 role, address account) view returns (bool)",
160+
"function isRelayer(address relayer) view returns (bool)",
161+
"function paused() view returns (bool)",
162+
"function renounceAdmin(address newAdmin)",
163+
"function renounceRole(bytes32 role, address account)",
164+
"function revokeRole(bytes32 role, address account)",
165+
"function transferFunds(address[] addrs, uint256[] amounts)",
166+
"function voteProposal(uint8 chainID, uint64 depositNonce, bytes32 resourceID, bytes32 dataHash)"
167+
],
168+
"hash": "0x17c909b571d3b7f91f2e77d77e05c56c2c955c775a1575811426ddf7cd8b4e71",
169+
"blockNumber": 7028782
170+
},
171+
"chainBridge/genericHandler": {
172+
"address": "0x047B69380FD7257274361ED9BEc137Ddf0dfc75e",
173+
"abi": [
174+
"constructor(address bridgeAddress, bytes32[] initialResourceIDs, address[] initialContractAddresses, bytes4[] initialDepositFunctionSignatures, uint256[] initialDepositFunctionDepositerOffsets, bytes4[] initialExecuteFunctionSignatures)",
175+
"function _bridgeAddress() view returns (address)",
176+
"function _contractAddressToDepositFunctionDepositerOffset(address) view returns (uint256)",
177+
"function _contractAddressToDepositFunctionSignature(address) view returns (bytes4)",
178+
"function _contractAddressToExecuteFunctionSignature(address) view returns (bytes4)",
179+
"function _contractAddressToResourceID(address) view returns (bytes32)",
180+
"function _contractWhitelist(address) view returns (bool)",
181+
"function _depositRecords(uint8, uint64) view returns (uint8 _destinationChainID, address _depositer, bytes32 _resourceID, bytes _metaData)",
182+
"function _resourceIDToContractAddress(bytes32) view returns (address)",
183+
"function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes data)",
184+
"function executeProposal(bytes32 resourceID, bytes data)",
185+
"function getDepositRecord(uint64 depositNonce, uint8 destId) view returns (tuple(uint8 _destinationChainID, address _depositer, bytes32 _resourceID, bytes _metaData))",
186+
"function setResource(bytes32 resourceID, address contractAddress, bytes4 depositFunctionSig, uint256 depositFunctionDepositerOffset, bytes4 executeFunctionSig)"
187+
],
188+
"hash": "0x3b46cbe38bdfbd5da5a06ffec96ce49120420d31b4c3908d943117977c341bef",
189+
"blockNumber": 7031896
190+
},
191+
"chainBridge/transferGateway": {
192+
"address": "0xDacb066c8448407C994e5e2f7f2CF34348729cA2",
193+
"abi": [
194+
"constructor(address bridgeHandler, address xcAmple_, address xcController_)",
195+
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
196+
"event XCRebaseReportIn(uint256 globalAmpleforthEpoch, uint256 globalAMPLSupply, uint256 recordedGlobalAmpleforthEpoch, uint256 recordedGlobalAMPLSupply)",
197+
"event XCRebaseReportOut(uint256 globalAmpleforthEpoch, uint256 globalAMPLSupply)",
198+
"event XCTransferIn(address recipient, uint256 globalAMPLSupply, uint256 amount, uint256 recordedGlobalAMPLSupply)",
199+
"event XCTransferOut(address sender, uint256 amount, uint256 recordedGlobalAMPLSupply)",
200+
"function mint(address senderAddressInSourceChain, address recipient, uint256 amount, uint256 globalAMPLSupply)",
201+
"function owner() view returns (address)",
202+
"function renounceOwnership()",
203+
"function reportRebase(uint256 globalAmpleforthEpoch, uint256 globalAMPLSupply)",
204+
"function transferOwnership(address newOwner)",
205+
"function validateAndBurn(address sender, address recipientAddressInTargetChain, uint256 amount, uint256 globalAMPLSupply)",
206+
"function xcAmple() view returns (address)",
207+
"function xcController() view returns (address)"
208+
],
209+
"hash": "0x99805547e43251a7ece258600be9ed7d097b6b0e311498fbdb3b903f0016f786",
210+
"blockNumber": 7605279
211+
},
212+
"chainBridge/rebaseGateway": {
213+
"address": "0xa811d187BB3Ea39563A078F9C14e1B144D5a7365",
214+
"abi": [
215+
"constructor(address bridgeHandler, address xcAmple_, address xcController_)",
216+
"event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)",
217+
"event XCRebaseReportIn(uint256 globalAmpleforthEpoch, uint256 globalAMPLSupply, uint256 recordedGlobalAmpleforthEpoch, uint256 recordedGlobalAMPLSupply)",
218+
"event XCRebaseReportOut(uint256 globalAmpleforthEpoch, uint256 globalAMPLSupply)",
219+
"event XCTransferIn(address recipient, uint256 globalAMPLSupply, uint256 amount, uint256 recordedGlobalAMPLSupply)",
220+
"event XCTransferOut(address sender, uint256 amount, uint256 recordedGlobalAMPLSupply)",
221+
"function mint(address senderAddressInSourceChain, address recipient, uint256 amount, uint256 globalAMPLSupply)",
222+
"function owner() view returns (address)",
223+
"function renounceOwnership()",
224+
"function reportRebase(uint256 globalAmpleforthEpoch, uint256 globalAMPLSupply)",
225+
"function transferOwnership(address newOwner)",
226+
"function validateAndBurn(address sender, address recipientAddressInTargetChain, uint256 amount, uint256 globalAMPLSupply)",
227+
"function xcAmple() view returns (address)",
228+
"function xcController() view returns (address)"
229+
],
230+
"hash": "0x469ca24834e4cb78d2e26445bbc7fbb0825e16f6bf38a35aab1643c80f6b6fe0",
231+
"blockNumber": 7605276
232+
}
233+
}

0 commit comments

Comments
 (0)