Skip to content

Commit

Permalink
added new replacement for interchainjs import
Browse files Browse the repository at this point in the history
  • Loading branch information
NorOldBurden committed Nov 6, 2024
1 parent 77e46fb commit 9f1ebc2
Showing 1 changed file with 49 additions and 4 deletions.
53 changes: 49 additions & 4 deletions packages/telescope/src/generators/customize-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,56 @@ export const plugin = (builder: TelescopeBuilder) => {
name: 'ReadOnlyAminoMsg',
importAs: 'AminoMsg',
};
UTILS.Pubkey = {
UTILS.AminoTypes = {
type: 'import',
path: '@interchainjs/Pubkey',
name: 'Pubkey',
importAs: 'Pubkey',
path: '@interchainjs/AminoConverter',
name: 'AminoConverter',
importAs: 'AminoTypes',
};
UTILS.createProtobufRpcClient = {
type: 'import',
path: '@interchainjs/createRpcClient',
name: 'createRpcClient',
importAs: 'createProtobufRpcClient',
};
UTILS.defaultRegistryTypes = {
type: 'import',
path: '@interchainjs/GeneratedType',
name: 'GeneratedType',
importAs: 'defaultRegistryTypes',
};
UTILS.GeneratedType = {
type: 'import',
path: '@interchainjs/GeneratedType',
name: 'GeneratedType',
};
UTILS.HttpEndpoint = {
type: 'import',
path: '@interchainjs/HttpEndpoint',
name: 'HttpEndpoint',
};
UTILS.OfflineSigner = {
type: 'import',
path: '@interchainjs/OfflineSigner',
name: 'OfflineSigner',
};
UTILS.ProtobufRpcClient = {
type: 'import',
path: '@interchainjs/Rpc',
name: 'Rpc',
importAs: 'ProtobufRpcClient',
};
UTILS.Registry = {
type: 'import',
path: '@interchainjs/GlobalDecoderRegistry',
name: 'GlobalDecoderRegistry',
importAs: 'Registry',
};
UTILS.SigningStargateClient = {
type: 'import',
path: '@interchainjs/SigningClient',
name: 'SigningClient',
importAs: 'SigningStargateClient',
};
}
};

0 comments on commit 9f1ebc2

Please sign in to comment.