Benjamin Levesque

Results 18 issues of Benjamin Levesque

This enables creating a request with payee/payer delegates, instead of adding them after creation

This change allows 2 things: - using more specific types, like `ERC20Currency`: ```ts const method = (c: ERC20Currency) => c; if (curr.type === 'ERC20') { method(curr); } ``` - simplify...

Motivations - `ethers` is used everywhere in the codebase - web3 causes the node to crash if connection breaks - types and code readability Additionally, this allows to remove hd-wallet-provider...

Unions are more powerful than enums in TS. To avoid breaking changes, we keep the export of the former enums as variables. Recommended reading (and inspiration): https://rlee.dev/writing/stop-misusing-typescript-string-enums

- chore: Enums to Unions - fix lint & tests - fix build - chore: improve PN types - fix tests - chore: improve extension types

Strongly typing the Payment Network types will give type checking and autocompletion. The changes of this PR include some issues that were detected thanks to the strong typing