Skip to content

Commit

Permalink
fix: update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed Jan 20, 2025
1 parent 5815d71 commit abdc4fa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
Binary file modified typescript-sdk/bun.lockb
Binary file not shown.
18 changes: 14 additions & 4 deletions typescript-sdk/patches/@cosmjs+tendermint-rpc+0.33.0.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js b/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js
index e8b2dc3..b5c540a 100644
index 29ec063..28a5c02 100644
--- a/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js
+++ b/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js
@@ -72,7 +72,7 @@ function decodePubkey(data) {
Expand All @@ -11,20 +11,25 @@ index e8b2dc3..b5c540a 100644
return {
algorithm,
data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(value)),
@@ -91,6 +91,11 @@ function decodePubkey(data) {
@@ -91,6 +91,16 @@ function decodePubkey(data) {
algorithm: "secp256k1",
data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
};
+ case "tendermint/PubKeyBn254":
+ return {
+ algorithm: "bn254",
+ data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
+ };
+ case "cometbft/PubKeyBn254":
+ return {
+ algorithm: "bn254",
+ data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
+ };
default:
throw new Error(`unknown pubkey type: ${data.type}`);
}
diff --git a/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js b/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js
index 5c9a406..0083a25 100644
index 19df9de..c73c4ca 100644
--- a/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js
+++ b/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js
@@ -72,7 +72,7 @@ function decodePubkey(data) {
Expand All @@ -36,14 +41,19 @@ index 5c9a406..0083a25 100644
return {
algorithm,
data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(value)),
@@ -91,6 +91,11 @@ function decodePubkey(data) {
@@ -91,6 +91,16 @@ function decodePubkey(data) {
algorithm: "secp256k1",
data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
};
+ case "tendermint/PubKeyBn254":
+ return {
+ algorithm: "bn254",
+ data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
+ };
+ case "cometbft/PubKeyBn254":
+ return {
+ algorithm: "bn254",
+ data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)),
+ };
default:
throw new Error(`unknown pubkey type: ${data.type}`);
Expand Down
2 changes: 1 addition & 1 deletion typescript-sdk/playground/union-to-holesky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import "scripts/patch.ts"
import { http } from "viem"
import { holesky } from "viem/chains"
import { parseArgs } from "node:util"
import { hexToBytes } from "#convert.ts"
import { raise } from "#utilities/index.ts"
import { consola } from "../scripts/logger.ts"
import { hexToBytes } from "#convert.ts"
import { privateKeyToAccount } from "viem/accounts"
import { DirectSecp256k1Wallet } from "@cosmjs/proto-signing"
import { createUnionClient, type TransferAssetsParameters } from "#mod.ts"
Expand Down
6 changes: 3 additions & 3 deletions typescript-sdk/src/pfm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ export async function getHubbleChainDetails({
Error
>
> {
if (sourceChainId === destinationChainId) {
return err(new Error("Source and destination chains cannot be the same"))
}
// if (sourceChainId === destinationChainId) {
// return err(new Error("Source and destination chains cannot be the same"))
// }

// const { data: chains } = await offchainQuery.chains({
// includeContracts: true,
Expand Down

0 comments on commit abdc4fa

Please sign in to comment.