diff --git a/src/assets/Bank.json b/src/assets/Bank.json index 17d5bcc..2b08e11 100644 --- a/src/assets/Bank.json +++ b/src/assets/Bank.json @@ -1,219 +1,239 @@ [ { - "inputs": [ - { - "internalType": "address", - "name": "SBT_addr", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" + "inputs": [ + { + "internalType": "address", + "name": "SBT_addr", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" }, { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function", - "constant": true + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true }, { - "inputs": [], - "name": "recv", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function", - "constant": true + "inputs": [], + "name": "recv", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true }, { - "inputs": [], - "name": "sbt", - "outputs": [ - { - "internalType": "contract SoulboundToken", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function", - "constant": true + "inputs": [], + "name": "sbt", + "outputs": [ + { + "internalType": "contract SoulboundToken", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true }, { - "stateMutability": "payable", - "type": "receive", - "payable": true + "stateMutability": "payable", + "type": "receive", + "payable": true }, { - "inputs": [ + "inputs": [ + { + "internalType": "address", + "name": "client", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "setCredit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "number", + "type": "uint256" + } + ], + "name": "register", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "shop", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "pay", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "repay", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function", + "payable": true + }, + { + "inputs": [], + "name": "start_recv", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "stop_recv", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "client", + "type": "address" + } + ], + "name": "getCredit", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true + }, + { + "inputs": [ + { + "internalType": "address", + "name": "client", + "type": "address" + } + ], + "name": "getArrear", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true + }, + { + "inputs": [ + { + "internalType": "address", + "name": "client", + "type": "address" + } + ], + "name": "getClientOrders", + "outputs": [ + { + "components": [ { - "internalType": "address", - "name": "client", - "type": "address" + "internalType": "bool", + "name": "isFinished", + "type": "bool" }, { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "setCredit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "number", - "type": "uint256" - } - ], - "name": "register", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "shop", - "type": "address" + "internalType": "uint256", + "name": "amount", + "type": "uint256" }, { - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "internalType": "address", + "name": "shop", + "type": "address" } - ], - "name": "pay", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ], + "internalType": "struct Order[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true }, { - "inputs": [], - "name": "repay", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "payable", - "type": "function", - "payable": true - }, - { - "inputs": [], - "name": "start_recv", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "stop_recv", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "client", - "type": "address" - } - ], - "name": "getCredit", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function", - "constant": true - }, - { - "inputs": [ - { - "internalType": "address", - "name": "client", - "type": "address" - } - ], - "name": "getArrear", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function", - "constant": true - }, - { - "inputs": [ - { - "internalType": "address", - "name": "client", - "type": "address" - } - ], - "name": "getClientOrders", - "outputs": [ - { - "components": [ - { - "internalType": "bool", - "name": "isFinished", - "type": "bool" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "shop", - "type": "address" - } - ], - "internalType": "struct Order[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function", - "constant": true + "inputs": [ + { + "internalType": "address", + "name": "client", + "type": "address" + } + ], + "name": "getSBTNumber", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true } -] \ No newline at end of file + ] \ No newline at end of file diff --git a/src/components/PageNavbar.vue b/src/components/PageNavbar.vue index 23869a9..50212f6 100644 --- a/src/components/PageNavbar.vue +++ b/src/components/PageNavbar.vue @@ -1,11 +1,22 @@