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

Upgrade to telescope #40

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
29 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
c590988
Merge pull request #2 from pyramation/upgrade-to-telescope-fixes
pyramation Oct 4, 2022
bf952dc
enums
pyramation Oct 5, 2022
7a8e052
Merge pull request #3 from pyramation/upgrade-to-telescope-fixes
pyramation Oct 5, 2022
4ad117f
enum spacing
pyramation Oct 5, 2022
00d33d3
Merge pull request #4 from pyramation/upgrade-to-telescope-fixes
pyramation Oct 5, 2022
62cae4c
enum spacing
pyramation Oct 5, 2022
659a21d
Merge pull request #5 from pyramation/upgrade-to-telescope-fixes
pyramation Oct 5, 2022
3e0a94d
toJSON Duration
pyramation Oct 5, 2022
9603c8a
Merge pull request #6 from pyramation/upgrade-to-telescope-fixes
pyramation Oct 5, 2022
03010b4
RPC interface comments
pyramation Oct 5, 2022
f66f8b0
Merge pull request #7 from pyramation/upgrade-to-telescope-fixes
pyramation Oct 5, 2022
52ce6a0
RPC comments
pyramation Oct 5, 2022
17b5f7b
Merge pull request #8 from pyramation/upgrade-to-telescope-fixes
pyramation Oct 5, 2022
aa20326
tslint disable
pyramation Oct 11, 2022
1d7e53f
Merge pull request #9 from pyramation/upgrade-to-telescope-fixes
pyramation Oct 11, 2022
e015c00
`yarn` -> `npm run`
pyramation Oct 11, 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.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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 && yarn format",
pyramation marked this conversation as resolved.
Show resolved Hide resolved
"prepare-publishing": "./scripts/prepare-publishing.sh",
"build": "rm -rf ./build && tsc && npm run prepare-publishing"
},
Expand All @@ -37,10 +37,10 @@
"protobufjs": "~6.11.2"
},
"devDependencies": {
"@osmonauts/telescope": "^0.52.0",
"@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.

64 changes: 64 additions & 0 deletions scripts/codegen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/usr/bin/env node

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

telescope({
protoDirs: [
'wasmd-0.25/proto',
'wasmd-0.25/third_party/proto',
'cosmos-sdk-0.45/proto',
'cosmos-sdk-0.45/third_party/proto'
],
outPath: join(__dirname, '/../src'),
options: {
useSDKTypes: 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'
]
},
methods: {
fromJSON: true,
toJSON: true
},
typingsFormat: {
useExact: true,
useDeepPartial: true,
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);
});
109 changes: 0 additions & 109 deletions scripts/codegen.sh

This file was deleted.