flipmeme-sdk 1.3.55 → 1.3.57

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
@@ -1,16 +1,20 @@
1
+ import * as BN from 'bn.js';
2
+ import BN__default from 'bn.js';
1
3
  import { AnchorProvider } from '@coral-xyz/anchor';
2
4
  import { SendTransactionOptions } from '@solana/wallet-adapter-base';
3
- import BN from 'bn.js';
5
+ import * as _solana_web3_js from '@solana/web3.js';
4
6
  import { PublicKey, Transaction, VersionedTransaction, Connection, TransactionSignature, Keypair } from '@solana/web3.js';
7
+ import { Signer, ethers, BigNumber } from 'ethers';
8
+ import Decimal from 'decimal.js';
5
9
 
6
10
  declare enum BlockchainType {
7
11
  SOLANA = "solana",
8
12
  ETHEREUM = "ethereum"
9
13
  }
10
14
  interface EthereumConfig {
11
- rpcUrl: string;
12
- privateKey?: string;
15
+ signer?: Signer;
13
16
  chainId: number;
17
+ provider: ethers.providers.BaseProvider;
14
18
  }
15
19
  interface SolanaConfig {
16
20
  provider: AnchorProvider;
@@ -23,6 +27,10 @@ interface CollectionParams {
23
27
  name: string;
24
28
  tokenUri: string;
25
29
  totalSupply: number;
30
+ symbol?: string;
31
+ premint?: number;
32
+ startPrice?: string;
33
+ endPrice?: string;
26
34
  }
27
35
  interface CreateCollectionResponse {
28
36
  collectionId: string;
@@ -32,6 +40,10 @@ interface SellData {
32
40
  tokenIds: string[];
33
41
  collectionInfo: CollectionInfo;
34
42
  }
43
+ interface EthSellData {
44
+ tokenIds: number[];
45
+ collectionId: string;
46
+ }
35
47
  interface ReserveToken {
36
48
  buy: string[] | null;
37
49
  mintAndBuy: string[] | null;
@@ -42,6 +54,17 @@ interface BuyParams {
42
54
  reserveToken: ReserveToken | null;
43
55
  slippage: number;
44
56
  }
57
+ /**
58
+ * buy param for mint and buy or buy
59
+ * if baseUri is null means the param is used for buy from liquidity pool
60
+ * and in this case amount should be 0;
61
+ */
62
+ interface EthBuyParams {
63
+ collectionAddress: string;
64
+ baseUri?: string;
65
+ amount: number;
66
+ tokenIds: number[];
67
+ }
45
68
  interface NftInfo {
46
69
  nftId: string;
47
70
  nftOnwer: string;
@@ -99,23 +122,33 @@ interface SDKSignature {
99
122
  interface ConfirmResult {
100
123
  successCount: number;
101
124
  failedCount: number;
102
- signatures: string[];
103
125
  }
104
126
  interface SellParams {
105
127
  collectionInfo: CollectionInfo;
106
128
  slippage: number;
107
129
  ownedTokens: string[];
108
130
  }
131
+ interface EthSellParams {
132
+ collectionAddress: string;
133
+ tokenIds: number[];
134
+ }
109
135
  interface ProfileSellParams {
110
136
  data: Record<string, SellData>;
111
137
  slippage: number;
112
138
  }
139
+ interface EthProfileSellParams {
140
+ data: Record<string, EthSellData>;
141
+ slippage: number;
142
+ }
113
143
  declare function isEthereumConfig(config: EthereumConfig | SolanaConfig): config is EthereumConfig;
114
144
  declare function isSolanaConfig(config: EthereumConfig | SolanaConfig): config is SolanaConfig;
115
145
  interface TransferParams {
116
146
  userPubkey: PublicKey;
117
147
  amount: number;
118
148
  }
149
+ interface EthTransferParams {
150
+ amount: string;
151
+ }
119
152
  declare enum PurcahseType {
120
153
  BUY = "buy",
121
154
  SELL = "sell"
@@ -123,16 +156,16 @@ declare enum PurcahseType {
123
156
  interface CollectionInfo {
124
157
  collectionInfo: {
125
158
  pool: {
126
- currentPrice: BN;
127
- startPrice: BN;
128
- endPrice: BN;
159
+ currentPrice: BN__default;
160
+ startPrice: BN__default;
161
+ endPrice: BN__default;
129
162
  nftCount: number;
130
163
  steepness: number;
131
164
  midPoint: number;
132
165
  padding: number[];
133
166
  };
134
167
  creator: PublicKey;
135
- totalSol: BN;
168
+ totalSol: BN__default;
136
169
  totalSupply: number;
137
170
  mintCount: number;
138
171
  id: number;
@@ -176,6 +209,16 @@ interface AssetInfo {
176
209
  assetData: AssetData;
177
210
  assetProof: MerkleProof;
178
211
  }
212
+ interface ETHAddresses {
213
+ TREASURY: string;
214
+ LP_SELL_OUT: string;
215
+ LP_PROVIDER: string;
216
+ ROYALTY: string;
217
+ FACTORY: string;
218
+ PROTOCOL_FEE_BPS: number;
219
+ ADMIN_FOR_CREDIT_BUY: string;
220
+ REFERRAL_CLAIM: string;
221
+ }
179
222
 
180
223
  declare const SOLANA_MAIN: {
181
224
  LOOKUP_TABLE_STR: string;
@@ -352,6 +395,29 @@ declare const VALID_SIZE_PAIR: {
352
395
  maxDepth: number;
353
396
  };
354
397
  };
398
+ declare const ETH_COMMON: {
399
+ TREASURY: string;
400
+ LP_SELL_OUT: string;
401
+ LP_PROVIDER: string;
402
+ ROYALTY: string;
403
+ ADMIN_FOR_CREDIT_BUY: string;
404
+ REFERRAL_CLAIM: string;
405
+ PROTOCOL_FEE_BPS: number;
406
+ };
407
+ interface ETHAddressesExtended extends ETHAddresses {
408
+ ADMIN_FOR_CREDIT_BUY: string;
409
+ REFERRAL_CLAIM: string;
410
+ }
411
+ declare const ETH_DEV: {
412
+ TREASURY: string;
413
+ LP_SELL_OUT: string;
414
+ LP_PROVIDER: string;
415
+ ROYALTY: string;
416
+ ADMIN_FOR_CREDIT_BUY: string;
417
+ REFERRAL_CLAIM: string;
418
+ PROTOCOL_FEE_BPS: number;
419
+ FACTORY: string;
420
+ };
355
421
 
356
422
  declare class FlipmemeSDK {
357
423
  private blockchainType;
@@ -360,10 +426,18 @@ declare class FlipmemeSDK {
360
426
  constructor(chainType: BlockchainType, plateform: PLATFORM, config: EthereumConfig | SolanaConfig);
361
427
  updateConfig(chainType: BlockchainType, plateform: PLATFORM, config: EthereumConfig | SolanaConfig): void;
362
428
  createCollection(params: CollectionParams): Promise<CreateCollectionResponse>;
363
- buy(params: BuyParams): Promise<ConfirmResult>;
364
- flipSell(params: SellParams): Promise<ConfirmResult>;
365
- profileSell(data: ProfileSellParams): Promise<ConfirmResult>;
366
- buyCredit(params: TransferParams): Promise<string>;
429
+ buy(params: BuyParams | EthBuyParams): Promise<ConfirmResult>;
430
+ flipSell(params: SellParams | EthSellParams): Promise<ConfirmResult>;
431
+ profileSell(data: ProfileSellParams | EthProfileSellParams): Promise<ConfirmResult>;
432
+ buyCredit(params: TransferParams | {
433
+ amount: string;
434
+ }): Promise<string | {
435
+ signature: string;
436
+ latestBlockhash: Readonly<{
437
+ blockhash: _solana_web3_js.Blockhash;
438
+ lastValidBlockHeight: number;
439
+ }>;
440
+ }>;
367
441
  getTotalPrice(type: PurcahseType, collectionId: string, amount: number): Promise<string>;
368
442
  /**
369
443
  * create lookup table account with lookuptable addresses and return lookup table account
@@ -373,10 +447,10 @@ declare class FlipmemeSDK {
373
447
  extendLookupTable(lookupTableAddress: PublicKey, addressesToAdd: PublicKey[], isInitial?: boolean): Promise<void>;
374
448
  finalizeSale(collectionId: string): Promise<void>;
375
449
  ejectNfts(collectionId: string, nftInfos: NftInfo[]): Promise<void>;
376
- claimReferralReward(params: TransferParams): Promise<void>;
377
- getConnectedAccount(): PublicKey;
450
+ claimReferralReward(userAddress: string, amount: string): Promise<string | void>;
451
+ getConnectedAccount(): Promise<PublicKey | string>;
378
452
  /**For testing */
379
- getStateInfo(): Promise<{
453
+ getStateInfo(): Promise<[string, BigNumber, string, BigNumber, BigNumber, string] | {
380
454
  admin: PublicKey;
381
455
  treasury: PublicKey;
382
456
  lpSellout: PublicKey;
@@ -386,9 +460,27 @@ declare class FlipmemeSDK {
386
460
  protocolFeeBps: number;
387
461
  sellerFeeBasisPoints: number;
388
462
  }>;
389
- getCollectionInfo(collectionId: string): Promise<CollectionInfo>;
390
- getTransactionTest(signature: string, transactionType?: string): Promise<BuyResponse[] | SellResponse[]>;
463
+ getCollectionInfo(collectionId: string): Promise<CollectionInfo | [string, BigNumber, string, BigNumber, BigNumber, boolean, BigNumber, string, string, string]>;
464
+ getPriceOfIndex(type: PurcahseType, collectionId: string, index: number): Promise<string>;
465
+ getLiquidityPool(collectionId: string): Promise<{
466
+ currentPrice: BN;
467
+ startPrice: BN;
468
+ endPrice: BN;
469
+ nftCount: number;
470
+ steepness: number;
471
+ midPoint: number;
472
+ padding: number[];
473
+ } | [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, boolean]>;
474
+ getTransactionTest(signature: string, collectionId: string, transactionType?: string): Promise<BuyResponse[] | SellResponse[]>;
391
475
  getInstructionData(instruction: string): Promise<void>;
476
+ /**For testing end */
477
+ moveLiquidity(collectionAddress: string): Promise<void>;
478
+ calculatePrice(collectionAddress: string): Promise<string>;
479
+ calculateTradeFee(collectionAddress: string, price: string): Promise<string>;
480
+ getTokenURI(collectionAddress: string, tokenId: number): Promise<string>;
481
+ totalSupply(collectionAddress: string): Promise<string>;
482
+ balanceOf(collectionAddress: string, owner: string): Promise<string>;
483
+ ownerOf(collectionAddress: string, tokenId: number): Promise<string>;
392
484
  }
393
485
 
394
486
  /**
@@ -397,11 +489,11 @@ declare class FlipmemeSDK {
397
489
  declare function placeTensorCollectionBid(price: number, quantity: number, collectionMint: string, privateKey: string, tensorApiKey: string): Promise<String>;
398
490
 
399
491
  declare function decodeStr(str: string): string;
492
+ declare function getPrice(_mintCount: string, _nftCount: string, _steepness: string, _midPoint: string, _startPrice: string, _endPrice: string): Decimal;
400
493
 
401
- declare function getCollectionSymbol(collectionMint: string): Promise<string | undefined>;
402
494
  /**
403
495
  * this function only works for solana mainnet. So don't need to get connection as parameter
404
496
  */
405
497
  declare function placeMagicEdenCollectionBid(price: number, quantity: number, collectionMint: string, privateKey: string, magicApiKey: string): Promise<String | undefined>;
406
498
 
407
- export { type AssetData, type AssetInfo, BlockchainType, type BuyParams, type BuyResponse, COLLECTION_BID_PRICE, type CollectionInfo, type CollectionParams, type Compression, type ConfirmResult, type CreateCollectionResponse, ENV, type EthereumConfig, FlipmemeSDK, type MerkleProof, type NetworkAddress, type NftInfo, type Ownership, PLATFORM, type ProfileSellParams, PurcahseType, RPC, type ReserveToken, type SDKSignature, type SDKTransaction, SDK_SOLANA_CONFIG, SOLANA_COMMON, SOLANA_DEV, SOLANA_MAIN, SOLANA_PUBKEYS, SOLANA_PUBKEYS_DEV, SOLANA_PUBKEYS_STAGE, SOLANA_STAGE, type SellData, type SellParams, type SellResponse, type SolanaConfig, type TransferParams, VALID_SIZE_PAIR, decodeStr, getCollectionSymbol, isEthereumConfig, isSolanaConfig, placeMagicEdenCollectionBid, placeTensorCollectionBid };
499
+ export { type AssetData, type AssetInfo, BlockchainType, type BuyParams, type BuyResponse, COLLECTION_BID_PRICE, type CollectionInfo, type CollectionParams, type Compression, type ConfirmResult, type CreateCollectionResponse, ENV, type ETHAddresses, type ETHAddressesExtended, ETH_COMMON, ETH_DEV, type EthBuyParams, type EthProfileSellParams, type EthSellData, type EthSellParams, type EthTransferParams, type EthereumConfig, FlipmemeSDK, type MerkleProof, type NetworkAddress, type NftInfo, type Ownership, PLATFORM, type ProfileSellParams, PurcahseType, RPC, type ReserveToken, type SDKSignature, type SDKTransaction, SDK_SOLANA_CONFIG, SOLANA_COMMON, SOLANA_DEV, SOLANA_MAIN, SOLANA_PUBKEYS, SOLANA_PUBKEYS_DEV, SOLANA_PUBKEYS_STAGE, SOLANA_STAGE, type SellData, type SellParams, type SellResponse, type SolanaConfig, type TransferParams, VALID_SIZE_PAIR, decodeStr, getPrice, isEthereumConfig, isSolanaConfig, placeMagicEdenCollectionBid, placeTensorCollectionBid };
package/dist/index.d.ts CHANGED
@@ -1,16 +1,20 @@
1
+ import * as BN from 'bn.js';
2
+ import BN__default from 'bn.js';
1
3
  import { AnchorProvider } from '@coral-xyz/anchor';
2
4
  import { SendTransactionOptions } from '@solana/wallet-adapter-base';
3
- import BN from 'bn.js';
5
+ import * as _solana_web3_js from '@solana/web3.js';
4
6
  import { PublicKey, Transaction, VersionedTransaction, Connection, TransactionSignature, Keypair } from '@solana/web3.js';
7
+ import { Signer, ethers, BigNumber } from 'ethers';
8
+ import Decimal from 'decimal.js';
5
9
 
6
10
  declare enum BlockchainType {
7
11
  SOLANA = "solana",
8
12
  ETHEREUM = "ethereum"
9
13
  }
10
14
  interface EthereumConfig {
11
- rpcUrl: string;
12
- privateKey?: string;
15
+ signer?: Signer;
13
16
  chainId: number;
17
+ provider: ethers.providers.BaseProvider;
14
18
  }
15
19
  interface SolanaConfig {
16
20
  provider: AnchorProvider;
@@ -23,6 +27,10 @@ interface CollectionParams {
23
27
  name: string;
24
28
  tokenUri: string;
25
29
  totalSupply: number;
30
+ symbol?: string;
31
+ premint?: number;
32
+ startPrice?: string;
33
+ endPrice?: string;
26
34
  }
27
35
  interface CreateCollectionResponse {
28
36
  collectionId: string;
@@ -32,6 +40,10 @@ interface SellData {
32
40
  tokenIds: string[];
33
41
  collectionInfo: CollectionInfo;
34
42
  }
43
+ interface EthSellData {
44
+ tokenIds: number[];
45
+ collectionId: string;
46
+ }
35
47
  interface ReserveToken {
36
48
  buy: string[] | null;
37
49
  mintAndBuy: string[] | null;
@@ -42,6 +54,17 @@ interface BuyParams {
42
54
  reserveToken: ReserveToken | null;
43
55
  slippage: number;
44
56
  }
57
+ /**
58
+ * buy param for mint and buy or buy
59
+ * if baseUri is null means the param is used for buy from liquidity pool
60
+ * and in this case amount should be 0;
61
+ */
62
+ interface EthBuyParams {
63
+ collectionAddress: string;
64
+ baseUri?: string;
65
+ amount: number;
66
+ tokenIds: number[];
67
+ }
45
68
  interface NftInfo {
46
69
  nftId: string;
47
70
  nftOnwer: string;
@@ -99,23 +122,33 @@ interface SDKSignature {
99
122
  interface ConfirmResult {
100
123
  successCount: number;
101
124
  failedCount: number;
102
- signatures: string[];
103
125
  }
104
126
  interface SellParams {
105
127
  collectionInfo: CollectionInfo;
106
128
  slippage: number;
107
129
  ownedTokens: string[];
108
130
  }
131
+ interface EthSellParams {
132
+ collectionAddress: string;
133
+ tokenIds: number[];
134
+ }
109
135
  interface ProfileSellParams {
110
136
  data: Record<string, SellData>;
111
137
  slippage: number;
112
138
  }
139
+ interface EthProfileSellParams {
140
+ data: Record<string, EthSellData>;
141
+ slippage: number;
142
+ }
113
143
  declare function isEthereumConfig(config: EthereumConfig | SolanaConfig): config is EthereumConfig;
114
144
  declare function isSolanaConfig(config: EthereumConfig | SolanaConfig): config is SolanaConfig;
115
145
  interface TransferParams {
116
146
  userPubkey: PublicKey;
117
147
  amount: number;
118
148
  }
149
+ interface EthTransferParams {
150
+ amount: string;
151
+ }
119
152
  declare enum PurcahseType {
120
153
  BUY = "buy",
121
154
  SELL = "sell"
@@ -123,16 +156,16 @@ declare enum PurcahseType {
123
156
  interface CollectionInfo {
124
157
  collectionInfo: {
125
158
  pool: {
126
- currentPrice: BN;
127
- startPrice: BN;
128
- endPrice: BN;
159
+ currentPrice: BN__default;
160
+ startPrice: BN__default;
161
+ endPrice: BN__default;
129
162
  nftCount: number;
130
163
  steepness: number;
131
164
  midPoint: number;
132
165
  padding: number[];
133
166
  };
134
167
  creator: PublicKey;
135
- totalSol: BN;
168
+ totalSol: BN__default;
136
169
  totalSupply: number;
137
170
  mintCount: number;
138
171
  id: number;
@@ -176,6 +209,16 @@ interface AssetInfo {
176
209
  assetData: AssetData;
177
210
  assetProof: MerkleProof;
178
211
  }
212
+ interface ETHAddresses {
213
+ TREASURY: string;
214
+ LP_SELL_OUT: string;
215
+ LP_PROVIDER: string;
216
+ ROYALTY: string;
217
+ FACTORY: string;
218
+ PROTOCOL_FEE_BPS: number;
219
+ ADMIN_FOR_CREDIT_BUY: string;
220
+ REFERRAL_CLAIM: string;
221
+ }
179
222
 
180
223
  declare const SOLANA_MAIN: {
181
224
  LOOKUP_TABLE_STR: string;
@@ -352,6 +395,29 @@ declare const VALID_SIZE_PAIR: {
352
395
  maxDepth: number;
353
396
  };
354
397
  };
398
+ declare const ETH_COMMON: {
399
+ TREASURY: string;
400
+ LP_SELL_OUT: string;
401
+ LP_PROVIDER: string;
402
+ ROYALTY: string;
403
+ ADMIN_FOR_CREDIT_BUY: string;
404
+ REFERRAL_CLAIM: string;
405
+ PROTOCOL_FEE_BPS: number;
406
+ };
407
+ interface ETHAddressesExtended extends ETHAddresses {
408
+ ADMIN_FOR_CREDIT_BUY: string;
409
+ REFERRAL_CLAIM: string;
410
+ }
411
+ declare const ETH_DEV: {
412
+ TREASURY: string;
413
+ LP_SELL_OUT: string;
414
+ LP_PROVIDER: string;
415
+ ROYALTY: string;
416
+ ADMIN_FOR_CREDIT_BUY: string;
417
+ REFERRAL_CLAIM: string;
418
+ PROTOCOL_FEE_BPS: number;
419
+ FACTORY: string;
420
+ };
355
421
 
356
422
  declare class FlipmemeSDK {
357
423
  private blockchainType;
@@ -360,10 +426,18 @@ declare class FlipmemeSDK {
360
426
  constructor(chainType: BlockchainType, plateform: PLATFORM, config: EthereumConfig | SolanaConfig);
361
427
  updateConfig(chainType: BlockchainType, plateform: PLATFORM, config: EthereumConfig | SolanaConfig): void;
362
428
  createCollection(params: CollectionParams): Promise<CreateCollectionResponse>;
363
- buy(params: BuyParams): Promise<ConfirmResult>;
364
- flipSell(params: SellParams): Promise<ConfirmResult>;
365
- profileSell(data: ProfileSellParams): Promise<ConfirmResult>;
366
- buyCredit(params: TransferParams): Promise<string>;
429
+ buy(params: BuyParams | EthBuyParams): Promise<ConfirmResult>;
430
+ flipSell(params: SellParams | EthSellParams): Promise<ConfirmResult>;
431
+ profileSell(data: ProfileSellParams | EthProfileSellParams): Promise<ConfirmResult>;
432
+ buyCredit(params: TransferParams | {
433
+ amount: string;
434
+ }): Promise<string | {
435
+ signature: string;
436
+ latestBlockhash: Readonly<{
437
+ blockhash: _solana_web3_js.Blockhash;
438
+ lastValidBlockHeight: number;
439
+ }>;
440
+ }>;
367
441
  getTotalPrice(type: PurcahseType, collectionId: string, amount: number): Promise<string>;
368
442
  /**
369
443
  * create lookup table account with lookuptable addresses and return lookup table account
@@ -373,10 +447,10 @@ declare class FlipmemeSDK {
373
447
  extendLookupTable(lookupTableAddress: PublicKey, addressesToAdd: PublicKey[], isInitial?: boolean): Promise<void>;
374
448
  finalizeSale(collectionId: string): Promise<void>;
375
449
  ejectNfts(collectionId: string, nftInfos: NftInfo[]): Promise<void>;
376
- claimReferralReward(params: TransferParams): Promise<void>;
377
- getConnectedAccount(): PublicKey;
450
+ claimReferralReward(userAddress: string, amount: string): Promise<string | void>;
451
+ getConnectedAccount(): Promise<PublicKey | string>;
378
452
  /**For testing */
379
- getStateInfo(): Promise<{
453
+ getStateInfo(): Promise<[string, BigNumber, string, BigNumber, BigNumber, string] | {
380
454
  admin: PublicKey;
381
455
  treasury: PublicKey;
382
456
  lpSellout: PublicKey;
@@ -386,9 +460,27 @@ declare class FlipmemeSDK {
386
460
  protocolFeeBps: number;
387
461
  sellerFeeBasisPoints: number;
388
462
  }>;
389
- getCollectionInfo(collectionId: string): Promise<CollectionInfo>;
390
- getTransactionTest(signature: string, transactionType?: string): Promise<BuyResponse[] | SellResponse[]>;
463
+ getCollectionInfo(collectionId: string): Promise<CollectionInfo | [string, BigNumber, string, BigNumber, BigNumber, boolean, BigNumber, string, string, string]>;
464
+ getPriceOfIndex(type: PurcahseType, collectionId: string, index: number): Promise<string>;
465
+ getLiquidityPool(collectionId: string): Promise<{
466
+ currentPrice: BN;
467
+ startPrice: BN;
468
+ endPrice: BN;
469
+ nftCount: number;
470
+ steepness: number;
471
+ midPoint: number;
472
+ padding: number[];
473
+ } | [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, boolean]>;
474
+ getTransactionTest(signature: string, collectionId: string, transactionType?: string): Promise<BuyResponse[] | SellResponse[]>;
391
475
  getInstructionData(instruction: string): Promise<void>;
476
+ /**For testing end */
477
+ moveLiquidity(collectionAddress: string): Promise<void>;
478
+ calculatePrice(collectionAddress: string): Promise<string>;
479
+ calculateTradeFee(collectionAddress: string, price: string): Promise<string>;
480
+ getTokenURI(collectionAddress: string, tokenId: number): Promise<string>;
481
+ totalSupply(collectionAddress: string): Promise<string>;
482
+ balanceOf(collectionAddress: string, owner: string): Promise<string>;
483
+ ownerOf(collectionAddress: string, tokenId: number): Promise<string>;
392
484
  }
393
485
 
394
486
  /**
@@ -397,11 +489,11 @@ declare class FlipmemeSDK {
397
489
  declare function placeTensorCollectionBid(price: number, quantity: number, collectionMint: string, privateKey: string, tensorApiKey: string): Promise<String>;
398
490
 
399
491
  declare function decodeStr(str: string): string;
492
+ declare function getPrice(_mintCount: string, _nftCount: string, _steepness: string, _midPoint: string, _startPrice: string, _endPrice: string): Decimal;
400
493
 
401
- declare function getCollectionSymbol(collectionMint: string): Promise<string | undefined>;
402
494
  /**
403
495
  * this function only works for solana mainnet. So don't need to get connection as parameter
404
496
  */
405
497
  declare function placeMagicEdenCollectionBid(price: number, quantity: number, collectionMint: string, privateKey: string, magicApiKey: string): Promise<String | undefined>;
406
498
 
407
- export { type AssetData, type AssetInfo, BlockchainType, type BuyParams, type BuyResponse, COLLECTION_BID_PRICE, type CollectionInfo, type CollectionParams, type Compression, type ConfirmResult, type CreateCollectionResponse, ENV, type EthereumConfig, FlipmemeSDK, type MerkleProof, type NetworkAddress, type NftInfo, type Ownership, PLATFORM, type ProfileSellParams, PurcahseType, RPC, type ReserveToken, type SDKSignature, type SDKTransaction, SDK_SOLANA_CONFIG, SOLANA_COMMON, SOLANA_DEV, SOLANA_MAIN, SOLANA_PUBKEYS, SOLANA_PUBKEYS_DEV, SOLANA_PUBKEYS_STAGE, SOLANA_STAGE, type SellData, type SellParams, type SellResponse, type SolanaConfig, type TransferParams, VALID_SIZE_PAIR, decodeStr, getCollectionSymbol, isEthereumConfig, isSolanaConfig, placeMagicEdenCollectionBid, placeTensorCollectionBid };
499
+ export { type AssetData, type AssetInfo, BlockchainType, type BuyParams, type BuyResponse, COLLECTION_BID_PRICE, type CollectionInfo, type CollectionParams, type Compression, type ConfirmResult, type CreateCollectionResponse, ENV, type ETHAddresses, type ETHAddressesExtended, ETH_COMMON, ETH_DEV, type EthBuyParams, type EthProfileSellParams, type EthSellData, type EthSellParams, type EthTransferParams, type EthereumConfig, FlipmemeSDK, type MerkleProof, type NetworkAddress, type NftInfo, type Ownership, PLATFORM, type ProfileSellParams, PurcahseType, RPC, type ReserveToken, type SDKSignature, type SDKTransaction, SDK_SOLANA_CONFIG, SOLANA_COMMON, SOLANA_DEV, SOLANA_MAIN, SOLANA_PUBKEYS, SOLANA_PUBKEYS_DEV, SOLANA_PUBKEYS_STAGE, SOLANA_STAGE, type SellData, type SellParams, type SellResponse, type SolanaConfig, type TransferParams, VALID_SIZE_PAIR, decodeStr, getPrice, isEthereumConfig, isSolanaConfig, placeMagicEdenCollectionBid, placeTensorCollectionBid };