dash-platform-sdk 1.3.0-dev.3 → 1.3.0-dev.5

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 (139) hide show
  1. package/bundle.min.js +21 -2
  2. package/package.json +30 -31
  3. package/proto/generated/google/protobuf/wrappers.d.ts +260 -29
  4. package/proto/generated/platform.client.d.ts +251 -0
  5. package/proto/generated/platform.d.ts +3682 -1939
  6. package/src/DashPlatformSDK.d.ts +5 -4
  7. package/src/contestedResources/createStateTransition.d.ts +1 -2
  8. package/src/grpcConnectionPool.d.ts +30 -8
  9. package/src/keyPair/deriveChild.d.ts +2 -2
  10. package/src/keyPair/derivePath.d.ts +2 -2
  11. package/src/keyPair/index.d.ts +39 -114
  12. package/src/keyPair/mnemonicToSeed.d.ts +1 -1
  13. package/src/names/searchByIdentity.d.ts +1 -1
  14. package/src/node/index.d.ts +3 -3
  15. package/src/node/totalCredits.d.ts +2 -1
  16. package/src/tokens/getTokenDirectPurchasePrices.d.ts +3 -0
  17. package/src/tokens/index.d.ts +9 -1
  18. package/src/types.d.ts +10 -12
  19. package/src/utils/bytesToTypedArray.d.ts +1 -0
  20. package/src/utils/calculateMsgHash.d.ts +1 -1
  21. package/src/utils/calculateSignHash.d.ts +1 -1
  22. package/src/utils/calculateStateIdHash.d.ts +1 -1
  23. package/src/utils/createVoterIdentityId.d.ts +1 -1
  24. package/src/utils/getEvonodeList.d.ts +2 -2
  25. package/src/utils/sha256.d.ts +1 -1
  26. package/src/utils/signHash.d.ts +1 -1
  27. package/src/utils/signRequestId.d.ts +1 -1
  28. package/src/utils/verifyTenderdashProof.d.ts +1 -1
  29. package/src/voting/createStateTransition.d.ts +1 -2
  30. package/src/voting/index.d.ts +3 -4
  31. package/bundle.min.js.LICENSE.txt +0 -1
  32. package/index.js +0 -5
  33. package/proto/generated/google/protobuf/wrappers.js +0 -398
  34. package/proto/generated/platform.js +0 -18524
  35. package/src/DashPlatformSDK.js +0 -91
  36. package/src/constants.js +0 -13
  37. package/src/contestedResources/createStateTransition.js +0 -9
  38. package/src/contestedResources/getContestedResourceVoteState.js +0 -123
  39. package/src/contestedResources/index.js +0 -76
  40. package/src/dataContracts/create.js +0 -14
  41. package/src/dataContracts/createStateTransition.js +0 -23
  42. package/src/dataContracts/getDataContractByIdentifier.js +0 -87
  43. package/src/dataContracts/index.js +0 -103
  44. package/src/documents/create.js +0 -7
  45. package/src/documents/createStateTransition.js +0 -64
  46. package/src/documents/index.js +0 -130
  47. package/src/documents/query.js +0 -94
  48. package/src/grpcConnectionPool.js +0 -137
  49. package/src/identities/createStateTransition.js +0 -46
  50. package/src/identities/getIdentityBalance.js +0 -83
  51. package/src/identities/getIdentityByIdentifier.js +0 -83
  52. package/src/identities/getIdentityByNonUniquePublicKeyHash.js +0 -85
  53. package/src/identities/getIdentityByPublicKeyHash.js +0 -83
  54. package/src/identities/getIdentityContractNonce.js +0 -86
  55. package/src/identities/getIdentityNonce.js +0 -84
  56. package/src/identities/getIdentityPublicKeys.js +0 -85
  57. package/src/identities/index.js +0 -237
  58. package/src/keyPair/deriveChild.js +0 -50
  59. package/src/keyPair/derivePath.js +0 -50
  60. package/src/keyPair/index.js +0 -323
  61. package/src/keyPair/keyToPublicKey.d.ts +0 -2
  62. package/src/keyPair/keyToPublicKey.js +0 -47
  63. package/src/keyPair/keyToWalletId.d.ts +0 -2
  64. package/src/keyPair/keyToWalletId.js +0 -50
  65. package/src/keyPair/keyToXPrivateKey.d.ts +0 -3
  66. package/src/keyPair/keyToXPrivateKey.js +0 -50
  67. package/src/keyPair/keyToXPublicKey.d.ts +0 -3
  68. package/src/keyPair/keyToXPublicKey.js +0 -50
  69. package/src/keyPair/mnemonicToIdentityKey.d.ts +0 -3
  70. package/src/keyPair/mnemonicToIdentityKey.js +0 -57
  71. package/src/keyPair/mnemonicToSeed.js +0 -47
  72. package/src/keyPair/mnemonicToWallet.d.ts +0 -2
  73. package/src/keyPair/mnemonicToWallet.js +0 -55
  74. package/src/keyPair/privateKeyToWif.d.ts +0 -2
  75. package/src/keyPair/privateKeyToWif.js +0 -50
  76. package/src/keyPair/publicKeyToAddress.d.ts +0 -2
  77. package/src/keyPair/publicKeyToAddress.js +0 -50
  78. package/src/keyPair/seedToWallet.d.ts +0 -2
  79. package/src/keyPair/seedToWallet.js +0 -50
  80. package/src/keyPair/walletToIdentityKey.d.ts +0 -3
  81. package/src/keyPair/walletToIdentityKey.js +0 -56
  82. package/src/keyPair/xkeyToHDXKey.d.ts +0 -2
  83. package/src/keyPair/xkeyToHDXKey.js +0 -50
  84. package/src/names/index.js +0 -170
  85. package/src/names/registerName.js +0 -131
  86. package/src/names/searchByIdentity.js +0 -51
  87. package/src/names/searchByName.js +0 -64
  88. package/src/names/testNameContested.js +0 -6
  89. package/src/names/validateName.js +0 -14
  90. package/src/node/epochs.js +0 -88
  91. package/src/node/index.js +0 -102
  92. package/src/node/status.js +0 -85
  93. package/src/node/totalCredits.js +0 -76
  94. package/src/signer/AbstractSigner.js +0 -2
  95. package/src/signer/PrivateKeySigner.d.ts +0 -0
  96. package/src/signer/PrivateKeySigner.js +0 -64
  97. package/src/signer/setSigner.js +0 -8
  98. package/src/stateTransitions/broadcast.js +0 -60
  99. package/src/stateTransitions/index.js +0 -87
  100. package/src/stateTransitions/waitForStateTransitionResult.js +0 -60
  101. package/src/tokens/createStateTransition.js +0 -79
  102. package/src/tokens/getIdentitiesTokenBalances.js +0 -86
  103. package/src/tokens/getIdentityTokensBalances.js +0 -86
  104. package/src/tokens/getTokenContractInfo.js +0 -86
  105. package/src/tokens/getTokenTotalSupply.js +0 -84
  106. package/src/tokens/index.js +0 -175
  107. package/src/types.js +0 -25
  108. package/src/utils/base58ToBytes.js +0 -7
  109. package/src/utils/bytesToHex.js +0 -6
  110. package/src/utils/calculateMsgHash.js +0 -34
  111. package/src/utils/calculateSignHash.js +0 -11
  112. package/src/utils/calculateStateIdHash.js +0 -12
  113. package/src/utils/convertToHomographSafeChars.js +0 -14
  114. package/src/utils/createVoterIdentityId.js +0 -12
  115. package/src/utils/getEvonodeList.js +0 -63
  116. package/src/utils/getQuorumPublicKey.js +0 -69
  117. package/src/utils/getRandomArrayItem.js +0 -6
  118. package/src/utils/getRandomBytes.js +0 -7
  119. package/src/utils/hexToBytes.js +0 -7
  120. package/src/utils/index.js +0 -68
  121. package/src/utils/indexBytesToString.js +0 -7
  122. package/src/utils/sha256.js +0 -13
  123. package/src/utils/signHash.js +0 -25
  124. package/src/utils/signRequestId.js +0 -22
  125. package/src/utils/sleep.js +0 -51
  126. package/src/utils/stringToIndexValueBytes.js +0 -13
  127. package/src/utils/verifyTenderdashProof.js +0 -30
  128. package/src/voting/createStateTransition.js +0 -9
  129. package/src/voting/createVote.js +0 -8
  130. package/src/voting/index.js +0 -62
  131. package/test/unit/ContestedResources.spec.js +0 -338
  132. package/test/unit/DataContract.spec.js +0 -142
  133. package/test/unit/Document.spec.js +0 -199
  134. package/test/unit/Identity.spec.js +0 -357
  135. package/test/unit/KeyPair.spec.js +0 -149
  136. package/test/unit/Names.spec.js +0 -96
  137. package/test/unit/Node.spec.js +0 -129
  138. package/test/unit/SDK.spec.js +0 -12
  139. package/test/unit/Tokens.spec.js +0 -271
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dash-platform-sdk",
3
- "version": "1.3.0-dev.3",
3
+ "version": "1.3.0-dev.5",
4
4
  "main": "index.js",
5
5
  "description": "Lightweight SDK for accessing Dash Platform blockchain",
6
6
  "ts-standard": {
@@ -8,55 +8,54 @@
8
8
  "proto"
9
9
  ]
10
10
  },
11
+ "browserslist": [
12
+ "defaults"
13
+ ],
14
+ "engines": {
15
+ "node": ">=20.19.0 <=24"
16
+ },
17
+ "type": "module",
11
18
  "devDependencies": {
12
19
  "@babel/cli": "^7.28.0",
13
20
  "@babel/core": "^7.28.0",
14
21
  "@babel/preset-env": "^7.28.0",
15
22
  "@babel/preset-typescript": "^7.27.1",
16
- "@types/dashhd": "owl352/types-DashHD.js",
17
- "@types/dashphrase": "owl352/types-DashPhrase.js",
23
+ "@protobuf-ts/plugin": "^2.11.1",
24
+ "@rollup/plugin-commonjs": "^28.0.6",
25
+ "@rollup/plugin-node-resolve": "^16.0.1",
26
+ "@rollup/plugin-terser": "^0.4.4",
27
+ "@rollup/plugin-typescript": "^12.1.4",
18
28
  "@types/jest": "^29.5.14",
19
29
  "babel-jest": "^29.7.0",
20
- "dets": "^0.16.8",
21
- "grpc-tools": "^1.13.0",
22
- "grpc_tools_node_protoc_ts": "^5.3.3",
23
- "isomorphic-ws": "^5.0.0",
24
30
  "jest": "^29.7.0",
25
- "jsdoc": "^4.0.4",
26
- "nice-grpc-web": "^3.3.6",
27
- "process": "^0.11.10",
28
- "stream-browserify": "^3.0.0",
29
- "terser-webpack-plugin": "^5.3.14",
30
- "ts-loader": "^9.5.2",
31
- "ts-node": "^10.9.2",
32
- "ts-proto": "^2.6.1",
31
+ "jest-environment-jsdom": "^30.1.2",
32
+ "protoc": "^32.1.0",
33
+ "rollup": "^4.52.4",
34
+ "ts-proto": "^2.7.7",
33
35
  "ts-standard": "^12.0.2",
36
+ "tsx": "^4.20.5",
34
37
  "typedoc": "^0.28.7",
35
- "typescript": "^5.8.2",
36
- "webpack": "^5.98.0",
37
- "webpack-cli": "^6.0.1",
38
- "ws": "^8.18.1"
38
+ "typescript": "^5.8.2"
39
39
  },
40
40
  "scripts": {
41
- "build": "webpack && yarn build:typescript",
42
- "build:grpc": "yarn proto:generate",
41
+ "build": "rollup -c rollup.config.js",
42
+ "build:grpc": "protoc -I=./proto --ts_opt generate_dependencies --ts_out=proto/generated --ts_opt=long_type_string ./proto/platform.proto",
43
43
  "build:typescript": "tsc",
44
44
  "lint": "ts-standard --fix",
45
45
  "test": "jest",
46
- "docs": "typedoc",
47
- "proto:generate": "grpc_tools_node_protoc --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./proto/generated --ts_proto_opt=useAsyncIterable=false --ts_proto_opt=forceLong=string,env=browser,outputServices=grpc-web,outputServices=generic-definitions,outputJsonMethods=false,useExactTypes=false --proto_path=./proto ./proto/platform.proto"
46
+ "docs": "typedoc"
47
+ },
48
+ "peerDependencies": {
49
+ "pshenmic-dpp": "1.1.0-dev.6"
48
50
  },
49
51
  "dependencies": {
50
52
  "@bufbuild/protobuf": "^2.6.0",
51
- "@dashincubator/secp256k1": "^1.7.1-5",
53
+ "@protobuf-ts/grpcweb-transport": "^2.11.1",
52
54
  "@scure/base": "^1.2.4",
55
+ "@scure/bip32": "^2.0.0",
56
+ "@scure/bip39": "^2.0.0",
57
+ "@scure/btc-signer": "^2.0.1",
53
58
  "cbor-x": "^1.6.0",
54
- "dashhd": "^3.3.3",
55
- "dashkeys": "^1.1.5",
56
- "dashphrase": "^1.4.0",
57
- "grpc-web": "^1.5.0",
58
- "hash.js": "^1.1.7",
59
- "nice-grpc-web": "^3.3.6",
60
- "pshenmic-dpp": "1.0.25"
59
+ "pshenmic-dpp": "1.1.0-dev.6"
61
60
  }
62
61
  }
@@ -1,103 +1,334 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "google.protobuf";
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import type { JsonValue } from "@protobuf-ts/runtime";
7
+ import type { JsonReadOptions } from "@protobuf-ts/runtime";
8
+ import type { JsonWriteOptions } from "@protobuf-ts/runtime";
9
+ import { MessageType } from "@protobuf-ts/runtime";
3
10
  /**
4
11
  * Wrapper message for `double`.
5
12
  *
6
13
  * The JSON representation for `DoubleValue` is JSON number.
14
+ *
15
+ * Not recommended for use in new APIs, but still useful for legacy APIs and
16
+ * has no plan to be removed.
17
+ *
18
+ * @generated from protobuf message google.protobuf.DoubleValue
7
19
  */
8
20
  export interface DoubleValue {
9
- /** The double value. */
21
+ /**
22
+ * The double value.
23
+ *
24
+ * @generated from protobuf field: double value = 1
25
+ */
10
26
  value: number;
11
27
  }
12
28
  /**
13
29
  * Wrapper message for `float`.
14
30
  *
15
31
  * The JSON representation for `FloatValue` is JSON number.
32
+ *
33
+ * Not recommended for use in new APIs, but still useful for legacy APIs and
34
+ * has no plan to be removed.
35
+ *
36
+ * @generated from protobuf message google.protobuf.FloatValue
16
37
  */
17
38
  export interface FloatValue {
18
- /** The float value. */
39
+ /**
40
+ * The float value.
41
+ *
42
+ * @generated from protobuf field: float value = 1
43
+ */
19
44
  value: number;
20
45
  }
21
46
  /**
22
47
  * Wrapper message for `int64`.
23
48
  *
24
49
  * The JSON representation for `Int64Value` is JSON string.
50
+ *
51
+ * Not recommended for use in new APIs, but still useful for legacy APIs and
52
+ * has no plan to be removed.
53
+ *
54
+ * @generated from protobuf message google.protobuf.Int64Value
25
55
  */
26
56
  export interface Int64Value {
27
- /** The int64 value. */
57
+ /**
58
+ * The int64 value.
59
+ *
60
+ * @generated from protobuf field: int64 value = 1
61
+ */
28
62
  value: string;
29
63
  }
30
64
  /**
31
65
  * Wrapper message for `uint64`.
32
66
  *
33
67
  * The JSON representation for `UInt64Value` is JSON string.
68
+ *
69
+ * Not recommended for use in new APIs, but still useful for legacy APIs and
70
+ * has no plan to be removed.
71
+ *
72
+ * @generated from protobuf message google.protobuf.UInt64Value
34
73
  */
35
74
  export interface UInt64Value {
36
- /** The uint64 value. */
75
+ /**
76
+ * The uint64 value.
77
+ *
78
+ * @generated from protobuf field: uint64 value = 1
79
+ */
37
80
  value: string;
38
81
  }
39
82
  /**
40
83
  * Wrapper message for `int32`.
41
84
  *
42
85
  * The JSON representation for `Int32Value` is JSON number.
86
+ *
87
+ * Not recommended for use in new APIs, but still useful for legacy APIs and
88
+ * has no plan to be removed.
89
+ *
90
+ * @generated from protobuf message google.protobuf.Int32Value
43
91
  */
44
92
  export interface Int32Value {
45
- /** The int32 value. */
93
+ /**
94
+ * The int32 value.
95
+ *
96
+ * @generated from protobuf field: int32 value = 1
97
+ */
46
98
  value: number;
47
99
  }
48
100
  /**
49
101
  * Wrapper message for `uint32`.
50
102
  *
51
103
  * The JSON representation for `UInt32Value` is JSON number.
104
+ *
105
+ * Not recommended for use in new APIs, but still useful for legacy APIs and
106
+ * has no plan to be removed.
107
+ *
108
+ * @generated from protobuf message google.protobuf.UInt32Value
52
109
  */
53
110
  export interface UInt32Value {
54
- /** The uint32 value. */
111
+ /**
112
+ * The uint32 value.
113
+ *
114
+ * @generated from protobuf field: uint32 value = 1
115
+ */
55
116
  value: number;
56
117
  }
57
118
  /**
58
119
  * Wrapper message for `bool`.
59
120
  *
60
121
  * The JSON representation for `BoolValue` is JSON `true` and `false`.
122
+ *
123
+ * Not recommended for use in new APIs, but still useful for legacy APIs and
124
+ * has no plan to be removed.
125
+ *
126
+ * @generated from protobuf message google.protobuf.BoolValue
61
127
  */
62
128
  export interface BoolValue {
63
- /** The bool value. */
129
+ /**
130
+ * The bool value.
131
+ *
132
+ * @generated from protobuf field: bool value = 1
133
+ */
64
134
  value: boolean;
65
135
  }
66
136
  /**
67
137
  * Wrapper message for `string`.
68
138
  *
69
139
  * The JSON representation for `StringValue` is JSON string.
140
+ *
141
+ * Not recommended for use in new APIs, but still useful for legacy APIs and
142
+ * has no plan to be removed.
143
+ *
144
+ * @generated from protobuf message google.protobuf.StringValue
70
145
  */
71
146
  export interface StringValue {
72
- /** The string value. */
147
+ /**
148
+ * The string value.
149
+ *
150
+ * @generated from protobuf field: string value = 1
151
+ */
73
152
  value: string;
74
153
  }
75
154
  /**
76
155
  * Wrapper message for `bytes`.
77
156
  *
78
157
  * The JSON representation for `BytesValue` is JSON string.
158
+ *
159
+ * Not recommended for use in new APIs, but still useful for legacy APIs and
160
+ * has no plan to be removed.
161
+ *
162
+ * @generated from protobuf message google.protobuf.BytesValue
79
163
  */
80
164
  export interface BytesValue {
81
- /** The bytes value. */
165
+ /**
166
+ * The bytes value.
167
+ *
168
+ * @generated from protobuf field: bytes value = 1
169
+ */
82
170
  value: Uint8Array;
83
171
  }
84
- export declare const DoubleValue: MessageFns<DoubleValue>;
85
- export declare const FloatValue: MessageFns<FloatValue>;
86
- export declare const Int64Value: MessageFns<Int64Value>;
87
- export declare const UInt64Value: MessageFns<UInt64Value>;
88
- export declare const Int32Value: MessageFns<Int32Value>;
89
- export declare const UInt32Value: MessageFns<UInt32Value>;
90
- export declare const BoolValue: MessageFns<BoolValue>;
91
- export declare const StringValue: MessageFns<StringValue>;
92
- export declare const BytesValue: MessageFns<BytesValue>;
93
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
94
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
95
- [K in keyof T]?: DeepPartial<T[K]>;
96
- } : Partial<T>;
97
- export interface MessageFns<T> {
98
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
99
- decode(input: BinaryReader | Uint8Array, length?: number): T;
100
- create(base?: DeepPartial<T>): T;
101
- fromPartial(object: DeepPartial<T>): T;
172
+ declare class DoubleValue$Type extends MessageType<DoubleValue> {
173
+ constructor();
174
+ /**
175
+ * Encode `DoubleValue` to JSON number.
176
+ */
177
+ internalJsonWrite(message: DoubleValue, options: JsonWriteOptions): JsonValue;
178
+ /**
179
+ * Decode `DoubleValue` from JSON number.
180
+ */
181
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: DoubleValue): DoubleValue;
182
+ create(value?: PartialMessage<DoubleValue>): DoubleValue;
183
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DoubleValue): DoubleValue;
184
+ internalBinaryWrite(message: DoubleValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
185
+ }
186
+ /**
187
+ * @generated MessageType for protobuf message google.protobuf.DoubleValue
188
+ */
189
+ export declare const DoubleValue: DoubleValue$Type;
190
+ declare class FloatValue$Type extends MessageType<FloatValue> {
191
+ constructor();
192
+ /**
193
+ * Encode `FloatValue` to JSON number.
194
+ */
195
+ internalJsonWrite(message: FloatValue, options: JsonWriteOptions): JsonValue;
196
+ /**
197
+ * Decode `FloatValue` from JSON number.
198
+ */
199
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FloatValue): FloatValue;
200
+ create(value?: PartialMessage<FloatValue>): FloatValue;
201
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FloatValue): FloatValue;
202
+ internalBinaryWrite(message: FloatValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
203
+ }
204
+ /**
205
+ * @generated MessageType for protobuf message google.protobuf.FloatValue
206
+ */
207
+ export declare const FloatValue: FloatValue$Type;
208
+ declare class Int64Value$Type extends MessageType<Int64Value> {
209
+ constructor();
210
+ /**
211
+ * Encode `Int64Value` to JSON string.
212
+ */
213
+ internalJsonWrite(message: Int64Value, options: JsonWriteOptions): JsonValue;
214
+ /**
215
+ * Decode `Int64Value` from JSON string.
216
+ */
217
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int64Value): Int64Value;
218
+ create(value?: PartialMessage<Int64Value>): Int64Value;
219
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int64Value): Int64Value;
220
+ internalBinaryWrite(message: Int64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
221
+ }
222
+ /**
223
+ * @generated MessageType for protobuf message google.protobuf.Int64Value
224
+ */
225
+ export declare const Int64Value: Int64Value$Type;
226
+ declare class UInt64Value$Type extends MessageType<UInt64Value> {
227
+ constructor();
228
+ /**
229
+ * Encode `UInt64Value` to JSON string.
230
+ */
231
+ internalJsonWrite(message: UInt64Value, options: JsonWriteOptions): JsonValue;
232
+ /**
233
+ * Decode `UInt64Value` from JSON string.
234
+ */
235
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt64Value): UInt64Value;
236
+ create(value?: PartialMessage<UInt64Value>): UInt64Value;
237
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt64Value): UInt64Value;
238
+ internalBinaryWrite(message: UInt64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
239
+ }
240
+ /**
241
+ * @generated MessageType for protobuf message google.protobuf.UInt64Value
242
+ */
243
+ export declare const UInt64Value: UInt64Value$Type;
244
+ declare class Int32Value$Type extends MessageType<Int32Value> {
245
+ constructor();
246
+ /**
247
+ * Encode `Int32Value` to JSON string.
248
+ */
249
+ internalJsonWrite(message: Int32Value, options: JsonWriteOptions): JsonValue;
250
+ /**
251
+ * Decode `Int32Value` from JSON string.
252
+ */
253
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int32Value): Int32Value;
254
+ create(value?: PartialMessage<Int32Value>): Int32Value;
255
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int32Value): Int32Value;
256
+ internalBinaryWrite(message: Int32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
257
+ }
258
+ /**
259
+ * @generated MessageType for protobuf message google.protobuf.Int32Value
260
+ */
261
+ export declare const Int32Value: Int32Value$Type;
262
+ declare class UInt32Value$Type extends MessageType<UInt32Value> {
263
+ constructor();
264
+ /**
265
+ * Encode `UInt32Value` to JSON string.
266
+ */
267
+ internalJsonWrite(message: UInt32Value, options: JsonWriteOptions): JsonValue;
268
+ /**
269
+ * Decode `UInt32Value` from JSON string.
270
+ */
271
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt32Value): UInt32Value;
272
+ create(value?: PartialMessage<UInt32Value>): UInt32Value;
273
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt32Value): UInt32Value;
274
+ internalBinaryWrite(message: UInt32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
102
275
  }
276
+ /**
277
+ * @generated MessageType for protobuf message google.protobuf.UInt32Value
278
+ */
279
+ export declare const UInt32Value: UInt32Value$Type;
280
+ declare class BoolValue$Type extends MessageType<BoolValue> {
281
+ constructor();
282
+ /**
283
+ * Encode `BoolValue` to JSON bool.
284
+ */
285
+ internalJsonWrite(message: BoolValue, options: JsonWriteOptions): JsonValue;
286
+ /**
287
+ * Decode `BoolValue` from JSON bool.
288
+ */
289
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BoolValue): BoolValue;
290
+ create(value?: PartialMessage<BoolValue>): BoolValue;
291
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolValue): BoolValue;
292
+ internalBinaryWrite(message: BoolValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
293
+ }
294
+ /**
295
+ * @generated MessageType for protobuf message google.protobuf.BoolValue
296
+ */
297
+ export declare const BoolValue: BoolValue$Type;
298
+ declare class StringValue$Type extends MessageType<StringValue> {
299
+ constructor();
300
+ /**
301
+ * Encode `StringValue` to JSON string.
302
+ */
303
+ internalJsonWrite(message: StringValue, options: JsonWriteOptions): JsonValue;
304
+ /**
305
+ * Decode `StringValue` from JSON string.
306
+ */
307
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: StringValue): StringValue;
308
+ create(value?: PartialMessage<StringValue>): StringValue;
309
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringValue): StringValue;
310
+ internalBinaryWrite(message: StringValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
311
+ }
312
+ /**
313
+ * @generated MessageType for protobuf message google.protobuf.StringValue
314
+ */
315
+ export declare const StringValue: StringValue$Type;
316
+ declare class BytesValue$Type extends MessageType<BytesValue> {
317
+ constructor();
318
+ /**
319
+ * Encode `BytesValue` to JSON string.
320
+ */
321
+ internalJsonWrite(message: BytesValue, options: JsonWriteOptions): JsonValue;
322
+ /**
323
+ * Decode `BytesValue` from JSON string.
324
+ */
325
+ internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BytesValue): BytesValue;
326
+ create(value?: PartialMessage<BytesValue>): BytesValue;
327
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BytesValue): BytesValue;
328
+ internalBinaryWrite(message: BytesValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
329
+ }
330
+ /**
331
+ * @generated MessageType for protobuf message google.protobuf.BytesValue
332
+ */
333
+ export declare const BytesValue: BytesValue$Type;
103
334
  export {};