github.com/Finschia/finschia-sdk@v0.49.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    option deprecated = true;
    86  
    87    // contract id associated with the contract.
    88    string contract_id = 1;
    89    // address which triggered the create.
    90    string operator = 2;
    91    // token id associated with the token class.
    92    string token_id = 3;
    93    // name of the token class.
    94    string name = 4;
    95    // metadata of the token class.
    96    string meta = 5;
    97    // decimals of the token class.
    98    int32 decimals = 6;
    99    // mintable represents whether the token class is allowed to mint or burn its tokens.
   100    bool mintable = 7;
   101  }
   102  
   103  // EventCreatedNFTClass is emitted when a new non-fungible token class is created.
   104  //
   105  // Since: 0.46.0 (finschia)
   106  message EventCreatedNFTClass {
   107    // contract id associated with the contract.
   108    string contract_id = 1;
   109    // address which triggered the create.
   110    string operator = 2;
   111    // token type associated with the token class.
   112    // refer to TokenType for the definition.
   113    string token_type = 3;
   114    // name of the token class.
   115    string name = 4;
   116    // metadata of the token class.
   117    string meta = 5;
   118  }
   119  
   120  // EventGranted is emitted when a granter grants its permission to a grantee.
   121  //
   122  // Info: `granter` would be empty if the permission is granted by an issuance.
   123  //
   124  // Since: 0.46.0 (finschia)
   125  message EventGranted {
   126    // contract id associated with the contract.
   127    string contract_id = 1;
   128    // address of the granter which grants the permission.
   129    string granter = 2;
   130    // address of the grantee.
   131    string grantee = 3;
   132    // permission on the contract.
   133    Permission permission = 4;
   134  }
   135  
   136  // EventRenounced is emitted when a grantee renounced its permission.
   137  //
   138  // Since: 0.46.0 (finschia)
   139  message EventRenounced {
   140    // contract id associated with the contract.
   141    string contract_id = 1;
   142    // address of the grantee which abandons its grant.
   143    string grantee = 2;
   144    // permission on the contract.
   145    Permission permission = 3;
   146  }
   147  
   148  // EventMintedFT is emitted when fungible tokens are minted.
   149  //
   150  // Since: 0.46.0 (finschia)
   151  message EventMintedFT {
   152    option deprecated = true;
   153  
   154    // contract id associated with the contract.
   155    string contract_id = 1;
   156    // address which triggered the mint.
   157    string operator = 2;
   158    // recipient of the tokens.
   159    string to = 3;
   160    // amount of tokens minted.
   161    repeated Coin amount = 4 [(gogoproto.nullable) = false];
   162  }
   163  
   164  // EventMintedNFT is emitted when non-fungible tokens are minted.
   165  //
   166  // Since: 0.46.0 (finschia)
   167  message EventMintedNFT {
   168    // contract id associated with the contract.
   169    string contract_id = 1;
   170    // address which triggered the mint.
   171    string operator = 2;
   172    // recipient of the tokens.
   173    string to = 3;
   174    // tokens minted.
   175    repeated NFT tokens = 4 [(gogoproto.nullable) = false];
   176  }
   177  
   178  // EventBurned is emitted when tokens are burnt.
   179  //
   180  // Since: 0.46.0 (finschia)
   181  message EventBurned {
   182    // contract id associated with the contract.
   183    string contract_id = 1;
   184    // address which triggered the burn.
   185    string operator = 2;
   186    // holder whose tokens were burned.
   187    string from = 3;
   188    // amount of tokens burned.
   189    repeated Coin amount = 4 [(gogoproto.nullable) = false];
   190  }
   191  
   192  // EventModifiedContract is emitted when the information of a contract is modified.
   193  //
   194  // Since: 0.46.0 (finschia)
   195  message EventModifiedContract {
   196    // contract id associated with the contract.
   197    string contract_id = 1;
   198    // address which triggered the modify.
   199    string operator = 2;
   200    // changes of the attributes applied.
   201    // possible attribute keys are same as those of MsgModify.
   202    // deprecated "base_img_uri" has been replaced by "uri" in the events.
   203    repeated Attribute changes = 3 [(gogoproto.nullable) = false];
   204  }
   205  
   206  // EventModifiedTokenClass is emitted when the information of a token class is modified.
   207  //
   208  // Since: 0.46.0 (finschia)
   209  message EventModifiedTokenClass {
   210    // contract id associated with the contract.
   211    string contract_id = 1;
   212    // address which triggered the modify.
   213    string operator = 2;
   214    // token type associated with the token class.
   215    // refer to TokenType for the definition.
   216    string token_type = 3;
   217    // changes of the attributes applied.
   218    // possible attribute keys are same as those of MsgModify.
   219    repeated Attribute changes = 4 [(gogoproto.nullable) = false];
   220    // type name of the token class.
   221    string type_name = 5;
   222  }
   223  
   224  // EventModifiedNFT is emitted when the information of a non-fungible token is modified.
   225  //
   226  // Since: 0.46.0 (finschia)
   227  message EventModifiedNFT {
   228    // contract id associated with the contract.
   229    string contract_id = 1;
   230    // address which triggered the modify.
   231    string operator = 2;
   232    // token id associated with the non-fungible token.
   233    string token_id = 3;
   234    // changes of the attributes applied.
   235    // possible attribute keys are same as those of MsgModify.
   236    repeated Attribute changes = 4 [(gogoproto.nullable) = false];
   237  }
   238  
   239  // EventAttached is emitted when a token is attached to another.
   240  //
   241  // Since: 0.46.0 (finschia)
   242  message EventAttached {
   243    option deprecated = true;
   244  
   245    // contract id associated with the contract.
   246    string contract_id = 1;
   247    // address which triggered the attach.
   248    string operator = 2;
   249    // address which holds the tokens.
   250    string holder = 3;
   251    // subject of the attach.
   252    string subject = 4;
   253    // target of the attach.
   254    string target = 5;
   255  }
   256  
   257  // EventDetached is emitted when a token is detached from its parent.
   258  //
   259  // Since: 0.46.0 (finschia)
   260  message EventDetached {
   261    option deprecated = true;
   262  
   263    // contract id associated with the contract.
   264    string contract_id = 1;
   265    // address which triggered the detach.
   266    string operator = 2;
   267    // address which holds the token.
   268    string holder = 3;
   269    // token being detached.
   270    string subject = 4;
   271    // parent token before the detach.
   272    string previous_parent = 5;
   273  }
   274  
   275  // EventOwnerChanged is emitted when the owner of token is changed by operation applied to its ancestor.
   276  //
   277  // Since: 0.46.0 (finschia)
   278  message EventOwnerChanged {
   279    option deprecated = true;
   280  
   281    // contract id associated with the contract.
   282    string contract_id = 1;
   283    // token id associated with the token.
   284    string token_id = 2;
   285    // address of the previous owner before the change.
   286    string from = 3;
   287    // address of the new owner.
   288    string to = 4;
   289  }
   290  
   291  // EventRootChanged is emitted when the root of token is changed by operation applied to its ancestor.
   292  //
   293  // Since: 0.46.0 (finschia)
   294  message EventRootChanged {
   295    option deprecated = true;
   296  
   297    // contract id associated with the contract.
   298    string contract_id = 1;
   299    // token id associated with the token.
   300    string token_id = 2;
   301    // token id of the previous root before the change.
   302    string from = 3;
   303    // token id of the new root.
   304    string to = 4;
   305  }