flipmeme-sdk 1.2.23 → 1.2.25
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 +9 -12
- package/dist/index.d.ts +9 -12
- package/dist/index.js +373 -1018
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +346 -996
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -32,16 +32,14 @@ interface CreateCollectionResponse {
|
|
|
32
32
|
collectionId: string;
|
|
33
33
|
collectionAddress: string;
|
|
34
34
|
}
|
|
35
|
-
interface
|
|
36
|
-
tokenIds:
|
|
37
|
-
merkleTree: string;
|
|
35
|
+
interface SellData {
|
|
36
|
+
tokenIds: string[];
|
|
38
37
|
}
|
|
39
38
|
interface ReserveToken {
|
|
40
|
-
buy:
|
|
39
|
+
buy: string[] | null;
|
|
41
40
|
mintAndBuy: string[] | null;
|
|
42
41
|
}
|
|
43
42
|
interface BuyParams {
|
|
44
|
-
merkleTree: string;
|
|
45
43
|
collectionId: string;
|
|
46
44
|
collectionSymbol: string;
|
|
47
45
|
creatorAddress: string;
|
|
@@ -49,7 +47,7 @@ interface BuyParams {
|
|
|
49
47
|
reserveToken: ReserveToken | null;
|
|
50
48
|
}
|
|
51
49
|
interface NftInfo {
|
|
52
|
-
nftId:
|
|
50
|
+
nftId: string;
|
|
53
51
|
nftOnwer: string;
|
|
54
52
|
}
|
|
55
53
|
interface BuyResponse {
|
|
@@ -81,11 +79,10 @@ interface SellResponse {
|
|
|
81
79
|
}
|
|
82
80
|
interface SellParams {
|
|
83
81
|
collectionId: string;
|
|
84
|
-
|
|
85
|
-
ownedTokens: number[];
|
|
82
|
+
ownedTokens: string[];
|
|
86
83
|
}
|
|
87
84
|
interface ProfileSellParams {
|
|
88
|
-
data: Record<string,
|
|
85
|
+
data: Record<string, SellData>;
|
|
89
86
|
}
|
|
90
87
|
declare function isEthereumConfig(config: EthereumConfig | SolanaConfig): config is EthereumConfig;
|
|
91
88
|
declare function isSolanaConfig(config: EthereumConfig | SolanaConfig): config is SolanaConfig;
|
|
@@ -141,7 +138,6 @@ declare class FlipmemeSDK {
|
|
|
141
138
|
profileSell(data: ProfileSellParams): Promise<SellResponse[]>;
|
|
142
139
|
buyCredit(params: BuyCreditParams): Promise<string>;
|
|
143
140
|
getTotalPrice(type: PurcahseType, collectionId: string, amount: number): Promise<string>;
|
|
144
|
-
createMerkle(collectionId: string, depthSize: number): Promise<PublicKey>;
|
|
145
141
|
/**
|
|
146
142
|
* create lookup table account with lookuptable addresses and return lookup table account
|
|
147
143
|
* @param lookupTableAddresses addresses to add lookup table
|
|
@@ -149,7 +145,7 @@ declare class FlipmemeSDK {
|
|
|
149
145
|
createLookupTableAndExtend(addressesToAdd: PublicKey[]): Promise<PublicKey>;
|
|
150
146
|
extendLookupTable(lookupTableAddress: PublicKey, addressesToAdd: PublicKey[], isInitial?: boolean): Promise<void>;
|
|
151
147
|
finalizeSale(collectionId: string): Promise<void>;
|
|
152
|
-
ejectNfts(collectionId: string,
|
|
148
|
+
ejectNfts(collectionId: string, nftInfos: NftInfo[]): Promise<void>;
|
|
153
149
|
/**For testing */
|
|
154
150
|
getStateInfo(): Promise<{
|
|
155
151
|
admin: PublicKey;
|
|
@@ -217,6 +213,7 @@ declare const SOLANA_PUBKEYS: {
|
|
|
217
213
|
LP_PROVISIONER_ID: PublicKey;
|
|
218
214
|
TOKEN_METADATA_PROGRAM_ID: PublicKey;
|
|
219
215
|
ADMIN_FOR_CREDIT_BUY: PublicKey;
|
|
216
|
+
MPL_CORE: PublicKey;
|
|
220
217
|
MPL_BUBBLEGUM_ID: PublicKey;
|
|
221
218
|
SPL_ACCOUNT_COMPRESSION_ID: PublicKey;
|
|
222
219
|
SPL_NOOP_ID: PublicKey;
|
|
@@ -321,4 +318,4 @@ declare const VALID_SIZE_PAIR: {
|
|
|
321
318
|
};
|
|
322
319
|
};
|
|
323
320
|
|
|
324
|
-
export { type AssetData, type AssetInfo, BlockchainType, type BuyCreditParams, type BuyParams, type BuyResponse, type CollectionInfo, type CollectionParams, type Compression, type CreateCollectionResponse, ENV, type EthereumConfig, FlipmemeSDK, type MerkleProof, type
|
|
321
|
+
export { type AssetData, type AssetInfo, BlockchainType, type BuyCreditParams, type BuyParams, type BuyResponse, type CollectionInfo, type CollectionParams, type Compression, type CreateCollectionResponse, ENV, type EthereumConfig, FlipmemeSDK, type MerkleProof, type NftInfo, type Ownership, type ProfileSellParams, PurcahseType, RPC, type ReserveToken, SDK_SOLANA_CONFIG, SOLANA, SOLANA_PUBKEYS, type SellData, type SellParams, type SellResponse, type SolanaConfig, VALID_SIZE_PAIR, isEthereumConfig, isSolanaConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -32,16 +32,14 @@ interface CreateCollectionResponse {
|
|
|
32
32
|
collectionId: string;
|
|
33
33
|
collectionAddress: string;
|
|
34
34
|
}
|
|
35
|
-
interface
|
|
36
|
-
tokenIds:
|
|
37
|
-
merkleTree: string;
|
|
35
|
+
interface SellData {
|
|
36
|
+
tokenIds: string[];
|
|
38
37
|
}
|
|
39
38
|
interface ReserveToken {
|
|
40
|
-
buy:
|
|
39
|
+
buy: string[] | null;
|
|
41
40
|
mintAndBuy: string[] | null;
|
|
42
41
|
}
|
|
43
42
|
interface BuyParams {
|
|
44
|
-
merkleTree: string;
|
|
45
43
|
collectionId: string;
|
|
46
44
|
collectionSymbol: string;
|
|
47
45
|
creatorAddress: string;
|
|
@@ -49,7 +47,7 @@ interface BuyParams {
|
|
|
49
47
|
reserveToken: ReserveToken | null;
|
|
50
48
|
}
|
|
51
49
|
interface NftInfo {
|
|
52
|
-
nftId:
|
|
50
|
+
nftId: string;
|
|
53
51
|
nftOnwer: string;
|
|
54
52
|
}
|
|
55
53
|
interface BuyResponse {
|
|
@@ -81,11 +79,10 @@ interface SellResponse {
|
|
|
81
79
|
}
|
|
82
80
|
interface SellParams {
|
|
83
81
|
collectionId: string;
|
|
84
|
-
|
|
85
|
-
ownedTokens: number[];
|
|
82
|
+
ownedTokens: string[];
|
|
86
83
|
}
|
|
87
84
|
interface ProfileSellParams {
|
|
88
|
-
data: Record<string,
|
|
85
|
+
data: Record<string, SellData>;
|
|
89
86
|
}
|
|
90
87
|
declare function isEthereumConfig(config: EthereumConfig | SolanaConfig): config is EthereumConfig;
|
|
91
88
|
declare function isSolanaConfig(config: EthereumConfig | SolanaConfig): config is SolanaConfig;
|
|
@@ -141,7 +138,6 @@ declare class FlipmemeSDK {
|
|
|
141
138
|
profileSell(data: ProfileSellParams): Promise<SellResponse[]>;
|
|
142
139
|
buyCredit(params: BuyCreditParams): Promise<string>;
|
|
143
140
|
getTotalPrice(type: PurcahseType, collectionId: string, amount: number): Promise<string>;
|
|
144
|
-
createMerkle(collectionId: string, depthSize: number): Promise<PublicKey>;
|
|
145
141
|
/**
|
|
146
142
|
* create lookup table account with lookuptable addresses and return lookup table account
|
|
147
143
|
* @param lookupTableAddresses addresses to add lookup table
|
|
@@ -149,7 +145,7 @@ declare class FlipmemeSDK {
|
|
|
149
145
|
createLookupTableAndExtend(addressesToAdd: PublicKey[]): Promise<PublicKey>;
|
|
150
146
|
extendLookupTable(lookupTableAddress: PublicKey, addressesToAdd: PublicKey[], isInitial?: boolean): Promise<void>;
|
|
151
147
|
finalizeSale(collectionId: string): Promise<void>;
|
|
152
|
-
ejectNfts(collectionId: string,
|
|
148
|
+
ejectNfts(collectionId: string, nftInfos: NftInfo[]): Promise<void>;
|
|
153
149
|
/**For testing */
|
|
154
150
|
getStateInfo(): Promise<{
|
|
155
151
|
admin: PublicKey;
|
|
@@ -217,6 +213,7 @@ declare const SOLANA_PUBKEYS: {
|
|
|
217
213
|
LP_PROVISIONER_ID: PublicKey;
|
|
218
214
|
TOKEN_METADATA_PROGRAM_ID: PublicKey;
|
|
219
215
|
ADMIN_FOR_CREDIT_BUY: PublicKey;
|
|
216
|
+
MPL_CORE: PublicKey;
|
|
220
217
|
MPL_BUBBLEGUM_ID: PublicKey;
|
|
221
218
|
SPL_ACCOUNT_COMPRESSION_ID: PublicKey;
|
|
222
219
|
SPL_NOOP_ID: PublicKey;
|
|
@@ -321,4 +318,4 @@ declare const VALID_SIZE_PAIR: {
|
|
|
321
318
|
};
|
|
322
319
|
};
|
|
323
320
|
|
|
324
|
-
export { type AssetData, type AssetInfo, BlockchainType, type BuyCreditParams, type BuyParams, type BuyResponse, type CollectionInfo, type CollectionParams, type Compression, type CreateCollectionResponse, ENV, type EthereumConfig, FlipmemeSDK, type MerkleProof, type
|
|
321
|
+
export { type AssetData, type AssetInfo, BlockchainType, type BuyCreditParams, type BuyParams, type BuyResponse, type CollectionInfo, type CollectionParams, type Compression, type CreateCollectionResponse, ENV, type EthereumConfig, FlipmemeSDK, type MerkleProof, type NftInfo, type Ownership, type ProfileSellParams, PurcahseType, RPC, type ReserveToken, SDK_SOLANA_CONFIG, SOLANA, SOLANA_PUBKEYS, type SellData, type SellParams, type SellResponse, type SolanaConfig, VALID_SIZE_PAIR, isEthereumConfig, isSolanaConfig };
|