Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
evanorti committed Nov 22, 2023
1 parent 4ef8f73 commit b133b07
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x/wasm/README.md
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).

0 comments on commit b133b07

Please sign in to comment.