Plugin Parameter

Plugin Parameter - FctParam

Class of every parameter in the plugin (to , value and any parameter in methodParams)

Public fields

value

Value of the parameter

Returns

string

const value = PluginInstance.input.to.value

fctType

string

Solidity type of the parameter

Returns

string

const fctType = PluginInstance.input.to.fctType

appType

Type of parameter for frontend to determine, what input field frontend should use

Returns

string

const appType = PluginInstance.input.to.appType

required

Is the parameter required for the Plugin

Returns

boolean

const required = PluginInstance.input.to.required

options

Array with all allowed values, that can be set. If the array is empty - any value can be used

Returns

{ value: string }[]

const options = PluginInstance.input.to.options

Methods

set({ value })

Set value of the parameter

Method Arguments

PluginInstance.input.to.set({ value: "0x..." })

get()

Returns the value of the parameter

Returns

Type of Parameter

const value = PluginInstance.input.to.get()

isValid()

Returns the value of the parameter

Returns

boolean

const isValid = PluginInstance.input.to.isValid()

reset()

Resets the parameter

PluginInstance.input.to.reset()

Last updated