Skip to content

Commit

Permalink
feat: add limited fee collect module support (#4177)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Dec 11, 2023
1 parent 9463638 commit 145107d
Show file tree
Hide file tree
Showing 6 changed files with 9,705 additions and 1,921 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ const CollectAction: FC<CollectActionProps> = ({
openAction.__typename === 'LegacySimpleCollectModuleSettings' ||
openAction.__typename === 'LegacyMultirecipientFeeCollectModuleSettings' ||
openAction.__typename === 'LegacyFreeCollectModuleSettings' ||
openAction.__typename === 'LegacyFeeCollectModuleSettings';
openAction.__typename === 'LegacyFeeCollectModuleSettings' ||
openAction.__typename === 'LegacyLimitedFeeCollectModuleSettings';
const isFreeCollectModule = !amount;
const isSimpleFreeCollectModule =
openAction.__typename === 'SimpleCollectOpenActionSettings';
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/lib/getAllowanceModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const getAllowanceModule = (
return { field: 'openActionModule', name: 'Legacy Free collect' };
case OpenActionModuleType.LegacyFeeCollectModule:
return { field: 'openActionModule', name: 'Legacy Fee collect' };
case OpenActionModuleType.LegacyLimitedFeeCollectModule:
return { field: 'openActionModule', name: 'Legacy Limited Fee collect' };

// Follow modules
case FollowModuleType.FeeFollowModule:
Expand Down
10 changes: 10 additions & 0 deletions packages/lens/documents/fragments/OpenActionModulesFields.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ fragment OpenActionModulesFields on OpenActionModule {
}
... on LegacyLimitedFeeCollectModuleSettings {
type
contract {
...NetworkAddressFields
}
amount {
...AmountFields
}
collectLimit
followerOnly
recipient
referralFee
}
... on LegacyLimitedTimedFeeCollectModuleSettings {
type
Expand Down

1 comment on commit 145107d

@vercel
Copy link

@vercel vercel bot commented on 145107d Dec 11, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

web – ./

web-git-main-heyxyz.vercel.app
hey.xyz
heyxyz.vercel.app
web-heyxyz.vercel.app

Please sign in to comment.