Skip to content

Commit cd7392f

Browse files
committed
finished changes of v1.0
1 parent 712e1fc commit cd7392f

File tree

1,427 files changed

+162146
-21419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,427 files changed

+162146
-21419
lines changed

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,14 @@ telescope({
258258
| `aminoEncoding.casingFn` | set the amino-casing function for a project | `snake()` |
259259
| `aminoEncoding.exceptions` | set specific aminoType name exceptions | see code |
260260
| `aminoEncoding.typeUrlToAmino` | create functions for aminoType name exceptions | `undefined`|
261-
| `aminoEncoding.useLegacyInlineEncoding` | @deprecated, To use legacy inline encoding instead of using v2 recursive encoding | `true`|
262-
| `aminoEncoding.useRecursiveV2encoding` | @deprecated, legacy option, if useLegacyInlineEncoding is set, this will be ignored. | null |
261+
| `aminoEncoding.useLegacyInlineEncoding` | To use legacy inline encoding instead of using v2 recursive encoding | `false`|
262+
| `aminoEncoding.useRecursiveV2encoding` | this's been removed. See useLegacyInlineEncoding instead. | |
263263

264264
### Implemented Interface Options
265265

266266
| option | description | defaults |
267267
| ----------------------------------------- | -------------------------------------------------------------- | ---------- |
268-
| `interfaces.enabled` | enables converters convert between Any type and specific implemented interfaces. | `false` |
268+
| `interfaces.enabled` | enables converters convert between Any type and specific implemented interfaces. | `true` |
269269
| `interfaces.useUnionTypes` | Generate Any type as union types(TextProposal \| RegisterIncentiveProposal) instead of intersection types(TextProposal & RegisterIncentiveProposal). | `false` |
270270

271271
### Prototypes Options
@@ -281,8 +281,6 @@ telescope({
281281
| `prototypes.allowUndefinedTypes` | boolean value allowing `Type`s to be `undefined` | `false` |
282282
| `prototypes.optionalQueryParams` | boolean value setting queryParams to be optional | `false` |
283283
| `prototypes.optionalPageRequests` | boolean value setting `PageRequest` fields to optional | `false` |
284-
| `prototypes.addTypeUrlToDecoders` | Include typeUrl feild into decoders to indicate the original type. | `true` |
285-
| `prototypes.addTypeUrlToObjects` | Include typeUrl feild into objects to indicate the original type | `true` |
286284

287285
### Prototypes Methods
288286

@@ -295,10 +293,6 @@ telescope({
295293
| `prototypes.methods.fromPartial` | boolean to enable `fromPartial` method on proto objects | `true` |
296294
| `prototypes.methods.fromSDK` | boolean to enable `fromSDK` method on proto objects | `false` |
297295
| `prototypes.methods.toSDK` | boolean to enable `toSDK` method on proto objects | `false` |
298-
| `prototypes.methods.toAmino` | boolean to enable `toAmino` method on proto objects | `true` |
299-
| `prototypes.methods.fromAmino` | boolean to enable `fromAmino` method on proto objects | `true` |
300-
| `prototypes.methods.toProto` | boolean to enable `toProto` method on proto objects | `true` |
301-
| `prototypes.methods.fromProto` | boolean to enable `fromProto` method on proto objects | `true` |
302296

303297
### LCD Client Options
304298

@@ -369,7 +363,7 @@ See [RPC Clients](#rpc-clients) for more info.
369363
| ----------------------------------------- | -------------------------------------------------------------- | --------- |
370364
| `prototypes.typingsFormat.customTypes.useCosmosSDKDec` | enable handling "prototypes.typingsFormat.customTypes.useCosmosSDKDec" proto custom type. Used to show decimal fields with the custom type correctly. Highly recommend set to true. | `true` |
371365
| `prototypes.typingsFormat.num64` | 'long' or 'bigint', the way of generating int64 proto types, set to 'bigint' to enable using more stable built-in type | `bigint` |
372-
| `prototypes.typingsFormat.useDeepPartial` | By default using the `Partial` TS type, otherwise using `DeepPartial` | `false` |
366+
| `prototypes.typingsFormat.useDeepPartial` | defaults to true, but if disabled uses the `Partial` TS type | `false` |
373367
| `prototypes.typingsFormat.useExact` | defaults to false, but if enabled uses the `Exact` TS type | `false` |
374368
| `prototypes.typingsFormat.timestamp` | use either `date` or `timestamp` for `Timestamp` proto type | "date" |
375369
| `prototypes.typingsFormat.duration` | use either `duration` or `string` for `Duration` proto type | "duration"|
@@ -414,7 +408,6 @@ See [RPC Clients](#rpc-clients) for more info.
414408
| `removeUnusedImports` | removes unused imports | `true` |
415409
| `classesUseArrowFunctions` | classes use arrow functions instead of `bind()`ing in constructors | `false` |
416410
| `includeExternalHelpers` | exports a few helpers functions in `extern.ts` | `false` |
417-
| `interfaces.enabled` | Enable handling accepts_interface to decode or encode fields that can be multiple types | `true` |
418411

419412
## Types
420413

__fixtures__/misc/output/google/api/expr/v1alpha1/eval.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function createBaseExprValue(): ExprValue {
4545
};
4646
}
4747
export const ExprValue = {
48+
typeUrl: "/google.api.expr.v1alpha1.ExprValue",
4849
encode(message: ExprValue, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
4950
for (const v of message.exprs) {
5051
IdRef.encode(v!, writer.uint32(10).fork()).ldelim();
@@ -142,6 +143,7 @@ function createBaseIdRef(): IdRef {
142143
};
143144
}
144145
export const IdRef = {
146+
typeUrl: "/google.api.expr.v1alpha1.IdRef",
145147
encode(message: IdRef, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
146148
if (message.id !== 0) {
147149
writer.uint32(8).int32(message.id);

__fixtures__/misc/output/misc/eval_request.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ function createBaseEvalRequest(): EvalRequest {
277277
};
278278
}
279279
export const EvalRequest = {
280+
typeUrl: "/misc.EvalRequest",
280281
encode(message: EvalRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
281282
Object.entries(message.bindings).forEach(([key, value]) => {
282283
EvalRequest_BindingsEntry.encode({

0 commit comments

Comments
 (0)