@swapkit/toolboxes 4.0.0 → 4.0.1
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/cosmos/index.cjs +2 -2
- package/dist/src/cosmos/index.cjs.map +8 -8
- package/dist/src/cosmos/index.js +2 -2
- package/dist/src/cosmos/index.js.map +8 -8
- package/dist/src/evm/index.cjs +2 -2
- package/dist/src/evm/index.cjs.map +12 -12
- package/dist/src/evm/index.js +2 -2
- package/dist/src/evm/index.js.map +12 -12
- package/dist/src/index.cjs +3 -3
- package/dist/src/index.cjs.map +45 -44
- package/dist/src/index.js +3 -3
- package/dist/src/index.js.map +45 -44
- package/dist/src/near/index.cjs +2 -2
- package/dist/src/near/index.cjs.map +8 -8
- package/dist/src/near/index.js +2 -2
- package/dist/src/near/index.js.map +8 -8
- package/dist/src/radix/index.cjs +2 -2
- package/dist/src/radix/index.cjs.map +3 -3
- package/dist/src/radix/index.js +2 -2
- package/dist/src/radix/index.js.map +3 -3
- package/dist/src/ripple/index.cjs +2 -2
- package/dist/src/ripple/index.cjs.map +3 -3
- package/dist/src/ripple/index.js +2 -2
- package/dist/src/ripple/index.js.map +3 -3
- package/dist/src/solana/index.cjs +2 -2
- package/dist/src/solana/index.cjs.map +4 -4
- package/dist/src/solana/index.js +2 -2
- package/dist/src/solana/index.js.map +4 -4
- package/dist/src/substrate/index.cjs +2 -2
- package/dist/src/substrate/index.cjs.map +5 -5
- package/dist/src/substrate/index.js +2 -2
- package/dist/src/substrate/index.js.map +5 -5
- package/dist/src/tron/index.cjs +2 -2
- package/dist/src/tron/index.cjs.map +5 -5
- package/dist/src/tron/index.js +2 -2
- package/dist/src/tron/index.js.map +5 -5
- package/dist/src/utxo/index.cjs +3 -3
- package/dist/src/utxo/index.cjs.map +14 -13
- package/dist/src/utxo/index.js +3 -3
- package/dist/src/utxo/index.js.map +14 -13
- package/dist/types/cosmos/thorchainUtils/addressFormat.d.ts.map +1 -1
- package/dist/types/cosmos/thorchainUtils/messages.d.ts +58 -58
- package/dist/types/cosmos/thorchainUtils/messages.d.ts.map +1 -1
- package/dist/types/cosmos/thorchainUtils/registry.d.ts.map +1 -1
- package/dist/types/cosmos/thorchainUtils/types/client-types.d.ts +2 -5
- package/dist/types/cosmos/thorchainUtils/types/client-types.d.ts.map +1 -1
- package/dist/types/cosmos/toolbox/cosmos.d.ts +19 -41
- package/dist/types/cosmos/toolbox/cosmos.d.ts.map +1 -1
- package/dist/types/cosmos/toolbox/thorchain.d.ts +45 -46
- package/dist/types/cosmos/toolbox/thorchain.d.ts.map +1 -1
- package/dist/types/cosmos/types.d.ts +5 -1
- package/dist/types/cosmos/types.d.ts.map +1 -1
- package/dist/types/cosmos/util.d.ts +10 -10
- package/dist/types/cosmos/util.d.ts.map +1 -1
- package/dist/types/evm/contracts/op/gasOracle.d.ts.map +1 -1
- package/dist/types/evm/helpers.d.ts +1 -15
- package/dist/types/evm/helpers.d.ts.map +1 -1
- package/dist/types/evm/index.d.ts +1 -1
- package/dist/types/evm/index.d.ts.map +1 -1
- package/dist/types/evm/toolbox/baseEVMToolbox.d.ts +14 -14
- package/dist/types/evm/toolbox/baseEVMToolbox.d.ts.map +1 -1
- package/dist/types/evm/toolbox/evm.d.ts +108 -108
- package/dist/types/evm/toolbox/evm.d.ts.map +1 -1
- package/dist/types/evm/toolbox/index.d.ts +97 -29
- package/dist/types/evm/toolbox/index.d.ts.map +1 -1
- package/dist/types/evm/toolbox/op.d.ts +36 -24
- package/dist/types/evm/toolbox/op.d.ts.map +1 -1
- package/dist/types/evm/types.d.ts +1 -1
- package/dist/types/evm/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/near/helpers/core.d.ts +1 -1
- package/dist/types/near/helpers/core.d.ts.map +1 -1
- package/dist/types/near/helpers/gasEstimation.d.ts +5 -5
- package/dist/types/near/helpers/gasEstimation.d.ts.map +1 -1
- package/dist/types/near/helpers/nep141.d.ts.map +1 -1
- package/dist/types/near/index.d.ts +4 -4
- package/dist/types/near/index.d.ts.map +1 -1
- package/dist/types/near/toolbox.d.ts.map +1 -1
- package/dist/types/near/types/contract.d.ts.map +1 -1
- package/dist/types/near/types/nep141.d.ts.map +1 -1
- package/dist/types/near/types/toolbox.d.ts.map +1 -1
- package/dist/types/near/types.d.ts +2 -2
- package/dist/types/near/types.d.ts.map +1 -1
- package/dist/types/radix/index.d.ts +2 -2
- package/dist/types/radix/index.d.ts.map +1 -1
- package/dist/types/ripple/index.d.ts +14 -11
- package/dist/types/ripple/index.d.ts.map +1 -1
- package/dist/types/solana/index.d.ts.map +1 -1
- package/dist/types/solana/toolbox.d.ts +10 -10
- package/dist/types/solana/toolbox.d.ts.map +1 -1
- package/dist/types/substrate/balance.d.ts.map +1 -1
- package/dist/types/substrate/substrate.d.ts +45 -45
- package/dist/types/substrate/substrate.d.ts.map +1 -1
- package/dist/types/substrate/types.d.ts +12 -12
- package/dist/types/substrate/types.d.ts.map +1 -1
- package/dist/types/tron/helpers/trongrid.d.ts.map +1 -1
- package/dist/types/tron/index.d.ts +2 -2
- package/dist/types/tron/index.d.ts.map +1 -1
- package/dist/types/tron/toolbox.d.ts +1 -1
- package/dist/types/tron/toolbox.d.ts.map +1 -1
- package/dist/types/tron/types.d.ts.map +1 -1
- package/dist/types/utxo/helpers/api.d.ts +15 -15
- package/dist/types/utxo/helpers/api.d.ts.map +1 -1
- package/dist/types/utxo/helpers/bchaddrjs.d.ts.map +1 -1
- package/dist/types/utxo/helpers/coinselect.d.ts +4 -4
- package/dist/types/utxo/helpers/coinselect.d.ts.map +1 -1
- package/dist/types/utxo/helpers/txSize.d.ts.map +1 -1
- package/dist/types/utxo/index.d.ts +1 -1
- package/dist/types/utxo/index.d.ts.map +1 -1
- package/dist/types/utxo/toolbox/bitcoinCash.d.ts +26 -38
- package/dist/types/utxo/toolbox/bitcoinCash.d.ts.map +1 -1
- package/dist/types/utxo/toolbox/index.d.ts +3 -3
- package/dist/types/utxo/toolbox/index.d.ts.map +1 -1
- package/dist/types/utxo/toolbox/utxo.d.ts +27 -38
- package/dist/types/utxo/toolbox/utxo.d.ts.map +1 -1
- package/dist/types/utxo/toolbox/validators.d.ts +4 -0
- package/dist/types/utxo/toolbox/validators.d.ts.map +1 -0
- package/dist/types/utxo/toolbox/zcash.d.ts +26 -37
- package/dist/types/utxo/toolbox/zcash.d.ts.map +1 -1
- package/dist/types/utxo/types.d.ts.map +1 -1
- package/package.json +15 -22
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Chain, type DerivationPathArray, FeeOption } from "@swapkit/helpers";
|
|
2
2
|
import { Psbt } from "bitcoinjs-lib";
|
|
3
|
+
import { accumulative } from "../helpers";
|
|
3
4
|
import type { BchECPair, TargetOutput, TransactionBuilderType, UTXOBuildTxParams, UTXOTransferParams, UTXOType } from "../types";
|
|
4
5
|
import type { UtxoToolboxParams } from "./index";
|
|
5
|
-
|
|
6
|
-
export declare function bchValidateAddress(address: string): boolean;
|
|
6
|
+
import { bchValidateAddress, stripPrefix } from "./validators";
|
|
7
7
|
export declare function stripToCashAddress(address: string): string;
|
|
8
8
|
export declare function createBCHToolbox<T extends Chain.BitcoinCash>(toolboxParams: UtxoToolboxParams[T] | {
|
|
9
9
|
phrase?: string;
|
|
10
10
|
derivationPath?: DerivationPathArray;
|
|
11
11
|
index?: number;
|
|
12
12
|
}): Promise<{
|
|
13
|
-
getAddress: () => Promise<string | undefined>;
|
|
14
13
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
15
|
-
createTransaction: typeof createTransaction;
|
|
16
14
|
buildTx: typeof buildTx;
|
|
15
|
+
createTransaction: typeof createTransaction;
|
|
16
|
+
getAddress: () => Promise<string | undefined>;
|
|
17
17
|
getAddressFromKeys: typeof getAddressFromKeys;
|
|
18
18
|
getBalance: (address: string, _scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
19
19
|
getFeeRates: () => Promise<{
|
|
@@ -23,34 +23,38 @@ export declare function createBCHToolbox<T extends Chain.BitcoinCash>(toolboxPar
|
|
|
23
23
|
}>;
|
|
24
24
|
stripPrefix: typeof stripPrefix;
|
|
25
25
|
stripToCashAddress: typeof stripToCashAddress;
|
|
26
|
-
validateAddress: typeof bchValidateAddress;
|
|
27
26
|
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: UTXOTransferParams) => Promise<string>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
chain: import("@swapkit/helpers").UTXOChain;
|
|
31
|
-
changeAddress?: string;
|
|
32
|
-
}) => {
|
|
33
|
-
inputs: (UTXOType | import("..").UTXOInputWithScriptType)[];
|
|
34
|
-
outputs: TargetOutput[];
|
|
35
|
-
fee: number;
|
|
36
|
-
} | {
|
|
37
|
-
fee: number;
|
|
38
|
-
inputs?: undefined;
|
|
39
|
-
outputs?: undefined;
|
|
40
|
-
};
|
|
27
|
+
validateAddress: typeof bchValidateAddress;
|
|
28
|
+
accumulative: typeof accumulative;
|
|
41
29
|
calculateTxSize: ({ inputs, outputs, feeRate }: import("..").UTXOCalculateTxSizeParams) => number;
|
|
42
30
|
createKeysForPath: (params: {
|
|
43
31
|
wif?: string;
|
|
44
32
|
phrase?: string;
|
|
45
33
|
derivationPath?: string;
|
|
46
34
|
}) => BchECPair;
|
|
35
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
36
|
+
from: string;
|
|
37
|
+
memo?: string;
|
|
38
|
+
feeRate?: number;
|
|
39
|
+
feeOptionKey?: FeeOption;
|
|
40
|
+
recipients?: number | TargetOutput[];
|
|
41
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
42
|
+
estimateTransactionFee: (params: {
|
|
43
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
44
|
+
recipient: string;
|
|
45
|
+
sender: string;
|
|
46
|
+
memo?: string;
|
|
47
|
+
feeOptionKey?: FeeOption;
|
|
48
|
+
feeRate?: number;
|
|
49
|
+
fetchTxHex?: boolean;
|
|
50
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
47
51
|
getInputsOutputsFee: ({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<UTXOBuildTxParams, "feeRate"> & {
|
|
48
52
|
feeOptionKey?: FeeOption;
|
|
49
53
|
feeRate?: number;
|
|
50
54
|
}) => Promise<{
|
|
55
|
+
fee: number;
|
|
51
56
|
inputs: (UTXOType | import("..").UTXOInputWithScriptType)[];
|
|
52
57
|
outputs: TargetOutput[];
|
|
53
|
-
fee: number;
|
|
54
58
|
} | {
|
|
55
59
|
fee: number;
|
|
56
60
|
inputs?: undefined;
|
|
@@ -60,30 +64,15 @@ export declare function createBCHToolbox<T extends Chain.BitcoinCash>(toolboxPar
|
|
|
60
64
|
phrase: string;
|
|
61
65
|
derivationPath: string;
|
|
62
66
|
}) => string;
|
|
63
|
-
estimateTransactionFee: (params: {
|
|
64
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
65
|
-
recipient: string;
|
|
66
|
-
sender: string;
|
|
67
|
-
memo?: string;
|
|
68
|
-
feeOptionKey?: FeeOption;
|
|
69
|
-
feeRate?: number;
|
|
70
|
-
fetchTxHex?: boolean;
|
|
71
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
72
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
73
|
-
from: string;
|
|
74
|
-
memo?: string;
|
|
75
|
-
feeRate?: number;
|
|
76
|
-
feeOptionKey?: FeeOption;
|
|
77
|
-
recipients?: number | TargetOutput[];
|
|
78
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
79
67
|
}>;
|
|
80
|
-
declare function createTransaction({ assetValue, recipient, memo, feeRate, sender
|
|
68
|
+
declare function createTransaction({ assetValue, recipient, memo, feeRate, sender }: UTXOBuildTxParams): Promise<{
|
|
81
69
|
builder: TransactionBuilderType;
|
|
82
70
|
utxos: (UTXOType | import("..").UTXOInputWithScriptType)[];
|
|
83
71
|
}>;
|
|
84
72
|
declare function buildTx({ assetValue, recipient, memo, feeRate, sender, setSigHashType, }: UTXOBuildTxParams & {
|
|
85
73
|
setSigHashType?: boolean;
|
|
86
74
|
}): Promise<{
|
|
75
|
+
inputs: UTXOType[];
|
|
87
76
|
psbt: Psbt;
|
|
88
77
|
utxos: {
|
|
89
78
|
address: string;
|
|
@@ -92,11 +81,10 @@ declare function buildTx({ assetValue, recipient, memo, feeRate, sender, setSigH
|
|
|
92
81
|
txHex: string | undefined;
|
|
93
82
|
value: number;
|
|
94
83
|
witnessUtxo: {
|
|
95
|
-
value: number;
|
|
96
84
|
script: Buffer<ArrayBuffer>;
|
|
85
|
+
value: number;
|
|
97
86
|
};
|
|
98
87
|
}[];
|
|
99
|
-
inputs: UTXOType[];
|
|
100
88
|
}>;
|
|
101
89
|
declare function getAddressFromKeys(keys: {
|
|
102
90
|
getAddress: (index?: number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitcoinCash.d.ts","sourceRoot":"","sources":["../../../../src/utxo/toolbox/bitcoinCash.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,EAEL,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"bitcoinCash.d.ts","sourceRoot":"","sources":["../../../../src/utxo/toolbox/bitcoinCash.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,EAEL,KAAK,mBAAmB,EAExB,SAAS,EAIV,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,YAAY,EAA2E,MAAM,YAAY,CAAC;AACnH,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,sBAAsB,EAEtB,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACT,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI/D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,UAEjD;AAmBD,wBAAsB,gBAAgB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,EAChE,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,mBAAmB,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;0BAsB5E,MAAM;;;;;;;;iEAkFtC,kBAAkB;;;;;WAoFyjC,CAAC;cAAgB,CAAC;sBAAwB,CAAC;;;;YA7BxmC,CAAC;eAAqB,CAAC;oBAA0B,CAAC;kBAA2B,CAAC;;;;;;YA6B2V,CAAC;oBAA0B,CAAC;eAAwB,CAAC;kBAAwB,CAAC;;;oBA7Cre,CAAC;eAC9B,CAAA;;;;;;;;;;;;;;GAxGP;AAED,iBAAe,iBAAiB,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,iBAAiB;;;GA8CnG;AAkCD,iBAAe,OAAO,CAAC,EACrB,UAAU,EACV,SAAS,EACT,IAAI,EACJ,OAAO,EACP,MAAM,EACN,cAAc,GACf,EAAE,iBAAiB,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE;YAoDtB,QAAQ,EAAE;;;;;;;;;;;;;GACtC;AAED,iBAAS,kBAAkB,CAAC,IAAI,EAAE;IAAE,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;CAAE,UAG3E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { ZcashPsbt } from "@bitgo/utxo-lib/dist/src/bitgo";
|
|
1
2
|
import { Chain, type ChainSigner, type DerivationPathArray, type UTXOChain } from "@swapkit/helpers";
|
|
2
3
|
import type { Psbt } from "bitcoinjs-lib";
|
|
3
|
-
import type { ZcashPsbt } from "@bitgo/utxo-lib/dist/src/bitgo";
|
|
4
4
|
import type { TransactionBuilderType, TransactionType, UTXOType } from "../types";
|
|
5
5
|
import { createBCHToolbox } from "./bitcoinCash";
|
|
6
6
|
import { createUTXOToolbox } from "./utxo";
|
|
@@ -47,6 +47,6 @@ export declare function getUtxoToolbox<T extends keyof UTXOToolboxes>(chain: T,
|
|
|
47
47
|
derivationPath?: DerivationPathArray;
|
|
48
48
|
index?: number;
|
|
49
49
|
}): Promise<UTXOToolboxes[T]>;
|
|
50
|
-
export { stripToCashAddress
|
|
51
|
-
export { validateZcashAddress } from "./
|
|
50
|
+
export { stripToCashAddress } from "./bitcoinCash";
|
|
51
|
+
export { bchValidateAddress, stripPrefix, validateZcashAddress } from "./validators";
|
|
52
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utxo/toolbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utxo/toolbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAgB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACnH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,KAAK,UAAU,GAAG,OAAO,CAAC,U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CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;QAAE,MAAM,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;KAAE,CAAC;IACtD,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;KAAE,CAAC;IAClD,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;KAAE,CAAC;CAC/D,CAAC;AAEF,wBAAsB,cAAc,CAAC,CAAC,SAAS,MAAM,aAAa,EAChE,KAAK,EAAE,CAAC,EACR,MAAM,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,mBAAmB,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACxG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CA0B3B;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AssetValue, Chain, type DerivationPathArray, FeeOption, type UTXOChain } from "@swapkit/helpers";
|
|
2
2
|
import { Psbt } from "bitcoinjs-lib";
|
|
3
3
|
import type { ECPairInterface } from "ecpair";
|
|
4
|
+
import { accumulative } from "../helpers";
|
|
4
5
|
import type { BchECPair, TargetOutput, UTXOBuildTxParams, UTXOTransferParams, UTXOType } from "../types";
|
|
5
6
|
import type { UtxoToolboxParams } from "./index";
|
|
6
7
|
export declare const nonSegwitChains: Chain[];
|
|
@@ -12,8 +13,8 @@ export declare function addInputsAndOutputs({ inputs, outputs, chain, psbt, send
|
|
|
12
13
|
sender: string;
|
|
13
14
|
compiledMemo: Buffer<ArrayBufferLike> | null;
|
|
14
15
|
}): {
|
|
15
|
-
psbt: Psbt;
|
|
16
16
|
inputs: UTXOType[];
|
|
17
|
+
psbt: Psbt;
|
|
17
18
|
};
|
|
18
19
|
declare function createTransaction({ assetValue, recipient, memo, feeRate, sender, fetchTxHex, }: UTXOBuildTxParams): Promise<{
|
|
19
20
|
psbt: Psbt;
|
|
@@ -31,66 +32,54 @@ export declare function createUTXOToolbox<T extends UTXOChain>({ chain, ...toolb
|
|
|
31
32
|
}) & {
|
|
32
33
|
chain: T;
|
|
33
34
|
}): Promise<{
|
|
34
|
-
accumulative:
|
|
35
|
-
outputs: TargetOutput[];
|
|
36
|
-
chain: UTXOChain;
|
|
37
|
-
changeAddress?: string;
|
|
38
|
-
}) => {
|
|
39
|
-
inputs: (UTXOType | import("..").UTXOInputWithScriptType)[];
|
|
40
|
-
outputs: TargetOutput[];
|
|
41
|
-
fee: number;
|
|
42
|
-
} | {
|
|
43
|
-
fee: number;
|
|
44
|
-
inputs?: undefined;
|
|
45
|
-
outputs?: undefined;
|
|
46
|
-
};
|
|
47
|
-
calculateTxSize: ({ inputs, outputs, feeRate }: import("..").UTXOCalculateTxSizeParams) => number;
|
|
48
|
-
getAddressFromKeys: (keys: ECPairInterface | BchECPair) => string;
|
|
49
|
-
getAddress: () => Promise<string | undefined>;
|
|
50
|
-
validateAddress: (address: string) => boolean;
|
|
35
|
+
accumulative: typeof accumulative;
|
|
51
36
|
broadcastTx: (txHash: string) => Promise<string>;
|
|
52
|
-
|
|
37
|
+
calculateTxSize: ({ inputs, outputs, feeRate }: import("..").UTXOCalculateTxSizeParams) => number;
|
|
53
38
|
createKeysForPath: (params: {
|
|
54
39
|
wif?: string;
|
|
55
40
|
phrase?: string;
|
|
56
41
|
derivationPath?: string;
|
|
57
42
|
}) => CreateKeysForPathReturnType[T];
|
|
43
|
+
createTransaction: typeof createTransaction;
|
|
44
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
45
|
+
from: string;
|
|
46
|
+
memo?: string;
|
|
47
|
+
feeRate?: number;
|
|
48
|
+
feeOptionKey?: FeeOption;
|
|
49
|
+
recipients?: number | TargetOutput[];
|
|
50
|
+
}) => Promise<AssetValue>;
|
|
51
|
+
estimateTransactionFee: (params: {
|
|
52
|
+
assetValue: AssetValue;
|
|
53
|
+
recipient: string;
|
|
54
|
+
sender: string;
|
|
55
|
+
memo?: string;
|
|
56
|
+
feeOptionKey?: FeeOption;
|
|
57
|
+
feeRate?: number;
|
|
58
|
+
fetchTxHex?: boolean;
|
|
59
|
+
}) => Promise<AssetValue>;
|
|
60
|
+
getAddress: () => Promise<string | undefined>;
|
|
61
|
+
getAddressFromKeys: (keys: ECPairInterface | BchECPair) => string;
|
|
62
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
|
|
58
63
|
getFeeRates: () => Promise<{
|
|
59
64
|
average: number;
|
|
60
65
|
fast: number;
|
|
61
66
|
fastest: number;
|
|
62
67
|
}>;
|
|
63
68
|
getInputsOutputsFee: typeof getInputsOutputsFee;
|
|
64
|
-
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue, }: UTXOTransferParams) => Promise<string>;
|
|
65
69
|
getPrivateKeyFromMnemonic: (params: {
|
|
66
70
|
phrase: string;
|
|
67
71
|
derivationPath: string;
|
|
68
72
|
}) => string;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
assetValue: AssetValue;
|
|
72
|
-
recipient: string;
|
|
73
|
-
sender: string;
|
|
74
|
-
memo?: string;
|
|
75
|
-
feeOptionKey?: FeeOption;
|
|
76
|
-
feeRate?: number;
|
|
77
|
-
fetchTxHex?: boolean;
|
|
78
|
-
}) => Promise<AssetValue>;
|
|
79
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
80
|
-
from: string;
|
|
81
|
-
memo?: string;
|
|
82
|
-
feeRate?: number;
|
|
83
|
-
feeOptionKey?: FeeOption;
|
|
84
|
-
recipients?: number | TargetOutput[];
|
|
85
|
-
}) => Promise<AssetValue>;
|
|
73
|
+
transfer: ({ memo, recipient, feeOptionKey, feeRate, assetValue }: UTXOTransferParams) => Promise<string>;
|
|
74
|
+
validateAddress: (address: string) => boolean;
|
|
86
75
|
}>;
|
|
87
76
|
declare function getInputsOutputsFee({ assetValue, feeOptionKey, feeRate, memo, sender, recipient, }: Omit<UTXOBuildTxParams, "feeRate"> & {
|
|
88
77
|
feeOptionKey?: FeeOption;
|
|
89
78
|
feeRate?: number;
|
|
90
79
|
}): Promise<{
|
|
80
|
+
fee: number;
|
|
91
81
|
inputs: (UTXOType | import("..").UTXOInputWithScriptType)[];
|
|
92
82
|
outputs: TargetOutput[];
|
|
93
|
-
fee: number;
|
|
94
83
|
} | {
|
|
95
84
|
fee: number;
|
|
96
85
|
inputs?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utxo.d.ts","sourceRoot":"","sources":["../../../../src/utxo/toolbox/utxo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utxo.d.ts","sourceRoot":"","sources":["../../../../src/utxo/toolbox/utxo.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,UAAU,EAEV,KAAK,EAGL,KAAK,mBAAmB,EAExB,SAAS,EAIT,KAAK,SAAS,EAEf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAwC,IAAI,EAAY,MAAM,eAAe,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAG9C,OAAO,EACL,YAAY,EAQb,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGjD,eAAO,MAAM,eAAe,SAA+B,CAAC;AAE5D,wBAAgB,mB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E;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,2BAA2B,CAAC,CAAC,CAAC,CAAC,CA4DjH;AAED,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,SAAS,kBAGjB,eAAe,GAAG,SAAS,aASrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/utxo/toolbox/validators.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,UAE1C;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,WAGjD;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAsB7D"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { bitgo } from "@bitgo/utxo-lib";
|
|
2
|
-
import { type ChainSigner, type DerivationPathArray, FeeOption } from "@swapkit/helpers";
|
|
3
2
|
import type { ZcashPsbt } from "@bitgo/utxo-lib/dist/src/bitgo";
|
|
3
|
+
import { type ChainSigner, type DerivationPathArray, FeeOption } from "@swapkit/helpers";
|
|
4
|
+
import { accumulative } from "../helpers";
|
|
4
5
|
import type { TargetOutput, UTXOBuildTxParams, UTXOTransferParams, UTXOType } from "../types";
|
|
5
|
-
|
|
6
|
+
import { validateZcashAddress } from "./validators";
|
|
6
7
|
type ZcashSigner = ChainSigner<ZcashPsbt, ZcashPsbt>;
|
|
7
8
|
declare function createTransaction(buildTxParams: UTXOBuildTxParams): Promise<{
|
|
8
9
|
inputs: UTXOType[];
|
|
@@ -16,34 +17,39 @@ export declare function createZcashToolbox(toolboxParams: {
|
|
|
16
17
|
derivationPath?: DerivationPathArray;
|
|
17
18
|
index?: number;
|
|
18
19
|
}): Promise<{
|
|
19
|
-
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: UTXOTransferParams) => Promise<string>;
|
|
20
|
-
createTransaction: typeof createTransaction;
|
|
21
20
|
createKeysForPath: ({ phrase, derivationPath, }: {
|
|
22
21
|
phrase: string;
|
|
23
22
|
derivationPath?: string;
|
|
24
23
|
}) => import("@bitgo/utxo-lib").ECPairInterface;
|
|
24
|
+
createTransaction: typeof createTransaction;
|
|
25
25
|
getPrivateKeyFromMnemonic: ({ phrase, derivationPath, }: {
|
|
26
26
|
phrase: string;
|
|
27
27
|
derivationPath: string;
|
|
28
28
|
}) => string;
|
|
29
|
+
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: UTXOTransferParams) => Promise<string>;
|
|
29
30
|
validateAddress: typeof validateZcashAddress;
|
|
30
|
-
accumulative:
|
|
31
|
-
|
|
32
|
-
chain: import("@swapkit/helpers").UTXOChain;
|
|
33
|
-
changeAddress?: string;
|
|
34
|
-
}) => {
|
|
35
|
-
inputs: (UTXOType | import("..").UTXOInputWithScriptType)[];
|
|
36
|
-
outputs: TargetOutput[];
|
|
37
|
-
fee: number;
|
|
38
|
-
} | {
|
|
39
|
-
fee: number;
|
|
40
|
-
inputs?: undefined;
|
|
41
|
-
outputs?: undefined;
|
|
42
|
-
};
|
|
31
|
+
accumulative: typeof accumulative;
|
|
32
|
+
broadcastTx: (txHash: string) => Promise<string>;
|
|
43
33
|
calculateTxSize: ({ inputs, outputs, feeRate }: import("..").UTXOCalculateTxSizeParams) => number;
|
|
44
|
-
|
|
34
|
+
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
35
|
+
from: string;
|
|
36
|
+
memo?: string;
|
|
37
|
+
feeRate?: number;
|
|
38
|
+
feeOptionKey?: FeeOption;
|
|
39
|
+
recipients?: number | TargetOutput[];
|
|
40
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
41
|
+
estimateTransactionFee: (params: {
|
|
42
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
43
|
+
recipient: string;
|
|
44
|
+
sender: string;
|
|
45
|
+
memo?: string;
|
|
46
|
+
feeOptionKey?: FeeOption;
|
|
47
|
+
feeRate?: number;
|
|
48
|
+
fetchTxHex?: boolean;
|
|
49
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
45
50
|
getAddress: () => Promise<string | undefined>;
|
|
46
|
-
|
|
51
|
+
getAddressFromKeys: (keys: import("ecpair").ECPairInterface | import("..").BchECPair) => string;
|
|
52
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
47
53
|
getFeeRates: () => Promise<{
|
|
48
54
|
average: number;
|
|
49
55
|
fast: number;
|
|
@@ -53,31 +59,14 @@ export declare function createZcashToolbox(toolboxParams: {
|
|
|
53
59
|
feeOptionKey?: FeeOption;
|
|
54
60
|
feeRate?: number;
|
|
55
61
|
}) => Promise<{
|
|
62
|
+
fee: number;
|
|
56
63
|
inputs: (UTXOType | import("..").UTXOInputWithScriptType)[];
|
|
57
64
|
outputs: TargetOutput[];
|
|
58
|
-
fee: number;
|
|
59
65
|
} | {
|
|
60
66
|
fee: number;
|
|
61
67
|
inputs?: undefined;
|
|
62
68
|
outputs?: undefined;
|
|
63
69
|
}>;
|
|
64
|
-
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
65
|
-
estimateTransactionFee: (params: {
|
|
66
|
-
assetValue: import("@swapkit/helpers").AssetValue;
|
|
67
|
-
recipient: string;
|
|
68
|
-
sender: string;
|
|
69
|
-
memo?: string;
|
|
70
|
-
feeOptionKey?: FeeOption;
|
|
71
|
-
feeRate?: number;
|
|
72
|
-
fetchTxHex?: boolean;
|
|
73
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
74
|
-
estimateMaxSendableAmount: ({ from, memo, feeRate, feeOptionKey, recipients, }: {
|
|
75
|
-
from: string;
|
|
76
|
-
memo?: string;
|
|
77
|
-
feeRate?: number;
|
|
78
|
-
feeOptionKey?: FeeOption;
|
|
79
|
-
recipients?: number | TargetOutput[];
|
|
80
|
-
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
81
70
|
}>;
|
|
82
71
|
export {};
|
|
83
72
|
//# sourceMappingURL=zcash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zcash.d.ts","sourceRoot":"","sources":["../../../../src/utxo/toolbox/zcash.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"zcash.d.ts","sourceRoot":"","sources":["../../../../src/utxo/toolbox/zcash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAqD,MAAM,iBAAiB,CAAC;AAC3F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAGhE,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,mBAAmB,EAExB,SAAS,EAKV,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,YAAY,EAA2B,MAAM,YAAY,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE9F,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAiBpD,KAAK,WAAW,GAAG,WAAW,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAoFrD,iBAAe,iBAAiB,CAAC,aAAa,EAAE,iBAAiB;;;;GAgDhE;AAED,wBAAsB,kBAAkB,CACtC,aAAa,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,mBAAmB,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;qDAmChH;QACD,MAAM,EAAE,MAAM,CAAC;QACf,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB;;6DAkBE;QACD,MAAM,EAAE,MAAM,CAAC;QACf,cAAc,EAAE,MAAM,CAAC;KACxB;iEA5C0F,kBAAkB;;;;;;;YAwChF,CAAC;eAE5B,CAAC;oBACM,CAAC;kBAER,CAAC;;;;;;YAaqiC,CAAC;oBAA0B,CAAC;eAAwB,CAAC;kBAAwB,CAAC;;;;;;;;;;;oBAvCpnC,CAAH;eAAoB,CAAC;;;;;;;;;;GAsCrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utxo/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utxo/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEvG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,IAAI,MAAM,CAAA;CAAE,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnH,MAAM,MAAM,QAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE7G,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3F,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,CAAC,uBAAuB,GAA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",
|
|
24
24
|
"base64-js": "~1.5.1",
|
|
25
25
|
"bitcoinjs-lib": "~6.1.0",
|
|
26
26
|
"bs58check": "~4.0.0",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"near-api-js": "~6.1.0",
|
|
34
34
|
"near-sdk-js": "~2.0.0",
|
|
35
35
|
"near-seed-phrase": "~0.2.1",
|
|
36
|
-
"protobufjs": "~7.5.
|
|
36
|
+
"protobufjs": "~7.5.4",
|
|
37
37
|
"tronweb": "~6.0.0",
|
|
38
|
-
"ts-pattern": "
|
|
38
|
+
"ts-pattern": "^5.7.0",
|
|
39
39
|
"xrpl": "~4.3.0"
|
|
40
40
|
},
|
|
41
41
|
"description": "SwapKit - Toolboxes",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"@nomicfoundation/hardhat-ethers": "3.0.9",
|
|
49
49
|
"@nomicfoundation/hardhat-toolbox": "5.0.0",
|
|
50
50
|
"@polkadot/api": "15.9.2",
|
|
51
|
-
"@polkadot/keyring": "13.5.
|
|
51
|
+
"@polkadot/keyring": "13.5.5",
|
|
52
52
|
"@polkadot/types": "15.9.2",
|
|
53
|
-
"@polkadot/util": "13.5.
|
|
54
|
-
"@polkadot/util-crypto": "13.5.
|
|
53
|
+
"@polkadot/util": "13.5.5",
|
|
54
|
+
"@polkadot/util-crypto": "13.5.5",
|
|
55
55
|
"@psf/bitcoincashjs-lib": "4.0.3",
|
|
56
56
|
"@radixdlt/babylon-gateway-api-sdk": "1.10.1",
|
|
57
57
|
"@radixdlt/radix-dapp-toolkit": "2.2.1",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"@scure/bip39": "1.6.0",
|
|
61
61
|
"@solana/spl-memo": "0.2.5",
|
|
62
62
|
"@solana/spl-token": "0.4.13",
|
|
63
|
-
"@solana/web3.js": "1.98.
|
|
64
|
-
"@swapkit/helpers": "4.0.
|
|
63
|
+
"@solana/web3.js": "1.98.4",
|
|
64
|
+
"@swapkit/helpers": "4.0.1",
|
|
65
65
|
"@types/bn.js": "5.2.0",
|
|
66
66
|
"@types/crypto-js": "4.2.2",
|
|
67
67
|
"@types/elliptic": "6.4.18",
|
|
@@ -72,23 +72,19 @@
|
|
|
72
72
|
"coininfo": "5.2.1",
|
|
73
73
|
"cosmjs-types": "0.9.0",
|
|
74
74
|
"ecpair": "2.1.0",
|
|
75
|
-
"ethers": "6.
|
|
75
|
+
"ethers": "6.15.0",
|
|
76
76
|
"hardhat": "2.25.0",
|
|
77
77
|
"micro-key-producer": "0.7.6",
|
|
78
78
|
"near-api-js": "6.1.0",
|
|
79
79
|
"near-sdk-js": "2.0.0",
|
|
80
80
|
"near-seed-phrase": "0.2.1",
|
|
81
|
-
"protobufjs": "7.5.
|
|
82
|
-
"tronweb": "6.0.
|
|
83
|
-
"ts-pattern": "5.
|
|
81
|
+
"protobufjs": "7.5.4",
|
|
82
|
+
"tronweb": "6.0.4",
|
|
83
|
+
"ts-pattern": "5.8.0",
|
|
84
84
|
"xrpl": "4.3.0"
|
|
85
85
|
},
|
|
86
86
|
"exports": {
|
|
87
|
-
".": {
|
|
88
|
-
"default": "./dist/src/index.js",
|
|
89
|
-
"require": "./dist/src/index.cjs",
|
|
90
|
-
"types": "./dist/types/index.d.ts"
|
|
91
|
-
},
|
|
87
|
+
".": { "default": "./dist/src/index.js", "require": "./dist/src/index.cjs", "types": "./dist/types/index.d.ts" },
|
|
92
88
|
"./cosmos": {
|
|
93
89
|
"default": "./dist/src/cosmos/index.js",
|
|
94
90
|
"require": "./dist/src/cosmos/index.cjs",
|
|
@@ -139,10 +135,7 @@
|
|
|
139
135
|
"homepage": "https://github.com/swapkit/SwapKit",
|
|
140
136
|
"license": "Apache-2.0",
|
|
141
137
|
"name": "@swapkit/toolboxes",
|
|
142
|
-
"repository": {
|
|
143
|
-
"type": "git",
|
|
144
|
-
"url": "git+https://github.com/swapkit/SwapKit.git"
|
|
145
|
-
},
|
|
138
|
+
"repository": { "type": "git", "url": "git+https://github.com/swapkit/SwapKit.git" },
|
|
146
139
|
"scripts": {
|
|
147
140
|
"build": "bun run ./build.ts",
|
|
148
141
|
"build:clean": "rm -rf dist && bun run ./build.ts",
|
|
@@ -153,5 +146,5 @@
|
|
|
153
146
|
"type-check:go": "tsgo"
|
|
154
147
|
},
|
|
155
148
|
"type": "module",
|
|
156
|
-
"version": "4.0.
|
|
149
|
+
"version": "4.0.1"
|
|
157
150
|
}
|