@arbiwallet/contracts 1.0.133 → 1.0.135
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/content.ts +27 -1
- package/gen/deposit.ts +40 -0
- package/package.json +1 -1
- package/proto/content.proto +18 -0
- package/proto/deposit.proto +31 -0
package/gen/content.ts
CHANGED
|
@@ -146,6 +146,23 @@ export interface ListMipifAutoReplyUsersResponse {
|
|
|
146
146
|
users: MipifAutoReplyUser[];
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
export interface SendMipifWinnerMessagesRequest {
|
|
150
|
+
telegramIds: string[];
|
|
151
|
+
text: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface MipifWinnerMessageResult {
|
|
155
|
+
telegramId: string;
|
|
156
|
+
ok: boolean;
|
|
157
|
+
error?: string | undefined;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface SendMipifWinnerMessagesResponse {
|
|
161
|
+
sentCount: number;
|
|
162
|
+
failedCount: number;
|
|
163
|
+
results: MipifWinnerMessageResult[];
|
|
164
|
+
}
|
|
165
|
+
|
|
149
166
|
/** --- ABOUT --- */
|
|
150
167
|
export interface GetAboutRequest {
|
|
151
168
|
}
|
|
@@ -917,6 +934,8 @@ export const STORY_SERVICE_NAME = "StoryService";
|
|
|
917
934
|
|
|
918
935
|
export interface MipifAutoReplyServiceClient {
|
|
919
936
|
listMipifAutoReplyUsers(request: ListMipifAutoReplyUsersRequest): Observable<ListMipifAutoReplyUsersResponse>;
|
|
937
|
+
|
|
938
|
+
sendMipifWinnerMessages(request: SendMipifWinnerMessagesRequest): Observable<SendMipifWinnerMessagesResponse>;
|
|
920
939
|
}
|
|
921
940
|
|
|
922
941
|
export interface MipifAutoReplyServiceController {
|
|
@@ -926,11 +945,18 @@ export interface MipifAutoReplyServiceController {
|
|
|
926
945
|
| Promise<ListMipifAutoReplyUsersResponse>
|
|
927
946
|
| Observable<ListMipifAutoReplyUsersResponse>
|
|
928
947
|
| ListMipifAutoReplyUsersResponse;
|
|
948
|
+
|
|
949
|
+
sendMipifWinnerMessages(
|
|
950
|
+
request: SendMipifWinnerMessagesRequest,
|
|
951
|
+
):
|
|
952
|
+
| Promise<SendMipifWinnerMessagesResponse>
|
|
953
|
+
| Observable<SendMipifWinnerMessagesResponse>
|
|
954
|
+
| SendMipifWinnerMessagesResponse;
|
|
929
955
|
}
|
|
930
956
|
|
|
931
957
|
export function MipifAutoReplyServiceControllerMethods() {
|
|
932
958
|
return function (constructor: Function) {
|
|
933
|
-
const grpcMethods: string[] = ["listMipifAutoReplyUsers"];
|
|
959
|
+
const grpcMethods: string[] = ["listMipifAutoReplyUsers", "sendMipifWinnerMessages"];
|
|
934
960
|
for (const method of grpcMethods) {
|
|
935
961
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
936
962
|
GrpcMethod("MipifAutoReplyService", method)(constructor.prototype[method], method, descriptor);
|
package/gen/deposit.ts
CHANGED
|
@@ -87,6 +87,34 @@ export interface HandlePaymentDillDepositWebhookResponse {
|
|
|
87
87
|
status: string;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export interface GetPaymentDillDepositStatusRequest {
|
|
91
|
+
userId: string;
|
|
92
|
+
depositId: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface GetPaymentDillDepositStatusResponse {
|
|
96
|
+
depositId: string;
|
|
97
|
+
status: string;
|
|
98
|
+
paymentCurrency?: string | undefined;
|
|
99
|
+
purpose?: string | undefined;
|
|
100
|
+
requestedCreditAmount?: string | undefined;
|
|
101
|
+
amountMajor?: string | undefined;
|
|
102
|
+
creditAmount?: string | undefined;
|
|
103
|
+
creditAsset?: string | undefined;
|
|
104
|
+
creditNetwork?: string | undefined;
|
|
105
|
+
providerTransactionId?: string | undefined;
|
|
106
|
+
ledgerDepositId?: string | undefined;
|
|
107
|
+
cardTopupStatus?: string | undefined;
|
|
108
|
+
cardTopupError?: string | undefined;
|
|
109
|
+
cardCreateStatus?: string | undefined;
|
|
110
|
+
cardCreateError?: string | undefined;
|
|
111
|
+
createdCardId?: number | undefined;
|
|
112
|
+
createdAt?: string | undefined;
|
|
113
|
+
completedAt?: string | undefined;
|
|
114
|
+
expiresAt?: string | undefined;
|
|
115
|
+
expiredAt?: string | undefined;
|
|
116
|
+
}
|
|
117
|
+
|
|
90
118
|
export const DEPOSIT_V1_PACKAGE_NAME = "deposit.v1";
|
|
91
119
|
|
|
92
120
|
export interface DepositIntegrationClient {
|
|
@@ -101,6 +129,10 @@ export interface DepositIntegrationClient {
|
|
|
101
129
|
handlePaymentDillDepositWebhook(
|
|
102
130
|
request: HandlePaymentDillDepositWebhookRequest,
|
|
103
131
|
): Observable<HandlePaymentDillDepositWebhookResponse>;
|
|
132
|
+
|
|
133
|
+
getPaymentDillDepositStatus(
|
|
134
|
+
request: GetPaymentDillDepositStatusRequest,
|
|
135
|
+
): Observable<GetPaymentDillDepositStatusResponse>;
|
|
104
136
|
}
|
|
105
137
|
|
|
106
138
|
export interface DepositIntegrationController {
|
|
@@ -125,6 +157,13 @@ export interface DepositIntegrationController {
|
|
|
125
157
|
| Promise<HandlePaymentDillDepositWebhookResponse>
|
|
126
158
|
| Observable<HandlePaymentDillDepositWebhookResponse>
|
|
127
159
|
| HandlePaymentDillDepositWebhookResponse;
|
|
160
|
+
|
|
161
|
+
getPaymentDillDepositStatus(
|
|
162
|
+
request: GetPaymentDillDepositStatusRequest,
|
|
163
|
+
):
|
|
164
|
+
| Promise<GetPaymentDillDepositStatusResponse>
|
|
165
|
+
| Observable<GetPaymentDillDepositStatusResponse>
|
|
166
|
+
| GetPaymentDillDepositStatusResponse;
|
|
128
167
|
}
|
|
129
168
|
|
|
130
169
|
export function DepositIntegrationControllerMethods() {
|
|
@@ -133,6 +172,7 @@ export function DepositIntegrationControllerMethods() {
|
|
|
133
172
|
"applyBitGoCustodyAck",
|
|
134
173
|
"createPaymentDillDeposit",
|
|
135
174
|
"handlePaymentDillDepositWebhook",
|
|
175
|
+
"getPaymentDillDepositStatus",
|
|
136
176
|
];
|
|
137
177
|
for (const method of grpcMethods) {
|
|
138
178
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
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.135",
|
|
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/content.proto
CHANGED
|
@@ -75,6 +75,7 @@ service StoryService {
|
|
|
75
75
|
|
|
76
76
|
service MipifAutoReplyService {
|
|
77
77
|
rpc ListMipifAutoReplyUsers (ListMipifAutoReplyUsersRequest) returns (ListMipifAutoReplyUsersResponse);
|
|
78
|
+
rpc SendMipifWinnerMessages (SendMipifWinnerMessagesRequest) returns (SendMipifWinnerMessagesResponse);
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
// --- PUBLIC CONTENT MESSAGES ---
|
|
@@ -206,6 +207,23 @@ message ListMipifAutoReplyUsersResponse {
|
|
|
206
207
|
repeated MipifAutoReplyUser users = 1;
|
|
207
208
|
}
|
|
208
209
|
|
|
210
|
+
message SendMipifWinnerMessagesRequest {
|
|
211
|
+
repeated string telegram_ids = 1;
|
|
212
|
+
string text = 2;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
message MipifWinnerMessageResult {
|
|
216
|
+
string telegram_id = 1;
|
|
217
|
+
bool ok = 2;
|
|
218
|
+
optional string error = 3;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
message SendMipifWinnerMessagesResponse {
|
|
222
|
+
int32 sent_count = 1;
|
|
223
|
+
int32 failed_count = 2;
|
|
224
|
+
repeated MipifWinnerMessageResult results = 3;
|
|
225
|
+
}
|
|
226
|
+
|
|
209
227
|
// --- ABOUT ---
|
|
210
228
|
message GetAboutRequest {}
|
|
211
229
|
|
package/proto/deposit.proto
CHANGED
|
@@ -16,6 +16,9 @@ service DepositIntegration {
|
|
|
16
16
|
|
|
17
17
|
rpc HandlePaymentDillDepositWebhook(HandlePaymentDillDepositWebhookRequest)
|
|
18
18
|
returns (HandlePaymentDillDepositWebhookResponse);
|
|
19
|
+
|
|
20
|
+
rpc GetPaymentDillDepositStatus(GetPaymentDillDepositStatusRequest)
|
|
21
|
+
returns (GetPaymentDillDepositStatusResponse);
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
message ApplyBitGoCustodyAckRequest {
|
|
@@ -78,3 +81,31 @@ message HandlePaymentDillDepositWebhookResponse {
|
|
|
78
81
|
string deposit_id = 2;
|
|
79
82
|
string status = 3;
|
|
80
83
|
}
|
|
84
|
+
|
|
85
|
+
message GetPaymentDillDepositStatusRequest {
|
|
86
|
+
string user_id = 1;
|
|
87
|
+
string deposit_id = 2;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message GetPaymentDillDepositStatusResponse {
|
|
91
|
+
string deposit_id = 1;
|
|
92
|
+
string status = 2;
|
|
93
|
+
optional string payment_currency = 3;
|
|
94
|
+
optional string purpose = 4;
|
|
95
|
+
optional string requested_credit_amount = 5;
|
|
96
|
+
optional string amount_major = 6;
|
|
97
|
+
optional string credit_amount = 7;
|
|
98
|
+
optional string credit_asset = 8;
|
|
99
|
+
optional string credit_network = 9;
|
|
100
|
+
optional string provider_transaction_id = 10;
|
|
101
|
+
optional string ledger_deposit_id = 11;
|
|
102
|
+
optional string card_topup_status = 12;
|
|
103
|
+
optional string card_topup_error = 13;
|
|
104
|
+
optional string card_create_status = 14;
|
|
105
|
+
optional string card_create_error = 15;
|
|
106
|
+
optional int64 created_card_id = 16;
|
|
107
|
+
optional string created_at = 17;
|
|
108
|
+
optional string completed_at = 18;
|
|
109
|
+
optional string expires_at = 19;
|
|
110
|
+
optional string expired_at = 20;
|
|
111
|
+
}
|