@trezor/connect 9.1.8 → 9.1.10
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 +11 -0
- package/README.md +1 -1
- package/lib/api/applyFlags.d.ts +4 -2
- package/lib/api/applyFlags.js +3 -2
- package/lib/api/applySettings.d.ts +4 -2
- package/lib/api/applySettings.js +3 -13
- package/lib/api/authenticateDevice.js +3 -11
- package/lib/api/authorizeCoinjoin.d.ts +3 -1
- package/lib/api/authorizeCoinjoin.js +3 -11
- package/lib/api/backupDevice.d.ts +3 -1
- package/lib/api/binance/api/binanceGetAddress.d.ts +4 -2
- package/lib/api/binance/api/binanceGetAddress.js +4 -10
- package/lib/api/binance/api/binanceGetPublicKey.d.ts +9 -1
- package/lib/api/binance/api/binanceGetPublicKey.js +3 -5
- package/lib/api/binance/api/binanceSignTransaction.d.ts +4 -1
- package/lib/api/binance/api/binanceSignTransaction.js +5 -6
- package/lib/api/binance/binanceSignTx.d.ts +84 -3
- package/lib/api/binance/binanceSignTx.js +3 -26
- package/lib/api/bitcoin/Fees.d.ts +14 -2
- package/lib/api/bitcoin/TransactionComposer.d.ts +13 -2
- package/lib/api/bitcoin/refTx.d.ts +2 -2
- package/lib/api/bitcoin/refTx.js +22 -24
- package/lib/api/bitcoin/signtxVerify.d.ts +1 -1
- package/lib/api/blockchainDisconnect.d.ts +1 -1
- package/lib/api/blockchainDisconnect.js +3 -2
- package/lib/api/blockchainGetAccountBalanceHistory.d.ts +1 -1
- package/lib/api/blockchainGetCurrentFiatRates.d.ts +1 -1
- package/lib/api/blockchainGetFiatRatesForTimestamps.d.ts +1 -1
- package/lib/api/blockchainGetTransactions.d.ts +1 -1
- package/lib/api/cancelCoinjoinAuthorization.d.ts +3 -1
- package/lib/api/cancelCoinjoinAuthorization.js +3 -0
- package/lib/api/cardano/api/cardanoGetAddress.d.ts +4 -2
- package/lib/api/cardano/api/cardanoGetAddress.js +4 -13
- package/lib/api/cardano/api/cardanoGetNativeScriptHash.d.ts +1 -1
- package/lib/api/cardano/api/cardanoGetNativeScriptHash.js +3 -13
- package/lib/api/cardano/api/cardanoGetPublicKey.d.ts +1 -1
- package/lib/api/cardano/api/cardanoGetPublicKey.js +4 -7
- package/lib/api/cardano/api/cardanoSignTransaction.d.ts +26 -4
- package/lib/api/cardano/api/cardanoSignTransaction.js +15 -46
- package/lib/api/cardano/cardanoAddressParameters.d.ts +1 -1
- package/lib/api/cardano/cardanoAddressParameters.js +3 -14
- package/lib/api/cardano/cardanoAuxiliaryData.d.ts +1 -1
- package/lib/api/cardano/cardanoAuxiliaryData.js +5 -20
- package/lib/api/cardano/cardanoCertificate.d.ts +1 -1
- package/lib/api/cardano/cardanoCertificate.js +20 -59
- package/lib/api/cardano/cardanoInputs.d.ts +20 -8
- package/lib/api/cardano/cardanoInputs.js +18 -14
- package/lib/api/cardano/cardanoOutputs.d.ts +31 -2
- package/lib/api/cardano/cardanoOutputs.js +14 -11
- package/lib/api/cardano/cardanoTokenBundle.d.ts +11 -6
- package/lib/api/cardano/cardanoTokenBundle.js +9 -21
- package/lib/api/changePin.d.ts +4 -2
- package/lib/api/changePin.js +3 -2
- package/lib/api/changeWipeCode.d.ts +3 -1
- package/lib/api/cipherKeyValue.d.ts +5 -1
- package/lib/api/cipherKeyValue.js +13 -21
- package/lib/api/common/paramsValidator.js +5 -4
- package/lib/api/eos/api/eosGetPublicKey.d.ts +11 -1
- package/lib/api/eos/api/eosGetPublicKey.js +3 -6
- package/lib/api/eos/api/eosSignTransaction.js +3 -5
- package/lib/api/eos/eosSignTx.d.ts +160 -2
- package/lib/api/ethereum/api/ethereumGetAddress.js +4 -10
- package/lib/api/ethereum/api/ethereumGetPublicKey.d.ts +21 -1
- package/lib/api/ethereum/api/ethereumGetPublicKey.js +3 -5
- package/lib/api/ethereum/api/ethereumSignMessage.d.ts +6 -3
- package/lib/api/ethereum/api/ethereumSignMessage.js +3 -5
- package/lib/api/ethereum/api/ethereumSignTransaction.d.ts +2 -2
- package/lib/api/ethereum/api/ethereumSignTransaction.js +3 -25
- package/lib/api/ethereum/api/ethereumSignTypedData.d.ts +83 -3
- package/lib/api/ethereum/api/ethereumSignTypedData.js +20 -12
- package/lib/api/ethereum/api/ethereumVerifyMessage.d.ts +3 -1
- package/lib/api/ethereum/api/ethereumVerifyMessage.js +3 -6
- package/lib/api/ethereum/ethereumDefinitions.d.ts +37 -19
- package/lib/api/ethereum/ethereumDefinitions.js +21 -15
- package/lib/api/ethereum/ethereumSignTx.d.ts +1 -1
- package/lib/api/firmware/getBinary.js +5 -4
- package/lib/api/firmware/modifyFirmware.js +3 -2
- package/lib/api/firmware/uploadFirmware.d.ts +3 -1
- package/lib/api/firmware/verifyAuthenticityProof.js +3 -3
- package/lib/api/firmwareUpdate.js +10 -15
- package/lib/api/getAccountDescriptor.d.ts +2 -2
- package/lib/api/getAccountDescriptor.js +4 -7
- package/lib/api/getAccountInfo.d.ts +8 -8
- package/lib/api/getAddress.d.ts +8 -2
- package/lib/api/getAddress.js +4 -20
- package/lib/api/getCoinInfo.d.ts +117 -2
- package/lib/api/getCoinInfo.js +3 -2
- package/lib/api/getFeatures.d.ts +49 -1
- package/lib/api/getFirmwareHash.d.ts +3 -1
- package/lib/api/getFirmwareHash.js +3 -1
- package/lib/api/getOwnershipId.js +4 -7
- package/lib/api/getOwnershipProof.js +4 -11
- package/lib/api/getPublicKey.d.ts +21 -1
- package/lib/api/getPublicKey.js +4 -18
- package/lib/api/nem/api/nemGetAddress.d.ts +4 -2
- package/lib/api/nem/api/nemGetAddress.js +4 -11
- package/lib/api/nem/api/nemSignTransaction.d.ts +4 -1
- package/lib/api/nem/api/nemSignTransaction.js +3 -5
- package/lib/api/nem/nemSignTx.d.ts +75 -1
- package/lib/api/pushTransaction.js +3 -5
- package/lib/api/rebootToBootloader.d.ts +3 -1
- package/lib/api/recoveryDevice.d.ts +3 -1
- package/lib/api/recoveryDevice.js +3 -12
- package/lib/api/requestLogin.js +7 -9
- package/lib/api/resetDevice.d.ts +3 -1
- package/lib/api/resetDevice.js +3 -12
- package/lib/api/ripple/api/rippleGetAddress.d.ts +4 -2
- package/lib/api/ripple/api/rippleGetAddress.js +4 -10
- package/lib/api/ripple/api/rippleSignTransaction.js +3 -17
- package/lib/api/setBusy.d.ts +3 -1
- package/lib/api/setBusy.js +3 -1
- package/lib/api/showDeviceTutorial.d.ts +3 -1
- package/lib/api/signMessage.d.ts +4 -1
- package/lib/api/signMessage.js +3 -7
- package/lib/api/solana/additionalInfo.js +3 -14
- package/lib/api/solana/api/solanaGetAddress.d.ts +4 -2
- package/lib/api/solana/api/solanaGetAddress.js +4 -7
- package/lib/api/solana/api/solanaGetPublicKey.d.ts +13 -1
- package/lib/api/solana/api/solanaGetPublicKey.js +3 -5
- package/lib/api/solana/api/solanaSignTransaction.js +3 -4
- package/lib/api/stellar/api/stellarGetAddress.d.ts +4 -2
- package/lib/api/stellar/api/stellarGetAddress.js +4 -10
- package/lib/api/stellar/api/stellarSignTransaction.js +3 -5
- package/lib/api/stellar/stellarSignTx.d.ts +5 -3
- package/lib/api/stellar/stellarSignTx.js +3 -15
- package/lib/api/tezos/api/tezosGetAddress.d.ts +4 -2
- package/lib/api/tezos/api/tezosGetAddress.js +4 -10
- package/lib/api/tezos/api/tezosGetPublicKey.d.ts +9 -1
- package/lib/api/tezos/api/tezosGetPublicKey.js +3 -6
- package/lib/api/tezos/api/tezosSignTransaction.d.ts +5 -1
- package/lib/api/tezos/api/tezosSignTransaction.js +3 -5
- package/lib/api/tezos/tezosSignTx.d.ts +70 -2
- package/lib/api/tezos/tezosSignTx.js +3 -44
- package/lib/api/unlockPath.js +3 -4
- package/lib/api/verifyMessage.d.ts +3 -1
- package/lib/api/verifyMessage.js +3 -7
- package/lib/api/wipeDevice.d.ts +3 -1
- package/lib/constants/index.d.ts +1 -1
- package/lib/constants/index.js +1 -1
- package/lib/constants/nem.d.ts +7 -0
- package/lib/constants/nem.js +5 -1
- package/lib/core/AbstractMethod.d.ts +1 -1
- package/lib/core/AbstractMethod.js +4 -3
- package/lib/core/index.js +3 -3
- package/lib/data/coinInfo.d.ts +588 -12
- package/lib/data/coinInfo.js +6 -6
- package/lib/data/config.js +5 -0
- package/lib/data/deviceAuthenticityConfig.d.ts +19 -13
- package/lib/data/deviceAuthenticityConfig.js +23 -1
- package/lib/data/firmwareInfo.js +11 -10
- package/lib/data/version.d.ts +1 -1
- package/lib/data/version.js +1 -1
- package/lib/device/Device.d.ts +2 -6
- package/lib/device/Device.js +8 -27
- package/lib/device/DeviceCommands.d.ts +36 -4
- package/lib/device/DeviceCommands.js +5 -2
- package/lib/device/DeviceList.js +1 -1
- package/lib/events/index.d.ts +1 -0
- package/lib/events/index.js +1 -0
- package/lib/events/ui-promise.d.ts +1 -1
- package/lib/events/webextension.d.ts +7 -0
- package/lib/events/webextension.js +10 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/types/api/applySettings.d.ts +18 -2
- package/lib/types/api/applySettings.js +9 -0
- package/lib/types/api/authenticateDevice.d.ts +22 -5
- package/lib/types/api/authenticateDevice.js +7 -0
- package/lib/types/api/authorizeCoinjoin.d.ts +15 -13
- package/lib/types/api/authorizeCoinjoin.js +15 -0
- package/lib/types/api/binance/index.d.ts +203 -30
- package/lib/types/api/binance/index.js +48 -0
- package/lib/types/api/bitcoin/index.d.ts +18 -15
- package/lib/types/api/bitcoin/index.js +17 -0
- package/lib/types/api/cancelCoinjoinAuthorization.d.ts +5 -4
- package/lib/types/api/cancelCoinjoinAuthorization.js +5 -0
- package/lib/types/api/cardano/index.d.ts +685 -187
- package/lib/types/api/cardano/index.js +208 -0
- package/lib/types/api/cardanoSignTransaction.d.ts +5 -8
- package/lib/types/api/cipherKeyValue.d.ts +12 -11
- package/lib/types/api/cipherKeyValue.js +12 -0
- package/lib/types/api/eos/index.d.ts +783 -116
- package/lib/types/api/eos/index.js +177 -0
- package/lib/types/api/ethereum/index.d.ts +162 -56
- package/lib/types/api/ethereum/index.js +90 -0
- package/lib/types/api/firmwareUpdate.d.ts +11 -11
- package/lib/types/api/firmwareUpdate.js +15 -0
- package/lib/types/api/getAccountDescriptor.d.ts +10 -8
- package/lib/types/api/getAccountDescriptor.js +10 -0
- package/lib/types/api/getAddress.d.ts +42 -9
- package/lib/types/api/getAddress.js +14 -0
- package/lib/types/api/getOwnershipId.d.ts +33 -8
- package/lib/types/api/getOwnershipId.js +10 -0
- package/lib/types/api/getOwnershipProof.d.ts +37 -12
- package/lib/types/api/getOwnershipProof.js +14 -0
- package/lib/types/api/getPublicKey.d.ts +31 -21
- package/lib/types/api/getPublicKey.js +26 -0
- package/lib/types/api/nem/index.d.ts +841 -91
- package/lib/types/api/nem/index.js +130 -0
- package/lib/types/api/pushTransaction.d.ts +6 -4
- package/lib/types/api/pushTransaction.js +6 -0
- package/lib/types/api/recoveryDevice.d.ts +14 -4
- package/lib/types/api/recoveryDevice.js +9 -0
- package/lib/types/api/requestLogin.d.ts +38 -13
- package/lib/types/api/requestLogin.js +15 -0
- package/lib/types/api/resetDevice.d.ts +15 -13
- package/lib/types/api/resetDevice.js +9 -0
- package/lib/types/api/ripple/index.d.ts +40 -22
- package/lib/types/api/ripple/index.js +24 -0
- package/lib/types/api/solana/index.d.ts +42 -21
- package/lib/types/api/solana/index.js +26 -0
- package/lib/types/api/stellar/index.d.ts +890 -180
- package/lib/types/api/stellar/index.js +249 -0
- package/lib/types/api/tezos/index.d.ts +162 -59
- package/lib/types/api/tezos/index.js +61 -0
- package/lib/types/api/unlockPath.d.ts +7 -5
- package/lib/types/api/unlockPath.js +7 -0
- package/lib/types/coinInfo.d.ts +273 -56
- package/lib/types/coinInfo.js +81 -0
- package/lib/types/device.d.ts +1 -1
- package/lib/types/device.js +2 -2
- package/lib/types/fees.d.ts +29 -25
- package/lib/types/fees.js +36 -0
- package/lib/types/firmware.d.ts +1 -0
- package/lib/types/firmware.js +3 -0
- package/lib/types/params.d.ts +26 -17
- package/lib/types/params.js +23 -0
- package/lib/utils/deviceFeaturesUtils.js +5 -4
- package/lib/utils/firmwareUtils.js +5 -4
- package/lib/utils/hdnodeUtils.d.ts +191 -1
- package/lib/utils/pathUtils.d.ts +191 -1
- package/lib/utils/urlUtils.js +3 -3
- package/package.json +10 -9
|
@@ -1,3 +1,252 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StellarOperationMessage = exports.StellarSignedTx = exports.StellarSignTransaction = exports.StellarTransaction = exports.StellarOperation = exports.StellarInflationOperation = exports.StellarBumpSequenceOperation = exports.StellarManageDataOperation = exports.StellarAccountMergeOperation = exports.StellarAllowTrustOperation = exports.StellarChangeTrustOperation = exports.StellarSetOptionsOperation = exports.StellarManageBuyOfferOperation = exports.StellarManageSellOfferOperation = exports.StellarPassiveSellOfferOperation = exports.StellarPathPaymentStrictSendOperation = exports.StellarPathPaymentStrictReceiveOperation = exports.StellarPaymentOperation = exports.StellarCreateAccountOperation = exports.StellarAsset = void 0;
|
|
4
|
+
const constants_1 = require("../../../constants");
|
|
5
|
+
const params_1 = require("../../params");
|
|
6
|
+
const schema_utils_1 = require("@trezor/schema-utils");
|
|
7
|
+
exports.StellarAsset = schema_utils_1.Type.Object({
|
|
8
|
+
type: schema_utils_1.Type.Union([constants_1.PROTO.EnumStellarAssetType, schema_utils_1.Type.KeyOfEnum(constants_1.PROTO.StellarAssetType)]),
|
|
9
|
+
code: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
10
|
+
issuer: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
11
|
+
});
|
|
12
|
+
exports.StellarCreateAccountOperation = schema_utils_1.Type.Object({
|
|
13
|
+
type: schema_utils_1.Type.Literal('createAccount'),
|
|
14
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
15
|
+
destination: schema_utils_1.Type.String(),
|
|
16
|
+
startingBalance: schema_utils_1.Type.String(),
|
|
17
|
+
});
|
|
18
|
+
exports.StellarPaymentOperation = schema_utils_1.Type.Object({
|
|
19
|
+
type: schema_utils_1.Type.Literal('payment'),
|
|
20
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
21
|
+
destination: schema_utils_1.Type.String(),
|
|
22
|
+
asset: exports.StellarAsset,
|
|
23
|
+
amount: schema_utils_1.Type.String(),
|
|
24
|
+
});
|
|
25
|
+
exports.StellarPathPaymentStrictReceiveOperation = schema_utils_1.Type.Object({
|
|
26
|
+
type: schema_utils_1.Type.Literal('pathPaymentStrictReceive'),
|
|
27
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
28
|
+
sendAsset: exports.StellarAsset,
|
|
29
|
+
sendMax: schema_utils_1.Type.Uint(),
|
|
30
|
+
destination: schema_utils_1.Type.String(),
|
|
31
|
+
destAsset: exports.StellarAsset,
|
|
32
|
+
destAmount: schema_utils_1.Type.Uint(),
|
|
33
|
+
path: schema_utils_1.Type.Optional(schema_utils_1.Type.Array(exports.StellarAsset)),
|
|
34
|
+
});
|
|
35
|
+
exports.StellarPathPaymentStrictSendOperation = schema_utils_1.Type.Object({
|
|
36
|
+
type: schema_utils_1.Type.Literal('pathPaymentStrictSend'),
|
|
37
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
38
|
+
sendAsset: exports.StellarAsset,
|
|
39
|
+
sendAmount: schema_utils_1.Type.Uint(),
|
|
40
|
+
destination: schema_utils_1.Type.String(),
|
|
41
|
+
destAsset: exports.StellarAsset,
|
|
42
|
+
destMin: schema_utils_1.Type.Uint(),
|
|
43
|
+
path: schema_utils_1.Type.Optional(schema_utils_1.Type.Array(exports.StellarAsset)),
|
|
44
|
+
});
|
|
45
|
+
exports.StellarPassiveSellOfferOperation = schema_utils_1.Type.Object({
|
|
46
|
+
type: schema_utils_1.Type.Literal('createPassiveSellOffer'),
|
|
47
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
48
|
+
buying: exports.StellarAsset,
|
|
49
|
+
selling: exports.StellarAsset,
|
|
50
|
+
amount: schema_utils_1.Type.Uint(),
|
|
51
|
+
price: schema_utils_1.Type.Object({
|
|
52
|
+
n: schema_utils_1.Type.Number(),
|
|
53
|
+
d: schema_utils_1.Type.Number(),
|
|
54
|
+
}),
|
|
55
|
+
});
|
|
56
|
+
exports.StellarManageSellOfferOperation = schema_utils_1.Type.Object({
|
|
57
|
+
type: schema_utils_1.Type.Literal('manageSellOffer'),
|
|
58
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
59
|
+
buying: exports.StellarAsset,
|
|
60
|
+
selling: exports.StellarAsset,
|
|
61
|
+
amount: schema_utils_1.Type.Uint(),
|
|
62
|
+
offerId: schema_utils_1.Type.Optional(schema_utils_1.Type.Uint()),
|
|
63
|
+
price: schema_utils_1.Type.Object({
|
|
64
|
+
n: schema_utils_1.Type.Number(),
|
|
65
|
+
d: schema_utils_1.Type.Number(),
|
|
66
|
+
}),
|
|
67
|
+
});
|
|
68
|
+
exports.StellarManageBuyOfferOperation = schema_utils_1.Type.Object({
|
|
69
|
+
type: schema_utils_1.Type.Literal('manageBuyOffer'),
|
|
70
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
71
|
+
buying: exports.StellarAsset,
|
|
72
|
+
selling: exports.StellarAsset,
|
|
73
|
+
amount: schema_utils_1.Type.Uint(),
|
|
74
|
+
offerId: schema_utils_1.Type.Optional(schema_utils_1.Type.Uint()),
|
|
75
|
+
price: schema_utils_1.Type.Object({
|
|
76
|
+
n: schema_utils_1.Type.Number(),
|
|
77
|
+
d: schema_utils_1.Type.Number(),
|
|
78
|
+
}),
|
|
79
|
+
});
|
|
80
|
+
exports.StellarSetOptionsOperation = schema_utils_1.Type.Object({
|
|
81
|
+
type: schema_utils_1.Type.Literal('setOptions'),
|
|
82
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
83
|
+
signer: schema_utils_1.Type.Optional(schema_utils_1.Type.Object({
|
|
84
|
+
type: constants_1.PROTO.EnumStellarSignerType,
|
|
85
|
+
key: schema_utils_1.Type.Union([schema_utils_1.Type.String(), schema_utils_1.Type.Buffer()]),
|
|
86
|
+
weight: schema_utils_1.Type.Optional(schema_utils_1.Type.Number()),
|
|
87
|
+
})),
|
|
88
|
+
inflationDest: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
89
|
+
clearFlags: schema_utils_1.Type.Optional(schema_utils_1.Type.Number()),
|
|
90
|
+
setFlags: schema_utils_1.Type.Optional(schema_utils_1.Type.Number()),
|
|
91
|
+
masterWeight: schema_utils_1.Type.Optional(schema_utils_1.Type.Uint()),
|
|
92
|
+
lowThreshold: schema_utils_1.Type.Optional(schema_utils_1.Type.Uint()),
|
|
93
|
+
medThreshold: schema_utils_1.Type.Optional(schema_utils_1.Type.Uint()),
|
|
94
|
+
highThreshold: schema_utils_1.Type.Optional(schema_utils_1.Type.Uint()),
|
|
95
|
+
homeDomain: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
96
|
+
});
|
|
97
|
+
exports.StellarChangeTrustOperation = schema_utils_1.Type.Object({
|
|
98
|
+
type: schema_utils_1.Type.Literal('changeTrust'),
|
|
99
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
100
|
+
line: exports.StellarAsset,
|
|
101
|
+
limit: schema_utils_1.Type.String(),
|
|
102
|
+
});
|
|
103
|
+
exports.StellarAllowTrustOperation = schema_utils_1.Type.Object({
|
|
104
|
+
type: schema_utils_1.Type.Literal('allowTrust'),
|
|
105
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
106
|
+
trustor: schema_utils_1.Type.String(),
|
|
107
|
+
assetCode: schema_utils_1.Type.String(),
|
|
108
|
+
assetType: constants_1.PROTO.EnumStellarAssetType,
|
|
109
|
+
authorize: schema_utils_1.Type.Optional(schema_utils_1.Type.Union([schema_utils_1.Type.Boolean(), schema_utils_1.Type.Undefined()])),
|
|
110
|
+
});
|
|
111
|
+
exports.StellarAccountMergeOperation = schema_utils_1.Type.Object({
|
|
112
|
+
type: schema_utils_1.Type.Literal('accountMerge'),
|
|
113
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
114
|
+
destination: schema_utils_1.Type.String(),
|
|
115
|
+
});
|
|
116
|
+
exports.StellarManageDataOperation = schema_utils_1.Type.Object({
|
|
117
|
+
type: schema_utils_1.Type.Literal('manageData'),
|
|
118
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
119
|
+
name: schema_utils_1.Type.String(),
|
|
120
|
+
value: schema_utils_1.Type.Optional(schema_utils_1.Type.Union([schema_utils_1.Type.String(), schema_utils_1.Type.Buffer()])),
|
|
121
|
+
});
|
|
122
|
+
exports.StellarBumpSequenceOperation = schema_utils_1.Type.Object({
|
|
123
|
+
type: schema_utils_1.Type.Literal('bumpSequence'),
|
|
124
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
125
|
+
bumpTo: schema_utils_1.Type.Uint(),
|
|
126
|
+
});
|
|
127
|
+
exports.StellarInflationOperation = schema_utils_1.Type.Object({
|
|
128
|
+
type: schema_utils_1.Type.Literal('inflation'),
|
|
129
|
+
source: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
130
|
+
});
|
|
131
|
+
exports.StellarOperation = schema_utils_1.Type.Union([
|
|
132
|
+
exports.StellarCreateAccountOperation,
|
|
133
|
+
exports.StellarPaymentOperation,
|
|
134
|
+
exports.StellarPathPaymentStrictReceiveOperation,
|
|
135
|
+
exports.StellarPathPaymentStrictSendOperation,
|
|
136
|
+
exports.StellarPassiveSellOfferOperation,
|
|
137
|
+
exports.StellarManageSellOfferOperation,
|
|
138
|
+
exports.StellarManageBuyOfferOperation,
|
|
139
|
+
exports.StellarSetOptionsOperation,
|
|
140
|
+
exports.StellarChangeTrustOperation,
|
|
141
|
+
exports.StellarAllowTrustOperation,
|
|
142
|
+
exports.StellarAccountMergeOperation,
|
|
143
|
+
exports.StellarInflationOperation,
|
|
144
|
+
exports.StellarManageDataOperation,
|
|
145
|
+
exports.StellarBumpSequenceOperation,
|
|
146
|
+
]);
|
|
147
|
+
exports.StellarTransaction = schema_utils_1.Type.Object({
|
|
148
|
+
source: schema_utils_1.Type.String(),
|
|
149
|
+
fee: schema_utils_1.Type.Number(),
|
|
150
|
+
sequence: schema_utils_1.Type.Uint(),
|
|
151
|
+
timebounds: schema_utils_1.Type.Optional(schema_utils_1.Type.Object({
|
|
152
|
+
minTime: schema_utils_1.Type.Number(),
|
|
153
|
+
maxTime: schema_utils_1.Type.Number(),
|
|
154
|
+
})),
|
|
155
|
+
memo: schema_utils_1.Type.Optional(schema_utils_1.Type.Object({
|
|
156
|
+
type: constants_1.PROTO.EnumStellarMemoType,
|
|
157
|
+
id: schema_utils_1.Type.Optional(schema_utils_1.Type.Uint()),
|
|
158
|
+
text: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
159
|
+
hash: schema_utils_1.Type.Optional(schema_utils_1.Type.Union([schema_utils_1.Type.String(), schema_utils_1.Type.Buffer()])),
|
|
160
|
+
})),
|
|
161
|
+
operations: schema_utils_1.Type.Array(exports.StellarOperation),
|
|
162
|
+
});
|
|
163
|
+
exports.StellarSignTransaction = schema_utils_1.Type.Object({
|
|
164
|
+
path: params_1.DerivationPath,
|
|
165
|
+
networkPassphrase: schema_utils_1.Type.String(),
|
|
166
|
+
transaction: exports.StellarTransaction,
|
|
167
|
+
});
|
|
168
|
+
exports.StellarSignedTx = schema_utils_1.Type.Object({
|
|
169
|
+
publicKey: schema_utils_1.Type.String(),
|
|
170
|
+
signature: schema_utils_1.Type.String(),
|
|
171
|
+
});
|
|
172
|
+
exports.StellarOperationMessage = schema_utils_1.Type.Union([
|
|
173
|
+
schema_utils_1.Type.Intersect([
|
|
174
|
+
schema_utils_1.Type.Object({
|
|
175
|
+
type: schema_utils_1.Type.Literal('StellarCreateAccountOp'),
|
|
176
|
+
}),
|
|
177
|
+
constants_1.PROTO.StellarCreateAccountOp,
|
|
178
|
+
]),
|
|
179
|
+
schema_utils_1.Type.Intersect([
|
|
180
|
+
schema_utils_1.Type.Object({
|
|
181
|
+
type: schema_utils_1.Type.Literal('StellarPaymentOp'),
|
|
182
|
+
}),
|
|
183
|
+
constants_1.PROTO.StellarPaymentOp,
|
|
184
|
+
]),
|
|
185
|
+
schema_utils_1.Type.Intersect([
|
|
186
|
+
schema_utils_1.Type.Object({
|
|
187
|
+
type: schema_utils_1.Type.Literal('StellarPathPaymentStrictReceiveOp'),
|
|
188
|
+
}),
|
|
189
|
+
constants_1.PROTO.StellarPathPaymentStrictReceiveOp,
|
|
190
|
+
]),
|
|
191
|
+
schema_utils_1.Type.Intersect([
|
|
192
|
+
schema_utils_1.Type.Object({
|
|
193
|
+
type: schema_utils_1.Type.Literal('StellarPathPaymentStrictSendOp'),
|
|
194
|
+
}),
|
|
195
|
+
constants_1.PROTO.StellarPathPaymentStrictSendOp,
|
|
196
|
+
]),
|
|
197
|
+
schema_utils_1.Type.Intersect([
|
|
198
|
+
schema_utils_1.Type.Object({
|
|
199
|
+
type: schema_utils_1.Type.Literal('StellarManageSellOfferOp'),
|
|
200
|
+
}),
|
|
201
|
+
constants_1.PROTO.StellarManageSellOfferOp,
|
|
202
|
+
]),
|
|
203
|
+
schema_utils_1.Type.Intersect([
|
|
204
|
+
schema_utils_1.Type.Object({
|
|
205
|
+
type: schema_utils_1.Type.Literal('StellarManageBuyOfferOp'),
|
|
206
|
+
}),
|
|
207
|
+
constants_1.PROTO.StellarManageBuyOfferOp,
|
|
208
|
+
]),
|
|
209
|
+
schema_utils_1.Type.Intersect([
|
|
210
|
+
schema_utils_1.Type.Object({
|
|
211
|
+
type: schema_utils_1.Type.Literal('StellarCreatePassiveSellOfferOp'),
|
|
212
|
+
}),
|
|
213
|
+
constants_1.PROTO.StellarCreatePassiveSellOfferOp,
|
|
214
|
+
]),
|
|
215
|
+
schema_utils_1.Type.Intersect([
|
|
216
|
+
schema_utils_1.Type.Object({
|
|
217
|
+
type: schema_utils_1.Type.Literal('StellarSetOptionsOp'),
|
|
218
|
+
}),
|
|
219
|
+
constants_1.PROTO.StellarSetOptionsOp,
|
|
220
|
+
]),
|
|
221
|
+
schema_utils_1.Type.Intersect([
|
|
222
|
+
schema_utils_1.Type.Object({
|
|
223
|
+
type: schema_utils_1.Type.Literal('StellarChangeTrustOp'),
|
|
224
|
+
}),
|
|
225
|
+
constants_1.PROTO.StellarChangeTrustOp,
|
|
226
|
+
]),
|
|
227
|
+
schema_utils_1.Type.Intersect([
|
|
228
|
+
schema_utils_1.Type.Object({
|
|
229
|
+
type: schema_utils_1.Type.Literal('StellarAllowTrustOp'),
|
|
230
|
+
}),
|
|
231
|
+
constants_1.PROTO.StellarAllowTrustOp,
|
|
232
|
+
]),
|
|
233
|
+
schema_utils_1.Type.Intersect([
|
|
234
|
+
schema_utils_1.Type.Object({
|
|
235
|
+
type: schema_utils_1.Type.Literal('StellarAccountMergeOp'),
|
|
236
|
+
}),
|
|
237
|
+
constants_1.PROTO.StellarAccountMergeOp,
|
|
238
|
+
]),
|
|
239
|
+
schema_utils_1.Type.Intersect([
|
|
240
|
+
schema_utils_1.Type.Object({
|
|
241
|
+
type: schema_utils_1.Type.Literal('StellarManageDataOp'),
|
|
242
|
+
}),
|
|
243
|
+
constants_1.PROTO.StellarManageDataOp,
|
|
244
|
+
]),
|
|
245
|
+
schema_utils_1.Type.Intersect([
|
|
246
|
+
schema_utils_1.Type.Object({
|
|
247
|
+
type: schema_utils_1.Type.Literal('StellarBumpSequenceOp'),
|
|
248
|
+
}),
|
|
249
|
+
constants_1.PROTO.StellarBumpSequenceOp,
|
|
250
|
+
]),
|
|
251
|
+
]);
|
|
3
252
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,60 +1,163 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
import { Static } from '@trezor/schema-utils';
|
|
2
|
+
export type TezosRevealOperation = Static<typeof TezosRevealOperation>;
|
|
3
|
+
export declare const TezosRevealOperation: import("@sinclair/typebox").TObject<{
|
|
4
|
+
source: import("@sinclair/typebox").TString;
|
|
5
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
6
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
7
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
8
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
9
|
+
public_key: import("@sinclair/typebox").TString;
|
|
10
|
+
}>;
|
|
11
|
+
export type TezosManagerTransfer = Static<typeof TezosManagerTransfer>;
|
|
12
|
+
export declare const TezosManagerTransfer: import("@sinclair/typebox").TObject<{
|
|
13
|
+
destination: import("@sinclair/typebox").TString;
|
|
14
|
+
amount: import("@sinclair/typebox").TNumber;
|
|
15
|
+
}>;
|
|
16
|
+
export type TezosParametersManager = Static<typeof TezosParametersManager>;
|
|
17
|
+
export declare const TezosParametersManager: import("@sinclair/typebox").TObject<{
|
|
18
|
+
set_delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
+
cancel_delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
20
|
+
transfer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
21
|
+
destination: import("@sinclair/typebox").TString;
|
|
22
|
+
amount: import("@sinclair/typebox").TNumber;
|
|
23
|
+
}>>;
|
|
24
|
+
}>;
|
|
25
|
+
export type TezosTransactionOperation = Static<typeof TezosTransactionOperation>;
|
|
26
|
+
export declare const TezosTransactionOperation: import("@sinclair/typebox").TObject<{
|
|
27
|
+
source: import("@sinclair/typebox").TString;
|
|
28
|
+
destination: import("@sinclair/typebox").TString;
|
|
29
|
+
amount: import("@sinclair/typebox").TNumber;
|
|
30
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
31
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
32
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
33
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
34
|
+
parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>>;
|
|
35
|
+
parameters_manager: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
36
|
+
set_delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
37
|
+
cancel_delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
38
|
+
transfer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
39
|
+
destination: import("@sinclair/typebox").TString;
|
|
40
|
+
amount: import("@sinclair/typebox").TNumber;
|
|
41
|
+
}>>;
|
|
42
|
+
}>>;
|
|
43
|
+
}>;
|
|
44
|
+
export type TezosOriginationOperation = Static<typeof TezosOriginationOperation>;
|
|
45
|
+
export declare const TezosOriginationOperation: import("@sinclair/typebox").TObject<{
|
|
46
|
+
source: import("@sinclair/typebox").TString;
|
|
47
|
+
balance: import("@sinclair/typebox").TNumber;
|
|
48
|
+
delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
49
|
+
script: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>]>;
|
|
50
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
51
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
52
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
53
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
54
|
+
}>;
|
|
55
|
+
export type TezosDelegationOperation = Static<typeof TezosDelegationOperation>;
|
|
56
|
+
export declare const TezosDelegationOperation: import("@sinclair/typebox").TObject<{
|
|
57
|
+
source: import("@sinclair/typebox").TString;
|
|
58
|
+
delegate: import("@sinclair/typebox").TString;
|
|
59
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
60
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
61
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
62
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
63
|
+
}>;
|
|
64
|
+
export type TezosOperation = Static<typeof TezosOperation>;
|
|
65
|
+
export declare const TezosOperation: import("@sinclair/typebox").TObject<{
|
|
66
|
+
reveal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
67
|
+
source: import("@sinclair/typebox").TString;
|
|
68
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
69
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
70
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
71
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
72
|
+
public_key: import("@sinclair/typebox").TString;
|
|
73
|
+
}>>;
|
|
74
|
+
transaction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
75
|
+
source: import("@sinclair/typebox").TString;
|
|
76
|
+
destination: import("@sinclair/typebox").TString;
|
|
77
|
+
amount: import("@sinclair/typebox").TNumber;
|
|
78
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
79
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
80
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
81
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
82
|
+
parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>>;
|
|
83
|
+
parameters_manager: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
84
|
+
set_delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
85
|
+
cancel_delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
86
|
+
transfer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
87
|
+
destination: import("@sinclair/typebox").TString;
|
|
88
|
+
amount: import("@sinclair/typebox").TNumber;
|
|
89
|
+
}>>;
|
|
90
|
+
}>>;
|
|
91
|
+
}>>;
|
|
92
|
+
origination: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
93
|
+
source: import("@sinclair/typebox").TString;
|
|
94
|
+
balance: import("@sinclair/typebox").TNumber;
|
|
95
|
+
delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
96
|
+
script: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>]>;
|
|
97
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
98
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
99
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
100
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
101
|
+
}>>;
|
|
102
|
+
delegation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
103
|
+
source: import("@sinclair/typebox").TString;
|
|
104
|
+
delegate: import("@sinclair/typebox").TString;
|
|
105
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
106
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
107
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
108
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
109
|
+
}>>;
|
|
110
|
+
}>;
|
|
111
|
+
export type TezosSignTransaction = Static<typeof TezosSignTransaction>;
|
|
112
|
+
export declare const TezosSignTransaction: import("@sinclair/typebox").TObject<{
|
|
113
|
+
path: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>]>;
|
|
114
|
+
branch: import("@sinclair/typebox").TString;
|
|
115
|
+
operation: import("@sinclair/typebox").TObject<{
|
|
116
|
+
reveal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
117
|
+
source: import("@sinclair/typebox").TString;
|
|
118
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
119
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
120
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
121
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
122
|
+
public_key: import("@sinclair/typebox").TString;
|
|
123
|
+
}>>;
|
|
124
|
+
transaction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
125
|
+
source: import("@sinclair/typebox").TString;
|
|
126
|
+
destination: import("@sinclair/typebox").TString;
|
|
127
|
+
amount: import("@sinclair/typebox").TNumber;
|
|
128
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
129
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
130
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
131
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
132
|
+
parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>>;
|
|
133
|
+
parameters_manager: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
134
|
+
set_delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
135
|
+
cancel_delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
136
|
+
transfer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
137
|
+
destination: import("@sinclair/typebox").TString;
|
|
138
|
+
amount: import("@sinclair/typebox").TNumber;
|
|
139
|
+
}>>;
|
|
140
|
+
}>>;
|
|
141
|
+
}>>;
|
|
142
|
+
origination: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
143
|
+
source: import("@sinclair/typebox").TString;
|
|
144
|
+
balance: import("@sinclair/typebox").TNumber;
|
|
145
|
+
delegate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
146
|
+
script: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>]>;
|
|
147
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
148
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
149
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
150
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
151
|
+
}>>;
|
|
152
|
+
delegation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
153
|
+
source: import("@sinclair/typebox").TString;
|
|
154
|
+
delegate: import("@sinclair/typebox").TString;
|
|
155
|
+
fee: import("@sinclair/typebox").TNumber;
|
|
156
|
+
counter: import("@sinclair/typebox").TNumber;
|
|
157
|
+
gas_limit: import("@sinclair/typebox").TNumber;
|
|
158
|
+
storage_limit: import("@sinclair/typebox").TNumber;
|
|
159
|
+
}>>;
|
|
160
|
+
}>;
|
|
161
|
+
chunkify: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
162
|
+
}>;
|
|
60
163
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,64 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TezosSignTransaction = exports.TezosOperation = exports.TezosDelegationOperation = exports.TezosOriginationOperation = exports.TezosTransactionOperation = exports.TezosParametersManager = exports.TezosManagerTransfer = exports.TezosRevealOperation = void 0;
|
|
4
|
+
const params_1 = require("../../params");
|
|
5
|
+
const schema_utils_1 = require("@trezor/schema-utils");
|
|
6
|
+
exports.TezosRevealOperation = schema_utils_1.Type.Object({
|
|
7
|
+
source: schema_utils_1.Type.String(),
|
|
8
|
+
fee: schema_utils_1.Type.Number(),
|
|
9
|
+
counter: schema_utils_1.Type.Number(),
|
|
10
|
+
gas_limit: schema_utils_1.Type.Number(),
|
|
11
|
+
storage_limit: schema_utils_1.Type.Number(),
|
|
12
|
+
public_key: schema_utils_1.Type.String(),
|
|
13
|
+
});
|
|
14
|
+
exports.TezosManagerTransfer = schema_utils_1.Type.Object({
|
|
15
|
+
destination: schema_utils_1.Type.String(),
|
|
16
|
+
amount: schema_utils_1.Type.Number(),
|
|
17
|
+
});
|
|
18
|
+
exports.TezosParametersManager = schema_utils_1.Type.Object({
|
|
19
|
+
set_delegate: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
20
|
+
cancel_delegate: schema_utils_1.Type.Optional(schema_utils_1.Type.Boolean()),
|
|
21
|
+
transfer: schema_utils_1.Type.Optional(exports.TezosManagerTransfer),
|
|
22
|
+
});
|
|
23
|
+
exports.TezosTransactionOperation = schema_utils_1.Type.Object({
|
|
24
|
+
source: schema_utils_1.Type.String(),
|
|
25
|
+
destination: schema_utils_1.Type.String(),
|
|
26
|
+
amount: schema_utils_1.Type.Number(),
|
|
27
|
+
counter: schema_utils_1.Type.Number(),
|
|
28
|
+
fee: schema_utils_1.Type.Number(),
|
|
29
|
+
gas_limit: schema_utils_1.Type.Number(),
|
|
30
|
+
storage_limit: schema_utils_1.Type.Number(),
|
|
31
|
+
parameters: schema_utils_1.Type.Optional(schema_utils_1.Type.Array(schema_utils_1.Type.Number())),
|
|
32
|
+
parameters_manager: schema_utils_1.Type.Optional(exports.TezosParametersManager),
|
|
33
|
+
});
|
|
34
|
+
exports.TezosOriginationOperation = schema_utils_1.Type.Object({
|
|
35
|
+
source: schema_utils_1.Type.String(),
|
|
36
|
+
balance: schema_utils_1.Type.Number(),
|
|
37
|
+
delegate: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
38
|
+
script: params_1.DerivationPath,
|
|
39
|
+
fee: schema_utils_1.Type.Number(),
|
|
40
|
+
counter: schema_utils_1.Type.Number(),
|
|
41
|
+
gas_limit: schema_utils_1.Type.Number(),
|
|
42
|
+
storage_limit: schema_utils_1.Type.Number(),
|
|
43
|
+
});
|
|
44
|
+
exports.TezosDelegationOperation = schema_utils_1.Type.Object({
|
|
45
|
+
source: schema_utils_1.Type.String(),
|
|
46
|
+
delegate: schema_utils_1.Type.String(),
|
|
47
|
+
fee: schema_utils_1.Type.Number(),
|
|
48
|
+
counter: schema_utils_1.Type.Number(),
|
|
49
|
+
gas_limit: schema_utils_1.Type.Number(),
|
|
50
|
+
storage_limit: schema_utils_1.Type.Number(),
|
|
51
|
+
});
|
|
52
|
+
exports.TezosOperation = schema_utils_1.Type.Object({
|
|
53
|
+
reveal: schema_utils_1.Type.Optional(exports.TezosRevealOperation),
|
|
54
|
+
transaction: schema_utils_1.Type.Optional(exports.TezosTransactionOperation),
|
|
55
|
+
origination: schema_utils_1.Type.Optional(exports.TezosOriginationOperation),
|
|
56
|
+
delegation: schema_utils_1.Type.Optional(exports.TezosDelegationOperation),
|
|
57
|
+
});
|
|
58
|
+
exports.TezosSignTransaction = schema_utils_1.Type.Object({
|
|
59
|
+
path: params_1.DerivationPath,
|
|
60
|
+
branch: schema_utils_1.Type.String(),
|
|
61
|
+
operation: exports.TezosOperation,
|
|
62
|
+
chunkify: schema_utils_1.Type.Optional(schema_utils_1.Type.Boolean()),
|
|
63
|
+
});
|
|
3
64
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { Static } from '@trezor/schema-utils';
|
|
2
|
+
import { Params, Response } from '../params';
|
|
1
3
|
import type { PROTO } from '../../constants';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
path:
|
|
5
|
-
mac
|
|
6
|
-
}
|
|
4
|
+
export type UnlockPathParams = Static<typeof UnlockPathParams>;
|
|
5
|
+
export declare const UnlockPathParams: import("@sinclair/typebox").TObject<{
|
|
6
|
+
path: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>]>;
|
|
7
|
+
mac: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
|
+
}>;
|
|
7
9
|
export declare function unlockPath(params: Params<UnlockPathParams>): Response<PROTO.UnlockPath>;
|
|
8
10
|
//# sourceMappingURL=unlockPath.d.ts.map
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnlockPathParams = void 0;
|
|
4
|
+
const schema_utils_1 = require("@trezor/schema-utils");
|
|
5
|
+
const params_1 = require("../params");
|
|
6
|
+
exports.UnlockPathParams = schema_utils_1.Type.Object({
|
|
7
|
+
path: params_1.DerivationPath,
|
|
8
|
+
mac: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
9
|
+
});
|
|
3
10
|
//# sourceMappingURL=unlockPath.js.map
|