diff --git a/.gitbook/assets/air_fold_4 (1) (1).png b/.gitbook/assets/air_fold_4 (1) (2) (2) (1).png similarity index 100% rename from .gitbook/assets/air_fold_4 (1) (1).png rename to .gitbook/assets/air_fold_4 (1) (2) (2) (1).png diff --git a/.gitbook/assets/air_fold_4 (1) (2).png b/.gitbook/assets/air_fold_4 (1) (2) (2) (2).png similarity index 100% rename from .gitbook/assets/air_fold_4 (1) (2).png rename to .gitbook/assets/air_fold_4 (1) (2) (2) (2).png diff --git a/.gitbook/assets/air_fold_4 (1).png b/.gitbook/assets/air_fold_4 (1) (2) (2) (3).png similarity index 100% rename from .gitbook/assets/air_fold_4 (1).png rename to .gitbook/assets/air_fold_4 (1) (2) (2) (3).png diff --git a/.gitbook/assets/air_fold_4 (1) (2) (2).png b/.gitbook/assets/air_fold_4 (1) (2) (2).png new file mode 100644 index 0000000..094e274 Binary files /dev/null and b/.gitbook/assets/air_fold_4 (1) (2) (2).png differ diff --git a/.gitbook/assets/air_null_6 (1) (1).png b/.gitbook/assets/air_null_6 (1) (2) (2) (1).png similarity index 100% rename from .gitbook/assets/air_null_6 (1) (1).png rename to .gitbook/assets/air_null_6 (1) (2) (2) (1).png diff --git a/.gitbook/assets/air_null_6 (1) (2).png b/.gitbook/assets/air_null_6 (1) (2) (2) (2).png similarity index 100% rename from .gitbook/assets/air_null_6 (1) (2).png rename to .gitbook/assets/air_null_6 (1) (2) (2) (2).png diff --git a/.gitbook/assets/air_null_6 (1).png b/.gitbook/assets/air_null_6 (1) (2) (2) (3).png similarity index 100% rename from .gitbook/assets/air_null_6 (1).png rename to .gitbook/assets/air_null_6 (1) (2) (2) (3).png diff --git a/.gitbook/assets/air_null_6 (1) (2) (2).png b/.gitbook/assets/air_null_6 (1) (2) (2).png new file mode 100644 index 0000000..9c3bb75 Binary files /dev/null and b/.gitbook/assets/air_null_6 (1) (2) (2).png differ diff --git a/.gitbook/assets/air_sequential_2 (1) (1) (1).png b/.gitbook/assets/air_sequential_2 (1) (1) (1) (1) (1).png similarity index 100% rename from .gitbook/assets/air_sequential_2 (1) (1) (1).png rename to .gitbook/assets/air_sequential_2 (1) (1) (1) (1) (1).png diff --git a/.gitbook/assets/air_sequential_2 (1) (1).png b/.gitbook/assets/air_sequential_2 (1) (1) (1) (1).png similarity index 100% rename from .gitbook/assets/air_sequential_2 (1) (1).png rename to .gitbook/assets/air_sequential_2 (1) (1) (1) (1).png diff --git a/knowledge_knowledge/knowledge_aquamarine/knowledge_aquamarine_air.md b/knowledge_knowledge/knowledge_aquamarine/knowledge_aquamarine_air.md index e199e12..d6e883d 100644 --- a/knowledge_knowledge/knowledge_aquamarine/knowledge_aquamarine_air.md +++ b/knowledge_knowledge/knowledge_aquamarine/knowledge_aquamarine_air.md @@ -23,7 +23,7 @@ AIR instructions are intended to launch the execution of a service method as fol 4. The arguments specified by the argument list are passed to the method 5. The result of the method returned under the name output name -**Figure 2: Sequential Instruction** ![Execution](../../.gitbook/assets/air_sequential_2%20%281%29.png) +**Figure 2: Sequential Instruction** ![Execution](../../.gitbook/assets/air_sequential_2%20%281%29%20%281%29%20%281%29%20%281%29.png) The seq instruction takes two instructions at most as its arguments and executes them sequentially, one after the other. @@ -33,7 +33,7 @@ The par</i.> instruction takes two instructions at most as its arguments a TODO: add better graphic showing the disticntion of branching vs seq. -**Figure 4: Fold Instruction** ![Execution](../../.gitbook/assets/air_fold_4.png) +**Figure 4: Fold Instruction** ![Execution](../../.gitbook/assets/air_fold_4%20%281%29%20%282%29%20%282%29%20%281%29.png) The fold instruction iterates over the elements of an array and workds as follows: @@ -49,7 +49,7 @@ This instruction is intended for organizing branches in the flow of execution as * The first instruction is executed and if the execution is successful, then the second instruction is ignored * If the first instruction fails, then the second one is executed. -**Figure 6: Null Instruction** ![Execution](../../.gitbook/assets/air_null_6.png) +**Figure 6: Null Instruction** ![Execution](../../.gitbook/assets/air_null_6%20%281%29%20%282%29%20%282%29%20%282%29.png) This is an empty instruction: it takes no arguments and does nothing. The null instruction is useful for generating code. diff --git a/knowledge_knowledge/node/knowledge_node_services.md b/knowledge_knowledge/node/knowledge_node_services.md index c3a681f..a00234e 100644 --- a/knowledge_knowledge/node/knowledge_node_services.md +++ b/knowledge_knowledge/node/knowledge_node_services.md @@ -18,7 +18,7 @@ Please note that the [`fldist`](../knowledge_tools.md#fluence-proto-distributor- ### API -#### peer is_connected +#### peer is\_connected Checks if there is a direct connection to the peer identified by a given PeerId @@ -50,7 +50,7 @@ Example of a service call: ) ``` -#### peer get_contact +#### peer get\_contact Resolves the contact of a peer via [Kademlia](https://en.wikipedia.org/wiki/Kademlia) @@ -89,7 +89,7 @@ Example of service call: (call node ("peer" "identify") [] info) peer timestamp_ms ``` -#### peer timestamp_ms +#### peer timestamp\_ms Get Unix timestamp in milliseconds @@ -102,7 +102,7 @@ Example of service call: (call node ("peer" "timestamp_ms") [] ts_ms) ``` -#### peer timestamp_sec +#### peer timestamp\_sec Get Unix timestamp in seconds @@ -157,7 +157,7 @@ Example of service call: (call node ("srv" "list") [] services) ``` -#### srv add_alias +#### srv add\_alias Adds an alias on service, so service could be called not only by service\_id but by alias. @@ -170,7 +170,7 @@ Example of service call: (call node ("srv" "add_alias") [alias service_id]) ``` -#### srv get_interface +#### srv get\_interface Retrieves the functional interface of a service running on the node specified in the service call. @@ -191,7 +191,7 @@ Example of service call: (call node ("srv" "get_interface") [service_id] interface) ``` -#### dist add_module +#### dist add\_module Used to add modules to the node specified in the service call. @@ -212,7 +212,7 @@ Example of service call: (call node ("dist" "add_module") [bytes config] hash) ``` -#### dist list_modules +#### dist list\_modules Get a list of modules available on the node @@ -235,7 +235,7 @@ Example of service call: (call node ("dist" "list_modules") [] modules) ``` -#### dist get_module_interface +#### dist get\_module\_interface Get the interface of a module @@ -363,9 +363,9 @@ Example of service call: (call node ("op" "identity") [args] result) ``` -#### deprecated add_provider +#### deprecated add\_provider -Used in service aliasing. _\*\*_Stores the specified service provider \(provider\) in the internal storage of the node indicated in the service call and associates it with the given key \(key\). After executing add\_provider, the provider can be accessed via the get\_providers service using this key. +Used in service aliasing. \_\*\*\_Stores the specified service provider \(provider\) in the internal storage of the node indicated in the service call and associates it with the given key \(key\). After executing add\_provider, the provider can be accessed via the get\_providers service using this key. * Arguments: @@ -385,7 +385,7 @@ Example of service call: (call node ("deprecated" "add_provider") [key provider]) ``` -#### deprecated get_providers +#### deprecated get\_providers Used in service aliasing to retrieve providers for a given key.