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