mirror of
https://github.com/fluencelabs/aqua-lib
synced 2024-12-04 23:30:22 +00:00
Improve Script.add signature and docs (#24)
This commit is contained in:
parent
1e892f4ac1
commit
69dbb49db6
12
builtin.aqua
12
builtin.aqua
@ -243,10 +243,14 @@ service Script("script"):
|
||||
-- Adds the given script to a node
|
||||
-- Arguments:
|
||||
-- air_script - raw AIR script without any undefined variables
|
||||
-- interval - if not set, script will be ran only once
|
||||
-- if set, script will be ran once in the interval
|
||||
-- (NOTE: actual interval may vary by up to 3 seconds)
|
||||
add(air_script: string, interval: ?u64) -> string
|
||||
-- interval - time to next run of the script in seconds
|
||||
-- - if set, script will be ran once in the interval
|
||||
-- - if not set, script will be ran only once
|
||||
-- (NOTE: an actual interval may vary by up to 3 seconds)
|
||||
-- delay - delay script run time in seconds
|
||||
-- - if set, script will be delayed on the delay time
|
||||
-- - if not set, script will be delayed on a random value in [0, interval]
|
||||
add(air_script: string, interval: ?u64, delay: ?u64) -> string
|
||||
|
||||
-- Removes recurring script from a node. Only a creator of the script can delete it
|
||||
remove(script_id: string) -> bool
|
||||
|
12
package-lock.json
generated
12
package-lock.json
generated
@ -1,5 +1,13 @@
|
||||
{
|
||||
"name": "@fluencelabs/aqua-lib",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 1
|
||||
"version": "0.2.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@fluencelabs/aqua-lib",
|
||||
"version": "0.2.0",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@fluencelabs/aqua-lib",
|
||||
"version": "0.1.1",
|
||||
"version": "0.2.0",
|
||||
"description": "Aqua standard library",
|
||||
"files": [
|
||||
"builtin.aqua",
|
||||
|
Loading…
Reference in New Issue
Block a user