diff --git a/examples/node/scripts/publication/createOnChainPostTypedData.ts b/examples/node/scripts/publication/createOnChainPostTypedData.ts index b5a11fff71..fe54f87305 100644 --- a/examples/node/scripts/publication/createOnChainPostTypedData.ts +++ b/examples/node/scripts/publication/createOnChainPostTypedData.ts @@ -11,9 +11,6 @@ async function main() { const resultTypedData = await client.publication.createOnchainPostTypedData({ contentURI, - referenceModule: { - followerOnlyReferenceModule: false, // anybody can comment or mirror - }, }); const { id, typedData } = resultTypedData.unwrap(); diff --git a/examples/node/scripts/publication/postOnChain.ts b/examples/node/scripts/publication/postOnChain.ts index 8b68b75925..0ca3839398 100644 --- a/examples/node/scripts/publication/postOnChain.ts +++ b/examples/node/scripts/publication/postOnChain.ts @@ -7,11 +7,10 @@ async function main() { const wallet = setupWallet(); const client = await getAuthenticatedClientFromEthersWallet(wallet); + const contentURI = 'https://arweave.net/Ff8hn9iT0RXG3S_l0_AbYRb1OzY-4WS9QDRsEHBQpgw'; + const result = await client.publication.postOnchain({ - contentURI: 'ipfs://Qm...', // or arweave - referenceModule: { - followerOnlyReferenceModule: false, // anybody can comment or mirror - }, + contentURI, }); const resultValue = result.unwrap(); diff --git a/examples/node/scripts/shared/prepareMetadata.ts b/examples/node/scripts/shared/prepareMetadata.ts new file mode 100644 index 0000000000..55e11f49f9 --- /dev/null +++ b/examples/node/scripts/shared/prepareMetadata.ts @@ -0,0 +1,15 @@ +import { textOnly } from '@lens-protocol/metadata'; + +import { uploadWithBundlr } from './uploadWithBundlr'; + +export async function prepareMetadata(content = 'Post created with LensClient SDK') { + const metadata = textOnly({ + content, + }); + + const contentURI = await uploadWithBundlr(metadata); + + console.log(`Content URI: ${contentURI}`); + + return contentURI; +} diff --git a/packages/client/src/submodules/profile/graphql/profile.generated.ts b/packages/client/src/submodules/profile/graphql/profile.generated.ts index 0130081e75..3d4a220ec2 100644 --- a/packages/client/src/submodules/profile/graphql/profile.generated.ts +++ b/packages/client/src/submodules/profile/graphql/profile.generated.ts @@ -33,7 +33,7 @@ export type CreateOnchainSetProfileMetadataBroadcastItemResultFragment = { typedData: { types: { SetProfileMetadataURI: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { nonce: string; deadline: string; profileId: string; metadataURI: string }; }; }; @@ -43,7 +43,15 @@ export type CreateChangeProfileManagersBroadcastItemResultFragment = { typedData: { types: { ChangeDelegatedExecutorsConfig: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + delegatorProfileId: string; + delegatedExecutors: Array; + approvals: Array; + configNumber: number; + switchToGivenConfig: boolean; + }; }; }; @@ -53,7 +61,13 @@ export type CreateBlockProfilesBroadcastItemResultFragment = { typedData: { types: { SetBlockStatus: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + byProfileId: string; + idsOfProfilesToSetBlockStatus: Array; + blockStatus: Array; + }; }; }; @@ -63,7 +77,13 @@ export type CreateUnblockProfilesBroadcastItemResultFragment = { typedData: { types: { SetBlockStatus: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + byProfileId: string; + idsOfProfilesToSetBlockStatus: Array; + blockStatus: Array; + }; }; }; @@ -73,7 +93,14 @@ export type CreateFollowBroadcastItemResultFragment = { typedData: { types: { Follow: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + followerProfileId: string; + idsOfProfilesToFollow: Array; + followTokenIds: Array; + datas: Array; + }; }; }; @@ -83,7 +110,12 @@ export type CreateUnfollowBroadcastItemResultFragment = { typedData: { types: { Unfollow: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + unfollowerProfileId: string; + idsOfProfilesToUnfollow: Array; + }; }; }; @@ -93,7 +125,13 @@ export type CreateSetFollowModuleBroadcastItemResultFragment = { typedData: { types: { SetFollowModule: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + profileId: string; + followModule: string; + followModuleInitData: string; + }; }; }; @@ -409,6 +447,8 @@ export const CreateOnchainSetProfileMetadataBroadcastItemResultFragmentDoc = gql value { nonce deadline + profileId + metadataURI } } } @@ -431,6 +471,11 @@ export const CreateChangeProfileManagersBroadcastItemResultFragmentDoc = gql` value { nonce deadline + delegatorProfileId + delegatedExecutors + approvals + configNumber + switchToGivenConfig } } } @@ -453,6 +498,9 @@ export const CreateBlockProfilesBroadcastItemResultFragmentDoc = gql` value { nonce deadline + byProfileId + idsOfProfilesToSetBlockStatus + blockStatus } } } @@ -475,6 +523,9 @@ export const CreateUnblockProfilesBroadcastItemResultFragmentDoc = gql` value { nonce deadline + byProfileId + idsOfProfilesToSetBlockStatus + blockStatus } } } @@ -497,6 +548,10 @@ export const CreateFollowBroadcastItemResultFragmentDoc = gql` value { nonce deadline + followerProfileId + idsOfProfilesToFollow + followTokenIds + datas } } } @@ -519,6 +574,8 @@ export const CreateUnfollowBroadcastItemResultFragmentDoc = gql` value { nonce deadline + unfollowerProfileId + idsOfProfilesToUnfollow } } } @@ -541,6 +598,9 @@ export const CreateSetFollowModuleBroadcastItemResultFragmentDoc = gql` value { nonce deadline + profileId + followModule + followModuleInitData } } } diff --git a/packages/client/src/submodules/profile/graphql/profile.graphql b/packages/client/src/submodules/profile/graphql/profile.graphql index 11221251ce..4786c46d29 100644 --- a/packages/client/src/submodules/profile/graphql/profile.graphql +++ b/packages/client/src/submodules/profile/graphql/profile.graphql @@ -22,6 +22,8 @@ fragment CreateOnchainSetProfileMetadataBroadcastItemResult on CreateOnchainSetP value { nonce deadline + profileId + metadataURI } } } @@ -42,6 +44,11 @@ fragment CreateChangeProfileManagersBroadcastItemResult on CreateChangeProfileMa value { nonce deadline + delegatorProfileId + delegatedExecutors + approvals + configNumber + switchToGivenConfig } } } @@ -62,6 +69,9 @@ fragment CreateBlockProfilesBroadcastItemResult on CreateBlockProfilesBroadcastI value { nonce deadline + byProfileId + idsOfProfilesToSetBlockStatus + blockStatus } } } @@ -82,6 +92,9 @@ fragment CreateUnblockProfilesBroadcastItemResult on CreateUnblockProfilesBroadc value { nonce deadline + byProfileId + idsOfProfilesToSetBlockStatus + blockStatus } } } @@ -102,6 +115,10 @@ fragment CreateFollowBroadcastItemResult on CreateFollowBroadcastItemResult { value { nonce deadline + followerProfileId + idsOfProfilesToFollow + followTokenIds + datas } } } @@ -122,6 +139,8 @@ fragment CreateUnfollowBroadcastItemResult on CreateUnfollowBroadcastItemResult value { nonce deadline + unfollowerProfileId + idsOfProfilesToUnfollow } } } @@ -142,6 +161,9 @@ fragment CreateSetFollowModuleBroadcastItemResult on CreateSetFollowModuleBroadc value { nonce deadline + profileId + followModule + followModuleInitData } } } diff --git a/packages/client/src/submodules/publication/Publication.ts b/packages/client/src/submodules/publication/Publication.ts index 7a40a9ad5a..af6ab2710a 100644 --- a/packages/client/src/submodules/publication/Publication.ts +++ b/packages/client/src/submodules/publication/Publication.ts @@ -324,9 +324,6 @@ export class Publication { * ```ts * const result = await client.publication.postOnchain({ * contentURI: 'ipfs://Qm...', // or arweave - * referenceModule: { - * followerOnlyReferenceModule: false, // anybody can comment or mirror - * }, * }); * ``` */ @@ -550,9 +547,6 @@ export class Publication { * ```ts * const result = await client.publication.createOnchainPostTypedData({ * contentURI: 'ipfs://Qm...', // or arweave - * referenceModule: { - * followerOnlyReferenceModule: false, // anybody can comment or mirror - * }, * }); * ``` */ diff --git a/packages/client/src/submodules/publication/graphql/publication.generated.ts b/packages/client/src/submodules/publication/graphql/publication.generated.ts index fd864cfe8d..e25f65c8ce 100644 --- a/packages/client/src/submodules/publication/graphql/publication.generated.ts +++ b/packages/client/src/submodules/publication/graphql/publication.generated.ts @@ -114,7 +114,16 @@ export type CreateOnchainPostBroadcastItemResultFragment = { typedData: { types: { Post: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + profileId: string; + contentURI: string; + actionModules: Array; + actionModulesInitDatas: Array; + referenceModule: string; + referenceModuleInitData: string; + }; }; }; @@ -124,71 +133,66 @@ export type CreateOnchainCommentBroadcastItemResultFragment = { typedData: { types: { Comment: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + profileId: string; + contentURI: string; + pointedProfileId: string; + pointedPubId: string; + referrerProfileIds: Array; + referrerPubIds: Array; + referenceModuleData: string; + actionModules: Array; + actionModulesInitDatas: Array; + referenceModule: string; + referenceModuleInitData: string; + }; }; }; -export type CreateOnchainMirrorEip712TypedDataValueFragment = { - nonce: string; - deadline: string; - profileId: string; - pointedProfileId: string; - pointedPubId: string; - referrerProfileIds: Array; - referrerPubIds: Array; - referenceModuleData: string; -}; - -export type CreateOnchainMirrorEip712TypedDataTypesFragment = { - Mirror: Array; -}; - -export type CreateOnchainMirrorEip712TypedDataFragment = { - types: CreateOnchainMirrorEip712TypedDataTypesFragment; - domain: Eip712TypedDataDomainFragment; - value: CreateOnchainMirrorEip712TypedDataValueFragment; -}; - export type CreateOnchainMirrorBroadcastItemResultFragment = { id: string; expiresAt: string; typedData: { types: { Mirror: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + profileId: string; + metadataURI: string; + pointedProfileId: string; + pointedPubId: string; + referrerProfileIds: Array; + referrerPubIds: Array; + referenceModuleData: string; + }; }; }; -export type CreateOnchainQuoteEip712TypedDataValueFragment = { - nonce: string; - deadline: string; - profileId: string; - contentURI: string; - pointedProfileId: string; - pointedPubId: string; - referrerProfileIds: Array; - referrerPubIds: Array; - referenceModuleData: string; - actionModules: Array; - actionModulesInitDatas: Array; - referenceModule: string; - referenceModuleInitData: string; -}; - -export type CreateOnchainQuoteEip712TypedDataTypesFragment = { - Quote: Array; -}; - -export type CreateOnchainQuoteEip712TypedDataFragment = { - types: CreateOnchainQuoteEip712TypedDataTypesFragment; - domain: Eip712TypedDataDomainFragment; - value: CreateOnchainQuoteEip712TypedDataValueFragment; -}; - export type CreateOnchainQuoteBroadcastItemResultFragment = { id: string; expiresAt: string; - typedData: CreateOnchainQuoteEip712TypedDataFragment; + typedData: { + types: { Quote: Array }; + domain: Eip712TypedDataDomainFragment; + value: { + nonce: string; + deadline: string; + profileId: string; + contentURI: string; + pointedProfileId: string; + pointedPubId: string; + referrerProfileIds: Array; + referrerPubIds: Array; + referenceModuleData: string; + actionModules: Array; + actionModulesInitDatas: Array; + referenceModule: string; + referenceModuleInitData: string; + }; + }; }; export type CreateMomokaPostBroadcastItemResultFragment = { @@ -197,7 +201,16 @@ export type CreateMomokaPostBroadcastItemResultFragment = { typedData: { types: { Post: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + profileId: string; + contentURI: string; + actionModules: Array; + actionModulesInitDatas: Array; + referenceModule: string; + referenceModuleInitData: string; + }; }; }; @@ -207,7 +220,21 @@ export type CreateMomokaCommentBroadcastItemResultFragment = { typedData: { types: { Comment: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + profileId: string; + contentURI: string; + pointedProfileId: string; + pointedPubId: string; + referrerProfileIds: Array; + referrerPubIds: Array; + referenceModuleData: string; + actionModules: Array; + actionModulesInitDatas: Array; + referenceModule: string; + referenceModuleInitData: string; + }; }; }; @@ -217,7 +244,17 @@ export type CreateMomokaMirrorBroadcastItemResultFragment = { typedData: { types: { Mirror: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + profileId: string; + metadataURI: string; + pointedProfileId: string; + pointedPubId: string; + referrerProfileIds: Array; + referrerPubIds: Array; + referenceModuleData: string; + }; }; }; @@ -227,7 +264,21 @@ export type CreateMomokaQuoteBroadcastItemResultFragment = { typedData: { types: { Quote: Array<{ name: string; type: string }> }; domain: Eip712TypedDataDomainFragment; - value: { nonce: string; deadline: string }; + value: { + nonce: string; + deadline: string; + profileId: string; + contentURI: string; + pointedProfileId: string; + pointedPubId: string; + referrerProfileIds: Array; + referrerPubIds: Array; + referenceModuleData: string; + actionModules: Array; + actionModulesInitDatas: Array; + referenceModule: string; + referenceModuleInitData: string; + }; }; }; @@ -447,6 +498,12 @@ export const CreateOnchainPostBroadcastItemResultFragmentDoc = gql` value { nonce deadline + profileId + contentURI + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData } } } @@ -469,48 +526,22 @@ export const CreateOnchainCommentBroadcastItemResultFragmentDoc = gql` value { nonce deadline + profileId + contentURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData } } } ${Eip712TypedDataDomainFragmentDoc} `; -export const CreateOnchainMirrorEip712TypedDataTypesFragmentDoc = gql` - fragment CreateOnchainMirrorEIP712TypedDataTypes on CreateOnchainMirrorEIP712TypedDataTypes { - Mirror { - ...EIP712TypedDataField - } - } - ${Eip712TypedDataFieldFragmentDoc} -`; -export const CreateOnchainMirrorEip712TypedDataValueFragmentDoc = gql` - fragment CreateOnchainMirrorEIP712TypedDataValue on CreateOnchainMirrorEIP712TypedDataValue { - nonce - deadline - profileId - pointedProfileId - pointedPubId - referrerProfileIds - referrerProfileIds - referrerPubIds - referenceModuleData - } -`; -export const CreateOnchainMirrorEip712TypedDataFragmentDoc = gql` - fragment CreateOnchainMirrorEIP712TypedData on CreateOnchainMirrorEIP712TypedData { - types { - ...CreateOnchainMirrorEIP712TypedDataTypes - } - domain { - ...EIP712TypedDataDomain - } - value { - ...CreateOnchainMirrorEIP712TypedDataValue - } - } - ${CreateOnchainMirrorEip712TypedDataTypesFragmentDoc} - ${Eip712TypedDataDomainFragmentDoc} - ${CreateOnchainMirrorEip712TypedDataValueFragmentDoc} -`; export const CreateOnchainMirrorBroadcastItemResultFragmentDoc = gql` fragment CreateOnchainMirrorBroadcastItemResult on CreateOnchainMirrorBroadcastItemResult { id @@ -528,61 +559,50 @@ export const CreateOnchainMirrorBroadcastItemResultFragmentDoc = gql` value { nonce deadline + profileId + metadataURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData } } } ${Eip712TypedDataDomainFragmentDoc} `; -export const CreateOnchainQuoteEip712TypedDataTypesFragmentDoc = gql` - fragment CreateOnchainQuoteEIP712TypedDataTypes on CreateOnchainQuoteEIP712TypedDataTypes { - Quote { - ...EIP712TypedDataField - } - } - ${Eip712TypedDataFieldFragmentDoc} -`; -export const CreateOnchainQuoteEip712TypedDataValueFragmentDoc = gql` - fragment CreateOnchainQuoteEIP712TypedDataValue on CreateOnchainQuoteEIP712TypedDataValue { - nonce - deadline - profileId - contentURI - pointedProfileId - pointedPubId - referrerProfileIds - referrerPubIds - referenceModuleData - actionModules - actionModulesInitDatas - referenceModule - referenceModuleInitData - } -`; -export const CreateOnchainQuoteEip712TypedDataFragmentDoc = gql` - fragment CreateOnchainQuoteEIP712TypedData on CreateOnchainQuoteEIP712TypedData { - types { - ...CreateOnchainQuoteEIP712TypedDataTypes - } - domain { - ...EIP712TypedDataDomain - } - value { - ...CreateOnchainQuoteEIP712TypedDataValue - } - } - ${CreateOnchainQuoteEip712TypedDataTypesFragmentDoc} - ${Eip712TypedDataDomainFragmentDoc} - ${CreateOnchainQuoteEip712TypedDataValueFragmentDoc} -`; export const CreateOnchainQuoteBroadcastItemResultFragmentDoc = gql` fragment CreateOnchainQuoteBroadcastItemResult on CreateOnchainQuoteBroadcastItemResult { id expiresAt typedData { - ...CreateOnchainQuoteEIP712TypedData + types { + Quote { + ...EIP712TypedDataField + } + } + domain { + ...EIP712TypedDataDomain + } + value { + nonce + deadline + profileId + contentURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData + } } } - ${CreateOnchainQuoteEip712TypedDataFragmentDoc} + ${Eip712TypedDataFieldFragmentDoc} + ${Eip712TypedDataDomainFragmentDoc} `; export const CreateMomokaPostBroadcastItemResultFragmentDoc = gql` fragment CreateMomokaPostBroadcastItemResult on CreateMomokaPostBroadcastItemResult { @@ -601,6 +621,12 @@ export const CreateMomokaPostBroadcastItemResultFragmentDoc = gql` value { nonce deadline + profileId + contentURI + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData } } } @@ -623,6 +649,17 @@ export const CreateMomokaCommentBroadcastItemResultFragmentDoc = gql` value { nonce deadline + profileId + contentURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData } } } @@ -645,6 +682,13 @@ export const CreateMomokaMirrorBroadcastItemResultFragmentDoc = gql` value { nonce deadline + profileId + metadataURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData } } } @@ -667,6 +711,17 @@ export const CreateMomokaQuoteBroadcastItemResultFragmentDoc = gql` value { nonce deadline + profileId + contentURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData } } } diff --git a/packages/client/src/submodules/publication/graphql/publication.graphql b/packages/client/src/submodules/publication/graphql/publication.graphql index 1f19ed2816..36dd3178c1 100644 --- a/packages/client/src/submodules/publication/graphql/publication.graphql +++ b/packages/client/src/submodules/publication/graphql/publication.graphql @@ -138,12 +138,12 @@ fragment CreateOnchainPostBroadcastItemResult on CreateOnchainPostBroadcastItemR value { nonce deadline - # profileId - # contentURI - # collectModule - # collectModuleInitData - # referenceModule - # referenceModuleInitData + profileId + contentURI + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData } } } @@ -164,49 +164,21 @@ fragment CreateOnchainCommentBroadcastItemResult on CreateOnchainCommentBroadcas value { nonce deadline - # profileId - # contentURI - # profileIdPointed - # pubIdPointed - # collectModule - # collectModuleInitData - # referenceModuleData - # referenceModule - # referenceModuleInitData + profileId + contentURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData } } } -fragment CreateOnchainMirrorEIP712TypedDataValue on CreateOnchainMirrorEIP712TypedDataValue { - nonce - deadline - profileId - pointedProfileId - pointedPubId - referrerProfileIds - referrerProfileIds - referrerPubIds - referenceModuleData -} - -fragment CreateOnchainMirrorEIP712TypedDataTypes on CreateOnchainMirrorEIP712TypedDataTypes { - Mirror { - ...EIP712TypedDataField - } -} - -fragment CreateOnchainMirrorEIP712TypedData on CreateOnchainMirrorEIP712TypedData { - types { - ...CreateOnchainMirrorEIP712TypedDataTypes - } - domain { - ...EIP712TypedDataDomain - } - value { - ...CreateOnchainMirrorEIP712TypedDataValue - } -} - fragment CreateOnchainMirrorBroadcastItemResult on CreateOnchainMirrorBroadcastItemResult { id expiresAt @@ -223,55 +195,44 @@ fragment CreateOnchainMirrorBroadcastItemResult on CreateOnchainMirrorBroadcastI value { nonce deadline - # profileId - # profileIdPointed - # pubIdPointed - # referenceModuleData - # referenceModule - # referenceModuleInitData + profileId + metadataURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData } } } -fragment CreateOnchainQuoteEIP712TypedDataValue on CreateOnchainQuoteEIP712TypedDataValue { - nonce - deadline - profileId - contentURI - pointedProfileId - pointedPubId - referrerProfileIds - referrerPubIds - referenceModuleData - actionModules - actionModulesInitDatas - referenceModule - referenceModuleInitData -} - -fragment CreateOnchainQuoteEIP712TypedDataTypes on CreateOnchainQuoteEIP712TypedDataTypes { - Quote { - ...EIP712TypedDataField - } -} - -fragment CreateOnchainQuoteEIP712TypedData on CreateOnchainQuoteEIP712TypedData { - types { - ...CreateOnchainQuoteEIP712TypedDataTypes - } - domain { - ...EIP712TypedDataDomain - } - value { - ...CreateOnchainQuoteEIP712TypedDataValue - } -} - fragment CreateOnchainQuoteBroadcastItemResult on CreateOnchainQuoteBroadcastItemResult { id expiresAt typedData { - ...CreateOnchainQuoteEIP712TypedData + types { + Quote { + ...EIP712TypedDataField + } + } + domain { + ...EIP712TypedDataDomain + } + value { + nonce + deadline + profileId + contentURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData + } } } @@ -291,6 +252,12 @@ fragment CreateMomokaPostBroadcastItemResult on CreateMomokaPostBroadcastItemRes value { nonce deadline + profileId + contentURI + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData } } } @@ -311,6 +278,17 @@ fragment CreateMomokaCommentBroadcastItemResult on CreateMomokaCommentBroadcastI value { nonce deadline + profileId + contentURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData } } } @@ -331,6 +309,13 @@ fragment CreateMomokaMirrorBroadcastItemResult on CreateMomokaMirrorBroadcastIte value { nonce deadline + profileId + metadataURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData } } } @@ -351,6 +336,17 @@ fragment CreateMomokaQuoteBroadcastItemResult on CreateMomokaQuoteBroadcastItemR value { nonce deadline + profileId + contentURI + pointedProfileId + pointedPubId + referrerProfileIds + referrerPubIds + referenceModuleData + actionModules + actionModulesInitDatas + referenceModule + referenceModuleInitData } } }