Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    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?
    sorabot
    @sorabot
    [telegram] <baziorek> I think there can be some changes in database (e.g. syncing nodes).
    There is tool to migrate DB scheema: https://github.com/hyperledger/iroha-state-migration-tool/tree/main/migration_data
    but it is not updated to version 1.5.
    So probably to migrate version You need to override database by migrating nodes one by one. But lets wait for Monday to ask Alexander:). (re @Yasir: Gensis block in example of both 1.2.1 and 1.5.0 are exactly the same. Is postgres schema changed?)
    sorabot
    @sorabot
    [telegram] <Yasir> Yes I was able to work it out. I didn't migrate just removed and reset postgres and it was good. But yes have to manually do this on all nodes. (re @baziorek: I think there can be some changes in database (e.g. syncing nodes).
    There is tool to migrate DB scheema: https://github.com/hyperledger/iroha-state-migration-tool/tree/main/migration_data
    but it is not updated to version 1.5.
    So probably to migrate version You need to override database by migrating nodes one by one. But lets wait for Monday to ask Alexander:).)
    sorabot
    @sorabot
    [telegram] <Stepan> Hi. Is there a web site already created where you can see the existing iroha networks. Interested in a resource for the exchange between counterparties of the international waybill (CMR) and other documents?
    sorabot
    @sorabot
    [telegram] <baziorek> Hi, I think here: https://www.katacoda.com/hyperledger-iroha (re @Stepan: Hi. Is there a web site already created where you can see the existing iroha networks. Interested in a resource for the exchange between counterparties of the international waybill (CMR) and other documents?)
    sorabot
    @sorabot
    [telegram] <Stepan> Not exactly what I expected to see, and I didn't even find the sandbox section. (re @baziorek: Hi, I think here: https://www.katacoda.com/hyperledger-iroha)
    sorabot
    @sorabot
    [telegram] <Stepan> ...something similar to the https://soramitsu.co.jp/iroha#rec103186413 page was revealed, but not links to partners, but their project cards. (re @baziorek: Hi, I think here: https://www.katacoda.com/hyperledger-iroha)
    sorabot
    @sorabot
    [telegram] <Sara> Hi! I do not believe there are projects with open architecture. There are some example apps in README on GitHub and short descriptions of possible use cases in the documentation. But usually everyone decides on their own on how to deal with their specific use case I guess, if I understood you correctly (re @Stepan: ...something similar to the https://soramitsu.co.jp/iroha#rec103186413 page was revealed, but not links to partners, but their project cards.)
    sorabot
    @sorabot
    [telegram] <Stepan> (re @Sara: Hi! I do not believe there are projects with open architecture. There are some example apps in README on GitHub and short descriptions of possible use cases in the documentation. But usually everyone decides on their own on how to deal with their specific use case I guess, if I understood you correctly)An example with a bill of lading (CMR), probably just should be open (because it doesn’t make sense to create several similar ones), we see an example of interaction like this. Organizations that do not have the opportunity to implement their own node connect via Web-api. And large corporations implement the connection, according to the open documentation of the project.:
    sorabot
    @sorabot
    [telegram] <Stepan> (re @Sara: Hi! I do not believe there are projects with open architecture. There are some example apps in README on GitHub and short descriptions of possible use cases in the documentation. But usually everyone decides on their own on how to deal with their specific use case I guess, if I understood you correctly)An example with a International Waybill (CMR), probably just should be open (because it doesn’t make sense to create several similar ones), we see an example of interaction like this. Organizations that do not have the opportunity to implement their own node connect via Web-api. And large corporations implement the connection, according to the open documentation of the project.:
    [telegram] <Stepan> (re @Sara: Hi! I do not believe there are projects with open architecture. There are some example apps in README on GitHub and short descriptions of possible use cases in the documentation. But usually everyone decides on their own on how to deal with their specific use case I guess, if I understood you correctly)An example with a International Waybill (CMR), probably just should be open (because it makes no sense to create more than one similar project), we see an example of interaction like this. Organizations that do not have the opportunity to implement their own node connect via Web-api. And large corporations implement the connection, according to the open documentation of the project.:
    sorabot
    @sorabot
    [telegram] <Stepan> (re @Sara: Hi! I do not believe there are projects with open architecture. There are some example apps in README on GitHub and short descriptions of possible use cases in the documentation. But usually everyone decides on their own on how to deal with their specific use case I guess, if I understood you correctly)An example with a International Waybill (CMR), probably just should be open (because it makes no sense to create more than one similar project), we see an example of interaction like this. Organizations that do not have the opportunity to implement their own node connect via Web-api. And large corporations implement the connection, according to the open documentation of the project. ICOdrops may be another good example.:
    sorabot
    @sorabot
    [telegram] <Regina> Stерn соuld fаll tо $0.69 . Whу? Rеаd in оur privatе chаnnеl
    👉 https://t.me/+Oo1mEYs6tjcwMzky
    sorabot
    @sorabot
    [discord] <Yashraj> Hello all, I am trying to build the official iroha image on my machine. When I run the following command:
    docker run --name iroha \
    -d \
    -p 50051:50051 \
    -v $(pwd)/iroha/example:/opt/iroha_data \
    -v blockstore:/tmp/block_store \
    --network=iroha-network \
    -e KEY='node0' \
    hyperledger/iroha:latest
    my iroha container exits with the following logs:
    key=node0
    /opt/iroha_data
    WARNING: IROHA_POSTGRES_HOST is not defined.
    Do not wait for Postgres to become ready. Iroha may fail to start up
    [2022-06-02 18:36:58.173776200][E][Init]: Failed reading the configuration: File 'config.docker' could not be read.
    How can I fix this?
    sorabot
    @sorabot
    [discord] <Yashraj> Well it got fixed when I executed it in Ubuntu.
    sorabot
    @sorabot
    [discord] <liralemur> Hi there! I'd assume it could not find the Docker configuration file maybe. What was the first platform on which you executed it?