添加一些遗漏的错误提示, 移除begold的初始数量, 将begold中一些public方法改为external

This commit is contained in:
cebgcontract 2022-04-23 12:30:40 +08:00
parent 0e0ebcbb9a
commit caea782dfc
17 changed files with 16208 additions and 16012 deletions

File diff suppressed because one or more lines are too long

View File

@ -24405,8 +24405,8 @@
}
},
"links": {},
"address": "0xB383305FAd84A18A097056223e3186ab082ec9B7",
"transactionHash": "0x7e6c1450d9177161eb429e1b4986116d4a329df78e8a74ae4aeeec8753baaa2c"
"address": "0x0A6079d04c8B898f40C18ac499a0c088Bb9fB2d5",
"transactionHash": "0x79382c4dd0a308252ebe8f42584850ed50d58b5b5b8a82b595cf42a60000a8ea"
},
"1644989050832": {
"events": {
@ -24586,7 +24586,7 @@
}
},
"schemaVersion": "3.4.3",
"updatedAt": "2022-04-22T01:46:02.147Z",
"updatedAt": "2022-04-23T04:28:57.514Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

View File

@ -9935,8 +9935,8 @@
}
},
"links": {},
"address": "0xAf8aE75834cF919D94B0a319d6A4Aa125E99Ff31",
"transactionHash": "0xf46be17a08ea69a28e8a57d8565f0ac68c0bb27673b24fc9f729d06f1a46a3c7"
"address": "0x23064f8AE0aF60DD3fB90e3179Db3d04d55cA192",
"transactionHash": "0xdbdad4bc0ab93915bc9c5c84a9908ef461a7002ce6e9fbaac9281355d1d1096e"
},
"1644989050832": {
"events": {},
@ -9946,7 +9946,7 @@
}
},
"schemaVersion": "3.4.3",
"updatedAt": "2022-04-20T01:26:08.537Z",
"updatedAt": "2022-04-23T04:28:57.468Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

View File

@ -24405,8 +24405,8 @@
}
},
"links": {},
"address": "0x2d487738d3eaDB2B69df125851150e7F37c117B8",
"transactionHash": "0xa94215030d26f0e6d525717ecb771d9d7a4e37a754cf981bef2226cc17eef662"
"address": "0x2A7765b4005D4Daa9AE51Cae79973bdb16003501",
"transactionHash": "0xb56b4173be2dc7153a2001a2397a0903c2b27566b6bb1711c20efd35ceff52c7"
},
"1644989050832": {
"events": {
@ -24586,7 +24586,7 @@
}
},
"schemaVersion": "3.4.3",
"updatedAt": "2022-04-22T01:46:02.132Z",
"updatedAt": "2022-04-23T04:28:57.499Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

File diff suppressed because one or more lines are too long

View File

@ -24411,8 +24411,8 @@
}
},
"links": {},
"address": "0x053F651ef63C0A18dFd7152b502D1D91F798441D",
"transactionHash": "0x6aa62710fc751ca6c347f3bd15c83766bb9993cd4202d85def3339bc2c0f4d27"
"address": "0xb8717f60083b3efBCdA60E387757Ac31470f2Af0",
"transactionHash": "0xe7af90709f6d995ddc0da42dfc2d9f39bdf1d042ac88176c4eeeb8785d3091c4"
},
"1644989050832": {
"events": {
@ -24592,7 +24592,7 @@
}
},
"schemaVersion": "3.4.3",
"updatedAt": "2022-04-22T01:46:02.116Z",
"updatedAt": "2022-04-23T04:28:57.486Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

View File

@ -27448,12 +27448,12 @@
}
},
"links": {},
"address": "0x1D11c77518Eaa30e5F942c2ea37189aB0b8653e3",
"transactionHash": "0x870b2932586bf0d7bda980e4df4c8e981dca969ca5c3fe4bf68db1391c2d0b53"
"address": "0x535E3abe3D1640f9d4f55E4910e6C33265Bd0DbE",
"transactionHash": "0xb7a013dcee24ad84379c5c51a3c97b1a7d6160f83da05657cb939638344c0eb4"
}
},
"schemaVersion": "3.4.3",
"updatedAt": "2022-04-22T01:46:02.080Z",
"updatedAt": "2022-04-23T04:28:57.563Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

File diff suppressed because one or more lines are too long

View File

@ -27667,8 +27667,8 @@
}
},
"links": {},
"address": "0x40c71a60fE61b1cA3a39f6eC7C8b3efc160ed5A7",
"transactionHash": "0xfb421c06d2f0ea33b52b6bbf86f45ee2d6c433d0d19ca009b5bec7fbd1dddcc8"
"address": "0x37e199FF89F08CC586BF3DD9beCc499648c96A6b",
"transactionHash": "0x19906796b35b3ea29c7a7a44e63a7cd535ba2f40759da06fc17a1a1ac4b14ef9"
},
"1644989050832": {
"events": {},
@ -27678,7 +27678,7 @@
}
},
"schemaVersion": "3.4.3",
"updatedAt": "2022-04-20T01:26:08.624Z",
"updatedAt": "2022-04-23T04:28:57.548Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

View File

@ -33792,8 +33792,8 @@
}
},
"links": {},
"address": "0x5Bf06144cDf295a1774C3F3A2bC65c687E539AD7",
"transactionHash": "0x463fec83b90c33765e75702e3ecf3cac1ab0dcff9f3bcc60d7b35bbd3a98a7c9"
"address": "0x18ac393Dbd43F84d7b790734E02F85BD18f786C3",
"transactionHash": "0x962cd26c1e94f592b9f29aa0bb7a523fa66e961e3484cd72d2849c2ef7e20f87"
},
"1644989050832": {
"events": {
@ -33872,7 +33872,7 @@
}
},
"schemaVersion": "3.4.3",
"updatedAt": "2022-04-20T01:26:08.603Z",
"updatedAt": "2022-04-23T04:28:57.529Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

View File

@ -3164,8 +3164,8 @@
"1338": {
"events": {},
"links": {},
"address": "0x60ccD3190756015162a37921DC25C4031A4022c8",
"transactionHash": "0x67b97373496f22d1c9ac1b83daf82f46c3d1a648299ec870d5e38d3f20b08877"
"address": "0x4afcf62fecB63d879815c8dB041493cbd58ed9Df",
"transactionHash": "0x82f3c6c20076a94299f8d1cc7b764520a658599ccb529c2b54ea12ca99d47a62"
},
"1644989050832": {
"events": {},
@ -3175,7 +3175,7 @@
}
},
"schemaVersion": "3.4.3",
"updatedAt": "2022-04-22T01:46:02.156Z",
"updatedAt": "2022-04-23T04:28:57.589Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

View File

@ -8961,8 +8961,8 @@
}
},
"links": {},
"address": "0xD96686f5e68114684a1b9cD6B5ff0E8a9768a89d",
"transactionHash": "0xd79360eb2ea88b69c5d49a4b3ae0492a824227454521d8f3b55c11191c60bff9"
"address": "0x09a6734CA02Cf9DE117765AD1fb39fb5c04c90bd",
"transactionHash": "0xa8445bd602534ce3b85c0014d8842a2390db92cda24e387c5b11663d833a92b6"
},
"1644989050832": {
"events": {},
@ -8972,7 +8972,7 @@
}
},
"schemaVersion": "3.4.3",
"updatedAt": "2022-04-20T01:26:08.614Z",
"updatedAt": "2022-04-23T04:28:57.539Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

View File

@ -32588,12 +32588,12 @@
}
},
"links": {},
"address": "0x29Dd5A56685fc50D3b1bE71dcb90979A67d20C2B",
"transactionHash": "0x95a028505d21cd1183ea0d09f9e3101a36c56c8079e200f27d82bf0f137b4904"
"address": "0x7788a6AcFfC47269080D423345a1dA636425e95A",
"transactionHash": "0xeb462a4ec54cc7f575f97eb4f000014045d12f751920ee1e49aa4b915d0bb0cd"
}
},
"schemaVersion": "3.4.3",
"updatedAt": "2022-04-22T01:46:02.099Z",
"updatedAt": "2022-04-23T04:28:57.579Z",
"networkType": "ethereum",
"devdoc": {
"kind": "dev",

View File

@ -141,8 +141,8 @@ contract BEBoxMall is Ownable, HasSignature, TimelockController{
*/
function updateDelay(uint256 newDelay) external virtual override {
require(msg.sender == address(this), "BEBoxMall: caller must be timelock");
require(newDelay >= MIN_DELAY);
require(newDelay <= MAX_DELAY);
require(newDelay >= MIN_DELAY, "BEBoxMall: newDelay must greater than or equal to MIN_DELAY");
require(newDelay <= MAX_DELAY, "BEBoxMall: newDelay must less than or equal to MAX_DELAY");
emit MinDelayChange(_minDelay, newDelay);
_minDelay = newDelay;
}

View File

@ -10,21 +10,19 @@ import "@openzeppelin/contracts/access/Ownable.sol";
*/
contract BEGold is ERC20, ERC20Burnable, Pausable, Ownable {
uint256 public constant INITIALIZED_CAP = 100000000 * 1e18;
constructor() ERC20("CRYPTO ELITE'S GOLD", "CEG") {
_mint(msg.sender, INITIALIZED_CAP);
}
function pause() public onlyOwner {
function pause() external onlyOwner {
_pause();
}
function unpause() public onlyOwner {
function unpause() external onlyOwner {
_unpause();
}
function mint(address to, uint256 amount) public onlyOwner {
function mint(address to, uint256 amount) external onlyOwner {
_mint(to, amount);
}

View File

@ -36,8 +36,8 @@ contract BETimelockController is TimelockController {
*/
function updateDelay(uint256 newDelay) external virtual override {
require(msg.sender == address(this), "BETimelockController: caller must be timelock");
require(newDelay >= MIN_DELAY);
require(newDelay <= MAX_DELAY);
require(newDelay >= MIN_DELAY, "BETimelockController: newDelay must greater than or equal to MIN_DELAY");
require(newDelay <= MAX_DELAY, "BETimelockController: newDelay must less than or equal to MAX_DELAY");
emit MinDelayChange(_minDelay, newDelay);
_minDelay = newDelay;
}

View File

@ -32,13 +32,17 @@ module.exports = async function (deployer, network, accounts) {
const proxyInstance = await EvolveProxy.deployed();
// await proxyInstance.transferOwnership(timelockInstance.address);
console.log('EvolveProxy onwer has change to: ', timelockInstance.address);
console.log('============= begin generate config ==============')
const coinInstance = await Coin.deployed();
// await coinInstance.transferOwnership(timelockInstance.address);
console.log('BECoin onwer has change to: ', timelockInstance.address);
const goldInstance = await Gold.deployed();
// await goldInstance.transferOwnership(timelockInstance.address);
console.log('BEGold onwer has change to: ', timelockInstance.address);
const factoryInstance = await Factory.deployed();
const boxInstance = await Box.deployed();
const luckyBoxInstance = await LuckyBox.deployed();
const boxProxyInstance = await BoxProxy.deployed();
const goldInstance = await Gold.deployed();
console.log('============= begin generate config ==============')
let jsons = []
jsons.push({name: 'coin', json: 'assets/contracts/BECoin.json', address: coinInstance.address})
jsons.push({name: 'gold', json: 'assets/contracts/BEGold.json', address: goldInstance.address})