Skip to content

Conversation

@alexandre-abrioux
Copy link
Contributor

@alexandre-abrioux alexandre-abrioux commented Oct 10, 2022

This PR adds a composable evm-based payment network. It decouples the advanced-logic layer from the current state of deployed smart contracts. See discussion: #943 (comment)

This PR, if merged, would supersede the following: #943

public extensionType: ExtensionTypes.TYPE,
public extensionId: ExtensionTypes.ID,
public currentVersion: string,
protected constructor(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Constructors on abstract classes be protected

Copy link
Contributor

@benjlevesque benjlevesque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this is even required...
having the network hard coded in the library feels wrong;

could we rely on smart-contracts for that? or be more permissive?

@benjlevesque
Copy link
Contributor

@alexandre-abrioux the advanced logic doesn't depend on smart-contracts. Maybe the solution would be to move the check on the network/version in the request-client? Or, maybe easier, in payment-detection.
Yes I think that makes sense: the paymentNetwork factory can take care of that check I think...

public readonly extensionId: ExtensionTypes.ID = ExtensionTypes.ID
.PAYMENT_NETWORK_ERC777_STREAM,
public readonly currentVersion: string = CURRENT_VERSION,
public readonly supportedNetworks: string[] = EvmBasedPaymentNetwork.EVM_NETWORKS,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexandre-abrioux ERC777 is not supported on all networks, most importantly mainnet is not supported

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KolevDarko I took a different approach in the end as advised by Benji. I'm working on it here: #950

@alexandre-abrioux alexandre-abrioux deleted the evm-based branch October 14, 2022 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants