@trezor/connect 9.4.1 → 9.4.2-beta.2
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/CHANGELOG.md +54 -9
- package/README.md +1 -1
- package/lib/api/bitcoin/inputs.js +1 -1
- package/lib/api/cardano/cardanoInputs.d.ts +7 -7
- package/lib/api/cardano/cardanoOutputs.d.ts +22 -22
- package/lib/api/cardano/cardanoTokenBundle.d.ts +5 -5
- package/lib/api/ethereum/api/ethereumSignTypedData.d.ts +56 -56
- package/lib/api/ethereum/ethereumDefinitions.d.ts +20 -20
- package/lib/backend/Blockchain.js +10 -3
- package/lib/constants/nem.d.ts +3 -3
- package/lib/core/index.js +25 -14
- package/lib/data/connectSettings.js +3 -0
- package/lib/data/deviceAuthenticityConfigTypes.d.ts +23 -23
- package/lib/data/version.d.ts +1 -1
- package/lib/data/version.js +1 -1
- package/lib/device/Device.d.ts +17 -13
- package/lib/device/Device.js +22 -16
- package/lib/device/DeviceCommands.d.ts +40 -10
- package/lib/device/DeviceCommands.js +25 -90
- package/lib/device/DeviceList.d.ts +5 -2
- package/lib/device/DeviceList.js +35 -11
- package/lib/device/prompts.d.ts +15 -0
- package/lib/device/prompts.js +63 -0
- package/lib/events/call.d.ts +4 -2
- package/lib/events/call.js +8 -1
- package/lib/events/core.js +1 -0
- package/lib/events/ui-response.d.ts +3 -3
- package/lib/index.js +2 -2
- package/lib/types/api/applySettings.d.ts +13 -13
- package/lib/types/api/authenticateDevice.d.ts +24 -24
- package/lib/types/api/authorizeCoinjoin.d.ts +9 -9
- package/lib/types/api/binance/index.d.ts +142 -142
- package/lib/types/api/bitcoin/index.d.ts +10 -10
- package/lib/types/api/cancelCoinjoinAuthorization.d.ts +1 -1
- package/lib/types/api/cardano/index.d.ts +507 -507
- package/lib/types/api/changeLanguage.d.ts +6 -6
- package/lib/types/api/cipherKeyValue.d.ts +7 -7
- package/lib/types/api/eos/index.d.ts +525 -525
- package/lib/types/api/ethereum/index.d.ts +100 -100
- package/lib/types/api/firmwareUpdate.d.ts +5 -5
- package/lib/types/api/getAccountDescriptor.d.ts +4 -4
- package/lib/types/api/getAddress.d.ts +32 -32
- package/lib/types/api/getOwnershipId.d.ts +24 -24
- package/lib/types/api/getOwnershipProof.d.ts +28 -28
- package/lib/types/api/getPublicKey.d.ts +23 -23
- package/lib/types/api/nem/index.d.ts +611 -611
- package/lib/types/api/nemGetAddress.d.ts +6 -6
- package/lib/types/api/pushTransaction.d.ts +3 -3
- package/lib/types/api/recoveryDevice.d.ts +9 -9
- package/lib/types/api/requestLogin.d.ts +25 -25
- package/lib/types/api/ripple/index.d.ts +21 -21
- package/lib/types/api/solana/index.d.ts +23 -23
- package/lib/types/api/stellar/index.d.ts +581 -581
- package/lib/types/api/tezos/index.d.ts +120 -120
- package/lib/types/api/unlockPath.d.ts +2 -2
- package/lib/types/coinInfo.d.ts +224 -224
- package/lib/types/fees.d.ts +19 -19
- package/lib/types/firmware.d.ts +1 -1
- package/lib/types/params.d.ts +24 -20
- package/lib/types/settings.d.ts +4 -0
- package/package.json +4 -4
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Messages } from '@trezor/transport';
|
|
2
|
+
import type { Device } from './Device';
|
|
3
|
+
export type PromptCallback<T> = (response: T | null, error?: Error) => void;
|
|
4
|
+
export declare const cancelPrompt: (device: Device, expectResponse?: boolean) => Promise<{
|
|
5
|
+
readonly success: false;
|
|
6
|
+
readonly error: "session not found";
|
|
7
|
+
}> | import("@trezor/transport/lib/types").AsyncResultWithTypedError<import("@trezor/protobuf").MessageFromTrezor, "session not found" | "Network request failed" | "Wrong result type." | "other call in progress" | "Malformed protocol format" | "device disconnected during action" | "unexpected error" | "Aborted by timeout" | "Aborted by signal" | "This transport can not be used in this environment" | "device not found" | "Unable to open device" | "A transfer error has occurred."> | import("@trezor/transport/lib/types").AsyncResultWithTypedError<undefined, "session not found" | "Network request failed" | "Wrong result type." | "other call in progress" | "Malformed protocol format" | "device disconnected during action" | "unexpected error" | "Aborted by timeout" | "Aborted by signal" | "This transport can not be used in this environment" | "device not found" | "Unable to open device" | "A transfer error has occurred.">;
|
|
8
|
+
export declare const promptPassphrase: (device: Device) => Promise<{
|
|
9
|
+
value: string;
|
|
10
|
+
passphraseOnDevice?: boolean;
|
|
11
|
+
save?: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const promptPin: (device: Device, type?: Messages.PinMatrixRequestType) => Promise<string>;
|
|
14
|
+
export declare const promptWord: (device: Device, type: Messages.WordRequestType) => Promise<string>;
|
|
15
|
+
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.promptWord = exports.promptPin = exports.promptPassphrase = exports.cancelPrompt = void 0;
|
|
4
|
+
const transport_1 = require("@trezor/transport");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
const events_1 = require("../events");
|
|
7
|
+
const cancelPrompt = (device, expectResponse = true) => {
|
|
8
|
+
if (!device.transportSession) {
|
|
9
|
+
return Promise.resolve({
|
|
10
|
+
success: false,
|
|
11
|
+
error: transport_1.TRANSPORT_ERROR.SESSION_NOT_FOUND,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
const cancelArgs = {
|
|
15
|
+
session: device.transportSession,
|
|
16
|
+
name: 'Cancel',
|
|
17
|
+
data: {},
|
|
18
|
+
protocol: device.protocol,
|
|
19
|
+
};
|
|
20
|
+
return expectResponse ? device.transport.call(cancelArgs) : device.transport.send(cancelArgs);
|
|
21
|
+
};
|
|
22
|
+
exports.cancelPrompt = cancelPrompt;
|
|
23
|
+
const prompt = (event, ...[device, ...args]) => {
|
|
24
|
+
return new Promise((resolve, reject) => {
|
|
25
|
+
const cancelAndReject = (error) => (0, exports.cancelPrompt)(device).then(onCancel => {
|
|
26
|
+
var _a;
|
|
27
|
+
return reject(error ||
|
|
28
|
+
new Error(onCancel.success
|
|
29
|
+
? (_a = onCancel.payload) === null || _a === void 0 ? void 0 : _a.message.message
|
|
30
|
+
: onCancel.error));
|
|
31
|
+
});
|
|
32
|
+
if (device.listenerCount(event) > 0) {
|
|
33
|
+
device.setCancelableAction(cancelAndReject);
|
|
34
|
+
const callback = (...[response, error]) => {
|
|
35
|
+
device.clearCancelableAction();
|
|
36
|
+
if (error || response == null) {
|
|
37
|
+
cancelAndReject(error);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
resolve(response);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const emitArgs = [event, device, ...args, callback];
|
|
44
|
+
device.emit(...emitArgs);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
cancelAndReject(constants_1.ERRORS.TypedError('Runtime', `${event} callback not configured`));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
const promptPassphrase = (device) => {
|
|
52
|
+
return prompt(events_1.DEVICE.PASSPHRASE, device);
|
|
53
|
+
};
|
|
54
|
+
exports.promptPassphrase = promptPassphrase;
|
|
55
|
+
const promptPin = (device, type) => {
|
|
56
|
+
return prompt(events_1.DEVICE.PIN, device, type);
|
|
57
|
+
};
|
|
58
|
+
exports.promptPin = promptPin;
|
|
59
|
+
const promptWord = (device, type) => {
|
|
60
|
+
return prompt(events_1.DEVICE.WORD, device, type);
|
|
61
|
+
};
|
|
62
|
+
exports.promptWord = promptWord;
|
|
63
|
+
//# sourceMappingURL=prompts.js.map
|
package/lib/events/call.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IFRAME } from './iframe';
|
|
2
2
|
import type { TrezorConnect } from '../types/api';
|
|
3
|
-
import type { CommonParams } from '../types/params';
|
|
3
|
+
import type { CommonParams, DeviceIdentity } from '../types/params';
|
|
4
|
+
import { Device } from '../device/Device';
|
|
4
5
|
type UnwrappedResponse<T> = T extends Promise<infer R> ? (R extends {
|
|
5
6
|
success: true;
|
|
6
7
|
payload: infer P;
|
|
@@ -35,7 +36,8 @@ export interface MethodResponseMessage {
|
|
|
35
36
|
id: number;
|
|
36
37
|
success: boolean;
|
|
37
38
|
payload: CallMethodResponse<keyof CallApi>;
|
|
39
|
+
device?: DeviceIdentity;
|
|
38
40
|
}
|
|
39
|
-
export declare const createResponseMessage: (id: number, success: boolean, payload: any) => MethodResponseMessage;
|
|
41
|
+
export declare const createResponseMessage: (id: number, success: boolean, payload: any, device?: Device) => MethodResponseMessage;
|
|
40
42
|
export {};
|
|
41
43
|
//# sourceMappingURL=call.d.ts.map
|
package/lib/events/call.js
CHANGED
|
@@ -3,12 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createResponseMessage = exports.RESPONSE_EVENT = void 0;
|
|
4
4
|
const errors_1 = require("../constants/errors");
|
|
5
5
|
exports.RESPONSE_EVENT = 'RESPONSE_EVENT';
|
|
6
|
-
const createResponseMessage = (id, success, payload) => ({
|
|
6
|
+
const createResponseMessage = (id, success, payload, device) => ({
|
|
7
7
|
event: exports.RESPONSE_EVENT,
|
|
8
8
|
type: exports.RESPONSE_EVENT,
|
|
9
9
|
id,
|
|
10
10
|
success,
|
|
11
11
|
payload: success ? payload : (0, errors_1.serializeError)(payload),
|
|
12
|
+
device: device
|
|
13
|
+
? {
|
|
14
|
+
path: device === null || device === void 0 ? void 0 : device.originalDescriptor.path,
|
|
15
|
+
state: device === null || device === void 0 ? void 0 : device.getState(),
|
|
16
|
+
instance: device === null || device === void 0 ? void 0 : device.instance,
|
|
17
|
+
}
|
|
18
|
+
: undefined,
|
|
12
19
|
});
|
|
13
20
|
exports.createResponseMessage = createResponseMessage;
|
|
14
21
|
//# sourceMappingURL=call.js.map
|
package/lib/events/core.js
CHANGED
|
@@ -39,11 +39,11 @@ export interface UiResponseDevice {
|
|
|
39
39
|
}
|
|
40
40
|
export interface UiResponsePin {
|
|
41
41
|
type: typeof UI_RESPONSE.RECEIVE_PIN;
|
|
42
|
-
payload: string;
|
|
42
|
+
payload: string | undefined;
|
|
43
43
|
}
|
|
44
44
|
export interface UiResponseWord {
|
|
45
45
|
type: typeof UI_RESPONSE.RECEIVE_WORD;
|
|
46
|
-
payload: string;
|
|
46
|
+
payload: string | undefined;
|
|
47
47
|
}
|
|
48
48
|
export interface UiResponsePassphrase {
|
|
49
49
|
type: typeof UI_RESPONSE.RECEIVE_PASSPHRASE;
|
|
@@ -51,7 +51,7 @@ export interface UiResponsePassphrase {
|
|
|
51
51
|
value: string;
|
|
52
52
|
passphraseOnDevice?: boolean;
|
|
53
53
|
save?: boolean;
|
|
54
|
-
};
|
|
54
|
+
} | undefined;
|
|
55
55
|
}
|
|
56
56
|
export interface UiResponsePassphraseAction {
|
|
57
57
|
type: typeof UI_RESPONSE.INVALID_PASSPHRASE_ACTION;
|
package/lib/index.js
CHANGED
|
@@ -38,8 +38,8 @@ const onCoreEvent = (message) => {
|
|
|
38
38
|
_log.debug('handleMessage', message);
|
|
39
39
|
switch (event) {
|
|
40
40
|
case events_2.RESPONSE_EVENT: {
|
|
41
|
-
const { id = 0, success } = message;
|
|
42
|
-
const resolved = messagePromises.resolve(id, { id, success, payload });
|
|
41
|
+
const { id = 0, success, device } = message;
|
|
42
|
+
const resolved = messagePromises.resolve(id, { id, success, payload, device });
|
|
43
43
|
if (!resolved)
|
|
44
44
|
_log.warn(`Unknown message id ${id}`);
|
|
45
45
|
break;
|
|
@@ -3,19 +3,19 @@ import { PROTO } from '../../constants';
|
|
|
3
3
|
import type { Params, Response } from '../params';
|
|
4
4
|
export type ApplySettings = Static<typeof ApplySettings>;
|
|
5
5
|
export declare const ApplySettings: import("@trezor/schema-utils").TObject<{
|
|
6
|
-
language: import("@sinclair/typebox
|
|
7
|
-
label: import("@sinclair/typebox
|
|
8
|
-
passphrase_always_on_device: import("@sinclair/typebox
|
|
9
|
-
safety_checks: import("@sinclair/typebox
|
|
10
|
-
auto_lock_delay_ms: import("@sinclair/typebox
|
|
11
|
-
display_rotation: import("@sinclair/typebox
|
|
12
|
-
experimental_features: import("@sinclair/typebox
|
|
13
|
-
hide_passphrase_from_host: import("@sinclair/typebox
|
|
14
|
-
haptic_feedback: import("@sinclair/typebox
|
|
15
|
-
use_passphrase: import("@sinclair/typebox
|
|
16
|
-
homescreen: import("@sinclair/typebox
|
|
17
|
-
_passphrase_source: import("@sinclair/typebox
|
|
18
|
-
passphrase_source: import("@sinclair/typebox
|
|
6
|
+
language: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
|
+
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
|
+
passphrase_always_on_device: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
9
|
+
safety_checks: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/lib/custom-types/keyof-enum").TKeyOfEnum<typeof PROTO.Enum_SafetyCheckLevel>>;
|
|
10
|
+
auto_lock_delay_ms: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
11
|
+
display_rotation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
12
|
+
experimental_features: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13
|
+
hide_passphrase_from_host: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14
|
+
haptic_feedback: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
15
|
+
use_passphrase: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
16
|
+
homescreen: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17
|
+
_passphrase_source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
18
|
+
passphrase_source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
19
19
|
}>;
|
|
20
20
|
export declare function applySettings(params: Params<ApplySettings>): Response<PROTO.Success>;
|
|
21
21
|
//# sourceMappingURL=applySettings.d.ts.map
|
|
@@ -2,42 +2,42 @@ import { Static } from '@trezor/schema-utils';
|
|
|
2
2
|
import type { Params, Response } from '../params';
|
|
3
3
|
export type AuthenticateDeviceParams = Static<typeof AuthenticateDeviceParams>;
|
|
4
4
|
export declare const AuthenticateDeviceParams: import("@trezor/schema-utils").TObject<{
|
|
5
|
-
config: import("@sinclair/typebox
|
|
6
|
-
T2B1: import("@sinclair/typebox
|
|
7
|
-
rootPubKeys: import("@sinclair/typebox
|
|
8
|
-
caPubKeys: import("@sinclair/typebox
|
|
5
|
+
config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
6
|
+
T2B1: import("@sinclair/typebox").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
7
|
+
rootPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
8
|
+
caPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
9
9
|
}>, import("@trezor/schema-utils").TObject<{
|
|
10
|
-
debug: import("@sinclair/typebox
|
|
11
|
-
rootPubKeys: import("@sinclair/typebox
|
|
12
|
-
caPubKeys: import("@sinclair/typebox
|
|
10
|
+
debug: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils").TObject<{
|
|
11
|
+
rootPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
12
|
+
caPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
13
13
|
}>>;
|
|
14
14
|
}>]>;
|
|
15
|
-
T3B1: import("@sinclair/typebox
|
|
16
|
-
rootPubKeys: import("@sinclair/typebox
|
|
17
|
-
caPubKeys: import("@sinclair/typebox
|
|
15
|
+
T3B1: import("@sinclair/typebox").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
16
|
+
rootPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
17
|
+
caPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
18
18
|
}>, import("@trezor/schema-utils").TObject<{
|
|
19
|
-
debug: import("@sinclair/typebox
|
|
20
|
-
rootPubKeys: import("@sinclair/typebox
|
|
21
|
-
caPubKeys: import("@sinclair/typebox
|
|
19
|
+
debug: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils").TObject<{
|
|
20
|
+
rootPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
21
|
+
caPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
22
22
|
}>>;
|
|
23
23
|
}>]>;
|
|
24
|
-
T3T1: import("@sinclair/typebox
|
|
25
|
-
rootPubKeys: import("@sinclair/typebox
|
|
26
|
-
caPubKeys: import("@sinclair/typebox
|
|
24
|
+
T3T1: import("@sinclair/typebox").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
25
|
+
rootPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
26
|
+
caPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
27
27
|
}>, import("@trezor/schema-utils").TObject<{
|
|
28
|
-
debug: import("@sinclair/typebox
|
|
29
|
-
rootPubKeys: import("@sinclair/typebox
|
|
30
|
-
caPubKeys: import("@sinclair/typebox
|
|
28
|
+
debug: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils").TObject<{
|
|
29
|
+
rootPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
30
|
+
caPubKeys: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
31
31
|
}>>;
|
|
32
32
|
}>]>;
|
|
33
33
|
}>, import("@trezor/schema-utils").TObject<{
|
|
34
|
-
T1B1: import("@sinclair/typebox
|
|
35
|
-
T2T1: import("@sinclair/typebox
|
|
34
|
+
T1B1: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUndefined>;
|
|
35
|
+
T2T1: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUndefined>;
|
|
36
36
|
}>]>, import("@trezor/schema-utils").TObject<{
|
|
37
|
-
version: import("@sinclair/typebox
|
|
38
|
-
timestamp: import("@sinclair/typebox
|
|
37
|
+
version: import("@sinclair/typebox").TNumber;
|
|
38
|
+
timestamp: import("@sinclair/typebox").TString;
|
|
39
39
|
}>]>>;
|
|
40
|
-
allowDebugKeys: import("@sinclair/typebox
|
|
40
|
+
allowDebugKeys: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
41
41
|
}>;
|
|
42
42
|
export type AuthenticateDeviceResult = {
|
|
43
43
|
valid: true;
|
|
@@ -3,15 +3,15 @@ import { Static } from '@trezor/schema-utils';
|
|
|
3
3
|
import { PROTO } from '../../constants';
|
|
4
4
|
export type AuthorizeCoinjoin = Static<typeof AuthorizeCoinjoin>;
|
|
5
5
|
export declare const AuthorizeCoinjoin: import("@trezor/schema-utils").TObject<{
|
|
6
|
-
path: import("@sinclair/typebox
|
|
7
|
-
coordinator: import("@sinclair/typebox
|
|
8
|
-
maxRounds: import("@sinclair/typebox
|
|
9
|
-
maxCoordinatorFeeRate: import("@sinclair/typebox
|
|
10
|
-
maxFeePerKvbyte: import("@sinclair/typebox
|
|
11
|
-
coin: import("@sinclair/typebox
|
|
12
|
-
scriptType: import("@sinclair/typebox
|
|
13
|
-
amountUnit: import("@sinclair/typebox
|
|
14
|
-
preauthorized: import("@sinclair/typebox
|
|
6
|
+
path: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>]>;
|
|
7
|
+
coordinator: import("@sinclair/typebox").TString;
|
|
8
|
+
maxRounds: import("@sinclair/typebox").TNumber;
|
|
9
|
+
maxCoordinatorFeeRate: import("@sinclair/typebox").TNumber;
|
|
10
|
+
maxFeePerKvbyte: import("@sinclair/typebox").TNumber;
|
|
11
|
+
coin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
|
+
scriptType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"SPENDADDRESS">, import("@sinclair/typebox").TLiteral<"SPENDMULTISIG">, import("@sinclair/typebox").TLiteral<"SPENDWITNESS">, import("@sinclair/typebox").TLiteral<"SPENDP2SHWITNESS">, import("@sinclair/typebox").TLiteral<"SPENDTAPROOT">]>>;
|
|
13
|
+
amountUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof PROTO.AmountUnit>>;
|
|
14
|
+
preauthorized: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
15
15
|
}>;
|
|
16
16
|
export declare function authorizeCoinjoin(params: Params<AuthorizeCoinjoin>): Response<PROTO.Success>;
|
|
17
17
|
//# sourceMappingURL=authorizeCoinjoin.d.ts.map
|