These are chat archives for Nethereum/Nethereum

13th
Jun 2018
Juan Blanco
@juanfranblanco
Jun 13 2018 03:39
Hey @devedse you can deploy libraries but.. there is not a find and replace area
so you have to do it yourself
If you do something you can do a pull ;)
@devedse that is the code generator of Nethereum, if you use vscode that is the one it uses to generate the projects for csharp, vb.net and f#
mainly all the code generators have that base layer, which is also transpiled into javascript
we will be realising it this week as a tool, .net package and autogen if you add it as a nuget
Juan Blanco
@juanfranblanco
Jun 13 2018 03:58
and the last one you have decode function
mmotiy
@mmotiy
Jun 13 2018 05:39
hi~ I got a problem about node of parity .can any one help me?
Juan Blanco
@juanfranblanco
Jun 13 2018 05:44
what is the problem
mmotiy
@mmotiy
Jun 13 2018 05:47
I send a transaction to my node, but parity cant boardcast to the Ethereum...
Juan Blanco
@juanfranblanco
Jun 13 2018 05:48
is it synced?
although the best place to ask will be on the parity channel
mmotiy
@mmotiy
Jun 13 2018 05:48
no ,but I can scan from my node of parity.
and I can find it at api.etherscan.io
Juan Blanco
@juanfranblanco
Jun 13 2018 05:50
syncing will validate also the connection to the network ;)
mmotiy
@mmotiy
Jun 13 2018 05:50
it returns me :{"jsonrpc":"2.0","id":1,"result":"0x1bbeb7d8b8b227982b7c5e746936bd0c41679574208eb6b2d759442ddcde4ae2"}
Juan Blanco
@juanfranblanco
Jun 13 2018 05:51
???
so you are saying that your node is not synced
mmotiy
@mmotiy
Jun 13 2018 05:51
yes
Juan Blanco
@juanfranblanco
Jun 13 2018 05:51
but you have sent a transaction
using parirty to send the transaction (which is fine)
and then you can see the transaction in Etherscan
correct?
mmotiy
@mmotiy
Jun 13 2018 05:52
no . Etherscan tell me :Sorry, we are unable to locate this Transaction Hash
but I can get the info in my Node
My node tell me:
blockHash: null,
blockNumber: null,
chainId: null,
condition: null,
creates: null,
from: "0x93edd9e78d86ed92a43af5e9e8bb104f85b61d59",
gas: 30621,
gasPrice: 3000000000,
hash: "0x1bbeb7d8b8b227982b7c5e746936bd0c41679574208eb6b2d759442ddcde4ae2",
input: "0x5d5ce230000000000000000000000000000000000000000000000000000000000000109a",
nonce: 146,
publicKey: "0x0836a2d6d53f4ade9b0ce71d1d08810c893abc7763a197abff4a8728a575a14ea0e45b8306b9a2ff87ad6877e0226468de8a969c5b83508af687a6b307c07798",
r: "0xdf3abb795ed066196f86376b69fe49fd1a4fbee4ed18917a47bd2a85bd59c47a",
raw: "0xf88f819284b2d04c68000a45d5ce230000000000000000000000000000000000000000000000000000000000000109a1ba0df3abb795ed066196f86376b69fe49fd1a4fbee4ed18917a47bd2a85bd59c47aa005ad8777d444486df67699b886881309f8a38bff48997754417ba60292273815",
s: "0x5ad8777d444486df67699b886881309f8a38bff48997754417ba60292273815",
standardV: "0x0",
to: "0x93edd9e78d86ed92a43af5e9e8bb104f85b61d59",
transactionIndex: null,
v: "0x1b",
value: 1000000000000000
}
Juan Blanco
@juanfranblanco
Jun 13 2018 05:53
so you can see the transaction (pending?)
ah yes it is pending
sync your client
mmotiy
@mmotiy
Jun 13 2018 05:54
how can I do?
but the chainId is null. why?
Juan Blanco
@juanfranblanco
Jun 13 2018 05:54
are you connected to any nodes?
you can check eth.syncing
to validate the sync status (which it may be running the background)
mmotiy
@mmotiy
Jun 13 2018 05:56
eth.syncing is false
Juan Blanco
@juanfranblanco
Jun 13 2018 05:56
what is your blockNumber
(checking if is synced :) )
mmotiy
@mmotiy
Jun 13 2018 05:56
5780061
Juan Blanco
@juanfranblanco
Jun 13 2018 05:57
oh so you are synced then
mmotiy
@mmotiy
Jun 13 2018 05:57
it is complated synced
Juan Blanco
@juanfranblanco
Jun 13 2018 05:57
that was my first question :D
and you are connected
to the nodes as you have the latest block
mmotiy
@mmotiy
Jun 13 2018 05:58
yes
Juan Blanco
@juanfranblanco
Jun 13 2018 05:58
so your issue is that your transaction is still in pending state there
mmotiy
@mmotiy
Jun 13 2018 05:58
it is
Juan Blanco
@juanfranblanco
Jun 13 2018 05:58
but etherscan has not received it yet?
mmotiy
@mmotiy
Jun 13 2018 05:59
yes
Juan Blanco
@juanfranblanco
Jun 13 2018 05:59
it has not been broadcast then..
mmotiy
@mmotiy
Jun 13 2018 05:59
yes
so I want to know how to broadcast it
Juan Blanco
@juanfranblanco
Jun 13 2018 05:59
well parity should have done that for you
mmotiy
@mmotiy
Jun 13 2018 06:00
so I need to wait?
Juan Blanco
@juanfranblanco
Jun 13 2018 06:00
yep
mmotiy
@mmotiy
Jun 13 2018 06:00
blockHash: null,
blockNumber: null,
chainId: null,
condition: null,
creates: null,
Juan Blanco
@juanfranblanco
Jun 13 2018 06:00
all that information is null
mmotiy
@mmotiy
Jun 13 2018 06:00
but ,why the chainId is null?
Juan Blanco
@juanfranblanco
Jun 13 2018 06:00
because it has not been included in a block
idk about the chainId
mmotiy
@mmotiy
Jun 13 2018 06:01
What causes no broadcasting
Juan Blanco
@juanfranblanco
Jun 13 2018 06:04
well it can be a lot of network traffic
mmotiy
@mmotiy
Jun 13 2018 06:07
some transactions , when I use "eth.getTransaction" ,it returns me "null"
What is this?
Juan Blanco
@juanfranblanco
Jun 13 2018 06:08
null?
not found?
mmotiy
@mmotiy
Jun 13 2018 06:10
yes
but I had sent the transaction to my node.
Juan Blanco
@juanfranblanco
Jun 13 2018 06:10
well it might be pending
mmotiy
@mmotiy
Jun 13 2018 06:11
so why I find it in my node?
Juan Blanco
@juanfranblanco
Jun 13 2018 06:11
which is not the normal state
because it is pending
mmotiy
@mmotiy
Jun 13 2018 06:11
oh.
thank yuo
you
other question: when I connect my node and send a transaction to my node
it tell me :Error occurred when trying to send rpc requests(s)
and what is it?
Juan Blanco
@juanfranblanco
Jun 13 2018 06:12
An error has occurred when you sent the request (what is the inner exception)
mmotiy
@mmotiy
Jun 13 2018 06:16
let me see it
mmotiy
@mmotiy
Jun 13 2018 06:45
it seems cant find the inner exception
mmotiy
@mmotiy
Jun 13 2018 12:57
@juanfranblanco Hi! are u still there ?
Juan Blanco
@juanfranblanco
Jun 13 2018 12:58
sure..
have you put the right path?
mmotiy
@mmotiy
Jun 13 2018 12:58
no .
it got:Fatal: Failed to start the JavaScript console: api modules: Post http://127.0.0.1:8542: context deadline exceeded
I cannot attach geth
Juan Blanco
@juanfranblanco
Jun 13 2018 12:58
but you are using parity
are you using Nethereum by any
chance?
mmotiy
@mmotiy
Jun 13 2018 12:59
no ,
I do anything..
I do nothing
sorry
Juan Blanco
@juanfranblanco
Jun 13 2018 13:00
no i mean how can I help you with Nethereum?
what is your current setup?
any snippets of your code?
mmotiy
@mmotiy
Jun 13 2018 13:00
I am using Nethereum to connect my parity node....
Juan Blanco
@juanfranblanco
Jun 13 2018 13:01
ok..
so how are you connecting?
have you succesfully connected before?
mmotiy
@mmotiy
Jun 13 2018 13:02
It's just an ordinary query transaction. I feel that my node is very unstable. It will not be good for a while
Juan Blanco
@juanfranblanco
Jun 13 2018 13:02
have you tried to connect to infura?
and see if you have any problems there
(just trying to remove points of failure)
mmotiy
@mmotiy
Jun 13 2018 13:03
yes. I can use infura before . but these days. I cannot connect it
Juan Blanco
@juanfranblanco
Jun 13 2018 13:03
that should not be a problem..
what version of .net are you using?
mmotiy
@mmotiy
Jun 13 2018 13:03
in fact, I dont know where is the problem...:(
net 4.6
Juan Blanco
@juanfranblanco
Jun 13 2018 13:03
ok
if you were using 4.5.1 you need to add extra settings for the TSL (Ssl 2)
why don't you try infura and see if your problems disappear
mmotiy
@mmotiy
Jun 13 2018 13:04
I feel that my node is very unstable. some times is good,some times id bad
I cannot connect infura
Juan Blanco
@juanfranblanco
Jun 13 2018 13:05
hmm
are you having network problems?
it is as simple as
var web3 = new Web3("https://mainnet.infura.io");
btw that is main net not a test net
but you can do some queries etc and validate you can connect and your code works
and from there if everything is fine (should be) then move to your parity node
mmotiy
@mmotiy
Jun 13 2018 13:07
not need APIKey?
Juan Blanco
@juanfranblanco
Jun 13 2018 13:08
ah yeah you should put an API key
mmotiy
@mmotiy
Jun 13 2018 13:09
but I cannot connect Infrua :(
Maybe too many of my server calls have been sealed off
Juan Blanco
@juanfranblanco
Jun 13 2018 13:18
So you have spammed it?
mmotiy
@mmotiy
Jun 13 2018 13:19
no
and how to add extra settings for the TSL (Ssl 2)
mmotiy
@mmotiy
Jun 13 2018 13:23
add ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; when I am ready to connect the infura?
Juan Blanco
@juanfranblanco
Jun 13 2018 13:23
global setting
on your app
mmotiy
@mmotiy
Jun 13 2018 13:25
and my net 4.6.1 also need it?
mmotiy
@mmotiy
Jun 13 2018 13:53
@juanfranblanco do you know how to set my parity from http to https?
Juan Blanco
@juanfranblanco
Jun 13 2018 14:56
no you don't need it
and no I have not done that
in the parity channel they might be able to help you
Psilon
@Pzixel
Jun 13 2018 15:26
@juanfranblanco any possibility you will handle require(condition, "foo") error message?
Juan Blanco
@juanfranblanco
Jun 13 2018 15:27
yes when the message is output as part of the transaction receipt
Psilon
@Pzixel
Jun 13 2018 15:36
Well it seems that it isn't
Juan Blanco
@juanfranblanco
Jun 13 2018 15:36
i know :)
i should have said so
sorry
Psilon
@Pzixel
Jun 13 2018 15:37
Well, thank you for your work anyway
I think i'm going to try some rustish parity client
Juan Blanco
@juanfranblanco
Jun 13 2018 15:37
but I guess it will be availble soon
Psilon
@Pzixel
Jun 13 2018 15:38
it should have ws and some parity-specific functions
Juan Blanco
@juanfranblanco
Jun 13 2018 15:38
well that is Nethereum.Parity
Psilon
@Pzixel
Jun 13 2018 15:38
when I think we could get error messages soon enough (thanks god), ws and some other features may stay unimplemented for months

well that is Nethereum.Parity

I have a problem with API. I tried to use WS, but it's not here ;)

and some other stuff as well
Juan Blanco
@juanfranblanco
Jun 13 2018 15:39
what is missing add an issue
on the parity side
a part from ws
it will be great to know
Psilon
@Pzixel
Jun 13 2018 15:39
Yes, I add issues for issues I find
Another reason is I'd like to try Rust in production code ;)
Juan Blanco
@juanfranblanco
Jun 13 2018 15:40
lol i cannot deny you that pleasure :D
Psilon
@Pzixel
Jun 13 2018 15:40
and enable wasm VM to write contracts in Rust too. Now i have too many languages in my project
python/shell/C#/solidity/...
and I could replace them all with single one
why not?:)
Juan Blanco
@juanfranblanco
Jun 13 2018 15:41
yes makes sens
makes sense :)
you should use C
Psilon
@Pzixel
Jun 13 2018 15:41
Anyway
Juan Blanco
@juanfranblanco
Jun 13 2018 15:41
evething compiles to C :)
Psilon
@Pzixel
Jun 13 2018 15:41

you should use C

it looks just like my mouth when I read this proposal

it was fun to learn C but i would never write anything in it)
I like stongly typed languages
I'd better argue with compiler than debug the runtime
Juan Blanco
@juanfranblanco
Jun 13 2018 15:42
so why do you need python? trying to kill things with c#
and shell...
Psilon
@Pzixel
Jun 13 2018 16:08
I integrated with the queue which only have the only good client for python... ;)
So i learned it and written this queue reader
Devedse
@devedse
Jun 13 2018 20:50
@juanfranblanco , was checking out a bit on how I would do replaceing of the library params with Nethereum but as GETH doesn't have compile solidity functionality anymore wouldn't this be quite hard?
as you'd basically have to run SOLC.exe commands to link them together
Furthermore if I compile .sol files using your extension in VSCode I get strange names in the .bin files:
65b60008073c:/XGit/Nethereum/src/Nethereum.Cont632e
Whereas with SOLC I get this:
65b60008073CounterLib.sol:CounterLib___632e
So basically the vscode extension tries to include the whole path
Devedse
@devedse
Jun 13 2018 22:57
Or do you have some ideas on how to implement this :), I can take a look at it then maybe