These are chat archives for Nethereum/Nethereum

13th
Sep 2018
Manuel Rauber
@ManuelRauber
Sep 13 2018 06:46

@juanfranblanco Ah, I try it like that. I'm currently loading the keystore file, that may be the wrong thing. I try that with the privateKey. (I'm not using VS Code for Development, that's why I use the code gen via console).

And what about getting the latest transaction count? Is this also handled by the code gen or still something we have to do ourselves?

Juan Blanco
@juanfranblanco
Sep 13 2018 07:02
That is done by the framework
@ManuelRauber when signing
Manuel Rauber
@ManuelRauber
Sep 13 2018 07:03
Ah ok, so I just have to call the generated code function and everthing else is done behind the scenes. Nice :)
Juan Blanco
@juanfranblanco
Sep 13 2018 07:04
Yes, well in theory you don't need to code generate anything, but it is faster
Manuel Rauber
@ManuelRauber
Sep 13 2018 07:04
Yes, I know I can do it manually, but the target audience are all .NET developer loving typed stuff (and if it's generated, they'll love it even more)
Lol yes :)
That is the idea
Manuel Rauber
@ManuelRauber
Sep 13 2018 07:06
:-) Thanks! I give it a try with the PK after having breakfast :D
Manuel Rauber
@ManuelRauber
Sep 13 2018 07:39
Working, perfect :)
Juan Blanco
@juanfranblanco
Sep 13 2018 07:40
cool and quick breakfast
Also the idea of the code generators is to provide more templates for other areas (ie UI, etc) but in those scenarios as a simple get started
Juan Blanco
@juanfranblanco
Sep 13 2018 10:30
@all I have migrated the initial jobs for CI to Azure Dev Ops (restore, build, test and create nugets) for Nethereum and the Code generators
you can see them above ^^
Juan Blanco
@juanfranblanco
Sep 13 2018 10:43
proBeejay141
@proBeejay141
Sep 13 2018 15:30
please, is there a way to get notification when an address received ether
proBeejay141
@proBeejay141
Sep 13 2018 15:35
what i want to implement is that, i want to give my users virtual balance whenever they deposite..thanks
Juan Blanco
@juanfranblanco
Sep 13 2018 15:36
you can do different things
one monitor each block
use parity trace_filter
or use the etherscan api
(note monitoring each block, will not include the inner calls between smart contracts to send eth)
proBeejay141
@proBeejay141
Sep 13 2018 15:37
which one is the ideal way to do it?
Juan Blanco
@juanfranblanco
Sep 13 2018 15:38
the simplest will be etherscan
all depends how much control you want
proBeejay141
@proBeejay141
Sep 13 2018 15:40
have you done something like that before?
that is an example of storing all the blokchain
@Dave-Whiffin is refactoring and adding other adapters in v2 https://github.com/Nethereum/Nethereum.BlockchainStorage/tree/v2
proBeejay141
@proBeejay141
Sep 13 2018 15:51
can the library solve my problem?
Juan Blanco
@juanfranblanco
Sep 13 2018 16:03
well you will need to do some work but it gives you an idea of what to do
the simplest thing will be (if not wanted to use etherscan), might be to use your own server with parity trace_filter
proBeejay141
@proBeejay141
Sep 13 2018 16:05
okay, thank you., i will do some research on that
Sergio Piedrahita
@spied001
Sep 13 2018 17:26
@juanfranblanco is there a way to get a bytes32[] in Nethereum from Solidity , the contract json file has:
"outputs": [
{
"name": "",
"type": "bytes32[20]"
}
]
should I create a function output DTO to be able to read the values in C#?
Juan Blanco
@juanfranblanco
Sep 13 2018 17:27
what output you want?
you could do
List<string>
List<byte[]>
Sergio Piedrahita
@spied001
Sep 13 2018 18:26
@juanfranblanco I tried your suggestion, List<string> and it works perfectly, thanks you very much for the quick response
Juan Blanco
@juanfranblanco
Sep 13 2018 18:27
great :)
Sergio Piedrahita
@spied001
Sep 13 2018 18:29
@juanfranblanco also, did you have a chance to read the other question I asked about the uncle"ommer" block, how do we know that the transaction was no mined in an uncle block ?
Juan Blanco
@juanfranblanco
Sep 13 2018 18:30
you should wait for a few blocks to validate this
just in case
Sergio Piedrahita
@spied001
Sep 13 2018 18:38
so if I send the transaction and wait for it be mined, at this point I got the transaction hash and other data available through "Result" , what can I use from this Result to check that the transaction is part of the block added to the main chain and not an uncle "ommer" block?
Juan Blanco
@juanfranblanco
Sep 13 2018 19:40
well just the hash will do
although if you are in a fork
you would not notice as that will be the main chain
Sergio Piedrahita
@spied001
Sep 13 2018 21:29
@juanfranblanco is there a way to do confirmations through nethereum, basically a transaction is mined in block x, then a certain amount of time later through a call I can get the number of blocks that have been mined after the block x which has the transaction that was mined?