Skip to content

Instantly share code, notes, and snippets.

View juanfranblanco's full-sized avatar
👋
Always here... (when not sleeping)

Juan Blanco juanfranblanco

👋
Always here... (when not sleeping)
  • United Kingdom
View GitHub Profile
using Nethereum.ABI.FunctionEncoding.Attributes;
using Nethereum.Contracts;
using Nethereum.JsonRpc.WebSocketStreamingClient;
using Nethereum.RPC.Reactive.Eth.Subscriptions;
using System;
using System.Numerics;
using System.Threading.Tasks;
namespace Nethereum.TokenTransferStreamingExample
{
@juanfranblanco
juanfranblanco / CirclesPrivateKey.cs
Created November 9, 2020 07:36
Circles uses the mnemonic entropy to generate its private key, this is a quick workaround to calculate the private key. Code is extracted from NBitcoin, so it could be made a pull to match the javascript bip39 library
using NBitcoin;
using Nethereum.Hex.HexConvertors.Extensions;
using Nethereum.RLP;
using Nethereum.Util;
using System;
using System.Collections;
using System.Linq;
namespace CirclesPrivateKey
{
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Numerics;
using Nethereum.Hex.HexTypes;
using Nethereum.ABI.FunctionEncoding.Attributes;
using Nethereum.Web3;
using Nethereum.RPC.Eth.DTOs;
using Nethereum.Contracts.CQS;
using Nethereum.Contracts;
@juanfranblanco
juanfranblanco / UniswapPairV2.cs
Last active September 24, 2020 08:52
UniswapPairV2
using Nethereum.ABI.FunctionEncoding.Attributes;
using Nethereum.Contracts;
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
namespace Nethereum.Uniswap.PairV2
{
public partial class UniswapPairDeployment : UniswapPairDeploymentBase
@juanfranblanco
juanfranblanco / UniswapRouterV2.cs
Last active April 14, 2023 19:34
Uniswap Router V2 contract definition Nethereum
using Nethereum.ABI.FunctionEncoding.Attributes;
using Nethereum.Contracts;
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
namespace Nethereum.Uniswap.RouterV2
{
public partial class UniswapRouterDeployment : UniswapRouterDeploymentBase
/*
contract Test {
function love() public returns (string memory, bytes memory) {
return ("hello", "hello");
}
}
*/
// Run this in http://playground.nethereum.com just copy and paste it
// wait a second for background assemblies to load.. :)
using System;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Collections;
public class Program
{
// Run this in http://playground.nethereum.com just copy and paste it
// wait a second for background assemblies to load.. :)
using System;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Collections;
public class Program
{
// Run this in http://playground.nethereum.com just copy and paste it
using System;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Collections;
public class Program
{
using System;
using System.Text;
using Nethereum.Hex.HexConvertors.Extensions;
using System.Threading.Tasks;
using Nethereum.Hex.HexTypes;
using Nethereum.ABI.FunctionEncoding.Attributes;
using Nethereum.Web3;
using Nethereum.RPC.Eth.DTOs;
using Nethereum.Contracts.CQS;