@swapkit/toolboxes 4.15.9 → 4.15.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.cjs +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/utxo/index.cjs +1 -1
- package/dist/src/utxo/index.js +1 -1
- package/dist/types/__tests__/helpers.d.ts +0 -1
- package/dist/types/aptos/index.d.ts +0 -1
- package/dist/types/aptos/toolbox.d.ts +0 -1
- package/dist/types/aptos/types.d.ts +0 -1
- package/dist/types/cardano/index.d.ts +0 -1
- package/dist/types/cardano/toolbox.d.ts +0 -1
- package/dist/types/cardano/types.d.ts +0 -1
- package/dist/types/cosmos/index.d.ts +0 -1
- package/dist/types/cosmos/thorchainUtils/addressFormat.d.ts +0 -1
- package/dist/types/cosmos/thorchainUtils/index.d.ts +0 -1
- package/dist/types/cosmos/thorchainUtils/messages.d.ts +6 -7
- package/dist/types/cosmos/thorchainUtils/registry.d.ts +2 -3
- package/dist/types/cosmos/thorchainUtils/types/MsgCompiled.d.ts +0 -1
- package/dist/types/cosmos/thorchainUtils/types/client-types.d.ts +0 -1
- package/dist/types/cosmos/thorchainUtils/types/index.d.ts +0 -1
- package/dist/types/cosmos/toolbox/cosmos.d.ts +2 -3
- package/dist/types/cosmos/toolbox/index.d.ts +0 -1
- package/dist/types/cosmos/toolbox/thorchain.d.ts +7 -8
- package/dist/types/cosmos/types.d.ts +0 -1
- package/dist/types/cosmos/util.d.ts +3 -4
- package/dist/types/evm/api.d.ts +0 -1
- package/dist/types/evm/contracts/eth/multicall.d.ts +0 -1
- package/dist/types/evm/contracts/op/gasOracle.d.ts +0 -1
- package/dist/types/evm/helpers.d.ts +1 -2
- package/dist/types/evm/index.d.ts +0 -1
- package/dist/types/evm/toolbox/baseEVMToolbox.d.ts +0 -1
- package/dist/types/evm/toolbox/evm.d.ts +0 -1
- package/dist/types/evm/toolbox/index.d.ts +0 -1
- package/dist/types/evm/toolbox/op.d.ts +0 -1
- package/dist/types/evm/types.d.ts +0 -1
- package/dist/types/hypercore/helpers.d.ts +0 -1
- package/dist/types/hypercore/index.d.ts +0 -1
- package/dist/types/hypercore/signing.d.ts +0 -1
- package/dist/types/hypercore/toolbox.d.ts +0 -1
- package/dist/types/hypercore/types.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/near/helpers/core.d.ts +0 -1
- package/dist/types/near/helpers/gasEstimation.d.ts +0 -1
- package/dist/types/near/helpers/nep141.d.ts +0 -1
- package/dist/types/near/index.d.ts +0 -1
- package/dist/types/near/toolbox.d.ts +0 -1
- package/dist/types/near/types/contract.d.ts +0 -1
- package/dist/types/near/types/index.d.ts +0 -1
- package/dist/types/near/types/nep141.d.ts +0 -1
- package/dist/types/near/types/toolbox.d.ts +0 -1
- package/dist/types/near/types.d.ts +0 -1
- package/dist/types/radix/index.d.ts +0 -1
- package/dist/types/ripple/currency.d.ts +0 -1
- package/dist/types/ripple/index.d.ts +0 -1
- package/dist/types/ripple/tokens.d.ts +0 -1
- package/dist/types/solana/index.d.ts +0 -1
- package/dist/types/solana/toolbox.d.ts +0 -1
- package/dist/types/starknet/index.d.ts +0 -1
- package/dist/types/starknet/toolbox.d.ts +0 -1
- package/dist/types/starknet/types.d.ts +0 -1
- package/dist/types/stellar/index.d.ts +0 -1
- package/dist/types/stellar/toolbox.d.ts +0 -1
- package/dist/types/stellar/types.d.ts +0 -1
- package/dist/types/substrate/balance.d.ts +0 -1
- package/dist/types/substrate/index.d.ts +0 -1
- package/dist/types/substrate/substrate.d.ts +0 -1
- package/dist/types/substrate/types.d.ts +0 -1
- package/dist/types/sui/index.d.ts +0 -1
- package/dist/types/sui/toolbox.d.ts +0 -1
- package/dist/types/sui/types.d.ts +0 -1
- package/dist/types/ton/index.d.ts +0 -1
- package/dist/types/ton/toolbox.d.ts +0 -1
- package/dist/types/ton/types.d.ts +0 -1
- package/dist/types/tron/helpers/proto.d.ts +0 -1
- package/dist/types/tron/helpers/trongrid.d.ts +0 -1
- package/dist/types/tron/helpers/utils.d.ts +0 -1
- package/dist/types/tron/index.d.ts +0 -1
- package/dist/types/tron/toolbox.d.ts +0 -1
- package/dist/types/tron/types.d.ts +0 -1
- package/dist/types/types.d.ts +0 -1
- package/dist/types/utils.d.ts +0 -1
- package/dist/types/utxo/hdWallet.d.ts +0 -1
- package/dist/types/utxo/helpers/api.d.ts +0 -1
- package/dist/types/utxo/helpers/bchaddrjs.d.ts +1 -2
- package/dist/types/utxo/helpers/cashaddr.d.ts +0 -1
- package/dist/types/utxo/helpers/coinselect.d.ts +0 -1
- package/dist/types/utxo/helpers/index.d.ts +0 -1
- package/dist/types/utxo/helpers/txSize.d.ts +0 -1
- package/dist/types/utxo/helpers/xpubDerivation.d.ts +0 -1
- package/dist/types/utxo/index.d.ts +0 -1
- package/dist/types/utxo/toolbox/bitcoinCash.d.ts +3 -3
- package/dist/types/utxo/toolbox/index.d.ts +0 -1
- package/dist/types/utxo/toolbox/params.d.ts +0 -1
- package/dist/types/utxo/toolbox/utxo.d.ts +4 -4
- package/dist/types/utxo/toolbox/validators.d.ts +0 -1
- package/dist/types/utxo/toolbox/zcash.d.ts +1 -2
- package/dist/types/utxo/types.d.ts +0 -1
- package/package.json +77 -77
- package/dist/types/__tests__/helpers.d.ts.map +0 -1
- package/dist/types/aptos/index.d.ts.map +0 -1
- package/dist/types/aptos/toolbox.d.ts.map +0 -1
- package/dist/types/aptos/types.d.ts.map +0 -1
- package/dist/types/cardano/index.d.ts.map +0 -1
- package/dist/types/cardano/toolbox.d.ts.map +0 -1
- package/dist/types/cardano/types.d.ts.map +0 -1
- package/dist/types/cosmos/index.d.ts.map +0 -1
- package/dist/types/cosmos/thorchainUtils/addressFormat.d.ts.map +0 -1
- package/dist/types/cosmos/thorchainUtils/index.d.ts.map +0 -1
- package/dist/types/cosmos/thorchainUtils/messages.d.ts.map +0 -1
- package/dist/types/cosmos/thorchainUtils/registry.d.ts.map +0 -1
- package/dist/types/cosmos/thorchainUtils/types/MsgCompiled.d.ts.map +0 -1
- package/dist/types/cosmos/thorchainUtils/types/client-types.d.ts.map +0 -1
- package/dist/types/cosmos/thorchainUtils/types/index.d.ts.map +0 -1
- package/dist/types/cosmos/toolbox/cosmos.d.ts.map +0 -1
- package/dist/types/cosmos/toolbox/index.d.ts.map +0 -1
- package/dist/types/cosmos/toolbox/thorchain.d.ts.map +0 -1
- package/dist/types/cosmos/types.d.ts.map +0 -1
- package/dist/types/cosmos/util.d.ts.map +0 -1
- package/dist/types/evm/api.d.ts.map +0 -1
- package/dist/types/evm/contracts/eth/multicall.d.ts.map +0 -1
- package/dist/types/evm/contracts/op/gasOracle.d.ts.map +0 -1
- package/dist/types/evm/helpers.d.ts.map +0 -1
- package/dist/types/evm/index.d.ts.map +0 -1
- package/dist/types/evm/toolbox/baseEVMToolbox.d.ts.map +0 -1
- package/dist/types/evm/toolbox/evm.d.ts.map +0 -1
- package/dist/types/evm/toolbox/index.d.ts.map +0 -1
- package/dist/types/evm/toolbox/op.d.ts.map +0 -1
- package/dist/types/evm/types.d.ts.map +0 -1
- package/dist/types/hypercore/helpers.d.ts.map +0 -1
- package/dist/types/hypercore/index.d.ts.map +0 -1
- package/dist/types/hypercore/signing.d.ts.map +0 -1
- package/dist/types/hypercore/toolbox.d.ts.map +0 -1
- package/dist/types/hypercore/types.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/near/helpers/core.d.ts.map +0 -1
- package/dist/types/near/helpers/gasEstimation.d.ts.map +0 -1
- package/dist/types/near/helpers/nep141.d.ts.map +0 -1
- package/dist/types/near/index.d.ts.map +0 -1
- package/dist/types/near/toolbox.d.ts.map +0 -1
- package/dist/types/near/types/contract.d.ts.map +0 -1
- package/dist/types/near/types/index.d.ts.map +0 -1
- package/dist/types/near/types/nep141.d.ts.map +0 -1
- package/dist/types/near/types/toolbox.d.ts.map +0 -1
- package/dist/types/near/types.d.ts.map +0 -1
- package/dist/types/radix/index.d.ts.map +0 -1
- package/dist/types/ripple/currency.d.ts.map +0 -1
- package/dist/types/ripple/index.d.ts.map +0 -1
- package/dist/types/ripple/tokens.d.ts.map +0 -1
- package/dist/types/solana/index.d.ts.map +0 -1
- package/dist/types/solana/toolbox.d.ts.map +0 -1
- package/dist/types/starknet/index.d.ts.map +0 -1
- package/dist/types/starknet/toolbox.d.ts.map +0 -1
- package/dist/types/starknet/types.d.ts.map +0 -1
- package/dist/types/stellar/index.d.ts.map +0 -1
- package/dist/types/stellar/toolbox.d.ts.map +0 -1
- package/dist/types/stellar/types.d.ts.map +0 -1
- package/dist/types/substrate/balance.d.ts.map +0 -1
- package/dist/types/substrate/index.d.ts.map +0 -1
- package/dist/types/substrate/substrate.d.ts.map +0 -1
- package/dist/types/substrate/types.d.ts.map +0 -1
- package/dist/types/sui/index.d.ts.map +0 -1
- package/dist/types/sui/toolbox.d.ts.map +0 -1
- package/dist/types/sui/types.d.ts.map +0 -1
- package/dist/types/ton/index.d.ts.map +0 -1
- package/dist/types/ton/toolbox.d.ts.map +0 -1
- package/dist/types/ton/types.d.ts.map +0 -1
- package/dist/types/tron/helpers/proto.d.ts.map +0 -1
- package/dist/types/tron/helpers/trongrid.d.ts.map +0 -1
- package/dist/types/tron/helpers/utils.d.ts.map +0 -1
- package/dist/types/tron/index.d.ts.map +0 -1
- package/dist/types/tron/toolbox.d.ts.map +0 -1
- package/dist/types/tron/types.d.ts.map +0 -1
- package/dist/types/types.d.ts.map +0 -1
- package/dist/types/utils.d.ts.map +0 -1
- package/dist/types/utxo/hdWallet.d.ts.map +0 -1
- package/dist/types/utxo/helpers/api.d.ts.map +0 -1
- package/dist/types/utxo/helpers/bchaddrjs.d.ts.map +0 -1
- package/dist/types/utxo/helpers/cashaddr.d.ts.map +0 -1
- package/dist/types/utxo/helpers/coinselect.d.ts.map +0 -1
- package/dist/types/utxo/helpers/index.d.ts.map +0 -1
- package/dist/types/utxo/helpers/txSize.d.ts.map +0 -1
- package/dist/types/utxo/helpers/xpubDerivation.d.ts.map +0 -1
- package/dist/types/utxo/index.d.ts.map +0 -1
- package/dist/types/utxo/toolbox/bitcoinCash.d.ts.map +0 -1
- package/dist/types/utxo/toolbox/index.d.ts.map +0 -1
- package/dist/types/utxo/toolbox/params.d.ts.map +0 -1
- package/dist/types/utxo/toolbox/utxo.d.ts.map +0 -1
- package/dist/types/utxo/toolbox/validators.d.ts.map +0 -1
- package/dist/types/utxo/toolbox/zcash.d.ts.map +0 -1
- package/dist/types/utxo/types.d.ts.map +0 -1
|
@@ -3,7 +3,7 @@ import { type GenericTransferParams, SwapKitNumber, type TCLikeChain } from "@sw
|
|
|
3
3
|
import type { CosmosTransaction } from "@swapkit/helpers/api";
|
|
4
4
|
import { buildEncodedTxBody, createDefaultRegistry, createTransaction, parseAminoMessageForDirectSigning } from "../thorchainUtils";
|
|
5
5
|
import type { CosmosToolboxParams, MultiSigSigner, MultisigTx } from "../types";
|
|
6
|
-
declare function createMultisig(pubKeys: string[], threshold: number, noSortPubKeys?: boolean): Promise<import("@cosmjs/amino").MultisigThresholdPubkey>;
|
|
6
|
+
declare function createMultisig(pubKeys: string[], threshold: number, noSortPubKeys?: boolean): Promise<import("@cosmjs/amino/build").MultisigThresholdPubkey>;
|
|
7
7
|
declare function importSignature(signature: string): Uint8Array<ArrayBufferLike>;
|
|
8
8
|
declare function signWithPrivateKey({ privateKey, message }: {
|
|
9
9
|
privateKey: Uint8Array;
|
|
@@ -58,8 +58,8 @@ export declare function createThorchainToolbox({ chain, ...toolboxParams }: Cosm
|
|
|
58
58
|
memo: string;
|
|
59
59
|
signer: string;
|
|
60
60
|
};
|
|
61
|
-
}, chain: TCLikeChain) => Promise<import("@cosmjs/proto-signing").EncodeObject>;
|
|
62
|
-
createDefaultAminoTypes: () => Promise<import("@cosmjs/stargate").AminoTypes>;
|
|
61
|
+
}, chain: TCLikeChain) => Promise<import("@cosmjs/proto-signing/build").EncodeObject>;
|
|
62
|
+
createDefaultAminoTypes: () => Promise<import("@cosmjs/stargate/build").AminoTypes>;
|
|
63
63
|
createDefaultRegistry: typeof createDefaultRegistry;
|
|
64
64
|
createMultisig: typeof createMultisig;
|
|
65
65
|
createTransaction: typeof createTransaction;
|
|
@@ -80,7 +80,7 @@ export declare function createThorchainToolbox({ chain, ...toolboxParams }: Cosm
|
|
|
80
80
|
wallet: Secp256k1HdWallet;
|
|
81
81
|
tx: string | MultisigTx;
|
|
82
82
|
}) => Promise<{
|
|
83
|
-
bodyBytes: Uint8Array<
|
|
83
|
+
bodyBytes: Uint8Array<ArrayBuffer>;
|
|
84
84
|
signature: string;
|
|
85
85
|
}>;
|
|
86
86
|
signTransaction: (transaction: CosmosTransaction) => Promise<import("cosmjs-types/cosmos/tx/v1beta1/tx").TxRaw>;
|
|
@@ -90,7 +90,7 @@ export declare function createThorchainToolbox({ chain, ...toolboxParams }: Cosm
|
|
|
90
90
|
}) => Promise<string>;
|
|
91
91
|
createPrivateKeyFromPhrase: (phrase: string) => Promise<Uint8Array<ArrayBufferLike>>;
|
|
92
92
|
fetchFeeRateFromSwapKit: typeof import("./cosmos").fetchFeeRateFromSwapKit;
|
|
93
|
-
getAccount: (address: string) => Promise<import("@cosmjs/stargate").Account | null>;
|
|
93
|
+
getAccount: (address: string) => Promise<import("@cosmjs/stargate/build").Account | null>;
|
|
94
94
|
getAddress: () => Promise<string | undefined>;
|
|
95
95
|
getBalance: (address: string, _potentialScamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
96
96
|
getBalanceAsDenoms: (address: string) => Promise<{
|
|
@@ -101,8 +101,8 @@ export declare function createThorchainToolbox({ chain, ...toolboxParams }: Cosm
|
|
|
101
101
|
getSignerFromPhrase: ({ phrase, derivationPath }: {
|
|
102
102
|
phrase: string;
|
|
103
103
|
derivationPath: import("@swapkit/helpers").DerivationPathArray;
|
|
104
|
-
}) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1HdWallet>;
|
|
105
|
-
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
104
|
+
}) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1HdWallet>;
|
|
105
|
+
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
106
106
|
validateAddress: (address: string) => boolean;
|
|
107
107
|
verifySignature: ({ signature, message, address, }: {
|
|
108
108
|
signature: string;
|
|
@@ -111,4 +111,3 @@ export declare function createThorchainToolbox({ chain, ...toolboxParams }: Cosm
|
|
|
111
111
|
}) => Promise<boolean>;
|
|
112
112
|
};
|
|
113
113
|
export {};
|
|
114
|
-
//# sourceMappingURL=thorchain.d.ts.map
|
|
@@ -34,9 +34,9 @@ export declare function getDefaultChainFee(chain: CosmosChain): {
|
|
|
34
34
|
};
|
|
35
35
|
export declare const getMsgSendDenom: (symbol: string, isThorchain?: boolean) => string;
|
|
36
36
|
export declare const getDenomWithChain: ({ symbol, chain }: AssetValue) => string;
|
|
37
|
-
export declare function createStargateClient(url: string): Promise<import("@cosmjs/stargate").StargateClient>;
|
|
38
|
-
export declare function createSigningStargateClient(url: string, signer: OfflineSigner, optionsOrBaseGas?: string | SigningStargateClientOptions): Promise<import("@cosmjs/stargate").SigningStargateClient>;
|
|
39
|
-
export declare function createOfflineStargateClient(wallet: OfflineSigner, registry?: SigningStargateClientOptions): Promise<import("@cosmjs/stargate").SigningStargateClient>;
|
|
37
|
+
export declare function createStargateClient(url: string): Promise<import("@cosmjs/stargate/build").StargateClient>;
|
|
38
|
+
export declare function createSigningStargateClient(url: string, signer: OfflineSigner, optionsOrBaseGas?: string | SigningStargateClientOptions): Promise<import("@cosmjs/stargate/build").SigningStargateClient>;
|
|
39
|
+
export declare function createOfflineStargateClient(wallet: OfflineSigner, registry?: SigningStargateClientOptions): Promise<import("@cosmjs/stargate/build").SigningStargateClient>;
|
|
40
40
|
/**
|
|
41
41
|
* Used to build tx for Cosmos and Kujira
|
|
42
42
|
*/
|
|
@@ -71,4 +71,3 @@ export declare function cosmosCreateTransaction({ sender, recipient, assetValue,
|
|
|
71
71
|
* @returns AssetValue with the correct decimal conversion
|
|
72
72
|
*/
|
|
73
73
|
export declare const getAssetFromDenom: (denom: string, amount: string) => AssetValue;
|
|
74
|
-
//# sourceMappingURL=util.d.ts.map
|
package/dist/types/evm/api.d.ts
CHANGED
|
@@ -5,4 +5,3 @@ export declare function getEvmApi(chain: EVMChain): {
|
|
|
5
5
|
export declare function createCustomEvmApi(methods: ReturnType<typeof getEvmApi>): {
|
|
6
6
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=api.d.ts.map
|
|
@@ -20,7 +20,7 @@ export declare function buildEIP712DomainType(domain: {
|
|
|
20
20
|
verifyingContract?: null | string;
|
|
21
21
|
version?: null | string;
|
|
22
22
|
}): {
|
|
23
|
-
name: "chainId" | "
|
|
23
|
+
name: "chainId" | "name" | "version" | "verifyingContract" | "salt";
|
|
24
24
|
type: "string" | "address" | "uint256" | "bytes32";
|
|
25
25
|
}[];
|
|
26
26
|
export declare function parseEIP712FromEVMTx({ chain, abi, data, to, }: {
|
|
@@ -36,4 +36,3 @@ export declare function parseEIP712FromEVMTx({ chain, abi, data, to, }: {
|
|
|
36
36
|
* @throws SwapKitError if any authorization is invalid or array is empty
|
|
37
37
|
*/
|
|
38
38
|
export declare function validateAuthorizations(authorizations: Authorization[], expectedChainId?: bigint): void;
|
|
39
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -89,4 +89,3 @@ export declare const isEIP1559Transaction: (tx: EVMTxParams) => boolean;
|
|
|
89
89
|
type EVMTxType = "eip7702" | "eip1559" | "legacy";
|
|
90
90
|
export declare const getEVMTxType: (tx: EVMTxParams, isEIP1559Compatible?: boolean) => EVMTxType;
|
|
91
91
|
export {};
|
|
92
|
-
//# sourceMappingURL=baseEVMToolbox.d.ts.map
|
|
@@ -904,4 +904,3 @@ export declare const MEGAETHToolbox: ({ provider, ...toolboxParams }: EVMToolbox
|
|
|
904
904
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
905
905
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
906
906
|
};
|
|
907
|
-
//# sourceMappingURL=evm.d.ts.map
|
|
@@ -66,4 +66,3 @@ export declare function OPToolbox({ provider, ...toolboxSignerParams }: EVMToolb
|
|
|
66
66
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, ...tx }: import("..").EVMTransferParams) => Promise<string>;
|
|
67
67
|
validateAddress: typeof import("./baseEVMToolbox").validateEVMAddress;
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=op.d.ts.map
|
|
@@ -13,4 +13,3 @@ export declare function buildSendAssetAction({ amount, destination, destinationD
|
|
|
13
13
|
export declare function buildApproveAgentAction({ agentAddress, agentName, hyperliquidChain, nonce, signatureChainId, }: Omit<HyperCoreApproveAgentAction, "type">): HyperCoreApproveAgentAction;
|
|
14
14
|
export declare function buildApproveBuilderFeeAction({ builder, hyperliquidChain, maxFeeRate, nonce, signatureChainId, }: Omit<HyperCoreApproveBuilderFeeAction, "type">): HyperCoreApproveBuilderFeeAction;
|
|
15
15
|
export declare function buildTokenDelegateAction({ hyperliquidChain, isUndelegate, nonce, signatureChainId, validator, wei, }: Omit<HyperCoreTokenDelegateAction, "type">): HyperCoreTokenDelegateAction;
|
|
16
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -7,4 +7,3 @@ export declare function getActionHash(action: HyperCoreL1Action, nonce: number,
|
|
|
7
7
|
vaultAddress?: string;
|
|
8
8
|
}): string;
|
|
9
9
|
export declare function normalizeUserSignedAction<TAction extends HyperCoreUserSignedAction>(action: TAction): TAction;
|
|
10
|
-
//# sourceMappingURL=signing.d.ts.map
|
|
@@ -256,4 +256,3 @@ export type HyperCoreSignedActionRequest<TAction extends HyperCoreL1Action | Hyp
|
|
|
256
256
|
export type HyperCoreUnsignedRequest = HyperCoreTransferTransaction | HyperCoreUnsignedL1ActionRequest | HyperCoreUnsignedUserSignedActionRequest;
|
|
257
257
|
export type HyperCoreSignedRequest = HyperCoreSignedActionRequest;
|
|
258
258
|
export {};
|
|
259
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -38,4 +38,3 @@ export declare function estimateBatchGas(actions: any[]): string;
|
|
|
38
38
|
export declare function getContractMethodGas(methodName: string): "150";
|
|
39
39
|
export declare function tgasToGas(tgas: string): string;
|
|
40
40
|
export declare function gasToTGas(gas: string): string;
|
|
41
|
-
//# sourceMappingURL=gasEstimation.d.ts.map
|
|
@@ -7,4 +7,3 @@ export * from "./types";
|
|
|
7
7
|
export type NearWallet = ReturnType<typeof getNearToolbox>;
|
|
8
8
|
export type { NearCallParams, NearContractInterface, NearGasEstimateParams, } from "./types/contract";
|
|
9
9
|
export type { FungibleTokenMetadata, StorageBalance, StorageBalanceBounds, TokenTransferParams, } from "./types/nep141";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,4 +2,3 @@ export declare function isHexCurrency(code: string): boolean;
|
|
|
2
2
|
export declare function currencyToHex(currency: string): string;
|
|
3
3
|
export declare function hexToCurrency(hex: string): string;
|
|
4
4
|
export declare function normalizeCurrency(code: string): string;
|
|
5
|
-
//# sourceMappingURL=currency.d.ts.map
|
|
@@ -12,4 +12,3 @@ export declare const XRPL_KNOWN_TOKENS: XrplTokenInfo[];
|
|
|
12
12
|
export declare function getXrplTokenInfo(currency: string, issuer: string): Promise<XrplTokenInfo | null>;
|
|
13
13
|
export declare function getKnownTokensByIssuer(issuer: string): XrplTokenInfo[];
|
|
14
14
|
export declare function isKnownToken(currency: string, issuer: string): boolean;
|
|
15
|
-
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -2,4 +2,3 @@ import type { getStarknetToolbox } from "./toolbox";
|
|
|
2
2
|
export { createKeysForPath as starknetCreateKeysForPath, deriveStarknetKeys, getStarknetToolbox, validateStarknetAddress, } from "./toolbox";
|
|
3
3
|
export * from "./types";
|
|
4
4
|
export type StarknetWallet = ReturnType<typeof getStarknetToolbox>;
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -14,4 +14,3 @@ export declare function getChainflipBalance(api: ApiPromise, gasAsset: AssetValu
|
|
|
14
14
|
* Factory function to create chain-specific balance getter
|
|
15
15
|
*/
|
|
16
16
|
export declare function createBalanceGetter(chain: Chain, api: ApiPromise): (address?: string) => Promise<AssetValue[]>;
|
|
17
|
-
//# sourceMappingURL=balance.d.ts.map
|
|
@@ -2,4 +2,3 @@ export { getTronPrivateKeyFromMnemonic, getTronToolbox, validateTronAddress, } f
|
|
|
2
2
|
export type { TronApprovedParams, TronApproveParams, TronCreateTransactionParams, TronIsApprovedParams, TronSignedTransaction, TronSigner, TronToolboxOptions, TronTransaction, TronTransferParams, } from "./types";
|
|
3
3
|
import type { getTronToolbox } from "./toolbox";
|
|
4
4
|
export type TronWallet = ReturnType<typeof getTronToolbox>;
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/types.d.ts
CHANGED
package/dist/types/utils.d.ts
CHANGED
|
@@ -6,5 +6,4 @@ declare function isValidAddress(input: any): boolean;
|
|
|
6
6
|
declare function detectAddressNetwork(address: string): UtxoNetwork;
|
|
7
7
|
declare function toLegacyAddress(address: string): string;
|
|
8
8
|
declare function toCashAddress(address: string): string;
|
|
9
|
-
export { detectAddressNetwork, isValidAddress,
|
|
10
|
-
//# sourceMappingURL=bchaddrjs.d.ts.map
|
|
9
|
+
export { detectAddressNetwork, isValidAddress, toCashAddress, toLegacyAddress, UtxoNetwork };
|
|
@@ -19,4 +19,3 @@ export declare const getScriptTypeForAddress: (address: string) => UTXOScriptTyp
|
|
|
19
19
|
export declare const calculateTxSize: ({ inputs, outputs, feeRate }: UTXOCalculateTxSizeParams) => number;
|
|
20
20
|
export declare const getInputSize: (input: UTXOInputWithScriptType | UTXOType | UTXOSizeInput) => number;
|
|
21
21
|
export declare const getOutputSize: (output: TargetOutput, scriptType?: UTXOScriptType) => number;
|
|
22
|
-
//# sourceMappingURL=txSize.d.ts.map
|
|
@@ -7,4 +7,3 @@ export type DeriveAddressesFromXpubParams = HDWalletAccountParams & {
|
|
|
7
7
|
startIndex?: number;
|
|
8
8
|
};
|
|
9
9
|
export declare function deriveAddressesFromXpub({ xpub, chain, count, startIndex, accountIndex, }: DeriveAddressesFromXpubParams): DerivedAddress[];
|
|
10
|
-
//# sourceMappingURL=xpubDerivation.d.ts.map
|
|
@@ -5,4 +5,3 @@ export * from "./toolbox/bitcoinCash";
|
|
|
5
5
|
export { addInputsAndOutputs, addressFromKeysGetter, createUTXOToolbox, getNetworkForChain, getUTXOAddressValidator, nonSegwitChains, validateUtxoAddress, } from "./toolbox/utxo";
|
|
6
6
|
export * from "./toolbox/zcash";
|
|
7
7
|
export * from "./types";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -22,6 +22,7 @@ export declare function createBCHToolbox<T extends typeof Chain.BitcoinCash>(too
|
|
|
22
22
|
fastest: number;
|
|
23
23
|
}>;
|
|
24
24
|
signAndBroadcastTransaction: (tx: InstanceType<typeof Transaction>) => Promise<string>;
|
|
25
|
+
signTransaction: (tx: InstanceType<typeof Transaction>) => any;
|
|
25
26
|
stripPrefix: typeof stripPrefix;
|
|
26
27
|
stripToCashAddress: typeof stripToCashAddress;
|
|
27
28
|
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: UTXOTransferParams) => Promise<string>;
|
|
@@ -39,7 +40,7 @@ export declare function createBCHToolbox<T extends typeof Chain.BitcoinCash>(too
|
|
|
39
40
|
derivationPath?: string;
|
|
40
41
|
}) => {
|
|
41
42
|
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
42
|
-
publicKey: Uint8Array<ArrayBufferLike>;
|
|
43
|
+
publicKey: Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>;
|
|
43
44
|
};
|
|
44
45
|
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: import("..").RBFTransactionParams) => Promise<import("./utxo").ReplacementTransactionResult>;
|
|
45
46
|
deriveAddressAtIndex: ({ accountIndex, index, change }: import("..").DeriveAddressParams) => {
|
|
@@ -105,7 +106,7 @@ export declare function createBCHToolbox<T extends typeof Chain.BitcoinCash>(too
|
|
|
105
106
|
isRBFEnabled: (txid: string) => Promise<import("./utxo").RBFStatusResult>;
|
|
106
107
|
keys: {
|
|
107
108
|
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
108
|
-
publicKey: Uint8Array<ArrayBufferLike>;
|
|
109
|
+
publicKey: Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>;
|
|
109
110
|
} | undefined;
|
|
110
111
|
resolveDerivationIndex: ({ address, gapLimit }: import("..").ResolveDerivationParams) => {
|
|
111
112
|
change: boolean;
|
|
@@ -159,4 +160,3 @@ declare function getAddressFromKeys(keys: {
|
|
|
159
160
|
publicKey: Uint8Array;
|
|
160
161
|
}): string;
|
|
161
162
|
export {};
|
|
162
|
-
//# sourceMappingURL=bitcoinCash.d.ts.map
|
|
@@ -27,4 +27,3 @@ export { type DeriveAddressesFromXpubParams, deriveAddressesFromXpub } from "../
|
|
|
27
27
|
export { stripToCashAddress } from "./bitcoinCash";
|
|
28
28
|
export * from "./params";
|
|
29
29
|
export { stripPrefix, validateBchAddress, validateZcashAddress } from "./validators";
|
|
30
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -23,7 +23,7 @@ export declare function createKeysForPath({ phrase, derivationPath, chain, wif,
|
|
|
23
23
|
seed?: Uint8Array;
|
|
24
24
|
}): {
|
|
25
25
|
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
26
|
-
publicKey: Uint8Array<ArrayBufferLike>;
|
|
26
|
+
publicKey: Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>;
|
|
27
27
|
};
|
|
28
28
|
export declare function addInputsAndOutputs({ inputs, outputs, chain, tx, sender, compiledMemo, enableRBF, }: {
|
|
29
29
|
inputs: UTXOType[];
|
|
@@ -121,7 +121,7 @@ export declare function createUTXOToolbox<T extends UTXOChain>({ chain, ...toolb
|
|
|
121
121
|
derivationPath?: string;
|
|
122
122
|
}) => {
|
|
123
123
|
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
124
|
-
publicKey: Uint8Array<ArrayBufferLike>;
|
|
124
|
+
publicKey: Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>;
|
|
125
125
|
};
|
|
126
126
|
createReplacementTransaction: ({ txid, newFeeRate, recipient, memo, }: RBFTransactionParams) => Promise<ReplacementTransactionResult>;
|
|
127
127
|
createTransaction: typeof createTransaction;
|
|
@@ -177,13 +177,14 @@ export declare function createUTXOToolbox<T extends UTXOChain>({ chain, ...toolb
|
|
|
177
177
|
isRBFEnabled: (txid: string) => Promise<RBFStatusResult>;
|
|
178
178
|
keys: {
|
|
179
179
|
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
180
|
-
publicKey: Uint8Array<ArrayBufferLike>;
|
|
180
|
+
publicKey: Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>;
|
|
181
181
|
} | undefined;
|
|
182
182
|
resolveDerivationIndex: ({ address, gapLimit }: ResolveDerivationParams) => {
|
|
183
183
|
change: boolean;
|
|
184
184
|
index: number;
|
|
185
185
|
} | undefined;
|
|
186
186
|
signAndBroadcastTransaction: (tx: InstanceType<typeof Transaction>) => Promise<string>;
|
|
187
|
+
signTransaction: (tx: InstanceType<typeof Transaction>) => Transaction | Promise<Transaction>;
|
|
187
188
|
signTransactionWithMultipleKeys: ({ tx, inputDerivations, }: {
|
|
188
189
|
tx: InstanceType<typeof Transaction>;
|
|
189
190
|
inputDerivations: InputDerivation[];
|
|
@@ -203,4 +204,3 @@ export declare function createUTXOToolbox<T extends UTXOChain>({ chain, ...toolb
|
|
|
203
204
|
validateAddress: (address: string) => boolean;
|
|
204
205
|
};
|
|
205
206
|
export {};
|
|
206
|
-
//# sourceMappingURL=utxo.d.ts.map
|
|
@@ -110,7 +110,7 @@ export declare function createZcashToolbox(toolboxParams: {
|
|
|
110
110
|
isRBFEnabled: (txid: string) => Promise<import("./utxo").RBFStatusResult>;
|
|
111
111
|
keys: {
|
|
112
112
|
privateKey: import("@swapkit/utxo-signer/utils").Bytes;
|
|
113
|
-
publicKey: Uint8Array<ArrayBufferLike>;
|
|
113
|
+
publicKey: Uint8Array<ArrayBufferLike> & Uint8Array<ArrayBuffer>;
|
|
114
114
|
} | undefined;
|
|
115
115
|
resolveDerivationIndex: ({ address, gapLimit }: import("..").ResolveDerivationParams) => {
|
|
116
116
|
change: boolean;
|
|
@@ -131,4 +131,3 @@ export declare function createZcashToolbox(toolboxParams: {
|
|
|
131
131
|
}) => Promise<string>;
|
|
132
132
|
};
|
|
133
133
|
export {};
|
|
134
|
-
//# sourceMappingURL=zcash.d.ts.map
|