@flaunch/sdk 0.9.15 → 0.9.16
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/README.md +3 -3
- package/dist/clients/FlaunchPositionManagerClient.d.ts +11 -0
- package/dist/clients/FlaunchPositionManagerClient.d.ts.map +1 -1
- package/dist/clients/FlaunchPositionManagerV1_1Client.d.ts +5 -0
- package/dist/clients/FlaunchPositionManagerV1_1Client.d.ts.map +1 -1
- package/dist/clients/FlaunchPositionManagerV1_2Client.d.ts +5 -0
- package/dist/clients/FlaunchPositionManagerV1_2Client.d.ts.map +1 -1
- package/dist/clients/FlaunchZapClient.d.ts +4 -2
- package/dist/clients/FlaunchZapClient.d.ts.map +1 -1
- package/dist/index.cjs.js +26 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +26 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -2
package/dist/index.esm.js
CHANGED
|
@@ -8892,7 +8892,15 @@ class ReadWriteFlaunchPositionManager extends ReadFlaunchPositionManager {
|
|
|
8892
8892
|
constructor(address, drift = createDrift$1()) {
|
|
8893
8893
|
super(address, drift);
|
|
8894
8894
|
}
|
|
8895
|
+
/**
|
|
8896
|
+
* Flaunches a new token
|
|
8897
|
+
* @param params - Parameters for the flaunch
|
|
8898
|
+
* @param params.fairLaunchPercent - @deprecated FairLaunch has been deprecated. Please set to 0.
|
|
8899
|
+
*/
|
|
8895
8900
|
async flaunch({ name, symbol, tokenUri, fairLaunchPercent, initialMarketCapUSD, creator, creatorFeeAllocationPercent, flaunchAt, }) {
|
|
8901
|
+
if (fairLaunchPercent !== 0) {
|
|
8902
|
+
throw new Error("FairLaunch has been deprecated. Please set fairLaunchPercent to 0.");
|
|
8903
|
+
}
|
|
8896
8904
|
const initialMCapInUSDCWei = parseUnits(initialMarketCapUSD.toString(), 6);
|
|
8897
8905
|
const initialPriceParams = encodeAbiParameters$1([
|
|
8898
8906
|
{
|
|
@@ -8932,6 +8940,11 @@ class ReadWriteFlaunchPositionManager extends ReadFlaunchPositionManager {
|
|
|
8932
8940
|
},
|
|
8933
8941
|
});
|
|
8934
8942
|
}
|
|
8943
|
+
/**
|
|
8944
|
+
* Flaunches a new token by uploading the token metadata to IPFS
|
|
8945
|
+
* @param params - Parameters for the flaunch including IPFS metadata
|
|
8946
|
+
* @param params.fairLaunchPercent - @deprecated FairLaunch has been deprecated. Please set to 0.
|
|
8947
|
+
*/
|
|
8935
8948
|
async flaunchIPFS({ name, symbol, fairLaunchPercent, initialMarketCapUSD, creator, creatorFeeAllocationPercent, flaunchAt, metadata, pinataConfig, }) {
|
|
8936
8949
|
const tokenUri = await generateTokenUri(name, symbol, {
|
|
8937
8950
|
metadata,
|
|
@@ -13712,8 +13725,13 @@ class ReadWriteFlaunchPositionManagerV1_1 extends ReadFlaunchPositionManagerV1_1
|
|
|
13712
13725
|
/**
|
|
13713
13726
|
* Flaunches a new token directly from the position manager.
|
|
13714
13727
|
* For premine support, flaunch via the FlaunchZapClient.
|
|
13728
|
+
* @param params - Parameters for the flaunch
|
|
13729
|
+
* @param params.fairLaunchPercent - @deprecated FairLaunch has been deprecated. Please set to 0.
|
|
13715
13730
|
*/
|
|
13716
13731
|
async flaunch({ name, symbol, tokenUri, fairLaunchPercent, fairLaunchDuration, initialMarketCapUSD, creator, creatorFeeAllocationPercent, flaunchAt, }) {
|
|
13732
|
+
if (fairLaunchPercent !== 0) {
|
|
13733
|
+
throw new Error("FairLaunch has been deprecated. Please set fairLaunchPercent to 0.");
|
|
13734
|
+
}
|
|
13717
13735
|
const initialMCapInUSDCWei = parseUnits(initialMarketCapUSD.toString(), 6);
|
|
13718
13736
|
const initialPriceParams = encodeAbiParameters$1([
|
|
13719
13737
|
{
|
|
@@ -13757,6 +13775,8 @@ class ReadWriteFlaunchPositionManagerV1_1 extends ReadFlaunchPositionManagerV1_1
|
|
|
13757
13775
|
/**
|
|
13758
13776
|
* Flaunches a new token directly from the position manager by uploading the token metadata to IPFS.
|
|
13759
13777
|
* For premine support, flaunch via the FlaunchZapClient.
|
|
13778
|
+
* @param params - Parameters for the flaunch including IPFS metadata
|
|
13779
|
+
* @param params.fairLaunchPercent - @deprecated FairLaunch has been deprecated. Please set to 0.
|
|
13760
13780
|
*/
|
|
13761
13781
|
async flaunchIPFS({ name, symbol, fairLaunchPercent, fairLaunchDuration, initialMarketCapUSD, creator, creatorFeeAllocationPercent, flaunchAt, metadata, pinataConfig, }) {
|
|
13762
13782
|
const tokenUri = await generateTokenUri(name, symbol, {
|
|
@@ -14137,9 +14157,13 @@ class ReadWriteFlaunchZap extends ReadFlaunchZap {
|
|
|
14137
14157
|
/**
|
|
14138
14158
|
* Flaunches a new token, supports premine
|
|
14139
14159
|
* @param params - Parameters for the flaunch
|
|
14160
|
+
* @param params.fairLaunchPercent - @deprecated FairLaunch has been deprecated. Please set to 0.
|
|
14140
14161
|
* @returns Transaction response for the flaunch creation
|
|
14141
14162
|
*/
|
|
14142
14163
|
async flaunch(params) {
|
|
14164
|
+
if (params.fairLaunchPercent !== 0) {
|
|
14165
|
+
throw new Error("FairLaunch has been deprecated. Please set fairLaunchPercent to 0.");
|
|
14166
|
+
}
|
|
14143
14167
|
const initialMCapInUSDCWei = parseUnits(params.initialMarketCapUSD.toString(), 6);
|
|
14144
14168
|
const initialPriceParams = encodeAbiParameters$1([
|
|
14145
14169
|
{
|
|
@@ -14248,7 +14272,7 @@ class ReadWriteFlaunchZap extends ReadFlaunchZap {
|
|
|
14248
14272
|
* @param params.name - The name of the token
|
|
14249
14273
|
* @param params.symbol - The symbol of the token
|
|
14250
14274
|
* @param params.tokenUri - The URI containing the token metadata
|
|
14251
|
-
* @param params.fairLaunchPercent -
|
|
14275
|
+
* @param params.fairLaunchPercent - @deprecated FairLaunch has been deprecated. Please set to 0.
|
|
14252
14276
|
* @param params.fairLaunchDuration - Duration of fair launch in seconds
|
|
14253
14277
|
* @param params.initialMarketCapUSD - Initial market cap in USD
|
|
14254
14278
|
* @param params.creator - Address of the token creator
|
|
@@ -14291,7 +14315,7 @@ class ReadWriteFlaunchZap extends ReadFlaunchZap {
|
|
|
14291
14315
|
* @param params.name - The name of the token
|
|
14292
14316
|
* @param params.symbol - The symbol of the token
|
|
14293
14317
|
* @param params.tokenUri - The URI containing the token metadata
|
|
14294
|
-
* @param params.fairLaunchPercent -
|
|
14318
|
+
* @param params.fairLaunchPercent - @deprecated FairLaunch has been deprecated. Please set to 0.
|
|
14295
14319
|
* @param params.fairLaunchDuration - Duration of fair launch in seconds
|
|
14296
14320
|
* @param params.initialMarketCapUSD - Initial market cap in USD
|
|
14297
14321
|
* @param params.creator - Address of the token creator
|