quidax-node 3.0.3 → 3.0.4
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 +8 -8
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +8 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -153,7 +153,7 @@ var WalletsModule = class {
|
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
155
|
* Fetches all wallets for a given user.
|
|
156
|
-
*
|
|
156
|
+
*
|
|
157
157
|
* @param userId - The unique ID of the user. 'me' can be used for the authenticated user.
|
|
158
158
|
* @returns A promise resolving to an array of Wallet objects.
|
|
159
159
|
*/
|
|
@@ -162,7 +162,7 @@ var WalletsModule = class {
|
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
164
|
* Fetches a specific cryptocurrency wallet for a user.
|
|
165
|
-
*
|
|
165
|
+
*
|
|
166
166
|
* @param userId - The unique ID of the user.
|
|
167
167
|
* @param currency - The cryptocurrency ticker (e.g., 'btc', 'usdt').
|
|
168
168
|
* @returns A promise resolving to a single Wallet object.
|
|
@@ -172,7 +172,7 @@ var WalletsModule = class {
|
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
174
|
* Fetches the default Payment Address for a specific user's wallet.
|
|
175
|
-
*
|
|
175
|
+
*
|
|
176
176
|
* @param userId - The unique ID of the user.
|
|
177
177
|
* @param currency - The cryptocurrency ticker.
|
|
178
178
|
* @returns A promise resolving to the primary PaymentAddress object.
|
|
@@ -182,7 +182,7 @@ var WalletsModule = class {
|
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* Fetches all generated Payment Addresses for a specific user's wallet.
|
|
185
|
-
*
|
|
185
|
+
*
|
|
186
186
|
* @param userId - The unique ID of the user.
|
|
187
187
|
* @param currency - The cryptocurrency ticker.
|
|
188
188
|
* @returns A promise resolving to an array of PaymentAddress objects.
|
|
@@ -192,7 +192,7 @@ var WalletsModule = class {
|
|
|
192
192
|
}
|
|
193
193
|
/**
|
|
194
194
|
* Fetches a specific Payment Address by its ID.
|
|
195
|
-
*
|
|
195
|
+
*
|
|
196
196
|
* @param userId - The unique ID of the user.
|
|
197
197
|
* @param currency - The cryptocurrency ticker.
|
|
198
198
|
* @param addressId - The ID of the specific payment address.
|
|
@@ -203,13 +203,13 @@ var WalletsModule = class {
|
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
205
|
* Generates a new Payment Address for a cryptocurrency wallet.
|
|
206
|
-
*
|
|
206
|
+
*
|
|
207
207
|
* @param userId - The unique ID of the user.
|
|
208
208
|
* @param currency - The cryptocurrency ticker (e.g., 'btc', 'eth').
|
|
209
209
|
* @returns A promise resolving to the newly generated PaymentAddress object.
|
|
210
210
|
*/
|
|
211
|
-
async createPaymentAddress(userId, currency) {
|
|
212
|
-
return this.client.post(`/users/${userId}/wallets/${currency}/addresses`);
|
|
211
|
+
async createPaymentAddress(userId, currency, network) {
|
|
212
|
+
return this.client.post(`/users/${userId}/wallets/${currency}/addresses?network=${network}`);
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
//#endregion
|
package/dist/index.d.cts
CHANGED
|
@@ -196,7 +196,7 @@ declare class WalletsModule {
|
|
|
196
196
|
* @param currency - The cryptocurrency ticker (e.g., 'btc', 'eth').
|
|
197
197
|
* @returns A promise resolving to the newly generated PaymentAddress object.
|
|
198
198
|
*/
|
|
199
|
-
createPaymentAddress(userId: string, currency: Currency): Promise<QuidaxResponse<PaymentAddress>>;
|
|
199
|
+
createPaymentAddress(userId: string, currency: Currency, network: string): Promise<QuidaxResponse<PaymentAddress>>;
|
|
200
200
|
}
|
|
201
201
|
//#endregion
|
|
202
202
|
//#region src/modules/withdrawals.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -196,7 +196,7 @@ declare class WalletsModule {
|
|
|
196
196
|
* @param currency - The cryptocurrency ticker (e.g., 'btc', 'eth').
|
|
197
197
|
* @returns A promise resolving to the newly generated PaymentAddress object.
|
|
198
198
|
*/
|
|
199
|
-
createPaymentAddress(userId: string, currency: Currency): Promise<QuidaxResponse<PaymentAddress>>;
|
|
199
|
+
createPaymentAddress(userId: string, currency: Currency, network: string): Promise<QuidaxResponse<PaymentAddress>>;
|
|
200
200
|
}
|
|
201
201
|
//#endregion
|
|
202
202
|
//#region src/modules/withdrawals.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -126,7 +126,7 @@ var WalletsModule = class {
|
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
128
|
* Fetches all wallets for a given user.
|
|
129
|
-
*
|
|
129
|
+
*
|
|
130
130
|
* @param userId - The unique ID of the user. 'me' can be used for the authenticated user.
|
|
131
131
|
* @returns A promise resolving to an array of Wallet objects.
|
|
132
132
|
*/
|
|
@@ -135,7 +135,7 @@ var WalletsModule = class {
|
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
137
|
* Fetches a specific cryptocurrency wallet for a user.
|
|
138
|
-
*
|
|
138
|
+
*
|
|
139
139
|
* @param userId - The unique ID of the user.
|
|
140
140
|
* @param currency - The cryptocurrency ticker (e.g., 'btc', 'usdt').
|
|
141
141
|
* @returns A promise resolving to a single Wallet object.
|
|
@@ -145,7 +145,7 @@ var WalletsModule = class {
|
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
147
|
* Fetches the default Payment Address for a specific user's wallet.
|
|
148
|
-
*
|
|
148
|
+
*
|
|
149
149
|
* @param userId - The unique ID of the user.
|
|
150
150
|
* @param currency - The cryptocurrency ticker.
|
|
151
151
|
* @returns A promise resolving to the primary PaymentAddress object.
|
|
@@ -155,7 +155,7 @@ var WalletsModule = class {
|
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
157
|
* Fetches all generated Payment Addresses for a specific user's wallet.
|
|
158
|
-
*
|
|
158
|
+
*
|
|
159
159
|
* @param userId - The unique ID of the user.
|
|
160
160
|
* @param currency - The cryptocurrency ticker.
|
|
161
161
|
* @returns A promise resolving to an array of PaymentAddress objects.
|
|
@@ -165,7 +165,7 @@ var WalletsModule = class {
|
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Fetches a specific Payment Address by its ID.
|
|
168
|
-
*
|
|
168
|
+
*
|
|
169
169
|
* @param userId - The unique ID of the user.
|
|
170
170
|
* @param currency - The cryptocurrency ticker.
|
|
171
171
|
* @param addressId - The ID of the specific payment address.
|
|
@@ -176,13 +176,13 @@ var WalletsModule = class {
|
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
178
|
* Generates a new Payment Address for a cryptocurrency wallet.
|
|
179
|
-
*
|
|
179
|
+
*
|
|
180
180
|
* @param userId - The unique ID of the user.
|
|
181
181
|
* @param currency - The cryptocurrency ticker (e.g., 'btc', 'eth').
|
|
182
182
|
* @returns A promise resolving to the newly generated PaymentAddress object.
|
|
183
183
|
*/
|
|
184
|
-
async createPaymentAddress(userId, currency) {
|
|
185
|
-
return this.client.post(`/users/${userId}/wallets/${currency}/addresses`);
|
|
184
|
+
async createPaymentAddress(userId, currency, network) {
|
|
185
|
+
return this.client.post(`/users/${userId}/wallets/${currency}/addresses?network=${network}`);
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
//#endregion
|