github.com/Finschia/finschia-sdk@v0.48.1/proto/lbm/collection/v1/event.proto (about) 1 syntax = "proto3"; 2 package lbm.collection.v1; 3 4 import "gogoproto/gogo.proto"; 5 6 import "lbm/collection/v1/collection.proto"; 7 8 option go_package = "github.com/Finschia/finschia-sdk/x/collection"; 9 10 // AttributeKey enumerates the valid attribute keys on x/collection. 11 enum AttributeKey { 12 option (gogoproto.goproto_enum_stringer) = false; 13 option (gogoproto.goproto_enum_prefix) = false; 14 15 ATTRIBUTE_KEY_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "AttributeKeyUnspecified"]; 16 ATTRIBUTE_KEY_NAME = 1 [(gogoproto.enumvalue_customname) = "AttributeKeyName"]; 17 ATTRIBUTE_KEY_META = 2 [(gogoproto.enumvalue_customname) = "AttributeKeyMeta"]; 18 reserved 3 to 7; 19 // deprecated: use ATTRIBUTE_KEY_URI 20 ATTRIBUTE_KEY_BASE_IMG_URI = 8 [(gogoproto.enumvalue_customname) = "AttributeKeyBaseImgURI"]; 21 reserved 9 to 19; 22 ATTRIBUTE_KEY_URI = 20 [(gogoproto.enumvalue_customname) = "AttributeKeyURI"]; 23 } 24 25 // EventSent is emitted when tokens are transferred. 26 // 27 // Since: 0.46.0 (finschia) 28 message EventSent { 29 // contract id associated with the contract. 30 string contract_id = 1; 31 // address which triggered the send. 32 string operator = 2; 33 // holder whose tokens were sent. 34 string from = 3; 35 // recipient of the tokens. 36 string to = 4; 37 // amount of tokens sent. 38 repeated Coin amount = 5 [(gogoproto.nullable) = false]; 39 } 40 41 // EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens. 42 // 43 // Since: 0.46.0 (finschia) 44 message EventAuthorizedOperator { 45 // contract id associated with the contract. 46 string contract_id = 1; 47 // address of a holder which authorized the `operator` address as an operator. 48 string holder = 2; 49 // address which became an operator of `holder`. 50 string operator = 3; 51 } 52 53 // EventRevokedOperator is emitted when an authorization is revoked. 54 // 55 // Since: 0.46.0 (finschia) 56 message EventRevokedOperator { 57 // contract id associated with the contract. 58 string contract_id = 1; 59 // address of a holder which revoked the `operator` address as an operator. 60 string holder = 2; 61 // address which was revoked as an operator of `holder`. 62 string operator = 3; 63 } 64 65 // EventCreatedContract is emitted when a new contract is created. 66 // 67 // Since: 0.46.0 (finschia) 68 message EventCreatedContract { 69 // address which created the contract. 70 string creator = 1; 71 // contract id associated with the contract. 72 string contract_id = 2; 73 // name of the contract. 74 string name = 3; 75 // metadata of the contract. 76 string meta = 4; 77 // uri for the contract image stored off chain. 78 string uri = 5; 79 } 80 81 // EventCreatedFTClass is emitted when a new fungible token class is created. 82 // 83 // Since: 0.46.0 (finschia) 84 message EventCreatedFTClass { 85 // contract id associated with the contract. 86 string contract_id = 1; 87 // address which triggered the create. 88 string operator = 2; 89 // token id associated with the token class. 90 string token_id = 3; 91 // name of the token class. 92 string name = 4; 93 // metadata of the token class. 94 string meta = 5; 95 // decimals of the token class. 96 int32 decimals = 6; 97 // mintable represents whether the token class is allowed to mint or burn its tokens. 98 bool mintable = 7; 99 } 100 101 // EventCreatedNFTClass is emitted when a new non-fungible token class is created. 102 // 103 // Since: 0.46.0 (finschia) 104 message EventCreatedNFTClass { 105 // contract id associated with the contract. 106 string contract_id = 1; 107 // address which triggered the create. 108 string operator = 2; 109 // token type associated with the token class. 110 // refer to TokenType for the definition. 111 string token_type = 3; 112 // name of the token class. 113 string name = 4; 114 // metadata of the token class. 115 string meta = 5; 116 } 117 118 // EventGranted is emitted when a granter grants its permission to a grantee. 119 // 120 // Info: `granter` would be empty if the permission is granted by an issuance. 121 // 122 // Since: 0.46.0 (finschia) 123 message EventGranted { 124 // contract id associated with the contract. 125 string contract_id = 1; 126 // address of the granter which grants the permission. 127 string granter = 2; 128 // address of the grantee. 129 string grantee = 3; 130 // permission on the contract. 131 Permission permission = 4; 132 } 133 134 // EventRenounced is emitted when a grantee renounced its permission. 135 // 136 // Since: 0.46.0 (finschia) 137 message EventRenounced { 138 // contract id associated with the contract. 139 string contract_id = 1; 140 // address of the grantee which abandons its grant. 141 string grantee = 2; 142 // permission on the contract. 143 Permission permission = 3; 144 } 145 146 // EventMintedFT is emitted when fungible tokens are minted. 147 // 148 // Since: 0.46.0 (finschia) 149 message EventMintedFT { 150 // contract id associated with the contract. 151 string contract_id = 1; 152 // address which triggered the mint. 153 string operator = 2; 154 // recipient of the tokens. 155 string to = 3; 156 // amount of tokens minted. 157 repeated Coin amount = 4 [(gogoproto.nullable) = false]; 158 } 159 160 // EventMintedNFT is emitted when non-fungible tokens are minted. 161 // 162 // Since: 0.46.0 (finschia) 163 message EventMintedNFT { 164 // contract id associated with the contract. 165 string contract_id = 1; 166 // address which triggered the mint. 167 string operator = 2; 168 // recipient of the tokens. 169 string to = 3; 170 // tokens minted. 171 repeated NFT tokens = 4 [(gogoproto.nullable) = false]; 172 } 173 174 // EventBurned is emitted when tokens are burnt. 175 // 176 // Since: 0.46.0 (finschia) 177 message EventBurned { 178 // contract id associated with the contract. 179 string contract_id = 1; 180 // address which triggered the burn. 181 string operator = 2; 182 // holder whose tokens were burned. 183 string from = 3; 184 // amount of tokens burned. 185 repeated Coin amount = 4 [(gogoproto.nullable) = false]; 186 } 187 188 // EventModifiedContract is emitted when the information of a contract is modified. 189 // 190 // Since: 0.46.0 (finschia) 191 message EventModifiedContract { 192 // contract id associated with the contract. 193 string contract_id = 1; 194 // address which triggered the modify. 195 string operator = 2; 196 // changes of the attributes applied. 197 // possible attribute keys are same as those of MsgModify. 198 // deprecated "base_img_uri" has been replaced by "uri" in the events. 199 repeated Attribute changes = 3 [(gogoproto.nullable) = false]; 200 } 201 202 // EventModifiedTokenClass is emitted when the information of a token class is modified. 203 // 204 // Since: 0.46.0 (finschia) 205 message EventModifiedTokenClass { 206 // contract id associated with the contract. 207 string contract_id = 1; 208 // address which triggered the modify. 209 string operator = 2; 210 // token type associated with the token class. 211 // refer to TokenType for the definition. 212 string token_type = 3; 213 // changes of the attributes applied. 214 // possible attribute keys are same as those of MsgModify. 215 repeated Attribute changes = 4 [(gogoproto.nullable) = false]; 216 // type name of the token class. 217 string type_name = 5; 218 } 219 220 // EventModifiedNFT is emitted when the information of a non-fungible token is modified. 221 // 222 // Since: 0.46.0 (finschia) 223 message EventModifiedNFT { 224 // contract id associated with the contract. 225 string contract_id = 1; 226 // address which triggered the modify. 227 string operator = 2; 228 // token id associated with the non-fungible token. 229 string token_id = 3; 230 // changes of the attributes applied. 231 // possible attribute keys are same as those of MsgModify. 232 repeated Attribute changes = 4 [(gogoproto.nullable) = false]; 233 } 234 235 // EventAttached is emitted when a token is attached to another. 236 // 237 // Since: 0.46.0 (finschia) 238 message EventAttached { 239 // contract id associated with the contract. 240 string contract_id = 1; 241 // address which triggered the attach. 242 string operator = 2; 243 // address which holds the tokens. 244 string holder = 3; 245 // subject of the attach. 246 string subject = 4; 247 // target of the attach. 248 string target = 5; 249 } 250 251 // EventDetached is emitted when a token is detached from its parent. 252 // 253 // Since: 0.46.0 (finschia) 254 message EventDetached { 255 // contract id associated with the contract. 256 string contract_id = 1; 257 // address which triggered the detach. 258 string operator = 2; 259 // address which holds the token. 260 string holder = 3; 261 // token being detached. 262 string subject = 4; 263 // parent token before the detach. 264 string previous_parent = 5; 265 } 266 267 // EventOwnerChanged is emitted when the owner of token is changed by operation applied to its ancestor. 268 // 269 // Since: 0.46.0 (finschia) 270 message EventOwnerChanged { 271 // contract id associated with the contract. 272 string contract_id = 1; 273 // token id associated with the token. 274 string token_id = 2; 275 // address of the previous owner before the change. 276 string from = 3; 277 // address of the new owner. 278 string to = 4; 279 } 280 281 // EventRootChanged is emitted when the root of token is changed by operation applied to its ancestor. 282 // 283 // Since: 0.46.0 (finschia) 284 message EventRootChanged { 285 // contract id associated with the contract. 286 string contract_id = 1; 287 // token id associated with the token. 288 string token_id = 2; 289 // token id of the previous root before the change. 290 string from = 3; 291 // token id of the new root. 292 string to = 4; 293 }