@flaunch/sdk 0.1.0 → 0.2.0

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.cjs.js CHANGED
@@ -3022,62 +3022,95 @@ class ReadFairLaunch {
3022
3022
 
3023
3023
  const FastFlaunchZapAbi = [
3024
3024
  {
3025
+ type: "constructor",
3025
3026
  inputs: [
3026
3027
  {
3027
- internalType: "contract PositionManager",
3028
3028
  name: "_positionManager",
3029
3029
  type: "address",
3030
+ internalType: "contract PositionManager",
3030
3031
  },
3031
3032
  ],
3032
3033
  stateMutability: "nonpayable",
3033
- type: "constructor",
3034
3034
  },
3035
3035
  {
3036
+ type: "function",
3037
+ name: "FAIR_LAUNCH_SUPPLY",
3036
3038
  inputs: [],
3037
- name: "fairLaunchSupply",
3038
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3039
+ outputs: [
3040
+ {
3041
+ name: "",
3042
+ type: "uint256",
3043
+ internalType: "uint256",
3044
+ },
3045
+ ],
3039
3046
  stateMutability: "view",
3047
+ },
3048
+ {
3040
3049
  type: "function",
3050
+ name: "USDC_MARKET_CAP",
3051
+ inputs: [],
3052
+ outputs: [
3053
+ {
3054
+ name: "",
3055
+ type: "uint256",
3056
+ internalType: "uint256",
3057
+ },
3058
+ ],
3059
+ stateMutability: "view",
3041
3060
  },
3042
3061
  {
3062
+ type: "function",
3063
+ name: "flaunch",
3043
3064
  inputs: [
3044
3065
  {
3066
+ name: "_params",
3067
+ type: "tuple",
3068
+ internalType: "struct FastFlaunchZap.FastFlaunchParams",
3045
3069
  components: [
3046
- { internalType: "string", name: "name", type: "string" },
3047
- { internalType: "string", name: "symbol", type: "string" },
3048
- { internalType: "string", name: "tokenUri", type: "string" },
3049
- { internalType: "address", name: "creator", type: "address" },
3050
3070
  {
3051
- internalType: "uint24",
3052
- name: "creatorFeeAllocation",
3053
- type: "uint24",
3071
+ name: "name",
3072
+ type: "string",
3073
+ internalType: "string",
3074
+ },
3075
+ {
3076
+ name: "symbol",
3077
+ type: "string",
3078
+ internalType: "string",
3079
+ },
3080
+ {
3081
+ name: "tokenUri",
3082
+ type: "string",
3083
+ internalType: "string",
3084
+ },
3085
+ {
3086
+ name: "creator",
3087
+ type: "address",
3088
+ internalType: "address",
3054
3089
  },
3055
3090
  ],
3056
- internalType: "struct FastFlaunchZap.FastFlaunchParams",
3057
- name: "_params",
3058
- type: "tuple",
3059
3091
  },
3060
3092
  ],
3061
- name: "flaunch",
3062
- outputs: [{ internalType: "address", name: "memecoin_", type: "address" }],
3093
+ outputs: [
3094
+ {
3095
+ name: "memecoin_",
3096
+ type: "address",
3097
+ internalType: "address",
3098
+ },
3099
+ ],
3063
3100
  stateMutability: "nonpayable",
3064
- type: "function",
3065
3101
  },
3066
3102
  {
3067
- inputs: [],
3103
+ type: "function",
3068
3104
  name: "positionManager",
3105
+ inputs: [],
3069
3106
  outputs: [
3070
- { internalType: "contract PositionManager", name: "", type: "address" },
3107
+ {
3108
+ name: "",
3109
+ type: "address",
3110
+ internalType: "contract PositionManager",
3111
+ },
3071
3112
  ],
3072
3113
  stateMutability: "view",
3073
- type: "function",
3074
- },
3075
- {
3076
- inputs: [],
3077
- name: "usdcMarketCap",
3078
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3079
- stateMutability: "view",
3080
- type: "function",
3081
3114
  },
3082
3115
  ];
3083
3116
 
@@ -3097,19 +3130,17 @@ class ReadWriteFastFlaunchZap extends ReadFastFlaunchZap {
3097
3130
  constructor(address, drift$1 = drift.createDrift()) {
3098
3131
  super(address, drift$1);
3099
3132
  }
3100
- fastFlaunch({ name, symbol, tokenUri, creator, creatorFeeAllocationPercent, }) {
3101
- const creatorFeeAllocationInBps = creatorFeeAllocationPercent * 100;
3133
+ fastFlaunch({ name, symbol, tokenUri, creator }) {
3102
3134
  return this.contract.write("flaunch", {
3103
3135
  _params: {
3104
3136
  name,
3105
3137
  symbol,
3106
3138
  tokenUri,
3107
3139
  creator,
3108
- creatorFeeAllocation: creatorFeeAllocationInBps,
3109
3140
  },
3110
3141
  });
3111
3142
  }
3112
- async fastFlaunchIPFS({ name, symbol, creator, creatorFeeAllocationPercent, metadata, pinataConfig, }) {
3143
+ async fastFlaunchIPFS({ name, symbol, creator, metadata, pinataConfig, }) {
3113
3144
  const tokenUri = await generateTokenUri(name, {
3114
3145
  metadata,
3115
3146
  pinataConfig,
@@ -3119,7 +3150,6 @@ class ReadWriteFastFlaunchZap extends ReadFastFlaunchZap {
3119
3150
  symbol,
3120
3151
  tokenUri,
3121
3152
  creator,
3122
- creatorFeeAllocationPercent,
3123
3153
  });
3124
3154
  }
3125
3155
  }
@@ -9902,7 +9932,7 @@ const FlaunchAddress = {
9902
9932
  };
9903
9933
  const FastFlaunchZapAddress = {
9904
9934
  [base.id]: viem.zeroAddress, // FIXME: update with real address when deployed
9905
- [baseSepolia.id]: "0x36831b3085fdefc576c15d6d6675d52a647a02c0",
9935
+ [baseSepolia.id]: "0x251e97446a7019E5DA4860d4CF47291321C693D0",
9906
9936
  };
9907
9937
  const PoolManagerAddress = {
9908
9938
  [base.id]: "0x498581fF718922c3f8e6A244956aF099B2652b2b",