8000 interface for Subscription by KelvinThai · Pull Request #71 · Bisonai/orakl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

interface for Subscription #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 30 commits into from
Closed

Conversation

KelvinThai
Copy link
Contributor
@KelvinThai KelvinThai commented Dec 20, 2022

New files:

  • CoordinatorBaseInterface: All coordinators should implement this interface
  • PrepaymentInterface:
  • VRFCoordinatorInterface1
  • Prepayment + VRFcoordinator1: split from the old VRFCoordinator

@KelvinThai KelvinThai marked this pull request as ready for review December 29, 2022 07:30
Copy link
Member
@martinkersner martinkersner left a comment

Choose a reason for hiding this comment

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

Good job! There are quite many comments but I think it can get resolved quickly!

@@ -0,0 +1,315 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;
import "openzeppelin-solidity/contracts/access/AccessControlEnumerable.sol";
Copy link
Member

Choose a reason for hiding this comment

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

I think there is some convention where people prepend @ in front of packages that are imported from node-modules. It can help us to understand project structure from the get-go.

) ConfirmedOwner(msg.sender) {
// BLOCKHASH_STORE = BlockhashStoreInterface(blockhashStore);
// set prepayment
Prepayment=prepayment;
Copy link
Member

Choose a reason for hiding this comment

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

I did not find any function which allow us to update the prepayment. It would be nice to be able to change it if necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean when we update the implementations of prepayment but with the same interface?

Copy link
Member

Choose a reason for hiding this comment

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

Yes. In case there is some implementation issue but not problem with interface. Do you think it could be less secure if we offer the change of payment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm!. let me think about it more. there could be a lot of scenarios

@@ -0,0 +1,34 @@
import pkg from 'hardhat'
Copy link
Member

Choose a reason for hiding this comment

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

Soon, we will be using exclusively hardhat-deploy which will require a little bit different (but MUCH better!) style of deployment and testing so I am not going to comment on this file.

const { expect } = require("chai");
const { loadFixture } = require("@nomicfoundation/hardhat-network-helpers");

const abi = [
Copy link
Member

Choose a reason for hiding this comment

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

With hardhat-deploy we want have to do these crazy imports. Coming soon!

@martinkersner martinkersner mentioned this pull request Jan 2, 2023
@martinkersner
Copy link
Member

This PR is somehow broken. Closing it for

@martinkersner martinkersner deleted the I-67/feat/Subscrition_payment branch January 6, 2023 03:23
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.

Separate payments (Prepayment) from utility contracts
2 participants
0