@bithighlander/device-protocol 6.3.1 → 7.14.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.
Files changed (53) hide show
  1. package/lib/messages-binance_pb.d.ts +428 -0
  2. package/lib/messages-binance_pb.js +3238 -0
  3. package/lib/messages-binance_pb.js-e +3238 -0
  4. package/lib/messages-cosmos_pb.d.ts +466 -0
  5. package/lib/messages-cosmos_pb.js +3689 -0
  6. package/lib/messages-cosmos_pb.js-e +3689 -0
  7. package/lib/messages-eos_pb.js +1962 -1097
  8. package/lib/messages-eos_pb.js-e +8427 -0
  9. package/lib/messages-ethereum_pb.d.ts +530 -0
  10. package/lib/messages-ethereum_pb.js +4421 -0
  11. package/lib/messages-ethereum_pb.js-e +4421 -0
  12. package/lib/messages-mayachain_pb.d.ts +294 -0
  13. package/lib/messages-mayachain_pb.js +2325 -0
  14. package/lib/messages-mayachain_pb.js-e +2325 -0
  15. package/lib/messages-nano_pb.d.ts +0 -7
  16. package/lib/messages-nano_pb.js +366 -238
  17. package/lib/messages-nano_pb.js-e +1692 -0
  18. package/lib/messages-osmosis_pb.d.ts +762 -0
  19. package/lib/messages-osmosis_pb.js +6042 -0
  20. package/lib/messages-osmosis_pb.js-e +6042 -0
  21. package/lib/messages-ripple_pb.d.ts +173 -0
  22. package/lib/messages-ripple_pb.js +1377 -0
  23. package/lib/messages-ripple_pb.js-e +1377 -0
  24. package/lib/messages-solana_pb.d.ts +195 -0
  25. package/lib/messages-solana_pb.js +1578 -0
  26. package/lib/messages-solana_pb.js-e +1578 -0
  27. package/lib/messages-tendermint_pb.d.ts +526 -0
  28. package/lib/messages-tendermint_pb.js +4169 -0
  29. package/lib/messages-tendermint_pb.js-e +4169 -0
  30. package/lib/messages-thorchain_pb.d.ts +288 -0
  31. package/lib/messages-thorchain_pb.js +2277 -0
  32. package/lib/messages-thorchain_pb.js-e +2277 -0
  33. package/lib/messages-ton_pb.d.ts +175 -0
  34. package/lib/messages-ton_pb.js +1396 -0
  35. package/lib/messages-ton_pb.js-e +1396 -0
  36. package/lib/messages-tron_pb.d.ts +161 -0
  37. package/lib/messages-tron_pb.js +1300 -0
  38. package/lib/messages-tron_pb.js-e +1300 -0
  39. package/lib/messages-zcash_pb.d.ts +367 -0
  40. package/lib/messages-zcash_pb.js +3088 -0
  41. package/lib/messages-zcash_pb.js-e +3088 -0
  42. package/lib/messages_pb.d.ts +182 -230
  43. package/lib/messages_pb.js +6718 -5570
  44. package/lib/messages_pb.js-e +18219 -0
  45. package/lib/proto.json +2932 -731
  46. package/lib/types_pb.d.ts +11 -61
  47. package/lib/types_pb.js +1394 -1104
  48. package/lib/types_pb.js-e +6185 -0
  49. package/package.json +7 -5
  50. package/lib/.keep +0 -0
  51. package/lib/exchange_pb.d.ts +0 -249
  52. package/lib/exchange_pb.js +0 -1825
  53. package/yarn.lock +0 -122
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bithighlander/device-protocol",
3
- "version": "6.3.1",
3
+ "version": "7.14.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,10 +8,11 @@
8
8
  "scripts": {
9
9
  "clean": "rm -rf ./lib/*.js ./lib/*.ts",
10
10
  "build": "npm run build:js && npm run build:json && npm run build:postprocess",
11
- "build:js": "protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --js_out=import_style=commonjs,binary:./lib --ts_out=./lib exchange.proto types.proto messages.proto messages-eos.proto messages-nano.proto",
12
- "build:json": "pbjs --keep-case -t json ./types.proto ./messages.proto ./messages-eos.proto ./messages-nano.proto ./exchange.proto > ./lib/proto.json",
13
- "build:postprocess": "find ./lib -name \"*.js\" -exec sed -i '' -e \"s/var global = Function(\\'return this\\')();/var global = (function(){ return this }).call(null);/g\" {} \\;",
14
- "test": "echo \"Error: no test specified\" && exit 1"
11
+ "build:js": "./node_modules/.bin/grpc_tools_node_protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --js_out=import_style=commonjs,binary:./lib --ts_out=./lib types.proto messages.proto messages-ethereum.proto messages-eos.proto messages-nano.proto messages-cosmos.proto messages-binance.proto messages-ripple.proto messages-tendermint.proto messages-thorchain.proto messages-osmosis.proto messages-mayachain.proto messages-zcash.proto messages-solana.proto messages-tron.proto messages-ton.proto",
12
+ "build:json": "node ./node_modules/protobufjs/cli/bin/pbjs --keep-case -t json -p . ./types.proto ./messages.proto ./messages-ethereum.proto ./messages-eos.proto ./messages-nano.proto ./messages-cosmos.proto ./messages-binance.proto ./messages-ripple.proto ./messages-tendermint.proto ./messages-thorchain.proto ./messages-osmosis.proto ./messages-mayachain.proto ./messages-zcash.proto ./messages-solana.proto ./messages-tron.proto ./messages-ton.proto > ./lib/proto.json",
13
+ "build:postprocess": "find ./lib -name '*.js' -exec sed -i\"\" -e \"s/var global = Function('return this')();/var global = (function(){ return this }).call(null);/g\" {} +",
14
+ "prepublishOnly": "npm run build",
15
+ "test": "node test.js"
15
16
  },
16
17
  "repository": {
17
18
  "type": "git",
@@ -20,6 +21,7 @@
20
21
  "author": "",
21
22
  "license": "ISC",
22
23
  "devDependencies": {
24
+ "grpc-tools": "^1.13.1",
23
25
  "protobufjs": "^6.8.8",
24
26
  "ts-protoc-gen": "^0.10.0"
25
27
  },
package/lib/.keep DELETED
File without changes
@@ -1,249 +0,0 @@
1
- // package:
2
- // file: exchange.proto
3
-
4
- import * as jspb from "google-protobuf";
5
-
6
- export class ExchangeAddress extends jspb.Message {
7
- hasCoinType(): boolean;
8
- clearCoinType(): void;
9
- getCoinType(): string | undefined;
10
- setCoinType(value: string): void;
11
-
12
- hasAddress(): boolean;
13
- clearAddress(): void;
14
- getAddress(): string | undefined;
15
- setAddress(value: string): void;
16
-
17
- hasDestTag(): boolean;
18
- clearDestTag(): void;
19
- getDestTag(): string | undefined;
20
- setDestTag(value: string): void;
21
-
22
- hasRsAddress(): boolean;
23
- clearRsAddress(): void;
24
- getRsAddress(): string | undefined;
25
- setRsAddress(value: string): void;
26
-
27
- serializeBinary(): Uint8Array;
28
- toObject(includeInstance?: boolean): ExchangeAddress.AsObject;
29
- static toObject(includeInstance: boolean, msg: ExchangeAddress): ExchangeAddress.AsObject;
30
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
31
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
32
- static serializeBinaryToWriter(message: ExchangeAddress, writer: jspb.BinaryWriter): void;
33
- static deserializeBinary(bytes: Uint8Array): ExchangeAddress;
34
- static deserializeBinaryFromReader(message: ExchangeAddress, reader: jspb.BinaryReader): ExchangeAddress;
35
- }
36
-
37
- export namespace ExchangeAddress {
38
- export type AsObject = {
39
- coinType?: string,
40
- address?: string,
41
- destTag?: string,
42
- rsAddress?: string,
43
- }
44
- }
45
-
46
- export class ExchangeResponseV2 extends jspb.Message {
47
- hasDepositAddress(): boolean;
48
- clearDepositAddress(): void;
49
- getDepositAddress(): ExchangeAddress | undefined;
50
- setDepositAddress(value?: ExchangeAddress): void;
51
-
52
- hasDepositAmount(): boolean;
53
- clearDepositAmount(): void;
54
- getDepositAmount(): Uint8Array | string;
55
- getDepositAmount_asU8(): Uint8Array;
56
- getDepositAmount_asB64(): string;
57
- setDepositAmount(value: Uint8Array | string): void;
58
-
59
- hasExpiration(): boolean;
60
- clearExpiration(): void;
61
- getExpiration(): number | undefined;
62
- setExpiration(value: number): void;
63
-
64
- hasQuotedRate(): boolean;
65
- clearQuotedRate(): void;
66
- getQuotedRate(): Uint8Array | string;
67
- getQuotedRate_asU8(): Uint8Array;
68
- getQuotedRate_asB64(): string;
69
- setQuotedRate(value: Uint8Array | string): void;
70
-
71
- hasWithdrawalAddress(): boolean;
72
- clearWithdrawalAddress(): void;
73
- getWithdrawalAddress(): ExchangeAddress | undefined;
74
- setWithdrawalAddress(value?: ExchangeAddress): void;
75
-
76
- hasWithdrawalAmount(): boolean;
77
- clearWithdrawalAmount(): void;
78
- getWithdrawalAmount(): Uint8Array | string;
79
- getWithdrawalAmount_asU8(): Uint8Array;
80
- getWithdrawalAmount_asB64(): string;
81
- setWithdrawalAmount(value: Uint8Array | string): void;
82
-
83
- hasReturnAddress(): boolean;
84
- clearReturnAddress(): void;
85
- getReturnAddress(): ExchangeAddress | undefined;
86
- setReturnAddress(value?: ExchangeAddress): void;
87
-
88
- hasApiKey(): boolean;
89
- clearApiKey(): void;
90
- getApiKey(): Uint8Array | string;
91
- getApiKey_asU8(): Uint8Array;
92
- getApiKey_asB64(): string;
93
- setApiKey(value: Uint8Array | string): void;
94
-
95
- hasMinerFee(): boolean;
96
- clearMinerFee(): void;
97
- getMinerFee(): Uint8Array | string;
98
- getMinerFee_asU8(): Uint8Array;
99
- getMinerFee_asB64(): string;
100
- setMinerFee(value: Uint8Array | string): void;
101
-
102
- hasOrderId(): boolean;
103
- clearOrderId(): void;
104
- getOrderId(): Uint8Array | string;
105
- getOrderId_asU8(): Uint8Array;
106
- getOrderId_asB64(): string;
107
- setOrderId(value: Uint8Array | string): void;
108
-
109
- serializeBinary(): Uint8Array;
110
- toObject(includeInstance?: boolean): ExchangeResponseV2.AsObject;
111
- static toObject(includeInstance: boolean, msg: ExchangeResponseV2): ExchangeResponseV2.AsObject;
112
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
113
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
114
- static serializeBinaryToWriter(message: ExchangeResponseV2, writer: jspb.BinaryWriter): void;
115
- static deserializeBinary(bytes: Uint8Array): ExchangeResponseV2;
116
- static deserializeBinaryFromReader(message: ExchangeResponseV2, reader: jspb.BinaryReader): ExchangeResponseV2;
117
- }
118
-
119
- export namespace ExchangeResponseV2 {
120
- export type AsObject = {
121
- depositAddress?: ExchangeAddress.AsObject,
122
- depositAmount: Uint8Array | string,
123
- expiration?: number,
124
- quotedRate: Uint8Array | string,
125
- withdrawalAddress?: ExchangeAddress.AsObject,
126
- withdrawalAmount: Uint8Array | string,
127
- returnAddress?: ExchangeAddress.AsObject,
128
- apiKey: Uint8Array | string,
129
- minerFee: Uint8Array | string,
130
- orderId: Uint8Array | string,
131
- }
132
- }
133
-
134
- export class SignedExchangeResponse extends jspb.Message {
135
- hasResponse(): boolean;
136
- clearResponse(): void;
137
- getResponse(): ExchangeResponse | undefined;
138
- setResponse(value?: ExchangeResponse): void;
139
-
140
- hasSignature(): boolean;
141
- clearSignature(): void;
142
- getSignature(): Uint8Array | string;
143
- getSignature_asU8(): Uint8Array;
144
- getSignature_asB64(): string;
145
- setSignature(value: Uint8Array | string): void;
146
-
147
- hasResponsev2(): boolean;
148
- clearResponsev2(): void;
149
- getResponsev2(): ExchangeResponseV2 | undefined;
150
- setResponsev2(value?: ExchangeResponseV2): void;
151
-
152
- serializeBinary(): Uint8Array;
153
- toObject(includeInstance?: boolean): SignedExchangeResponse.AsObject;
154
- static toObject(includeInstance: boolean, msg: SignedExchangeResponse): SignedExchangeResponse.AsObject;
155
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
156
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
157
- static serializeBinaryToWriter(message: SignedExchangeResponse, writer: jspb.BinaryWriter): void;
158
- static deserializeBinary(bytes: Uint8Array): SignedExchangeResponse;
159
- static deserializeBinaryFromReader(message: SignedExchangeResponse, reader: jspb.BinaryReader): SignedExchangeResponse;
160
- }
161
-
162
- export namespace SignedExchangeResponse {
163
- export type AsObject = {
164
- response?: ExchangeResponse.AsObject,
165
- signature: Uint8Array | string,
166
- responsev2?: ExchangeResponseV2.AsObject,
167
- }
168
- }
169
-
170
- export class ExchangeResponse extends jspb.Message {
171
- hasDepositAddress(): boolean;
172
- clearDepositAddress(): void;
173
- getDepositAddress(): ExchangeAddress | undefined;
174
- setDepositAddress(value?: ExchangeAddress): void;
175
-
176
- hasDepositAmount(): boolean;
177
- clearDepositAmount(): void;
178
- getDepositAmount(): number | undefined;
179
- setDepositAmount(value: number): void;
180
-
181
- hasExpiration(): boolean;
182
- clearExpiration(): void;
183
- getExpiration(): number | undefined;
184
- setExpiration(value: number): void;
185
-
186
- hasQuotedRate(): boolean;
187
- clearQuotedRate(): void;
188
- getQuotedRate(): number | undefined;
189
- setQuotedRate(value: number): void;
190
-
191
- hasWithdrawalAddress(): boolean;
192
- clearWithdrawalAddress(): void;
193
- getWithdrawalAddress(): ExchangeAddress | undefined;
194
- setWithdrawalAddress(value?: ExchangeAddress): void;
195
-
196
- hasWithdrawalAmount(): boolean;
197
- clearWithdrawalAmount(): void;
198
- getWithdrawalAmount(): number | undefined;
199
- setWithdrawalAmount(value: number): void;
200
-
201
- hasReturnAddress(): boolean;
202
- clearReturnAddress(): void;
203
- getReturnAddress(): ExchangeAddress | undefined;
204
- setReturnAddress(value?: ExchangeAddress): void;
205
-
206
- hasApiKey(): boolean;
207
- clearApiKey(): void;
208
- getApiKey(): Uint8Array | string;
209
- getApiKey_asU8(): Uint8Array;
210
- getApiKey_asB64(): string;
211
- setApiKey(value: Uint8Array | string): void;
212
-
213
- hasMinerFee(): boolean;
214
- clearMinerFee(): void;
215
- getMinerFee(): number | undefined;
216
- setMinerFee(value: number): void;
217
-
218
- hasOrderId(): boolean;
219
- clearOrderId(): void;
220
- getOrderId(): Uint8Array | string;
221
- getOrderId_asU8(): Uint8Array;
222
- getOrderId_asB64(): string;
223
- setOrderId(value: Uint8Array | string): void;
224
-
225
- serializeBinary(): Uint8Array;
226
- toObject(includeInstance?: boolean): ExchangeResponse.AsObject;
227
- static toObject(includeInstance: boolean, msg: ExchangeResponse): ExchangeResponse.AsObject;
228
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
229
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
230
- static serializeBinaryToWriter(message: ExchangeResponse, writer: jspb.BinaryWriter): void;
231
- static deserializeBinary(bytes: Uint8Array): ExchangeResponse;
232
- static deserializeBinaryFromReader(message: ExchangeResponse, reader: jspb.BinaryReader): ExchangeResponse;
233
- }
234
-
235
- export namespace ExchangeResponse {
236
- export type AsObject = {
237
- depositAddress?: ExchangeAddress.AsObject,
238
- depositAmount?: number,
239
- expiration?: number,
240
- quotedRate?: number,
241
- withdrawalAddress?: ExchangeAddress.AsObject,
242
- withdrawalAmount?: number,
243
- returnAddress?: ExchangeAddress.AsObject,
244
- apiKey: Uint8Array | string,
245
- minerFee?: number,
246
- orderId: Uint8Array | string,
247
- }
248
- }
249
-