-
Notifications
You must be signed in to change notification settings - Fork 73
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
feat: support Shared Revenue collect module #935
Conversation
This pull request has been linked to 1 task:
|
🦋 Changeset detectedLatest commit: 9ffcc6d The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
0a27358
to
09c4865
Compare
collectNft: module.collectNft, | ||
collectLimit: module.collectLimit, | ||
endsAt: module.endsAt, | ||
creatorClient: module.creatorClient ?? undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so creatorClient is defined only if no fee?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct
| gql.LegacyLimitedTimedFeeCollectModuleSettings, | ||
): CollectFee; | ||
function buildCollectFee( | ||
module: Extract<CollectModuleSettings, { amount: gql.Amount }>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it read better than module: CollectModuleSettings
? or is the type safety better this way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it so that works only with modules that can have a fee.
This was more type safe at the call site.
I also provided the overloads so that call site is even more accurate as I experienced a typo while I was working and wasn't flagging the call.
Finally the implementation signature just supports all possible overrides.
09c4865
to
98e98bb
Compare
98e98bb
to
5a92d62
Compare
5a92d62
to
6901c33
Compare
6901c33
to
bcb477a
Compare
bcb477a
to
161e5bd
Compare
161e5bd
to
2787109
Compare
2787109
to
038ec64
Compare
038ec64
to
fd8059b
Compare
fd8059b
to
6c8c3c2
Compare
6c8c3c2
to
7272721
Compare
ab1b00e
to
1583121
Compare
* chore: removes mention of APP_NOT_ALLOWED broadcasst error reason * feat: support new Shared Revenue Collect module * Adopt mintFee and updates node scripts * Supports protocolSharedRevenueCollectOpenAction input * Verify allowance and balance of mint fee token too * Refactors OpenAction use-case * Updates PublicActProxy addresses * Improves resolveCollectPolicy * Fix EPOC value * Ensures correct publicPaidAct amount is used and correct spender * Simplifies use of config.sponsored * Fix OpenActionGateway tests
No description provided.