These are chat archives for Nethereum/Nethereum

31st
Aug 2017
Juan Blanco
@juanfranblanco
Aug 31 2017 06:15
@aayarushin no it does not, everything has to be polled from the chain
I thought about adding RX a long time ago but I did not wanted to be opiniated and/or hinder portability support
@bitcoinbrisbane oh a simple funciton to return the lenght
getArrayLength() returns uint { return _myarray.length; }
(ignore the typos)
Alexander Yarushin
@aayarushin
Aug 31 2017 06:21
@juanfranblanco What is RX?
Pulling from the database needs to be done anyway. There is no magic and we all know it :)
Juan Blanco
@juanfranblanco
Aug 31 2017 07:29
reactive extensions
@aayarushin
amjadDev
@amjadDev
Aug 31 2017 07:31
@juanfranblanco is there any way to make payment in ethereum from many to one like bitcoin many input to one output or multiple output
Juan Blanco
@juanfranblanco
Aug 31 2017 07:32
multiple output could be done with a smart contract
or by hand
multiple input no
you will have to create a transaction for each
Alexander Yarushin
@aayarushin
Aug 31 2017 07:34
@juanfranblanco Interesting question @amjadDev But contract can pull ether from several others in one transaction
Or am I missing something?
Juan Blanco
@juanfranblanco
Aug 31 2017 07:35
yes if it has ownserhip
or it is allowed
you could have a registry type contract
which access other smart contracts
balance
you are right
Alexander Yarushin
@aayarushin
Aug 31 2017 07:36
yay :) Thank you @juanfranblanco
amjadDev
@amjadDev
Aug 31 2017 07:36
yes its odd to share multiple tx for a single amount
Alexander Yarushin
@aayarushin
Aug 31 2017 07:36
@amjadDev so it is possible
but what you meant by "has ownership" can you elaborate on that @juanfranblanco ?
pulling btw is the recommended way of making payments
Juan Blanco
@juanfranblanco
Aug 31 2017 07:37
so simple flow could be
main contract which acts as a registry but also sends amounts
then other contracts that are added to the registry, which have a balance and a common interface
when these contracts are added to the registry, also allow the registry to send in their behalf
the registry could also be a multisignature contract
(just to make it more fun)
when you want to send some amout you can decide what percentage to use by each contract registered
"Favor pull over push payments"
@juanfranblanco thank you
@juanfranblanco Could you elaborate on what you meant by "opiniated and/or hinder portability support"?
Juan Blanco
@juanfranblanco
Aug 31 2017 07:43
mainly it is adding another library
Alexander Yarushin
@aayarushin
Aug 31 2017 07:43
Where are the reefs
Juan Blanco
@juanfranblanco
Aug 31 2017 07:44
which will not be supported
or people might not want to use
same reason i have not put DI
Alexander Yarushin
@aayarushin
Aug 31 2017 07:45
I was thinking about DI :)) Then I will not ask
Juan Blanco
@juanfranblanco
Aug 31 2017 07:46
yes nethereum is 1.1 standard
also the net35 unity support
Alexander Yarushin
@aayarushin
Aug 31 2017 07:47
I see
Juan Blanco
@juanfranblanco
Aug 31 2017 07:48
DI is for simplicity sake, as more things get refactored Ill try to enable more areas to be injected
Alexander Yarushin
@aayarushin
Aug 31 2017 07:48
But if NEthereum had abstracted that functionality it might be injected by users
Juan Blanco
@juanfranblanco
Aug 31 2017 07:48
well you can do that yourself
already
it is a wrapper on top of events etc
Alexander Yarushin
@aayarushin
Aug 31 2017 07:49
I was guessing if I will have to do that :)
I am trying to keep my team in the .NET stack
Challenging task provided a lot of stuff needs to be written in Javascript anyway :)
Juan Blanco
@juanfranblanco
Aug 31 2017 07:51
they should :D
well for backend, crossplatform frontend
they are better in .net
for SPAs yeah..
javascript until webassembly
Alexander Yarushin
@aayarushin
Aug 31 2017 07:52
A lot of free and good stuff in .NET So that argument for node.js with many more packages does not realy convience me all that well
Juan Blanco
@juanfranblanco
Aug 31 2017 07:52
but we may see another revamp on desktop apps with Xamarin forms 3 ;)
which can be deployed by IPFS or SWARM
Alexander Yarushin
@aayarushin
Aug 31 2017 07:55
The thing is that JS has become a multiple purpose language like C#. The framework is the main discussion point...
Juan Blanco
@juanfranblanco
Aug 31 2017 07:56
yeah
i still think .net is still more mature
Alexander Yarushin
@aayarushin
Aug 31 2017 07:56
When it come to edge techology like ethereum / solidity then node.js is a strong competitor... Say Vue.js ... There is no good integration with Asp.Core
.NET is more mature for sure
Asp.Core will still need to rest on angularjs
Juan Blanco
@juanfranblanco
Aug 31 2017 07:57
well you have react and .net core havent you?
Alexander Yarushin
@aayarushin
Aug 31 2017 07:57
Vue is realy sexy
if you ask me, it does not realy matter so long we have control on code changes and requirements :)
But I do like to thing purpose when I think technology
and efficiency
i knew vue was there
Alexander Yarushin
@aayarushin
Aug 31 2017 08:00
They already had second release Yay!
first production release.
Thank you!
Juan Blanco
@juanfranblanco
Aug 31 2017 08:02
:) slowly .net is getting everywhere
and standard
Alexander Yarushin
@aayarushin
Aug 31 2017 08:03
I made my choice of C# many years ago
and my guess was right
Luckily, when I vnetured to Ethereum there was NEthereum already! :)
Juan Blanco
@juanfranblanco
Aug 31 2017 08:04
ha ha.. yes i made that choice 17 years ago :)
Alexander Yarushin
@aayarushin
Aug 31 2017 08:04
Me 15 years ago
Juan Blanco
@juanfranblanco
Aug 31 2017 08:04
oh well near the same time
Alexander Yarushin
@aayarushin
Aug 31 2017 08:04
The other 9 years where like in a fog :D:D:D
Juan Blanco
@juanfranblanco
Aug 31 2017 08:04
was it like
amjadDev
@amjadDev
Aug 31 2017 08:04
i have scenario like this i have multiple public key and corresponding private key now i have to send some amount to a third public address which need to accumulate from different public address which i have
@juanfranblanco
Juan Blanco
@juanfranblanco
Aug 31 2017 08:06
well in that scenario (if you don't want to hold the balances in contracts) you will need to do it manually
and multiple transactions
check the Nethereum.Console
there are samples on how to get the balances of each account file in a folder
you just need to put your math to distribute and send
amjadDev
@amjadDev
Aug 31 2017 08:07
ok
Juan Blanco
@juanfranblanco
Aug 31 2017 08:07
@aayarushin yes I remember kind of flipping a coin between vb.net and c#
Alexander Yarushin
@aayarushin
Aug 31 2017 08:08
VB.NET was realy easy to leave
Juan Blanco
@juanfranblanco
Aug 31 2017 08:08
and I thought, c# there more examples
Alexander Yarushin
@aayarushin
Aug 31 2017 08:08
I was doing PHP, C, MDL
Juan Blanco
@juanfranblanco
Aug 31 2017 08:08
and i need to maintain the vbscript stuff and com etc
Alexander Yarushin
@aayarushin
Aug 31 2017 08:08
some C++
inline Assembler
Juan Blanco
@juanfranblanco
Aug 31 2017 08:08
better start fresh to avoid confusion
ha ha Assembler
Alexander Yarushin
@aayarushin
Aug 31 2017 08:09
Yes, tell me that :)
mostly in university then I quickly found it unnecessary
Juan Blanco
@juanfranblanco
Aug 31 2017 08:10
yeah same here, not much use after that (a part from now)
on solidity assembley mode
or evm
Alexander Yarushin
@aayarushin
Aug 31 2017 08:10
I saw it it was like "YES!!!"
Juan Blanco
@juanfranblanco
Aug 31 2017 08:10
back to basics
Alexander Yarushin
@aayarushin
Aug 31 2017 08:10
But I actually prefer to not work in "kernel mode"
subject to changes...
Juan Blanco
@juanfranblanco
Aug 31 2017 08:11
well i don't think it should be for anyone
it limits adoption
Alexander Yarushin
@aayarushin
Aug 31 2017 08:11
If Buterin decides to make a breaking change he just can do that...
Juan Blanco
@juanfranblanco
Aug 31 2017 08:11
yes
Alexander Yarushin
@aayarushin
Aug 31 2017 08:11
Not so easy with solidity
Juan Blanco
@juanfranblanco
Aug 31 2017 08:12
yep
Alexander Yarushin
@aayarushin
Aug 31 2017 08:12
but when I see version conflicts with nugetI realy feel like I would stay with assembler :)
realy!
very very much! :)
Juan Blanco
@juanfranblanco
Aug 31 2017 08:13
well at the moment is all in works in the .net world
it is fun when it all works
but it allows for faster innovation and not waiting for 2 year releases
also it does not force businsesses to wait for versions
Alexander Yarushin
@aayarushin
Aug 31 2017 08:16
:)
Alexander Yarushin
@aayarushin
Aug 31 2017 08:30
@juanfranblanco thsnk you tipsing on RX
it can even be paired with Vue
Juan Blanco
@juanfranblanco
Aug 31 2017 08:32
ohh cool
garyng2000
@garyng2000
Aug 31 2017 21:27
is there a version that doesn't depend on .NET core ? trying to fit this into a good old day .NET 4.5 project
kai
@kaista82_twitter
Aug 31 2017 21:28
nethereum isn't dependant on core
I have it running in wpf
did you get the pcl?
garyng2000
@garyng2000
Aug 31 2017 21:30
I meant when I try to pull the NuGet package into a 4.5 class library project(and the machine has nothing related to .NET core installed) and build it gives me some dependency error.
kai
@kaista82_twitter
Aug 31 2017 21:30
which package are you trying to install?
web3?
garyng2000
@garyng2000
Aug 31 2017 21:31
Attempting to resolve dependency 'EdjCase.JsonRpc.Client (≥ 1.0.5)'.
Attempting to resolve dependency 'NETStandard.Library (≥ 1.6.0)'.
'NETStandard.Library' already has a dependency defined for 'Microsoft.NETCore.Platforms'.
portal library per the readme in github
kai
@kaista82_twitter
Aug 31 2017 21:32
try the normal package, thats the one you need isn't it?
oh
sorry maybe i misread
garyng2000
@garyng2000
Aug 31 2017 21:34
thanks for helping nevertheless, need to find a machine with everything install and see if I can create another project that is pure .NET 4.5
kai
@kaista82_twitter
Aug 31 2017 21:35
yeah what vs you running
garyng2000
@garyng2000
Aug 31 2017 21:46
the environment is plain W10 with visual studio 2017(and there I also have a problem as the target real environment is running VS2012)
kai
@kaista82_twitter
Aug 31 2017 21:46
ahh whats the project type a plain old class library?
garyng2000
@garyng2000
Aug 31 2017 21:47
yup, plain old class library which would be part of ASP.NET site :-(
kai
@kaista82_twitter
Aug 31 2017 21:48
very strange, just importing that lib into a clean class lib should be fine
garyng2000
@garyng2000
Aug 31 2017 21:50
yes but I need to have the assembly in the first place :-)
kai
@kaista82_twitter
Aug 31 2017 21:51
how do you mean
I mean a blank project to clarify
garyng2000
@garyng2000
Aug 31 2017 21:52
I tried to pull the github source and build it which also gave me error during build so it seems that I need something from .NET core things
kai
@kaista82_twitter
Aug 31 2017 21:52
no thats a vs bug
i know about that one
you need the pre release community to compile it at the moment as far as I know
atleast the latest rc
or last few
garyng2000
@garyng2000
Aug 31 2017 21:53
you mean VS2017 ? I think what I have is 15.3
kai
@kaista82_twitter
Aug 31 2017 22:16
yeah, i cant remember which version but basically Juan used the pre release
and i had issues getting it installed
im on 15.3 and couldnt compile
he had 15.4 i think
reported to ms already
the bug is
garyng2000
@garyng2000
Aug 31 2017 22:23
thanks for spending the time to help, so to build source requires 15.4 ?
kai
@kaista82_twitter
Aug 31 2017 22:23
as far as I remember yes mate
garyng2000
@garyng2000
Aug 31 2017 22:24
ok, may be easier for me to just find a machine with .NET core and get it via NuGet then hand copy the assemblies :-)
kai
@kaista82_twitter
Aug 31 2017 22:25
i just re-read that above
"portal library per the readme in github"
what did you mean by that
garyng2000
@garyng2000
Aug 31 2017 22:27
per the instruction on github readme, I should get Nethereum.Portable via NuGet and that gave me error as shown
kai
@kaista82_twitter
Aug 31 2017 22:28
yeah but did you try the other libs, why do you want portable
specific reason?
garyng2000
@garyng2000
Aug 31 2017 22:33
I am just starting from scratch so just follow the instruction. All that I need for now is to get the .NET web3 equivalent so I can connect to the local geth node via RPC(namepipe), not sure which assembly does that
kai
@kaista82_twitter
Aug 31 2017 22:33
get web3
Capture.PNG
that one
let me know how that installs
lets have a go at getting you up and running
garyng2000
@garyng2000
Aug 31 2017 22:35
same issue, 'NETStandard.Library' already has a dependency defined for 'Microsoft.NETCore.Platforms'.
kai
@kaista82_twitter
Aug 31 2017 22:36
update your package manager
'NETStandard.Library' already has a dependency defined for 'Microsoft.NETCore.Platforms'.
sec
are you on 2.12.0
probably not that if you have latest vs you probably have latest nuget
garyng2000
@garyng2000
Aug 31 2017 22:38
found another machine with vanilla vs2017 and created a new class library which seems to have NetStandard.Library package setup as prerequisite and now I can pull the nethereum package. need to find out how to move this to the VS2012 environment :-(
um looks like I do need to start from scratch from the source .cs file. all package seem to depends on NetStandard.Library which depends on .NET Core which I cannot back fit into the existing one as that is a straight .NET 4.5 solution
kai
@kaista82_twitter
Aug 31 2017 22:44
I'm sure Juan will have some suggestions tomorrow
garyng2000
@garyng2000
Aug 31 2017 22:45
thanks very much for the time
kai
@kaista82_twitter
Aug 31 2017 22:45
np sorry i couldnt help