@campnetwork/origin 1.0.0-alpha.9 → 1.0.1-alpha.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.
@@ -253,6 +253,7 @@ declare class Origin {
253
253
  getData(tokenId: bigint): Promise<any>;
254
254
  /**
255
255
  * Get royalty information for a wallet address, including the royalty vault address and its balance.
256
+ * @param {Address} [token] - Optional token address to check royalties for. If not provided, checks for native token.
256
257
  * @param {Address} [owner] - Optional wallet address to check royalties for. If not provided, uses the connected wallet.
257
258
  * @returns {Promise<RoyaltyInfo>} A promise that resolves with the royalty vault address and balance information.
258
259
  * @throws {Error} Throws an error if no wallet is connected and no owner address is provided.
@@ -302,16 +303,12 @@ declare class Auth {
302
303
  * @param {object} options The options object.
303
304
  * @param {string} options.clientId The client ID.
304
305
  * @param {string|object} options.redirectUri The redirect URI used for oauth. Leave empty if you want to use the current URL. If you want different redirect URIs for different socials, pass an object with the socials as keys and the redirect URIs as values.
305
- * @param {boolean} [options.allowAnalytics=true] Whether to allow analytics to be sent.
306
- * @param {object} [options.ackeeInstance] The Ackee instance.
307
306
  * @param {("DEVELOPMENT"|"PRODUCTION")} [options.environment="DEVELOPMENT"] The environment to use.
308
307
  * @throws {APIError} - Throws an error if the clientId is not provided.
309
308
  */
310
- constructor({ clientId, redirectUri, allowAnalytics, ackeeInstance, environment, }: {
309
+ constructor({ clientId, redirectUri, environment, }: {
311
310
  clientId: string;
312
311
  redirectUri: string | Record<string, string>;
313
- allowAnalytics?: boolean;
314
- ackeeInstance?: any;
315
312
  environment?: "DEVELOPMENT" | "PRODUCTION";
316
313
  });
317
314
  /**
@@ -325,6 +322,13 @@ declare class Auth {
325
322
  * });
326
323
  */
327
324
  on(event: "state" | "provider" | "providers" | "viem", callback: Function): void;
325
+ /**
326
+ * Unsubscribe from an event. Possible events are "state", "provider", "providers", and "viem".
327
+ * @param {("state"|"provider"|"providers"|"viem")} event The event.
328
+ * @param {function} callback The callback function.
329
+ * @returns {void}
330
+ */
331
+ off(event: "state" | "provider" | "providers" | "viem", callback: Function): void;
328
332
  /**
329
333
  * Set the loading state.
330
334
  * @param {boolean} loading The loading state.
@@ -469,8 +473,6 @@ interface CampContextType {
469
473
  auth: Auth | null;
470
474
  setAuth: React.Dispatch<React.SetStateAction<Auth | null>>;
471
475
  wagmiAvailable: boolean;
472
- ackee: any;
473
- setAckee: any;
474
476
  environment: Environment;
475
477
  }
476
478
  declare const CampContext: React.Context<CampContextType>;