Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telescope upgrade #44

Merged
merged 40 commits into from Oct 26, 2022
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
09f51fb
remove ts-proto dependencies and add telescope
pyramation Oct 2, 2022
bf6ab10
update npm scripts
pyramation Oct 2, 2022
e5e00c0
codegen options
pyramation Oct 3, 2022
ba6a085
build option
pyramation Oct 3, 2022
5a896fe
inline/extensions
pyramation Oct 3, 2022
55dc8b0
codegen settings
pyramation Oct 3, 2022
0690ec2
update
pyramation Oct 3, 2022
266e59c
run codegen
pyramation Oct 3, 2022
6010e21
eslintDisable
pyramation Oct 3, 2022
dd203fc
eslint-disable
pyramation Oct 3, 2022
2124042
fromJSON
pyramation Oct 3, 2022
0ab79fc
upgrade
pyramation Oct 3, 2022
490438c
upgrade Duration types
pyramation Oct 3, 2022
bf952dc
enums
pyramation Oct 5, 2022
4ad117f
enum spacing
pyramation Oct 5, 2022
62cae4c
enum spacing
pyramation Oct 5, 2022
3e0a94d
toJSON Duration
pyramation Oct 5, 2022
03010b4
RPC interface comments
pyramation Oct 5, 2022
52ce6a0
RPC comments
pyramation Oct 5, 2022
aa20326
tslint disable
pyramation Oct 11, 2022
4faa92c
optionality
pyramation Oct 11, 2022
adbc5e9
field optionality
pyramation Oct 11, 2022
e900392
pagination
pyramation Oct 11, 2022
e5b52bb
fix Misbehavior
pyramation Oct 12, 2022
a95f405
context fix import as
pyramation Oct 12, 2022
c217be9
Merge branch 'telescope-upgrade' into telescope-with-ica
pyramation Oct 12, 2022
18ed7c5
telescope with ICA
pyramation Oct 12, 2022
fd3b502
Merge pull request #11 from pyramation/telescope-with-ica
pyramation Oct 12, 2022
a34ec0e
tslint
pyramation Oct 12, 2022
26d59cf
don't use DeepPartial to avoid TS compiler memory issue
pyramation Oct 12, 2022
2870c30
de-dup protos
pyramation Oct 13, 2022
4f5d7ba
use cosmos-sdk protos first
pyramation Oct 13, 2022
5e18772
scope TS compiler memory issue to Google protos only
pyramation Oct 13, 2022
79ef56c
add tendermint typings
pyramation Oct 13, 2022
6c2acfd
codegen
pyramation Oct 13, 2022
4e39f74
tendermint
pyramation Oct 13, 2022
0e715ba
types check
pyramation Oct 13, 2022
a199b97
update to/from JSON for json_name proto option
pyramation Oct 13, 2022
75a15fe
QueryClientImpl -> ServiceClientImpl for relevant services
pyramation Oct 13, 2022
2842408
services
pyramation Oct 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions bin/protoc-gen-ts_proto_yarn_2

This file was deleted.

8,898 changes: 8,641 additions & 257 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -4,7 +4,8 @@
"description": "JS and TS types relating to Protocol Buffers used by Cosmos-SDK and other related projects",
"contributors": [
"Simon Warta <webmaster128@users.noreply.github.com>",
"Will Clark <willclarktech@users.noreply.github.com>"
"Will Clark <willclarktech@users.noreply.github.com>",
"Dan Lynch <pyramation@gmail.com>"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥰

],
"license": "Apache-2.0",
"repository": {
Expand All @@ -29,7 +30,7 @@
],
"scripts": {
"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"codegen": "rm -rf ./src && ./scripts/codegen.sh && ./scripts/codegen-cosmos-sdk.sh && npm run format",
"codegen": "rm -rf ./src && ./scripts/codegen.js && npm run format",
"prepare-publishing": "./scripts/prepare-publishing.sh",
"build": "rm -rf ./build && tsc && npm run prepare-publishing"
},
Expand All @@ -38,10 +39,10 @@
"protobufjs": "~6.11.2"
},
"devDependencies": {
"@osmonauts/telescope": "^0.66.1",
"@types/long": "^4.0.1",
"@types/node": "^15.6.2",
"prettier": "^2.7.1",
"ts-proto": "^1.126.1",
"typescript": "~4.7"
}
}
87 changes: 0 additions & 87 deletions scripts/codegen-cosmos-sdk.sh

This file was deleted.

81 changes: 81 additions & 0 deletions scripts/codegen.js
@@ -0,0 +1,81 @@
#!/usr/bin/env node

const { join } = require('path');
const telescope = require('@osmonauts/telescope').default;

telescope({
protoDirs: [
'cosmos-sdk-0.45/proto',
'cosmos-sdk-0.45/third_party/proto',
'wasmd-0.28/proto',
'wasmd-0.28/third_party/proto',
],
outPath: join(__dirname, '/../src'),
options: {
logLevel: 2,
useSDKTypes: false,
tsDisable: {
disableAll: false
},
eslintDisable: {
disableAll: true
},
bundle: {
enabled: false
},
prototypes: {
includePackageVar: true,
excluded: {
protos: [
'cosmos/authz/v1beta1/event.proto',
'cosmos/base/reflection/v2alpha1/reflection.proto',
'cosmos/crypto/secp256r1/keys.proto',
'ibc/core/port/v1/query.proto',
'ibc/lightclients/solomachine/v2/solomachine.proto',
'tendermint/libs/bits/types.proto',
'google/api/httpbody.proto',
'tendermint/blockchain/types.proto',
'tendermint/consensus/types.proto',
'tendermint/consensus/wal.proto',
'tendermint/mempool/types.proto',
'tendermint/p2p/conn.proto',
'tendermint/p2p/pex.proto',
'tendermint/privval/types.proto',
'tendermint/rpc/grpc/types.proto',
'tendermint/state/types.proto',
'tendermint/statesync/types.proto',
'tendermint/store/types.proto',
'tendermint/types/canonical.proto',
'tendermint/types/events.proto',
]
},
methods: {
fromJSON: true,
toJSON: true
},
typingsFormat: {
useDeepPartial: false,
useExact: false,
timestamp: 'timestamp',
duration: 'duration'
}
},
lcdClients: {
enabled: false
},
rpcClients: {
enabled: true,
inline: true,
extensions: false,
camelCase: false
},
aminoEncoding: {
enabled: false
}
}
}).then(() => {
console.log('✨ All Done!');
}, (e) => {
console.error(e);
process.exit(1);
});
117 changes: 0 additions & 117 deletions scripts/codegen.sh

This file was deleted.