These are chat archives for Nethereum/Nethereum

31st
Aug 2017
Juan Blanco
@juanfranblanco
Aug 31 2017 06:15 UTC
@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 UTC
@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 UTC
reactive extensions
@aayarushin
amjadDev
@amjadDev
Aug 31 2017 07:31 UTC
@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 UTC
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 UTC
@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 UTC
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 UTC
yay :) Thank you @juanfranblanco
amjadDev
@amjadDev
Aug 31 2017 07:36 UTC
yes its odd to share multiple tx for a single amount
Alexander Yarushin
@aayarushin
Aug 31 2017 07:36 UTC
@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 UTC
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 UTC
mainly it is adding another library
Alexander Yarushin
@aayarushin
Aug 31 2017 07:43 UTC
Where are the reefs
Juan Blanco
@juanfranblanco
Aug 31 2017 07:44 UTC
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 UTC
I was thinking about DI :)) Then I will not ask
Juan Blanco
@juanfranblanco
Aug 31 2017 07:46 UTC
yes nethereum is 1.1 standard
also the net35 unity support
Alexander Yarushin
@aayarushin
Aug 31 2017 07:47 UTC
I see
Juan Blanco
@juanfranblanco
Aug 31 2017 07:48 UTC
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 UTC
But if NEthereum had abstracted that functionality it might be injected by users
Juan Blanco
@juanfranblanco
Aug 31 2017 07:48 UTC
well you can do that yourself
already
it is a wrapper on top of events etc
Alexander Yarushin
@aayarushin
Aug 31 2017 07:49 UTC
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 UTC
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 UTC
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 UTC
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 UTC
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 UTC
yeah
i still think .net is still more mature
Alexander Yarushin
@aayarushin
Aug 31 2017 07:56 UTC
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 UTC
well you have react and .net core havent you?
Alexander Yarushin
@aayarushin
Aug 31 2017 07:57 UTC
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 UTC
They already had second release Yay!
first production release.
Thank you!
Juan Blanco
@juanfranblanco
Aug 31 2017 08:02 UTC
:) slowly .net is getting everywhere
and standard
Alexander Yarushin
@aayarushin
Aug 31 2017 08:03 UTC
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 UTC
ha ha.. yes i made that choice 17 years ago :)
Alexander Yarushin
@aayarushin
Aug 31 2017 08:04 UTC
Me 15 years ago
Juan Blanco
@juanfranblanco
Aug 31 2017 08:04 UTC
oh well near the same time
Alexander Yarushin
@aayarushin
Aug 31 2017 08:04 UTC
The other 9 years where like in a fog :D:D:D
Juan Blanco
@juanfranblanco
Aug 31 2017 08:04 UTC
was it like
amjadDev
@amjadDev
Aug 31 2017 08:04 UTC
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 UTC
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 UTC
ok
Juan Blanco
@juanfranblanco
Aug 31 2017 08:07 UTC
@aayarushin yes I remember kind of flipping a coin between vb.net and c#
Alexander Yarushin
@aayarushin
Aug 31 2017 08:08 UTC
VB.NET was realy easy to leave
Juan Blanco
@juanfranblanco
Aug 31 2017 08:08 UTC
and I thought, c# there more examples
Alexander Yarushin
@aayarushin
Aug 31 2017 08:08 UTC
I was doing PHP, C, MDL
Juan Blanco
@juanfranblanco
Aug 31 2017 08:08 UTC
and i need to maintain the vbscript stuff and com etc
Alexander Yarushin
@aayarushin
Aug 31 2017 08:08 UTC
some C++
inline Assembler
Juan Blanco
@juanfranblanco
Aug 31 2017 08:08 UTC
better start fresh to avoid confusion
ha ha Assembler
Alexander Yarushin
@aayarushin
Aug 31 2017 08:09 UTC
Yes, tell me that :)
mostly in university then I quickly found it unnecessary
Juan Blanco
@juanfranblanco
Aug 31 2017 08:10 UTC
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 UTC
I saw it it was like "YES!!!"
Juan Blanco
@juanfranblanco
Aug 31 2017 08:10 UTC
back to basics
Alexander Yarushin
@aayarushin
Aug 31 2017 08:10 UTC
But I actually prefer to not work in "kernel mode"
subject to changes...
Juan Blanco
@juanfranblanco
Aug 31 2017 08:11 UTC
well i don't think it should be for anyone
it limits adoption
Alexander Yarushin
@aayarushin
Aug 31 2017 08:11 UTC
If Buterin decides to make a breaking change he just can do that...
Juan Blanco
@juanfranblanco
Aug 31 2017 08:11 UTC
yes
Alexander Yarushin
@aayarushin
Aug 31 2017 08:11 UTC
Not so easy with solidity
Juan Blanco
@juanfranblanco
Aug 31 2017 08:12 UTC
yep
Alexander Yarushin
@aayarushin
Aug 31 2017 08:12 UTC
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 UTC
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 UTC
:)
Alexander Yarushin
@aayarushin
Aug 31 2017 08:30 UTC
@juanfranblanco thsnk you tipsing on RX
it can even be paired with Vue
Juan Blanco
@juanfranblanco
Aug 31 2017 08:32 UTC
ohh cool
garyng2000
@garyng2000
Aug 31 2017 21:27 UTC
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 UTC
nethereum isn't dependant on core
I have it running in wpf
did you get the pcl?
garyng2000
@garyng2000
Aug 31 2017 21:30 UTC
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 UTC
which package are you trying to install?
web3?
garyng2000
@garyng2000
Aug 31 2017 21:31 UTC
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 UTC
try the normal package, thats the one you need isn't it?
oh
sorry maybe i misread
garyng2000
@garyng2000
Aug 31 2017 21:34 UTC
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 UTC
yeah what vs you running
garyng2000
@garyng2000
Aug 31 2017 21:46 UTC
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 UTC
ahh whats the project type a plain old class library?
garyng2000
@garyng2000
Aug 31 2017 21:47 UTC
yup, plain old class library which would be part of ASP.NET site :-(
kai
@kaista82_twitter
Aug 31 2017 21:48 UTC
very strange, just importing that lib into a clean class lib should be fine
garyng2000
@garyng2000
Aug 31 2017 21:50 UTC
yes but I need to have the assembly in the first place :-)
kai
@kaista82_twitter
Aug 31 2017 21:51 UTC
how do you mean
I mean a blank project to clarify
garyng2000
@garyng2000
Aug 31 2017 21:52 UTC
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 UTC
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 UTC
you mean VS2017 ? I think what I have is 15.3
kai
@kaista82_twitter
Aug 31 2017 22:16 UTC
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 UTC
thanks for spending the time to help, so to build source requires 15.4 ?
kai
@kaista82_twitter
Aug 31 2017 22:23 UTC
as far as I remember yes mate
garyng2000
@garyng2000
Aug 31 2017 22:24 UTC
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 UTC
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 UTC
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 UTC
yeah but did you try the other libs, why do you want portable
specific reason?
garyng2000
@garyng2000
Aug 31 2017 22:33 UTC
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 UTC
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 UTC
same issue, 'NETStandard.Library' already has a dependency defined for 'Microsoft.NETCore.Platforms'.
kai
@kaista82_twitter
Aug 31 2017 22:36 UTC
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 UTC
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 UTC
I'm sure Juan will have some suggestions tomorrow
garyng2000
@garyng2000
Aug 31 2017 22:45 UTC
thanks very much for the time
kai
@kaista82_twitter
Aug 31 2017 22:45 UTC
np sorry i couldnt help