-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AbigailDeng
authored and
AbigailDeng
committed
May 9, 2024
1 parent
19894c5
commit bb73d55
Showing
8 changed files
with
63 additions
and
208 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.