@0xslots/sdk 0.11.1 → 0.13.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.
- package/dist/{chunk-JPXMWACL.js → chunk-RKRQIWX7.js} +199 -8
- package/dist/chunk-RKRQIWX7.js.map +1 -0
- package/dist/{client-BvlobCBh.d.ts → client-BKC_2-uM.d.ts} +63 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-JPXMWACL.js.map +0 -1
|
@@ -4040,6 +4040,7 @@ type GetMetadataSlotsQueryVariables = Exact<{
|
|
|
4040
4040
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
4041
4041
|
orderBy?: InputMaybe<MetadataSlot_OrderBy>;
|
|
4042
4042
|
orderDirection?: InputMaybe<OrderDirection>;
|
|
4043
|
+
where?: InputMaybe<MetadataSlot_Filter>;
|
|
4043
4044
|
}>;
|
|
4044
4045
|
type GetMetadataSlotsQuery = {
|
|
4045
4046
|
__typename?: 'Query';
|
|
@@ -4139,10 +4140,11 @@ type GetMetadataSlotsByRecipientQuery = {
|
|
|
4139
4140
|
}>;
|
|
4140
4141
|
};
|
|
4141
4142
|
type GetMetadataUpdatedEventsQueryVariables = Exact<{
|
|
4142
|
-
slot?: InputMaybe<Scalars['String']['input']>;
|
|
4143
4143
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
4144
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
4144
4145
|
orderBy?: InputMaybe<MetadataUpdatedEvent_OrderBy>;
|
|
4145
4146
|
orderDirection?: InputMaybe<OrderDirection>;
|
|
4147
|
+
where?: InputMaybe<MetadataUpdatedEvent_Filter>;
|
|
4146
4148
|
}>;
|
|
4147
4149
|
type GetMetadataUpdatedEventsQuery = {
|
|
4148
4150
|
__typename?: 'Query';
|
|
@@ -4574,6 +4576,64 @@ declare class MetadataModuleClient {
|
|
|
4574
4576
|
updateMetadata(moduleAddress: Address, slot: Address, uri: string): Promise<Hash>;
|
|
4575
4577
|
}
|
|
4576
4578
|
|
|
4579
|
+
/**
|
|
4580
|
+
* Module namespace for FeedPostModule operations.
|
|
4581
|
+
* Accessible via `client.modules.feed`.
|
|
4582
|
+
*
|
|
4583
|
+
* Read: subgraph queries for MetadataSlot entities (same schema as MetadataModule)
|
|
4584
|
+
* Write:
|
|
4585
|
+
* - `updateMetadata(moduleAddress, slot, uri)` — direct update (occupant only)
|
|
4586
|
+
* - `buyAndPost(slot, depositAmount, selfAssessedPrice, uri)` — atomic buy + post via router
|
|
4587
|
+
*/
|
|
4588
|
+
declare class FeedModuleClient {
|
|
4589
|
+
private readonly sdk;
|
|
4590
|
+
private readonly chainId;
|
|
4591
|
+
private readonly _publicClient?;
|
|
4592
|
+
private readonly _walletClient?;
|
|
4593
|
+
constructor(opts: {
|
|
4594
|
+
sdk: ReturnType<typeof getSdk>;
|
|
4595
|
+
chainId: SlotsChain;
|
|
4596
|
+
publicClient?: PublicClient;
|
|
4597
|
+
walletClient?: WalletClient;
|
|
4598
|
+
});
|
|
4599
|
+
private get wallet();
|
|
4600
|
+
private get account();
|
|
4601
|
+
private get chain();
|
|
4602
|
+
private get publicClient();
|
|
4603
|
+
private get routerAddress();
|
|
4604
|
+
private query;
|
|
4605
|
+
/**
|
|
4606
|
+
* Verify that a given address is a FeedPostModule by calling `name()` on-chain.
|
|
4607
|
+
*/
|
|
4608
|
+
private verifyModule;
|
|
4609
|
+
/** Get all slots with metadata, ordered by most recently updated. */
|
|
4610
|
+
getSlots(...args: Parameters<ReturnType<typeof getSdk>["GetMetadataSlots"]>): Promise<GetMetadataSlotsQuery>;
|
|
4611
|
+
/** Get a single metadata slot by slot address. */
|
|
4612
|
+
getSlot(...args: Parameters<ReturnType<typeof getSdk>["GetMetadataSlot"]>): Promise<GetMetadataSlotQuery>;
|
|
4613
|
+
/** Get metadata update history for a slot. */
|
|
4614
|
+
getUpdateHistory(...args: Parameters<ReturnType<typeof getSdk>["GetMetadataUpdatedEvents"]>): Promise<GetMetadataUpdatedEventsQuery>;
|
|
4615
|
+
/**
|
|
4616
|
+
* Read the current URI for a slot directly from chain.
|
|
4617
|
+
*/
|
|
4618
|
+
getURI(moduleAddress: Address, slot: Address): Promise<string>;
|
|
4619
|
+
/**
|
|
4620
|
+
* Update the metadata URI for a slot. Only callable by the current occupant.
|
|
4621
|
+
*/
|
|
4622
|
+
updateMetadata(moduleAddress: Address, slot: Address, uri: string): Promise<Hash>;
|
|
4623
|
+
/**
|
|
4624
|
+
* Buy a slot and post metadata in one transaction via FeedRouter.
|
|
4625
|
+
* User must approve the router for the slot's currency.
|
|
4626
|
+
* Handles ERC-20 approval automatically.
|
|
4627
|
+
*
|
|
4628
|
+
* @param slot - The slot contract address
|
|
4629
|
+
* @param depositAmount - Amount to deposit for tax escrow
|
|
4630
|
+
* @param selfAssessedPrice - The price you're setting
|
|
4631
|
+
* @param uri - The metadata URI to post
|
|
4632
|
+
* @returns Transaction hash
|
|
4633
|
+
*/
|
|
4634
|
+
buyAndPost(slot: Address, depositAmount: bigint, selfAssessedPrice: bigint, uri: string): Promise<Hash>;
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4577
4637
|
interface SubgraphMeta {
|
|
4578
4638
|
_meta: {
|
|
4579
4639
|
block: {
|
|
@@ -4650,6 +4710,7 @@ declare class SlotsClient {
|
|
|
4650
4710
|
/** Module namespaces for protocol extensions. */
|
|
4651
4711
|
readonly modules: {
|
|
4652
4712
|
metadata: MetadataModuleClient;
|
|
4713
|
+
feed: FeedModuleClient;
|
|
4653
4714
|
};
|
|
4654
4715
|
constructor(config: SlotsClientConfig);
|
|
4655
4716
|
/** Returns the chain ID this client was configured for. */
|
|
@@ -4872,4 +4933,4 @@ declare class SlotsClient {
|
|
|
4872
4933
|
}
|
|
4873
4934
|
declare function createSlotsClient(config: SlotsClientConfig): SlotsClient;
|
|
4874
4935
|
|
|
4875
|
-
export {
|
|
4936
|
+
export { type GetMetadataSlotQueryVariables as $, type Account as A, type BlockChangedFilter as B, type CreateSlotParams as C, type DepositedEvent as D, type Exact as E, type Factory as F, GetAccountDocument as G, type GetAccountQuery as H, type GetAccountQueryVariables as I, GetAccountsDocument as J, type GetAccountsQuery as K, type GetAccountsQueryVariables as L, GetBoughtEventsDocument as M, type GetBoughtEventsQuery as N, type GetBoughtEventsQueryVariables as O, GetDepositedEventsDocument as P, type GetDepositedEventsQuery as Q, type GetDepositedEventsQueryVariables as R, SlotsChain as S, GetFactoryDocument as T, type GetFactoryQuery as U, type GetFactoryQueryVariables as V, GetLiquidatedEventsDocument as W, type GetLiquidatedEventsQuery as X, type GetLiquidatedEventsQueryVariables as Y, GetMetadataSlotDocument as Z, type GetMetadataSlotQuery as _, type AccountFieldsFragment as a, type MetadataUpdatedEvent as a$, GetMetadataSlotsByRecipientDocument as a0, type GetMetadataSlotsByRecipientQuery as a1, type GetMetadataSlotsByRecipientQueryVariables as a2, GetMetadataSlotsDocument as a3, type GetMetadataSlotsQuery as a4, type GetMetadataSlotsQueryVariables as a5, GetMetadataUpdatedEventsDocument as a6, type GetMetadataUpdatedEventsQuery as a7, type GetMetadataUpdatedEventsQueryVariables as a8, GetModulesDocument as a9, GetSlotsByRecipientDocument as aA, type GetSlotsByRecipientQuery as aB, type GetSlotsByRecipientQueryVariables as aC, GetSlotsDocument as aD, type GetSlotsQuery as aE, type GetSlotsQueryVariables as aF, GetTaxCollectedEventsDocument as aG, type GetTaxCollectedEventsQuery as aH, type GetTaxCollectedEventsQueryVariables as aI, GetWithdrawnEventsDocument as aJ, type GetWithdrawnEventsQuery as aK, type GetWithdrawnEventsQueryVariables as aL, type Incremental as aM, type InputMaybe as aN, type LiquidatedEvent as aO, type LiquidatedEvent_Filter as aP, type LiquidatedEvent_OrderBy as aQ, type MakeEmpty as aR, type MakeMaybe as aS, type MakeOptional as aT, type Maybe as aU, MetadataModuleClient as aV, type MetadataSlot as aW, type MetadataSlotFieldsFragment as aX, MetadataSlotFieldsFragmentDoc as aY, type MetadataSlot_Filter as aZ, type MetadataSlot_OrderBy as a_, type GetModulesQuery as aa, type GetModulesQueryVariables as ab, GetPriceUpdatedEventsDocument as ac, type GetPriceUpdatedEventsQuery as ad, type GetPriceUpdatedEventsQueryVariables as ae, GetRecentEventsDocument as af, type GetRecentEventsQuery as ag, type GetRecentEventsQueryVariables as ah, GetReleasedEventsDocument as ai, type GetReleasedEventsQuery as aj, type GetReleasedEventsQueryVariables as ak, GetSettledEventsDocument as al, type GetSettledEventsQuery as am, type GetSettledEventsQueryVariables as an, GetSlotActivityDocument as ao, type GetSlotActivityQuery as ap, type GetSlotActivityQueryVariables as aq, GetSlotDeployedEventsDocument as ar, type GetSlotDeployedEventsQuery as as, type GetSlotDeployedEventsQueryVariables as at, GetSlotDocument as au, type GetSlotQuery as av, type GetSlotQueryVariables as aw, GetSlotsByOccupantDocument as ax, type GetSlotsByOccupantQuery as ay, type GetSlotsByOccupantQueryVariables as az, AccountFieldsFragmentDoc as b, type QuerySlotDeployedEventsArgs as b$, type MetadataUpdatedEvent_Filter as b0, type MetadataUpdatedEvent_OrderBy as b1, type Module as b2, type ModuleFeePaidEvent as b3, type ModuleFeePaidEvent_Filter as b4, type ModuleFeePaidEvent_OrderBy as b5, type ModuleFeePaymentsArgs as b6, type ModuleUpdateProposedEvent as b7, type ModuleUpdateProposedEvent_Filter as b8, type ModuleUpdateProposedEvent_OrderBy as b9, type QueryFactoryArgs as bA, type QueryLiquidatedEventArgs as bB, type QueryLiquidatedEventsArgs as bC, type QueryMetadataSlotArgs as bD, type QueryMetadataSlotsArgs as bE, type QueryMetadataUpdatedEventArgs as bF, type QueryMetadataUpdatedEventsArgs as bG, type QueryModuleArgs as bH, type QueryModuleFeePaidEventArgs as bI, type QueryModuleFeePaidEventsArgs as bJ, type QueryModuleUpdateProposedEventArgs as bK, type QueryModuleUpdateProposedEventsArgs as bL, type QueryModulesArgs as bM, type QueryNftcollectionArgs as bN, type QueryNftcollectionsArgs as bO, type QueryNfttokenArgs as bP, type QueryNfttokensArgs as bQ, type QueryPendingUpdateCancelledEventArgs as bR, type QueryPendingUpdateCancelledEventsArgs as bS, type QueryPriceUpdatedEventArgs as bT, type QueryPriceUpdatedEventsArgs as bU, type QueryReleasedEventArgs as bV, type QueryReleasedEventsArgs as bW, type QuerySettledEventArgs as bX, type QuerySettledEventsArgs as bY, type QuerySlotArgs as bZ, type QuerySlotDeployedEventArgs as b_, type Module_Filter as ba, type Module_OrderBy as bb, type NftCollection as bc, type NftCollectionTokensArgs as bd, type NftCollection_Filter as be, type NftCollection_OrderBy as bf, type NftToken as bg, type NftToken_Filter as bh, type NftToken_OrderBy as bi, type OrderDirection as bj, type PendingUpdateCancelledEvent as bk, type PendingUpdateCancelledEvent_Filter as bl, type PendingUpdateCancelledEvent_OrderBy as bm, type PriceUpdatedEvent as bn, type PriceUpdatedEvent_Filter as bo, type PriceUpdatedEvent_OrderBy as bp, type Query as bq, type QueryAccountArgs as br, type QueryAccountsArgs as bs, type QueryBoughtEventArgs as bt, type QueryBoughtEventsArgs as bu, type QueryCurrenciesArgs as bv, type QueryCurrencyArgs as bw, type QueryDepositedEventArgs as bx, type QueryDepositedEventsArgs as by, type QueryFactoriesArgs as bz, type AccountSlotsAsOccupantArgs as c, type QuerySlotsArgs as c0, type QueryTaxCollectedEventArgs as c1, type QueryTaxCollectedEventsArgs as c2, type QueryTaxUpdateProposedEventArgs as c3, type QueryTaxUpdateProposedEventsArgs as c4, type QueryWithdrawnEventArgs as c5, type QueryWithdrawnEventsArgs as c6, type Query_MetaArgs as c7, type ReleasedEvent as c8, type ReleasedEvent_Filter as c9, type SlotTaxCollectionsArgs as cA, type SlotTaxUpdateProposalsArgs as cB, type SlotWithdrawalsArgs as cC, type Slot_Filter as cD, type Slot_OrderBy as cE, SlotsClient as cF, type SlotsClientConfig as cG, type SubgraphMeta as cH, type TaxCollectedEvent as cI, type TaxCollectedEvent_Filter as cJ, type TaxCollectedEvent_OrderBy as cK, type TaxUpdateProposedEvent as cL, type TaxUpdateProposedEvent_Filter as cM, type TaxUpdateProposedEvent_OrderBy as cN, type WithdrawnEvent as cO, type WithdrawnEvent_Filter as cP, type WithdrawnEvent_OrderBy as cQ, type _Block_ as cR, type _Meta_ as cS, type _SubgraphErrorPolicy_ as cT, createSlotsClient as cU, getSdk as cV, type ReleasedEvent_OrderBy as ca, SUBGRAPH_URLS as cb, type Scalars as cc, type Sdk as cd, type SdkFunctionWrapper as ce, type SettledEvent as cf, type SettledEvent_Filter as cg, type SettledEvent_OrderBy as ch, type Slot as ci, type SlotConfig as cj, type SlotDeployedEvent as ck, type SlotDeployedEvent_Filter as cl, type SlotDeployedEvent_OrderBy as cm, type SlotDepositsArgs as cn, type SlotFieldsFragment as co, SlotFieldsFragmentDoc as cp, type SlotInitParams as cq, type SlotLiquidationsArgs as cr, type SlotMetadataUpdatesArgs as cs, type SlotModuleFeesArgs as ct, type SlotModuleUpdateProposalsArgs as cu, type SlotPendingUpdateCancellationsArgs as cv, type SlotPriceUpdatesArgs as cw, type SlotPurchasesArgs as cx, type SlotReleasesArgs as cy, type SlotSettlementsArgs as cz, type AccountSlotsAsRecipientArgs as d, type AccountType as e, type Account_Filter as f, type Account_OrderBy as g, type Aggregation_Current as h, type Aggregation_Interval as i, type Block_Height as j, type BoughtEvent as k, type BoughtEvent_Filter as l, type BoughtEvent_OrderBy as m, type BuyParams as n, type CreateSlotsParams as o, type Currency as p, type CurrencyFieldsFragment as q, CurrencyFieldsFragmentDoc as r, type Currency_Filter as s, type Currency_OrderBy as t, type DepositedEvent_Filter as u, type DepositedEvent_OrderBy as v, type FactoryModulesArgs as w, type Factory_Filter as x, type Factory_OrderBy as y, FeedModuleClient as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SlotsChain } from './client-
|
|
2
|
-
export { A as Account, a as AccountFieldsFragment, b as AccountFieldsFragmentDoc, c as AccountSlotsAsOccupantArgs, d as AccountSlotsAsRecipientArgs, e as AccountType, f as Account_Filter, g as Account_OrderBy, h as Aggregation_Current, i as Aggregation_Interval, B as BlockChangedFilter, j as Block_Height, k as BoughtEvent, l as BoughtEvent_Filter, m as BoughtEvent_OrderBy, n as BuyParams, C as CreateSlotParams, o as CreateSlotsParams, p as Currency, q as CurrencyFieldsFragment, r as CurrencyFieldsFragmentDoc, s as Currency_Filter, t as Currency_OrderBy, D as DepositedEvent, u as DepositedEvent_Filter, v as DepositedEvent_OrderBy, E as Exact, F as Factory, w as FactoryModulesArgs, x as Factory_Filter, y as Factory_OrderBy,
|
|
1
|
+
import { S as SlotsChain } from './client-BKC_2-uM.js';
|
|
2
|
+
export { A as Account, a as AccountFieldsFragment, b as AccountFieldsFragmentDoc, c as AccountSlotsAsOccupantArgs, d as AccountSlotsAsRecipientArgs, e as AccountType, f as Account_Filter, g as Account_OrderBy, h as Aggregation_Current, i as Aggregation_Interval, B as BlockChangedFilter, j as Block_Height, k as BoughtEvent, l as BoughtEvent_Filter, m as BoughtEvent_OrderBy, n as BuyParams, C as CreateSlotParams, o as CreateSlotsParams, p as Currency, q as CurrencyFieldsFragment, r as CurrencyFieldsFragmentDoc, s as Currency_Filter, t as Currency_OrderBy, D as DepositedEvent, u as DepositedEvent_Filter, v as DepositedEvent_OrderBy, E as Exact, F as Factory, w as FactoryModulesArgs, x as Factory_Filter, y as Factory_OrderBy, z as FeedModuleClient, G as GetAccountDocument, H as GetAccountQuery, I as GetAccountQueryVariables, J as GetAccountsDocument, K as GetAccountsQuery, L as GetAccountsQueryVariables, M as GetBoughtEventsDocument, N as GetBoughtEventsQuery, O as GetBoughtEventsQueryVariables, P as GetDepositedEventsDocument, Q as GetDepositedEventsQuery, R as GetDepositedEventsQueryVariables, T as GetFactoryDocument, U as GetFactoryQuery, V as GetFactoryQueryVariables, W as GetLiquidatedEventsDocument, X as GetLiquidatedEventsQuery, Y as GetLiquidatedEventsQueryVariables, Z as GetMetadataSlotDocument, _ as GetMetadataSlotQuery, $ as GetMetadataSlotQueryVariables, a0 as GetMetadataSlotsByRecipientDocument, a1 as GetMetadataSlotsByRecipientQuery, a2 as GetMetadataSlotsByRecipientQueryVariables, a3 as GetMetadataSlotsDocument, a4 as GetMetadataSlotsQuery, a5 as GetMetadataSlotsQueryVariables, a6 as GetMetadataUpdatedEventsDocument, a7 as GetMetadataUpdatedEventsQuery, a8 as GetMetadataUpdatedEventsQueryVariables, a9 as GetModulesDocument, aa as GetModulesQuery, ab as GetModulesQueryVariables, ac as GetPriceUpdatedEventsDocument, ad as GetPriceUpdatedEventsQuery, ae as GetPriceUpdatedEventsQueryVariables, af as GetRecentEventsDocument, ag as GetRecentEventsQuery, ah as GetRecentEventsQueryVariables, ai as GetReleasedEventsDocument, aj as GetReleasedEventsQuery, ak as GetReleasedEventsQueryVariables, al as GetSettledEventsDocument, am as GetSettledEventsQuery, an as GetSettledEventsQueryVariables, ao as GetSlotActivityDocument, ap as GetSlotActivityQuery, aq as GetSlotActivityQueryVariables, ar as GetSlotDeployedEventsDocument, as as GetSlotDeployedEventsQuery, at as GetSlotDeployedEventsQueryVariables, au as GetSlotDocument, av as GetSlotQuery, aw as GetSlotQueryVariables, ax as GetSlotsByOccupantDocument, ay as GetSlotsByOccupantQuery, az as GetSlotsByOccupantQueryVariables, aA as GetSlotsByRecipientDocument, aB as GetSlotsByRecipientQuery, aC as GetSlotsByRecipientQueryVariables, aD as GetSlotsDocument, aE as GetSlotsQuery, aF as GetSlotsQueryVariables, aG as GetTaxCollectedEventsDocument, aH as GetTaxCollectedEventsQuery, aI as GetTaxCollectedEventsQueryVariables, aJ as GetWithdrawnEventsDocument, aK as GetWithdrawnEventsQuery, aL as GetWithdrawnEventsQueryVariables, aM as Incremental, aN as InputMaybe, aO as LiquidatedEvent, aP as LiquidatedEvent_Filter, aQ as LiquidatedEvent_OrderBy, aR as MakeEmpty, aS as MakeMaybe, aT as MakeOptional, aU as Maybe, aV as MetadataModuleClient, aW as MetadataSlot, aX as MetadataSlotFieldsFragment, aY as MetadataSlotFieldsFragmentDoc, aZ as MetadataSlot_Filter, a_ as MetadataSlot_OrderBy, a$ as MetadataUpdatedEvent, b0 as MetadataUpdatedEvent_Filter, b1 as MetadataUpdatedEvent_OrderBy, b2 as Module, b3 as ModuleFeePaidEvent, b4 as ModuleFeePaidEvent_Filter, b5 as ModuleFeePaidEvent_OrderBy, b6 as ModuleFeePaymentsArgs, b7 as ModuleUpdateProposedEvent, b8 as ModuleUpdateProposedEvent_Filter, b9 as ModuleUpdateProposedEvent_OrderBy, ba as Module_Filter, bb as Module_OrderBy, bc as NftCollection, bd as NftCollectionTokensArgs, be as NftCollection_Filter, bf as NftCollection_OrderBy, bg as NftToken, bh as NftToken_Filter, bi as NftToken_OrderBy, bj as OrderDirection, bk as PendingUpdateCancelledEvent, bl as PendingUpdateCancelledEvent_Filter, bm as PendingUpdateCancelledEvent_OrderBy, bn as PriceUpdatedEvent, bo as PriceUpdatedEvent_Filter, bp as PriceUpdatedEvent_OrderBy, bq as Query, br as QueryAccountArgs, bs as QueryAccountsArgs, bt as QueryBoughtEventArgs, bu as QueryBoughtEventsArgs, bv as QueryCurrenciesArgs, bw as QueryCurrencyArgs, bx as QueryDepositedEventArgs, by as QueryDepositedEventsArgs, bz as QueryFactoriesArgs, bA as QueryFactoryArgs, bB as QueryLiquidatedEventArgs, bC as QueryLiquidatedEventsArgs, bD as QueryMetadataSlotArgs, bE as QueryMetadataSlotsArgs, bF as QueryMetadataUpdatedEventArgs, bG as QueryMetadataUpdatedEventsArgs, bH as QueryModuleArgs, bI as QueryModuleFeePaidEventArgs, bJ as QueryModuleFeePaidEventsArgs, bK as QueryModuleUpdateProposedEventArgs, bL as QueryModuleUpdateProposedEventsArgs, bM as QueryModulesArgs, bN as QueryNftcollectionArgs, bO as QueryNftcollectionsArgs, bP as QueryNfttokenArgs, bQ as QueryNfttokensArgs, bR as QueryPendingUpdateCancelledEventArgs, bS as QueryPendingUpdateCancelledEventsArgs, bT as QueryPriceUpdatedEventArgs, bU as QueryPriceUpdatedEventsArgs, bV as QueryReleasedEventArgs, bW as QueryReleasedEventsArgs, bX as QuerySettledEventArgs, bY as QuerySettledEventsArgs, bZ as QuerySlotArgs, b_ as QuerySlotDeployedEventArgs, b$ as QuerySlotDeployedEventsArgs, c0 as QuerySlotsArgs, c1 as QueryTaxCollectedEventArgs, c2 as QueryTaxCollectedEventsArgs, c3 as QueryTaxUpdateProposedEventArgs, c4 as QueryTaxUpdateProposedEventsArgs, c5 as QueryWithdrawnEventArgs, c6 as QueryWithdrawnEventsArgs, c7 as Query_MetaArgs, c8 as ReleasedEvent, c9 as ReleasedEvent_Filter, ca as ReleasedEvent_OrderBy, cb as SUBGRAPH_URLS, cc as Scalars, cd as Sdk, ce as SdkFunctionWrapper, cf as SettledEvent, cg as SettledEvent_Filter, ch as SettledEvent_OrderBy, ci as Slot, cj as SlotConfig, ck as SlotDeployedEvent, cl as SlotDeployedEvent_Filter, cm as SlotDeployedEvent_OrderBy, cn as SlotDepositsArgs, co as SlotFieldsFragment, cp as SlotFieldsFragmentDoc, cq as SlotInitParams, cr as SlotLiquidationsArgs, cs as SlotMetadataUpdatesArgs, ct as SlotModuleFeesArgs, cu as SlotModuleUpdateProposalsArgs, cv as SlotPendingUpdateCancellationsArgs, cw as SlotPriceUpdatesArgs, cx as SlotPurchasesArgs, cy as SlotReleasesArgs, cz as SlotSettlementsArgs, cA as SlotTaxCollectionsArgs, cB as SlotTaxUpdateProposalsArgs, cC as SlotWithdrawalsArgs, cD as Slot_Filter, cE as Slot_OrderBy, cF as SlotsClient, cG as SlotsClientConfig, cH as SubgraphMeta, cI as TaxCollectedEvent, cJ as TaxCollectedEvent_Filter, cK as TaxCollectedEvent_OrderBy, cL as TaxUpdateProposedEvent, cM as TaxUpdateProposedEvent_Filter, cN as TaxUpdateProposedEvent_OrderBy, cO as WithdrawnEvent, cP as WithdrawnEvent_Filter, cQ as WithdrawnEvent_OrderBy, cR as _Block_, cS as _Meta_, cT as _SubgraphErrorPolicy_, cU as createSlotsClient, cV as getSdk } from './client-BKC_2-uM.js';
|
|
3
3
|
import { Address } from 'viem';
|
|
4
4
|
import 'graphql-request';
|
|
5
5
|
import 'graphql';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AccountFieldsFragmentDoc, CurrencyFieldsFragmentDoc, GetAccountDocument, GetAccountsDocument, GetBoughtEventsDocument, GetDepositedEventsDocument, GetFactoryDocument, GetLiquidatedEventsDocument, GetMetadataSlotDocument, GetMetadataSlotsByRecipientDocument, GetMetadataSlotsDocument, GetMetadataUpdatedEventsDocument, GetModulesDocument, GetPriceUpdatedEventsDocument, GetRecentEventsDocument, GetReleasedEventsDocument, GetSettledEventsDocument, GetSlotActivityDocument, GetSlotDeployedEventsDocument, GetSlotDocument, GetSlotsByOccupantDocument, GetSlotsByRecipientDocument, GetSlotsDocument, GetTaxCollectedEventsDocument, GetWithdrawnEventsDocument, MetadataModuleClient, MetadataSlotFieldsFragmentDoc, SUBGRAPH_URLS, SlotFieldsFragmentDoc, SlotsChain, SlotsClient, SlotsError, createSlotsClient, getSdk } from './chunk-
|
|
1
|
+
export { AccountFieldsFragmentDoc, CurrencyFieldsFragmentDoc, FeedModuleClient, GetAccountDocument, GetAccountsDocument, GetBoughtEventsDocument, GetDepositedEventsDocument, GetFactoryDocument, GetLiquidatedEventsDocument, GetMetadataSlotDocument, GetMetadataSlotsByRecipientDocument, GetMetadataSlotsDocument, GetMetadataUpdatedEventsDocument, GetModulesDocument, GetPriceUpdatedEventsDocument, GetRecentEventsDocument, GetReleasedEventsDocument, GetSettledEventsDocument, GetSlotActivityDocument, GetSlotDeployedEventsDocument, GetSlotDocument, GetSlotsByOccupantDocument, GetSlotsByRecipientDocument, GetSlotsDocument, GetTaxCollectedEventsDocument, GetWithdrawnEventsDocument, MetadataModuleClient, MetadataSlotFieldsFragmentDoc, SUBGRAPH_URLS, SlotFieldsFragmentDoc, SlotsChain, SlotsClient, SlotsError, createSlotsClient, getSdk } from './chunk-RKRQIWX7.js';
|
|
2
2
|
|
|
3
3
|
// src/tokens.ts
|
|
4
4
|
var CHAIN_TOKENS = {
|
package/dist/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SlotsChain,
|
|
1
|
+
import { S as SlotsChain, cF as SlotsClient, C as CreateSlotParams, o as CreateSlotsParams, n as BuyParams } from './client-BKC_2-uM.js';
|
|
2
2
|
import { Hash, Address } from 'viem';
|
|
3
3
|
import 'graphql-request';
|
|
4
4
|
import 'graphql';
|
package/dist/react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SlotsClient } from './chunk-
|
|
1
|
+
import { SlotsClient } from './chunk-RKRQIWX7.js';
|
|
2
2
|
import { slotFactoryAddress, slotAbi } from '@0xslots/contracts';
|
|
3
3
|
import { useMemo, useState, useRef, useEffect, useCallback } from 'react';
|
|
4
4
|
import { usePublicClient, useWalletClient, useWaitForTransactionReceipt, useReadContract, useReadContracts } from 'wagmi';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xslots/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Type-safe SDK for the 0xSlots protocol — reads (subgraph) + writes (viem)",
|
|
5
5
|
"author": "Nezz",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"graphql": "^16.9.0",
|
|
28
28
|
"graphql-request": "^7.2.2",
|
|
29
29
|
"graphql-tag": "^2.12.6",
|
|
30
|
-
"@0xslots/contracts": "0.
|
|
30
|
+
"@0xslots/contracts": "0.9.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@graphql-codegen/cli": "^5.0.4",
|