-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "use Telescope-based cosmic-proto" (#253)
- Loading branch information
1 parent
b2f624b
commit 76acfef
Showing
8 changed files
with
357 additions
and
222 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { QueryClient, createProtobufRpcClient } from '@cosmjs/stargate'; | ||
import { | ||
QueryClientImpl, | ||
QueryParamsResponse, | ||
} from '@agoric/cosmic-proto/swingset/query.js'; | ||
import { HttpClient, Tendermint34Client } from '@cosmjs/tendermint-rpc'; | ||
|
||
/** | ||
* Query swingset params. | ||
*/ | ||
export const querySwingsetParams = async ( | ||
endpoint: string, | ||
): Promise<typeof QueryParamsResponse> => { | ||
const http = new HttpClient(endpoint); | ||
const trpc = await Tendermint34Client.create(http); | ||
const base = QueryClient.withExtensions(trpc); | ||
const rpc = createProtobufRpcClient(base); | ||
const queryService = new QueryClientImpl(rpc); | ||
|
||
return queryService.Params({}); | ||
}; |
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.