Skip to content

Commit

Permalink
fix(api): updated api client and minting flow
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbeckers committed Aug 2, 2024
1 parent cb3c996 commit 59aa570
Show file tree
Hide file tree
Showing 13 changed files with 404 additions and 379 deletions.
14 changes: 8 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/lib/hypercerts-api
Submodule hypercerts-api updated 66 files
+3 −1 .env.template
+1 −0 .gitmodules
+3 −0 .prettierignore
+1 −0 .prettierrc
+5 −5 README.md
+1 −1 lib/hypercerts-indexer
+14 −13 package.json
+1,024 −1,174 pnpm-lock.yaml
+172 −35 schema.graphql
+38 −0 scripts/add_hypercert_ids_to_marketplace_orders.ts
+167 −13 src/__generated__/routes/routes.ts
+434 −407 src/__generated__/swagger.json
+44 −35 src/client/graphql.ts
+6 −0 src/client/hypercerts.ts
+1 −1 src/client/supabase.ts
+68 −80 src/controllers/AllowListController.ts
+66 −13 src/controllers/MarketplaceController.ts
+217 −71 src/controllers/MetadataController.ts
+17 −0 src/graphql/schemas/args/salesArgs.ts
+2 −0 src/graphql/schemas/inputs/allowlistRecordsInput.ts
+8 −3 src/graphql/schemas/inputs/attestationInput.ts
+11 −7 src/graphql/schemas/inputs/collectionInput.ts
+15 −9 src/graphql/schemas/inputs/fractionInput.ts
+13 −7 src/graphql/schemas/inputs/hypercertsInput.ts
+13 −5 src/graphql/schemas/inputs/orderInput.ts
+19 −0 src/graphql/schemas/inputs/saleOptions.ts
+28 −0 src/graphql/schemas/inputs/salesInput.ts
+29 −29 src/graphql/schemas/inputs/searchOptions.ts
+26 −7 src/graphql/schemas/inputs/sortOptions.ts
+37 −39 src/graphql/schemas/resolvers/allowlistRecordResolver.ts
+7 −4 src/graphql/schemas/resolvers/attestationResolver.ts
+20 −18 src/graphql/schemas/resolvers/composed.ts
+62 −12 src/graphql/schemas/resolvers/fractionResolver.ts
+104 −37 src/graphql/schemas/resolvers/hypercertResolver.ts
+2 −4 src/graphql/schemas/resolvers/metadataResolver.ts
+161 −40 src/graphql/schemas/resolvers/orderResolver.ts
+46 −0 src/graphql/schemas/resolvers/salesResolver.ts
+59 −23 src/graphql/schemas/typeDefs/allowlistRecordTypeDefs.ts
+17 −18 src/graphql/schemas/typeDefs/attestationSchemaTypeDefs.ts
+32 −25 src/graphql/schemas/typeDefs/attestationTypeDefs.ts
+11 −0 src/graphql/schemas/typeDefs/baseTypes/basicTypeDef.ts
+56 −0 src/graphql/schemas/typeDefs/baseTypes/hypercertBaseType.ts
+0 −12 src/graphql/schemas/typeDefs/basicTypeDef.ts
+8 −8 src/graphql/schemas/typeDefs/collectionTypeDefs.ts
+17 −12 src/graphql/schemas/typeDefs/contractTypeDefs.ts
+59 −26 src/graphql/schemas/typeDefs/fractionTypeDefs.ts
+41 −48 src/graphql/schemas/typeDefs/hypercertTypeDefs.ts
+12 −11 src/graphql/schemas/typeDefs/metadataTypeDefs.ts
+16 −3 src/graphql/schemas/typeDefs/orderTypeDefs.ts
+53 −0 src/graphql/schemas/typeDefs/salesTypeDefs.ts
+3 −4 src/index.ts
+26 −4 src/services/SupabaseCachingService.ts
+110 −9 src/services/SupabaseDataService.ts
+58 −36 src/types/api.ts
+837 −68 src/types/graphql-env.d.ts
+0 −1,042 src/types/supabaseCaching.ts
+0 −881 src/types/supabaseData.ts
+28 −9 src/utils/constants.ts
+29 −0 src/utils/getFractionsById.ts
+59 −0 src/utils/getRpcUrl.ts
+48 −27 src/utils/parseAndValidateMerkleTreeDump.ts
+63 −0 src/utils/tokenIds.ts
+0 −1 src/utils/validateMetadataAndClaimdata.ts
+33 −45 src/utils/validateRemoteAllowList.ts
+3 −0 supabase/migrations/20240623104303_add_validation_column_to_marketplace_orders.sql
+1 −0 supabase/migrations/20240723143403_add_hypercert_id_to_orders.sql
3 changes: 1 addition & 2 deletions sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@graphql-typed-document-node/core": "^3.2.0",
"@hypercerts-org/contracts": "2.0.0-alpha.1",
"@openzeppelin/merkle-tree": "^1.0.5",
"@openzeppelin/merkle-tree": "^1.0.7",
"@swc/core": "^1.6.3",
"ajv": "^8.11.2",
"axios": "^1.7.2",
Expand Down Expand Up @@ -59,7 +59,6 @@
},
"scripts": {
"build": "pnpm types:json && pnpm codegen:api && rollup -c",
"codegen:graph": "graphql-codegen",
"codegen:api": "npx orval --input ./lib/hypercerts-api/src/__generated__/swagger.json --output ./src/__generated__/api.ts",
"clean": "rm -rf ./dist",
"prebuild": "pnpm clean",
Expand Down
Loading

0 comments on commit 59aa570

Please sign in to comment.