These are chat archives for Nethereum/Nethereum

12th
Sep 2017
hanhvn
@vonhathanh
Sep 12 2017 03:43
Hi everyone, how can i install nethereum on ubuntu. The github webpage guide me to run "PM > Install-Package Nethereum.Portable -Pre" but it is not working on ubuntu :worried:
yes that is the usual windows
viusual studio command line interface
@vonhathanh
you could try working with vscode too and c#
amjadDev
@amjadDev
Sep 12 2017 08:18
whats's difference in erc 223 and erc20 ? how its better than erc20
@juanfranblanco
Juan Blanco
@juanfranblanco
Sep 12 2017 08:19
^^^
kai
@kaista82_twitter
Sep 12 2017 08:19
^^
JUAN MY MAN
how are you my friend
Juan Blanco
@juanfranblanco
Sep 12 2017 08:20
not bad and you?
kai
@kaista82_twitter
Sep 12 2017 08:20
yeah up and down like a roller coaster but sorting it out
Juan Blanco
@juanfranblanco
Sep 12 2017 08:20
ha ha cool :)
kai
@kaista82_twitter
Sep 12 2017 08:20
;)
Juan Blanco
@juanfranblanco
Sep 12 2017 08:25
BTW the trasaction receipt service has been moved to RPC and it is also accesable now by the TransactionManager. This is defaulted to the Polling service but it can be replaced.
kai
@kaista82_twitter
Sep 12 2017 08:25
oh nice
i didnt realise you pushed changes
is there a release notes page
or is that the main change
Juan Blanco
@juanfranblanco
Sep 12 2017 08:26
Oh is not out yet
kai
@kaista82_twitter
Sep 12 2017 08:26
ahh ok cool
Juan Blanco
@juanfranblanco
Sep 12 2017 08:26
but in the source code
kai
@kaista82_twitter
Sep 12 2017 08:26
yeah i need to get source building
but i had that issue
with net standard
then maybe I can assist with some stuff
Juan Blanco
@juanfranblanco
Sep 12 2017 08:27
I will be pushing it today with some other overloads
mainly on deployment and functions you can do this ^^
kai
@kaista82_twitter
Sep 12 2017 08:28
oh very nice, does the normal submitraw transaction do that too?
or use same method as I do now?
I wrapped some code around the poller to keep track of all tx's is all, with cancellation token tracking
you know that 32bytes thing, is that just a ABS(value) == 32 check needed?
or more involved?
Juan Blanco
@juanfranblanco
Sep 12 2017 08:29
oh..
need to check that again :)
kai
@kaista82_twitter
Sep 12 2017 08:30
:)
Juan Blanco
@juanfranblanco
Sep 12 2017 08:30
ill do it now
i jumped to other stuff
kai
@kaista82_twitter
Sep 12 2017 08:30
as I say cant get source so cant help but would like to assist if i could
Juan Blanco
@juanfranblanco
Sep 12 2017 08:30
re raw transactions
no is not for that
kai
@kaista82_twitter
Sep 12 2017 08:30
I'm ok with the raw tx
as it is
so nice
but if it was built in i would possible change it thats all
works a treat as it is
so no problem
Juan Blanco
@juanfranblanco
Sep 12 2017 08:31
as the transaction manager does the signing and uses that in the backend (when using private keys)
but.. ill think about it
kai
@kaista82_twitter
Sep 12 2017 08:34
tbh, i think it will be fine
its not like there are hundreds of lines to get it working
Juan Blanco
@juanfranblanco
Sep 12 2017 08:34
yes it is a specialised use case
kai
@kaista82_twitter
Sep 12 2017 08:34
i would use it if it was there but happy with the solution you already provide with the poller
Juan Blanco
@juanfranblanco
Sep 12 2017 08:34
maybe later when move into hardware signing
kai
@kaista82_twitter
Sep 12 2017 08:34
cool
Juan Blanco
@juanfranblanco
Sep 12 2017 08:37
btw im in 15.3.2 and everything is building ok
kai
@kaista82_twitter
Sep 12 2017 08:37
hmm let me check version
15.3.0
is that pre release that you have?
Juan Blanco
@juanfranblanco
Sep 12 2017 08:38
no now prerelease in 15.4
(as of last week)
kai
@kaista82_twitter
Sep 12 2017 08:39
ive just realised
that there is no auto update in vs
wow
unexpected
I'll download latest after work methinks
Juan Blanco
@juanfranblanco
Sep 12 2017 08:39
yes.. updates are not quick
kai
@kaista82_twitter
Sep 12 2017 08:39
no i know
hehe
when i upgraded last time took AGES
Juan Blanco
@juanfranblanco
Sep 12 2017 08:40
well if you have the bare minimum installed
kai
@kaista82_twitter
Sep 12 2017 08:40
i dont
im a box ticker when it comes to vs
Juan Blanco
@juanfranblanco
Sep 12 2017 08:40
yes I thought so
kai
@kaista82_twitter
Sep 12 2017 08:40
i like ALL THE TOYS
Juan Blanco
@juanfranblanco
Sep 12 2017 08:40
well that is the point of vs
kai
@kaista82_twitter
Sep 12 2017 08:40
im so excited for XF3 man still
SO EXCITED
Juan Blanco
@juanfranblanco
Sep 12 2017 08:40
yes me too
kai
@kaista82_twitter
Sep 12 2017 08:40
will it work like xamarin ios/android do you know?
will i be able to use net standard + xf3 and just have a single project
and build hosts?
Juan Blanco
@juanfranblanco
Sep 12 2017 08:41
yes that is the point
kai
@kaista82_twitter
Sep 12 2017 08:41
woop
Juan Blanco
@juanfranblanco
Sep 12 2017 08:41
i don't know about wpf
as they allow xamarin forms to be hosted
kai
@kaista82_twitter
Sep 12 2017 08:42
yeah im not sure how integrated v1 will be i saw things like .getView .GetFrameworkElement etc
Juan Blanco
@juanfranblanco
Sep 12 2017 08:42
but if you think about it then it is the same :)
kai
@kaista82_twitter
Sep 12 2017 08:42
so basically it built the forms for the platfrom from the base file
yeah its XAML so all good
if its like ios/android/uwp is at moment
im happy enough
Juan Blanco
@juanfranblanco
Sep 12 2017 08:42
yes just a different host
also it will be great to have dynamic modules like the old MEF / PRISM
obviously just for desktop
kai
@kaista82_twitter
Sep 12 2017 08:44
they're building that in? I always used Autofac and scanned a dir
oh
ofcourse
its built in
i can put a class in android/ios
and get that instance per environment ioc style
Juan Blanco
@juanfranblanco
Sep 12 2017 08:44
but ios builds aot
i am thinking about dynamic plugins
kai
@kaista82_twitter
Sep 12 2017 08:45
but thats in a shared project
yeah thats what i used autofac for dynamic plugins
Juan Blanco
@juanfranblanco
Sep 12 2017 08:46
ok, but IOS cannot obviously load a .net assembly at run time
as it needs to be compiled aot
kai
@kaista82_twitter
Sep 12 2017 08:46
oh yes
Juan Blanco
@juanfranblanco
Sep 12 2017 08:46
then in mac to optimise it you have to do the same (but also have the possibility)
kai
@kaista82_twitter
Sep 12 2017 08:46
sorry i missed the aot point
Juan Blanco
@juanfranblanco
Sep 12 2017 08:47
so ideally it could be a standard (which might be using autofac and doing a directory scan as you said) to deploy different modules for desktop (windows, mac, linux)
kai
@kaista82_twitter
Sep 12 2017 08:48
i hope the mac versions of the apps have a proper main menu etc
you can play with it now
kai
@kaista82_twitter
Sep 12 2017 08:55
I'll have a go with that
Juan Blanco
@juanfranblanco
Sep 12 2017 09:40
im getting the preview 15.4 it includes lives updates for xamarin ios and droid
kai
@kaista82_twitter
Sep 12 2017 11:42
Juan will .net standard kill pcl or is there a valid use for pcl do you think
Juan Blanco
@juanfranblanco
Sep 12 2017 11:43
eventually it will
but..
eventually
kai
@kaista82_twitter
Sep 12 2017 11:43
ok thought so
net standard needs to be the new king!
Juan Blanco
@juanfranblanco
Sep 12 2017 11:43
yes
Juan Blanco
@juanfranblanco
Sep 12 2017 12:43
but is like unity3d and everything else, it will take a while to be fully supported
kai
@kaista82_twitter
Sep 12 2017 12:43
yeah its in the post though
thats what matters
Juan Blanco
@juanfranblanco
Sep 12 2017 12:45
yes everything is taking the same direction, not just .net but all the external bindings
(xamarin)
Ruben Murillo
@Ru_Murillo_twitter
Sep 12 2017 15:59

Hi there! I'm new to Ethereum (Nethereum) and I'm having a hard time sending a transaction to the TestRPC testnet.

I'm not quite sure what is that I have to provide to the SendTransactionAsync() method.

Here's my code:

var contractAddress = "0x2a856d04bcc76530f26d106bb48d51b51f5b94eb";

var contract = web3.Eth.GetContract(abi, contractAddress);

var function = contract.GetFunction("transfer");

var result = await function.SendTransactionAsync(?????);

Any help would be really appreciate it
kai
@kaista82_twitter
Sep 12 2017 16:00
this is a standard ERC20?
var _token = new Nethereum.StandardTokenEIP20.StandardTokenService(_web3, txtContractAddress.Text);
var _response = await _token.TransferAsync<BigInteger>(_account.Address, "RECIPIENTADDRESS", UnitConversion.Convert.ToWei(1), new HexBigInteger(100000));
use the convenient EIP20 token service that juan created its very nice
alternatively
var _multiplyFunction = _contract.GetFunction("multiply");
var _result = await _multiplyFunction.CallAsync<int>(params for send);
I would suggest using Juans token service if its definately erc20
Ruben Murillo
@Ru_Murillo_twitter
Sep 12 2017 16:07
Awesome! It is an ERC20 token. I'm trying to do a PoC. Thanks @kaista82_twitter . Will try Juan's StandardTokenService and see if that works!
kai
@kaista82_twitter
Sep 12 2017 16:07
great, I'm sure it will, it worked for me!
Ruben Murillo
@Ru_Murillo_twitter
Sep 12 2017 16:24
Thanks, @kaista82_twitter! And @juanfranblanco ! It's working now!
kai
@kaista82_twitter
Sep 12 2017 16:25
;)
it was all juan's lovely code
thanks for letting me know it worked