@swapkit/toolboxes 4.15.10 → 4.15.12
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/tron/index.cjs +1 -1
- package/dist/src/tron/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 +1 -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 +1 -2
- 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 +1 -2
- 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
|
@@ -2,4 +2,3 @@ export declare function bech32ToBase64(address: string): string;
|
|
|
2
2
|
export declare function base64ToBech32(address: string, prefix?: string): `${Lowercase<string>}1${string}`;
|
|
3
3
|
export declare function toBase64(data: Uint8Array): string;
|
|
4
4
|
export declare function fromBase64(base64String: string): Uint8Array<ArrayBufferLike>;
|
|
5
|
-
//# sourceMappingURL=addressFormat.d.ts.map
|
|
@@ -62,7 +62,7 @@ export declare const buildAminoMsg: ({ sender, recipient, assetValue, memo, }: {
|
|
|
62
62
|
to_address: string | undefined;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
export declare const convertToSignable: (msg: MsgSend | MsgDeposit, chain: TCLikeChain) => Promise<import("@cosmjs/proto-signing").EncodeObject>;
|
|
65
|
+
export declare const convertToSignable: (msg: MsgSend | MsgDeposit, chain: TCLikeChain) => Promise<import("@cosmjs/proto-signing/build").EncodeObject>;
|
|
66
66
|
export declare function createTransaction(params: ThorchainCreateTransactionParams): Promise<{
|
|
67
67
|
accountNumber: number;
|
|
68
68
|
chainId: import("@swapkit/types").ChainId.Maya | import("@swapkit/types").ChainId.THORChain;
|
|
@@ -74,7 +74,7 @@ export declare function createTransaction(params: ThorchainCreateTransactionPara
|
|
|
74
74
|
gas: string;
|
|
75
75
|
};
|
|
76
76
|
memo: string;
|
|
77
|
-
msgs: (import("@cosmjs/proto-signing").EncodeObject | {
|
|
77
|
+
msgs: (import("@cosmjs/proto-signing/build").EncodeObject | {
|
|
78
78
|
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
79
79
|
value: {
|
|
80
80
|
amount: {
|
|
@@ -97,7 +97,7 @@ export declare function createTransaction(params: ThorchainCreateTransactionPara
|
|
|
97
97
|
gas: string;
|
|
98
98
|
};
|
|
99
99
|
memo: string;
|
|
100
|
-
msgs: (import("@cosmjs/proto-signing").EncodeObject | {
|
|
100
|
+
msgs: (import("@cosmjs/proto-signing/build").EncodeObject | {
|
|
101
101
|
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
102
102
|
value: {
|
|
103
103
|
coins: {
|
|
@@ -121,7 +121,7 @@ export declare function buildTransferTx({ sender, recipient, assetValue, memo, a
|
|
|
121
121
|
gas: string;
|
|
122
122
|
};
|
|
123
123
|
memo: string;
|
|
124
|
-
msgs: (import("@cosmjs/proto-signing").EncodeObject | {
|
|
124
|
+
msgs: (import("@cosmjs/proto-signing/build").EncodeObject | {
|
|
125
125
|
type: "thorchain/MsgSend" | "mayachain/MsgSend";
|
|
126
126
|
value: {
|
|
127
127
|
amount: {
|
|
@@ -145,7 +145,7 @@ export declare function buildDepositTx({ sender, assetValue, memo, asSignable, a
|
|
|
145
145
|
gas: string;
|
|
146
146
|
};
|
|
147
147
|
memo: string;
|
|
148
|
-
msgs: (import("@cosmjs/proto-signing").EncodeObject | {
|
|
148
|
+
msgs: (import("@cosmjs/proto-signing/build").EncodeObject | {
|
|
149
149
|
type: "thorchain/MsgDeposit" | "mayachain/MsgDeposit";
|
|
150
150
|
value: {
|
|
151
151
|
coins: {
|
|
@@ -203,6 +203,5 @@ export declare function buildEncodedTxBody({ chain, memo, msgs, }: {
|
|
|
203
203
|
msgs: DirectMsgDepositForBroadcast[] | DirectMsgSendForBroadcast[];
|
|
204
204
|
memo: string;
|
|
205
205
|
chain: TCLikeChain;
|
|
206
|
-
}): Promise<Uint8Array<
|
|
206
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
207
207
|
export {};
|
|
208
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { type TCLikeChain } from "@swapkit/helpers";
|
|
2
|
-
export declare function createDefaultRegistry(): Promise<import("@cosmjs/proto-signing").Registry>;
|
|
3
|
-
export declare function createDefaultAminoTypes(chain: TCLikeChain): Promise<import("@cosmjs/stargate").AminoTypes>;
|
|
4
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
2
|
+
export declare function createDefaultRegistry(): Promise<import("@cosmjs/proto-signing/build").Registry>;
|
|
3
|
+
export declare function createDefaultAminoTypes(chain: TCLikeChain): Promise<import("@cosmjs/stargate/build").AminoTypes>;
|
|
@@ -18,7 +18,7 @@ export declare function getSignerFromPhrase({ phrase, prefix, ...derivationParam
|
|
|
18
18
|
export declare function getSignerFromPrivateKey({ privateKey, prefix }: {
|
|
19
19
|
privateKey: Uint8Array;
|
|
20
20
|
prefix: string;
|
|
21
|
-
}): Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
21
|
+
}): Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
22
22
|
export declare function verifySignature(getAccount: (address: string) => Promise<Account | null>): ({ signature, message, address, }: {
|
|
23
23
|
signature: string;
|
|
24
24
|
message: string;
|
|
@@ -45,7 +45,7 @@ export declare function createCosmosToolbox({ chain, ...toolboxParams }: CosmosT
|
|
|
45
45
|
phrase: string;
|
|
46
46
|
derivationPath: DerivationPathArray;
|
|
47
47
|
}) => Promise<DirectSecp256k1HdWallet>;
|
|
48
|
-
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing").DirectSecp256k1Wallet>;
|
|
48
|
+
getSignerFromPrivateKey: (privateKey: Uint8Array) => Promise<import("@cosmjs/proto-signing/build").DirectSecp256k1Wallet>;
|
|
49
49
|
signAndBroadcastTransaction: (transaction: CosmosTransaction) => Promise<string>;
|
|
50
50
|
signTransaction: (transaction: CosmosTransaction) => Promise<TxRaw>;
|
|
51
51
|
transfer: ({ recipient, assetValue, memo, feeRate, feeOptionKey, }: GenericTransferParams) => Promise<string>;
|
|
@@ -61,4 +61,3 @@ export declare function estimateTransactionFee({ assetValue: { chain } }: {
|
|
|
61
61
|
assetValue: AssetValue;
|
|
62
62
|
}): AssetValue;
|
|
63
63
|
export declare function getCosmosAddressValidator(chain: CosmosChain): (address: string) => boolean;
|
|
64
|
-
//# sourceMappingURL=cosmos.d.ts.map
|
|
@@ -12,4 +12,3 @@ export type CosmosToolboxes = {
|
|
|
12
12
|
export declare const getCosmosToolbox: <T extends Exclude<CosmosChain, Chain.Harbor>>(chain: T, params?: Omit<CosmosToolboxParams, "chain">) => CosmosToolboxes[T];
|
|
13
13
|
export * from "./cosmos";
|
|
14
14
|
export * from "./thorchain";
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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
|
|
@@ -21,6 +21,7 @@ export declare function getTronChainParameters(): Promise<{
|
|
|
21
21
|
bandwidthFee: number;
|
|
22
22
|
createAccountFee: number;
|
|
23
23
|
energyFee: number;
|
|
24
|
+
memoFee: number;
|
|
24
25
|
}>;
|
|
25
26
|
export declare function getTronAccountResources(address: string): Promise<{
|
|
26
27
|
bandwidth: {
|
|
@@ -45,4 +46,3 @@ export declare function getTrc20Allowance({ assetAddress, owner, spender, }: {
|
|
|
45
46
|
owner: string;
|
|
46
47
|
spender: string;
|
|
47
48
|
}): Promise<bigint>;
|
|
48
|
-
//# sourceMappingURL=trongrid.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
|
|
@@ -12,7 +12,7 @@ export declare function getTronToolbox(options?: TronToolboxOptions): {
|
|
|
12
12
|
approve: ({ assetAddress, spenderAddress, amount, from }: TronApproveParams) => Promise<string>;
|
|
13
13
|
broadcastTransaction: typeof broadcastTronTransaction;
|
|
14
14
|
createTransaction: ({ recipient, assetValue, memo, sender, expiration }: TronCreateTransactionParams) => Promise<TronTransaction>;
|
|
15
|
-
estimateTransactionFee: ({ assetValue, recipient, sender }: TronTransferParams & {
|
|
15
|
+
estimateTransactionFee: ({ assetValue, memo, recipient, sender, }: TronTransferParams & {
|
|
16
16
|
sender?: string;
|
|
17
17
|
}) => Promise<AssetValue>;
|
|
18
18
|
getAddress: () => Promise<string>;
|
|
@@ -25,4 +25,3 @@ export declare function getTronToolbox(options?: TronToolboxOptions): {
|
|
|
25
25
|
transfer: ({ recipient, assetValue, memo, expiration }: TronTransferParams) => Promise<string>;
|
|
26
26
|
validateAddress: typeof isValidTronAddress;
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=toolbox.d.ts.map
|
package/dist/types/types.d.ts
CHANGED
package/dist/types/utils.d.ts
CHANGED