github.com/igggame/nebulas-go@v2.1.0+incompatible/core/pb/access.proto (about) 1 // Copyright (C) 2018 go-nebulas authors 2 // 3 // This file is part of the go-nebulas library. 4 // 5 // the go-nebulas library is free software: you can redistribute it and/or modify 6 // it under the terms of the GNU General Public License as published by 7 // the Free Software Foundation, either version 3 of the License, or 8 // (at your option) any later version. 9 // 10 // the go-nebulas library is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 // 15 // You should have received a copy of the GNU General Public License 16 // along with the go-nebulas library. If not, see <http://www.gnu.org/licenses/>. 17 // 18 syntax = "proto3"; 19 package corepb; 20 21 22 message Access { 23 // WhiteList of transactions, some of which are accepted only when conditions permit 24 Whitelist whitelist = 1; 25 26 // Blacklists of transactions, some of which are not accepted on the blacklists 27 Blacklist blacklist = 2; 28 29 // nrc20list of transactions, some of security check for this tx. 30 Nrc20list nrc20list = 3; 31 } 32 33 message Whitelist { 34 // TODO(larry): later may change 35 repeated string nbre_publisher = 1; 36 } 37 38 message Blacklist { 39 // Hex string of the transaction's from address. 40 repeated string from = 1; 41 42 // Hex string of the transaction's to address. 43 repeated string to = 2; 44 45 // contract access data 46 repeated Contract contracts = 3; 47 } 48 49 message Contract { 50 // Hex string of the call type transaction's to address. 51 string address = 1; 52 53 // slice of call type transaction's function string. 54 repeated string functions = 2; 55 56 // slice of deploy type transaction's data keyword. 57 repeated string keywords = 3; 58 } 59 60 message Nrc20list { 61 repeated string contracts = 1; 62 }