flipmeme-sdk 1.3.20 → 1.3.22
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -373,6 +373,7 @@ 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
|
+
claimReferralReward(params: TransferParams): Promise<void>;
|
|
376
377
|
getConnectedAccount(): PublicKey;
|
|
377
378
|
/**For testing */
|
|
378
379
|
getStateInfo(): Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -373,6 +373,7 @@ 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
|
+
claimReferralReward(params: TransferParams): Promise<void>;
|
|
376
377
|
getConnectedAccount(): PublicKey;
|
|
377
378
|
/**For testing */
|
|
378
379
|
getStateInfo(): Promise<{
|
package/dist/index.js
CHANGED
|
@@ -4474,7 +4474,7 @@ var SolanaConnector = class {
|
|
|
4474
4474
|
import_web34.SystemProgram.transfer({
|
|
4475
4475
|
fromPubkey: params.userPubkey,
|
|
4476
4476
|
toPubkey: this.configAddresses.ADMIN_FOR_CREDIT_BUY,
|
|
4477
|
-
lamports: new import_decimal2.default(params.amount).mul(10 ** 9).toNumber()
|
|
4477
|
+
lamports: new import_decimal2.default(params.amount).mul(10 ** 9).floor().toNumber()
|
|
4478
4478
|
})
|
|
4479
4479
|
);
|
|
4480
4480
|
return yield this.config.sendTransaction(
|
|
@@ -4492,7 +4492,7 @@ var SolanaConnector = class {
|
|
|
4492
4492
|
import_web34.SystemProgram.transfer({
|
|
4493
4493
|
fromPubkey: this.configAddresses.REFERRAL_ID,
|
|
4494
4494
|
toPubkey: params.userPubkey,
|
|
4495
|
-
lamports: new import_decimal2.default(params.amount).mul(10 ** 9).toNumber()
|
|
4495
|
+
lamports: new import_decimal2.default(params.amount).mul(10 ** 9).floor().toNumber()
|
|
4496
4496
|
})
|
|
4497
4497
|
);
|
|
4498
4498
|
return yield this.config.sendTransaction(
|
|
@@ -5323,6 +5323,15 @@ 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
5337
|
return this.solana.getConnectedAccount();
|