You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`aminoEncoding.enabled`| Generate amino types and amino converters |`true`|
504
519
|`aminoEncoding.omitEmptyTags`| Array of strings that determines whether a field should be omitted when serialized to JSON. If the array includes "omitempty", any field with the "omitempty" option in either gogoproto.jsontag or cosmos_proto.json_tag will be omitted. If the array includes "dont_omitempty", the field will be omitted or not based on the value of "(amino.dont_omitempty)": if it's null or false, the field will be omitted; if it's true, the field will not be omitted. |`["omitempty", "dont_omitempty"]`|
520
+
|`aminoEncoding.useProtoOptionality`| Use proto optionality for determining required fields |`false`|
|`interfaces.enabled`| Enable converters between Any type and specific implemented interfaces |`true`|
519
535
|`interfaces.useGlobalDecoderRegistry`| Enable GlobalDecoderRegistry and related functions. Highly recommended when dealing with fields with 'accepted_interface' option. See 'packages/telescope/__tests__/impl-interfaces.test.ts' for usage. |`false`|
536
+
|`interfaces.registerAllDecodersToGlobal`| Automatically register all decoders to the global registry |`true`|
520
537
|`interfaces.useUseInterfacesParams`| Add `useInterfaces` argument to `decode` and `toAmino` functions |`false`|
521
538
|`interfaces.useByDefault`| Use interface decoders by default (default for `useInterfaces` argument to `decode` and `toAmino` functions) |`true`|
522
539
|`interfaces.useByDefaultRpc`| Use interface decoders by default in RPC clients |`true`|
@@ -544,6 +561,8 @@ telescope({
544
561
|`prototypes.addTypeUrlToDecoders`| Add $typeUrl field to generated interfaces |`true`|
545
562
|`prototypes.addAminoTypeToObjects`| Add aminoType field to generated Decoders |`false`|
546
563
|`prototypes.addTypeUrlToObjects`| Add typeUrl field to generated Decoders |`true`|
564
+
|`prototypes.strictNullCheckForPrototypeMethods`| Enable strict null checks for prototype methods |`false`|
565
+
|`prototypes.paginationDefaultFromPartial`| Set default values for pagination in fromPartial methods |`false`|
547
566
|`prototypes.enableRegistryLoader`| Generate Registry loader in *.registry.ts files |`true`|
548
567
|`prototypes.enableMessageComposer`| Generate MessageComposer in *.registry.ts files |`true`|
549
568
|`prototypes.patch`| Object mapping filenames to an array of `Operation` to be applied as patches to proto files during generation. See [JSON Patch Protos](#json-patch-protos)|`undefined`|
|`helperFunctions.include.serviceTypes`| Specifies which types of services to include (`Query`, `Msg`). `undefined` includes all types. |`undefined`|
612
644
|`helperFunctions.include.patterns`| Array of glob patterns patterns (e.g., `"**"`, `"cosmos.bank.v1beta1.bala*"`, etc.) to match specific proto services. |`undefined`|
@@ -680,6 +712,7 @@ See [Helper Functions Configuration](#helper-functions-configuration) for more i
680
712
|`prototypes.typingsFormat.toJsonUnknown`| Use `any` for `toJSON` methods instead of `JsonSafe`|`true`|
681
713
|`prototypes.typingsFormat.timestamp`| Use either `date` or `timestamp` for `Timestamp` proto type | "date" |
682
714
|`prototypes.typingsFormat.duration`| Use either `duration` or `string` for `Duration` proto type | "duration"|
715
+
|`prototypes.typingsFormat.updatedDuration`| temporary field to avoid breaking changes |`false`|
683
716
|`prototypes.typingsFormat.setDefaultEnumToUnrecognized`| false: enum empty value would be 0, true: -1 (value for enum unrecognized) |`true`|
684
717
|`prototypes.typingsFormat.setDefaultCustomTypesToUndefined`| true: Timestamp, Duration, Any, Coin empty value would be undefined. false: use fromPartial to get an empty object |`false`|
685
718
|`prototypes.typingsFormat.autoFixUndefinedEnumDefault`| The default value of an enum field would be: 1 (proto2); 0 (proto3). But in some rare cases, those default values don't exist. By enabling this, the default value will be automatically fixed with the smallest value inside the enum. |`false`|
@@ -713,6 +746,7 @@ See [Helper Functions Configuration](#helper-functions-configuration) for more i
|`bundle.enabled`| Bundle all files into a scoped index file |`true`|
749
+
|`bundle.type`| Bundle type: "namespace" or "module" |`"namespace"`|
716
750
> **Warning:** This option is not recommended. It will generate a bundle file that exports all the types and functions under one namespace. This will make the bundle file very large and hard to maintain. e.g. using `cosmos.bank.v1beta1.MsgSend` might be intuitive, but it will also include `cosmos.gov.v1beta1.*` and other types in the final bundle file. So use this option with caution.
0 commit comments