profile
viewpoint
Ian Gregson iangregsondev Málaga, Spain https://iangregsob.dev Lightning Network enthusiast using React, NodeJS and Golang https://www.linkedin.com/in/iangregsondev #react #nodejs #golang #lightningnetwork

iangregsondev/eslint-config 1

A standard base ESLint configuration file.

iangregsondev/avro-typescript 0

TypeScript Code Generator for Apache Avro Schema Types

iangregsondev/bcoin 0

Library for access a bcoin node

iangregsondev/bug-nest-graphql-whitelist-error 0

Sample repository for NestJS to show a bug when setting whitelist to true and graphql resolver arguments

iangregsondev/fsnotify 0

Cross-platform file system notifications for Go.

iangregsondev/generate-typescript-from-avro 0

Generate typescript interface types from avro files.

iangregsondev/golang-code-review 0

Repository for golang code reviews

iangregsondev/graphql-shield 0

🛡 A GraphQL tool to ease the creation of permission layer.

issue commentdart-bitcoin/bitcoin_flutter

PSBT - Partially Signed BITCOIN Transaction

Hi @RohanKapurDEV did you have any status on PBST support ?

I would like to use it to build a transaction for sending to a lightning node - I did look at bitcoin js lib and it seems to support it - but I have decided to go down the path of Flutter for a mobile app rather than react native :-)

Thanks.

longhoangwkm

comment created time in 4 days

PublicEvent

create barnchiangregsondev/generate-typescript-from-avro

branch : master

created branch time in 15 days

created repositoryiangregsondev/generate-typescript-from-avro

Generate typescript interface types from avro files.

created time in 15 days

fork iangregsondev/avro-typescript

TypeScript Code Generator for Apache Avro Schema Types

fork in 15 days

issue openednrwl/nx

Support of eslint in Angular 10 ?

Hi,

I just created a new NX app that consists of one angular app. (Angular 10)

I noticed that it is still creating tslint (deprecated), do you know what our options are to install eslint?

Has anybody physically done this yet?

Thanks in advance

created time in 17 days

issue commentjoewood/avro-typescript

Library release ?

IN the meantime, I was able to install it using the following

npm install github:joewood/avro-typescript#6dffae1e4fa6d70f59e73537271f1a704a026e41 -D

in case anybody else needs it.

iangregsondev

comment created time in 18 days

issue openedjoewood/avro-typescript

Library release ?

Hi @joewood , in march you merged a pull request. https://github.com/joewood/avro-typescript/pull/6

I noticed that nothing was released on NPM - so do an npm install, this is not available.

Do you plan on releasing it?

The last release is 3 years ago - I believe. https://www.npmjs.com/package/avro-typescript

Thanks

created time in 18 days

startedbitcoin-sv/bitcoin-sv

started time in 25 days

issue commentnrwl/nx

`nx test` does not run all tests

@johannesschobel well if you call it with the command CI (which is automatically done on the CI server anyway you do not pass the CI), it seems that it internally calls

nx run-many --all --target=test "--ci"

So it is actually calling the recommended command ie.

npx nx run-many --all --target=test

but we know of course, calling this on a NON ci machine then it does not call the nx run-many

SO there is an inconsistency there.

As stated above, I was only passing the CI command locally to simulate a CI environment.

Cheers

I am not sure if it's intended or not.

johannesschobel

comment created time in a month

issue commentnrwl/nx

`nx test` does not run all tests

Yes 100% I spent almost a full day trying to figure it out :-(

Local same version of node, same repo.

CI : nx test - all tests are run including all libraries

LOCAL: nx test - only tests that belong to the main project are run (no libraries nothing else)

Managed to reproduce it locally by passing in the --ci parameter and it prints out

 npm run test -- --ci

> nx run-many --all --target=test "--ci"

notice that passing in the ci causes it to run

nx run-many --all --target=test "--ci"
johannesschobel

comment created time in a month

issue commentnrwl/nx

`nx test` does not run all tests

@vsavkin Hi, its worth mentioning that on the CI - all tests are run when running NX TEST

So our CI was failing but locally I couldn't figure it out as only the main project was being tested - all the library projects were not being run.

This isn't consistent then ?

So the CI is wrong ? it shouldn't run all tests ?

johannesschobel

comment created time in a month

issue closedaevitas/unity-patch

Great little patcher, what about a small config file?

Hi,

Great little patcher, I was looking at the code and I thought it would be really nice to be able to extract the hardcoded values for hex value offset etc to a config file.

This would allow people to edit this file (yaml, json or whatever) to support versions outside of releases.

Somebody could share the hex codes here in the issues and it would be possible to update the config file to patch a non-supported version - that hasn't been released yet.

Other uses could be to set up other things like a default path (current default is for windows), setting the default theme type etc meaning that somebody needs to worry less about the number of params to be passed on the cli.

I know there is some talk of a kind of UI for supporting a more interactive patching experience - this would probably be better.

Although, I think storing the byte offsets in some config file - would be really great.

Thanks for such a great tool.

closed time in a month

iangregsondev

issue closedspesmilo/electrumx

ElectrumX bitcoin support ? Other altcoins ?

Hi,

I am a little confused and wondered if anybody can confirm something?

I found this repo stating it was a fork of the original electrumx which seems to have dropped support for bitcoin (according to this readme) - although checking their repo it states they are dropping altcoin support and only bitcoin sv will be supported. So bitcoin (BTC) is still supported ?

Does this repo support BTC and does it support any altcoins ? I was looking specifically for litecoin.

Any help really appreciated.

Thanks

closed time in a month

iangregsondev

issue commentspesmilo/electrumx

ElectrumX bitcoin support ? Other altcoins ?

Thanks

iangregsondev

comment created time in a month

issue commentlightningnetwork/lnd

Trying to remove tower from client causes rpc error: code = Unknown desc = tower has unacked updates

@wpaulino sure - that's what I have done, so I have a new watchtower client connecting to the correct URL. All good.

But the old one still persists and although it's not causing any issues, it does output errors of WTC into the logs.

I just thought it would be possible to force remove it.

iangregsondev

comment created time in a month

issue openednrwl/nx

Gatsby new site gives MODULE_NOT_FOUND

Hi,

Just tried using the gatsby (new feature), following this blog

https://blog.nrwl.io/gatsby-support-custom-workspace-layouts-and-more-in-nx-9-4-497ae105bf4

but I get the following error

➜  gatsby-try git:(master) ✗ nr -i
? Which script do you want to execute? start
running command with prefix "start"

> gatsby-try@0.0.0 start /Users/ian/Development/Personal/typescript/gatsby-try
> nx serve


> nx run myblog:serve
internal/modules/cjs/loader.js:969
  throw err;
  ^

Error: Cannot find module '/Users/ian/Development/Personal/typescript/gatsby-try/node_modules/gatsby-cli/lib/index.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
Error during serve
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gatsby-try@0.0.0 start: `nx serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gatsby-try@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ian/.npm/_logs/2020-06-28T07_28_28_283Z-debug.log
NPM command npm run start -- failed with code 1

created time in a month

issue commentlightningnetwork/lnd

Trying to remove tower from client causes rpc error: code = Unknown desc = tower has unacked updates

Hi @wpaulino thanks for the response.

That is true, I did want to modify the address but I wasn't aware I could.

I have just tried the following but it did not work

lncli --macaroonpath /lnd/chain/bitcoin/testnet/admin.macaroon --tlscertpath /shared/tls.cert wtclient remove 038f7f36689b9d7274702f5bce3a5d8bc4596d4894d9985c5203604fff4daef425 02a826a62bb9ed7639ee0ad5e12a9071f03dcfa5d29311371b8f9145a1eeee34e0

so the address starting with 038 is what I wish to remove OR change with the address starting with 02a

I can easily add a new one which I can do, but removing OR changing the one mentioned above doesn't work.

Maybe I have the syntax of "wtclient remove" wrong

Can you confirm ?

Thanks

iangregsondev

comment created time in 2 months

issue openedlightningnetwork/lnd

Trying to remove tower from client causes rpc error: code = Unknown desc = tower has unacked updates

Background

Trying to remove a tower wtclient but it gives me an issue

Your environment

  • version of lnd : lnd version 0.10.99-beta commit=clock/v1.0.0-106-gc1ef5bb908606343d2636c8cd345169e064bdc91
  • which operating system (uname -a on *Nix) : ubuntu (in container)
  • version of btcd, bitcoind, or other backend bitcoins 0.19.1
  • any other relevant environment details

Steps to reproduce

I have a wtclient setup to the wrong address, in fact in the logs it is telling me it can’t dial. I want to remove it but it doesn’t let me

bash-5.0# lncli --macaroonpath /lnd/chain/bitcoin/testnet/admin.macaroon   --tlscertpath /shared/tls.cert wtclient remove 038f7f36689b9d7274702f5bce3a5d8bc4596d4894d9985c5203604fff4daef425
[lncli] rpc error: code = Unknown desc = tower has unacked updates

this is what the towers command retuns

   "towers": [
        {
            "pubkey": "038f7f36689b9d7274702f5bce3a5d8bc4596d4894d9985c5203604fff4daef425",
            "addresses": [
                "157.245.68.69:9911"
            ],
            "active_session_candidate": true,
            "num_sessions": 1,
            "sessions": [
            ]
        },

Expected behaviour

Allow me to remove a tower or allow some way to FORCE removal

Actual behaviour

It won't let me, please see the issue above.

created time in 2 months

issue commentvgarvardt/go-oauth2-pg

Wrongtype for GetByID and Create method ?

Great! Thank you, I will give it a try later today.

iangregsondev

comment created time in 2 months

issue openedcaarlos0/svu

Creates a new tag ?

Hi,

Great little utility, i was hoping on using it with go-releaser :-)

It wasn't clear from the readme, but does this ONLY output the next semantic version based on conventional commits ?

Or does it create the tag ?

is there an option to create the tag ?

Thanks in advance

created time in 2 months

issue commentvgarvardt/go-oauth2-pg

Wrongtype for GetByID and Create method ?

Great ! Thanks. Yes, i just took the example from the oauth2 readme.

Thanks again.

iangregsondev

comment created time in 2 months

issue openedvgarvardt/go-oauth2-pg

Wrongtype for GetByID and Create method ?

Hi,

Trying to add postgres to oauth but getting some initial problems, I am following the example in the readme. Do you see anything strange ?

Any help really appreciated. Thanks in advance.

./main.go:50:25: cannot use tokenStore (type *pg.TokenStore) as type "gopkg.in/oauth2.v4".TokenStore in argument to manager.MapTokenStorage:
	*pg.TokenStore does not implement "gopkg.in/oauth2.v4".TokenStore (wrong type for Create method)
		have Create("gopkg.in/oauth2.v3".TokenInfo) error
		want Create(context.Context, "gopkg.in/oauth2.v4".TokenInfo) error
./main.go:51:26: cannot use clientStore (type *pg.ClientStore) as type "gopkg.in/oauth2.v4".ClientStore in argument to manager.MapClientStorage:
	*pg.ClientStore does not implement "gopkg.in/oauth2.v4".ClientStore (wrong type for GetByID method)
		have GetByID(string) ("gopkg.in/oauth2.v3".ClientInfo, error)
		want GetByID(context.Context, string) ("gopkg.in/oauth2.v4".ClientInfo, error)

my imports

	"github.com/dgrijalva/jwt-go"
	"github.com/go-session/session"
	"gopkg.in/oauth2.v4/errors"
	"gopkg.in/oauth2.v4/generates"
	"gopkg.in/oauth2.v4/manage"
	"gopkg.in/oauth2.v4/server"

	"github.com/jackc/pgx/v4"
	pg "github.com/vgarvardt/go-oauth2-pg"
	"github.com/vgarvardt/go-pg-adapter/pgx4adapter"

and just doing a simple

	pgxConn, _ := pgx.Connect(context.TODO(), os.Getenv("DB_URI"))

	manager := manage.NewDefaultManager()

	adapter := pgx4adapter.NewConn(pgxConn)
	tokenStore, _ := pg.NewTokenStore(adapter, pg.WithTokenStoreGCInterval(time.Minute))
	defer tokenStore.Close()

	// generate jwt access token
	manager.MapAccessGenerate(generates.NewJWTAccessGenerate([]byte("00000000"), jwt.SigningMethodHS512))

	clientStore, _ := pg.NewClientStore(adapter)

	manager.MapTokenStorage(tokenStore)
	manager.MapClientStorage(clientStore)

image

created time in 2 months

issue commentSonarSource/SonarTS

Provide a whitelist for (false/positive) Module '@workspace/shared' is not listed as dependency in package.json (typescript:S4328)

@chrisaddams Hi, you have to create a new profile from the default and then you can override settings. It's not great to tell you the truth - but it works.

Personally I think SONAR should understand the tspaths in the package.json

iangregsondev

comment created time in 2 months

issue closedkyuupichan/electrumx

Litcoin support ?

Hi,

I was reading the docs and it seems going forward there will be no support for altcoins ?

So it will be bitcoin only plus bitcoin SV - is this correct?

So I was wondering if litecoin will no longer be supported ?

If it is supported, if I need to run both litcoin and bitcoin, should I run 2 different electrumx server to support the 2 different coins ?

is there any documentation of how to run it with litecoin - I presume there is some config to setup - but I couldn't find it

Thanks in advance.

closed time in 2 months

iangregsondev

issue commentkyuupichan/electrumx

Litcoin support ?

Thanks @smmalis37.

iangregsondev

comment created time in 2 months

issue commentinancgumus/learngo

Slack invite has expired.

Discord sounds good ?

iangregsondev

comment created time in 2 months

issue openedspesmilo/electrumx

ElectrumX bitcoin support ? Other altcoins ?

Hi,

I am a little confused and wondered if anybody can confirm something?

I found this repo stating it was a fork of the original electrumx which seems to have dropped support for bitcoin (according to this readme) - although checking their repo it states they are dropping altcoin support and only bitcoin sv will be supported. So bitcoin (BTC) is still supported ?

Does this repo support BTC and does it support any altcoins ? I was looking specifically for litecoin.

Any help really appreciated.

Thanks

created time in 2 months

issue openedkyuupichan/electrumx

Litcoin support ?

Hi,

I was reading the docs and it seems going forward there will be no support for altcoins ?

So it will be bitcoin only plus bitcoin SV - is this correct?

So I was wondering if litecoin will no longer be supported ?

If it is supported, if I need to run both litcoin and bitcoin, should I run 2 different electrumx server to support the 2 different coins ?

is there any documentation of how to run it with litecoin - I presume there is some config to setup - but I couldn't find it

Thanks in advance.

created time in 2 months

create barnchiangregsondev/golang-code-review

branch : master

created branch time in 2 months

created repositoryiangregsondev/golang-code-review

created time in 2 months

issue closedNagRock/ts-mockito

Spying on an object says "TypeError: Cannot redefined property"

Hi,

I have managed to spy on a couple of objects from node but lately I tried with a mapping library called morphism and i get the following error

Type error: Cannot redefined morph

I am doing the following

import * as morphism from "morphism"

image

The probem is, this happens on the spy(instance) - see above... so I am not sure what i can do.

It seems its trying to override a type.

I also checked the issues on the github for that library and it seems jest can mock this but I really didn't want to mix mocking frameworks.

Anybody have an idea if I can do anything ?

closed time in 2 months

iangregsondev

issue commentNagRock/ts-mockito

Spying on an object says "TypeError: Cannot redefined property"

Closing this issue, as it has gone unanswered for over 6 months, and I have since worked around it.

iangregsondev

comment created time in 2 months

startednovalagung/gubrak

started time in 2 months

startedLN-Zap/node-lnd-grpc

started time in 2 months

startedguggero/lnd-accounts

started time in 3 months

startedkyle-mccarthy/nest-next

started time in 3 months

issue openedinancgumus/learngo

Slack invite has expired.

Hi, The slack invite has expired.

created time in 3 months

issue openednrwl/nx

React schematics exports both "named" and "default" for components?

Hi,

Just started working with the react schematics and I notice that when you create a new UI component it exports both a named export and a default export.

Is there any reason for this?

I was looking at a tutorial by NX but it was never touched upon but I do notice that when consuming the UI components we import them using the "named" export.

I was wondering why?

I much prefer named exports so I was wondering why we are exporting default?

I seemed to remember a while ago I remember reading about an edge case where a named import had a problem with being consumed somewhere in react - but I just can't find it.

Its worth noting that even though the default export is there, it cannot be consumed from app.tsx for example

Would love to hear some feedback why, I mean, its there - so it must be there for a reason :-)

created time in 3 months

more