@arbiwallet/contracts 1.0.2 → 1.0.3

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/auth.ts CHANGED
@@ -40,18 +40,18 @@ export interface TelegramAuthResponse {
40
40
  export const AUTH_PACKAGE_NAME = "auth";
41
41
 
42
42
  export interface TelegramAuthServiceClient {
43
- login(request: TelegramAuthRequest): Observable<TelegramAuthResponse>;
43
+ telegramAuth(request: TelegramAuthRequest): Observable<TelegramAuthResponse>;
44
44
  }
45
45
 
46
46
  export interface TelegramAuthServiceController {
47
- login(
47
+ telegramAuth(
48
48
  request: TelegramAuthRequest,
49
49
  ): Promise<TelegramAuthResponse> | Observable<TelegramAuthResponse> | TelegramAuthResponse;
50
50
  }
51
51
 
52
52
  export function TelegramAuthServiceControllerMethods() {
53
53
  return function (constructor: Function) {
54
- const grpcMethods: string[] = ["login"];
54
+ const grpcMethods: string[] = ["telegramAuth"];
55
55
  for (const method of grpcMethods) {
56
56
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
57
57
  GrpcMethod("TelegramAuthService", method)(constructor.prototype[method], method, descriptor);
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.2",
4
+ "version": "1.0.3",
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/auth.proto CHANGED
@@ -2,7 +2,7 @@ syntax = "proto3";
2
2
  package auth;
3
3
 
4
4
  service TelegramAuthService {
5
- rpc Login (TelegramAuthRequest) returns (TelegramAuthResponse);
5
+ rpc TelegramAuth (TelegramAuthRequest) returns (TelegramAuthResponse);
6
6
  }
7
7
 
8
8
  message TelegramAuthRequest {