diff --git a/.vscode/launch.json b/.vscode/launch.json index 96f2feba..65decffb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -84,6 +84,22 @@ "cwd": "${workspaceFolder}/libs/interchainjs", "internalConsoleOptions": "neverOpen" }, + { + "type": "node", + "request": "launch", + "name": "Debug Jest Tests in Interchainjs authz", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "args": [ + "--config", + "./jest.starship.config.js", + "--verbose", + "--bail", + "starship/__tests__/authz.test.ts" + ], + "console": "integratedTerminal", + "cwd": "${workspaceFolder}/libs/interchainjs", + "internalConsoleOptions": "neverOpen" + }, { "type": "node", "request": "launch", diff --git a/libs/injective-react/src/binary.ts b/libs/injective-react/src/binary.ts index f9a515e4..c43d43dd 100644 --- a/libs/injective-react/src/binary.ts +++ b/libs/injective-react/src/binary.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-react/src/extern.ts b/libs/injective-react/src/extern.ts index 7cbe4e00..7c302393 100644 --- a/libs/injective-react/src/extern.ts +++ b/libs/injective-react/src/extern.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-react/src/helper-func-types.ts b/libs/injective-react/src/helper-func-types.ts index a78ed1bc..ece526a8 100644 --- a/libs/injective-react/src/helper-func-types.ts +++ b/libs/injective-react/src/helper-func-types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ @@ -22,6 +22,8 @@ export interface QueryBuilderOptions { } export function buildQuery(opts: QueryBuilderOptions) { + registerDependencies(opts.deps ?? []); + return async (request: TReq) => { let rpc: Rpc | undefined; @@ -33,8 +35,6 @@ export function buildQuery(opts: QueryBuilderOptions) { if (!rpc) throw new Error("Query Rpc is not initialized"); - registerDependencies(opts.deps ?? []); - const data = opts.encode(request).finish(); const response = await rpc.request(opts.service, opts.method, data); return opts.decode(response); @@ -82,6 +82,8 @@ export interface TxBuilderOptions { } export function buildTx(opts: TxBuilderOptions) { + registerDependencies(opts.deps ?? []); + return async ( signerAddress: string, message: TMsg, @@ -100,7 +102,6 @@ export function buildTx(opts: TxBuilderOptions) { //register all related encoders and converters client.addEncoders(opts.encoders ?? []); client.addConverters(opts.converters ?? []); - registerDependencies(opts.deps ?? []); const data = [ { diff --git a/libs/injective-react/src/helpers.ts b/libs/injective-react/src/helpers.ts index ab170adb..56de9bdf 100644 --- a/libs/injective-react/src/helpers.ts +++ b/libs/injective-react/src/helpers.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-react/src/react-query.ts b/libs/injective-react/src/react-query.ts index 8b7f8844..42a92f1e 100644 --- a/libs/injective-react/src/react-query.ts +++ b/libs/injective-react/src/react-query.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-react/src/registry.ts b/libs/injective-react/src/registry.ts index e7f6497f..1c617f4e 100644 --- a/libs/injective-react/src/registry.ts +++ b/libs/injective-react/src/registry.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-react/src/types.ts b/libs/injective-react/src/types.ts index e44c8a75..5e2aedd4 100644 --- a/libs/injective-react/src/types.ts +++ b/libs/injective-react/src/types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-react/src/utf8.ts b/libs/injective-react/src/utf8.ts index 5fef278b..6daf748d 100644 --- a/libs/injective-react/src/utf8.ts +++ b/libs/injective-react/src/utf8.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-react/src/varint.ts b/libs/injective-react/src/varint.ts index cab33130..0dd27345 100644 --- a/libs/injective-react/src/varint.ts +++ b/libs/injective-react/src/varint.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-vue/src/binary.ts b/libs/injective-vue/src/binary.ts index f9a515e4..c43d43dd 100644 --- a/libs/injective-vue/src/binary.ts +++ b/libs/injective-vue/src/binary.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-vue/src/extern.ts b/libs/injective-vue/src/extern.ts index 2ceebef5..bdeb765e 100644 --- a/libs/injective-vue/src/extern.ts +++ b/libs/injective-vue/src/extern.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-vue/src/helpers.ts b/libs/injective-vue/src/helpers.ts index ab170adb..56de9bdf 100644 --- a/libs/injective-vue/src/helpers.ts +++ b/libs/injective-vue/src/helpers.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-vue/src/registry.ts b/libs/injective-vue/src/registry.ts index e7f6497f..1c617f4e 100644 --- a/libs/injective-vue/src/registry.ts +++ b/libs/injective-vue/src/registry.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-vue/src/types.ts b/libs/injective-vue/src/types.ts index e44c8a75..5e2aedd4 100644 --- a/libs/injective-vue/src/types.ts +++ b/libs/injective-vue/src/types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-vue/src/utf8.ts b/libs/injective-vue/src/utf8.ts index 5fef278b..6daf748d 100644 --- a/libs/injective-vue/src/utf8.ts +++ b/libs/injective-vue/src/utf8.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-vue/src/varint.ts b/libs/injective-vue/src/varint.ts index cab33130..0dd27345 100644 --- a/libs/injective-vue/src/varint.ts +++ b/libs/injective-vue/src/varint.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injective-vue/src/vue-query.ts b/libs/injective-vue/src/vue-query.ts index 7cf1f613..45f87848 100644 --- a/libs/injective-vue/src/vue-query.ts +++ b/libs/injective-vue/src/vue-query.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injectivejs/src/binary.ts b/libs/injectivejs/src/binary.ts index f9a515e4..c43d43dd 100644 --- a/libs/injectivejs/src/binary.ts +++ b/libs/injectivejs/src/binary.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injectivejs/src/extern.ts b/libs/injectivejs/src/extern.ts index 7cbe4e00..7c302393 100644 --- a/libs/injectivejs/src/extern.ts +++ b/libs/injectivejs/src/extern.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injectivejs/src/helper-func-types.ts b/libs/injectivejs/src/helper-func-types.ts index a78ed1bc..ece526a8 100644 --- a/libs/injectivejs/src/helper-func-types.ts +++ b/libs/injectivejs/src/helper-func-types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ @@ -22,6 +22,8 @@ export interface QueryBuilderOptions { } export function buildQuery(opts: QueryBuilderOptions) { + registerDependencies(opts.deps ?? []); + return async (request: TReq) => { let rpc: Rpc | undefined; @@ -33,8 +35,6 @@ export function buildQuery(opts: QueryBuilderOptions) { if (!rpc) throw new Error("Query Rpc is not initialized"); - registerDependencies(opts.deps ?? []); - const data = opts.encode(request).finish(); const response = await rpc.request(opts.service, opts.method, data); return opts.decode(response); @@ -82,6 +82,8 @@ export interface TxBuilderOptions { } export function buildTx(opts: TxBuilderOptions) { + registerDependencies(opts.deps ?? []); + return async ( signerAddress: string, message: TMsg, @@ -100,7 +102,6 @@ export function buildTx(opts: TxBuilderOptions) { //register all related encoders and converters client.addEncoders(opts.encoders ?? []); client.addConverters(opts.converters ?? []); - registerDependencies(opts.deps ?? []); const data = [ { diff --git a/libs/injectivejs/src/helpers.ts b/libs/injectivejs/src/helpers.ts index ab170adb..56de9bdf 100644 --- a/libs/injectivejs/src/helpers.ts +++ b/libs/injectivejs/src/helpers.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injectivejs/src/registry.ts b/libs/injectivejs/src/registry.ts index e7f6497f..1c617f4e 100644 --- a/libs/injectivejs/src/registry.ts +++ b/libs/injectivejs/src/registry.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injectivejs/src/types.ts b/libs/injectivejs/src/types.ts index e44c8a75..5e2aedd4 100644 --- a/libs/injectivejs/src/types.ts +++ b/libs/injectivejs/src/types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injectivejs/src/utf8.ts b/libs/injectivejs/src/utf8.ts index 5fef278b..6daf748d 100644 --- a/libs/injectivejs/src/utf8.ts +++ b/libs/injectivejs/src/utf8.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/injectivejs/src/varint.ts b/libs/injectivejs/src/varint.ts index cab33130..0dd27345 100644 --- a/libs/injectivejs/src/varint.ts +++ b/libs/injectivejs/src/varint.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-react/src/binary.ts b/libs/interchain-react/src/binary.ts index f9a515e4..c43d43dd 100644 --- a/libs/interchain-react/src/binary.ts +++ b/libs/interchain-react/src/binary.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-react/src/extern.ts b/libs/interchain-react/src/extern.ts index 7cbe4e00..7c302393 100644 --- a/libs/interchain-react/src/extern.ts +++ b/libs/interchain-react/src/extern.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-react/src/helper-func-types.ts b/libs/interchain-react/src/helper-func-types.ts index a78ed1bc..ece526a8 100644 --- a/libs/interchain-react/src/helper-func-types.ts +++ b/libs/interchain-react/src/helper-func-types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ @@ -22,6 +22,8 @@ export interface QueryBuilderOptions { } export function buildQuery(opts: QueryBuilderOptions) { + registerDependencies(opts.deps ?? []); + return async (request: TReq) => { let rpc: Rpc | undefined; @@ -33,8 +35,6 @@ export function buildQuery(opts: QueryBuilderOptions) { if (!rpc) throw new Error("Query Rpc is not initialized"); - registerDependencies(opts.deps ?? []); - const data = opts.encode(request).finish(); const response = await rpc.request(opts.service, opts.method, data); return opts.decode(response); @@ -82,6 +82,8 @@ export interface TxBuilderOptions { } export function buildTx(opts: TxBuilderOptions) { + registerDependencies(opts.deps ?? []); + return async ( signerAddress: string, message: TMsg, @@ -100,7 +102,6 @@ export function buildTx(opts: TxBuilderOptions) { //register all related encoders and converters client.addEncoders(opts.encoders ?? []); client.addConverters(opts.converters ?? []); - registerDependencies(opts.deps ?? []); const data = [ { diff --git a/libs/interchain-react/src/helpers.ts b/libs/interchain-react/src/helpers.ts index ab170adb..56de9bdf 100644 --- a/libs/interchain-react/src/helpers.ts +++ b/libs/interchain-react/src/helpers.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-react/src/react-query.ts b/libs/interchain-react/src/react-query.ts index 8b7f8844..42a92f1e 100644 --- a/libs/interchain-react/src/react-query.ts +++ b/libs/interchain-react/src/react-query.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-react/src/registry.ts b/libs/interchain-react/src/registry.ts index e7f6497f..1c617f4e 100644 --- a/libs/interchain-react/src/registry.ts +++ b/libs/interchain-react/src/registry.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-react/src/types.ts b/libs/interchain-react/src/types.ts index e44c8a75..5e2aedd4 100644 --- a/libs/interchain-react/src/types.ts +++ b/libs/interchain-react/src/types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-react/src/utf8.ts b/libs/interchain-react/src/utf8.ts index 5fef278b..6daf748d 100644 --- a/libs/interchain-react/src/utf8.ts +++ b/libs/interchain-react/src/utf8.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-react/src/varint.ts b/libs/interchain-react/src/varint.ts index cab33130..0dd27345 100644 --- a/libs/interchain-react/src/varint.ts +++ b/libs/interchain-react/src/varint.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-vue/src/binary.ts b/libs/interchain-vue/src/binary.ts index f9a515e4..c43d43dd 100644 --- a/libs/interchain-vue/src/binary.ts +++ b/libs/interchain-vue/src/binary.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-vue/src/extern.ts b/libs/interchain-vue/src/extern.ts index 2ceebef5..bdeb765e 100644 --- a/libs/interchain-vue/src/extern.ts +++ b/libs/interchain-vue/src/extern.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-vue/src/helpers.ts b/libs/interchain-vue/src/helpers.ts index ab170adb..56de9bdf 100644 --- a/libs/interchain-vue/src/helpers.ts +++ b/libs/interchain-vue/src/helpers.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-vue/src/registry.ts b/libs/interchain-vue/src/registry.ts index e7f6497f..1c617f4e 100644 --- a/libs/interchain-vue/src/registry.ts +++ b/libs/interchain-vue/src/registry.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-vue/src/types.ts b/libs/interchain-vue/src/types.ts index e44c8a75..5e2aedd4 100644 --- a/libs/interchain-vue/src/types.ts +++ b/libs/interchain-vue/src/types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-vue/src/utf8.ts b/libs/interchain-vue/src/utf8.ts index 5fef278b..6daf748d 100644 --- a/libs/interchain-vue/src/utf8.ts +++ b/libs/interchain-vue/src/utf8.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-vue/src/varint.ts b/libs/interchain-vue/src/varint.ts index cab33130..0dd27345 100644 --- a/libs/interchain-vue/src/varint.ts +++ b/libs/interchain-vue/src/varint.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchain-vue/src/vue-query.ts b/libs/interchain-vue/src/vue-query.ts index 7cf1f613..45f87848 100644 --- a/libs/interchain-vue/src/vue-query.ts +++ b/libs/interchain-vue/src/vue-query.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchainjs/src/binary.ts b/libs/interchainjs/src/binary.ts index f9a515e4..c43d43dd 100644 --- a/libs/interchainjs/src/binary.ts +++ b/libs/interchainjs/src/binary.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchainjs/src/extern.ts b/libs/interchainjs/src/extern.ts index 7cbe4e00..7c302393 100644 --- a/libs/interchainjs/src/extern.ts +++ b/libs/interchainjs/src/extern.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchainjs/src/helper-func-types.ts b/libs/interchainjs/src/helper-func-types.ts index a78ed1bc..ece526a8 100644 --- a/libs/interchainjs/src/helper-func-types.ts +++ b/libs/interchainjs/src/helper-func-types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ @@ -22,6 +22,8 @@ export interface QueryBuilderOptions { } export function buildQuery(opts: QueryBuilderOptions) { + registerDependencies(opts.deps ?? []); + return async (request: TReq) => { let rpc: Rpc | undefined; @@ -33,8 +35,6 @@ export function buildQuery(opts: QueryBuilderOptions) { if (!rpc) throw new Error("Query Rpc is not initialized"); - registerDependencies(opts.deps ?? []); - const data = opts.encode(request).finish(); const response = await rpc.request(opts.service, opts.method, data); return opts.decode(response); @@ -82,6 +82,8 @@ export interface TxBuilderOptions { } export function buildTx(opts: TxBuilderOptions) { + registerDependencies(opts.deps ?? []); + return async ( signerAddress: string, message: TMsg, @@ -100,7 +102,6 @@ export function buildTx(opts: TxBuilderOptions) { //register all related encoders and converters client.addEncoders(opts.encoders ?? []); client.addConverters(opts.converters ?? []); - registerDependencies(opts.deps ?? []); const data = [ { diff --git a/libs/interchainjs/src/helpers.ts b/libs/interchainjs/src/helpers.ts index ab170adb..56de9bdf 100644 --- a/libs/interchainjs/src/helpers.ts +++ b/libs/interchainjs/src/helpers.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchainjs/src/registry.ts b/libs/interchainjs/src/registry.ts index e7f6497f..1c617f4e 100644 --- a/libs/interchainjs/src/registry.ts +++ b/libs/interchainjs/src/registry.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchainjs/src/types.ts b/libs/interchainjs/src/types.ts index e44c8a75..5e2aedd4 100644 --- a/libs/interchainjs/src/types.ts +++ b/libs/interchainjs/src/types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchainjs/src/utf8.ts b/libs/interchainjs/src/utf8.ts index 5fef278b..6daf748d 100644 --- a/libs/interchainjs/src/utf8.ts +++ b/libs/interchainjs/src/utf8.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchainjs/src/varint.ts b/libs/interchainjs/src/varint.ts index cab33130..0dd27345 100644 --- a/libs/interchainjs/src/varint.ts +++ b/libs/interchainjs/src/varint.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.6 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.7 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or npm scripts command that is used to regenerate this bundle. */ diff --git a/libs/interchainjs/starship/__tests__/authz.test.ts b/libs/interchainjs/starship/__tests__/authz.test.ts index 01e3c44c..52aaa826 100644 --- a/libs/interchainjs/starship/__tests__/authz.test.ts +++ b/libs/interchainjs/starship/__tests__/authz.test.ts @@ -1,8 +1,10 @@ +import "./setup.test"; + import { generateMnemonic } from "@confio/relayer/build/lib/helpers"; import { assertIsDeliverTxSuccess } from "@cosmjs/stargate"; import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; +import { useChain } from 'starshipjs'; -import "./setup.test"; import { GenericAuthorization, Grant, @@ -14,39 +16,96 @@ import { } from "interchainjs/cosmos/authz/v1beta1/tx"; import { SendAuthorization } from "interchainjs/cosmos/bank/v1beta1/authz"; import { MsgVote } from "interchainjs/cosmos/gov/v1beta1/tx"; -import { QueryGrantsRequest } from "interchainjs/cosmos/authz/v1beta1/query"; +import { QueryGranteeGrantsRequest, QueryGranteeGrantsResponse } from "interchainjs/cosmos/authz/v1beta1/query"; import { MsgSend } from "interchainjs/cosmos/bank/v1beta1/tx"; +import { Secp256k1HDWallet } from "@interchainjs/cosmos/wallets/secp256k1hd"; +import { SigningClient as CosmosSigningClient } from '@interchainjs/cosmos/signing-client'; +import { QueryBalanceRequest, QueryBalanceResponse } from 'interchainjs/cosmos/bank/v1beta1/query'; + +import { createGetBalance } from "interchainjs/cosmos/bank/v1beta1/query.rpc.func"; +import { DeliverTxResponse, StdFee } from "@interchainjs/types"; +import { createGrant, createExec, createRevoke } from "interchainjs/cosmos/authz/v1beta1/tx.rpc.func"; +import { createGetGranteeGrants } from "interchainjs/cosmos/authz/v1beta1/query.rpc.func"; +import { DirectGenericOfflineSigner } from "@interchainjs/cosmos/types/wallet"; + +const cosmosHdPath = "m/44'/118'/0'/0/0"; describe("Authz testing", () => { - let wallet1, address1, denom; - let wallet2, address2; - let wallet3, address3; - let chainInfo, getCoin, getRpcEndpoint, creditFromFaucet; - let expiration; + let wallet1: Secp256k1HDWallet, address1: string, denom: string; + let wallet2: Secp256k1HDWallet, address2: string; + let wallet3: Secp256k1HDWallet, address3: string; + let commonPrefix: string, chainInfo, getCoin, getRpcEndpoint: () => Promise, creditFromFaucet; + let expiration: Date; + + let getBalance: (request: QueryBalanceRequest) => Promise; + let getGranteeGrants: (request: QueryGranteeGrantsRequest) => Promise; + + let grant1: (signerAddress: string, message: MsgGrant, fee: StdFee | "auto", memo: string) => Promise; + let exec2: (signerAddress: string, message: MsgExec, fee: StdFee | "auto", memo: string) => Promise; + let revoke1: (signerAddress: string, message: MsgRevoke, fee: StdFee | "auto", memo: string) => Promise; // Variables used accross testcases beforeAll(async () => { ({ chainInfo, getCoin, getRpcEndpoint, creditFromFaucet } = - useChain("cosmos")); - denom = getCoin().base; + useChain("osmosis")); + denom = (await getCoin()).base; + + commonPrefix = chainInfo?.chain?.bech32_prefix; + + const rpcEndpoint = await getRpcEndpoint(); + getBalance = createGetBalance(rpcEndpoint); + getGranteeGrants = createGetGranteeGrants(rpcEndpoint); // Initialize wallet - wallet1 = await DirectSecp256k1HdWallet.fromMnemonic(generateMnemonic(), { - prefix: chainInfo.chain.bech32_prefix, - }); + wallet1 = await Secp256k1HDWallet.fromMnemonic(generateMnemonic(), [ + { + prefix: commonPrefix, + hdPath: cosmosHdPath, + }, + ]); address1 = (await wallet1.getAccounts())[0].address; + const signingClient1 = await CosmosSigningClient.connectWithSigner( + await getRpcEndpoint(), + new DirectGenericOfflineSigner(wallet1), + { + broadcast: { + checkTx: true, + deliverTx: true, + }, + } + ); - wallet2 = await DirectSecp256k1HdWallet.fromMnemonic(generateMnemonic(), { - prefix: chainInfo.chain.bech32_prefix, - }); + wallet2 = await Secp256k1HDWallet.fromMnemonic(generateMnemonic(), [ + { + prefix: commonPrefix, + hdPath: cosmosHdPath, + }, + ]); address2 = (await wallet2.getAccounts())[0].address; + const signingClient2 = await CosmosSigningClient.connectWithSigner( + await getRpcEndpoint(), + new DirectGenericOfflineSigner(wallet2), + { + broadcast: { + checkTx: true, + deliverTx: true, + }, + } + ); - wallet3 = await DirectSecp256k1HdWallet.fromMnemonic(generateMnemonic(), { - prefix: chainInfo.chain.bech32_prefix, - }); + wallet3 = await Secp256k1HDWallet.fromMnemonic(generateMnemonic(), [ + { + prefix: commonPrefix, + hdPath: cosmosHdPath, + }, + ]); address3 = (await wallet3.getAccounts())[0].address; + grant1 = createGrant(signingClient1); + exec2 = createExec(signingClient2); + revoke1 = createRevoke(signingClient1); + // Transfer osmosis and ibc tokens to address, send only osmo to address await creditFromFaucet(address1); await creditFromFaucet(address2); @@ -59,11 +118,7 @@ describe("Authz testing", () => { }, 200000); it("check address1 has tokens", async () => { - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - - const { balance } = await queryClient.cosmos.bank.v1beta1.balance({ + const { balance } = await getBalance({ address: address1, denom, }); @@ -72,11 +127,7 @@ describe("Authz testing", () => { }, 200000); it("check address2 has tokens", async () => { - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - - const { balance } = await queryClient.cosmos.bank.v1beta1.balance({ + const { balance } = await getBalance({ address: address2, denom, }); @@ -85,11 +136,7 @@ describe("Authz testing", () => { }, 200000); it("check address3 has tokens", async () => { - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - - const { balance } = await queryClient.cosmos.bank.v1beta1.balance({ + const { balance } = await getBalance({ address: address3, denom, }); @@ -98,15 +145,6 @@ describe("Authz testing", () => { }, 200000); it("grant address2 Send Auth with limits", async () => { - const msgClient1 = await cosmos.ClientFactory.createRPCMsgExtensions({ - rpcEndpoint: getRpcEndpoint(), - signer: wallet1, - }); - - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - const fee = { amount: [ { @@ -133,15 +171,11 @@ describe("Authz testing", () => { }), }); - const result = await msgClient1.cosmos.authz.v1beta1.grant( - address1, - msg, - fee - ); + const result = await grant1(address1, msg, fee, "grant address2 Send Auth with limits"); assertIsDeliverTxSuccess(result); - const authsResults = await queryClient.cosmos.authz.v1beta1.granteeGrants({ + const authsResults = await getGranteeGrants({ grantee: address2, }); @@ -157,15 +191,6 @@ describe("Authz testing", () => { }, 200000); it("grant address3 Generic Send Auth", async () => { - const msgClient1 = await cosmos.ClientFactory.createRPCMsgExtensions({ - rpcEndpoint: getRpcEndpoint(), - signer: wallet1, - }); - - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - const fee = { amount: [ { @@ -187,15 +212,16 @@ describe("Authz testing", () => { }), }); - const result = await msgClient1.cosmos.authz.v1beta1.grant( + const result = await grant1( address1, msg, - fee + fee, + "grant address3 Generic Send Auth" ); assertIsDeliverTxSuccess(result); - const authsResults = await queryClient.cosmos.authz.v1beta1.granteeGrants({ + const authsResults = await getGranteeGrants({ grantee: address3, }); @@ -211,15 +237,6 @@ describe("Authz testing", () => { }, 200000); it("grant address2 Generic Vote Auth", async () => { - const msgClient1 = await cosmos.ClientFactory.createRPCMsgExtensions({ - rpcEndpoint: getRpcEndpoint(), - signer: wallet1, - }); - - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - const fee = { amount: [ { @@ -241,15 +258,16 @@ describe("Authz testing", () => { }), }); - const result = await msgClient1.cosmos.authz.v1beta1.grant( + const result = await grant1( address1, msg, - fee + fee, + "grant address2 Generic Vote Auth" ); assertIsDeliverTxSuccess(result); - const authsResults = await queryClient.cosmos.authz.v1beta1.granteeGrants({ + const authsResults = await getGranteeGrants({ grantee: address2, }); @@ -264,34 +282,7 @@ describe("Authz testing", () => { } }, 200000); - it("get address2 auths", async () => { - await sleep(1000) - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - - console.log(`granter: ${address1}, grantee: ${address2}, msg: ${MsgVote.typeUrl}`) - await sleep(1000) - const authsResults = await queryClient.cosmos.authz.v1beta1.grants(QueryGrantsRequest.fromPartial({ - granter: address1, - grantee: address2, - msgTypeUrl: MsgVote.typeUrl - })); - - console.log(authsResults); - - }, 2000000); - it("exec address2 send", async () => { - const msgClient2 = await cosmos.ClientFactory.createRPCMsgExtensions({ - rpcEndpoint: getRpcEndpoint(), - signer: wallet2, - }); - - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - const fee = { amount: [ { @@ -320,34 +311,24 @@ describe("Authz testing", () => { ], }); - const result = await msgClient2.cosmos.authz.v1beta1.exec( + const result = await exec2( address2, msg, - fee + fee, + "exec address2 send" ); assertIsDeliverTxSuccess(result); - const { balance } = await queryClient.cosmos.bank.v1beta1.balance({ + const { balance } = await getBalance({ address: address2, denom, }); - console.log(balance) - expect(balance?.amount).toEqual("9999990000"); // not 10000000000, due to fees deduction }, 2000000); it("revoke address2 vote auth", async () => { - const msgClient1 = await cosmos.ClientFactory.createRPCMsgExtensions({ - rpcEndpoint: getRpcEndpoint(), - signer: wallet1, - }); - - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - const fee = { amount: [ { @@ -364,15 +345,16 @@ describe("Authz testing", () => { msgTypeUrl: MsgVote.typeUrl, }); - const result = await msgClient1.cosmos.authz.v1beta1.revoke( + const result = await revoke1( address1, msg, - fee + fee, + "revoke address2 vote auth" ); assertIsDeliverTxSuccess(result); - const authsResults = await queryClient.cosmos.authz.v1beta1.granteeGrants({ + const authsResults = await getGranteeGrants({ grantee: address2, }); @@ -388,15 +370,6 @@ describe("Authz testing", () => { }, 200000); it("revoke address3 generic send auth", async () => { - const msgClient1 = await cosmos.ClientFactory.createRPCMsgExtensions({ - rpcEndpoint: getRpcEndpoint(), - signer: wallet1, - }); - - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - const fee = { amount: [ { @@ -413,15 +386,16 @@ describe("Authz testing", () => { msgTypeUrl: MsgSend.typeUrl, }); - const result = await msgClient1.cosmos.authz.v1beta1.revoke( + const result = await revoke1( address1, msg, - fee + fee, + "revoke address3 generic send auth" ); assertIsDeliverTxSuccess(result); - const authsResults = await queryClient.cosmos.authz.v1beta1.granteeGrants({ + const authsResults = await getGranteeGrants({ grantee: address3, }); @@ -429,15 +403,6 @@ describe("Authz testing", () => { }, 200000); it("revoke address2 send auth", async () => { - const msgClient1 = await cosmos.ClientFactory.createRPCMsgExtensions({ - rpcEndpoint: getRpcEndpoint(), - signer: wallet1, - }); - - const queryClient = await cosmos.ClientFactory.createRPCQueryClient({ - rpcEndpoint: getRpcEndpoint(), - }); - const fee = { amount: [ { @@ -454,15 +419,16 @@ describe("Authz testing", () => { msgTypeUrl: MsgSend.typeUrl, }); - const result = await msgClient1.cosmos.authz.v1beta1.revoke( + const result = await revoke1( address1, msg, - fee + fee, + "revoke address2 send auth" ); assertIsDeliverTxSuccess(result); - const authsResults = await queryClient.cosmos.authz.v1beta1.granteeGrants({ + const authsResults = await getGranteeGrants({ grantee: address2, }); diff --git a/package.json b/package.json index 7267f2fd..ad51f253 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@chain-registry/client": "1.18.1", "@confio/relayer": "^0.12.0", "@cosmjs/crypto": "^0.32.2", - "@cosmology/telescope": "^1.11.6", + "@cosmology/telescope": "^1.11.7", "@injectivelabs/networks": "^1.14.13", "@injectivelabs/sdk-ts": "^1.14.13", "@injectivelabs/wallet-ts": "^1.14.13", diff --git a/yarn.lock b/yarn.lock index 3370e14b..951e85b9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1763,10 +1763,10 @@ "@types/node" ">=13.7.0" long "^5.0.0" -"@cosmology/telescope@^1.11.6": - version "1.11.6" - resolved "https://registry.yarnpkg.com/@cosmology/telescope/-/telescope-1.11.6.tgz#40a03f0c3afd0eaee607548c1c0b594ba3c41e93" - integrity sha512-2e5TmnsMPm9nxViPT3Qpbv7Cv1TW/5matImGUW4LcpQZxh3SFYbf8h5v7AdkNXk5Gyv/fKTTYgV5sURr5pZn/g== +"@cosmology/telescope@^1.11.7": + version "1.11.7" + resolved "https://registry.yarnpkg.com/@cosmology/telescope/-/telescope-1.11.7.tgz#66db4fc7b1bff7811c1620a76ad5d4c874ceb2be" + integrity sha512-wBTTypagr2Lgh4onOIWIiQ96iLfL6Qe8uIS0yGosp2r2XPjT3AWCOu5s/9C5X2dzhD1a1Vl6wxTMdyzPF+1hng== dependencies: "@babel/generator" "^7.23.6" "@babel/parser" "^7.23.6"