Comments (6)
I think it belongs in the client_api
module, perhaps for now in a client_api.simple
module.
So something like:
let api = client_api.simple.API::new(ws_port);
let contract_state : Vec<u8> = api.get(contract_address).await;
Would appreciate @iduartgomez's input also.
from freenet-core.
I started to implement it.
I love the concept of exposing minimal api. The issue is it sounds a windows driver wrapper philosophy. We should expose only the required and let everything else in private.
We may let folders as
- internal
- everything
- external
- API
- update
- get
- API
from freenet-core.
I suggest for a final version to do:
- freenet
- everything
- lib.rs
- API
- update
- get
At this moment we may merge my current pr. Ready for a review.
from freenet-core.
already usable with:
use freenet::client_api::simple::API;
#[tokio::main]
async fn main() -> Result<(), anyhow::Error> {
let mut api = API::new(50509);
let out = api.update(String::from("lftMopswnMBotiZflwjYvuGCWbsileTEruGllHmLnOAWp"), vec![1, 2, 3]).await;
}
the value of out
should be Ok().
from freenet-core.
Related Issues (20)
- decentralize freenet even more using a consensus? HOT 1
- RUSTSEC-2024-0320: yaml-rust is unmaintained.
- build freenet-stdlib with no wasm HOT 1
- Improve tutorial.md to reference freenet-email app directly
- In-browser Freenet IDE using Rune
- RUSTSEC-2021-0127: serde_cbor is unmaintained HOT 2
- Unable to run example apps HOT 5
- improve freenet library documentation HOT 1
- Error while building email app HOT 7
- freenet local ; command is absouletly broken HOT 25
- document how to build freenet from source in details
- assign me to a cryptographic issue please
- use wildcard in makefile for more portability
- Congestion control & freenet
- split Proof Of Trust and web hosting integrating freenet in polkadot with substrate
- Possibility of implementing out and in proxy HOT 5
- make freenet even more modular using a socket outproxy instead of websocket? HOT 1
- Unable to build/install fdev HOT 2
- Rendezvous System for Device Pairing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freenet-core.