@use-glyph/sdk-react 1.0.23 → 1.0.25

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 @@
1
+ export declare const NFTImgFail: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,41 @@
1
+ export type GlyphOwnedToken = {
2
+ id: number;
3
+ qty: number;
4
+ owner: string;
5
+ delegated: boolean;
6
+ linked: boolean;
7
+ nodeId: string;
8
+ delegatedNodeId: string;
9
+ };
10
+ export type GlyphDelegationChainItem = {
11
+ account: string;
12
+ contractAddress: string;
13
+ tokenIds: number[];
14
+ source: "root" | "V1" | "V2" | "warm";
15
+ linked: boolean;
16
+ nodeId: string;
17
+ delegatedNodeId: string;
18
+ };
19
+ export type GlyphOwnershipCheckRequest = {
20
+ contractAddress: string;
21
+ chainId?: number;
22
+ quantity?: number;
23
+ tokenIdRange?: string;
24
+ includeDelegates?: boolean;
25
+ };
26
+ export type GlyphTokenGateResult = {
27
+ result: boolean;
28
+ error?: string;
29
+ };
30
+ export type GlyphOwnershipCheckResult = GlyphTokenGateResult & {
31
+ tokens: GlyphOwnedToken[];
32
+ delegationChain: GlyphDelegationChainItem[];
33
+ };
34
+ export declare function useGlyphTokenGate(): {
35
+ checkTokenGate: (req: GlyphOwnershipCheckRequest) => Promise<GlyphTokenGateResult>;
36
+ isTokenGateLoading: boolean;
37
+ };
38
+ export declare function useGlyphOwnershipCheck(): {
39
+ checkOwnership: (req: GlyphOwnershipCheckRequest) => Promise<GlyphOwnershipCheckResult>;
40
+ isOwnershipCheckLoading: boolean;
41
+ };
@@ -6,6 +6,7 @@ import { GlyphProvider } from './context/GlyphProvider';
6
6
  export { useBalances } from './hooks/useBalances';
7
7
  export { useGlyph } from './hooks/useGlyph';
8
8
  export { useGlyphFunding, type GLYPH_FUND_STATUS } from './hooks/useGlyphFunding';
9
+ export { useGlyphTokenGate, useGlyphOwnershipCheck, type GlyphOwnershipCheckRequest, type GlyphTokenGateResult, type GlyphOwnershipCheckResult } from './hooks/useGlyphTokenGate';
9
10
  export { useGlyphView } from './hooks/useGlyphView';
10
11
  export { glyphConnectorDetails } from './lib/constants';
11
12
  export { GlyphViewType as GlyphView, StrategyType, WalletClientType } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-glyph/sdk-react",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "type": "module",
5
5
  "license": "GLYPH-1.0",
6
6
  "sideEffects": false,