fluencelabs / examples

Quickstart with Fluence, Aqua, and Marine
https://fluence.dev
84 stars 23 forks source link

chore(deps): update fluence js #427

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@fluencelabs/cli 0.2.41 -> 0.3.37 age adoption passing confidence
@fluencelabs/js-client.api 0.11.2 -> 0.11.3 age adoption passing confidence

Release Notes

fluencelabs/fluence-cli ### [`v0.3.37`](https://togithub.com/fluencelabs/fluence-cli/compare/4860f9286e8e23e9d97fa6c14d223e9aab46fe8b...47d8d17bc2c221e81d3f83b86e94a1cb986ba4b5) [Compare Source](https://togithub.com/fluencelabs/fluence-cli/compare/90b975ad7638fbc2f1233b6636b0ba88e8da9d2b...47d8d17bc2c221e81d3f83b86e94a1cb986ba4b5) ### [`v0.2.46`](https://togithub.com/fluencelabs/fluence-cli/blob/HEAD/CHANGELOG.md#​0246-httpsgithubcomfluencelabsfluence-clicomparefluence-cli-v0245fluence-cli-v0246-2023-02-21) [Compare Source](https://togithub.com/fluencelabs/fluence-cli/compare/bd836cb9a6710207b87a832f896a27fec2f5c3f9...90b975ad7638fbc2f1233b6636b0ba88e8da9d2b) ##### Bug Fixes - **blockchain:** fix chainId ([#​167](https://togithub.com/fluencelabs/fluence-cli/issues/167)) ([21bc546](https://togithub.com/fluencelabs/fluence-cli/commit/21bc5465a97695f0636b69e072522cabfdff78ee)) - fix chainId ([21bc546](https://togithub.com/fluencelabs/fluence-cli/commit/21bc5465a97695f0636b69e072522cabfdff78ee)) ### [`v0.2.45`](https://togithub.com/fluencelabs/fluence-cli/blob/HEAD/CHANGELOG.md#​0245-httpsgithubcomfluencelabsfluence-clicomparefluence-cli-v0244fluence-cli-v0245-2023-02-21) [Compare Source](https://togithub.com/fluencelabs/fluence-cli/compare/4860f9286e8e23e9d97fa6c14d223e9aab46fe8b...bd836cb9a6710207b87a832f896a27fec2f5c3f9) ##### Features - Add a root Cargo.toml with workspaces, do some refactoring \[fixes DXJ-295] ([#​165](https://togithub.com/fluencelabs/fluence-cli/issues/165)) ([538c484](https://togithub.com/fluencelabs/fluence-cli/commit/538c4842751757f7598dd563e7977482b132ce22)) ##### Bug Fixes - **deps:** update dependency [@​oclif/plugin-autocomplete](https://togithub.com/oclif/plugin-autocomplete) to v2 ([#​155](https://togithub.com/fluencelabs/fluence-cli/issues/155)) ([95f526a](https://togithub.com/fluencelabs/fluence-cli/commit/95f526a056dfd01798c1611e38cf68ef7fd01565)) ### [`v0.2.44`](https://togithub.com/fluencelabs/fluence-cli/blob/HEAD/CHANGELOG.md#​0244-httpsgithubcomfluencelabsfluence-clicomparefluence-cli-v0243fluence-cli-v0244-2023-02-20) [Compare Source](https://togithub.com/fluencelabs/fluence-cli/compare/50ad3435bb3f00663d0c42138d12da9d72086750...4860f9286e8e23e9d97fa6c14d223e9aab46fe8b) ##### Bug Fixes - **blockchain:** change testnet ([#​163](https://togithub.com/fluencelabs/fluence-cli/issues/163)) ([ba077d3](https://togithub.com/fluencelabs/fluence-cli/commit/ba077d32d416f68f3e38225ff546dd09c276fdd2)) ### [`v0.2.43`](https://togithub.com/fluencelabs/fluence-cli/blob/HEAD/CHANGELOG.md#​0243-httpsgithubcomfluencelabsfluence-clicomparefluence-cli-v0242fluence-cli-v0243-2023-02-20) [Compare Source](https://togithub.com/fluencelabs/fluence-cli/compare/9c749e06b1d4bcac0c8e3ed84887a27b0ea6f6fe...50ad3435bb3f00663d0c42138d12da9d72086750) ##### Features - add `fluence default peers` command \[fixes DXJ-303] ([#​160](https://togithub.com/fluencelabs/fluence-cli/issues/160)) ([16eba7f](https://togithub.com/fluencelabs/fluence-cli/commit/16eba7fb08327b9c53770090811dff39ca38357b)) - add `fluence workers logs` command \[fixes DXJ-297] ([#​153](https://togithub.com/fluencelabs/fluence-cli/issues/153)) ([53585a2](https://togithub.com/fluencelabs/fluence-cli/commit/53585a2f999b13585f36bb83a5f77c05a6e52838)) ##### Bug Fixes - don't print result of aqua call twice, check that workers have services and that peerIds is not an empty array when deploying workers, prettify error messages \[fixes DXJ-301] ([#​161](https://togithub.com/fluencelabs/fluence-cli/issues/161)) ([afb6d75](https://togithub.com/fluencelabs/fluence-cli/commit/afb6d75f41eb04d99bf50b92a05093f3a0a8adea)) - migrate to mumbai testnet ([#​162](https://togithub.com/fluencelabs/fluence-cli/issues/162)) ([28f7ce2](https://togithub.com/fluencelabs/fluence-cli/commit/28f7ce29d2865f1e22151b7f270cbde1f0d4184f)) ### [`v0.2.42`](https://togithub.com/fluencelabs/fluence-cli/blob/HEAD/CHANGELOG.md#​0242-httpsgithubcomfluencelabsfluence-clicomparefluence-cli-v0241fluence-cli-v0242-2023-02-17) [Compare Source](https://togithub.com/fluencelabs/fluence-cli/compare/35e529063763a6b1490365d3ad1424828f04ca0a...9c749e06b1d4bcac0c8e3ed84887a27b0ea6f6fe) ##### Features - move deploy command to `fluence deal deploy`, add `fluence workers upload`, allow deployment of workers that you specified in a comma-separated argument \[fixes DXJ-294] ([#​150](https://togithub.com/fluencelabs/fluence-cli/issues/150)) ([ff268ce](https://togithub.com/fluencelabs/fluence-cli/commit/ff268ce42488c9591ff470cbef36121a2a265c62)) ##### Bug Fixes - **deps:** update dependency [@​fluencelabs/aqua-api](https://togithub.com/fluencelabs/aqua-api) to v0.10.1 ([#​151](https://togithub.com/fluencelabs/fluence-cli/issues/151)) ([e92f453](https://togithub.com/fluencelabs/fluence-cli/commit/e92f453f88221d6b597447520dd327cc6e2513a9))

Configuration

πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ‘» Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR has been generated by Mend Renovate. View repository job log here.

linear[bot] commented 1 year ago
DXJ-303 Add `fluence default peers` command

That's an equivalent of `aqua config default_peers`

DXJ-297 Add deployed workers logs to fluence cli

`fluence workers logs`

DXJ-301 Fluence CLI should not present run result output twice

e.g.: ``` fluence run ? Enter a function call that you want to execute hello_world("Europe/Amsterdam") "Hello, Amsterdam it's 01:12:34.418336" <- this is enough Running: function: hello_world("Europe/Amsterdam") relay: /dns4/kras-09.fluence.dev/tcp/19001/wss/p2p/12D3KooWD7CvsYcpF9HE9CCV9aY3SJ317tkXVykjtZnht2EbzDPm... done Result: <- no need "\"Hello, Amsterdam it's 01:12:34.418336\"\n" ```

DXJ-294 Move functionality to `fluence deal deploy` command, create `fluence workers upload` command

linear[bot] commented 1 year ago
DXJ-295 Fluence CLI should utilize cargo workspace so that vscode rust-analyzer works from the project root

By adding a workspace Cargo.toml to the project root, rust tools in vscode are afforded sight into rust subdirs, which is a huge improvement in the DX as part of adding/creating nee services, the cli should create a Cargo.toml file in the project root dir like so: ``` [workspace] members = ["path-to-moduels/*"] ``` where path-to-modules could be something like `services/modules/*` depending on the selections made by the user. A side result is that a signle target dir is create in the root dir with all wasm32-wasi modules in the same place which seems to work for cli and appears a lo faster than the "regular" fluence build. ``` mbp16~/localdev/local-storage(:|βœ”) % cat Cargo.toml [workspace] members = ["services/modules/*"] mbp16~/localdev/local-storage(:|βœ”) % fluence build Making sure all services are downloaded... done Blocking waiting for file lock on package cache <...> Compiling marine-rs-sdk v0.7.1 Compiling facade v0.1.0 (/Users/bebo/localdev/local-storage/services/modules/facade) Finished release [optimized] target(s) in 19.90s Compiling local_storage v0.1.0 (/Users/bebo/localdev/local-storage/services/modules/local_storage) Finished release [optimized] target(s) in 20.14s Making sure all modules are downloaded and built... done mbp16~/localdev/local-storage(:|βœ”) % ll total 120 <...> -rw-r--r-- 1 bebo staff 47K Feb 16 14:47 Cargo.lock drwxr-xr-x 6 bebo staff 192B Feb 16 14:47 target mbp16~/localdev/local-storage(:|βœ”) % fluence deploy Making sure all services are downloaded... done Blocking waiting for file lock on package cache <...> Blocking waiting for file lock on build directory Finished release [optimized] target(s) in 0.19s Finished release [optimized] target(s) in 0.20s Making sure all modules are downloaded and built... done Going to deploy services described in ~/localdev/local-storage/fluence.yaml: local_storage: get: services deploy: - deployId: default facade: get: services deploy: - deployId: default ? Do you want to deploy all of these services? Yes Going to upload module: local_storage Going to upload module: facade Module 'facade' was uploaded Module 'local_storage' was uploaded Now time to make the blueprint... { "blueprint_id": "6b02209e6ab28e320cf297b616196678623ea3e2f7728e5614145000e00e72b3", "service_id": "9406d441-984b-4a3f-80e9-954a2bb49950" } Deploying: service: local_storage deployId: default on: 12D3KooWD7CvsYcpF9HE9CCV9aY3SJ317tkXVykjtZnht2EbzDPm... done Going to upload module: local_storage Going to upload module: facade Module 'facade' was uploaded Module 'local_storage' was uploaded Now time to make the blueprint... { "blueprint_id": "6b02209e6ab28e320cf297b616196678623ea3e2f7728e5614145000e00e72b3", "service_id": "a47cf4c8-b7ff-4403-9448-7dc7d370a494" } Deploying: service: facade deployId: default on: 12D3KooWSD5PToNiLQwKDXsu8JSysCwUt8BVUJEqCHcDe7P5h45e... done Currently deployed services listed in ~/localdev/local-storage/.fluence/app.yaml: local_storage: default: - blueprintId: 6b02209e6ab28e320cf297b616196678623ea3e2f7728e5614145000e00e72b3 serviceId: 9406d441-984b-4a3f-80e9-954a2bb49950 peerId: 12D3KooWD7CvsYcpF9HE9CCV9aY3SJ317tkXVykjtZnht2EbzDPm keyPairName: auto-generated facade: default: - blueprintId: 6b02209e6ab28e320cf297b616196678623ea3e2f7728e5614145000e00e72b3 serviceId: a47cf4c8-b7ff-4403-9448-7dc7d370a494 peerId: 12D3KooWSD5PToNiLQwKDXsu8JSysCwUt8BVUJEqCHcDe7P5h45e keyPairName: auto-generated ```