These are chat archives for Nethereum/Nethereum

30th
Aug 2018
Enigmatic
@EnigmaticUnreal_twitter
Aug 30 2018 04:13
@alphasignal - Tried BigInteger?
@junbest - Yeap. I use 4.5.2 or 4.6.x.
@p0isoNz_twitter - Hmm... You could pass it through the solc compiler, produce the abi and bytecode file, read them into a variable and upload these?
junbest
@junbest
Aug 30 2018 06:29
Hi, how do start coding ETC(Ethereum Clasic) in this library
Juan Blanco
@juanfranblanco
Aug 30 2018 08:56
Hi !! @/all Is anybody going to EthBerlin? It will be great to meet you there!
@p0isoNz_twitter Thanks, there is no donation address, I much appreciate the offer
@EnigmaticUnreal_twitter many thanks to you for providing all the help !!
Juan Blanco
@juanfranblanco
Aug 30 2018 09:18
@junbest it is the same for ETC
p0isoN
@p0isoNz_twitter
Aug 30 2018 09:20
@juanfranblanco naa, you deserve something. What's your ether address. Don't think of it as a donation, think of it as a reward
@EnigmaticUnreal_twitter whoa
I'll have a try and let you know
junbest
@junbest
Aug 30 2018 09:37
@juanfranblanco can you link me somthing to start coding?
alphasignal
@alphasignal
Aug 30 2018 09:44
@EnigmaticUnreal_twitter yes I did but that is only 8 bytes, and uint256 is 32 bytes...so how does one store uint256...do I need to build a custom type?
p0isoN
@p0isoNz_twitter
Aug 30 2018 10:07
@junbest learning C# or learning ethereum
junbest
@junbest
Aug 30 2018 10:09
@p0isoN sample code for Nethereum with ETC
p0isoN
@p0isoNz_twitter
Aug 30 2018 10:19
@junbest I think you just connect to a web3 client that runs of ETC. I'm not 100% sure tho, so ask @juanfranblanco to verify
or the docs
also this sample provides a simple
usage of a smart contract (which happens to be a standard token)
to connect to ETC it is the same as the main ETH
once you have gone through all this, you can check chainids
alphasignal
@alphasignal
Aug 30 2018 10:51
@juanfranblanco how can I get the transaction hash that created the contract if I am loading the contract by its address?
ddinev90
@ddinev90
Aug 30 2018 12:57
I have been trying to follow the documentation and the youtube tutorial, however when I try to run the test, it always returns insufficient gas*price +value (the only difference is I have created my own smart contract, and am trying to deploy it instead of the multiplier in the videos, does anyone know what am i doing wrong ? (have tried using both web3 and web3geth) and it unlocks the account but stuck on deployment
p0isoN
@p0isoNz_twitter
Aug 30 2018 13:10
Do you have an eth balance?
ddinev90
@ddinev90
Aug 30 2018 13:20
I thought the tutorials were created on a test network, saw the script file and changed rpc to testrpc , launched truffle locally on port 8545, now it sort of works (still gotta fix a few things but I guess I am moving in the right direction ^_^ )
Juan Blanco
@juanfranblanco
Aug 30 2018 13:33
@alphasignal the only way is to scan the transaction receipts for the ContractAddress creation..
other interesting approaches would be if you know the creator
Juan Blanco
@juanfranblanco
Aug 30 2018 13:41
and the nonce
you might get somewhere faster
@p0isoNz_twitter > Say I had solidity code as a string, how would I upload that contract?
Compile it and deploy it
if you use the vs code solidity extension you can compile it and generate your deployment message for Nethereum
@sjalq if you keep the same instance of Web3 this is thread safe
and there is an internal inmemory nonce counter
using the InMemoryNonceService
Juan Blanco
@juanfranblanco
Aug 30 2018 13:47
NewCodeGenerator.gif
@FVE999_twitter the websockets only work upto version 1.8.2 of Geth then there were some breaking changes (limiting the size of the payload in Geth) which does not allow its usage
@Cdpopham are you using the 3.0.0 RC1 version?
sorry Enigmatic did answer already .. :)
@phoxha I love the Open Badges idea (same as Mozilla I guess)
You have identities with Uport and they were providing the capability to have attestations, Badges could be an attestation
Juan Blanco
@juanfranblanco
Aug 30 2018 13:52
Now regarding the standard, I don't know at the moment if anybody is working on that, I can ask the uport guys to see if they know something
Juan Blanco
@juanfranblanco
Aug 30 2018 14:00
@SkylosGT yes you can use Xamarin for IOS, Android, also Unity and Uno (UWP for iOS / Android)
Juan Blanco
@juanfranblanco
Aug 30 2018 14:17
@fuksi initiation with a public key and hence generating the addresses using the public key is not available. Now the signing of the transaction needs to be done using the private key of that address
This can be added / changed to the HD wallet as a constructor, raise an issue if you want
alphasignal
@alphasignal
Aug 30 2018 14:40
@juanfranblanco thank you very much...2 more questions I have:
  • what type can I use to stored uint256 from the smart contract...BigInteger is only 8 bytes so do I have to make my own type?
  • how can I find out if a transaction has failed from the TX hash?
Juan Blanco
@juanfranblanco
Aug 30 2018 15:24
uint256 is a BigInteger
to store it you will need to use hex or a string
if you get the transaction receipt using the transaction hash
there is a status field
which indicates if it has failed or not
Kevin Small
@KevinSmall
Aug 30 2018 15:53
For anyone interested in graphs or data visualisations. The Blockchain3D project is now open source, all Unity source code and assets now available here: https://github.com/KevinSmall/blockchain3d. Ethereum integration via Nethereum will be following later this year.
Juan Blanco
@juanfranblanco
Aug 30 2018 16:31
@KevinSmall that is really cool!!! :D