@arbiwallet/contracts 1.0.283 → 1.0.284
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/referral.ts +9 -9
- package/package.json +1 -1
- package/proto/referral.proto +9 -9
package/gen/referral.ts
CHANGED
|
@@ -46,12 +46,12 @@ export interface EnsureReferralProfileRequest {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export interface ReferralProfileResponse {
|
|
49
|
-
id:
|
|
49
|
+
id: number;
|
|
50
50
|
walletUserId: string;
|
|
51
51
|
legacyCustomerId?: number | undefined;
|
|
52
52
|
telegramId?: string | undefined;
|
|
53
53
|
refCode: string;
|
|
54
|
-
referrerProfileId?:
|
|
54
|
+
referrerProfileId?: number | undefined;
|
|
55
55
|
bonusType: ReferralBonusType;
|
|
56
56
|
refPercent: string;
|
|
57
57
|
status: ReferralProfileStatus;
|
|
@@ -151,7 +151,7 @@ export interface ListReferralsRequest {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
export interface ReferralListItem {
|
|
154
|
-
profileId:
|
|
154
|
+
profileId: number;
|
|
155
155
|
walletUserId: string;
|
|
156
156
|
legacyCustomerId?: number | undefined;
|
|
157
157
|
telegramId?: string | undefined;
|
|
@@ -234,10 +234,10 @@ export interface ListCommissionsRequest {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
export interface ReferralCommissionItem {
|
|
237
|
-
id:
|
|
237
|
+
id: number;
|
|
238
238
|
exchangeId: string;
|
|
239
|
-
referrerProfileId:
|
|
240
|
-
referredProfileId:
|
|
239
|
+
referrerProfileId: number;
|
|
240
|
+
referredProfileId: number;
|
|
241
241
|
level: number;
|
|
242
242
|
bonusType: ReferralBonusType;
|
|
243
243
|
percent: string;
|
|
@@ -267,13 +267,13 @@ export interface CreatePayoutRequest {
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
export interface ConfirmPayoutRequest {
|
|
270
|
-
payoutId:
|
|
270
|
+
payoutId: number;
|
|
271
271
|
confirmedByManagerId?: string | undefined;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
export interface ReferralPayoutResponse {
|
|
275
|
-
id:
|
|
276
|
-
profileId:
|
|
275
|
+
id: number;
|
|
276
|
+
profileId: number;
|
|
277
277
|
amount: string;
|
|
278
278
|
currency: string;
|
|
279
279
|
paymentMethod: string;
|
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.
|
|
4
|
+
"version": "1.0.284",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
package/proto/referral.proto
CHANGED
|
@@ -59,12 +59,12 @@ message EnsureReferralProfileRequest {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
message ReferralProfileResponse {
|
|
62
|
-
|
|
62
|
+
int64 id = 1;
|
|
63
63
|
string wallet_user_id = 2;
|
|
64
64
|
optional int64 legacy_customer_id = 3;
|
|
65
65
|
optional string telegram_id = 4;
|
|
66
66
|
string ref_code = 5;
|
|
67
|
-
optional
|
|
67
|
+
optional int64 referrer_profile_id = 6;
|
|
68
68
|
ReferralBonusType bonus_type = 7;
|
|
69
69
|
string ref_percent = 8;
|
|
70
70
|
ReferralProfileStatus status = 9;
|
|
@@ -162,7 +162,7 @@ message ListReferralsRequest {
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
message ReferralListItem {
|
|
165
|
-
|
|
165
|
+
int64 profile_id = 1;
|
|
166
166
|
string wallet_user_id = 2;
|
|
167
167
|
optional int64 legacy_customer_id = 3;
|
|
168
168
|
optional string telegram_id = 4;
|
|
@@ -245,10 +245,10 @@ message ListCommissionsRequest {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
message ReferralCommissionItem {
|
|
248
|
-
|
|
248
|
+
int64 id = 1;
|
|
249
249
|
string exchange_id = 2;
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
int64 referrer_profile_id = 3;
|
|
251
|
+
int64 referred_profile_id = 4;
|
|
252
252
|
int32 level = 5;
|
|
253
253
|
ReferralBonusType bonus_type = 6;
|
|
254
254
|
string percent = 7;
|
|
@@ -278,13 +278,13 @@ message CreatePayoutRequest {
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
message ConfirmPayoutRequest {
|
|
281
|
-
|
|
281
|
+
int64 payout_id = 1;
|
|
282
282
|
optional string confirmed_by_manager_id = 2;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
message ReferralPayoutResponse {
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
int64 id = 1;
|
|
287
|
+
int64 profile_id = 2;
|
|
288
288
|
string amount = 3;
|
|
289
289
|
string currency = 4;
|
|
290
290
|
string payment_method = 5;
|