-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Telescope encoding Decimal (#10080)
closes: #10072 ## Description We can't use cosmjs/math because it uses bn.js which is huge. They've [decided not to remove it from cosmjs/math](cosmos/cosmjs#203) so we patched Telescope to use its own Decimal module. However the subset chosen started breaking with the use of Query modules. Updating the patch was a giant pain so instead this sources from a fork, https://github.com/agoric-labs/telescope/tree/agoric-safe/ When updating that fork, the assets have to be build and pushed because they're not published to NPM. Also, the code built should be compatible with what's currently published to NPM because the other packages will be sourced from there. Note that this fork is currently behind upstream (agoric-labs/telescope@agoric-safe...cosmology-tech:telescope:main ) because [this commit](agoric-labs/telescope@f1796e9) requires an unpublished [@cosmology/utils](https://www.npmjs.com/package/@cosmology/utils) (symption is `toPosixPath` undefined). ### Security Considerations sources from a repo using gitpkg.vercel.app which could modify the contents in transit. The yarn.lock doesn't have an integrity check for Git sources. However this code is only used for codegen so any malice or even error would be detected in the new output. ### Scaling Considerations n/a ### Documentation Considerations The fork updating process is not obvious. I hope the PR description suffices. ### Testing Considerations The new `build QueryDelegatorDelegationsResponse` test fails under master, showing that it solves the problem. ### Upgrade Considerations n/a
- Loading branch information
Showing
20 changed files
with
246 additions
and
1,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,5 @@ _testoutput.txt | |
|
||
|
||
junit.xml | ||
endo-sha.txt | ||
endo-sha.txt | ||
.aider* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
//@ts-nocheck | ||
/** | ||
* This file and any referenced files were automatically generated by @cosmology/telescope@1.7.1 | ||
* This file and any referenced files were automatically generated by @cosmology/telescope@1.8.3 | ||
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain | ||
* and run the transpile command or npm scripts command that is used to regenerate this bundle. | ||
*/ | ||
|
||
export type JsonSafe<T> = { | ||
[Prop in keyof T]: T[Prop] extends Uint8Array | bigint | Date | ||
? string | ||
: T[Prop]; | ||
}; | ||
export type JsonSafe<T> = T extends Uint8Array | bigint | Date | ||
? string | ||
: T extends Array<infer U> | ||
? Array<JsonSafe<U>> | ||
: T extends object | ||
? { [K in keyof T]: JsonSafe<T[K]> } | ||
: T; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.