Skip to content

Commit

Permalink
Merge pull request #443 from cosmology-tech/resolve-circular-deps
Browse files Browse the repository at this point in the history
Resolve circular deps
  • Loading branch information
Zetazzz authored Aug 16, 2023
2 parents f2440c1 + 1b168ca commit 782347a
Show file tree
Hide file tree
Showing 76 changed files with 619 additions and 524 deletions.
4 changes: 2 additions & 2 deletions packages/ast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@
"regenerator-runtime": "^0.13.11",
"rimraf": "5.0.0",
"ts-jest": "^29.1.0",
"typescript": "5.0.4"
"typescript": "5.0.4",
"@cosmology/proto-parser": "^0.47.0"
},
"dependencies": {
"@babel/parser": "^7.21.4",
"@babel/runtime": "^7.21.0",
"@babel/types": "7.21.4",
"@cosmology/proto-parser": "^0.47.0",
"@cosmology/types": "^0.38.0",
"@cosmology/utils": "^0.13.0",
"case": "1.6.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/ast/src/clients/lcd/aggregated/aggregated.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {
createAggregatedLCDClient,
} from '../class';
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoRef, ProtoService } from '@cosmology/types';
import generate from '@babel/generator';
import { GenericParseContext } from '../../../encoding';
Expand Down
3 changes: 2 additions & 1 deletion packages/ast/src/clients/lcd/aggregated/convert.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createAggregatedLCDClient } from '../class';
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser';
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils';
import {
defaultTelescopeOptions,
ProtoRef,
Expand Down
3 changes: 2 additions & 1 deletion packages/ast/src/clients/lcd/class/lcd.arrowFunc.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createLCDClient } from './lcd';
import { traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { ProtoService } from '@cosmology/types';
import { GenericParseContext } from '../../../encoding';
import { getTestProtoStore, expectCode } from '../../../../test-utils';
Expand Down
3 changes: 2 additions & 1 deletion packages/ast/src/clients/lcd/class/lcd.keepCase.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
createLCDClient,
makeTemplateTagLegacy
} from './lcd';
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoService } from '@cosmology/types';
import generate from '@babel/generator';
import { GenericParseContext } from '../../../encoding';
Expand Down
3 changes: 2 additions & 1 deletion packages/ast/src/clients/lcd/class/lcd.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
createLCDClient,
makeTemplateTagLegacy
} from './lcd';
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoService } from '@cosmology/types';
import generate from '@babel/generator';
import { GenericParseContext } from '../../../encoding';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoService } from '@cosmology/types';
import { expectCode, getTestProtoStore, printCode } from '../../../../../test-utils';
import { GenericParseContext } from '../../../../encoding';
Expand All @@ -16,5 +17,5 @@ it('GRPC-Gateway Msg Client', () => {
});


// use static in interface declaration:
// use static in interface declaration:
// https://stackoverflow.com/questions/13955157/how-to-define-static-property-in-typescript-interface
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoService } from '@cosmology/types';
import { expectCode, getTestProtoStore, printCode } from '../../../../../test-utils';
import { GenericParseContext } from '../../../../encoding';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoService } from '@cosmology/types';
import { expectCode, getTestProtoStore, printCode } from '../../../../../test-utils';
import { GenericParseContext } from '../../../../encoding';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoService } from '@cosmology/types';
import { expectCode, getTestProtoStore, printCode } from '../../../../../test-utils';
import { GenericParseContext } from '../../../../encoding';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { ProtoService } from '@cosmology/types';
import { expectCode, getTestProtoStore, printCode } from '../../../../../test-utils';
import { GenericParseContext } from '../../../../encoding';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoService } from '@cosmology/types';
import { expectCode, getTestProtoStore, printCode } from '../../../../../test-utils';
import { GenericParseContext } from '../../../../encoding';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoService } from '@cosmology/types';
import { expectCode, getTestProtoStore, printCode } from '../../../../../test-utils';
import { GenericParseContext } from '../../../../encoding';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ProtoStore, traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoService } from '@cosmology/types';
import { expectCode, getTestProtoStore, printCode } from '../../../../../test-utils';
import { GenericParseContext } from '../../../../encoding';
Expand Down
3 changes: 2 additions & 1 deletion packages/ast/src/clients/rpc/extension/rpc.extension.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { traverse, getNestedProto } from '@cosmology/proto-parser'
import { traverse } from '@cosmology/proto-parser'
import { getNestedProto } from '@cosmology/utils'
import { defaultTelescopeOptions, ProtoService } from '@cosmology/types';
import { expectCode, getTestProtoStore } from '../../../../test-utils';
import { GenericParseContext } from '../../../encoding';
Expand Down
Loading

0 comments on commit 782347a

Please sign in to comment.