Commit ff9aa3e
committed
feat(graphql): add 'burned' field to various types and inputs
- Introduced a 'burned' Boolean field to AllowlistRecordHypercertWhereInput, AttestationHypercertWhereInput, CollectionHypercertWhereInput, Fraction, Hypercert, HypercertBaseType, and several other input types.
- Updated FractionSortOptions and HypercertSortOptions to include sorting by 'burned'.
- Enhanced database entity definitions to accommodate the new 'burned' field in relevant tables and views.1 parent 1cbf4ac commit ff9aa3e
File tree
11 files changed
+133
-25
lines changed- lib
- src
- graphql/schemas/typeDefs
- baseTypes
- lib/graphql
- services
- database
- entities
- strategies
- graphql/resolvers
- types
- test/services/database/strategies
11 files changed
+133
-25
lines changedSubmodule hypercerts-indexer updated 56 files
- .env.template-3
- .github/workflows/ci-test-integration.yml-58
- .github/workflows/ci-test-unit.yml+4-1
- .github/workflows/supabase-ci-production.yml+1-1
- .github/workflows/supabase-ci-staging.yml+1-1
- .github/workflows/supabase-ci-test.yml+1-1
- .swcrc+2-2
- package.json+9-9
- pnpm-lock.yaml+1.5k-813
- scripts/update_sales_values.ts+183
- seed.ts+55-1
- src/clients/chainFactory.ts+39
- src/clients/evmClient.ts+87-145
- src/clients/rpcClientFactory.ts+100
- src/indexer/chainsauce.ts+20-17
- src/instrument.mjs+5-5
- src/parsing/parseAttestationData.ts+16-18
- src/parsing/parseAttestedEvent.ts+5-5
- src/parsing/parseClaimStoredEvent.ts+20-4
- src/parsing/parseTakerBidEvent.ts+100-21
- src/parsing/parseUriEvent.ts+36-29
- src/storage/storeMetadata.ts+19-11
- src/storage/storeTakerBid.ts+3-1
- src/storage/storeTransferSingle.ts+4-4
- src/storage/storeValueTransfer.ts+54-46
- src/types/database-generated.types.ts+76
- src/utils/constants.ts+5-5
- src/utils/getDeployment.ts+2-2
- src/utils/metadata.zod.ts-63
- src/utils/tokenIds.ts-63
- supabase/migrations/20250122235527_add_currency_admount_fee_amounts_fee_recipients_to_sales.sql+5
- supabase/migrations/20250607165242_add_burn_support.sql+49
- test/clients/chainFactory.test.ts+62
- test/clients/evmClient.test.ts+164
- test/clients/rpcClientFactory.test.ts+128
- test/monitoring/eas.test.ts-148
- test/monitoring/hypercerts.test.ts-150
- test/parsing/attestationData.test.ts+3-2
- test/parsing/attestedEvent.test.ts+10-1
- test/parsing/claimStoredEvent.test.ts+64-18
- test/parsing/leafClaimedEvent.test.ts+18-24
- test/parsing/parseUriEvent.test.ts+226
- test/parsing/takerBidEvent.test.ts+332
- test/parsing/transferSingleEvent.test.ts+4-30
- test/parsing/valueTransferEvent.test.ts+20-2
- test/storage/getSupportedSchemas.test.ts+4-2
- test/storage/storeHypercert.test.ts+10-3
- test/storage/storeMetadata.test.ts+23
- test/storage/storeTransferSingleFraction.test.ts+12-4
- test/test-utils/mockGeoJson.ts+5
- test/test-utils/mockMerkleTree.ts+8
- test/test-utils/mockMetadata.ts+72
- test/utils/getDeployment.test.ts-24
- test/utils/tokenIds.test.ts-26
- tsconfig.json+1-1
- vitest.config.ts+4-4
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
331 | 333 | | |
332 | 334 | | |
333 | 335 | | |
| 336 | + | |
334 | 337 | | |
335 | 338 | | |
336 | 339 | | |
| |||
398 | 401 | | |
399 | 402 | | |
400 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
401 | 407 | | |
402 | 408 | | |
403 | 409 | | |
| |||
461 | 467 | | |
462 | 468 | | |
463 | 469 | | |
| 470 | + | |
464 | 471 | | |
465 | 472 | | |
466 | 473 | | |
| |||
474 | 481 | | |
475 | 482 | | |
476 | 483 | | |
| 484 | + | |
477 | 485 | | |
478 | 486 | | |
479 | 487 | | |
| |||
667 | 675 | | |
668 | 676 | | |
669 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
670 | 681 | | |
671 | 682 | | |
672 | 683 | | |
| |||
729 | 740 | | |
730 | 741 | | |
731 | 742 | | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
732 | 746 | | |
733 | 747 | | |
734 | 748 | | |
| |||
765 | 779 | | |
766 | 780 | | |
767 | 781 | | |
| 782 | + | |
768 | 783 | | |
769 | 784 | | |
770 | 785 | | |
| |||
796 | 811 | | |
797 | 812 | | |
798 | 813 | | |
| 814 | + | |
799 | 815 | | |
800 | 816 | | |
801 | 817 | | |
| |||
812 | 828 | | |
813 | 829 | | |
814 | 830 | | |
| 831 | + | |
815 | 832 | | |
816 | 833 | | |
817 | 834 | | |
| |||
835 | 852 | | |
836 | 853 | | |
837 | 854 | | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
838 | 858 | | |
839 | 859 | | |
840 | 860 | | |
| |||
931 | 951 | | |
932 | 952 | | |
933 | 953 | | |
| 954 | + | |
934 | 955 | | |
935 | 956 | | |
936 | 957 | | |
| |||
1029 | 1050 | | |
1030 | 1051 | | |
1031 | 1052 | | |
| 1053 | + | |
1032 | 1054 | | |
1033 | 1055 | | |
1034 | 1056 | | |
| |||
1146 | 1168 | | |
1147 | 1169 | | |
1148 | 1170 | | |
| 1171 | + | |
1149 | 1172 | | |
1150 | 1173 | | |
1151 | 1174 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | | - | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
141 | | - | |
| 145 | + | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| |||
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
152 | | - | |
| 156 | + | |
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
160 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
167 | 175 | | |
168 | 176 | | |
169 | 177 | | |
170 | | - | |
| 178 | + | |
171 | 179 | | |
172 | 180 | | |
173 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
0 commit comments