Skip to content

Commit

Permalink
feat(payments): add compat layer from bufbuild to cosmjs registry; dr…
Browse files Browse the repository at this point in the history
…op ts-proto
  • Loading branch information
tim-hm committed Oct 8, 2024
1 parent f95a10a commit d3ee19f
Show file tree
Hide file tree
Showing 11 changed files with 342 additions and 313 deletions.
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages/wasm/dist
packages/client-payments/src/proto/nilchain.ts
packages/client-payments/src/gen-proto
273 changes: 196 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/client-payments/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: v2
managed:
enabled: true
clean: true
plugins:
- local: protoc-gen-es
opt: target=ts
out: src/gen-proto
9 changes: 9 additions & 0 deletions packages/client-payments/buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: v2
modules:
- path: proto
lint:
use:
- STANDARD
breaking:
use:
- FILE
7 changes: 4 additions & 3 deletions packages/client-payments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"scripts": {
"clean": "rm -rf dist dist-test",
"build": "node esbuild.config.mjs",
"build:proto": "protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./src proto/nilchain.proto",
"build:watch": "node esbuild.config.mjs --watch",
"build:proto": "npx buf generate",
"test": "npx jasmine-browser-runner runSpecs --config=jasmine.config.mjs",
"test:build": "npx webpack --config webpack.config.mjs",
"test:build:watch": "npx webpack --config webpack.config.mjs --watch",
Expand All @@ -35,11 +35,12 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@bufbuild/buf": "^1.44.0",
"@bufbuild/protoc-gen-es": "^2.1.0",
"@keplr-wallet/types": "^0.12.130",
"@types/debug": "^4.1.12",
"browserslist": "^4.24.0",
"esbuild-plugin-browserslist": "^0.15.0",
"ts-proto": "^2.2.3"
"esbuild-plugin-browserslist": "^0.15.0"
},
"files": [
"dist",
Expand Down
Loading

0 comments on commit d3ee19f

Please sign in to comment.