Go to file
2022-04-07 17:30:12 +04:00
.github Reorg (#10) 2021-07-16 02:04:18 -05:00
aqua-examples update config file` 2022-02-05 01:07:40 -06:00
archived update sqlite version 2021-09-04 14:34:28 -05:00
community fix spacing 2022-02-03 16:17:15 -06:00
fluence-js-examples Update fluence-js version to 0.17.0 (AVM is running in the background) (#39) 2021-12-30 13:29:05 +03:00
fuzz-client Do not join if neighborhood is empty 2022-04-07 17:30:12 +04:00
marine-examples remove devcontainer references 2022-01-18 09:03:15 -06:00
quickstart update noop service 2022-01-21 01:46:19 -06:00
.gitignore Web ui for price oracle (#12) 2021-07-19 17:36:54 -05:00
Readme.md add EIP712 validation example 2022-02-06 16:24:22 -06: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 xexamples 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 interfacs 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.