Skip to content

Commit

Permalink
Added interchainjs deps
Browse files Browse the repository at this point in the history
  • Loading branch information
NorOldBurden committed Oct 28, 2024
1 parent 42e2449 commit c024580
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/telescope/src/generators/customize-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,13 @@ export const plugin = (builder: TelescopeBuilder) => {
UTILS.base64FromBytes = '__helpers__';
UTILS.bytesFromBase64 = '__helpers__';
}

if (builder.options.prototypes.useInterchainjsDeps === true) {
UTILS.AminoMsg = {
type: 'import',
path: '@interchainjs/ReadOnlyAminoMsg',
name: 'ReadOnlyAminoMsg',
importAs: 'AminoMsg',
};
}
};
1 change: 1 addition & 0 deletions packages/types/src/telescope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ interface TelescopeOpts {
allowUndefinedTypes?: boolean;
allowEncodeDefaultScalars?: boolean;
isScalarDefaultToNullable?: boolean;
useInterchainjsDeps?: boolean;
enforceNullCheck?: boolean;

optionalQueryParams?: boolean;
Expand Down

0 comments on commit c024580

Please sign in to comment.