Skip to content

Commit

Permalink
wip: nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 11, 2025
1 parent 9b8ffce commit 4d5aa37
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .changeset/chilled-jobs-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
"@swapkit/wallet-evm-extensions": patch
"@swapkit/wallet-keepkey-bex": patch
"@swapkit/wallet-polkadotjs": patch
"@swapkit/plugin-chainflip": patch
"@swapkit/toolbox-cosmos": patch
"@swapkit/wallet-coinbase": patch
"@swapkit/wallet-keystore": patch
"@swapkit/wallet-talisman": patch
"@swapkit/helpers": patch
"@swapkit/wallet-phantom": patch
"@swapkit/tokens": patch
"@swapkit/wizard": patch
"@swapkit/toolbox-utxo": patch
"@swapkit/wallet-bitget": patch
"@swapkit/wallet-exodus": patch
"@swapkit/wallet-ledger": patch
"@swapkit/wallet-trezor": patch
"@swapkit/toolbox-evm": patch
"@swapkit/wallet-keplr": patch
"@swapkit/wallet-ctrl": patch
"@swapkit/api": patch
"@swapkit/wallet-okx": patch
"@swapkit/wallet-wc": patch
---

nightly bump
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import type { MultisigThresholdPubkey, Pubkey, Secp256k1HdWallet } from "@cosmjs/amino";
import type {
MultisigThresholdPubkey,
OfflineAminoSigner,
Pubkey,
Secp256k1HdWallet,
} from "@cosmjs/amino";
import type { EncodeObject, OfflineDirectSigner, Registry } from "@cosmjs/proto-signing";
import type { AminoTypes, Account as CosmosAccount } from "@cosmjs/stargate";
import type { Asset, AssetValue, Chain, ChainId, SwapKitNumber } from "@swapkit/helpers";
Expand Down Expand Up @@ -33,7 +38,7 @@ export type NodeUrl = {
};

export type DepositParam = {
signer?: OfflineDirectSigner;
signer?: OfflineDirectSigner | OfflineAminoSigner;
walletIndex?: number;
assetValue: AssetValue;
memo: string;
Expand Down
19 changes: 19 additions & 0 deletions packages/wallets/keplr/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
filterSupportedChains,
setRequestClientConfig,
} from "@swapkit/helpers";
import type { ThorchainToolboxType } from "@swapkit/toolbox-cosmos";
import { chainRegistry } from "./chainRegistry";

declare global {
Expand Down Expand Up @@ -71,8 +72,26 @@ function connectKeplr({
from: params.from || address,
});

const deposit =
chain === Chain.THORChain
? {
deposit: (params: {
from?: string;
assetValue: AssetValue;
memo?: string;
}) =>
(toolbox as ThorchainToolboxType).deposit({
...params,
signer: offlineSigner,
from: params.from || address,
memo: params.memo || "",
}),
}
: {};

addChain({
...toolbox,
...deposit,
chain,
transfer,
address,
Expand Down

0 comments on commit 4d5aa37

Please sign in to comment.