Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 19 14:34

    juanfranblanco on master

    Create2 contract address calcul… (compare)

  • Nov 15 13:02

    juanfranblanco on master

    More .net 5 Hd wallet .net 5 Hd wallet testing .net 5.0 (compare)

  • Nov 12 13:34

    juanfranblanco on master

    #655 adding cancellation token … (compare)

  • Nov 11 22:07

    juanfranblanco on master

    Rsk custom field now uses hex .Net5 initial migration, Abi de… Hd blazor test start migration … (compare)

  • Nov 10 09:27

    juanfranblanco on master

    Adding a seed to secure random … (compare)

  • Nov 10 09:26

    juanfranblanco on master

    #654 ManagedAccountTransactionM… Merge branch 'master' of https:… (compare)

  • Nov 03 18:46

    juanfranblanco on master

    Update bug_report.md (compare)

  • Nov 02 18:29

    juanfranblanco on master

    Update README.md (compare)

  • Oct 31 11:17

    juanfranblanco on master

    Signer adding overload DIDs initial commit Merge branch 'master' of https:… (compare)

  • Oct 29 11:19

    juanfranblanco on master

    Update README.md (compare)

  • Oct 29 10:48

    juanfranblanco on master

    Update README.md (compare)

  • Oct 29 10:46

    juanfranblanco on master

    Update README.md (compare)

  • Sep 07 12:38

    juanfranblanco on master

    #646 fix hdwallet added blazor … (compare)

  • Aug 28 15:28

    juanfranblanco on master

    Signing performance (start) + … Merge branch 'master' of https:… (compare)

  • Aug 19 20:23

    juanfranblanco on master

    boolean flag to get compressed … Merge pull request #642 from me… (compare)

  • Aug 07 16:28

    juanfranblanco on master

    Handling empty reponses eom, re… (compare)

  • Aug 07 15:54

    juanfranblanco on master

    Websocket client, allow to rece… Merge branch 'master' of https:… (compare)

  • Aug 03 10:57

    juanfranblanco on master

    Revert "JsonRpc/Logger: fix pos… Merge pull request #638 from Ne… (compare)

  • Aug 03 10:57

    juanfranblanco on revert-637-fixPossibleNRE

    Revert "JsonRpc/Logger: fix pos… (compare)

  • Aug 03 10:12

    juanfranblanco on master

    JsonRpc/Logger: fix possible Nu… Merge pull request #637 from kn… (compare)

check this guide
and this one
you can simply right click in a smart contract and code generate the c# api definition
those docs need updating
image.png
rpn80
@rpn80
Hello! I have a project with a deeper directory structure where solidity sub-project is at "proj/solidity". I want to use that sub-project solc npm installed module at "proj/solidity/node_modules/solcjs" with solidity.enableLocalNodeCompiler configuration but i guess that the vscode extension just looks at "proj/node_modules/solcjs". I'm I wrong?
Behemoth
@notBehemoth_twitter

@juanfranblanco Thanks. I used the 'Query' with the same params as the actual transaction and can see that it returns the amounts of the tokens similar to the 'GetAmountsOutFunction'. So can I just use this query instead of GetAmountsOutFunction as the query does what the GetAmountsOutFunction does and then some? Is GetAmountsOutFunction more performant than the query? Or should I use both? ( use GetAmountsOutFunction until I get amounts and then use the query once before submitting actual transaction)

I was thinking of putting the query call in a try catch block and running the query in an infinite loop until I get an amountOut value for the target token that can then be used in the actual transaction. But as you say, the query will THROW an error if the query call cannot succeed for any reason (other than gas issues as query calls do not use gas params). I should then be able to CATCH this error and discard it while trying the query call again and again in the infinite loop until the query succeeds (token is tradable) and then I will proceed to the actual transaction. What do you think?

Hashre
@Hashre

hello. I am stuck on a problem of trying to get the ERC20 balance of a token from an address for a given blockNumber.

https://ethereum.stackexchange.com/questions/89387/get-erc20-balance-of-token-holder-as-of-block-number-with-c-nethereum-and-infur

if I am going about this the wrong way, any advice?

Juan Blanco
@juanfranblanco
@rpn80 yes you are correct on your thinking
@notBehemoth_twitter yes that makes sense (catch / throw) regarding the output is the same, but when returning multiple parameters, etc the function output is necessary.
Juan Blanco
@juanfranblanco
@Hashre this will be due when trying to query a very old block and the public node is not an archiving one. (Maintaining all the previous States)
Behemoth
@notBehemoth_twitter

@notBehemoth_twitter yes that makes sense (catch / throw) regarding the output is the same, but when returning multiple parameters, etc the function output is necessary.

@juanfranblanco I am sorry I did not understand that well. The 'GetAmountsOutFunction' only returns a List<BigInteger> so it should be fine to replace it with the query which does the same. Right? Sorry if I'm too much of a noob.

Samguy036
@Samguy036
@juanfranblanco Hello. Last time, my project has problem with IL2CPP backend, then you suggest me to use AOT platform, and now I have a new problem. The error message saying "Loading assembly failed: "Assets/Plugins/Nethereum4Unity/System.Net.Http.dll". Do you probably know how to solve it?
Forgot to say, it's a unity project.
Samguy036
@Samguy036
Oh, I deleted the dll file, and update link.xml, that error is gone. But I got another one... " at Nethereum.JsonRpc.Client.RpcMessages.RpcResponseExtensions.GetStreamingResult[T] (Nethereum.JsonRpc.Client.RpcMessages.RpcStreamingResponseMessage response, System.Boolean returnDefaultIfNull, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <00000000000000000000000000000000>:0 "
Juan Blanco
@juanfranblanco
@notBehemoth_twitter yes correct (sorry i had to go)
@Samguy036 are you using websockets with Unity3d and AOT?
Behemoth
@notBehemoth_twitter
@juanfranblanco Thanks
Samguy036
@Samguy036
@juanfranblanco no I don’t. Should I?
Juan Blanco
@juanfranblanco
oh no .. just wondering how you got the StreamingResult
can you post a sample of your code?
MohamedDenta
@MohamedDenta
how to use raiden network in my python project ??
MohamedDenta
@MohamedDenta
How BAT token solve many views transactions ??
Juan Blanco
@juanfranblanco
@MohamedDenta I am sorry I cannot help you with Python probably you should ask in another group for that
What is the question about BAT?
MohamedDenta
@MohamedDenta
Every view bat token make a transaction ?
Juan Blanco
@juanfranblanco
ah you mean in the browser, page views? Sorry
MohamedDenta
@MohamedDenta
when should i use payable function ? in solidity
Juan Blanco
@juanfranblanco
@MohamedDenta this is used when you want to transfer some wei (Ether) to a smart contract
image.png
Joshua "Slice" Samuels
@Armslice
I have been tasked with creating a dapp in Unity where users don't have to pay for gas. They own their private key and it never leaves the device, and they tranfer tokens to the admin, but the admin pays for the gas. I've found the GSN implementation in Nethererum. What is the status of this feature? Will it work with Unity? Or can you give me some direction to getting this functionality. As I understand, poorly, the user must sign a message, and somehow send the signature to the admin, and the admin can process the transaction on their behalf. Meta transaction? That is extent of my limited knowledge on the subject. Any help would be very much appreciated. So far I have gotten the transfers working with the user paying the gas.
Juan Blanco
@juanfranblanco
If you are just relaying token transfer to the "admin" by signing a message, it can be easily done by the smart contract having a nonce counter, validate the authority of the sender (admin) and finally the user signing a message with their keys which contains the token amount to send and the current nonce (counter) number
that will be the most simple scenario as you know who you are delegating
Re GSN and Metatransactions those are not released yet also they need a specific implementation for Unity (coroutine)
Juan Blanco
@juanfranblanco
@/all we are going to start moving to discord for support and development / community if you want to head there now and ask questions etc feel free https://discord.gg/VhgHrp
Mark Virchenko
@BadgerTheAdger
hm ok
how about slack ?
did you consider it?
Juan Blanco
@juanfranblanco
@BadgerTheAdger yes I did, we did have a slack. but the problem is that you have to pay for message retention, searching is hard, you cannot group chats, and everyone is moving to discord now, so it is easier for people to switch servers.
Also used keybase which is better than slack for privacy etc.
But not great for organising
Mark Virchenko
@BadgerTheAdger
Ok which of the two is better for private team communication in your opinion? Seems like discord is better for public stuff but slack for private stuff? Or discord outbeats slack in both of the two concerns ?
Crocus98
@Crocus98
Hello, I am pretty new to Nethereum and I tried to create 2 smart contracts communicating with each others. I tried on remix to access a simple public string who is set to a value and it's working. Then I deployed them with Nethereum (usign Autogen Api) and used "await myService1.myFunctionQueryAsync();" but it's always returning null. I can't understand what is the problem (+ here there is no interaction with the 2 contracts).
Juan Blanco
@juanfranblanco
@Crocus98 private? Keybase. It is secure. But I'm starting as a power user of Discord now. Slack is good for its plugins, webhooks
@Crocus98 can we take it to Discord https://discord.gg/ThPJESJt28
Sorry first message was for @BadgerTheAdger :)
Crocus98
@Crocus98
Ok thanks, I'll join Discord server