@arbiwallet/contracts 1.0.48 → 1.0.49

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/gen/withdrawal.ts CHANGED
@@ -51,6 +51,13 @@ export interface GetWithdrawalLimitsRequest {
51
51
  network?: string | undefined;
52
52
  }
53
53
 
54
+ export interface GetPayoutPricingRequest {
55
+ }
56
+
57
+ export interface GetPayoutPricingResponse {
58
+ rows: PayoutConfigRow[];
59
+ }
60
+
54
61
  export interface WithdrawalLimits {
55
62
  userId: string;
56
63
  minWithdrawalAmount: string;
@@ -184,6 +191,10 @@ export interface WithdrawalServiceClient {
184
191
 
185
192
  getWithdrawalLimits(request: GetWithdrawalLimitsRequest): Observable<WithdrawalLimits>;
186
193
 
194
+ /** Один ответ для фронта: мин. on-chain сумма + комиссии по каждой паре asset/network (без user-лимитов). */
195
+
196
+ getPayoutPricing(request: GetPayoutPricingRequest): Observable<GetPayoutPricingResponse>;
197
+
187
198
  adminSetMonthlyWithdrawalLimit(
188
199
  request: AdminSetMonthlyWithdrawalLimitRequest,
189
200
  ): Observable<AdminSetMonthlyWithdrawalLimitResponse>;
@@ -216,6 +227,12 @@ export interface WithdrawalServiceController {
216
227
  request: GetWithdrawalLimitsRequest,
217
228
  ): Promise<WithdrawalLimits> | Observable<WithdrawalLimits> | WithdrawalLimits;
218
229
 
230
+ /** Один ответ для фронта: мин. on-chain сумма + комиссии по каждой паре asset/network (без user-лимитов). */
231
+
232
+ getPayoutPricing(
233
+ request: GetPayoutPricingRequest,
234
+ ): Promise<GetPayoutPricingResponse> | Observable<GetPayoutPricingResponse> | GetPayoutPricingResponse;
235
+
219
236
  adminSetMonthlyWithdrawalLimit(
220
237
  request: AdminSetMonthlyWithdrawalLimitRequest,
221
238
  ):
@@ -251,6 +268,7 @@ export function WithdrawalServiceControllerMethods() {
251
268
  "listWithdrawals",
252
269
  "getMonthlyWithdrawalLimit",
253
270
  "getWithdrawalLimits",
271
+ "getPayoutPricing",
254
272
  "adminSetMonthlyWithdrawalLimit",
255
273
  "adminSetUserWithdrawalLimits",
256
274
  "adminRejectWithdrawal",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbiwallet/contracts",
3
3
  "descriptions": "Generate and manage smart contracts for ArbiWallet",
4
- "version": "1.0.48",
4
+ "version": "1.0.49",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -13,6 +13,8 @@ service WithdrawalService {
13
13
  rpc ListWithdrawals(ListWithdrawalsRequest) returns (ListWithdrawalsResponse);
14
14
  rpc GetMonthlyWithdrawalLimit(GetMonthlyWithdrawalLimitRequest) returns (MonthlyWithdrawalLimit);
15
15
  rpc GetWithdrawalLimits(GetWithdrawalLimitsRequest) returns (WithdrawalLimits);
16
+ // Один ответ для фронта: мин. on-chain сумма + комиссии по каждой паре asset/network (без user-лимитов).
17
+ rpc GetPayoutPricing(GetPayoutPricingRequest) returns (GetPayoutPricingResponse);
16
18
  rpc AdminSetMonthlyWithdrawalLimit(AdminSetMonthlyWithdrawalLimitRequest) returns (AdminSetMonthlyWithdrawalLimitResponse);
17
19
  rpc AdminSetUserWithdrawalLimits(AdminSetUserWithdrawalLimitsRequest) returns (AdminSetUserWithdrawalLimitsResponse);
18
20
  rpc AdminRejectWithdrawal(AdminRejectWithdrawalRequest) returns (Withdrawal);
@@ -58,6 +60,12 @@ message GetWithdrawalLimitsRequest {
58
60
  optional string network = 3; // "TRON" | "BSC" — enum ChainNetwork
59
61
  }
60
62
 
63
+ message GetPayoutPricingRequest {}
64
+
65
+ message GetPayoutPricingResponse {
66
+ repeated PayoutConfigRow rows = 1;
67
+ }
68
+
61
69
  message WithdrawalLimits {
62
70
  string user_id = 1;
63
71
  string min_withdrawal_amount = 2;