0.0.29 • Published 1 year ago

@haveanicedavid/cosmos-groups-ts v0.0.29

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
1 year ago

cosmos-groups-ts

Re-generating

  1. Copy proto files from cosmos sdk into /proto
  2. run buf export buf.build/cosmos/cosmos-sdk:$(curl -sS https://api.github.com/repos/cosmos/cosmos-sdk/commits/v0.46.1 | jq -r .sha) --output ./proto from the root directory (replacing with whatever branch of cosmos is used)
  3. yarn codegen - note: you might have to fix some errors in the proto files for this to run (typically issues with ;; semicolons)

Manual updates

These aren't ideal, and might point to an issue with type generation (or possibly something on the SDK side), but for the short term it's easiest just to run a manual search and replace on .ts files:

  1. Make all pagination types optional (replace pagination: with pagination?: in .ts files)
  2. Change passed parameters in src/codegen/cosmos/group/v1/query.lcd.ts to snake_case (should be fixed with this issue)
  3. Change GroupPolicyInfo response type:
    1. decision_policy: Any; -> decision_policy: ThresholdDecisionPolicy | PercentageDecisionPolicy;

TODO

  • Pagination doesn't seem to be working
  • Amino signing doesn't seem to be working correctly
  • Types aren't perfect. tsc won't run, and the project is forced to use babel to compile despite errors
0.0.28

1 year ago

0.0.29

1 year ago

0.0.25

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago