github.com/iotexproject/iotex-core@v1.14.1-rc1/blockindex/indexpb/index.proto (about) 1 // Copyright (c) 2019 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=. *.proto 8 // option go_package = "../indexpb"; is to specify the package name in the generated go file 9 syntax = "proto3"; 10 package indexpb; 11 12 message BlockIndex { 13 uint32 numAction = 1; 14 bytes hash = 2; 15 bytes tsfAmount = 3; 16 } 17 18 message ActionIndex { 19 uint64 blkHeight = 1; 20 } 21 22 message SGDIndex { 23 bytes contract = 1; 24 bytes receiver = 2; 25 bool approved = 3; 26 }