github.com/Finschia/finschia-sdk@v0.49.1/proto/lbm/token/v1/event.proto (about)

     1  syntax = "proto3";
     2  package lbm.token.v1;
     3  
     4  import "gogoproto/gogo.proto";
     5  
     6  import "lbm/token/v1/token.proto";
     7  
     8  option go_package = "github.com/Finschia/finschia-sdk/x/token";
     9  
    10  // AttributeKey enumerates the valid attribute keys on x/token.
    11  enum AttributeKey {
    12    option deprecated                        = true;
    13    option (gogoproto.goproto_enum_stringer) = false;
    14    option (gogoproto.goproto_enum_prefix)   = false;
    15  
    16    ATTRIBUTE_KEY_UNSPECIFIED = 0 [(gogoproto.enumvalue_customname) = "AttributeKeyUnspecified"];
    17  
    18    ATTRIBUTE_KEY_NAME = 1 [(gogoproto.enumvalue_customname) = "AttributeKeyName"];
    19    reserved 2;
    20    ATTRIBUTE_KEY_META = 3 [(gogoproto.enumvalue_customname) = "AttributeKeyMeta"];
    21    reserved 4 to 7;
    22    // deprecated: use ATTRIBUTE_KEY_URI
    23    ATTRIBUTE_KEY_IMG_URI = 8 [(gogoproto.enumvalue_customname) = "AttributeKeyImageURI"];
    24    reserved 9 to 14;
    25    ATTRIBUTE_KEY_URI = 15 [(gogoproto.enumvalue_customname) = "AttributeKeyURI"];
    26  }
    27  
    28  // EventSent is emitted when tokens are transferred.
    29  //
    30  // Since: 0.46.0 (finschia)
    31  message EventSent {
    32    option deprecated = true;
    33  
    34    // contract id associated with the contract.
    35    string contract_id = 1;
    36    // address which triggered the send.
    37    string operator = 2;
    38    // holder whose tokens were sent.
    39    string from = 3;
    40    // recipient of the tokens
    41    string to = 4;
    42    // number of tokens sent.
    43    string amount = 5
    44        [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false];
    45  }
    46  
    47  // EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens.
    48  //
    49  // Since: 0.46.0 (finschia)
    50  message EventAuthorizedOperator {
    51    option deprecated = true;
    52  
    53    // contract id associated with the contract.
    54    string contract_id = 1;
    55    // address of a holder which authorized the `operator` address as an operator.
    56    string holder = 2;
    57    // address which became an operator of `holder`.
    58    string operator = 3;
    59  }
    60  
    61  // EventRevokedOperator is emitted when an authorization is revoked.
    62  //
    63  // Since: 0.46.0 (finschia)
    64  message EventRevokedOperator {
    65    option deprecated = true;
    66  
    67    // contract id associated with the contract.
    68    string contract_id = 1;
    69    // address of a holder which revoked the `operator` address as an operator.
    70    string holder = 2;
    71    // address which was revoked as an operator of `holder`.
    72    string operator = 3;
    73  }
    74  
    75  // EventIssued is emitted when a new contract is created.
    76  //
    77  // Since: 0.46.0 (finschia)
    78  message EventIssued {
    79    option deprecated = true;
    80  
    81    // address which created the contract.
    82    string creator = 1;
    83    // contract id associated with the contract.
    84    string contract_id = 2;
    85    // name defines the human-readable name of the contract.
    86    string name = 3;
    87    // symbol is an abbreviated name for contract.
    88    string symbol = 4;
    89    // uri is an uri for the resource of the contract stored off chain.
    90    string uri = 5;
    91    // meta is a brief description of contract.
    92    string meta = 6;
    93    // decimals is the number of decimals which one must divide the amount by to get its user representation.
    94    int32 decimals = 7;
    95    // mintable represents whether the token is allowed to mint.
    96    bool mintable = 8;
    97  }
    98  
    99  // EventGranted is emitted when a granter grants its permission to a grantee.
   100  //
   101  // Info: `granter` would be empty if the permission is granted by an issuance.
   102  //
   103  // Since: 0.46.0 (finschia)
   104  message EventGranted {
   105    option deprecated = true;
   106  
   107    // contract id associated with the contract.
   108    string contract_id = 1;
   109    // address which granted the permission to `grantee`.
   110    // it would be empty where the event is triggered by the issuance.
   111    string granter = 2;
   112    // address of the grantee.
   113    string grantee = 3;
   114    // permission on the contract.
   115    Permission permission = 4;
   116  }
   117  
   118  // EventRenounced is emitted when a grantee renounces its permission.
   119  //
   120  // Since: 0.46.0 (finschia)
   121  message EventRenounced {
   122    option deprecated = true;
   123  
   124    // contract id associated with the contract.
   125    string contract_id = 1;
   126    // address of the grantee which abandons its grant.
   127    string grantee = 2;
   128    // permission on the contract.
   129    Permission permission = 3;
   130  }
   131  
   132  // EventMinted is emitted when tokens are minted.
   133  //
   134  // Since: 0.46.0 (finschia)
   135  message EventMinted {
   136    option deprecated = true;
   137  
   138    // contract id associated with the contract.
   139    string contract_id = 1;
   140    // address which triggered the mint.
   141    string operator = 2;
   142    // recipient of the tokens.
   143    string to = 3;
   144    // number of tokens minted.
   145    string amount = 4
   146        [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false];
   147  }
   148  
   149  // EventBurned is emitted when tokens are burnt.
   150  //
   151  // Since: 0.46.0 (finschia)
   152  message EventBurned {
   153    option deprecated = true;
   154  
   155    // contract id associated with the contract.
   156    string contract_id = 1;
   157    // address which triggered the burn.
   158    string operator = 2;
   159    // holder whose tokens were burned.
   160    string from = 3;
   161    // number of tokens burned.
   162    string amount = 4
   163        [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false];
   164  }
   165  
   166  // EventModified is emitted when the information of a contract is modified.
   167  //
   168  // Since: 0.46.0 (finschia)
   169  message EventModified {
   170    option deprecated = true;
   171  
   172    // contract id associated with the contract.
   173    string contract_id = 1;
   174    // address which triggered the modify.
   175    string operator = 2;
   176    // changes on the metadata of the class.
   177    // possible attribute keys are same as those of MsgModify.
   178    // deprecated "img_uri" has been replaced by "uri" in the events.
   179    repeated Attribute changes = 3 [(gogoproto.nullable) = false];
   180  }