Skip to content
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

Create voucher with , VoucherHub address, Set account as owner, expiration and deal with Authorization #6

Merged
merged 64 commits into from
Apr 4, 2024

Conversation

gfournieriExec
Copy link
Contributor

For the moment

Constructor

  • VoucherHub address
  • Set account as owner
  • expiration
    Store (onlyVoucherOwner) & get authorized account
  • mapping(address=>bool) public isAuthorized

function createVoucher(accountAddress,voucherTypeId,credit,expiration) onlyAdmin

  • Deploy new Voucher contract

TODO :
credits
Receive value or Call transferFrom credits from admin to voucher
Call deposit

@gfournieriExec gfournieriExec changed the base branch from main to develop March 29, 2024 16:07
@gfournieriExec gfournieriExec requested a review from zguesmi March 29, 2024 16:20
@gfournieriExec gfournieriExec self-assigned this Mar 29, 2024
contracts/VoucherHub.sol Outdated Show resolved Hide resolved
contracts/IVoucherHub.sol Outdated Show resolved Hide resolved
contracts/VoucherHub.sol Outdated Show resolved Hide resolved
contracts/beacon/Voucher.sol Outdated Show resolved Hide resolved
contracts/beacon/Voucher.sol Outdated Show resolved Hide resolved
contracts/beacon/Voucher.sol Outdated Show resolved Hide resolved
contracts/mocks/IVoucherV2Mock.sol Outdated Show resolved Hide resolved
contracts/beacon/Voucher.sol Outdated Show resolved Hide resolved
@gfournieriExec gfournieriExec marked this pull request as ready for review April 2, 2024 07:24
test/VoucherHub.test.ts Outdated Show resolved Hide resolved
test/beacon/Voucher.test.ts Outdated Show resolved Hide resolved
@zguesmi zguesmi self-requested a review April 3, 2024 14:42
contracts/VoucherHub.sol Outdated Show resolved Hide resolved
contracts/VoucherHub.sol Show resolved Hide resolved
test/VoucherHub.test.ts Show resolved Hide resolved
test/beacon/Voucher.test.ts Show resolved Hide resolved
Copy link
Member

@jeremyjams jeremyjams left a comment

Choose a reason for hiding this comment

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

👌

test/beacon/Voucher.test.ts Show resolved Hide resolved
@gfournieriExec gfournieriExec merged commit aaa0327 into develop Apr 4, 2024
1 check passed
@gfournieriExec gfournieriExec deleted the feature/create-typed-voucher branch April 4, 2024 11:58
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.

3 participants