messageAccountState{
BigUint balance = 1;
uint64 nonce = 2;
uint64 num_txs = 3;
string address = 4;
bytes pk = 5;
WalletType type = 6 [ deprecated = true ];
string moniker = 7;
StateContext context = 8;
string issuer = 9;
BigUint gas_balance = 10;
// the address that is being migrated. Once this is set this account state is// read only. No further tx can alter this account state. And tx with "from"// equal to the old address will be rejected by Forgerepeatedstring migrated_to = 13;
repeatedstring migrated_from = 14;
uint64 num_assets = 15;
// 16-49 reserve for future
StakeContext stake = 16;
CircularQueue pinned_files = 17;
PokeInfo poke = 18;
// The current deposit this account has received. It cannot exceed the deposit// cap.
BigUint deposit_received = 19;
google.protobuf.Any data = 50;
}
AssetState
messageAssetState{
string address = 1;
string owner = 2;
string moniker = 3;
bool readonly = 4;
bool transferrable = 5;
uint32 ttl = 6;
// once it is consumed, it is untransferrable
google.protobuf.Timestamp consumed_time = 7;
// who issued the assetstring issuer = 8;
// parent address for the asset state, e.g. a ticket is inherited from an// eventstring parent = 9;
// 10-12 is reserved
StakeContext stake = 13;
StateContext context = 14;
// 13-49 reserve for future
google.protobuf.Any data = 50;
}
messageCoreProtocol{
string name = 1;
string address = 2;
}
ForgeState
messageForgeState{
string address = 1;
// consensus parameters, in future we shall be able to modify it
ConsensusParams consensus = 2;
map<uint64, UpgradeTasks> tasks = 3;
map<uint32, StakeSummary> stake_summary = 4;
string version = 5;
// string data_version = 6; current data version deprecated// app state returned by forge appbytes forge_app_hash = 7;
ForgeToken token = 8;
TransactionConfig tx_config = 9;
StakeConfig stake_config = 10;
PokeConfig poke_config = 11;
repeated CoreProtocol protocols = 12;
map<string, uint32> gas = 13;
UpgradeInfo upgrade_info = 14;
google.protobuf.Any data = 15; // forge app can define their own app state
}
DelegateOpState
messageDelegateOpState{
// all the individual rules in DelegateTx will be concat into one per type_url// by "AND"string rule = 1;
uint64 num_txs = 2;
uint64 num_txs_delta = 3;
BigUint balance = 4;
BigUint balance_delta = 5;
}
DelegateOpState
messageDelegateState{
string address = 1;
map<string, DelegateOpState> ops = 2;
// state context, replace exiting fields
StateContext context = 14;
// forge app can extend this
google.protobuf.Any data = 15;
}
ProtocolState
messageProtocolState{
string address = 1;
DeployProtocolTx itx = 2;
// root hash of the MPT of this tx protocolbytes root_hash = 3;
ProtocolStatus status = 4;
repeatedstring migrated_to = 12;
repeatedstring migrated_from = 13;
StateContext context = 14;
google.protobuf.Any data = 15; // forge app can define their own app state
}