These are chat archives for Nethereum/Nethereum

17th
Aug 2017
no issues with Chinese at all
Need to rebuilt my pc yesterday, hence the delay on the response
the joys :D
thishe
@thisdhe_twitter
Aug 17 2017 06:54
thank u a lot. i try.
the input
thishe
@thisdhe_twitter
Aug 17 2017 06:56
ok
which contain all the function input information
so you just use contract.GetFunction<Type>(
thishe
@thisdhe_twitter
Aug 17 2017 07:01
thanks, i try,
Juan Blanco
@juanfranblanco
Aug 17 2017 11:40
@/all 2.0.0.rc7 is released
all feedback welcome
@kaista82_twitter have not forgotten about the ssh :) I spent most of the weekend on the solidity extension
kai
@kaista82_twitter
Aug 17 2017 11:41
lol, it's all good mate, i see you've been busy ;)
Juan Blanco
@juanfranblanco
Aug 17 2017 11:42
:+1:
kai
@kaista82_twitter
Aug 17 2017 11:43
I didn't realise you made that solidiy extension
very nice
Juan Blanco
@juanfranblanco
Aug 17 2017 11:43
yes vscode is actually great to build extensions
i created it just when vscode came out (well when they enabled extensions)
kai
@kaista82_twitter
Aug 17 2017 11:44
you do it in js right? electron or whatever its called
Juan Blanco
@juanfranblanco
Aug 17 2017 11:44
yes
kai
@kaista82_twitter
Aug 17 2017 11:44
yeah nice
impressive
Juan Blanco
@juanfranblanco
Aug 17 2017 11:44
it is all typescript
kai
@kaista82_twitter
Aug 17 2017 11:45
Have you used shh much Juan?
i wanted to know how it performs
if its ok for small 2,3,4 person chat
Juan Blanco
@juanfranblanco
Aug 17 2017 11:45
  • electron. They made an awesome job on the plug ability
that is the vscode team
--
kai
@kaista82_twitter
Aug 17 2017 11:46
yeah i use hyper.is which is built on it, so nice
Juan Blanco
@juanfranblanco
Aug 17 2017 11:46
ssh not really
kai
@kaista82_twitter
Aug 17 2017 11:46
ive messed with bitcore on electron too quite cool tech
Juan Blanco
@juanfranblanco
Aug 17 2017 11:46
have not used it much
kai
@kaista82_twitter
Aug 17 2017 11:46
yeah im not sure if its fit for my application I need decentralised RTC ideally but not large lobbies
Juan Blanco
@juanfranblanco
Aug 17 2017 11:46
but it should be fine with 3 / 4 people chat
kai
@kaista82_twitter
Aug 17 2017 11:47
yeah im more concerned about latency
if its < sec or around a couple seconds fie
Juan Blanco
@juanfranblanco
Aug 17 2017 11:47
well there is not much latency now
kai
@kaista82_twitter
Aug 17 2017 11:48
also the other subject, solidity, how do I debug / test it do I have to send up to testnet everytime?
Juan Blanco
@juanfranblanco
Aug 17 2017 11:48
whisper it is part of the nethereum roadmap
kai
@kaista82_twitter
Aug 17 2017 11:48
I've spent about 0 time on it
just reading
yeah its part of geth, just not sure how far its come and how far they intend to push it
Juan Blanco
@juanfranblanco
Aug 17 2017 11:48
as in standalone .net core / client
i think is a great idea (IMHO)
kai
@kaista82_twitter
Aug 17 2017 11:49
what shh?
Juan Blanco
@juanfranblanco
Aug 17 2017 11:49
yes
kai
@kaista82_twitter
Aug 17 2017 11:49
it gives contracts real world connections
i saw some guy buying coffee
with a connected device receiving shh call to make a drink
on an example video
Juan Blanco
@juanfranblanco
Aug 17 2017 11:49
well yeah
kai
@kaista82_twitter
Aug 17 2017 11:50
so i think thats great, and decentralised comms is never a bad thing imo
Juan Blanco
@juanfranblanco
Aug 17 2017 11:50
that is the awesome part
you sign your messages
and the receiver can verify the sender and
kai
@kaista82_twitter
Aug 17 2017 11:50
I really need to play with it more, I intend to over the next few days
Juan Blanco
@juanfranblanco
Aug 17 2017 11:50
validate the contract requrest
kai
@kaista82_twitter
Aug 17 2017 11:50
yeah, its cool
real cool
I need to figure out how to encrypt the messages
Juan Blanco
@juanfranblanco
Aug 17 2017 11:51
like in > pay for coffee
kai
@kaista82_twitter
Aug 17 2017 11:51
yeah you can imagine so many applications
Juan Blanco
@juanfranblanco
Aug 17 2017 11:51
notify of payment of coffee to vending machine (ssh)
kai
@kaista82_twitter
Aug 17 2017 11:51
for real world signaling
Juan Blanco
@juanfranblanco
Aug 17 2017 11:51
vending machine does not need to keep checking for events
kai
@kaista82_twitter
Aug 17 2017 11:51
toll booth, vending, lights in your house, has a million things
it does have to poll for the message doesn't it
Juan Blanco
@juanfranblanco
Aug 17 2017 11:52
vending machine verifies user / verifies payments, / verify ticket
well the machine will be a client
kai
@kaista82_twitter
Aug 17 2017 11:52
or do you just ask and it blocks forever until a message is received
Juan Blanco
@juanfranblanco
Aug 17 2017 11:52
just sockects
kai
@kaista82_twitter
Aug 17 2017 11:53
well yeah it could be built into the actual whisper code on receive i suppose
Juan Blanco
@juanfranblanco
Aug 17 2017 11:53
open the socket
for ticketing is actually a better use case
buy a ticket
arrive at venue
send message to machine
machine verifies ticket
signature user, etc
kai
@kaista82_twitter
Aug 17 2017 11:54
yeah
Juan Blanco
@juanfranblanco
Aug 17 2017 11:54
ticket closed
kai
@kaista82_twitter
Aug 17 2017 11:54
I wanted to build a project relating to ticketing due to all this dodgy ticketmaster buying it all up stuff, even the bands dont always like it cus they're core fans dont get in
Juan Blanco
@juanfranblanco
Aug 17 2017 11:55
yeah it is a funny thing
the bands make now the most money from the gigs
and ticketmaster controls the scene
a good use case for ujo :)
kai
@kaista82_twitter
Aug 17 2017 11:56
ujo?
Juan Blanco
@juanfranblanco
Aug 17 2017 11:57
kai
@kaista82_twitter
Aug 17 2017 11:57
so solidity extension, whats the best/easiet way to test/debug as I'm a noob and I'll need to do alot of it when i come to roll my sleeves up
do i have to keep pushing onto testnet or something
Juan Blanco
@juanfranblanco
Aug 17 2017 11:58
well to test the contracts as in unit test you can use truffle or dapp (dapple)
yes you will use test rpc
for that
kai
@kaista82_twitter
Aug 17 2017 11:58
ok ill try to get my head around it after properly understanding shh
Juan Blanco
@juanfranblanco
Aug 17 2017 11:58
if you want to do integration testing
you can use ...
which i put a BDD sample using specflow
also you can use geth with clique
which is Proof of Authority and runs very fast
kai
@kaista82_twitter
Aug 17 2017 12:02
so this testrpc runner
is like a shell
Juan Blanco
@juanfranblanco
Aug 17 2017 12:02
yeah
kai
@kaista82_twitter
Aug 17 2017 12:02
to the contract which gives rpc commands as geth would
but misses the network
Juan Blanco
@juanfranblanco
Aug 17 2017 12:02
yes
kai
@kaista82_twitter
Aug 17 2017 12:02
k good
i like
Juan Blanco
@juanfranblanco
Aug 17 2017 12:02
right this includes testrpc which is node
kai
@kaista82_twitter
Aug 17 2017 12:03
node js or a node
Juan Blanco
@juanfranblanco
Aug 17 2017 12:03
nodejs
kai
@kaista82_twitter
Aug 17 2017 12:03
k
Juan Blanco
@juanfranblanco
Aug 17 2017 12:03
and launches a new instance per test scenario
so you can build complex scenarios
BDD sample
well guerkin sample
kai
@kaista82_twitter
Aug 17 2017 12:04
i have never seen this syntax in my life
is it even a syntax
im confused
Juan Blanco
@juanfranblanco
Aug 17 2017 12:05
it is :)
kai
@kaista82_twitter
Aug 17 2017 12:05
lol
Juan Blanco
@juanfranblanco
Aug 17 2017 12:05
history goes like ->
unit tests (TDD) great but not descriptive of requiremets
(actually im writing a blog about this)
then dan north came and invented jbehave and Bdd out of it
kai
@kaista82_twitter
Aug 17 2017 12:06
whats wrong with commenting the unit test hehe
Juan Blanco
@juanfranblanco
Aug 17 2017 12:07
so mainly it enforce you to make your tests more readable and match the requiremetns
kai
@kaista82_twitter
Aug 17 2017 12:07
interesting
ahh
forces you to
now I get it
make the syntax for the rules i see now
Juan Blanco
@juanfranblanco
Aug 17 2017 12:07
that way you could generate the documentation from the tests
but also they will match the requirements
hence you have all the tests with
ShouldDoXandY
and starting with Given (setup)

kai
@kaista82_twitter
Aug 17 2017 12:08
pretty cool, this auto complete on your solidity extension will help me so much man
Juan Blanco
@juanfranblanco
Aug 17 2017 12:09
now guerkin and cucumber came later
kai
@kaista82_twitter
Aug 17 2017 12:09
these names
so good
oh back to shh
Juan Blanco
@juanfranblanco
Aug 17 2017 12:09
as you are able to discuss the requirements with the customer / end user and make them readable
kai
@kaista82_twitter
Aug 17 2017 12:09
yeah thats useful
Juan Blanco
@juanfranblanco
Aug 17 2017 12:10
from there you also get the "As a user I want to do this" which is normal of agile features now
kai
@kaista82_twitter
Aug 17 2017 12:10
shh, when neth has it, will it be polling for a message receive ?
Juan Blanco
@juanfranblanco
Aug 17 2017 12:10
well the idea is that you will spin your own server
kai
@kaista82_twitter
Aug 17 2017 12:10
yeah I feel slightly out of touch when it comes to agile/and some other bits ive worked for myself forever and i do get involved in larger teams now and again and pick some bits up but most of the time not
Juan Blanco
@juanfranblanco
Aug 17 2017 12:10
which can be in a wpf app
so that will mainly listen to any message
kai
@kaista82_twitter
Aug 17 2017 12:11
sorry are we talking shh now
Juan Blanco
@juanfranblanco
Aug 17 2017 12:11
yes :D
kai
@kaista82_twitter
Aug 17 2017 12:11
spin my own server? there is a shh .net server?
well
node code
Juan Blanco
@juanfranblanco
Aug 17 2017 12:11
well that I will create e
kai
@kaista82_twitter
Aug 17 2017 12:11
server what am i talkig about lol
Juan Blanco
@juanfranblanco
Aug 17 2017 12:11
one
for whisper
kai
@kaista82_twitter
Aug 17 2017 12:12
ohh cool
so if i understand right, you'll build a nice little wrapper
Juan Blanco
@juanfranblanco
Aug 17 2017 12:12
but it should compatible with the general whisper :) to allow communication interoperability
kai
@kaista82_twitter
Aug 17 2017 12:12
yeah
oh ok
Juan Blanco
@juanfranblanco
Aug 17 2017 12:13
no if we want to use a wrapper that will be communicating with geth through rpc
this will be mainly creating the same implementation in .net
kai
@kaista82_twitter
Aug 17 2017 12:13
that would be pretty sweet
Juan Blanco
@juanfranblanco
Aug 17 2017 12:13
same as swarm, devp2p etc
kai
@kaista82_twitter
Aug 17 2017 12:14
I'm still reading, i get broadcast, topic based so receivers subscribe to a "channel" of information, and from /to i need to get how the params work and also if its encrypted
yeah sawm and devp2p again reading about
swarm seems to be a decentralised file server and protocol for serving them
Juan Blanco
@juanfranblanco
Aug 17 2017 12:14
yeah
like ipfs
kai
@kaista82_twitter
Aug 17 2017 12:14
devp2p i thought was like a basic p2p protocol
which you can build on
Juan Blanco
@juanfranblanco
Aug 17 2017 12:15
yes
kai
@kaista82_twitter
Aug 17 2017 12:15
devp2p is exciting in that case
Juan Blanco
@juanfranblanco
Aug 17 2017 12:15
it is :D
kai
@kaista82_twitter
Aug 17 2017 12:16
we need .net standard compatible decentralised swarm type thing but i dont know how to solve the sql database problem hehe
so we can publish .net web apps
my main work is all web related and sql is almost always used
Juan Blanco
@juanfranblanco
Aug 17 2017 12:17
yeah the paradigm changes a bit
i think that you will still need always your cloud / servers etc
for simple UX, or analysis of decentralised systems, oracles, etc
kai
@kaista82_twitter
Aug 17 2017 12:18
yeah as soon as you introduce the net, latency goes up which is not good for sql and not just that syncronisation of that kind of data over a large set of nodes is close to impossible
Juan Blanco
@juanfranblanco
Aug 17 2017 12:19
yep you could still do interesting stuff
kai
@kaista82_twitter
Aug 17 2017 12:19
well
i say most use sql
most use sql to store cms content for instance
only the big crms i work on need the sql really
so need to think differently
Juan Blanco
@juanfranblanco
Aug 17 2017 12:20
yeah, but that simplifies the development
or the creation of a site
kai
@kaista82_twitter
Aug 17 2017 12:20
yeah, data layer some petapoco and boom im flying
Juan Blanco
@juanfranblanco
Aug 17 2017 12:20
and management, etc
exactly, it all comes down to the business need
kai
@kaista82_twitter
Aug 17 2017 12:21
yeah, time is money on these things
but as always pros and cons from both sides
is shh encrypted by default btw?
the message I mean
Juan Blanco
@juanfranblanco
Aug 17 2017 12:23
yep
kai
@kaista82_twitter
Aug 17 2017 12:23
does geth decrypt then or will I have to do it
oh geth cant can it, if i have my offline keys
Juan Blanco
@juanfranblanco
Aug 17 2017 12:24
yep
if you use geth, you delegate to geth
kai
@kaista82_twitter
Aug 17 2017 12:24
with neth have an option to do "offline"
Juan Blanco
@juanfranblanco
Aug 17 2017 12:24
"will have"
and option, well yes
kai
@kaista82_twitter
Aug 17 2017 12:25
ok cool, I've never seen/looked at your raw encrypt/decrypt code and if there is any yet
Juan Blanco
@juanfranblanco
Aug 17 2017 12:25
well there is nothing
kai
@kaista82_twitter
Aug 17 2017 12:25
ive read your library code in lots of places though just not all
Juan Blanco
@juanfranblanco
Aug 17 2017 12:25
:D
the whisper part will come after devp2p
kai
@kaista82_twitter
Aug 17 2017 12:25
ahh ok thats fine then as I say I've spent hours reading the lib so far
and didn't see much to do with it
Juan Blanco
@juanfranblanco
Aug 17 2017 12:26
but mainly you will control the keys as you will be the one running the server
as per geth
yes first devp2p
then whisper
or swarm :D
kai
@kaista82_twitter
Aug 17 2017 12:27
swarm does message passing too?
or works differently but can acheive the same thing
Juan Blanco
@juanfranblanco
Aug 17 2017 12:27
well that will store some files
so you could use it for messaging
kai
@kaista82_twitter
Aug 17 2017 12:27
yeah
Juan Blanco
@juanfranblanco
Aug 17 2017 12:27
for reliable messaging :D
like an ESB
kai
@kaista82_twitter
Aug 17 2017 12:28
your address could be a file which contains the messages
Juan Blanco
@juanfranblanco
Aug 17 2017 12:28
well hashes are unique
kai
@kaista82_twitter
Aug 17 2017 12:28
i could save to your file, or i could save to my file and you pick it up based on your address then decrypt
oh, hash per chat/message
swarm would be good, no 2 day timeout
good idea
Juan Blanco
@juanfranblanco
Aug 17 2017 12:29
yeah but the way it works is that the hashes change depending on content
but something to think about
once the core elements / ideas are there
then innovate
kai
@kaista82_twitter
Aug 17 2017 12:30
yeah lots of ideas though, I could have an index file which contains hashes of chats or messages
you goto index, get your public address and goto hash
then decrypt as i encrypted with your public key
probably much better ways
but i can already think of some
Juan Blanco
@juanfranblanco
Aug 17 2017 12:30
yes but your index file needs to be found
kai
@kaista82_twitter
Aug 17 2017 12:31
oh ofc
hash problem again
Juan Blanco
@juanfranblanco
Aug 17 2017 12:31
yep
kai
@kaista82_twitter
Aug 17 2017 12:31
so wait
swarm only has hashes, surely they need to overcome this problem too
Juan Blanco
@juanfranblanco
Aug 17 2017 12:32
well if you want to publish something
kai
@kaista82_twitter
Aug 17 2017 12:32
ok well a blockchain could store a users index file hash
Juan Blanco
@juanfranblanco
Aug 17 2017 12:32
that is permanent
yeah
kai
@kaista82_twitter
Aug 17 2017 12:32
oh
Juan Blanco
@juanfranblanco
Aug 17 2017 12:32
excactly
kai
@kaista82_twitter
Aug 17 2017 12:32
imutable
every revision is a new imutable one
ok
Juan Blanco
@juanfranblanco
Aug 17 2017 12:32
yes ethereum has the hashes
but you don't really want to store all the hashes of a chat
kai
@kaista82_twitter
Aug 17 2017 12:33
so i could just keep putting new tx's on block with latest index or something
Juan Blanco
@juanfranblanco
Aug 17 2017 12:33
that will be a expensive chat
yes
kai
@kaista82_twitter
Aug 17 2017 12:34
cant just let the messages bounce around the network for ever like shh or expire in 2 days, swarm may be a really solid way
love that idea
Juan Blanco
@juanfranblanco
Aug 17 2017 12:34
well you can use ipfs now too
kai
@kaista82_twitter
Aug 17 2017 12:36
I see
which do you think is better swarm or ipfs
@weitaolee
Aug 17 2017 12:37
@juanfranblanco thanks for your new release
Juan Blanco
@juanfranblanco
Aug 17 2017 12:38
ipfs is more widely use
there is some level of interoperability
@weitaolee thanks, let me know how it goes
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:41
Hi, I made progress on my playground.
just a question, I tried to call a transaction but it thrown an error ": 'Invalid account used signing'".
I can call other functions, but not this one
Juan Blanco
@juanfranblanco
Aug 17 2017 12:42
right..
so you were calling before
and now you are sending a transaction?
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:42
correct
Juan Blanco
@juanfranblanco
Aug 17 2017 12:42
calls are just like a query
to the internal state or calls to the smart contract (like stored procedure)
transactions are "commited" to the chain. The change the state and are appended to the blockchain
so your issue is that your account now is being validated
hopefully it makes sense
so.. if you are using a testchain internally you maybe using the wrong account
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:46
hmm
I'm using combination of Kovan + Parity
Juan Blanco
@juanfranblanco
Aug 17 2017 12:47
ok
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:47
I'm checking your tutorial, perhaps I need to unlock the account first?
Juan Blanco
@juanfranblanco
Aug 17 2017 12:47
how do you connect?
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:47
var client = new Nethereum.JsonRpc.Client.RpcClient(new Uri(thePositiveLabParityServerURI));
var account = new Account(_privateKey);
var web3 = new Web3(account, client);
Juan Blanco
@juanfranblanco
Aug 17 2017 12:48
ok
is your account in kovan?
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:48
yes
Juan Blanco
@juanfranblanco
Aug 17 2017 12:48
is your private key correct?
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:48
I deployed the MetaCoin
using this account
Juan Blanco
@juanfranblanco
Aug 17 2017 12:48
to kovan
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:48
yes to kovan
Juan Blanco
@juanfranblanco
Aug 17 2017 12:49
ah then there is not any issue with your account
ignore all the explanation before :D
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:49
I added unlock step, and I got new error 'Method not found'
Need to check now
Juan Blanco
@juanfranblanco
Aug 17 2017 12:50
yes parity
does not have unlock
that is geth specific
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:50
:O
Juan Blanco
@juanfranblanco
Aug 17 2017 12:50
hence the separation of libraries
also you don't need it as you are using your private key
to sign the transactions "offline"
can you paste your other code here?
(also note that in parity you can use personal_sendTransaction) which unlocks your account for that specific request
this is what it used when using a ManagedAccount
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:54
 var contract = web3.Eth.GetContract(contractABI, contractAddress);

                    var sendCoinFunction = contract.GetFunction("sendCoin");

                    //Send 100 coins to Freddy
                    var transactionHash = await sendCoinFunction.SendTransactionAsync(receipient, 100);
                    Console.WriteLine("Transaction hash: {0}" + transactionHash);

                    var receipt = await MineAndGetReceiptAsync(web3, transactionHash);
                    Console.WriteLine("Receipt: {0}" + receipt);
you right, the error is thrown from unlock method
Juan Blanco
@juanfranblanco
Aug 17 2017 12:56
that looks fine to me
check your MineAndGetReceipt
as you wont need to mine anything
you are connecting to Kovan
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:57
yea I removed the mining bit
Juan Blanco
@juanfranblanco
Aug 17 2017 12:57
of course, you have deployed your contract (doh!)
ok i think your are missing something
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:58
var sender = _publicAddress; //Our Main bank
var receipient = _freddy_PublicAddress;

var client = new Nethereum.JsonRpc.Client.RpcClient(new Uri(theParityServerURI));
var account = new Account(_privateKey);
var web3 = new Web3(account, client);

var deployedArtifacts = File.ReadAllText(@"D:\Source\Repos\extras\MetaCoin.json");
dynamic stuff = JsonConvert.DeserializeObject(deployedArtifacts);
string contractABI = stuff.abi.ToString();

string contractAddress = "0xf7c59bb578325f53d81f1624a31aef5c7b72415c";

Console.WriteLine("Contract Address: {0}" + contractAddress);

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

var sendCoinFunction = contract.GetFunction("sendCoin");

//Send 100 coins to Freddy
var transactionHash = await sendCoinFunction.SendTransactionAsync(receipient, 100);
Console.WriteLine("Transaction hash: {0}" + transactionHash);

var receipt = await MineAndGetReceiptAsync(web3, transactionHash);
Console.WriteLine("Receipt: {0}" + receipt);
Juan Blanco
@juanfranblanco
Aug 17 2017 12:58
sendCoinFunction.SendTransactionAsync(receipient, 100);
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:58
    public static async Task<TransactionReceipt> MineAndGetReceiptAsync(Web3 web3, string transactionHash)
    {
        var receipt = await web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(transactionHash);

        while (receipt == null)
        {
            Thread.Sleep(1000);
            receipt = await web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(transactionHash);
        }

        return receipt;
    }
Juan Blanco
@juanfranblanco
Aug 17 2017 12:58
wait ...
sendCoinFunction.SendTransactionAsync(YOURADDRESS, receipient, 100);
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 12:59
but metacoin is definition is
function sendCoin(address receiver, uint amount) returns(bool sufficient) {
Juan Blanco
@juanfranblanco
Aug 17 2017 12:59
yes
those are the parameters
for the function
but you need more for the transaction
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 13:00
that works!
'Transaction gas is too low. There is not enough gas to cover minimal cost of the transaction (minimal: 22872, got: 21000). Try increasing supplied gas.'
time to get more Keth :D
Juan Blanco
@juanfranblanco
Aug 17 2017 13:01
the truth is that I could remove the account parameter from, as we know it now, but in a simple connection, we dont have that information)
ha ha yes
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 13:02
I have a question on gas. so user will always need ETH in mainnet right?
regardless they use ETH as cryptocurrency (think trading) or for calling smart contract
Juan Blanco
@juanfranblanco
Aug 17 2017 13:04
yes as a user you will need a small amount of Ether
to interact with contracts
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 13:04
hmmm... this is quite tricky :D
because as ETH climbing up, the cost to transact actually goes up, am I right :D
Juan Blanco
@juanfranblanco
Aug 17 2017 13:04
I believe that in the new version, the smart contracts can fund some transactions
yes you are right
it will be great if gas is pegged to a currency
well fiat
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 13:06
indeed...
I've been thinking if the app has massive user.
the gas can become a blocker for user to perform transaction
"oh no... I have no gas to complete this bidding...", and boat goes away :D
anyway.
in .SendTransactionAsync there is parameter for HexBigInteger "value"
Juan Blanco
@juanfranblanco
Aug 17 2017 13:21
yes that is the amount of Ether you want to send to your contract
kai
@kaista82_twitter
Aug 17 2017 13:22
in wei by default may I add
Juan Blanco
@juanfranblanco
Aug 17 2017 13:22
oh yes!
everything is always in wei
lowest unit
kai
@kaista82_twitter
Aug 17 2017 13:22
UnitConversion if you want to/from wei
Juan Blanco
@juanfranblanco
Aug 17 2017 13:22
^^
kai
@kaista82_twitter
Aug 17 2017 13:25
but i think rc5 had a bug so make sure you are on latest
man im working but really want to read more on devp2p and play with shh
Juan shh topics, and masks, is each topic represented by a bit or the entire topic data
(if you know)
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 13:29
thanks mate, I'm very happy so far :D manage to get all basic function works
kai
@kaista82_twitter
Aug 17 2017 13:29
cus Juan is a LEGEND!!!
provides all the code happiness
Juan Blanco
@juanfranblanco
Aug 17 2017 13:30
lol thanks :D
kai
@kaista82_twitter
Aug 17 2017 13:30
;)
oh topic is the entire thing
the mask is just gonna use matching bits over the different topics to find similarities
I think
so the mask will get a lot more than it asks for but will be relatively anonymous as to what it is asking for
so a bitwise OR on each column of the topics
atleast kind of
Fsetiaw4n
@Fsetiaw4n
Aug 17 2017 13:41
a request, may be in the method to get transaction hash, you can include a property to return etherscan
kai
@kaista82_twitter
Aug 17 2017 13:42
if you have a tx hash you can just append to the url no?
or do I misunderstand
Juan Blanco
@juanfranblanco
Aug 17 2017 13:59
@Fsetiaw4n yes as much i love @mtbitcoin and etherscan, it will be tightly coupled to both etherscan and the current public chain you have chosen
@kaista82_twitter ^
kai
@kaista82_twitter
Aug 17 2017 14:40
yeah I think build your own little class to do it imo
oo whats this
ahh yes i was right about the mask
thanks mate
atleast I know a little bit hehe
Juan Blanco
@juanfranblanco
Aug 17 2017 14:41
you do :D
kai
@kaista82_twitter
Aug 17 2017 15:41
im falling out of love with nhibernate man
Veikko Eeva
@veikkoeeva
Aug 17 2017 15:45
Congratulations on the new version! Now I need just find time to utilize it! :D
Ah, fat ORMs, what a pain for no gain... :P
kai
@kaista82_twitter
Aug 17 2017 15:45
peta poco is so nice and simple
albeit without the nice join stuff
but its possible in a way for simple joins
but can use read only views
Veikko Eeva
@veikkoeeva
Aug 17 2017 15:47
I'd use views or procedures/functions to get data out and likely procedures/functions to put int. Then use the ORM as a (de)serialization wrapper and write SQL.
kai
@kaista82_twitter
Aug 17 2017 16:24
yeah peta lets you use normal queries
just maps the properties etc which is great
maintain control gain speed
Theoshan
@airgonaut22_twitter
Aug 17 2017 22:20
Hi everyone, I'm new to development with Nethereum. I have an issue when I call the web3.Miner. Apparently the miner method doesnt exist in the web3. I am running a private chain to test code. What is the possible reason for this? I have installed Nethereum.Web3
kai
@kaista82_twitter
Aug 17 2017 22:21
have you enabled it when starting geth or whatever you're using?
--rpc --rpcapi web3,eth,miner
Theoshan
@airgonaut22_twitter
Aug 17 2017 22:23
I am using the shell in the testchain folder. The code works for me in visual code, but not when I use it in Visual Studio.
image.png
kai
@kaista82_twitter
Aug 17 2017 22:25
oh thats a reference issue, what did you download via nuget?
Theoshan
@airgonaut22_twitter
Aug 17 2017 22:25
yes
kai
@kaista82_twitter
Aug 17 2017 22:25
what version and what did you download via nuget?
Theoshan
@airgonaut22_twitter
Aug 17 2017 22:26
2.0.0-rc7 Nethereum.Web3
1.0.6
kai
@kaista82_twitter
Aug 17 2017 22:33
with geth?
have you got geth nuget on core or using pcl and then not on the other project?
Theoshan
@airgonaut22_twitter
Aug 17 2017 22:45
Yes I do have Nethereum.Geth installed.
kai
@kaista82_twitter
Aug 17 2017 22:45
can you do new MinerApiService() and get the reference?