requestNetwork
requestNetwork copied to clipboard
A JavaScript library for interacting with the Request Network protocol
## Description of the changes
## Description of the changes Adding forgotten tests for Near and Near testnet.
🚧 Blocked by https://github.com/graphprotocol/graph-ts/issues/80
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
supersedes https://github.com/RequestNetwork/requestNetwork/pull/945 and https://github.com/RequestNetwork/requestNetwork/pull/943 ## Context The `advanced-logic` layer is a stateless singleton that contains an instance of all payment networks (PN). When created (see [its class](https://github.com/RequestNetwork/requestNetwork/blob/312ce4a0f1826607edc60ccc3c6ca9e8c6bd1643/packages/advanced-logic/src/advanced-logic.ts)), it has no...
Main update of the batch contract: - add batch fee limit in USD - rename batchRouter into batchPayments Adding it makes the smart contract exceed the limit and stack too...
Add the possibility to add/skip the batch fee amount in USD limit using the payment-processor methods. e.g: activated, a payer will pay no more than $150 batch fees. To make...