wasm

package
v2.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppModule

type AppModule struct {
	wasm.AppModule
	// contains filtered or unexported fields
}

AppModule implements an application module for the wasm module.

func NewAppModule

NewAppModule creates a new AppModule object

func (AppModule) RegisterServices

func (am AppModule) RegisterServices(cfg module.Configurator)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL