github.com/Finschia/finschia-sdk@v0.49.1/proto/lbm/token/v1/genesis.proto (about) 1 syntax = "proto3"; 2 package lbm.token.v1; 3 4 import "gogoproto/gogo.proto"; 5 import "lbm/token/v1/token.proto"; 6 7 option go_package = "github.com/Finschia/finschia-sdk/x/token"; 8 9 // GenesisState defines the token module's genesis state. 10 message GenesisState { 11 option deprecated = true; 12 13 // params defines all the paramaters of the module. 14 Params params = 1 [(gogoproto.nullable) = false]; 15 16 // class_state is the class keeper's genesis state. 17 ClassGenesisState class_state = 2; 18 19 // balances is an array containing the balances of all the accounts. 20 repeated ContractBalances balances = 3 [(gogoproto.nullable) = false]; 21 22 // classes defines the metadata of the differents tokens. 23 repeated Contract classes = 4 [(gogoproto.nullable) = false]; 24 25 // grants defines the grant information. 26 repeated ContractGrants grants = 5 [(gogoproto.nullable) = false]; 27 28 // authorizations defines the approve information. 29 repeated ContractAuthorizations authorizations = 6 [(gogoproto.nullable) = false]; 30 31 // supplies represents the total supplies of tokens. 32 repeated ContractCoin supplies = 7 [(gogoproto.nullable) = false]; 33 34 // mints represents the total mints of tokens. 35 repeated ContractCoin mints = 8 [(gogoproto.nullable) = false]; 36 37 // burns represents the total burns of tokens. 38 repeated ContractCoin burns = 9 [(gogoproto.nullable) = false]; 39 } 40 41 // ClassGenesisState defines the classs keeper's genesis state. 42 message ClassGenesisState { 43 option deprecated = true; 44 45 // nonce is the next class nonce to issue. 46 string nonce = 1 47 [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Uint", (gogoproto.nullable) = false]; 48 49 // ids represents the issued ids. 50 repeated string ids = 2; 51 } 52 53 // ContractBalances defines balances belong to a contract. 54 // genesis state. 55 message ContractBalances { 56 option deprecated = true; 57 58 // contract id associated with the token class. 59 string contract_id = 1; 60 // balances of the contract. 61 repeated Balance balances = 2 [(gogoproto.nullable) = false]; 62 } 63 64 // Balance defines a balance of an address. 65 message Balance { 66 option deprecated = true; 67 option (gogoproto.equal) = true; 68 69 // address of the holder. 70 string address = 1; 71 // amount of the balance. 72 string amount = 2 73 [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false]; 74 } 75 76 // ContractAuthorizations defines authorizations belong to a contract. 77 message ContractAuthorizations { 78 option deprecated = true; 79 80 // contract id associated with the token class. 81 string contract_id = 1; 82 // authorizations of the contract. 83 repeated Authorization authorizations = 2 [(gogoproto.nullable) = false]; 84 } 85 86 // ContractGrant defines grants belong to a contract. 87 message ContractGrants { 88 option deprecated = true; 89 90 // contract id associated with the token class. 91 string contract_id = 1; 92 // grants of the contract. 93 repeated Grant grants = 2 [(gogoproto.nullable) = false]; 94 } 95 96 message ContractCoin { 97 option deprecated = true; 98 99 // contract id associated with the token class. 100 string contract_id = 1; 101 // amount of the token. 102 string amount = 2 103 [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false]; 104 }