flipmeme-sdk 1.3.78 → 1.3.80

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
@@ -467,6 +467,16 @@ declare const ETHEREUM_DEV: {
467
467
  PROTOCOL_FEE_BPS: number;
468
468
  FACTORY: string;
469
469
  };
470
+ declare const BASE_MAIN: {
471
+ TREASURY: string;
472
+ LP_SELL_OUT: string;
473
+ LP_PROVIDER: string;
474
+ ROYALTY: string;
475
+ ADMIN_FOR_CREDIT_BUY: string;
476
+ REFERRAL_CLAIM: string;
477
+ PROTOCOL_FEE_BPS: number;
478
+ FACTORY: string;
479
+ };
470
480
  declare const ETH_ADDR: EthAddr;
471
481
  declare const ROUTER: {
472
482
  Ethereum: string;
@@ -478,6 +488,10 @@ declare const TOKENS: {
478
488
  WETH: string;
479
489
  USDT: string;
480
490
  };
491
+ BASE: {
492
+ WETH: string;
493
+ USDT: string;
494
+ };
481
495
  };
482
496
 
483
497
  declare class FlipmemeSDK {
@@ -572,4 +586,4 @@ declare function placeMagicEdenCollectionBid(price: number, quantity: number, co
572
586
 
573
587
  declare function placeSpaaceCollectionBid(price: number, collection: string, tokenIdStart: string, tokenIdEnd: string, walletAddr: string, apiKey: string, source?: string): Promise<String | undefined>;
574
588
 
575
- export { APE_DEV, type AssetData, type AssetInfo, BASE_DEV, BlockchainType, type BuyParams, type BuyResponse, COLLECTION_BID_PRICE, ChainEnv, type CollectionInfo, type CollectionParams, type Compression, type ConfirmResult, type CreateCollectionResponse, ENV, type ETHAddresses, ETHEREUM_DEV, ETHEREUM_RPC, ETH_ADDR, ETH_COMMON, ETH_MAX_PROCESS_COUNT, type EthAddr, 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, ROUTER, 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, TOKENS, type TransactionData, type TransferParams, VALID_SIZE_PAIR, decodeStr, getPrice, getSOLPriceInUSD, getUSDPriceInSOL, getUSDPriceInWETH, isEthereumConfig, isSolanaConfig, placeMagicEdenCollectionBid, placeSpaaceCollectionBid, placeTensorCollectionBid };
589
+ export { APE_DEV, type AssetData, type AssetInfo, BASE_DEV, BASE_MAIN, BlockchainType, type BuyParams, type BuyResponse, COLLECTION_BID_PRICE, ChainEnv, type CollectionInfo, type CollectionParams, type Compression, type ConfirmResult, type CreateCollectionResponse, ENV, type ETHAddresses, ETHEREUM_DEV, ETHEREUM_RPC, ETH_ADDR, ETH_COMMON, ETH_MAX_PROCESS_COUNT, type EthAddr, 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, ROUTER, 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, TOKENS, type TransactionData, type TransferParams, VALID_SIZE_PAIR, decodeStr, getPrice, getSOLPriceInUSD, getUSDPriceInSOL, getUSDPriceInWETH, isEthereumConfig, isSolanaConfig, placeMagicEdenCollectionBid, placeSpaaceCollectionBid, placeTensorCollectionBid };
package/dist/index.d.ts CHANGED
@@ -467,6 +467,16 @@ declare const ETHEREUM_DEV: {
467
467
  PROTOCOL_FEE_BPS: number;
468
468
  FACTORY: string;
469
469
  };
470
+ declare const BASE_MAIN: {
471
+ TREASURY: string;
472
+ LP_SELL_OUT: string;
473
+ LP_PROVIDER: string;
474
+ ROYALTY: string;
475
+ ADMIN_FOR_CREDIT_BUY: string;
476
+ REFERRAL_CLAIM: string;
477
+ PROTOCOL_FEE_BPS: number;
478
+ FACTORY: string;
479
+ };
470
480
  declare const ETH_ADDR: EthAddr;
471
481
  declare const ROUTER: {
472
482
  Ethereum: string;
@@ -478,6 +488,10 @@ declare const TOKENS: {
478
488
  WETH: string;
479
489
  USDT: string;
480
490
  };
491
+ BASE: {
492
+ WETH: string;
493
+ USDT: string;
494
+ };
481
495
  };
482
496
 
483
497
  declare class FlipmemeSDK {
@@ -572,4 +586,4 @@ declare function placeMagicEdenCollectionBid(price: number, quantity: number, co
572
586
 
573
587
  declare function placeSpaaceCollectionBid(price: number, collection: string, tokenIdStart: string, tokenIdEnd: string, walletAddr: string, apiKey: string, source?: string): Promise<String | undefined>;
574
588
 
575
- export { APE_DEV, type AssetData, type AssetInfo, BASE_DEV, BlockchainType, type BuyParams, type BuyResponse, COLLECTION_BID_PRICE, ChainEnv, type CollectionInfo, type CollectionParams, type Compression, type ConfirmResult, type CreateCollectionResponse, ENV, type ETHAddresses, ETHEREUM_DEV, ETHEREUM_RPC, ETH_ADDR, ETH_COMMON, ETH_MAX_PROCESS_COUNT, type EthAddr, 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, ROUTER, 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, TOKENS, type TransactionData, type TransferParams, VALID_SIZE_PAIR, decodeStr, getPrice, getSOLPriceInUSD, getUSDPriceInSOL, getUSDPriceInWETH, isEthereumConfig, isSolanaConfig, placeMagicEdenCollectionBid, placeSpaaceCollectionBid, placeTensorCollectionBid };
589
+ export { APE_DEV, type AssetData, type AssetInfo, BASE_DEV, BASE_MAIN, BlockchainType, type BuyParams, type BuyResponse, COLLECTION_BID_PRICE, ChainEnv, type CollectionInfo, type CollectionParams, type Compression, type ConfirmResult, type CreateCollectionResponse, ENV, type ETHAddresses, ETHEREUM_DEV, ETHEREUM_RPC, ETH_ADDR, ETH_COMMON, ETH_MAX_PROCESS_COUNT, type EthAddr, 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, ROUTER, 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, TOKENS, type TransactionData, type TransferParams, VALID_SIZE_PAIR, decodeStr, getPrice, getSOLPriceInUSD, getUSDPriceInSOL, getUSDPriceInWETH, isEthereumConfig, isSolanaConfig, placeMagicEdenCollectionBid, placeSpaaceCollectionBid, placeTensorCollectionBid };
package/dist/index.js CHANGED
@@ -66,6 +66,7 @@ var index_exports = {};
66
66
  __export(index_exports, {
67
67
  APE_DEV: () => APE_DEV,
68
68
  BASE_DEV: () => BASE_DEV,
69
+ BASE_MAIN: () => BASE_MAIN,
69
70
  BlockchainType: () => BlockchainType,
70
71
  COLLECTION_BID_PRICE: () => COLLECTION_BID_PRICE,
71
72
  ChainEnv: () => ChainEnv,
@@ -211,10 +212,10 @@ var VALID_SIZE_PAIR = {
211
212
  24: { maxBufferSize: 1024, maxDepth: 24 }
212
213
  };
213
214
  var ETH_COMMON = {
214
- TREASURY: "0x26ee601042126aA53fA212983f96C3571fab8e5E",
215
- LP_SELL_OUT: "0x19A1f2d12A7DbD5834787BB98373d93D41682db8",
216
- LP_PROVIDER: "0xc796E2c7fD16a8033D55fA61Ab575E2Cd27B4d47",
217
- ROYALTY: "0x9c8969323255a476BD5A249DBC9f091728dbD671",
215
+ TREASURY: "0x98114De4823484313d56b8a8D90c55224CE571AC",
216
+ LP_SELL_OUT: "0x98114De4823484313d56b8a8D90c55224CE571AC",
217
+ LP_PROVIDER: "0xB38b8238CaB6D9740A4294e5910Ff6DEf92968e9",
218
+ ROYALTY: "0xd725Ca7AC17128812FDA837A0edCC99CA7545F5a",
218
219
  // ADMIN_FOR_CREDIT_BUY: "0x860Fc09EACd32b3cBE00d56163D540Ed65557cCC",
219
220
  ADMIN_FOR_CREDIT_BUY: "0x63B3Cc8944B917AAc841429097F28be09AB636a7",
220
221
  REFERRAL_CLAIM: "0xaE1f8271458285b71b465e4aC00E23a21cD8aF42",
@@ -229,16 +230,19 @@ var APE_DEV = __spreadValues({
229
230
  var ETHEREUM_DEV = __spreadValues({
230
231
  FACTORY: "0xB94B676601abbA600F2336089261e4d4b50Ae4fc"
231
232
  }, ETH_COMMON);
233
+ var BASE_MAIN = __spreadValues({
234
+ FACTORY: "0xD03ECa5842Fcaacb38e94339e8A3F090647D2338"
235
+ }, ETH_COMMON);
232
236
  var ETH_ADDR = {
233
237
  33111: __spreadValues({}, APE_DEV),
234
238
  84532: __spreadValues({}, BASE_DEV),
235
239
  11155111: __spreadValues({}, ETHEREUM_DEV),
236
- 1: __spreadValues({}, BASE_DEV)
240
+ 1: __spreadValues({}, BASE_DEV),
241
+ 8453: __spreadValues({}, BASE_MAIN)
237
242
  };
238
243
  var ROUTER = {
239
244
  Ethereum: "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
240
- Base: "0xE592427A0AEce92De3Edee1F18E0157C05861564",
241
- //incorrect
245
+ Base: " 0x1689E7B1F10000AE47eBfE339a4f69dECd19F602",
242
246
  Ape: "0xC0788A3aD43d79aa53B09c2EaCc313A787d1d607"
243
247
  //incorrect
244
248
  };
@@ -246,6 +250,10 @@ var TOKENS = {
246
250
  ETHEREUM: {
247
251
  WETH: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
248
252
  USDT: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
253
+ },
254
+ BASE: {
255
+ WETH: "0x4200000000000000000000000000000000000006",
256
+ USDT: "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"
249
257
  }
250
258
  };
251
259
 
@@ -34733,7 +34741,8 @@ var EthereumConnector = class {
34733
34741
  if (!isAvailable) {
34734
34742
  throw new Error(`Price ${endPrice} Error: ${errorMsg}`);
34735
34743
  }
34736
- const startPrice = new import_decimal2.default(endPrice).div(17).toFixed();
34744
+ const startPrice = new import_decimal2.default(endPrice).div(17).toFixed(0);
34745
+ console.log(`Creating collection with startPrice: ${startPrice} and endPrice: ${endPrice}`);
34737
34746
  let tx = yield this.factory.createCollection(
34738
34747
  collection.name,
34739
34748
  collection.symbol,
@@ -40959,6 +40968,7 @@ function placeSpaaceCollectionBid(price, collection, tokenIdStart, tokenIdEnd, w
40959
40968
  0 && (module.exports = {
40960
40969
  APE_DEV,
40961
40970
  BASE_DEV,
40971
+ BASE_MAIN,
40962
40972
  BlockchainType,
40963
40973
  COLLECTION_BID_PRICE,
40964
40974
  ChainEnv,