create separate dir for aqua

This commit is contained in:
Alexey Proshutinskiy
2021-05-25 12:57:08 +03:00
parent c6dd03e308
commit d8d9c902b4
2 changed files with 38 additions and 49 deletions

View File

@@ -1,32 +1,3 @@
data RegisterKeyResult:
success: bool
error: string
data PutValueResult:
success: bool
error: string
data RepublishValuesResult:
success: bool
error: string
updated: u64
data ClearExpiredResult:
success: bool
error: string
count_keys: u64
count_values: u64
data Key:
key: string
peer_id: string
timestamp_created: u64
data GetKeyMetadataResult:
success: bool
error: string
key: Key
data Record: data Record:
value: string value: string
peer_id: string peer_id: string
@@ -39,10 +10,34 @@ data GetValuesResult:
error: string error: string
result: []Record result: []Record
data PutValueResult:
success: bool
error: string
data Key:
key: string
peer_id: string
timestamp_created: u64
data GetKeyMetadataResult:
success: bool
error: string
key: Key
data RepublishKeyResult: data RepublishKeyResult:
success: bool success: bool
error: string error: string
data RegisterKeyResult:
success: bool
error: string
data ClearExpiredResult:
success: bool
error: string
count_keys: u64
count_values: u64
data EvictStaleItem: data EvictStaleItem:
key: Key key: Key
records: []Record records: []Record
@@ -52,23 +47,17 @@ data EvictStaleResult:
error: string error: string
results: []EvictStaleItem results: []EvictStaleItem
service Aqua Dht: data RepublishValuesResult:
republish_key: Key,u64 -> RepublishKeyResult success: bool
error: string
updated: u64
put_value: string,string,u64,[]string,[]string -> PutValueResult service AquaDht:
get_values(key: string, current_timestamp: u64) -> GetValuesResult
get_values: string,u64 -> GetValuesResult put_value(key: string, value: string, current_timestamp: u64, relay_id: []string, service_id: []string) -> PutValueResult
republish_values(key: string, records: []Record, current_timestamp: u64) -> RepublishValuesResult
get_key_metadata: string,u64 -> GetKeyMetadataResult register_key(key: string, current_timestamp: u64) -> RegisterKeyResult
republish_key(key: Key, current_timestamp: u64) -> RepublishKeyResult
register_key: string,u64 -> RegisterKeyResult clear_expired(current_timestamp: u64) -> ClearExpiredResult
get_key_metadata(key: string, current_timestamp: u64) -> GetKeyMetadataResult
evict_stale: u64 -> EvictStaleResult evict_stale(current_timestamp: u64) -> EvictStaleResult
clear_expired: u64 -> ClearExpiredResult
republish_values: string,[]Record,u64 -> RepublishValuesResult
New version is available! 0.6.3 -> 0.6.4
To update run: cargo +nightly install marine --force

View File

@@ -9,4 +9,4 @@ rm -f artifacts/*
mkdir -p artifacts mkdir -p artifacts
cp target/wasm32-wasi/release/aqua-dht.wasm artifacts/ cp target/wasm32-wasi/release/aqua-dht.wasm artifacts/
curl -L https://github.com/fluencelabs/sqlite/releases/download/v0.14.0_w/sqlite3.wasm -o artifacts/sqlite3.wasm curl -L https://github.com/fluencelabs/sqlite/releases/download/v0.14.0_w/sqlite3.wasm -o artifacts/sqlite3.wasm
marine aqua artifacts/aqua-dht.wasm > artifacts/aqua-dht.aqua marine aqua artifacts/aqua-dht.wasm > aqua/aqua-dht.aqua