!jpFStAYugNhbAOxUdp:matrix.org

Hyperledger Iroha

192 Members
blockchain framework for mobile apps https://github.com/hyperledger/iroha28 Servers

Load older messages


SenderMessageTime
9 Apr 2021
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Andrei Lebedev via telegram

@liralemur are there any plans to set up forwarding with matrix? Questions might be missed here
16:15:17
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Sara via telegram
@eadventurous do you think it's possible to implement that?
16:19:26
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Egor Ivkov via telegram
We have not researched it yet, but in theory it should be possible. I will add the issue for Matrix support.
16:21:14
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Egor Ivkov via telegram
But I don't think we mention anywhere that we support Matrix, do we?
16:21:34
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Egor Ivkov via telegram
We only have links to Gitter, Telegram and Rocketchat now in our github
16:22:22
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Sara via telegram
Matrix now has that native integration with Gitter and that seems to be the problem
16:26:11
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Egor Ivkov via telegram
Yes, but they are far from being compatible for now, from what I know
16:27:10
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Egor Ivkov via telegram
We should check if we can restrict Matrix from having this chat for now to my mind
16:27:55
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Sara via telegram
Maybe it makes sense - matrix has quite some spammers
16:28:35
@themineraria_twitter-607080376da037398479c3af:gitter.imThemineraria_twitter (Cyp) joined the room.16:33:19
@themineraria_twitter-607080376da037398479c3af:gitter.imThemineraria_twitter (Cyp)

Hello there,
I'm new to Iroha and I did try to send my question via matrix (which Gitter redirected me to) so.. I'm re-posting it with Gitter since I didn't noticed that matrix wasn't properly integrated 😅.

I'm trying to use Burrow with iroha to create smart contracts using the iroha-helpers package (nodejs).
Therefore, I built iroha-burrow following the docs (setting the USE_BURROW flag to on) and I'm now trying to use the callEngine command to create a solidity smart contract.
My issue is that i'm recieving a STATELESS_VALIDATION_FAILED error for my query without futher details and I'm not finding what's wrong. 🤔
Every other commands & queries that I make using the same patern seems to work just fine and this one is based on the doc examples as well.
My code is the following, with bytecode being a string containing the bytecode of the Coin contract given as an example in the doc ("608060405...030033") :

callEngine(caller = "admin@test", input = this.bytecode) {
    return commands.callEngine(this.commandOptions, {
        caller: caller,
        input: input
    });
}

Thx & sorry for the newbie question

16:33:19
@themineraria_twitter-607080376da037398479c3af:gitter.imThemineraria_twitter (Cyp) *

Hello there,
I'm new to Iroha and I did try to send my question via matrix (which Gitter redirected me to) so.. I'm re-posting it with Gitter since I didn't noticed that matrix wasn't properly integrated 😅.

I'm trying to use Burrow with iroha to create smart contracts using the iroha-helpers package (nodejs).
Therefore, I built iroha-burrow following the docs (setting the USE_BURROW flag to on) and I'm now trying to use the callEngine command to create a solidity smart contract.
My issue is that i'm recieving a STATELESS_VALIDATION_FAILED error for my query without futher details and I'm not finding what's wrong. 🤔
Every other commands & queries that I make using the same patern seems to work just fine and this one is based on the doc examples as well.
My code is the following, with bytecode being a string containing the bytecode of the Coin contract given as an example in the doc ("608060405...030033") :

callEngine(caller = "admin@test", input = this.bytecode) {
    return commands.callEngine(this.commandOptions, {
        caller: caller,
        input: input
    });
}

Thx & sorry for the newbie question

16:38:39
10 Apr 2021
@jassi10000-600b3bd4d73408ce4ff98020:gitter.imJassi10000 (JASKEERAT SINGH) joined the room.05:23:04
@jassi10000-600b3bd4d73408ce4ff98020:gitter.imJassi10000 (JASKEERAT SINGH) Hi , am Jaskeerat
Am new to Iroha , can anyone help me get started with some basic details and some good first issues
I would be very grateful to him /her
05:23:04
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Suleyman via telegram
https://rebrand.ly/oxvy97t
I open a test account on MVU Cloud Mining on Apr 1, 2021, and invested $16 to purchase ETH hashrate of 150 MH/s and three days later I got a return of about $24.4.
Except the cost of the package and handling fee, I earned about $8 this account.
If I sign up 100 new account, I can earn $800 in 3 days!!!
06:28:16
@baziorek-5ea0a271d73408ce4fe1607c:gitter.imbaziorek (baziorek)

@Jassi10000 If You want to start I suggest run Iroha node on docker:
https://iroha.readthedocs.io/en/main/getting_started/index.html
then You can try sending commands with cli:

iroha-cli --account_name admin@test -key_path path/to/keys/of/admin

then You will see possible commands and You can send them and also check if blocks are being created.
If You want to do more You can try try better cli:
https://github.com/hyperledger/iroha-tui-client
then You can code Your own code (the cli above is open source, so You can see how it is working), here is library e.g. in python:
https://github.com/hyperledger/iroha-python

08:24:25
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Andrei Lebedev via telegram
can you check what was the problem with mattermost bridge last time you tried it? I think it even supports message deletes and edits, compared to the current bridge
10:50:02
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Sara via telegram
Their test rocketchat did not synchronize and no one in their chats managed to reply anything adequate about that
13:32:18
@dominic-pa-5f67bba7d73408ce4fef6aa6:gitter.imdominic-pa (Dominic-PA) Hi guys. Quick question. Is there any reason why assets do not have details, like the accounts can have details? 20:29:17
11 Apr 2021
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) kuvaldini via telegram
Do we provide iroha binaries outside of docker?
03:53:42
12 Apr 2021
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Egor Ivkov via telegram
Iroha2 team builds binaries and publishes them as pipeline artifact apart from publishing docker containers
12:34:22
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Egor Ivkov via telegram
I am not sure about Iroha 1.x though
12:34:31
13 Apr 2021
@baziorek-5ea0a271d73408ce4fe1607c:gitter.imbaziorek (baziorek) @dominic-pa As much as I know iroha 2.x would have details in assets. For iroha 1.x as much as I know there are no such plans to add, but if You need really much You can ask iroha team and add the functionality:). 15:48:16
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Egor Ivkov via telegram
Yes, that's right. KV map assets are planned for Iroha2.
15:49:44
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot) Egor Ivkov via telegram
Maybe @salakhiev knows if there are any plans to support it in Iroha 1.x
15:50:14
14 Apr 2021
@sorabot-5aaab865d73408ce4f919651:gitter.imsorabot (sorabot)Redacted or Malformed Event14:01:08
@sieronmiterc1973:matrix.org@sieronmiterc1973:matrix.org joined the room.15:10:58
@sieronmiterc1973:matrix.org@sieronmiterc1973:matrix.org left the room.15:12:10
15 Apr 2021
@baziorek-5ea0a271d73408ce4fe1607c:gitter.imbaziorek (baziorek)

hello,
I have question for iroha-python maintainers:
I want to extract command name from transaction. Eg. from:

payload {
  reduced_payload {
    commands {
      add_asset_quantity {
        asset_id: "coin#test"
        amount: "99"
      }
    }
    creator_account_id: "admin@test"
    created_time: 1618471599329
    quorum: 1
  }
}
signatures {
  public_key: "af2e8759f5958f629f65b0fc4c4ec1d551c6b067b08e1bc75e0fb4b3c067729b"
  signature: "25b4d561831bf3f8b5fa469b860da419bec3e6e2b9b715ce457b045f09556a01aad595ad4f25101f5d40f218a6416e11ec75e7ac680e779a67fe4ca7b105e101"
}

I want to extract:

add_asset_quantity

I have some dirty solution:

def get_command_from_transaction(tx):
    command = tx.payload.reduced_payload.commands[0]
    command_name = str(command).split('{')[0].strip()
    return command_name

but I think it must be a better one. Could anybody advice, please?

07:28:36
16 Apr 2021
@baziorek-5ea0a271d73408ce4fe1607c:gitter.imbaziorek (baziorek) I got the answer from iroha-team on priv, according to the answer new version of the function is:
def get_commands_from_transaction(tx):
    commands_from_transaction = []
    for command in tx.payload.reduced_payload.__getattribute__("commands"):
        listed_fields = command.ListFields()
        commands_from_transaction.append(listed_fields[0][0].name)
    return commands_from_transaction
04:57:23

There are no newer messages yet.


Back to Room List