github.com/turingchain2020/turingchain@v1.1.21/types/proto/account.proto (about) 1 syntax = "proto3"; 2 3 package types; 4 option go_package = "github.com/turingchain2020/turingchain/types"; 5 6 // Account 的信息 7 message Account { 8 // coins标识,目前只有0 一个值 9 int32 currency = 1; 10 //账户可用余额 11 int64 balance = 2; 12 //账户冻结余额 13 int64 frozen = 3; 14 //账户的地址 15 string addr = 4; 16 } 17 18 //账户余额改变的一个交易回报(合约内) 19 message ReceiptExecAccountTransfer { 20 //合约地址 21 string execAddr = 1; 22 //转移前 23 Account prev = 2; 24 //转移后 25 Account current = 3; 26 } 27 28 //账户余额改变的一个交易回报(coins内) 29 message ReceiptAccountTransfer { 30 //转移前 31 Account prev = 1; 32 //转移后 33 Account current = 2; 34 } 35 36 //铸币账户余额增加 37 message ReceiptAccountMint { 38 //铸币前 39 Account prev = 1; 40 //铸币后 41 Account current = 2; 42 } 43 44 message ReceiptAccountBurn { 45 Account prev = 1; 46 Account current = 2; 47 } 48 49 //查询一个地址列表在某个执行器中余额 50 message ReqBalance { 51 //地址列表 52 repeated string addresses = 1; 53 //执行器名称 54 string execer = 2; 55 string stateHash = 3; 56 string asset_exec = 4; 57 string asset_symbol = 5; 58 } 59 60 // Account 的列表 61 message Accounts { 62 repeated Account acc = 1; 63 } 64 65 message ExecAccount { 66 string execer = 1; 67 Account account = 2; 68 } 69 70 message AllExecBalance { 71 string addr = 1; 72 repeated ExecAccount ExecAccount = 2; 73 } 74 75 message ReqAllExecBalance { 76 //地址列表 77 string addr = 1; 78 //执行器名称 79 string execer = 2; 80 string stateHash = 3; 81 string asset_exec = 4; 82 string asset_symbol = 5; 83 }