@swapkit/toolboxes 4.15.14 → 4.16.0
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/near/index.cjs +1 -1
- package/dist/src/near/index.js +1 -1
- package/dist/src/utxo/index.cjs +1 -1
- package/dist/src/utxo/index.js +1 -1
- package/dist/types/near/toolbox.d.ts +3 -3
- package/dist/types/near/types/toolbox.d.ts +3 -5
- package/dist/types/near/types.d.ts +21 -1
- package/dist/types/utxo/toolbox/zcash.d.ts +4 -4
- package/package.json +2 -2
|
@@ -1,10 +1,30 @@
|
|
|
1
1
|
import type { Signer } from "@near-js/signers";
|
|
2
2
|
import type { SignedTransaction, Transaction } from "@near-js/transactions";
|
|
3
3
|
import type { ChainSigner, DerivationPathArray, GenericCreateTransactionParams, GenericTransferParams } from "@swapkit/helpers";
|
|
4
|
+
type NearExecutionResult = string | {
|
|
5
|
+
transaction?: {
|
|
6
|
+
hash?: string;
|
|
7
|
+
};
|
|
8
|
+
transaction_outcome?: {
|
|
9
|
+
id?: string;
|
|
10
|
+
};
|
|
11
|
+
} | Array<{
|
|
12
|
+
transaction?: {
|
|
13
|
+
hash?: string;
|
|
14
|
+
};
|
|
15
|
+
transaction_outcome?: {
|
|
16
|
+
id?: string;
|
|
17
|
+
};
|
|
18
|
+
}> | undefined;
|
|
4
19
|
export interface NearSigner extends Signer, Omit<ChainSigner<Transaction, SignedTransaction>, "signTransaction"> {
|
|
20
|
+
signAndSendTransaction?(params: {
|
|
21
|
+
actions: Transaction["actions"];
|
|
22
|
+
receiverId?: string;
|
|
23
|
+
signerId?: string;
|
|
24
|
+
}): Promise<NearExecutionResult>;
|
|
5
25
|
signAndSendTransactions?(params: {
|
|
6
26
|
transactions: Transaction[];
|
|
7
|
-
}): Promise<
|
|
27
|
+
}): Promise<NearExecutionResult>;
|
|
8
28
|
}
|
|
9
29
|
export type NearToolboxParams = {
|
|
10
30
|
signer?: NearSigner;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ChainSigner, type DerivationPathArray, FeeOption } from "@swapkit/helpers";
|
|
2
|
-
import { PCZT, type ZcashTransaction } from "@swapkit/utxo-signer";
|
|
2
|
+
import { PCZT, ZcashPSBT, type ZcashTransaction } from "@swapkit/utxo-signer";
|
|
3
3
|
import { accumulative } from "../helpers";
|
|
4
4
|
import type { TargetOutput, UTXOBuildTxParams, UTXOTransferParams, UTXOType } from "../types";
|
|
5
5
|
import { validateZcashAddress } from "./validators";
|
|
6
|
-
type ZcashSigner = ChainSigner<ZcashTransaction | PCZT, ZcashTransaction>;
|
|
6
|
+
type ZcashSigner = ChainSigner<ZcashTransaction | PCZT | ZcashPSBT, ZcashTransaction>;
|
|
7
7
|
declare function createTransaction(buildTxParams: UTXOBuildTxParams): Promise<{
|
|
8
8
|
inputs: UTXOType[];
|
|
9
9
|
outputs: TargetOutput[];
|
|
@@ -28,8 +28,8 @@ export declare function createZcashToolbox(toolboxParams: {
|
|
|
28
28
|
phrase: string;
|
|
29
29
|
derivationPath: string;
|
|
30
30
|
}) => string;
|
|
31
|
-
signAndBroadcastTransaction: (tx: ZcashTransaction | PCZT) => Promise<string>;
|
|
32
|
-
signTransaction: (tx: ZcashTransaction | PCZT) => Promise<ZcashTransaction>;
|
|
31
|
+
signAndBroadcastTransaction: (tx: ZcashTransaction | PCZT | ZcashPSBT) => Promise<string>;
|
|
32
|
+
signTransaction: (tx: ZcashTransaction | PCZT | ZcashPSBT) => Promise<ZcashTransaction>;
|
|
33
33
|
transfer: ({ recipient, assetValue, feeOptionKey, ...rest }: UTXOTransferParams) => Promise<string>;
|
|
34
34
|
validateAddress: typeof validateZcashAddress;
|
|
35
35
|
accumulative: typeof accumulative;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"dependencies": { "@swapkit/helpers": "4.13.
|
|
2
|
+
"dependencies": { "@swapkit/helpers": "4.13.11", "@swapkit/utxo-signer": "2.2.0" },
|
|
3
3
|
"description": "SwapKit - Toolboxes",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@aptos-labs/ts-sdk": "1.34.0",
|
|
@@ -194,5 +194,5 @@
|
|
|
194
194
|
"type-check:go": "tsgo"
|
|
195
195
|
},
|
|
196
196
|
"type": "module",
|
|
197
|
-
"version": "4.
|
|
197
|
+
"version": "4.16.0"
|
|
198
198
|
}
|