@gala-chain/launchpad-sdk 5.0.4-beta.0 → 5.0.4-beta.2

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.
Files changed (34) hide show
  1. package/README.md +5 -0
  2. package/dist/ai-docs.json +647 -290
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.d.ts +5 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.esm.js +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/src/LaunchpadSDK.d.ts +79 -0
  9. package/dist/src/LaunchpadSDK.d.ts.map +1 -1
  10. package/dist/src/constants/nft-fees.d.ts +30 -0
  11. package/dist/src/constants/nft-fees.d.ts.map +1 -0
  12. package/dist/src/constants/version.generated.d.ts +1 -1
  13. package/dist/src/index.d.ts +5 -1
  14. package/dist/src/index.d.ts.map +1 -1
  15. package/dist/src/schemas/files.d.ts +22 -22
  16. package/dist/src/schemas/files.d.ts.map +1 -1
  17. package/dist/src/schemas/launchpad.d.ts +45 -170
  18. package/dist/src/schemas/launchpad.d.ts.map +1 -1
  19. package/dist/src/schemas/pagination.d.ts +21 -103
  20. package/dist/src/schemas/pagination.d.ts.map +1 -1
  21. package/dist/src/schemas/primitives.d.ts +13 -6
  22. package/dist/src/schemas/primitives.d.ts.map +1 -1
  23. package/dist/src/schemas/trade.d.ts +53 -105
  24. package/dist/src/schemas/trade.d.ts.map +1 -1
  25. package/dist/src/schemas/user.d.ts +26 -170
  26. package/dist/src/schemas/user.d.ts.map +1 -1
  27. package/dist/src/schemas/validators.d.ts +21 -21
  28. package/dist/src/services/NftCollectionService.d.ts +123 -0
  29. package/dist/src/services/NftCollectionService.d.ts.map +1 -0
  30. package/dist/src/types/nft.dto.d.ts +155 -0
  31. package/dist/src/types/nft.dto.d.ts.map +1 -0
  32. package/dist/src/utils/nft-helpers.d.ts +62 -0
  33. package/dist/src/utils/nft-helpers.d.ts.map +1 -0
  34. package/package.json +12 -8
@@ -9,77 +9,52 @@ import { z } from 'zod';
9
9
  /**
10
10
  * Trade type schema - 'buy' or 'sell'
11
11
  */
12
- export declare const tradeTypeSchema: z.ZodEnum<["buy", "sell"]>;
12
+ export declare const tradeTypeSchema: z.ZodEnum<{
13
+ buy: "buy";
14
+ sell: "sell";
15
+ }>;
13
16
  /**
14
17
  * Trade type enum for backend - uppercase 'BUY' or 'SELL'
15
18
  */
16
- export declare const tradeTypeBackendSchema: z.ZodEnum<["BUY", "SELL"]>;
19
+ export declare const tradeTypeBackendSchema: z.ZodEnum<{
20
+ BUY: "BUY";
21
+ SELL: "SELL";
22
+ }>;
17
23
  /**
18
24
  * Create trade data schema
19
25
  * For legacy trade creation endpoints
20
26
  */
21
27
  export declare const createTradeDataSchema: z.ZodObject<{
22
- tradeType: z.ZodEnum<["buy", "sell"]>;
23
- tokenAmount: z.ZodEffects<z.ZodString, string, string>;
24
- vaultAddress: z.ZodEffects<z.ZodString, string, string>;
25
- userAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
26
- slippageTolerance: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
28
+ tradeType: z.ZodEnum<{
29
+ buy: "buy";
30
+ sell: "sell";
31
+ }>;
32
+ tokenAmount: z.ZodString;
33
+ vaultAddress: z.ZodString;
34
+ userAddress: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
35
+ slippageTolerance: z.ZodOptional<z.ZodString>;
27
36
  deadline: z.ZodOptional<z.ZodNumber>;
28
- }, "strip", z.ZodTypeAny, {
29
- tradeType: "buy" | "sell";
30
- tokenAmount: string;
31
- vaultAddress: string;
32
- userAddress: string;
33
- slippageTolerance?: string | undefined;
34
- deadline?: number | undefined;
35
- }, {
36
- tradeType: "buy" | "sell";
37
- tokenAmount: string;
38
- vaultAddress: string;
39
- userAddress: string;
40
- slippageTolerance?: string | undefined;
41
- deadline?: number | undefined;
42
- }>;
37
+ }, z.core.$strip>;
43
38
  /**
44
39
  * Buy tokens data schema
45
40
  * For buying launchpad tokens with GALA
46
41
  */
47
42
  export declare const buyTokensDataSchema: z.ZodObject<{
48
43
  tokenSymbol: z.ZodString;
49
- nativeTokenQuantity: z.ZodEffects<z.ZodString, string, string>;
50
- expectedToken: z.ZodEffects<z.ZodString, string, string>;
51
- maxAcceptableReverseBondingCurveFee: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>>;
52
- }, "strip", z.ZodTypeAny, {
53
- tokenSymbol: string;
54
- nativeTokenQuantity: string;
55
- expectedToken: string;
56
- maxAcceptableReverseBondingCurveFee?: string | undefined;
57
- }, {
58
- tokenSymbol: string;
59
- nativeTokenQuantity: string;
60
- expectedToken: string;
61
- maxAcceptableReverseBondingCurveFee?: string | undefined;
62
- }>;
44
+ nativeTokenQuantity: z.ZodString;
45
+ expectedToken: z.ZodString;
46
+ maxAcceptableReverseBondingCurveFee: z.ZodOptional<z.ZodDefault<z.ZodString>>;
47
+ }, z.core.$strip>;
63
48
  /**
64
49
  * Sell tokens data schema
65
50
  * For selling launchpad tokens for GALA
66
51
  */
67
52
  export declare const sellTokensDataSchema: z.ZodObject<{
68
53
  tokenSymbol: z.ZodString;
69
- tokenQuantity: z.ZodEffects<z.ZodString, string, string>;
70
- expectedNativeToken: z.ZodEffects<z.ZodString, string, string>;
71
- maxAcceptableReverseBondingCurveFee: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>>;
72
- }, "strip", z.ZodTypeAny, {
73
- tokenSymbol: string;
74
- tokenQuantity: string;
75
- expectedNativeToken: string;
76
- maxAcceptableReverseBondingCurveFee?: string | undefined;
77
- }, {
78
- tokenSymbol: string;
79
- tokenQuantity: string;
80
- expectedNativeToken: string;
81
- maxAcceptableReverseBondingCurveFee?: string | undefined;
82
- }>;
54
+ tokenQuantity: z.ZodString;
55
+ expectedNativeToken: z.ZodString;
56
+ maxAcceptableReverseBondingCurveFee: z.ZodOptional<z.ZodDefault<z.ZodString>>;
57
+ }, z.core.$strip>;
83
58
  /**
84
59
  * Get trade options schema
85
60
  * Basic trade query with optional token name filter
@@ -87,17 +62,8 @@ export declare const sellTokensDataSchema: z.ZodObject<{
87
62
  export declare const getTradeOptionsSchema: z.ZodObject<{
88
63
  page: z.ZodDefault<z.ZodNumber>;
89
64
  limit: z.ZodDefault<z.ZodNumber>;
90
- } & {
91
65
  tokenName: z.ZodOptional<z.ZodString>;
92
- }, "strip", z.ZodTypeAny, {
93
- page: number;
94
- limit: number;
95
- tokenName?: string | undefined;
96
- }, {
97
- tokenName?: string | undefined;
98
- page?: number | undefined;
99
- limit?: number | undefined;
100
- }>;
66
+ }, z.core.$strip>;
101
67
  /**
102
68
  * Trade list params schema
103
69
  * Simplified pagination-only params
@@ -105,77 +71,59 @@ export declare const getTradeOptionsSchema: z.ZodObject<{
105
71
  export declare const tradeListParamsSchema: z.ZodObject<{
106
72
  page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
107
73
  limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
108
- }, "strip", z.ZodTypeAny, {
109
- page?: number | undefined;
110
- limit?: number | undefined;
111
- }, {
112
- page?: number | undefined;
113
- limit?: number | undefined;
114
- }>;
74
+ }, z.core.$strip>;
115
75
  /**
116
76
  * Trade calculation type schema
117
77
  * NATIVE = GALA input/output, MEME = launchpad token input/output
118
78
  */
119
- export declare const tradeCalculationTypeSchema: z.ZodEnum<["NATIVE", "MEME"]>;
79
+ export declare const tradeCalculationTypeSchema: z.ZodEnum<{
80
+ NATIVE: "NATIVE";
81
+ MEME: "MEME";
82
+ }>;
120
83
  /**
121
84
  * Trade calculation method schema
122
85
  * IN = amount going into pool, OUT = amount coming out of pool
123
86
  */
124
- export declare const tradeCalculationMethodSchema: z.ZodEnum<["IN", "OUT"]>;
87
+ export declare const tradeCalculationMethodSchema: z.ZodEnum<{
88
+ IN: "IN";
89
+ OUT: "OUT";
90
+ }>;
125
91
  /**
126
92
  * Get amount options schema
127
93
  * For calculating trade amounts with bonding curve
128
94
  */
129
95
  export declare const getAmountOptionsSchema: z.ZodObject<{
130
- type: z.ZodEnum<["NATIVE", "MEME"]>;
131
- method: z.ZodEnum<["IN", "OUT"]>;
132
- vaultAddress: z.ZodEffects<z.ZodString, string, string>;
133
- amount: z.ZodEffects<z.ZodString, string, string>;
134
- }, "strip", z.ZodTypeAny, {
135
- method: "IN" | "OUT";
136
- type: "NATIVE" | "MEME";
137
- vaultAddress: string;
138
- amount: string;
139
- }, {
140
- method: "IN" | "OUT";
141
- type: "NATIVE" | "MEME";
142
- vaultAddress: string;
143
- amount: string;
144
- }>;
96
+ type: z.ZodEnum<{
97
+ NATIVE: "NATIVE";
98
+ MEME: "MEME";
99
+ }>;
100
+ method: z.ZodEnum<{
101
+ IN: "IN";
102
+ OUT: "OUT";
103
+ }>;
104
+ vaultAddress: z.ZodString;
105
+ amount: z.ZodString;
106
+ }, z.core.$strip>;
145
107
  /**
146
108
  * Calculate pre-mint data schema
147
109
  * For calculating initial token purchase amounts during creation
148
110
  */
149
111
  export declare const calculatePreMintDataSchema: z.ZodObject<{
150
- nativeTokenQuantity: z.ZodEffects<z.ZodString, string, string>;
151
- }, "strip", z.ZodTypeAny, {
152
- nativeTokenQuantity: string;
153
- }, {
154
- nativeTokenQuantity: string;
155
- }>;
112
+ nativeTokenQuantity: z.ZodString;
113
+ }, z.core.$strip>;
156
114
  /**
157
115
  * Fetch pool details data schema
158
116
  */
159
117
  export declare const fetchPoolDetailsDataSchema: z.ZodObject<{
160
- vaultAddress: z.ZodEffects<z.ZodString, string, string>;
161
- }, "strip", z.ZodTypeAny, {
162
- vaultAddress: string;
163
- }, {
164
- vaultAddress: string;
165
- }>;
118
+ vaultAddress: z.ZodString;
119
+ }, z.core.$strip>;
166
120
  /**
167
121
  * Reverse bonding curve configuration schema
168
122
  */
169
123
  export declare const reverseBondingCurveConfigurationSchema: z.ZodObject<{
170
- minFeePortion: z.ZodEffects<z.ZodString, string, string>;
171
- maxFeePortion: z.ZodEffects<z.ZodString, string, string>;
172
- }, "strip", z.ZodTypeAny, {
173
- minFeePortion: string;
174
- maxFeePortion: string;
175
- }, {
176
- minFeePortion: string;
177
- maxFeePortion: string;
178
- }>;
124
+ minFeePortion: z.ZodString;
125
+ maxFeePortion: z.ZodString;
126
+ }, z.core.$strip>;
179
127
  export type TradeType = z.infer<typeof tradeTypeSchema>;
180
128
  export type TradeTypeBackend = z.infer<typeof tradeTypeBackendSchema>;
181
129
  export type CreateTradeData = z.infer<typeof createTradeDataSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"trade.d.ts","sourceRoot":"","sources":["../../../src/schemas/trade.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB;;GAEG;AACH,eAAO,MAAM,eAAe,4BAA0B,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,sBAAsB,4BAA0B,CAAC;AAM9D;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAO9B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAO/B,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;EAEhC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+BAA6B,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,4BAA4B,0BAAwB,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;EAErC,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;EAErC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sCAA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AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC"}
@@ -9,7 +9,11 @@ import { z } from 'zod';
9
9
  /**
10
10
  * User token type schema
11
11
  */
12
- export declare const userTokenTypeSchema: z.ZodEnum<["all", "DEFI", "ASSET"]>;
12
+ export declare const userTokenTypeSchema: z.ZodEnum<{
13
+ all: "all";
14
+ DEFI: "DEFI";
15
+ ASSET: "ASSET";
16
+ }>;
13
17
  /**
14
18
  * Token list options schema
15
19
  * Includes pagination, type filter, address filter, search, and token name
@@ -17,222 +21,74 @@ export declare const userTokenTypeSchema: z.ZodEnum<["all", "DEFI", "ASSET"]>;
17
21
  export declare const tokenListOptionsSchema: z.ZodObject<{
18
22
  page: z.ZodDefault<z.ZodNumber>;
19
23
  limit: z.ZodDefault<z.ZodNumber>;
20
- } & {
21
- type: z.ZodOptional<z.ZodEnum<["all", "DEFI", "ASSET"]>>;
22
- address: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
24
+ type: z.ZodOptional<z.ZodEnum<{
25
+ all: "all";
26
+ DEFI: "DEFI";
27
+ ASSET: "ASSET";
28
+ }>>;
29
+ address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
23
30
  search: z.ZodOptional<z.ZodString>;
24
31
  tokenName: z.ZodOptional<z.ZodString>;
25
- }, "strip", z.ZodTypeAny, {
26
- page: number;
27
- limit: number;
28
- tokenName?: string | undefined;
29
- type?: "all" | "DEFI" | "ASSET" | undefined;
30
- search?: string | undefined;
31
- address?: string | undefined;
32
- }, {
33
- tokenName?: string | undefined;
34
- page?: number | undefined;
35
- limit?: number | undefined;
36
- type?: "all" | "DEFI" | "ASSET" | undefined;
37
- search?: string | undefined;
38
- address?: string | undefined;
39
- }>;
32
+ }, z.core.$strip>;
40
33
  /**
41
34
  * Fetch GALA balance options schema
42
35
  */
43
36
  export declare const fetchGalaBalanceOptionsSchema: z.ZodObject<{
44
- address: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
37
+ address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
45
38
  refresh: z.ZodOptional<z.ZodBoolean>;
46
- }, "strip", z.ZodTypeAny, {
47
- address?: string | undefined;
48
- refresh?: boolean | undefined;
49
- }, {
50
- address?: string | undefined;
51
- refresh?: boolean | undefined;
52
- }>;
39
+ }, z.core.$strip>;
53
40
  /**
54
41
  * Update profile data schema
55
42
  */
56
43
  export declare const updateProfileDataSchema: z.ZodObject<{
57
44
  profileImage: z.ZodString;
58
45
  fullName: z.ZodString;
59
- address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
46
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
60
47
  privateKey: z.ZodOptional<z.ZodString>;
61
- }, "strip", z.ZodTypeAny, {
62
- address: string;
63
- profileImage: string;
64
- fullName: string;
65
- privateKey?: string | undefined;
66
- }, {
67
- address: string;
68
- profileImage: string;
69
- fullName: string;
70
- privateKey?: string | undefined;
71
- }>;
48
+ }, z.core.$strip>;
72
49
  /**
73
50
  * Upload profile image options schema
74
51
  */
75
52
  export declare const uploadProfileImageOptionsSchema: z.ZodObject<{
76
- file: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>]>;
77
- address: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
53
+ file: z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>]>;
54
+ address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
78
55
  privateKey: z.ZodOptional<z.ZodString>;
79
- }, "strip", z.ZodTypeAny, {
80
- file: File | Buffer<ArrayBufferLike>;
81
- privateKey?: string | undefined;
82
- address?: string | undefined;
83
- }, {
84
- file: File | Buffer<ArrayBufferLike>;
85
- privateKey?: string | undefined;
86
- address?: string | undefined;
87
- }>;
56
+ }, z.core.$strip>;
88
57
  /**
89
58
  * Token hold schema representing a lock on tokens
90
59
  * Matches the GalaChain FetchBalances response structure for inUseHolds and lockedHolds
91
60
  */
92
61
  export declare const tokenHoldSchema: z.ZodObject<{
93
- /** Timestamp when the lock was created (epoch milliseconds) */
94
62
  created: z.ZodNumber;
95
- /** Address that created the lock */
96
63
  createdBy: z.ZodString;
97
- /** Expiration timestamp (epoch milliseconds, 0 = no expiry) */
98
64
  expires: z.ZodNumber;
99
- /** Token instance ID */
100
65
  instanceId: z.ZodString;
101
- /** Address authorized to unlock these tokens */
102
66
  lockAuthority: z.ZodString;
103
- /** Optional name/identifier for the lock */
104
67
  name: z.ZodString;
105
- /** Locked quantity as decimal string */
106
68
  quantity: z.ZodString;
107
- /** Vesting period start timestamp (0 = no vesting) */
108
69
  vestingPeriodStart: z.ZodNumber;
109
- }, "strip", z.ZodTypeAny, {
110
- name: string;
111
- created: number;
112
- createdBy: string;
113
- expires: number;
114
- instanceId: string;
115
- lockAuthority: string;
116
- quantity: string;
117
- vestingPeriodStart: number;
118
- }, {
119
- name: string;
120
- created: number;
121
- createdBy: string;
122
- expires: number;
123
- instanceId: string;
124
- lockAuthority: string;
125
- quantity: string;
126
- vestingPeriodStart: number;
127
- }>;
70
+ }, z.core.$strip>;
128
71
  /**
129
72
  * Fetch token balance options schema
130
73
  * Supports flexible token identification via tokenId, tokenClassKey, or tokenName
131
74
  */
132
- export declare const fetchTokenBalanceOptionsSchema: z.ZodEffects<z.ZodObject<{
133
- address: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
134
- tokenId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
75
+ export declare const fetchTokenBalanceOptionsSchema: z.ZodObject<{
76
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
77
+ tokenId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
135
78
  collection: z.ZodString;
136
79
  category: z.ZodString;
137
80
  type: z.ZodString;
138
81
  additionalKey: z.ZodString;
139
- }, "strip", z.ZodTypeAny, {
140
- type: string;
141
- collection: string;
142
- category: string;
143
- additionalKey: string;
144
- }, {
145
- type: string;
146
- collection: string;
147
- category: string;
148
- additionalKey: string;
149
- }>, z.ZodObject<{
82
+ }, z.core.$strip>, z.ZodObject<{
150
83
  collection: z.ZodString;
151
84
  category: z.ZodString;
152
85
  type: z.ZodString;
153
86
  additionalKey: z.ZodString;
154
87
  instance: z.ZodString;
155
- }, "strip", z.ZodTypeAny, {
156
- type: string;
157
- collection: string;
158
- category: string;
159
- additionalKey: string;
160
- instance: string;
161
- }, {
162
- type: string;
163
- collection: string;
164
- category: string;
165
- additionalKey: string;
166
- instance: string;
167
- }>]>>;
88
+ }, z.core.$strip>]>>;
168
89
  tokenName: z.ZodOptional<z.ZodString>;
169
- /** Include expired holds in results (default: false - excludes expired) */
170
90
  withExpired: z.ZodOptional<z.ZodBoolean>;
171
- }, "strip", z.ZodTypeAny, {
172
- address: string;
173
- tokenName?: string | undefined;
174
- tokenId?: string | {
175
- type: string;
176
- collection: string;
177
- category: string;
178
- additionalKey: string;
179
- } | {
180
- type: string;
181
- collection: string;
182
- category: string;
183
- additionalKey: string;
184
- instance: string;
185
- } | undefined;
186
- withExpired?: boolean | undefined;
187
- }, {
188
- address: string;
189
- tokenName?: string | undefined;
190
- tokenId?: string | {
191
- type: string;
192
- collection: string;
193
- category: string;
194
- additionalKey: string;
195
- } | {
196
- type: string;
197
- collection: string;
198
- category: string;
199
- additionalKey: string;
200
- instance: string;
201
- } | undefined;
202
- withExpired?: boolean | undefined;
203
- }>, {
204
- address: string;
205
- tokenName?: string | undefined;
206
- tokenId?: string | {
207
- type: string;
208
- collection: string;
209
- category: string;
210
- additionalKey: string;
211
- } | {
212
- type: string;
213
- collection: string;
214
- category: string;
215
- additionalKey: string;
216
- instance: string;
217
- } | undefined;
218
- withExpired?: boolean | undefined;
219
- }, {
220
- address: string;
221
- tokenName?: string | undefined;
222
- tokenId?: string | {
223
- type: string;
224
- collection: string;
225
- category: string;
226
- additionalKey: string;
227
- } | {
228
- type: string;
229
- collection: string;
230
- category: string;
231
- additionalKey: string;
232
- instance: string;
233
- } | undefined;
234
- withExpired?: boolean | undefined;
235
- }>;
91
+ }, z.core.$strip>;
236
92
  export type UserTokenType = z.infer<typeof userTokenTypeSchema>;
237
93
  export type TokenListOptions = z.infer<typeof tokenListOptionsSchema>;
238
94
  export type FetchGalaBalanceOptions = z.infer<typeof fetchGalaBalanceOptionsSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/schemas/user.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB;;GAEG;AACH,eAAO,MAAM,mBAAmB,qCAAmC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;EAKjC,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,6BAA6B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EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;EAAmC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;iBAKjC,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;iBAO1C,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;iBAiB1B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;iBAwB1C,CAAC;AAMF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -149,22 +149,22 @@ export declare const validateLaunchTokenData: (value: unknown) => ValidationResu
149
149
  tokenName: string;
150
150
  tokenSymbol: string;
151
151
  tokenDescription: string;
152
- privateKey?: string | undefined;
152
+ preBuyQuantity: string;
153
+ tokenCategory: string;
154
+ tokenCollection: string;
155
+ tokenImage?: string | File | Buffer<ArrayBufferLike> | undefined;
153
156
  websiteUrl?: string | undefined;
154
- twitterUrl?: string | undefined;
155
157
  telegramUrl?: string | undefined;
158
+ twitterUrl?: string | undefined;
156
159
  instagramUrl?: string | undefined;
157
160
  facebookUrl?: string | undefined;
158
161
  redditUrl?: string | undefined;
159
162
  tiktokUrl?: string | undefined;
160
- tokenImage?: string | File | Buffer<ArrayBufferLike> | undefined;
161
- preBuyQuantity?: string | undefined;
162
- tokenCategory?: string | undefined;
163
- tokenCollection?: string | undefined;
164
163
  reverseBondingCurveConfiguration?: {
165
164
  minFeePortion: string;
166
165
  maxFeePortion: string;
167
166
  } | undefined;
167
+ privateKey?: string | undefined;
168
168
  }>;
169
169
  /**
170
170
  * Validates token social URLs
@@ -172,8 +172,8 @@ export declare const validateLaunchTokenData: (value: unknown) => ValidationResu
172
172
  */
173
173
  export declare const validateTokenUrls: (value: unknown) => ValidationResult<{
174
174
  websiteUrl?: string | undefined;
175
- twitterUrl?: string | undefined;
176
175
  telegramUrl?: string | undefined;
176
+ twitterUrl?: string | undefined;
177
177
  instagramUrl?: string | undefined;
178
178
  facebookUrl?: string | undefined;
179
179
  redditUrl?: string | undefined;
@@ -184,28 +184,28 @@ export declare const validateTokenUrls: (value: unknown) => ValidationResult<{
184
184
  * Replaces: isImageUploadOptions()
185
185
  */
186
186
  export declare const validateImageUploadOptions: (value: unknown) => ValidationResult<{
187
- tokenName: string;
188
187
  file: File | Buffer<ArrayBufferLike>;
188
+ tokenName: string;
189
189
  }>;
190
190
  /**
191
191
  * Validates check pool options
192
192
  * Replaces: isCheckPoolOptions()
193
193
  */
194
194
  export declare const validateCheckPoolOptions: (value: unknown) => ValidationResult<{
195
- symbol?: string | undefined;
196
195
  tokenName?: string | undefined;
196
+ symbol?: string | undefined;
197
197
  }>;
198
198
  /**
199
199
  * Validates token list options
200
200
  * Replaces: isGetTokenListOptions()
201
201
  */
202
202
  export declare const validateTokenListOptions: (value: unknown) => ValidationResult<{
203
- tokenName?: string | undefined;
204
- page?: number | undefined;
205
- limit?: number | undefined;
203
+ page: number;
204
+ limit: number;
206
205
  type?: "all" | "DEFI" | "ASSET" | undefined;
207
- search?: string | undefined;
208
206
  address?: string | undefined;
207
+ search?: string | undefined;
208
+ tokenName?: string | undefined;
209
209
  }>;
210
210
  /**
211
211
  * Validates fetch GALA balance options
@@ -220,9 +220,9 @@ export declare const validateFetchGalaBalanceOptions: (value: unknown) => Valida
220
220
  * Replaces: isUpdateProfileData()
221
221
  */
222
222
  export declare const validateUpdateProfileData: (value: unknown) => ValidationResult<{
223
- address: string;
224
223
  profileImage: string;
225
224
  fullName: string;
225
+ address: string;
226
226
  privateKey?: string | undefined;
227
227
  }>;
228
228
  /**
@@ -231,8 +231,8 @@ export declare const validateUpdateProfileData: (value: unknown) => ValidationRe
231
231
  */
232
232
  export declare const validateUploadProfileImageOptions: (value: unknown) => ValidationResult<{
233
233
  file: File | Buffer<ArrayBufferLike>;
234
- privateKey?: string | undefined;
235
234
  address?: string | undefined;
235
+ privateKey?: string | undefined;
236
236
  }>;
237
237
  /**
238
238
  * Validates fetch token balance options
@@ -240,19 +240,19 @@ export declare const validateUploadProfileImageOptions: (value: unknown) => Vali
240
240
  */
241
241
  export declare const validateFetchTokenBalanceOptions: (value: unknown) => ValidationResult<{
242
242
  address: string;
243
- tokenName?: string | undefined;
244
243
  tokenId?: string | {
245
- type: string;
246
244
  collection: string;
247
245
  category: string;
246
+ type: string;
248
247
  additionalKey: string;
249
248
  } | {
250
- type: string;
251
249
  collection: string;
252
250
  category: string;
251
+ type: string;
253
252
  additionalKey: string;
254
253
  instance: string;
255
254
  } | undefined;
255
+ tokenName?: string | undefined;
256
256
  withExpired?: boolean | undefined;
257
257
  }>;
258
258
  /**
@@ -292,9 +292,9 @@ export declare const validateSellTokensData: (value: unknown) => ValidationResul
292
292
  * Replaces: isGetTradeOptions()
293
293
  */
294
294
  export declare const validateGetTradeOptions: (value: unknown) => ValidationResult<{
295
+ page: number;
296
+ limit: number;
295
297
  tokenName?: string | undefined;
296
- page?: number | undefined;
297
- limit?: number | undefined;
298
298
  }>;
299
299
  /**
300
300
  * Validates trade list params
@@ -309,8 +309,8 @@ export declare const validateTradeListParams: (value: unknown) => ValidationResu
309
309
  * Replaces: isGetAmountOptions()
310
310
  */
311
311
  export declare const validateGetAmountOptions: (value: unknown) => ValidationResult<{
312
- method: "IN" | "OUT";
313
312
  type: "NATIVE" | "MEME";
313
+ method: "IN" | "OUT";
314
314
  vaultAddress: string;
315
315
  amount: string;
316
316
  }>;