flipmeme-sdk 1.2.47 → 1.2.49
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 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -25,7 +25,6 @@ interface SolanaConfig {
|
|
|
25
25
|
interface CollectionParams {
|
|
26
26
|
sessionId: string;
|
|
27
27
|
name: string;
|
|
28
|
-
symbol: string;
|
|
29
28
|
tokenUri: string;
|
|
30
29
|
totalSupply: number;
|
|
31
30
|
}
|
|
@@ -88,7 +87,7 @@ interface ProfileSellParams {
|
|
|
88
87
|
declare function isEthereumConfig(config: EthereumConfig | SolanaConfig): config is EthereumConfig;
|
|
89
88
|
declare function isSolanaConfig(config: EthereumConfig | SolanaConfig): config is SolanaConfig;
|
|
90
89
|
interface BuyCreditParams {
|
|
91
|
-
|
|
90
|
+
userPubkey: PublicKey;
|
|
92
91
|
amount: number;
|
|
93
92
|
}
|
|
94
93
|
declare enum PurcahseType {
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ interface SolanaConfig {
|
|
|
25
25
|
interface CollectionParams {
|
|
26
26
|
sessionId: string;
|
|
27
27
|
name: string;
|
|
28
|
-
symbol: string;
|
|
29
28
|
tokenUri: string;
|
|
30
29
|
totalSupply: number;
|
|
31
30
|
}
|
|
@@ -88,7 +87,7 @@ interface ProfileSellParams {
|
|
|
88
87
|
declare function isEthereumConfig(config: EthereumConfig | SolanaConfig): config is EthereumConfig;
|
|
89
88
|
declare function isSolanaConfig(config: EthereumConfig | SolanaConfig): config is SolanaConfig;
|
|
90
89
|
interface BuyCreditParams {
|
|
91
|
-
|
|
90
|
+
userPubkey: PublicKey;
|
|
92
91
|
amount: number;
|
|
93
92
|
}
|
|
94
93
|
declare enum PurcahseType {
|
package/dist/index.js
CHANGED
|
@@ -476,10 +476,6 @@ var flipmeme_default = {
|
|
|
476
476
|
name: "uri",
|
|
477
477
|
type: "string"
|
|
478
478
|
},
|
|
479
|
-
{
|
|
480
|
-
name: "symbol",
|
|
481
|
-
type: "string"
|
|
482
|
-
},
|
|
483
479
|
{
|
|
484
480
|
name: "total_supply",
|
|
485
481
|
type: "u32"
|
|
@@ -1992,7 +1988,7 @@ var SOLANA = {
|
|
|
1992
1988
|
ROYALTY_ID_STR: "6oYqWqe23Ff1pnP2qPGhtYAgC7zD3fdWCUfvafaoTJEX",
|
|
1993
1989
|
TOKEN_METADATA_PROGRAM_ID_STR: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
|
|
1994
1990
|
MPL_CORE_STR: "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d",
|
|
1995
|
-
ADMIN_FOR_CREDIT_BUY_STR: "
|
|
1991
|
+
ADMIN_FOR_CREDIT_BUY_STR: "ELaia39FeuTV1EttanpKMy6jbWViJAmjUurnZCB7VxBg",
|
|
1996
1992
|
MPL_BUBBLEGUM_STR: "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY",
|
|
1997
1993
|
SPL_ACCOUNT_COMPRESSION_STR: "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK",
|
|
1998
1994
|
SPL_NOOP_STR: "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV",
|
|
@@ -2275,7 +2271,7 @@ var SolanaConnector = class {
|
|
|
2275
2271
|
SOLANA_PUBKEYS.STATE_ID
|
|
2276
2272
|
);
|
|
2277
2273
|
const collectionID = state.collectionCount;
|
|
2278
|
-
const { sessionId, name, tokenUri, totalSupply
|
|
2274
|
+
const { sessionId, name, tokenUri, totalSupply } = params;
|
|
2279
2275
|
const { collectionPda: collectionPda2, collectionNftPda: collectionNftPda2 } = yield getTradingAccounts(
|
|
2280
2276
|
this.program.programId,
|
|
2281
2277
|
collectionID.toString(),
|
|
@@ -2287,7 +2283,6 @@ var SolanaConnector = class {
|
|
|
2287
2283
|
sessionId,
|
|
2288
2284
|
name,
|
|
2289
2285
|
tokenUri,
|
|
2290
|
-
symbol,
|
|
2291
2286
|
totalSupply,
|
|
2292
2287
|
new import_bn.default(1e7),
|
|
2293
2288
|
new import_bn.default(2e8)
|
|
@@ -2461,7 +2456,7 @@ var SolanaConnector = class {
|
|
|
2461
2456
|
}
|
|
2462
2457
|
const transaction = new import_web34.Transaction().add(
|
|
2463
2458
|
import_web34.SystemProgram.transfer({
|
|
2464
|
-
fromPubkey: params.
|
|
2459
|
+
fromPubkey: params.userPubkey,
|
|
2465
2460
|
toPubkey: SOLANA_PUBKEYS.ADMIN_FOR_CREDIT_BUY,
|
|
2466
2461
|
lamports: new import_decimal2.default(params.amount).mul(10 ** 9).toNumber()
|
|
2467
2462
|
})
|