Skip to content

Commit

Permalink
feat: proto
Browse files Browse the repository at this point in the history
  • Loading branch information
AbigailDeng authored and AbigailDeng committed May 9, 2024
1 parent 19894c5 commit bb73d55
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 208 deletions.
File renamed without changes.
File renamed without changes.
56 changes: 0 additions & 56 deletions proto/core.proto

This file was deleted.

150 changes: 0 additions & 150 deletions proto/core.proto.json

This file was deleted.

File renamed without changes.
61 changes: 61 additions & 0 deletions proto/transaction_fee.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
syntax = "proto3";

package aelf;

import "./aelf/core.proto";
import "./aelf/options.proto";

option csharp_namespace = "AElf.Contracts.MultiToken";

service TransactionFee {
}

// Messages

message TransactionSizeFeeSymbols {
repeated TransactionSizeFeeSymbol transaction_size_fee_symbol_list = 1;
}

message TransactionSizeFeeSymbol {
string token_symbol = 1;
int32 base_token_weight = 2;
int32 added_token_weight = 3;
}

// Events

message TransactionFeeCharged {
option (aelf.is_event) = true;
string symbol = 1;
int64 amount = 2;
aelf.Address chargingAddress = 3 [(aelf.is_indexed) = true];
}

message ResourceTokenCharged {
option (aelf.is_event) = true;
string symbol = 1;
int64 amount = 2;
aelf.Address contract_address = 3;
}

message ResourceTokenOwned {
option (aelf.is_event) = true;
string symbol = 1;
int64 amount = 2;
aelf.Address contract_address = 3;
}

message TransactionFeeClaimed {
option (aelf.is_event) = true;
string symbol = 1;
int64 amount = 2;
aelf.Address receiver = 3;
}

message ResourceTokenClaimed {
option (aelf.is_event) = true;
string symbol = 1;
int64 amount = 2;
aelf.Address payer = 3;
aelf.Address receiver = 4;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ syntax = "proto3";
option csharp_namespace = "AElf.Types";


import "aelf/core.proto";
import "aelf/options.proto";
import "./aelf/core.proto";
import "./aelf/options.proto";

service VirtualTransaction {
}
Expand Down
File renamed without changes.

0 comments on commit bb73d55

Please sign in to comment.