@campnetwork/origin 0.0.4 → 0.0.6

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/core.d.ts CHANGED
@@ -237,11 +237,7 @@ type DataNFTSource = "spotify" | "twitter" | "tiktok" | "file";
237
237
  * @param signature The signature for the minting operation.
238
238
  * @returns A promise that resolves when the minting is complete.
239
239
  */
240
- declare function mintWithSignature(this: Origin, to: Address, tokenId: bigint, hash: Hex, uri: string, licenseTerms: LicenseTerms, deadline: bigint, signature: {
241
- v: number;
242
- r: Hex;
243
- s: Hex;
244
- }): Promise<any>;
240
+ declare function mintWithSignature(this: Origin, to: Address, tokenId: bigint, hash: Hex, uri: string, licenseTerms: LicenseTerms, deadline: bigint, signature: Hex): Promise<any>;
245
241
  /**
246
242
  * Registers a Data NFT with the Origin service in order to obtain a signature for minting.
247
243
  * @param source The source of the Data NFT (e.g., "spotify", "twitter", "tiktok", or "file").
@@ -452,6 +448,7 @@ declare class Auth {
452
448
  * @returns {void}
453
449
  */
454
450
  setWalletAddress(walletAddress: string): void;
451
+ recoverProvider(): Promise<void>;
455
452
  /**
456
453
  * Disconnect the user.
457
454
  * @returns {Promise<void>}
@@ -237,11 +237,7 @@ type DataNFTSource = "spotify" | "twitter" | "tiktok" | "file";
237
237
  * @param signature The signature for the minting operation.
238
238
  * @returns A promise that resolves when the minting is complete.
239
239
  */
240
- declare function mintWithSignature(this: Origin, to: Address, tokenId: bigint, hash: Hex, uri: string, licenseTerms: LicenseTerms, deadline: bigint, signature: {
241
- v: number;
242
- r: Hex;
243
- s: Hex;
244
- }): Promise<any>;
240
+ declare function mintWithSignature(this: Origin, to: Address, tokenId: bigint, hash: Hex, uri: string, licenseTerms: LicenseTerms, deadline: bigint, signature: Hex): Promise<any>;
245
241
  /**
246
242
  * Registers a Data NFT with the Origin service in order to obtain a signature for minting.
247
243
  * @param source The source of the Data NFT (e.g., "spotify", "twitter", "tiktok", or "file").
@@ -452,6 +448,7 @@ declare class Auth {
452
448
  * @returns {void}
453
449
  */
454
450
  setWalletAddress(walletAddress: string): void;
451
+ recoverProvider(): Promise<void>;
455
452
  /**
456
453
  * Disconnect the user.
457
454
  * @returns {Promise<void>}