@miradorlabs/web-grpc 1.0.0
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/README.md +5 -0
- package/google/protobuf/timestamp.ts +229 -0
- package/package.json +11 -0
- package/proto/gateway/common/v1/status.ts +179 -0
- package/proto/gateway/common/v1/status_grpc_pb.js +1 -0
- package/proto/gateway/common/v1/status_pb.js +237 -0
- package/proto/gateway/common/v1/types.ts +176 -0
- package/proto/gateway/common/v1/types_grpc_pb.js +1 -0
- package/proto/gateway/common/v1/types_pb.js +216 -0
- package/proto/gateway/web/v1/account_gateway.ts +7037 -0
- package/proto/gateway/web/v1/account_gateway_grpc_pb.js +813 -0
- package/proto/gateway/web/v1/account_gateway_pb.js +14338 -0
- package/proto/gateway/web/v1/automation_gateway.ts +5605 -0
- package/proto/gateway/web/v1/automation_gateway_grpc_pb.js +485 -0
- package/proto/gateway/web/v1/automation_gateway_pb.js +11618 -0
- package/proto/gateway/web/v1/chain_gateway.ts +3805 -0
- package/proto/gateway/web/v1/chain_gateway_grpc_pb.js +115 -0
- package/proto/gateway/web/v1/chain_gateway_pb.js +7049 -0
- package/proto/gateway/web/v1/market_gateway.ts +492 -0
- package/proto/gateway/web/v1/market_gateway_grpc_pb.js +45 -0
- package/proto/gateway/web/v1/market_gateway_pb.js +1063 -0
- package/proto/gateway/web/v1/oauth_gateway.ts +1163 -0
- package/proto/gateway/web/v1/oauth_gateway_grpc_pb.js +150 -0
- package/proto/gateway/web/v1/oauth_gateway_pb.js +2316 -0
- package/proto/gateway/web/v1/plan_gateway.ts +2463 -0
- package/proto/gateway/web/v1/plan_gateway_grpc_pb.js +152 -0
- package/proto/gateway/web/v1/plan_gateway_pb.js +4840 -0
- package/proto/gateway/web/v1/stream_gateway.ts +2354 -0
- package/proto/gateway/web/v1/stream_gateway_grpc_pb.js +145 -0
- package/proto/gateway/web/v1/stream_gateway_pb.js +4593 -0
- package/proto/gateway/web/v1/trace_gateway.ts +16320 -0
- package/proto/gateway/web/v1/trace_gateway_grpc_pb.js +280 -0
- package/proto/gateway/web/v1/trace_gateway_pb.js +28667 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var proto_gateway_web_v1_chain_gateway_pb = require('../../../../proto/gateway/web/v1/chain_gateway_pb.js');
|
|
6
|
+
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
7
|
+
var proto_gateway_common_v1_types_pb = require('../../../../proto/gateway/common/v1/types_pb.js');
|
|
8
|
+
|
|
9
|
+
function serialize_gateway_web_v1_EvmBlockUpdate(arg) {
|
|
10
|
+
if (!(arg instanceof proto_gateway_web_v1_chain_gateway_pb.EvmBlockUpdate)) {
|
|
11
|
+
throw new Error('Expected argument of type gateway.web.v1.EvmBlockUpdate');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_gateway_web_v1_EvmBlockUpdate(buffer_arg) {
|
|
17
|
+
return proto_gateway_web_v1_chain_gateway_pb.EvmBlockUpdate.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function serialize_gateway_web_v1_GetContractInfoRequest(arg) {
|
|
21
|
+
if (!(arg instanceof proto_gateway_web_v1_chain_gateway_pb.GetContractInfoRequest)) {
|
|
22
|
+
throw new Error('Expected argument of type gateway.web.v1.GetContractInfoRequest');
|
|
23
|
+
}
|
|
24
|
+
return Buffer.from(arg.serializeBinary());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function deserialize_gateway_web_v1_GetContractInfoRequest(buffer_arg) {
|
|
28
|
+
return proto_gateway_web_v1_chain_gateway_pb.GetContractInfoRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function serialize_gateway_web_v1_GetContractInfoResponse(arg) {
|
|
32
|
+
if (!(arg instanceof proto_gateway_web_v1_chain_gateway_pb.GetContractInfoResponse)) {
|
|
33
|
+
throw new Error('Expected argument of type gateway.web.v1.GetContractInfoResponse');
|
|
34
|
+
}
|
|
35
|
+
return Buffer.from(arg.serializeBinary());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function deserialize_gateway_web_v1_GetContractInfoResponse(buffer_arg) {
|
|
39
|
+
return proto_gateway_web_v1_chain_gateway_pb.GetContractInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function serialize_gateway_web_v1_GetEvmActivityRequest(arg) {
|
|
43
|
+
if (!(arg instanceof proto_gateway_web_v1_chain_gateway_pb.GetEvmActivityRequest)) {
|
|
44
|
+
throw new Error('Expected argument of type gateway.web.v1.GetEvmActivityRequest');
|
|
45
|
+
}
|
|
46
|
+
return Buffer.from(arg.serializeBinary());
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function deserialize_gateway_web_v1_GetEvmActivityRequest(buffer_arg) {
|
|
50
|
+
return proto_gateway_web_v1_chain_gateway_pb.GetEvmActivityRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function serialize_gateway_web_v1_GetEvmActivityResponse(arg) {
|
|
54
|
+
if (!(arg instanceof proto_gateway_web_v1_chain_gateway_pb.GetEvmActivityResponse)) {
|
|
55
|
+
throw new Error('Expected argument of type gateway.web.v1.GetEvmActivityResponse');
|
|
56
|
+
}
|
|
57
|
+
return Buffer.from(arg.serializeBinary());
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function deserialize_gateway_web_v1_GetEvmActivityResponse(buffer_arg) {
|
|
61
|
+
return proto_gateway_web_v1_chain_gateway_pb.GetEvmActivityResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function serialize_gateway_web_v1_StreamEvmBlockRequest(arg) {
|
|
65
|
+
if (!(arg instanceof proto_gateway_web_v1_chain_gateway_pb.StreamEvmBlockRequest)) {
|
|
66
|
+
throw new Error('Expected argument of type gateway.web.v1.StreamEvmBlockRequest');
|
|
67
|
+
}
|
|
68
|
+
return Buffer.from(arg.serializeBinary());
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function deserialize_gateway_web_v1_StreamEvmBlockRequest(buffer_arg) {
|
|
72
|
+
return proto_gateway_web_v1_chain_gateway_pb.StreamEvmBlockRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
var ChainGatewayServiceService = exports.ChainGatewayServiceService = {
|
|
77
|
+
// Block number streaming per chain
|
|
78
|
+
streamEvmBlock: {
|
|
79
|
+
path: '/gateway.web.v1.ChainGatewayService/StreamEvmBlock',
|
|
80
|
+
requestStream: false,
|
|
81
|
+
responseStream: true,
|
|
82
|
+
requestType: proto_gateway_web_v1_chain_gateway_pb.StreamEvmBlockRequest,
|
|
83
|
+
responseType: proto_gateway_web_v1_chain_gateway_pb.EvmBlockUpdate,
|
|
84
|
+
requestSerialize: serialize_gateway_web_v1_StreamEvmBlockRequest,
|
|
85
|
+
requestDeserialize: deserialize_gateway_web_v1_StreamEvmBlockRequest,
|
|
86
|
+
responseSerialize: serialize_gateway_web_v1_EvmBlockUpdate,
|
|
87
|
+
responseDeserialize: deserialize_gateway_web_v1_EvmBlockUpdate,
|
|
88
|
+
},
|
|
89
|
+
// Transaction activity cards (high-level semantic activities)
|
|
90
|
+
getEvmActivity: {
|
|
91
|
+
path: '/gateway.web.v1.ChainGatewayService/GetEvmActivity',
|
|
92
|
+
requestStream: false,
|
|
93
|
+
responseStream: false,
|
|
94
|
+
requestType: proto_gateway_web_v1_chain_gateway_pb.GetEvmActivityRequest,
|
|
95
|
+
responseType: proto_gateway_web_v1_chain_gateway_pb.GetEvmActivityResponse,
|
|
96
|
+
requestSerialize: serialize_gateway_web_v1_GetEvmActivityRequest,
|
|
97
|
+
requestDeserialize: deserialize_gateway_web_v1_GetEvmActivityRequest,
|
|
98
|
+
responseSerialize: serialize_gateway_web_v1_GetEvmActivityResponse,
|
|
99
|
+
responseDeserialize: deserialize_gateway_web_v1_GetEvmActivityResponse,
|
|
100
|
+
},
|
|
101
|
+
// Contract source code and metadata
|
|
102
|
+
getContractInfo: {
|
|
103
|
+
path: '/gateway.web.v1.ChainGatewayService/GetContractInfo',
|
|
104
|
+
requestStream: false,
|
|
105
|
+
responseStream: false,
|
|
106
|
+
requestType: proto_gateway_web_v1_chain_gateway_pb.GetContractInfoRequest,
|
|
107
|
+
responseType: proto_gateway_web_v1_chain_gateway_pb.GetContractInfoResponse,
|
|
108
|
+
requestSerialize: serialize_gateway_web_v1_GetContractInfoRequest,
|
|
109
|
+
requestDeserialize: deserialize_gateway_web_v1_GetContractInfoRequest,
|
|
110
|
+
responseSerialize: serialize_gateway_web_v1_GetContractInfoResponse,
|
|
111
|
+
responseDeserialize: deserialize_gateway_web_v1_GetContractInfoResponse,
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
exports.ChainGatewayServiceClient = grpc.makeGenericClientConstructor(ChainGatewayServiceService, 'ChainGatewayService');
|