These are chat archives for Nethereum/Nethereum

5th
Jun 2017
Juan Blanco
@juanfranblanco
Jun 05 2017 07:59
@knocte no I have been travelling, Ill do it today
@EdsonAlcala sí pero aquí mejor en inglés
if anybody needs a simple faucet https://github.com/Nethereum/Nethereum.Faucet
akopeliovich
@akopeliovich
Jun 05 2017 10:45
Hello! I have function in solidity with signature getRequestStatuses(address userAddress, address agentAddress) returns(uint[] res1, uint[] res2). It returns 2 arrays. Is it possible to get result with nethereum? I've tried CallAsync<Tuple<List<int> , List<int>>> but it doesn't work.
Juan Blanco
@juanfranblanco
Jun 05 2017 10:45
you need to create a FunctionOuput
DTO
you are right using List<uint>
akopeliovich
@akopeliovich
Jun 05 2017 10:48
thank you!
And I have to mark my param with attr [Parameter("List<uint>", "res1", 1)]?
Juan Blanco
@juanfranblanco
Jun 05 2017 10:51
yep
you can use the code generator of vscode
solidity extension if wanted
or the console one
akopeliovich
@akopeliovich
Jun 05 2017 11:22
I have an exception System.ArgumentException: Unknown type: List<uint> with that attribute(
Juan Blanco
@juanfranblanco
Jun 05 2017 11:22
just notice the error
on the Parameter you put the solidity parameter
not the c# parameter
so it will be
akopeliovich
@akopeliovich
Jun 05 2017 11:23
uint[]?
Juan Blanco
@juanfranblanco
Jun 05 2017 11:23
[Parameter("unit[]", "res1", 1)]
yeah
then
akopeliovich
@akopeliovich
Jun 05 2017 11:23
ok)
Juan Blanco
@juanfranblanco
Jun 05 2017 11:23
public List<uint> Res1 {get; set;}
akopeliovich
@akopeliovich
Jun 05 2017 11:27
now it works, thank!)
Juan Blanco
@juanfranblanco
Jun 05 2017 11:27
:sparkles:
Andres G. Aragoneses
@knocte
Jun 05 2017 11:43
@juanfranblanco: ok thanks!
you travel a lot ;)
Edson Alcalá
@EdsonAlcala
Jun 05 2017 16:32
@juanfranblanco Im running a Xamarin project and I have this error
Juan Blanco
@juanfranblanco
Jun 05 2017 16:32
on 2.0 miner has been move to Nethereum.Geth
as it is not part of the core
you will need to use Web3Geth
Edson Alcalá
@EdsonAlcala
Jun 05 2017 16:36
ok
@juanfranblanco I have a question, with the web3.js, basically you can add listeners for certain events, like the 'latest', as my understanding this events are triggered when the block has been mined right? With the approach that you are following by using await for MineAndReceipt and the Thread.Sleep, basically we are just waiting until the Block is mined is that correct?
Juan Blanco
@juanfranblanco
Jun 05 2017 17:58
yes
it is the same
in Nethereum I did not want to create an opiniated way
as there are many different types of clients
Edson Alcalá
@EdsonAlcala
Jun 05 2017 18:00
is there a way to listen for events? If I have an event called "VoteAdded" and one of the clients Vote, how can I listen for that event?