ConsumerParameterBuilder
Builder class used to build custom parameters.
Consumer parameters are key/value pairs which can be provided during service consumption. Official OceanProtocol Consumer Parameters documentation
Usage
import { , , , } from '@deltadao/nautilus'
const = new ()
const =
.('number')
.('numberEntries')
.('Number of Entries')
.('Set the number of entries used for computation.')
.(12)
.(false)
.()
const = new ({ : ., : .})
const = .()We can use the ServiceBuilder in combination with the ConsumerParameterBuilder to add the parameter to the service metadata.
The supported types of parameters are 'text', 'number', 'boolean' and 'select'.