flipmeme-sdk 1.3.19 → 1.3.21

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/index.d.mts CHANGED
@@ -373,7 +373,8 @@ declare class FlipmemeSDK {
373
373
  extendLookupTable(lookupTableAddress: PublicKey, addressesToAdd: PublicKey[], isInitial?: boolean): Promise<void>;
374
374
  finalizeSale(collectionId: string): Promise<void>;
375
375
  ejectNfts(collectionId: string, nftInfos: NftInfo[]): Promise<void>;
376
- getConnectedAccount(): void;
376
+ claimReferralReward(params: TransferParams): Promise<void>;
377
+ getConnectedAccount(): PublicKey;
377
378
  /**For testing */
378
379
  getStateInfo(): Promise<{
379
380
  admin: PublicKey;
package/dist/index.d.ts CHANGED
@@ -373,7 +373,8 @@ declare class FlipmemeSDK {
373
373
  extendLookupTable(lookupTableAddress: PublicKey, addressesToAdd: PublicKey[], isInitial?: boolean): Promise<void>;
374
374
  finalizeSale(collectionId: string): Promise<void>;
375
375
  ejectNfts(collectionId: string, nftInfos: NftInfo[]): Promise<void>;
376
- getConnectedAccount(): void;
376
+ claimReferralReward(params: TransferParams): Promise<void>;
377
+ getConnectedAccount(): PublicKey;
377
378
  /**For testing */
378
379
  getStateInfo(): Promise<{
379
380
  admin: PublicKey;
package/dist/index.js CHANGED
@@ -5323,9 +5323,18 @@ var FlipmemeSDK = class {
5323
5323
  }
5324
5324
  });
5325
5325
  }
5326
+ claimReferralReward(params) {
5327
+ return __async(this, null, function* () {
5328
+ if (this.blockchainType === "solana" /* SOLANA */ && this.solana) {
5329
+ yield this.solana.claimReferralReward(params);
5330
+ } else {
5331
+ throw new Error("Cannot call this function");
5332
+ }
5333
+ });
5334
+ }
5326
5335
  getConnectedAccount() {
5327
5336
  if (this.blockchainType === "solana" /* SOLANA */ && this.solana) {
5328
- this.solana.getConnectedAccount();
5337
+ return this.solana.getConnectedAccount();
5329
5338
  } else {
5330
5339
  throw new Error("Cannot call this function");
5331
5340
  }