@bananapus/nana-sdk-react 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,62 @@
1
+ import type { TypedDocumentNode } from "@graphql-typed-document-node/core";
2
+ /**
3
+ * Hand-written typed documents for the 721 "shop" bendystraw queries, kept out
4
+ * of the codegen'd `graphql.ts` so they can be added without refreshing the
5
+ * whole generated schema. The field selections match the deployed
6
+ * `bendystraw.xyz` schema (`nft.hook` is a relation, hence `hook { address }`).
7
+ */
8
+ /** A store-item purchase (a `mintNftEvent`). */
9
+ export interface ShopPurchase {
10
+ chainId: number;
11
+ projectId: number;
12
+ timestamp: number;
13
+ txHash: string;
14
+ beneficiary: string;
15
+ tierId: number;
16
+ tokenId: string;
17
+ totalAmountPaid: string;
18
+ hook: string;
19
+ }
20
+ /** A currently-held store item (an indexed `nft`). */
21
+ export interface OwnedShopItem {
22
+ chainId: number;
23
+ projectId: number;
24
+ createdAt: number;
25
+ mintTx: string;
26
+ hook: string;
27
+ tokenId: string;
28
+ owner: string;
29
+ tierId: number;
30
+ }
31
+ /** Filter on a bendystraw list query. Only the fields the shop hooks set. */
32
+ export interface ShopEventFilter {
33
+ projectId?: number;
34
+ chainId?: number;
35
+ version?: number;
36
+ beneficiary?: string;
37
+ owner?: string;
38
+ }
39
+ export interface ShopPurchasesResult {
40
+ mintNftEvents: {
41
+ totalCount: number;
42
+ items: ShopPurchase[];
43
+ };
44
+ }
45
+ export interface OwnedShopItemsResult {
46
+ nfts: {
47
+ totalCount: number;
48
+ items: (Omit<OwnedShopItem, "hook"> & {
49
+ hook: {
50
+ address: string;
51
+ } | null;
52
+ })[];
53
+ };
54
+ }
55
+ export interface ShopQueryVariables {
56
+ where?: ShopEventFilter;
57
+ limit?: number;
58
+ offset?: number;
59
+ }
60
+ export declare const ShopPurchasesDocument: TypedDocumentNode<ShopPurchasesResult, ShopQueryVariables>;
61
+ export declare const OwnedShopItemsDocument: TypedDocumentNode<OwnedShopItemsResult, ShopQueryVariables>;
62
+ //# sourceMappingURL=shop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shop.d.ts","sourceRoot":"","sources":["../../../../src/lib/bendystraw/queries/shop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAG3E;;;;;GAKG;AAEH,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,sDAAsD;AACtD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6EAA6E;AAC7E,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,YAAY,EAAE,CAAC;KACvB,CAAC;CACH;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,GAAG;YAAE,IAAI,EAAE;gBAAE,OAAO,EAAE,MAAM,CAAA;aAAE,GAAG,IAAI,CAAA;SAAE,CAAC,EAAE,CAAC;KAC/E,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,qBAAqB,EAuB5B,iBAAiB,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAAC;AAEjE,eAAO,MAAM,sBAAsB,EAwB7B,iBAAiB,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananapus/nana-sdk-react",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Wagmi hooks for Juicebox",
5
5
  "type": "module",
6
6
  "scripts": {