aqua-lib
defines a number of services available on peers in the Fluence Network:Op
- short for "Operations". Functions for data transformation.Peer
- functions affecting peer's internal stateKademlia
- functions to manipulate libp2p KademliaSrv
- short for "Service". Functions for service manipulationDist
- short for "Distribution". Functions for module and blueprint distributionScript
- functions to run and remove scheduled (recurring) scripts@fluencelabs/aqua-lib
to your dependencies as described in Libraries doc, and then import it in your Aqua script:aqua-lib
is meant to be used to write Aqua scripts, and sinceaqua-lib
doesn't export any top-level functions, it's not callable directly in the TypeScript. aqua-lib
API. But there's a way around that.Op.concat_strings
as an example. You can use it to concatenate several strings. aqua-lib
provides the following signature:concat_strings
accepts any number of arguments, so you can redeclare it with the number of arguments that you want:Op.concat
- can concatenate any number of arraysOp.array
- wraps any number of arguments into an arrayOp.concat_string
- concatenates any number of strings