-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ibc-union): implement QueryResponses and cw-orch function genera…
…tion
- Loading branch information
Showing
293 changed files
with
60,063 additions
and
1,986 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,23 @@ | ||
diff --git a/node_modules/@cosmjs/amino/build/pubkeys.js b/node_modules/@cosmjs/amino/build/pubkeys.js | ||
index e9844ef..86101f8 100644 | ||
--- a/node_modules/@cosmjs/amino/build/pubkeys.js | ||
+++ b/node_modules/@cosmjs/amino/build/pubkeys.js | ||
@@ -9,6 +9,10 @@ function isSecp256k1Pubkey(pubkey) { | ||
return pubkey.type === "tendermint/PubKeySecp256k1"; | ||
} | ||
exports.isSecp256k1Pubkey = isSecp256k1Pubkey; | ||
+function isBn254Pubkey(pubkey) { | ||
+ return pubkey.type === "tendermint/PubKeyBn254"; | ||
+} | ||
+exports.isBn254Pubkey = isBn254Pubkey; | ||
exports.pubkeyType = { | ||
/** @see https://github.com/tendermint/tendermint/blob/v0.33.0/crypto/ed25519/ed25519.go#L22 */ | ||
secp256k1: "tendermint/PubKeySecp256k1", | ||
@@ -16,6 +20,7 @@ exports.pubkeyType = { | ||
ed25519: "tendermint/PubKeyEd25519", | ||
/** @see https://github.com/tendermint/tendermint/blob/v0.33.0/crypto/sr25519/codec.go#L12 */ | ||
sr25519: "tendermint/PubKeySr25519", | ||
+ bn254: "tendermint/PubKeyBn254", | ||
multisigThreshold: "tendermint/PubKeyMultisigThreshold", | ||
}; | ||
function isSinglePubkey(pubkey) { |
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,73 @@ | ||
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 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) { | ||
if ("Sum" in data) { | ||
// we don't need to check type because we're checking algorithm | ||
const [[algorithm, value]] = Object.entries(data.Sum.value); | ||
- (0, utils_1.assert)(algorithm === "ed25519" || algorithm === "secp256k1", `unknown pubkey type: ${algorithm}`); | ||
+ (0, utils_1.assert)(algorithm === "ed25519" || algorithm === "secp256k1" || algorithm === "bn254", `unknown pubkey type: ${algorithm}`); | ||
return { | ||
algorithm, | ||
data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(value)), | ||
@@ -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 19df9de..0015044 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) { | ||
if ("Sum" in data) { | ||
// we don't need to check type because we're checking algorithm | ||
const [[algorithm, value]] = Object.entries(data.Sum.value); | ||
- (0, utils_1.assert)(algorithm === "ed25519" || algorithm === "secp256k1", `unknown pubkey type: ${algorithm}`); | ||
+ (0, utils_1.assert)(algorithm === "ed25519" || algorithm === "secp256k1" || algorithm === "bn254", `unknown pubkey type: ${algorithm}`); | ||
return { | ||
algorithm, | ||
data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(value)), | ||
@@ -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/tendermintclient.js b/node_modules/@cosmjs/tendermint-rpc/build/tendermintclient.js | ||
index 257b104..dbf2240 100644 | ||
--- a/node_modules/@cosmjs/tendermint-rpc/build/tendermintclient.js | ||
+++ b/node_modules/@cosmjs/tendermint-rpc/build/tendermintclient.js | ||
@@ -28,7 +28,7 @@ async function connectComet(endpoint) { | ||
if (version.startsWith("0.37.")) { | ||
out = tm37Client; | ||
} | ||
- else if (version.startsWith("0.38.")) { | ||
+ else if (version.startsWith("0.38.") || version.startsWith("1.0.")) { | ||
tm37Client.disconnect(); | ||
out = await comet38_1.Comet38Client.connect(endpoint); | ||
} |
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,32 @@ | ||
<script lang="ts"> | ||
import * as Tooltip from "$lib/components/ui/tooltip" | ||
import type { Chain } from "$lib/types.ts" | ||
// TODO: rename this component | ||
import TokenQualityLevel from "./components/token-quality-level.svelte" | ||
import { highlightItem } from "$lib/stores/highlight" | ||
import { cn } from "$lib/utilities/shadcn" | ||
// you can either pass in Chain or chains = chainId | ||
export let chains: Array<Chain> | null = null | ||
export let chainId: string | null = null | ||
export let chain: Chain | null = null | ||
export let highlightEnabled = true | ||
$: ch = chain ? chain : chains?.find(c => c.chain_id === chainId) | ||
$: chain_id = chain?.chain_id ? chain.chain_id : chainId | ||
</script> | ||
|
||
<!-- svelte-ignore a11y-interactive-supports-focus --> | ||
<!-- svelte-ignore a11y-no-static-element-interactions --> | ||
<span class="inline-flex items-center" | ||
on:mouseleave={() => highlightItem.set(null)} | ||
on:mouseenter={() => { | ||
highlightItem.set(chain_id ? { kind: "chain", chainId: chain_id} : null) | ||
}} | ||
> | ||
{#if !ch} | ||
Invalid chain: {#if chain_id}{chain_id}{/if} | ||
{:else} | ||
<div class={cn(highlightEnabled && $highlightItem?.kind === "chain" && $highlightItem.chainId === chain_id ? "bg-union-accent-300 dark:bg-union-accent-950" : "", "text-nowrap")}>{ch.display_name}</div> | ||
{#if ch.relayer_status.status !== "HEALTHY"}<Tooltip.Root><Tooltip.Trigger><TokenQualityLevel level={ch.relayer_status.status === "WARNING" ? "ONCHAIN" : "NONE"}/></Tooltip.Trigger><Tooltip.Content>{ch.relayer_status.message}</Tooltip.Content></Tooltip.Root>{/if} | ||
{/if} | ||
</span> |
Oops, something went wrong.