Browse Source

合约更改

wkw 3 days ago
parent
commit
18c0f9c9bf
2 changed files with 80 additions and 80 deletions
  1. 79 79
      src/utils/abijson/jlabi.json
  2. 1 1
      src/utils/web.js

+ 79 - 79
src/utils/abijson/jlabi.json

@@ -1,37 +1,4 @@
 [
-    {
-        "inputs": [
-            {
-                "internalType": "address",
-                "name": "_recipient",
-                "type": "address"
-            },
-            {
-                "internalType": "uint256",
-                "name": "_amount",
-                "type": "uint256"
-            },
-            {
-                "internalType": "uint256",
-                "name": "_timestamp",
-                "type": "uint256"
-            },
-            {
-                "internalType": "uint256",
-                "name": "_nonce",
-                "type": "uint256"
-            },
-            {
-                "internalType": "bytes",
-                "name": "_signature",
-                "type": "bytes"
-            }
-        ],
-        "name": "distributeSingleReward",
-        "outputs": [],
-        "stateMutability": "nonpayable",
-        "type": "function"
-    },
     {
         "inputs": [
             {
@@ -167,13 +134,6 @@
         "name": "OwnershipTransferred",
         "type": "event"
     },
-    {
-        "inputs": [],
-        "name": "pause",
-        "outputs": [],
-        "stateMutability": "nonpayable",
-        "type": "function"
-    },
     {
         "anonymous": false,
         "inputs": [
@@ -187,13 +147,6 @@
         "name": "Paused",
         "type": "event"
     },
-    {
-        "inputs": [],
-        "name": "renounceOwnership",
-        "outputs": [],
-        "stateMutability": "nonpayable",
-        "type": "function"
-    },
     {
         "anonymous": false,
         "inputs": [
@@ -262,26 +215,6 @@
         "name": "SignatureVerified",
         "type": "event"
     },
-    {
-        "inputs": [
-            {
-                "internalType": "address",
-                "name": "newOwner",
-                "type": "address"
-            }
-        ],
-        "name": "transferOwnership",
-        "outputs": [],
-        "stateMutability": "nonpayable",
-        "type": "function"
-    },
-    {
-        "inputs": [],
-        "name": "unpause",
-        "outputs": [],
-        "stateMutability": "nonpayable",
-        "type": "function"
-    },
     {
         "anonymous": false,
         "inputs": [
@@ -296,29 +229,49 @@
         "type": "event"
     },
     {
-        "inputs": [
+        "inputs": [],
+        "name": "cooldownPeriod",
+        "outputs": [
             {
-                "internalType": "address",
-                "name": "_newSigner",
-                "type": "address"
+                "internalType": "uint256",
+                "name": "",
+                "type": "uint256"
             }
         ],
-        "name": "updateSigner",
-        "outputs": [],
-        "stateMutability": "nonpayable",
+        "stateMutability": "view",
         "type": "function"
     },
     {
-        "inputs": [],
-        "name": "cooldownPeriod",
-        "outputs": [
+        "inputs": [
+            {
+                "internalType": "address",
+                "name": "_recipient",
+                "type": "address"
+            },
             {
                 "internalType": "uint256",
-                "name": "",
+                "name": "_amount",
+                "type": "uint256"
+            },
+            {
+                "internalType": "uint256",
+                "name": "_timestamp",
+                "type": "uint256"
+            },
+            {
+                "internalType": "uint256",
+                "name": "_nonce",
                 "type": "uint256"
+            },
+            {
+                "internalType": "bytes",
+                "name": "_signature",
+                "type": "bytes"
             }
         ],
-        "stateMutability": "view",
+        "name": "distributeSingleReward",
+        "outputs": [],
+        "stateMutability": "nonpayable",
         "type": "function"
     },
     {
@@ -387,6 +340,13 @@
         "stateMutability": "view",
         "type": "function"
     },
+    {
+        "inputs": [],
+        "name": "pause",
+        "outputs": [],
+        "stateMutability": "nonpayable",
+        "type": "function"
+    },
     {
         "inputs": [],
         "name": "paused",
@@ -400,6 +360,13 @@
         "stateMutability": "view",
         "type": "function"
     },
+    {
+        "inputs": [],
+        "name": "renounceOwnership",
+        "outputs": [],
+        "stateMutability": "nonpayable",
+        "type": "function"
+    },
     {
         "inputs": [],
         "name": "signer",
@@ -426,6 +393,39 @@
         "stateMutability": "view",
         "type": "function"
     },
+    {
+        "inputs": [
+            {
+                "internalType": "address",
+                "name": "newOwner",
+                "type": "address"
+            }
+        ],
+        "name": "transferOwnership",
+        "outputs": [],
+        "stateMutability": "nonpayable",
+        "type": "function"
+    },
+    {
+        "inputs": [],
+        "name": "unpause",
+        "outputs": [],
+        "stateMutability": "nonpayable",
+        "type": "function"
+    },
+    {
+        "inputs": [
+            {
+                "internalType": "address",
+                "name": "_newSigner",
+                "type": "address"
+            }
+        ],
+        "name": "updateSigner",
+        "outputs": [],
+        "stateMutability": "nonpayable",
+        "type": "function"
+    },
     {
         "inputs": [
             {

+ 1 - 1
src/utils/web.js

@@ -8,7 +8,7 @@ const TOKEN_ADDRESSES = {
     stt: "0xC891A3F6E9B560a4F21eEABc884d92073D36fF87"
 };
 
-const MANAGER_ADDRESS = "0x0497479bf2E84B031BcCfc38A25e419174acF903";
+const MANAGER_ADDRESS = "0x87803B5d8d426359fef52474C19280f35d355f69";
 
 function normalizePrivateKey(pk) {
     return pk.startsWith("0x") ? pk : "0x" + pk;