Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    sorabot
    @sorabot
    [telegram] <exru> nc -zv 127.0.0.1 50051 //success (re @Alexander: 1. check port redirection if client and iroha on different VM or in container
    1. try to establish connection with telnet(or nc).
    2. You can try to run iroha-cli or make telnet connection from the same VM where iroha is running to be sure that connection can be established
    3. check firewall options if it is used
    4. check packets are transferring from library to iroha with wireshark or smth similar)

    [telegram] <exru> exru@524889-cu15907:~$ telnet 127.0.0.1 50051
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.

    ▒@@ ?

    connected too (re @Alexander: 1. check port redirection if client and iroha on different VM or in container

    1. try to establish connection with telnet(or nc).
    2. You can try to run iroha-cli or make telnet connection from the same VM where iroha is running to be sure that connection can be established
    3. check firewall options if it is used
    4. check packets are transferring from library to iroha with wireshark or smth similar)
    sorabot
    @sorabot
    [telegram] <exru> And using CLI for iroha without any problems (re @Alexander: 1. check port redirection if client and iroha on different VM or in container
    1. try to establish connection with telnet(or nc).
    2. You can try to run iroha-cli or make telnet connection from the same VM where iroha is running to be sure that connection can be established
    3. check firewall options if it is used
    4. check packets are transferring from library to iroha with wireshark or smth similar)
    [telegram] <Alexander> ok, it seems problem in js lib
    [telegram] <exru> Can you provide more examples of node usage in documentation?
    sorabot
    @sorabot

    [telegram] <exru> According https://iroha.readthedocs.io/en/main/develop/libraries/javascript.html
    I start my script from console node script.mjs=========

    Maybe error is in here? How I would to start the script?

    But still:
    import isPortReachable from 'is-port-reachable';
    console.log(await isPortReachable(50051, {host: 'localhost'})); // ok

    [telegram] <exru> But still:
    import isPortReachable from 'is-port-reachable';
    console.log(await isPortReachable(50051, {host: 'localhost'})); // ok (re @exru: According https://iroha.readthedocs.io/en/main/develop/libraries/javascript.html

    I start my script from console node script.mjs

    Maby error is in here? How I would to start the script?)

    sorabot
    @sorabot

    [telegram] <Sara> Forwarded from Hyperledger Iroha news: 👀 Very late reminder: community meeting in 10 minutes!

    Just enough time to grab a cuppa and join us for Iroha updates: https://zoom.us/my/hyperledger.community.3
    Password: 475869

    sorabot
    @sorabot

    [telegram] <Sara> Forwarded from Hyperledger Iroha news: By the way, if you haven't read it yet, Iroha Team wrote a blogpost about Iroha 2 for Hyperledger: https://www.hyperledger.org/blog/2022/05/19/new-long-term-support-version-of-hyperledger-iroha-creates-on-ramp-for-v2-adoption

    Take a look to learn more about why and how we are creating Iroha 2!

    sorabot
    @sorabot
    [telegram] <♌︎ Leo> Which iroha js library are you using? In node.js you can connect to iroha via grpc, for browser js you must use a grpc proxy. (re @Alexander: ok, it seems problem in js lib)
    [telegram] <♌︎ Leo> Depending on whether you import from endpoint_grpc_pb or endpoint_pb_service.
    sorabot
    @sorabot
    [telegram] <Stepan> found a method how to make ERP run JS script.
    function main() {
    var client = new hello_proto.Greeter('localhost:50051',
    grpc.credentials.createInsecure());
    client.sayHello({name: 'you'}, function(err, response) {
    console.log('Greeting:', response.message);
    });
    } (re @Stepan: yes, this way was considered, but I would like to force ERP to run an external script for connect.)
    sorabot
    @sorabot
    [telegram] <Stepan> #gRPC
    Hello. next step for newbie✋ I deal with the installation of gRPC on a client machine with ERP under win10 and check if there is already an installation in ubuntu on the server side. for this, it was necessary to install node.js on Win10 in order for PowerShell to execute the npm install grpc command, and apparently, you also need to run spare parts from the npm i iroha-helpers framework.
    sorabot
    @sorabot

    [telegram] <SreeHari> Anyone interested in a paid freelance role as an SME for Hyperledger?
    It will be a short term assessment project.

    DM me for further follow ups

    sorabot
    @sorabot
    [telegram] <Chirag> Hello! I am Chirag Arora. I'm working as a Technical Recruiter at TechCurators (https://www.techcurators.in). We are an assessment-based company. We are looking for Hyperledger Subject Matter Experts.
    It is a one time paid-freelancer based project. If you are interested, kindly revert back with your contact details.
    Thank you.
    sorabot
    @sorabot
    [telegram] <Stepan> #gRPC #nodeJS
    Hi. JS script when executed gives an error on import grpc from ('grpc'); "SyntaxError: Cannot use import statement outside a module". how to fix?
    sorabot
    @sorabot
    [telegram] <♌︎ Leo> This is a JS issue not an iroha issue. import is ES6, normally you'll need to use a transpiler like babel/typescript to use ES6 features in node.js. the iroha example uses ts.
    [telegram] <Stepan> update ts.config?
    "target": "esnext",
    "module": "commonjs",
    ...where should it be located in win10? (re @♌︎ Leo: This is a JS issue not an iroha issue. import is ES6, normally you'll need to use a transpiler like babel/typescript to use ES6 features in node.js. the iroha example uses ts.)
    sorabot
    @sorabot
    [telegram] <♌︎ Leo> I suggest you clone the iroha javascript repo and look through the package.json. normally, normally settings like module type go into package.json which is in the top level directory of your project.
    sorabot
    @sorabot
    [telegram] <Stepan> editing package.json didn't work (there are many of them in the directories, maybe not the one), maybe npm install --save-dev @babel/core @babel/cli @babel/node @babel/preset-env ...I think I’ll figure it out myself, but if I write an article about integration with ERP, where everything is needed as fast as possible, I think I’ll throw tomatoes😂 (re @♌︎ Leo: I suggest you clone the iroha javascript repo and look through the package.json. normally, normally settings like module type go into package.json which is in the top level directory of your project.)
    sorabot
    @sorabot
    [telegram] <♌︎ Leo> If you want to use ES6 u need to setup babel for your project. Node js natively isn't ES6. The iroha javascript repo package.json listed the dependencies required to develop with ES6/TS. Good luck with your integration. maybe iroha is not suitable for you. Since you are on windows, maybe Azure Blockchain Service would be a better fit for you.
    sorabot
    @sorabot
    [telegram] <Stepan> ERP is multi-platform, but 90% of the use under windows is the client part. Thank you. (re @♌︎ Leo: If you want to use ES6 u need to setup babel for your project. Node js natively isn't ES6. The iroha javascript repo package.json listed the dependencies required to develop with ES6/TS. Good luck with your integration. maybe iroha is not suitable for you. Since you are on windows, maybe Azure Blockchain Service would be a better fit for you.)
    sorabot
    @sorabot
    [telegram] <Yoshihiro Fuji> Investing in a bitcoin mining company is the best way to get rid of financial problems. Guarantees 10% of your investment after 24 hours. Send me a direct message for more information, this is one of the best ways you can earn a second source of income by working from home and earn money daily with your smartphone or PC at this reputable company. send Dm or chat me private for more information
    sorabot
    @sorabot

    [telegram] <Stepan> The bug was fixed by updating the nearest parent package.json file with the following entry:
    {
    "type": "module",
    ...} (re @Stepan: #gRPC #nodeJS
    Hi. JS script when executed gives an error on import grpc from ('grpc'); "SyntaxError: Cannot use import statement outside a module". how to fix? ...example for the client side is not the most successful and simple, where is the kaizen concept)
    it's simple: https://t.me/hyperledgeriroha/23128
    and it's not easy anymore:
    import grpc from 'grpc'
    import {
    QueryService_v1Client,
    CommandService_v1Client
    } from '../iroha-helpers/lib/proto/endpoint_grpc_pb'
    import { commands, queries } from 'iroha-helpers'

    const IROHA_ADDRESS = 'localhost:50051' ...)

    sorabot
    @sorabot
    [telegram] <Will> hi
    sorabot
    @sorabot
    [telegram] <Stepan> #gRPC #proto
    Hi. I did not find .proto files in the iroha-helpers package, but they are in the iroha c++ assembly itself, but again there are a lot of them. In which .proto are the services for port 50051 located?
    sorabot
    @sorabot
    [telegram] <Alexander> shared_model/endpoint.proto (re @Stepan: #gRPC #proto
    Hi. I did not find .proto files in the iroha-helpers package, but they are in the iroha c++ assembly itself, but again there are a lot of them. In which .proto are the services for port 50051 located?)
    sorabot
    @sorabot

    [telegram] <Stepan> do you think such an example of a client script in JS will take off? )
    ...
    var PROTO_PATH = __dirname + '/../../shared_model/endpoint.proto';
    var grpc = require('@grpc/grpc-js');
    var protoLoader = require('@grpc/proto-loader');
    var packageDefinition = protoLoader.loadSync(
    PROTO_PATH,
    {keepCase: true,
    longs: String,
    enums: String,
    defaults: true,
    oneofs: true
    });

    var CommandService_v1= grpc.loadPackageDefinition(packageDefinition).grpc.CommandService_v1;

    var commandService = new CommandService_v1(
    IROHA_ADDRESS,
    grpc.credentials.createInsecure()
    ) (re @Alexander: shared_model/endpoint.proto)

    sorabot
    @sorabot
    [telegram] <Sara> Sorry but you don't work with Iroha so I believe it might bot be the right place to post it here (re @Will: Hi. I am a professional developer who can handle tasks relative to blockchain.
    1. Solana smart contract development (Unit test, solana-program-library, Solana-web3, Raydium swap and orca) by using Rust and Anchor framework
      2.Cardano smart contract by using Haskell and CosmWasm smart contract by using Rust CosmWasm.
    2. Smart contract development in networks (Ethereum, BSC, Matic/Polygon) by using Solidity.
    3. Front-end development interactive with smart contract by using Web3, truffle, React(Redux / Thunk / Saga), Angular and Vue.
    4. ICO, IDO, Defi Swap, Reward system for staking, AOM(Olympus DAO Fork), Hyperledger Fabric
    5. NFT minting and NFT marketplace development(Create listing by admin, flat & Crypto payment, Bundle Sale/ Bulk Transfers, Drops, Rating, Bidding & Auction)
      -Minter in Candy machine and 10% royalty moved to burn and other wallets
      -Burn mechanism with kind of sharing rewards back to the holders
      -Minting by user randomly NFTs, Upload the NFT arts and Traits(metadata) to IPFS
      7.Bot development for sale monitoring bot OS and Niftygateway
    6. Cryto game development with crypto payment gateway
      Let's discuss your project together.
      Thanks.)
    sorabot
    @sorabot

    [telegram] <♌︎ Leo> Makes sense if u only need a few of the iroha APIs and don’t wish to add the iroha-helpers as a dependency. But, if u need a lot more APIs, then you run the of risk reinventing the whole iroha-helpers. (re @Stepan: do you think such an example of a client script in JS will take off? )
    ...
    var PROTO_PATH = __dirname + '/../../shared_model/endpoint.proto';
    var grpc = require('@grpc/grpc-js');
    var protoLoader = require('@grpc/proto-loader');
    var packageDefinition = protoLoader.loadSync(
    PROTO_PATH,
    {keepCase: true,
    longs: String,
    enums: String,
    defaults: true,
    oneofs: true
    });

    var CommandService_v1= grpc.loadPackageDefinition(packageDefinition).grpc.CommandService_v1;

    var commandService = new CommandService_v1(
    IROHA_ADDRESS,
    grpc.credentials.createInsecure()
    ))

    sorabot
    @sorabot
    [telegram] <Stepan> while experiments with JS are still stepping on the ES6 "rake" under windows and there is already an idea to go for C # gRPC .net, so we are trying to bring everything to the server as much as possible, including the iroha-helpers functions. (re @♌︎ Leo: Makes sense if u only need a few of the iroha APIs and don’t wish to add the iroha-helpers as a dependency. But, if u need a lot more APIs, then you run the of risk reinventing the whole iroha-helpers.)
    sorabot
    @sorabot

    [telegram] <Grouvie> Is Hyperledger Burrow still supported by Iroha or is it suggested to use other solutions to implement smart contract functionality?

    The Hyperledger Burrow Github states:
    "Hyperledger Burrow has been moved to End of Life status by the original project maintainers."

    [telegram] <Sara> Hi So, we discussed this with the team and decided to not remove the code that allows to work with Burrow as for now I do not think there is an alternative (unless @baziorek has something that could help in one of his mentorship projects?). So, you can use the last version of the Burrow but we cannot guarantee it will work well because the project is being closed. (re @Grouvie: Is Hyperledger Burrow still supported by Iroha or is it suggested to use other solutions to implement smart contract functionality?

    The Hyperledger Burrow Github states:
    "Hyperledger Burrow has been moved to End of Life status by the original project maintainers.")

    sorabot
    @sorabot
    [telegram] <Grouvie> Okay. Thanks for the information. I am looking for the best way to implement a voting system into my iroha usecase.
    sorabot
    @sorabot
    [telegram] <Sara> Are you thinking about using Iroha 1 or Iroha 2? (re @Grouvie: Okay. Thanks for the information. I am looking for the best way to implement a voting system into my iroha usecase.)
    [telegram] <Sara> I think Iroha 2 should be able to work rather flexibly with trickier use-cases
    [telegram] <Grouvie> So far I have been using Iroha 1, but I'd like to switch to Iroha 2 if it is already recommended.
    [telegram] <Sara> It is not production-ready but maybe it would make more sense for you for your specific use-case (re @Grouvie: So far I have been using Iroha 1, but I'd like to switch to Iroha 2 if it is already recommended.)
    [telegram] <Sara> https://hyperledger.github.io/iroha-2-docs/ take a look at this, especially the advanced topics (re @Grouvie: So far I have been using Iroha 1, but I'd like to switch to Iroha 2 if it is already recommended.)
    sorabot
    @sorabot

    [telegram] <baziorek> No I don't have:).

    THere is iroha+burrow in iroha's official docker image. It can be used and it is working:). (re @Sara: Hi So, we discussed this with the team and decided to not remove the code that allows to work with Burrow as for now I do not think there is an alternative (unless @baziorek has something that could help in one of his mentorship projects?). So, you can use the last version of the Burrow but we cannot guarantee it will work well because the project is being closed.)

    sorabot
    @sorabot
    [telegram] <Yasir> Hi, I am planning to upgrade iroha nodes that I have for our company. I've seen a bug in it for some reason asset balances are slightly different on different nodes. +-1 difference. Wanted to ask which is the latest stable release?
    sorabot
    @sorabot
    [telegram] <baziorek> Hi,
    Latest stable release is Iroha 1.5:
    https://github.com/hyperledger/iroha/releases
    EDIT: About the bug - please describe some details, maybe somebody would be able to fix its (if the bug still exists in newest versions) (re @Yasir: Hi, I am planning to upgrade iroha nodes that I have for our company. I've seen a bug in it for some reason asset balances are slightly different on different nodes. +-1 difference. Wanted to ask which is the latest stable release?)
    sorabot
    @sorabot
    [telegram] <Jeremy> any documentation how to get started in contributing in iroha 2.0?
    [telegram] <Sara> Hi! You can start with sending a message to https://discord.gg/kCg5gpb3 - there's a special chat on Discord for Iroha 2 contributors :) Iroha 2 team will lead you from there :) (re @Jeremy: any documentation how to get started in contributing in iroha 2.0?)
    sorabot
    @sorabot
    [telegram] <Sara> #iroha-2-contributors
    sorabot
    @sorabot
    [telegram] <Jeremy> Ok. Thanks.
    sorabot
    @sorabot

    [telegram] <Yasir> Thank you for the response. Before I talk more about the bug, could you clear one thing for me please?

    Can I upgrade to 1.5.0 from 1.2.1 without overwritting the ledger? As I tried it on one node and it says that schema is not compatibile... @baziorek @liralemur

    [telegram] <Sara> I think we'd need to ask Alexander on Monday to be sure. Please remind me about that if I forget, ok (re @Yasir: Thank you for the response. Before I talk more about the bug, could you clear one thing for me please?

    Can I upgrade to 1.5.0 from 1.2.1 without overwritting the ledger? As I tried it on one node and it says that schema is not compatibile... @baziorek @liralemur)

    [telegram] <Yasir> Sure. Will do, thanks! (re @Sara: I think we'd need to ask Alexander on Monday to be sure. Please remind me about that if I forget, ok)
    sorabot
    @sorabot
    [telegram] <Yasir> Gensis block in example of both 1.2.1 and 1.5.0 are exactly the same. Is postgres schema changed?