-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
3030 lines (2463 loc) · 70.5 KB
/
schema.graphql
File metadata and controls
3030 lines (2463 loc) · 70.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
schema {
query: query
mutation: mutations
}
"""Publication type"""
type publication {
id: Int
ensLabel: String
displayName: String
avatarURL: String
entries: [entry]
crowdfundEntries: [crowdfund]
posts: [PostType]
publicationSettings: publicationSettings
contributors: [contributor]
nft: nft
}
"""Crowdfund type"""
type crowdfund {
_id: String
id: Int
crowdfundDraftId: Int
name: String
symbol: String
title: String
contributorAddress: String
description: String
content: String
publication: publication @deprecated(reason: "Use publisher to fetch creator and operator info")
operator: UserProfileType @deprecated(reason: "Use publisher to fetch creator and operator info")
address: String
fundingRecipient: String
goal: String
stretchGoal: String
network: String
transactionHash: String
contributionLimit: String
endsAt: Int
version: String
editions: [edition]
metadata: CrowdfundMetadataType
publishStatus: String
createdAt: String
blockState: BlockStateType
exchangeRate: String
token: mirrorERC20Token
publisher: PublisherType
events: [CrowdfundEvent]
}
type UserProfileType {
address: String
displayName: String
avatarURL: String
contributor: contributor
nfts: [NFTType]
editions: EditionsType
notificationSettings: NotificationSettingsType
theme: UserProfileThemeType
ens: String
headerImage: MediaAssetType
description: String
gaTrackingID: String
mailingListURL: String
domain: String
memberships: [ProjectType]
members: [ProjectType]
}
"""Contributor type"""
type contributor {
address: String
id: String
displayName: String
avatarURL: String
publications: [publication]
signingKeys: [signingKey]
}
"""Returns information about a signing key"""
type signingKey {
id: Int
publicKey: String
signature: signingKeySignature
}
"""Display the signature proving ownership of a signing key"""
type signingKeySignature {
id: Int
signingKeyId: Int
signature: String
message: String
}
type NFTType {
contract: NFTContractType
name: String
tokenId: String
imageURL: String
imagePreviewUrl: String
imageThumbnailUrl: String
imageOriginalUrl: String
animationUrl: String
animationOriginalUrl: String
}
type NFTContractType {
address: String
name: String
symbol: String
}
type EditionsType {
purchased: [EditionPurchasedType]
}
type EditionPurchasedType {
blockNumber: Int
transactionHash: String
logIndex: Int
event: String
editionId: String
tokenId: String
numSold: String
serial: String
amountPaid: String
buyer: String
edition: edition
}
"""Edition type"""
type edition {
_id: String
id: Int
title: String
quantity: Int
description: String
price: Float
allocation: Int
editionId: Int
entryId: Int
contentHash: String
fundingRecipient: String
transactionHash: String
editionContractAddress: String
version: String
singleArtifact: Boolean
attributes: [EditionAttribute]
crowdfund: crowdfund
primaryMedia: MediaAssetType
thumbnailMedia: MediaAssetType
mediaURL: String
artifacts: [editionArtifact]
operator: UserProfileType @deprecated(reason: "Use publisher to fetch creator and operator info")
creator: contributor @deprecated(reason: "Use publisher to fetch creator and operator info")
publication: publication @deprecated(reason: "Use publisher to fetch creator and operator info")
entry: entry
events: [EditionEventsType]
tokenIds: [String]
publisher: PublisherType
draftDigest: String
blockState: BlockStateType
}
"""Edition Attribute type"""
type EditionAttribute {
trait_type: String
display_type: String
value: String
}
"""description"""
type MediaAssetType {
id: Int
mimetype: String
sizes: MediaAssetSizesType
cid: String
url: String
}
"""description"""
type MediaAssetSizesType {
og: MediaAssetSizeType
lg: MediaAssetSizeType
md: MediaAssetSizeType
sm: MediaAssetSizeType
}
"""description"""
type MediaAssetSizeType {
height: Int
width: Int
src: String
}
"""Edition Artifact type"""
type editionArtifact {
tokenId: Int
editionId: Int
url: String
}
"""Events for an edition with contract address and ID"""
type EditionEventsType {
event: String
blockNumber: Int
logIndex: Int
transactionHash: String
network: String
quantity: String
price: String
fundingRecipient: String
editionId: String
tokenId: String
numSold: String
buyer: String
feePercent: String
sender: String
newFee: String
feesAccrued: String
previousOwner: String
newOwner: String
amountWithdrawn: String
feeAmount: String
amountPaid: String
contentHash: String
receiver: String
previousCreator: String
newCreator: String
from: String
to: String
owner: String
approved: String
operator: String
avatarURL: String
twitterUsername: String
collectorAddress: String
serialNumber: String
digest: String
draftDigest: String
}
"""The publisher of the block"""
type PublisherType {
"""The project that published the block"""
project: ProjectType
"""The member that published on behalf of the project"""
member: ProjectType
}
type ProjectType {
_id: String
address: String
displayName: String
avatarURL: String
notificationSettings: NotificationSettingsType
theme: UserProfileThemeType
ens: String
headerImage: MediaAssetType
description: String
gaTrackingID: String
mailingListURL: String
domain: String
memberships: [ProjectType]
members: [ProjectType]
pendingMemberships: [ProjectType]
pendingMembers: [ProjectType]
posts: [PostType]
featureFlags: FeatureFlagStatusType
navigation: NavigationType
}
type NotificationSettingsType {
writeRace: Boolean
}
"""User Profile Theme"""
type UserProfileThemeType {
colorMode: ColorModeType
accent: AccentType
}
enum ColorModeType {
DARK
LIGHT
}
enum AccentType {
BLUE
GREEN
INDIGO
ORANGE
PINK
PURPLE
RED
TEAL
YELLOW
FOREGROUND
}
union PostType = entry | crowdfund
type FeatureFlagStatusType {
isPluginsTabEnabled: Boolean
}
type NavigationType {
section: NavigationSectionType
content: NavigationContentType
}
type NavigationSectionType {
isFundingEnabled: Boolean
isNFTsEnabled: Boolean
isGovernanceEnabled: Boolean
}
type NavigationContentType {
isCrowdfundsEnabled: Boolean
isSplitsEnabled: Boolean
isTokensEnabled: Boolean
isEditionsEnabled: Boolean
isTokenRaceEnabled: Boolean
isAuctionsEnabled: Boolean
}
"""Provides information about the state of the block"""
type BlockStateType {
"""Status of the block"""
status: BlockStatusEnum
}
enum BlockStatusEnum {
CREATED
CONFIRMED
PENDING
DROPPED
FAILED
}
"""CrowdfundMetadata Type"""
type CrowdfundMetadataType {
coverImage: MediaAssetType
podium: PodiumType
}
"""Podium Type"""
type PodiumType {
first: PodiumFieldType
second: PodiumFieldType
third: PodiumFieldType
duration: Int
}
"""PodiumField Type"""
type PodiumFieldType {
title: String
description: String
primaryMedia: MediaAssetType
thumbnailMedia: MediaAssetType
}
"""MirrorERC20Token type"""
type mirrorERC20Token {
id: Int
name: String
symbol: String
numDecimals: String
totalSupply: String
totalSupplyFormatted: String
operator: UserProfileType @deprecated(reason: "Use publisher to fetch creator and operator info")
description: String
publication: publication @deprecated(reason: "Use publisher to fetch creator and operator info")
tokenAddress: String
iconMedia: MediaAssetType
network: String
transactionHash: String
contributionLimit: String
ownerAddress: String
version: String
createdAt: String
publisher: PublisherType
}
"""CrowdfundEvent Type"""
type CrowdfundEvent {
id: Int
event: String
amount: String
amountRaised: String
amountFormatted: Float
amountRaisedFormatted: String
creatorAllocation: String
value: String
address: String
from: String
to: String
blockNumber: Int
logIndex: Int
network: String
transactionHash: String
editionId: Int
tokenId: Int
crowdfundId: Int
timestamp: String
}
"""Publication Settings type"""
type publicationSettings {
publicationLabel: String
settings: String
digest: String
contributorAddress: String
key: String
signature: String
timestamp: Int
}
"""NFT type"""
type nft {
id: Int
name: String
tokenURI: String
contributorAddress: String
address: String
contentHash: String
network: String
tokenId: Int
transactionHash: String
entryDigest: String
}
"""Entry type"""
type entry {
_id: String
id: Int
entryId: Int
digest: String
originalDigest: String
title: String
hideTitleInEntry: Boolean
body: String
timestamp: Int
publishedAtTimestamp: Int
publishStatus: String
canonicalUrl: String
publicationId: Int
userProfileId: Int
featuredImageId: Int
arweaveTransactionRequest: ArweaveTransactionRequestType
latestBlockData: LatestBlockDataType
"""Transaction hash that includes NFT event"""
nftTransactionHash: String
"""address of the token that has the NFT"""
nftAddress: Int
"""Optional token id of the NFT"""
nftTokenId: Int
publication: publication @deprecated(reason: "Use publisher to fetch creator and operator info")
userProfile: UserProfileType @deprecated(reason: "Use publisher to fetch creator and operator info")
contributor: contributor @deprecated(reason: "Use publisher to fetch creator and operator info")
author: UserProfileType @deprecated(reason: "Use publisher to fetch creator and operator info")
nft: nft
authorship: Authorship @deprecated(reason: "Use publisher to fetch creator and operator info")
contributors: [contributor] @deprecated(reason: "Use collaborator to get bylines")
editions: [edition]
featuredImage: MediaAssetType
publisher: PublisherType
collaborators: [ProjectType]
settings: EntrySettingsType
writingNFT: WritingNFTType
}
"""Describes an Arweave Transaction Request"""
type ArweaveTransactionRequestType {
id: Int
transactionId: String
entryId: Int
}
"""LatestBlockDataType type"""
type LatestBlockDataType {
number: Int
timestamp: Int
}
"""Contains verification of authorship"""
type Authorship {
publicKey: String
signature: String
}
"""Entry SEO settings"""
type EntrySettingsType {
"""Meta image"""
metaImage: MediaAssetType
"""Meta title"""
title: String
"""Meta description"""
description: String
}
"""WritingNFT Type"""
type WritingNFTType {
_id: String
title: String
description: String
"""Total supply"""
quantity: Int
"""Price in Ether"""
price: Float
"""Version of contracts used"""
version: String
"""Signing key timestamp (in unix seconds)"""
timestamp: Int
"""Signing key digest"""
digest: String
"""Signing key signature"""
signature: String
"""Deployment signature"""
deploymentSignature: String
"""Deployment signature type"""
deploymentSignatureType: String
"""Address of the proxy"""
proxyAddress: String
"""Nonce for deployment"""
nonce: Int
"""Deployment status, 1 = Created, 5 = Confirmed"""
status: Int
"""Transaction Hash"""
transactionHash: String
"""Block number of deploy"""
deployedAt: Int
"""NFT Media"""
media: MediaAssetType
publisher: PublisherType
"""Which network to connect to"""
network: NetworkType
"""Total NFTs sold"""
numSold: Int
collectors: [WritingNFTCollectorType]
}
"""Network Type"""
type NetworkType {
_id: String
chainId: Int
explorerURL: String
name: String
currency: CurrencyType
}
"""Currency Type"""
type CurrencyType {
_id: String
name: String
symbol: String
decimals: Int
}
"""Collectors of Writing NFT"""
type WritingNFTCollectorType {
_id: String
"""Address of collector"""
address: String
"""Project (if it exists)"""
project: UserProfileType
transactionHash: String
tokenId: String
message: String
price: String
blockNumber: Int
}
"""API Queries [Read]"""
type query {
publication(ensLabel: String, publicOnly: Boolean): publication @deprecated(reason: "Publications are deprecated, please use Project* and User* endpoints")
publicationFeed(ensLabel: String, publicOnly: Boolean): publication @deprecated(reason: "Publications are deprecated, please use Project* and User* endpoints")
publicationContributors(ensLabel: String): [contributor] @deprecated(reason: "Publications are deprecated, please use Project* and User* endpoints")
publications: [publication] @deprecated(reason: "Publications are deprecated, please use Project* and User* endpoints")
"""Endpoint for querying a contributor's information"""
contributor(address: String): contributor @deprecated(reason: "Publications are deprecated, please use Project* and User* endpoints")
"""Endpoint for querying a contributor's information"""
contributorsByAddress(addresses: [String]): [contributor] @deprecated(reason: "Publications are deprecated, please use Project* and User* endpoints")
nextContributorId: Int @deprecated(reason: "Publications are deprecated, please use Project* and User* endpoints")
"""Endpoint for querying an Entry by digest"""
entry(digest: String): entry
"""All the entries for a user address"""
entries(publicOnly: Boolean, projectAddress: String): [entry]
"""Top 20 entries"""
topEntries: [entry]
"""Endpoint for returning ENS information for a given domain"""
resolveENS(
"""The full name of the ENS domain, e.g. test.mirror.xyz"""
name: String
): ENS
"""Endpoint for returning ENS information for a given address"""
lookupENS(
"""The address to look up"""
address: String
): ENS
"""Endpoint for querying a contributor's profile information"""
addressInfo(address: String): addressInfo
"""Endpoint for querying for settings for a publication"""
publicationSettings(publicationLabel: String): publicationSettings @deprecated(reason: "Publications are deprecated, please use Project* and User* endpoints")
verifiedAccounts: [VerifiedAccount] @deprecated(reason: "This feed is no longer used")
verifiedAccount(address: String): VerifiedAccount @deprecated(reason: "This feed is no longer used")
"""Endpoint for getting whether a user is verified"""
isVerified(address: String): Boolean @deprecated(reason: "This feed is no longer used")
verifiedAccountsAfterTimestamp(
"""Timestamp in MS"""
timestamp: String
): [VerifiedAccount] @deprecated(reason: "This feed is no longer used")
registrationEvent(ensLabel: String): registrationEvent
registrationEvents: [registrationEvent]
registeredProfiles: [RegisteredProfile]
verifiedVotes: [VerifiedVoteType] @deprecated(reason: "This feed is no longer used")
votingPower(account: String): VotingPowerType @deprecated(reason: "This feed is no longer used")
verifiedVotesByRound(round: String, limit: Int, offset: Int): [VerifiedVoteType] @deprecated(reason: "This feed is no longer used")
"""Endpoint for querying a user's crowdfunds"""
crowdfunds(projectAddress: String): [CrowdfundListType]
"""Get dropped crowdfunds"""
droppedCrowdfunds(userAddress: String): [crowdfund]
"""Endpoint for querying a crowdfund at an address"""
crowdfundAtAddress(address: String): crowdfund
"""Endpoint for querying a crowdfund at an address"""
crowdfundBlockData(address: String): CrowdfundBlock
"""Endpoint for querying a user's crowdfund entries"""
crowdfundEntries(userAddress: String, ensLabel: String): [crowdfund] @deprecated(reason: "Use projectFeed to query")
"""Endpoint for querying a contributor's NFTs"""
nfts(contributorAddress: String): [nft] @deprecated(reason: "This is no longer supported")
"""Endpoint for querying a single NFT"""
nft(address: String, tokenId: Int): nft @deprecated(reason: "This is no longer supported")
"""Endpoint for querying a project reserveAuctions"""
reserveAuctions(
"""Project address"""
projectAddress: String
): [reserveAuction]
"""Endpoint for querying a reserve auction by tokenId at an address"""
reserveAuction(nftAddress: String, tokenId: Int, auctionId: String): reserveAuction
socialProfiles: [SocialProfileType] @deprecated(reason: "This feed is no longer used")
socialProfile(
"""Wallet address of the user"""
address: String
): SocialProfileType @deprecated(reason: "This field can be retrieved from ProjectType")
writeRaceProfiles: [WriteRaceProfileType] @deprecated(reason: "This feed is no longer used")
leaderboard: [LeaderboardType] @deprecated(reason: "This feed is no longer used")
twitterProfile(username: String): TwitterProfileType @deprecated(reason: "This field can be retrieved from ProjectType")
twitterProfilesById(ids: [Int]): [TwitterProfileType] @deprecated(reason: "This field can be retrieved from ProjectType")
splits(
"""Project address"""
projectAddress: String
): [SplitType]
split(address: String): SplitType
unverifiedTwitterProfiles: [UnverifiedTwitterProfileType] @deprecated(reason: "This feed is no longer used")
"""Endpoint for querying a contributor's editions for a publication"""
editions(
"""Address of project"""
projectAddress: String
"""Where clause"""
where: EditionWhereInputType
): [edition]
edition(editionId: Int, editionContractAddress: String): edition
"""Endpoint for querying a user's activity feed"""
userActivityFeed(address: String): [ActivityPropertiesType]
"""Endpoint for querying a user's email verification status"""
email(address: String): email
"""Endpoint for querying a crowdfund's event data"""
crowdfundEvents(address: String): [crowdfundEvents]
userProfile(address: String): UserProfileType
me(
"""Digest"""
digest: String
"""Public key used to sign the data"""
key: String
"""Signature with content"""
signature: String
"""Unix Timestamp in seconds"""
timestamp: String
userAddress: String
projectAddress: String
): ProjectType
verifyPublicKey(
"""User Mirror Public Key"""
publicKey: String
): PublicKeyVerification
address(
"""User Mirror Public Key"""
publicKey: String
): String @deprecated(reason: "Please use verifyPublicKey")
mirrorProject(
"""Address/ENS/domain of Mirror project"""
address: String
): MirrorProjectType
projectThemeOptions: ProjectThemeOptionsType
"""Endpoint for querying a whether a user has responded to a survey"""
hasUserSubmittedSurvey(address: String, surveyId: Int): Boolean
getSurvey(
"""ID of the survey"""
surveyId: Int
"""Address of the crowdfund"""
crowdfundAddress: String
): SurveyType
"""Endpoint for querying a contributor's crowdfund drafts"""
crowdfundDraftById(
"""The Ethereum address associated with the user"""
userAddress: String
"""The Ethereum address associated with the project"""
projectAddress: String
"""Digest"""
digest: String
"""Public key used to sign the crowdfund data"""
key: String
"""Signature with content related to the crowdfund"""
signature: String
"""Unix Timestamp in seconds"""
timestamp: String
"""Crowdfund draft ID"""
id: Int
): CrowdfundDraft
"""Endpoint for querying all contracts"""
contracts: [Contract]
"""Endpoint for querying proposals made by user"""
proposals(address: String): [Proposal]
"""Endpoint for querying a single proposal"""
proposal(cid: String): Proposal
"""Endpoint for querying voting data for user"""
proposalVotingPower(cid: String, address: String): ProposalUserVotingPower
"""Endpoint for querying vote data for an entry"""
proposalEntryVotes(proposalCid: String, proposalEntryCid: String): [ProposalEntryVote]
writeRaceSearch(usernameOrAccount: String, roundNumber: Int): [WriteRaceRoundDataType]
writeRaceVotingPower(address: String, roundNumber: Int): WriteRaceVotingPowerType
writeRaceCurrentUser(account: String, roundNumber: Int): WriteRaceCurrentUser
writeRaceCurrentRound(limit: Int, offset: Int): WriteRaceCurrentRound
writeRaceLeaderboard(round: Int): WriteRaceLeaderboardType
writeRaceGenesisWriters: [WriteRaceLeaderboardWinnerType]
mirrorPoll(
"""Database ID of poll"""
id: Int
): MirrorPollType
mirrorPollCanRespond(
"""Database ID of poll"""
pollId: Int
"""User address"""
address: String
): Boolean
mirrorPollUser(
"""Database ID of poll"""
pollId: Int
"""User address"""
address: String
): MirrorPollUser
"""Endpoint for querying a dutch auction"""
dutchAuction(
"""Address of the proxy contract"""
address: String
): DutchAuctionType
editionOpenSale(
"""Database ID of sale"""
id: Int
): editionOpenSale
"""Endpoint for querying a user's tokens created on Mirror"""
mirrorERC20Tokens(projectAddress: String): [mirrorERC20Token]
"""Endpoint for querying a token at an address"""
mirrorERC20TokenAtAddress(tokenAddress: String): mirrorERC20Token
"""Endpoint for querying a user's tokens created on Mirror"""
crowdfundTokenApprovalMetadata(crowdfundAddress: String, projectAddress: String): crowdfundTokenApprovalMetadata
"""Endpoint for querying a project feed by ens name, domain, or address"""
projectFeed(projectAddress: String): ProjectType
"""Endpoint for querying all plugins for a project"""
plugins(projectAddress: String): [PluginType]
"""List of all available plugins"""
pluginsList: [PluginType]
"""Endpoint for querying a edition draft"""
editionDraft(
"""Digest of the draft"""
digest: String
): EditionDraftType
}
"""ENS type"""
type ENS {
name: String
address: String
}
"""Provides some basic information about an Etheruem address"""
type addressInfo {
ens: String
writeTokens: String
hasOnboarded: Boolean
}
type VerifiedAccount {
twitterProfileId: Int
account: String
username: String
signature: String
name: String
twitterId: String
avatarURL: String
followerCount: Int
promptResponse: promptResponse
}
"""PromptResponse type"""
type promptResponse {
id: Int
content: String
createdAt: String
}
"""RegistrationEvent type"""
type registrationEvent {
id: Int
account: String
ensLabel: String
transactionHash: String
}
type RegisteredProfile {
id: Int
account: String
username: String
avatarURL: String
}
type VerifiedVoteType {
account: String
candidate: String
round: String
signature: String
amount: Int
createdAt: Int
}
type VotingPowerType {
account: String
votingPower: Float
round: String
reasons: String
}
union CrowdfundListType = CrowdfundDraft | crowdfund
"""CrowdfundDraft type"""
type CrowdfundDraft {
_id: String
id: Int
data: String
name: String
symbol: String
title: String
crowdfundDraftId: Int
publisher: PublisherType
digest: String
}
"""CrowdfundBlock type"""
type CrowdfundBlock {
name: String
symbol: String
contractAddress: String
valueCurrent: String
stretchGoal: Float
fundingCap: Float
tokensIssued: String
isRedeemable: Boolean
isActive: Boolean
operatorEquityPercent: String
contributionLimit: String
fundingRecipientAddress: String
operator: UserProfileType
backers: [CrowdfundBacker]
events: [CrowdfundEvent]
podiumDuration: Int
podiumStartTime: Int
minPodiumBid: String
accountBalance: String
totalSupply: String
status: String
}
"""CrowdfundBacker Type"""
type CrowdfundBacker {
eth: String
tokens: String
address: String
blockNumber: Int
avatarURL: String
twitterUsername: String
percentage: String
}
"""ReserveAuction type"""
type reserveAuction {
_id: String
id: Int
tokenId: Int
duration: Int
address: String
nftAddress: String
auctionId: String
creatorShareRecipientAddress: String
creatorAddress: String
fundsRecipientAddress: String
deployerAddress: String
curatorAddress: String
curatorFee: String
version: String
reservePrice: String
network: String
transactionHash: String
createdAt: String
events: [ReserveAuctionEvent]
operator: UserProfileType @deprecated(reason: "Use publisher to fetch creator and operator info")
deployer: contributor @deprecated(reason: "Use publisher to fetch creator and operator info")
publication: publication @deprecated(reason: "Use publisher to fetch creator and operator info")
publisher: PublisherType
}
"""ReserveAuctionEvent type"""
type ReserveAuctionEvent {
event: String