123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- current_user_address = ''
- current_user_data = ''
- contract_address = '0x8b1459c586B6a5A30C7A5b057377A878B8De70D0'
- contract_abi = [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "string",
- "name": "Name",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "Price",
- "type": "uint256"
- }
- ],
- "name": "AddNewProduct",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "string",
- "name": "Password",
- "type": "string"
- }
- ],
- "name": "AuthUser",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "string",
- "name": "Name",
- "type": "string"
- }
- ],
- "name": "BuyProduct",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "addressUser",
- "type": "address"
- }
- ],
- "name": "DemotionSellerToBuyer",
- "outputs": [],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "string",
- "name": "Name",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "Price",
- "type": "uint256"
- }
- ],
- "name": "EditProduct",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "GetProducts",
- "outputs": [
- {
- "internalType": "string[]",
- "name": "",
- "type": "string[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "addressUser",
- "type": "address"
- }
- ],
- "name": "PromotionToAdmin",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "addressUser",
- "type": "address"
- }
- ],
- "name": "PromotionToSeller",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "string",
- "name": "Name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "Password",
- "type": "string"
- }
- ],
- "name": "RegUser",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "ViewBalance",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "name": "products",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "name": "users",
- "outputs": [
- {
- "internalType": "string",
- "name": "Name",
- "type": "string"
- },
- {
- "internalType": "bytes32",
- "name": "PasswordHash",
- "type": "bytes32"
- },
- {
- "internalType": "uint256",
- "name": "Balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "Role",
- "type": "uint256"
- },
- {
- "internalType": "bool",
- "name": "isUserExist",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ]
|