-
Notifications
You must be signed in to change notification settings - Fork 97
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
evanorti
committed
Nov 22, 2023
1 parent
4ef8f73
commit b133b07
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
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,7 @@ | ||
# Custom WASM module | ||
|
||
This module is a wrapper for the official WASM module, used to extend the functionality of the FeeShare module. The original FeeShare module implementation only rewarded registered contracts that took part in the execution of a transaction. However, this approach has been modified using the Custom WASM module wrapper to reward all registered contracts that participate in a transaction. | ||
|
||
When a contract is executed, the custom WASM module keeps track of each participating contract address in a list. When the transaction is completed, the `PostHandler` from the FeeShare module distributes the rewards between the listed participants, and the `PostHandler` from the custom WASM module removes the contract addresses from the store. | ||
|
||
For more information on the FeeShare module, visit the [Feeshare spec](../feeshare/spec/README.md). |