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

update generated.ts and post-gated.ts #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 69 additions & 42 deletions src/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ export type AllPublicationsTagsRequest = {
source?: InputMaybe<Scalars['Sources']>;
};

export type AlreadyInvitedCheckRequest = {
address: Scalars['EthereumAddress'];
};

export type AndConditionInput = {
/** The list of conditions to apply AND to. You can only use nested boolean conditions at the root level. */
criteria: Array<AccessConditionInput>;
Expand Down Expand Up @@ -1842,6 +1846,17 @@ export type IllegalReasonInputParams = {
subreason: PublicationReportingIllegalSubreason;
};

export type InRequest = {
ethereumAddress: Scalars['EthereumAddress'];
numInvites: Scalars['Int'];
secret: Scalars['String'];
};

export type InTotalRequest = {
ethereumAddress: Scalars['EthereumAddress'];
secret: Scalars['String'];
};

export type InternalPinRequest = {
/** The shared secret */
items: Array<Scalars['Url']>;
Expand All @@ -1855,6 +1870,17 @@ export type InternalPinResult = {
referenceItem: Scalars['Url'];
};

export type InviteRequest = {
invites: Array<Scalars['EthereumAddress']>;
secret: Scalars['String'];
};

export type InvitedResult = {
__typename?: 'InvitedResult';
address: Scalars['EthereumAddress'];
when?: Maybe<Scalars['DateTime']>;
};

export type LimitedFeeCollectModuleParams = {
/** The collect module amount info */
amount: ModuleFeeAmountParams;
Expand Down Expand Up @@ -2306,6 +2332,8 @@ export type Mutation = {
hel?: Maybe<Scalars['Void']>;
hidePublication?: Maybe<Scalars['Void']>;
idKitPhoneVerifyWebhook: IdKitPhoneVerifyWebhookResultStatusType;
in?: Maybe<Scalars['Void']>;
invite?: Maybe<Scalars['Void']>;
nni?: Maybe<Scalars['Void']>;
nnv?: Maybe<Scalars['Void']>;
proxyAction: Scalars['ProxyActionId'];
Expand Down Expand Up @@ -2574,6 +2602,16 @@ export type MutationIdKitPhoneVerifyWebhookArgs = {
};


export type MutationInArgs = {
request: InRequest;
};


export type MutationInviteArgs = {
request: InviteRequest;
};


export type MutationNniArgs = {
request: NniRequest;
};
Expand Down Expand Up @@ -2785,21 +2823,6 @@ export type Nfi = {
i: Scalars['ChainId'];
};

/** Nft Collection type */
export type NftCollection = {
__typename?: 'NftCollection';
/** Collection chain ID */
chainId: Scalars['ChainId'];
/** The contract address "0x00001..." */
contractAddress: Scalars['ContractAddress'];
/** Collection ERC type */
contractType: Scalars['String'];
/** Collection name */
name: Scalars['String'];
/** Collection symbol */
symbol: Scalars['String'];
};

/** NFT collection filtering input */
export type NftCollectionInput = {
/** The chain id that the collection exists in */
Expand All @@ -2808,26 +2831,6 @@ export type NftCollectionInput = {
contractAddress: Scalars['ContractAddress'];
};

/** NFT collections result */
export type NftCollectionResult = {
__typename?: 'NftCollectionResult';
items: Array<NftCollection>;
pageInfo: PaginatedResultInfo;
};

/** NFT collections request */
export type NftCollectionsRequest = {
/** The chain ids to look for NFTs on. Ethereum and Polygon are supported. If omitted, it will look on both chains by default. */
chainIds?: InputMaybe<Array<Scalars['ChainId']>>;
cursor?: InputMaybe<Scalars['Cursor']>;
/** Exclude Lens Follower NFTs */
excludeFollowers?: InputMaybe<Scalars['Boolean']>;
limit?: InputMaybe<Scalars['Float']>;
/** Filter by owner address */
ownerAddress?: InputMaybe<Scalars['EthereumAddress']>;
profileId?: InputMaybe<Scalars['ProfileId']>;
};

/** The NFT gallery input */
export type NftGalleriesRequest = {
/** The profile id */
Expand Down Expand Up @@ -3300,6 +3303,7 @@ export type Profile = {
id: Scalars['ProfileId'];
/** The profile interests */
interests?: Maybe<Array<Scalars['ProfileInterest']>>;
invitedBy?: Maybe<Profile>;
/** Is the profile default */
isDefault: Scalars['Boolean'];
isFollowedByMe: Scalars['Boolean'];
Expand Down Expand Up @@ -3352,6 +3356,16 @@ export type ProfileFollowRevenueQueryRequest = {
profileId: Scalars['ProfileId'];
};

export type ProfileGuardianRequest = {
profileId: Scalars['ProfileId'];
};

export type ProfileGuardianResult = {
__typename?: 'ProfileGuardianResult';
disablingProtectionTimestamp?: Maybe<Scalars['DateTime']>;
protected: Scalars['Boolean'];
};

export type ProfileMedia = MediaSet | NftImage;

export type ProfileOnChainIdentityRequest = {
Expand Down Expand Up @@ -3888,6 +3902,7 @@ export type PublicationsQueryRequest = {
export type Query = {
__typename?: 'Query';
allPublicationsTags: PaginatedAllPublicationsTagsResult;
alreadyInvited: Scalars['Boolean'];
approvedModuleAllowanceAmount: Array<ApprovedAllowanceAmount>;
challenge: AuthChallengeResult;
claimableHandles: ClaimableHandles;
Expand Down Expand Up @@ -3916,11 +3931,12 @@ export type Query = {
globalProtocolStats: GlobalProtocolStats;
hasTxHashBeenIndexed: TransactionResult;
internalPin: Array<InternalPinResult>;
intotal: Scalars['Int'];
invited: Array<InvitedResult>;
invitesLeft: Scalars['Int'];
isIDKitPhoneVerified: Scalars['Boolean'];
iss: PrfResponse;
mutualFollowersProfiles: PaginatedProfileResult;
/** Get the NFT collections that the given wallet or profileId owns at least one NFT of. Only supports Ethereum and Polygon NFTs. Note excludeFollowers is set to true by default, so the result will not include Lens Follower NFTsunless explicitly requested. */
nftCollections: NftCollectionResult;
/** Get all NFT galleries for a profile */
nftGalleries: Array<NftGallery>;
nftOwnershipChallenge: NftOwnershipChallengeResult;
Expand All @@ -3932,6 +3948,7 @@ export type Query = {
profile?: Maybe<Profile>;
profileFollowModuleBeenRedeemed: Scalars['Boolean'];
profileFollowRevenue: FollowRevenueResult;
profileGuardianInformation: ProfileGuardianResult;
/** Get the list of profile interests */
profileInterests: Array<Scalars['ProfileInterest']>;
profileOnChainIdentity: Array<OnChainIdentity>;
Expand Down Expand Up @@ -3965,6 +3982,11 @@ export type QueryAllPublicationsTagsArgs = {
};


export type QueryAlreadyInvitedArgs = {
request: AlreadyInvitedCheckRequest;
};


export type QueryApprovedModuleAllowanceAmountArgs = {
request: ApprovedModuleAllowanceAmountRequest;
};
Expand Down Expand Up @@ -4070,6 +4092,11 @@ export type QueryInternalPinArgs = {
};


export type QueryIntotalArgs = {
request: InTotalRequest;
};


export type QueryIssArgs = {
request: PriRequest;
};
Expand All @@ -4080,11 +4107,6 @@ export type QueryMutualFollowersProfilesArgs = {
};


export type QueryNftCollectionsArgs = {
request: NftCollectionsRequest;
};


export type QueryNftGalleriesArgs = {
request: NftGalleriesRequest;
};
Expand Down Expand Up @@ -4125,6 +4147,11 @@ export type QueryProfileFollowRevenueArgs = {
};


export type QueryProfileGuardianInformationArgs = {
request: ProfileGuardianRequest;
};


export type QueryProfileOnChainIdentityArgs = {
request: ProfileOnChainIdentityRequest;
};
Expand Down
6 changes: 5 additions & 1 deletion src/publications/post-gated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ export const eoaAccessCondition = (
});

export const erc20AccessCondition = (
{ contractAddress, chainID, amount, condition, decimals } = {
{ contractAddress, name, symbol, chainID, amount, condition, decimals } = {
contractAddress: '0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889', // WMATIC on Mumbai
name: 'Wrapped MATIC',
symbol: 'WMATIC',
decimals: 18,
amount: '0.0001',
chainID: 80001,
Expand All @@ -52,6 +54,8 @@ export const erc20AccessCondition = (
): AccessConditionOutput => ({
token: {
contractAddress,
name,
symbol,
decimals,
amount,
chainID,
Expand Down