These are chat archives for Nethereum/Nethereum

8th
Nov 2017
Kevin Small
@KevinSmall
Nov 08 2017 08:16
I saw an interesting post on the unity forums, just FYI. Someone has rewritten ethminer in C# and it mines whilst people play unity games: https://forum.unity.com/threads/uminer-ethereum-cryptocurrency-miner-inside-unity.499917/ . Not released yet though and looks to be closed source.
Kevin Small
@KevinSmall
Nov 08 2017 12:36
Can anyone help me with understanding the role of https://github.com/Nethereum/Nethereum.BlockchainStorage. I do see why I'd want to store the blockchain in nice relational tables. Then I could do SQL and whatever analysis on it. That is clear.
What I don't get is the role of the transaction processor that I see documented in the blockchain storage project. Why would I want to process transactions again? What would happen? I can see it would mean events get raised again, but wouldn't they be visible in the logs anyway? And the result of processing transactions is always in the next block. So I don't see why I'd want to do this.
l-vitall
@l-vitall
Nov 08 2017 15:30
Hi, I'm trying to place a simple contract according with video https://www.youtube.com/watch?v=4t5Z3eX59k4, but multiplyFunction.CallAsync<int>(7) always returns 0. Contract is OK, I checked it in Remix. Function web3.Eth.GetCode.SendRequestAsync(receipt.ContractAddress) returns "0x". I think I missed some needed project references, what is a currently valid list of required packages for Nethereum.Web3 v.2.1.0? Thanks.
Veikko Eeva
@veikkoeeva
Nov 08 2017 19:49
Does anyone have an opinion if there is much difference in using geth or testrpc (or something else) to testing? I was looking at https://github.com/Nethereum/Nethereum.TestRPCRunner and noticed I've set up functionally the same, but using geth.
Veikko Eeva
@veikkoeeva
Nov 08 2017 20:13
@KevinSmall :point_up: November 8, 2017 2:36 PM Could be nice to know too. So this code can read Ethereum chain into in-memory POCOs that can then be persisted into storage?
Tatigo
@tatigo
Nov 08 2017 20:33
@KevinSmall would like to know that three :)
Veikko Eeva
@veikkoeeva
Nov 08 2017 21:09
Hmm, there's also Nethereum.Geth. Maybe I should use this...
I see here's something like https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Geth.Tests/ContractTest/DeployContractCallFunctionTester.cs. Does someone know if there's a test that compiles a Hello, world! contract, deploys and tests it?
Or something to that effect.
Tatigo
@tatigo
Nov 08 2017 21:32
So... need to deploy the contract and then call it methods. So far I use the unlockaccount on personal, then DeployContract on Eth. It gives me the deploed contract address. A question though, can I build the contract programatically to get the abi and bytecode or I need to have them already?
@tatigo All the examples seem to have the bytecode precompiled. This is a shame, it'd be nice to see and end-to-end example that creates the accounts, compiles, deploys, does something simple etc.
Tatigo
@tatigo
Nov 08 2017 21:38
there is ContractBuilder class in the sourcecode, looks like there should be something for getting the bytecode
@juanfranblanco Surely is laboring over these libraries and now over these workbooks. I come off as an ungrateful brat. :D
Tatigo
@tatigo
Nov 08 2017 21:42
Juan doing a great job so far, no complains :)
I wish there would be a way to get the bytecode programatically.
Veikko Eeva
@veikkoeeva
Nov 08 2017 21:44
@tatigo Nethereum/Nethereum#84 just found.
Though it's always possible to invoke a process, solc process in this case.
Tatigo
@tatigo
Nov 08 2017 21:45
great! exactly what i was looking for , thanks
Veikko Eeva
@veikkoeeva
Nov 08 2017 21:48
@tatigo If you're dabbling with code, I for one would appreciate a gist that starts from Solidity code, compiles it, creates and account, deploys the compiled code and so forth. :) It looks to me the Ethereum chain can be seen as a database file. I wonder if it were possible to run tests in parallel creating new chains (and miners) when needed and then just emptied out. Or, as in using .sqlproj, deploy a new chain when needed. :)
Now I think I need to keel into bed. It's midnight and I've been awake way too much during this week already (what can I say, it's an interesting world).
Tatigo
@tatigo
Nov 08 2017 21:51
yes, that would be very nice to be able to all of this. for now, i'm humble enough to just compile and deploy :)
Veikko Eeva
@veikkoeeva
Nov 08 2017 21:51
ethereum/go-ethereum#3793
Heh. :) Just reading some issues before going to bed. Not looking so strong...
Tatigo
@tatigo
Nov 08 2017 21:52
although stringifying sol code manually is also a pain. or am i missing some wonderfull tool?
Just recently someone coming along and helping people out?
@tatigo I think you want to see that one. The latest gear all the way to latest geth and Windows 10.
But now I'm really going to bed.
Tatigo
@tatigo
Nov 08 2017 21:57
hmn interesting
@veikkoeeva your google skills are much better than mine ;)