Go to file
igor 69fcb9d53f
Migration of the NEAR example to using the Fluence CLI (#388)
* migrated the rust part to fluence cli; updated readme

* migrated the JS part to the fluence CLI; updated the readme

* small formatting fix: backtick

* small formatting fix: backticks missed

* removed unnecessary files

* replaced aqua cli with fluence in package.json, updated readme reflecting the change

* Addressed the pull-requests comments:

+ added more info on the fluence cli;
+ renamed functions so they are explanatory;
+ cut too verbose output;
+ updated the outdated output for deployment;
+ renamed near-related arguments so it's easy to distinguish them;
+ small other improvements.

* readme changes: reformated to a separate tooling section

* small formatting fixed in readme

* Addressing pr comments:

+ removed the tooling section from the readme;
+ added a segway for using fluence cli;
+ fixed typo;
+ removed a commented both from code and the readme.

* + renamed node to peer;
+ added a link on AccountView Near interface;

* small correction regarding fluence cli statement

* removed unnecessary reference for quickstart example

Co-authored-by: igor <dev@igor.sh>
2022-08-25 22:48:39 +02:00
.github Try ignoreUnstable: false (#385) 2022-08-03 19:08:39 +03:00
aqua-examples Migration of the NEAR example to using the Fluence CLI (#388) 2022-08-25 22:48:39 +02:00
archived update marine and marine-rs-sdk in all the crates (#373) 2022-08-01 10:08:26 +03:00
community Update README.md 2022-02-12 23:35:05 -06:00
fluence-js-examples Update dependency @fluencelabs/fluence to v0.23.5 (#391) 2022-08-25 11:59:57 -05:00
marine-examples Update Rust crate marine-rs-sdk-test to 0.7.0 (#380) 2022-08-03 10:01:08 -05:00
quickstart Update dependency @fluencelabs/fluence to v0.23.5 (#391) 2022-08-25 11:59:57 -05:00
.gitignore Web ui for price oracle (#12) 2021-07-19 17:36:54 -05:00
Readme.md Update Readme.md 2022-07-08 02:58:05 -05:00

Examples

This repo holds a collection of examples on how to build distributed applications with the Fluence stack.

The aqua-examples directory contains examples demonstrating the use of Aqua to compose decentralized applications from distributed services, whereas the marine-examples directory contains examples with respect to the development of Rust Wasm modules.

If you encounter a problem, please post an Issue or open a PR. If you want to contribute an example, please contact us by opening an Issue or a draft PR. See the contribution guidelines.

Resource Directory

  • The Ceramic Integration provides an example Wasm adapter for the Ceramic CLI API and HTTP API.

    • Rust Wasm, Aqua
  • The IPFS Integration shows how to use the aqua-ipfs library to deploy single-module Wasm services to a Fluence node from a IPFS sidecar

    • Fluence JS, Aqua
  • The Near Integration provides integration examples for the Near API JS and RPC API. We use Fluence JS to implement a minimal Near signing service and wrap a few select RPC examples into a Wasm module.

    • Fluence JS, Rust Wasm, Aqua
  • The Timestamp Oracle illustrates how to use builtin services to acquire timestamps from a node's Kademlia neighborhood and then process those timesstamps using Wasm services into point or range estimates.

    • Aqua, Rust Wasm
  • The Price Oracle provides a stylized example of how to create a price stream oracle using Rust Wasm services. Further provides a Fluent JS and Web client examples.

    • Rust Wasm, Fluence JS, Aqua
  • The EIP712 Validator Node provides a stylized example of validating signed EIP712 forms and storing the results in a local sqlite database. We use Fluence JS to implement both peer and client, where the peer expose sqlite crud interfaces allowing other peers to query validations and form a consensus.

    • Rust Wasm, Fluence JS, Aqua, SQLite

License

Unless otherwise indicated, the applicable license is Apache 2.0.