blockchainsllc / in3-legacy Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] Typescript-version of the IN3 client.
Home Page: https://github.com/blockchainsllc/in3
License: Other
[Deprecated] Typescript-version of the IN3 client.
Home Page: https://github.com/blockchainsllc/in3
License: Other
Tried to run Incubed server using docker-compose.yml
from this repo. Unfortunately it fails on startup saying Could not decode the private
(see full log below). Tried different key JSON files (generated by geth, parity, myCrypto) with the same result:
incubed-server_1 | no config found (Error: ENOENT: no such file or directory, open 'config.json')! using defaults
incubed-server_1 | Error starting the server : Could not decode the private : ethUtil.sha3(...).replace is not a function { port: 8500,
incubed-server_1 | chains:
incubed-server_1 | { '0x5':
incubed-server_1 | { rpcUrl: 'http://localhost:8545',
incubed-server_1 | privateKey: '/secure/myKey.json',
incubed-server_1 | minBlockHeight: 6,
incubed-server_1 | registry: '0x85613723dB1Bc29f332A37EeF10b61F8a4225c7e',
incubed-server_1 | registryRPC: '',
incubed-server_1 | privateKeyPassphrase: '123456789' } },
incubed-server_1 | logging: { colors: true } }
incubed-server_1 | error: Error starting the server Error: Could not decode the private : ethUtil.sha3(...).replace is not a function port=8500, rpcUrl=http://localhost:8545, privateKey=/secure/myKey.json, minBlockHeight=6, registry=0x85613723dB1Bc29f332A37EeF10b61F8a4225c7e, registryRPC=, privateKeyPassphrase=123456789, colors=true
in3-server_incubed-server_1 exited with code 1
use replaceLatestBlock
in the client-config
Dear Slockit-Team,
I have tried to read the API Doc, but the link is giving me a 404.
Kind Regards
@christianbrb
In this section of the readme https://github.com/slockit/in3#g%C3%B6rli, if I click the link to go to the Incubed dashboard for Goerli https://in3.slock.it/?n=goerli, I expected the title at the top to be Görli, however it displays the Tobalaba title and information about that chain instead
Since the client will most likely use the same contracts the code is immutable, it makes sense to cache the contract code instead of getting them from the server in each eth_call
request.
But then the client must check the proof for codehashes and ask for the code if needed.
I am trying to create a web app using the instructions from here:
https://in3.readthedocs.io/en/latest/api-ts.html
and following the examples from here:
https://github.com/slockit/in3/blob/master/examples/src/in3DirectAPI.ts
and I can't get anything to log out.
my versions of in3 and web3 are:
"web3": "^1.2.9"
"in3": "^2.1.3",
And I'm using a normal NodeJS server with Express.
This is all I get:
UnhandledPromiseRejectionWarning: Error: tried eth_getBlockByNumber("0x0",false) to https://in3-v2.slock.it/mainnet/nd-2 but failed and can not recover (No nodes found that fullfill the filter criteria ) from wrong response : Error: No nodes found that fullfill the filter criteria
And this is after a day of trying to request different hashes by blocks, numbers, etc.. The previous error is by copying the code from : https://github.com/slockit/in3/blob/master/examples/src/in3DirectAPI.ts
Anything should login when I try to get information with the hash given in the test.
I get errors.
MacOS 10.15.1
"in3": "^2.1.3",
I tried to run the script run.sh
within examples folder.
Got the following error:
While running this gist: https://gist.github.com/simon-jentzsch/48fd7a5e9fd59e6d3a0c00815d37d24d
Got following:
I am not sure what I am doing wrong and could not find a reference for expected output/logs.
This should create a id inside the Client and triggers a request
whenever eth_getFilterChanges
is called.
Here we should support
eth_newFilter
-> call eth_getLogs
with the last checked blockNumber
eth_newBlockFilter
-> call eth_getBlockNumber
and the fetch all blocks after the last checked blockNumber
eth_newPendingTransactionFilter ( not supported )
tests implemented
was very excited to read: "Java-Implementation of a native-wrapper" but then clicked on in and got a 404 :-(
currently this tightly couples to typescript. I want to use it e.g. for native android - using ts would be a mistake there. So it would be great if the data defined in client.ts could live e.g. in a json - ideally in a separate repository.
in order to proof, we can do the following:
we should include all blockheaders (and let them sign) + the transactionreceipt and its merkle-proof of the tx containing logs for the given filter.
Buf of course we are not able to proof a not existence of a log, except if we would deliver all blockheaders in the search range. But this could be a lot! But maybe it would be enough to sign only the last one, since the others can be verified through the parentHash.
trying to follow the documentation here: https://in3.readthedocs.io/en/latest/getting_started.html#registering-a-own-in3-node
I am getting:
✓ ~/g/t/test docker-compose -f dockcker-compose.yml up -d
Creating network "test_default" with the default driver
Pulling incubed-server (slockit/in3-server:latest)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.
Continue with the new image? [yN]y
Pulling incubed-server (slockit/in3-server:latest)...
ERROR: pull access denied for slockit/in3-server, repository does not exist or may require 'docker login'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.