Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Remove Script API [fixes NET-269] #80

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions builtin.aqua
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@ data Blueprint:
name: string
dependencies: []CID

data ScriptInfo:
id: string
src: string
failures: u32
interval: string
owner: string

data Contact:
peer_id: string
addresses: []string
Expand Down Expand Up @@ -321,32 +314,6 @@ service Dist("dist"):
-- Get a single blueprint
get_blueprint(blueprint_id: string) -> Blueprint

service Script("script"):
-- Adds the given script to a node
-- Arguments:
-- air_script - raw AIR script without any undefined variables
-- 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)
add(air_script: string, interval: ?u64) -> string

-- Adds the script from the given path to a node
-- Arguments:
-- path - path to the AIR script without any undefined variables in the particle file vault
-- 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)
add_from_vault(path: Path, interval: ?u64) -> string

-- Removes recurring script from a node. Only the creator of the script can delete it
remove(script_id: string) -> bool

-- Returns a list of existing scripts on the node.
-- Each object in the list is of the following structure
list() -> []ScriptInfo

data SignResult:
-- Was call successful or not
success: bool
Expand Down
Loading