diff --git a/src/App.vue b/src/App.vue index 85afced..2956e2d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -41,7 +41,6 @@ provide("isMobile", isMobile); onMounted(async () => { window.addEventListener("resize", handleWindowSizeChange); handleWindowSizeChange(); - // initContracts await walletStore.init(); await tokenStore.init(); diff --git a/src/assets/contracts/LiquidityOwner.json b/src/assets/contracts/LiquidityOwner.json index 72e036b..5a0cdcb 100644 --- a/src/assets/contracts/LiquidityOwner.json +++ b/src/assets/contracts/LiquidityOwner.json @@ -1,6 +1,6 @@ { "contractName": "LiquidityOwner", - "contractAddress": "0xa162bb56eD85f1BEb6f9AdB1DFFecBa01eA51d50", + "contractAddress": "0x88E69D5CE691644F7cE151a2b085798194DAFEa1", "abi": [ { "inputs": [ @@ -440,6 +440,35 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "payForGas", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "memeAltarGasPrice", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "consumedGasByMemeAltar", + "type": "uint256" + } + ], + "name": "triggeredByMemeAltar", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [], "name": "uniV3Pool", diff --git a/src/assets/contracts/MemeBurner.json b/src/assets/contracts/MemeBurner.json index 5ed305c..25d59fa 100644 --- a/src/assets/contracts/MemeBurner.json +++ b/src/assets/contracts/MemeBurner.json @@ -1,6 +1,6 @@ { "contractName": "MemeBurner", - "contractAddress": "0xf6e6ffAb831eCC42aBDD1c068DC83b89b9CF8386", + "contractAddress": "0xc9cC73C414f122f85EfE20382EB753d29C5a0351", "abi": [ { "inputs": [ @@ -43,11 +43,6 @@ "internalType": "uint256[]", "name": "roundGoals", "type": "uint256[]" - }, - { - "internalType": "uint256", - "name": "_liquidityAmountLimit", - "type": "uint256" } ], "stateMutability": "nonpayable", @@ -68,16 +63,36 @@ "name": "LiquidityOwnerAlreadyInitialized", "type": "error" }, + { + "inputs": [], + "name": "LiquidityOwnerTriggerFailed", + "type": "error" + }, { "inputs": [], "name": "MemeIsNotInAList", "type": "error" }, + { + "inputs": [], + "name": "NextRoundRegistrationFailed", + "type": "error" + }, { "inputs": [], "name": "NothingToSacrifice", "type": "error" }, + { + "inputs": [], + "name": "RewardRegistrationFailed", + "type": "error" + }, + { + "inputs": [], + "name": "RoundCompletedRegistrationFailed", + "type": "error" + }, { "inputs": [], "name": "TokenIsNotInSacrificableList", @@ -176,6 +191,51 @@ "name": "NewAdmin", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "components": [ + { + "internalType": "uint8", + "name": "b1", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "m1", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "b2", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "m2", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "b3", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "m4", + "type": "uint8" + } + ], + "indexed": true, + "internalType": "struct MemeBurner.BM", + "name": "_bm", + "type": "tuple" + } + ], + "name": "NewBM", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -189,6 +249,19 @@ "name": "NewDefaultRoundGoal", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "newDurationLimit", + "type": "uint256" + } + ], + "name": "NewRoundDurationLimit", + "type": "event" + }, { "inputs": [ { @@ -213,6 +286,57 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint8", + "name": "b1", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "m1", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "b2", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "m2", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "b3", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "m4", + "type": "uint8" + } + ], + "internalType": "struct MemeBurner.BM", + "name": "newBM", + "type": "tuple" + } + ], + "name": "adjustBM", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -232,6 +356,25 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newDurationLimit", + "type": "uint256" + } + ], + "name": "adjustRoundDurationLimit", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [], "name": "admin", @@ -245,6 +388,44 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "bm", + "outputs": [ + { + "internalType": "uint8", + "name": "b1", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "m1", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "b2", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "m2", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "b3", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "m4", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "currentRound", @@ -290,6 +471,25 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "roundNumber", + "type": "uint256" + } + ], + "name": "getGoalInBLD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -343,19 +543,6 @@ "stateMutability": "view", "type": "function" }, - { - "inputs": [], - "name": "liquidityAmountLimit", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, { "inputs": [], "name": "liquidityOwner", @@ -439,6 +626,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "roundDurationLimit", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -453,6 +653,11 @@ "internalType": "uint256", "name": "goal", "type": "uint256" + }, + { + "internalType": "uint256", + "name": "expirationTimestamp", + "type": "uint256" } ], "stateMutability": "view", @@ -526,10 +731,6 @@ ], "stateMutability": "view", "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" } ] } diff --git a/src/assets/contracts/MemeToken.json b/src/assets/contracts/MemeToken.json index e87091d..15bd737 100644 --- a/src/assets/contracts/MemeToken.json +++ b/src/assets/contracts/MemeToken.json @@ -1,6 +1,6 @@ { "contractName": "MemeToken", - "contractAddress": "0x2052cCA2b50f5F609a450f2C055E53e969E56587", + "contractAddress": "0x9dcD7Cd83ED0Fe69DDfE3c2A265a1207F2Bc3219", "abi": [ { "inputs": [ diff --git a/src/assets/contracts/RewardLocker.json b/src/assets/contracts/RewardLocker.json index e182634..f127df4 100644 --- a/src/assets/contracts/RewardLocker.json +++ b/src/assets/contracts/RewardLocker.json @@ -1,6 +1,6 @@ { "contractName": "RewardLocker", - "contractAddress": "0xb2f281CDa06E17Eefc4cf0A485C43a8310012d8B", + "contractAddress": "0x7C3D5a19878d550D0c6c2b0BFC884ef410F6e440", "abi": [ { "inputs": [ @@ -580,9 +580,9 @@ "name": "rounds", "outputs": [ { - "internalType": "bool", - "name": "roundCompleted", - "type": "bool" + "internalType": "uint256", + "name": "roundCompletedTimestamp", + "type": "uint256" }, { "internalType": "uint256", diff --git a/src/assets/sass/buttons.sass b/src/assets/sass/buttons.sass index c79de41..5ef639e 100644 --- a/src/assets/sass/buttons.sass +++ b/src/assets/sass/buttons.sass @@ -14,3 +14,7 @@ background-color: lighten($button-background-color, 10%), color: darken($button-color, 10%), cursor: pointer + &.btn--disabled + background-color: #151515 + color: #808080 + cursor: not-allowed diff --git a/src/components/SacrificeToken.vue b/src/components/SacrificeToken.vue index 8c5b7be..97c3725 100644 --- a/src/components/SacrificeToken.vue +++ b/src/components/SacrificeToken.vue @@ -8,7 +8,13 @@
-
+