Skip to content

threefold.tfgrid_actions.web3gw #

fn new #

fn new(mut rpc RpcWsClient, logger &Logger, mut wg_clients Clients) Web3GWHandler

struct Web3GWHandler #

@[heap]
struct Web3GWHandler {
pub mut:
	logger   Logger
	clients  Clients
	handlers map[string]fn (Action) !
}

fn (Web3GWHandler) handle_action #

fn (mut h Web3GWHandler) handle_action(action Action) !

fn (Web3GWHandler) keys_define #

fn (mut h Web3GWHandler) keys_define(action Action) !

fn (Web3GWHandler) money_balance #

fn (mut h Web3GWHandler) money_balance(action Action) !

fn (Web3GWHandler) money_send #

fn (mut h Web3GWHandler) money_send(action Action) !

fn (Web3GWHandler) money_swap #

fn (mut h Web3GWHandler) money_swap(action Action) !