@flaunch/sdk 0.1.1 → 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/README.md +1 -1
- package/dist/abi/FastFlaunchZap.d.ts +27 -31
- package/dist/abi/FastFlaunchZap.d.ts.map +1 -1
- package/dist/abi/index.cjs +60 -27
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.js +60 -27
- package/dist/abi/index.js.map +1 -1
- package/dist/addresses/index.cjs +1 -1
- package/dist/addresses/index.js +1 -1
- package/dist/clients/FastFlaunchClient.d.ts +2 -3
- package/dist/clients/FastFlaunchClient.d.ts.map +1 -1
- package/dist/index.cjs.js +63 -33
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +63 -33
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3014,62 +3014,95 @@ class ReadFairLaunch {
|
|
|
3014
3014
|
|
|
3015
3015
|
const FastFlaunchZapAbi = [
|
|
3016
3016
|
{
|
|
3017
|
+
type: "constructor",
|
|
3017
3018
|
inputs: [
|
|
3018
3019
|
{
|
|
3019
|
-
internalType: "contract PositionManager",
|
|
3020
3020
|
name: "_positionManager",
|
|
3021
3021
|
type: "address",
|
|
3022
|
+
internalType: "contract PositionManager",
|
|
3022
3023
|
},
|
|
3023
3024
|
],
|
|
3024
3025
|
stateMutability: "nonpayable",
|
|
3025
|
-
type: "constructor",
|
|
3026
3026
|
},
|
|
3027
3027
|
{
|
|
3028
|
+
type: "function",
|
|
3029
|
+
name: "FAIR_LAUNCH_SUPPLY",
|
|
3028
3030
|
inputs: [],
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
+
outputs: [
|
|
3032
|
+
{
|
|
3033
|
+
name: "",
|
|
3034
|
+
type: "uint256",
|
|
3035
|
+
internalType: "uint256",
|
|
3036
|
+
},
|
|
3037
|
+
],
|
|
3031
3038
|
stateMutability: "view",
|
|
3039
|
+
},
|
|
3040
|
+
{
|
|
3032
3041
|
type: "function",
|
|
3042
|
+
name: "USDC_MARKET_CAP",
|
|
3043
|
+
inputs: [],
|
|
3044
|
+
outputs: [
|
|
3045
|
+
{
|
|
3046
|
+
name: "",
|
|
3047
|
+
type: "uint256",
|
|
3048
|
+
internalType: "uint256",
|
|
3049
|
+
},
|
|
3050
|
+
],
|
|
3051
|
+
stateMutability: "view",
|
|
3033
3052
|
},
|
|
3034
3053
|
{
|
|
3054
|
+
type: "function",
|
|
3055
|
+
name: "flaunch",
|
|
3035
3056
|
inputs: [
|
|
3036
3057
|
{
|
|
3058
|
+
name: "_params",
|
|
3059
|
+
type: "tuple",
|
|
3060
|
+
internalType: "struct FastFlaunchZap.FastFlaunchParams",
|
|
3037
3061
|
components: [
|
|
3038
|
-
{ internalType: "string", name: "name", type: "string" },
|
|
3039
|
-
{ internalType: "string", name: "symbol", type: "string" },
|
|
3040
|
-
{ internalType: "string", name: "tokenUri", type: "string" },
|
|
3041
|
-
{ internalType: "address", name: "creator", type: "address" },
|
|
3042
3062
|
{
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3063
|
+
name: "name",
|
|
3064
|
+
type: "string",
|
|
3065
|
+
internalType: "string",
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
name: "symbol",
|
|
3069
|
+
type: "string",
|
|
3070
|
+
internalType: "string",
|
|
3071
|
+
},
|
|
3072
|
+
{
|
|
3073
|
+
name: "tokenUri",
|
|
3074
|
+
type: "string",
|
|
3075
|
+
internalType: "string",
|
|
3076
|
+
},
|
|
3077
|
+
{
|
|
3078
|
+
name: "creator",
|
|
3079
|
+
type: "address",
|
|
3080
|
+
internalType: "address",
|
|
3046
3081
|
},
|
|
3047
3082
|
],
|
|
3048
|
-
internalType: "struct FastFlaunchZap.FastFlaunchParams",
|
|
3049
|
-
name: "_params",
|
|
3050
|
-
type: "tuple",
|
|
3051
3083
|
},
|
|
3052
3084
|
],
|
|
3053
|
-
|
|
3054
|
-
|
|
3085
|
+
outputs: [
|
|
3086
|
+
{
|
|
3087
|
+
name: "memecoin_",
|
|
3088
|
+
type: "address",
|
|
3089
|
+
internalType: "address",
|
|
3090
|
+
},
|
|
3091
|
+
],
|
|
3055
3092
|
stateMutability: "nonpayable",
|
|
3056
|
-
type: "function",
|
|
3057
3093
|
},
|
|
3058
3094
|
{
|
|
3059
|
-
|
|
3095
|
+
type: "function",
|
|
3060
3096
|
name: "positionManager",
|
|
3097
|
+
inputs: [],
|
|
3061
3098
|
outputs: [
|
|
3062
|
-
{
|
|
3099
|
+
{
|
|
3100
|
+
name: "",
|
|
3101
|
+
type: "address",
|
|
3102
|
+
internalType: "contract PositionManager",
|
|
3103
|
+
},
|
|
3063
3104
|
],
|
|
3064
3105
|
stateMutability: "view",
|
|
3065
|
-
type: "function",
|
|
3066
|
-
},
|
|
3067
|
-
{
|
|
3068
|
-
inputs: [],
|
|
3069
|
-
name: "usdcMarketCap",
|
|
3070
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3071
|
-
stateMutability: "view",
|
|
3072
|
-
type: "function",
|
|
3073
3106
|
},
|
|
3074
3107
|
];
|
|
3075
3108
|
|
|
@@ -3089,19 +3122,17 @@ class ReadWriteFastFlaunchZap extends ReadFastFlaunchZap {
|
|
|
3089
3122
|
constructor(address, drift = createDrift()) {
|
|
3090
3123
|
super(address, drift);
|
|
3091
3124
|
}
|
|
3092
|
-
fastFlaunch({ name, symbol, tokenUri, creator
|
|
3093
|
-
const creatorFeeAllocationInBps = creatorFeeAllocationPercent * 100;
|
|
3125
|
+
fastFlaunch({ name, symbol, tokenUri, creator }) {
|
|
3094
3126
|
return this.contract.write("flaunch", {
|
|
3095
3127
|
_params: {
|
|
3096
3128
|
name,
|
|
3097
3129
|
symbol,
|
|
3098
3130
|
tokenUri,
|
|
3099
3131
|
creator,
|
|
3100
|
-
creatorFeeAllocation: creatorFeeAllocationInBps,
|
|
3101
3132
|
},
|
|
3102
3133
|
});
|
|
3103
3134
|
}
|
|
3104
|
-
async fastFlaunchIPFS({ name, symbol, creator,
|
|
3135
|
+
async fastFlaunchIPFS({ name, symbol, creator, metadata, pinataConfig, }) {
|
|
3105
3136
|
const tokenUri = await generateTokenUri(name, {
|
|
3106
3137
|
metadata,
|
|
3107
3138
|
pinataConfig,
|
|
@@ -3111,7 +3142,6 @@ class ReadWriteFastFlaunchZap extends ReadFastFlaunchZap {
|
|
|
3111
3142
|
symbol,
|
|
3112
3143
|
tokenUri,
|
|
3113
3144
|
creator,
|
|
3114
|
-
creatorFeeAllocationPercent,
|
|
3115
3145
|
});
|
|
3116
3146
|
}
|
|
3117
3147
|
}
|
|
@@ -9894,7 +9924,7 @@ const FlaunchAddress = {
|
|
|
9894
9924
|
};
|
|
9895
9925
|
const FastFlaunchZapAddress = {
|
|
9896
9926
|
[base.id]: zeroAddress, // FIXME: update with real address when deployed
|
|
9897
|
-
[baseSepolia.id]: "
|
|
9927
|
+
[baseSepolia.id]: "0x251e97446a7019E5DA4860d4CF47291321C693D0",
|
|
9898
9928
|
};
|
|
9899
9929
|
const PoolManagerAddress = {
|
|
9900
9930
|
[base.id]: "0x498581fF718922c3f8e6A244956aF099B2652b2b",
|