github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/account/accountpb/account.proto (about) 1 // Copyright (c) 2022 IoTeX 2 // This source code is provided 'as is' and no warranties are given as to title or non-infringement, merchantability 3 // or fitness for purpose and, to the extent permitted by law, all liability for your use of the code is disclaimed. 4 // This source code is governed by Apache License 2.0 that can be found in the LICENSE file. 5 6 // To compile the proto, run: 7 // protoc --go_out=plugins=grpc:. *.proto 8 syntax = "proto3"; 9 package accountpb; 10 option go_package = "github.com/iotexproject/iotex-core/action/protocol/account/accountpb"; 11 12 enum AccountType { 13 DEFAULT = 0; 14 ZERO_NONCE = 1; 15 } 16 17 message Account { 18 // used by state-based model 19 uint64 nonce = 1; 20 string balance = 2; 21 bytes root = 3; 22 bytes codeHash = 4; 23 bool isCandidate = 5; 24 bytes votingWeight = 6; 25 AccountType type = 7; 26 }