@ledgerhq/live-common 21.21.2 → 21.22.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/lib/api/Ethereum.d.ts.map +1 -1
- package/lib/api/Ethereum.js +2 -1
- package/lib/api/Ethereum.js.map +1 -1
- package/lib/apps/polyfill.d.ts.map +1 -1
- package/lib/apps/polyfill.js +1 -0
- package/lib/apps/polyfill.js.map +1 -1
- package/lib/bot/engine.js +1 -1
- package/lib/bot/engine.js.map +1 -1
- package/lib/bot/specs.d.ts +1 -0
- package/lib/bot/specs.d.ts.map +1 -1
- package/lib/bot/specs.js +3 -1
- package/lib/bot/specs.js.map +1 -1
- package/lib/env.js +2 -2
- package/lib/env.js.map +1 -1
- package/lib/families/ethereum/signOperation.d.ts.map +1 -1
- package/lib/families/ethereum/signOperation.js +2 -2
- package/lib/families/ethereum/signOperation.js.map +1 -1
- package/lib/families/tezos/bridge/js.d.ts.map +1 -1
- package/lib/families/tezos/bridge/js.js +90 -50
- package/lib/families/tezos/bridge/js.js.map +1 -1
- package/lib/families/tezos/bridge/libcore.d.ts.map +1 -1
- package/lib/families/tezos/bridge/libcore.js +2 -1
- package/lib/families/tezos/bridge/libcore.js.map +1 -1
- package/lib/families/tezos/bridge/mock.d.ts.map +1 -1
- package/lib/families/tezos/bridge/mock.js +2 -1
- package/lib/families/tezos/bridge/mock.js.map +1 -1
- package/lib/families/tezos/signOperation.d.ts.map +1 -1
- package/lib/families/tezos/signOperation.js +28 -19
- package/lib/families/tezos/signOperation.js.map +1 -1
- package/lib/families/tezos/specs.d.ts.map +1 -1
- package/lib/families/tezos/specs.js +8 -4
- package/lib/families/tezos/specs.js.map +1 -1
- package/lib/families/tezos/speculos-deviceActions.js +6 -7
- package/lib/families/tezos/speculos-deviceActions.js.map +1 -1
- package/lib/families/tezos/synchronisation.d.ts.map +1 -1
- package/lib/families/tezos/synchronisation.js +7 -4
- package/lib/families/tezos/synchronisation.js.map +1 -1
- package/lib/families/tezos/synchronisation.test.d.ts.map +1 -1
- package/lib/families/tezos/synchronisation.test.js +0 -3
- package/lib/families/tezos/synchronisation.test.js.map +1 -1
- package/lib/families/tezos/test-dataset.d.ts +2 -2
- package/lib/families/tezos/test-dataset.d.ts.map +1 -1
- package/lib/families/tezos/test-dataset.js +45 -319
- package/lib/families/tezos/test-dataset.js.map +1 -1
- package/lib/families/tezos/transaction.d.ts +2 -2
- package/lib/families/tezos/transaction.d.ts.map +1 -1
- package/lib/families/tezos/transaction.js +4 -4
- package/lib/families/tezos/transaction.js.map +1 -1
- package/lib/families/tezos/types.d.ts +2 -0
- package/lib/families/tezos/types.d.ts.map +1 -1
- package/lib/families/tezos/types.js.map +1 -1
- package/lib/generated/transaction.d.ts +1 -1
- package/package.json +9 -9
- package/src/api/Ethereum.ts +3 -1
- package/src/apps/polyfill.ts +1 -0
- package/src/bot/engine.ts +1 -1
- package/src/bot/specs.ts +7 -1
- package/src/env.ts +2 -2
- package/src/families/ethereum/signOperation.ts +2 -2
- package/src/families/tezos/bridge/js.ts +77 -36
- package/src/families/tezos/bridge/libcore.ts +1 -0
- package/src/families/tezos/bridge/mock.ts +1 -0
- package/src/families/tezos/signOperation.ts +19 -8
- package/src/families/tezos/specs.ts +16 -5
- package/src/families/tezos/speculos-deviceActions.ts +5 -5
- package/src/families/tezos/synchronisation.test.ts +0 -3
- package/src/families/tezos/synchronisation.ts +6 -3
- package/src/families/tezos/test-dataset.ts +33 -363
- package/src/families/tezos/transaction.ts +7 -1
- package/src/families/tezos/types.ts +2 -0
|
@@ -1,356 +1,82 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
2
|
exports.__esModule = true;
|
|
17
3
|
exports.accountTZrevealedDelegating = void 0;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
4
|
+
// TODO restore
|
|
5
|
+
// import tezosScanAccounts1 from "./datasets/tezos.scanAccounts.1";
|
|
6
|
+
// FIXME these accounts no longer reflect their expected states..
|
|
7
|
+
exports.accountTZrevealedDelegating = makeAccount("TZrevealedDelegating", "tz1boBHAVpwcvKkNFAQHYr7mjxAz1PpVgKq7", "tezbox");
|
|
8
|
+
/*
|
|
9
|
+
const accountTZwithKT = makeAccount(
|
|
10
|
+
"TZwithKT",
|
|
11
|
+
"tz1T72nyqnJWwxad6RQnh7imKQz7mzToamWd",
|
|
12
|
+
"tezbox"
|
|
13
|
+
);
|
|
14
|
+
*/
|
|
15
|
+
var accountTZnew = makeAccount("TZnew", "tz1VSichevvJSNkSSntgwKDKikWNB6iqNJii", "tezbox");
|
|
16
|
+
var accountTZnotRevealed = makeAccount("TZnotRevealed", "tz1PWFt4Ym6HedY78MgUP2kVDtSampGwprs5", "tezosbip44h");
|
|
17
|
+
var accountTZRevealedNoDelegate = makeAccount("TZRevealedNoDelegate", "tz1YkAjh5mm5gJ5u3VbFLEtpAG7cFo7PfCux", "tezosbip44h");
|
|
18
|
+
/*
|
|
19
|
+
const accountTZemptyWithKT = makeAccount(
|
|
20
|
+
"TZemptyWithKT",
|
|
21
|
+
"tz1TeawWFnUmeP1qQLf4JWe5D7LaNp1qxgMW",
|
|
22
|
+
"tezbox"
|
|
23
|
+
);
|
|
24
|
+
*/
|
|
37
25
|
var dataset = {
|
|
38
|
-
implementations: ["
|
|
39
|
-
|
|
40
|
-
currencies: {} || {
|
|
26
|
+
implementations: ["js"],
|
|
27
|
+
currencies: {
|
|
41
28
|
tezos: {
|
|
42
29
|
FIXME_ignoreOperationFields: ["blockHeight"],
|
|
43
|
-
scanAccounts: [
|
|
30
|
+
// scanAccounts: [tezosScanAccounts1],
|
|
31
|
+
scanAccounts: [],
|
|
44
32
|
accounts: [
|
|
45
33
|
{
|
|
46
|
-
FIXME_tests: [
|
|
47
|
-
"balance is sum of ops", // https://ledgerhq.atlassian.net/browse/LLC-591
|
|
48
|
-
],
|
|
49
34
|
raw: exports.accountTZrevealedDelegating,
|
|
50
|
-
transactions: [
|
|
51
|
-
{
|
|
52
|
-
name: "send max to new account (explicit)",
|
|
53
|
-
transaction: (0, transaction_1.fromTransactionRaw)({
|
|
54
|
-
amount: "0",
|
|
55
|
-
recipient: addressTZnew,
|
|
56
|
-
useAllAmount: true,
|
|
57
|
-
family: "tezos",
|
|
58
|
-
mode: "send",
|
|
59
|
-
networkInfo: {
|
|
60
|
-
family: "tezos",
|
|
61
|
-
fees: "3075"
|
|
62
|
-
},
|
|
63
|
-
fees: "3075",
|
|
64
|
-
gasLimit: "10600",
|
|
65
|
-
storageLimit: "300",
|
|
66
|
-
taquitoError: null
|
|
67
|
-
}),
|
|
68
|
-
expectedStatus: function (account) { return ({
|
|
69
|
-
errors: {},
|
|
70
|
-
warnings: {
|
|
71
|
-
amount: new errors_1.RecommendUndelegation()
|
|
72
|
-
},
|
|
73
|
-
estimatedFees: new bignumber_js_1.BigNumber("3075"),
|
|
74
|
-
amount: account.balance
|
|
75
|
-
.minus(reservedAmountForStorageLimit("300"))
|
|
76
|
-
.minus("3075"),
|
|
77
|
-
totalSpent: account.balance
|
|
78
|
-
}); }
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: "overflow send to new account",
|
|
82
|
-
transaction: function (t, account) { return (__assign(__assign({}, t), { amount: account.balance.minus(t.fees || 0).minus("1000"), recipient: addressTZnew })); },
|
|
83
|
-
expectedStatus: {
|
|
84
|
-
errors: {
|
|
85
|
-
amount: new errors_1.NotEnoughBalance()
|
|
86
|
-
},
|
|
87
|
-
warnings: {}
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: "send max to new account (dynamic)",
|
|
92
|
-
transaction: function (t) { return (__assign(__assign({}, t), { recipient: addressTZnew, useAllAmount: true })); },
|
|
93
|
-
expectedStatus: function (account, _a) {
|
|
94
|
-
var storageLimit = _a.storageLimit, fees = _a.fees;
|
|
95
|
-
return ((0, invariant_1["default"])(fees, "fees are required"),
|
|
96
|
-
{
|
|
97
|
-
errors: {},
|
|
98
|
-
warnings: {
|
|
99
|
-
amount: new errors_1.RecommendUndelegation()
|
|
100
|
-
},
|
|
101
|
-
estimatedFees: fees,
|
|
102
|
-
amount: account.balance
|
|
103
|
-
.minus(reservedAmountForStorageLimit(storageLimit))
|
|
104
|
-
.minus(fees),
|
|
105
|
-
totalSpent: account.balance
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: "send max to existing account",
|
|
111
|
-
transaction: function (t) { return (__assign(__assign({}, t), { recipient: addressTZregular, useAllAmount: true })); },
|
|
112
|
-
expectedStatus: function (account, _a) {
|
|
113
|
-
var fees = _a.fees;
|
|
114
|
-
return ((0, invariant_1["default"])(fees, "fees are required"),
|
|
115
|
-
{
|
|
116
|
-
errors: {},
|
|
117
|
-
warnings: {
|
|
118
|
-
amount: new errors_1.RecommendUndelegation()
|
|
119
|
-
},
|
|
120
|
-
estimatedFees: fees,
|
|
121
|
-
amount: account.balance.minus(fees),
|
|
122
|
-
totalSpent: account.balance
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: "self tx forbidden",
|
|
128
|
-
transaction: function (t) { return (__assign(__assign({}, t), { recipient: addressAccountTZrevealedDelegating, amount: new bignumber_js_1.BigNumber(0.1) })); },
|
|
129
|
-
expectedStatus: {
|
|
130
|
-
errors: {
|
|
131
|
-
recipient: new errors_1.InvalidAddressBecauseDestinationIsAlsoSource()
|
|
132
|
-
},
|
|
133
|
-
warnings: {}
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
name: "undelegate",
|
|
138
|
-
transaction: function (t) { return (__assign(__assign({}, t), { mode: "undelegate" })); },
|
|
139
|
-
expectedStatus: function (account, _a) {
|
|
140
|
-
var fees = _a.fees;
|
|
141
|
-
return ((0, invariant_1["default"])(fees, "fees are required"),
|
|
142
|
-
{
|
|
143
|
-
errors: {},
|
|
144
|
-
warnings: {},
|
|
145
|
-
amount: new bignumber_js_1.BigNumber(0),
|
|
146
|
-
estimatedFees: fees
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
]
|
|
35
|
+
transactions: []
|
|
151
36
|
},
|
|
152
37
|
{
|
|
153
|
-
FIXME_tests: [
|
|
154
|
-
"balance is sum of ops", // https://ledgerhq.atlassian.net/browse/LLC-591
|
|
155
|
-
],
|
|
156
38
|
raw: accountTZRevealedNoDelegate,
|
|
157
|
-
transactions: [
|
|
158
|
-
{
|
|
159
|
-
name: "send max to new account",
|
|
160
|
-
transaction: function (t) { return (__assign(__assign({}, t), { recipient: addressTZnew, useAllAmount: true })); },
|
|
161
|
-
expectedStatus: function (account, _a) {
|
|
162
|
-
var storageLimit = _a.storageLimit, fees = _a.fees;
|
|
163
|
-
return ((0, invariant_1["default"])(fees, "fees are required"),
|
|
164
|
-
{
|
|
165
|
-
errors: {},
|
|
166
|
-
warnings: {},
|
|
167
|
-
estimatedFees: fees,
|
|
168
|
-
amount: account.balance
|
|
169
|
-
.minus(reservedAmountForStorageLimit(storageLimit))
|
|
170
|
-
.minus(fees),
|
|
171
|
-
totalSpent: account.balance
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
name: "send max to existing account",
|
|
177
|
-
transaction: function (t) { return (__assign(__assign({}, t), { recipient: addressTZregular, useAllAmount: true })); },
|
|
178
|
-
expectedStatus: function (account, _a) {
|
|
179
|
-
var fees = _a.fees;
|
|
180
|
-
return ((0, invariant_1["default"])(fees, "fees are required"),
|
|
181
|
-
{
|
|
182
|
-
errors: {},
|
|
183
|
-
warnings: {},
|
|
184
|
-
estimatedFees: fees,
|
|
185
|
-
amount: account.balance.minus(fees),
|
|
186
|
-
totalSpent: account.balance
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
name: "delegate",
|
|
192
|
-
transaction: function (t) { return (__assign(__assign({}, t), { recipient: addressDelegator, mode: "delegate" })); },
|
|
193
|
-
expectedStatus: function (account, _a) {
|
|
194
|
-
var fees = _a.fees;
|
|
195
|
-
return ((0, invariant_1["default"])(fees, "fees are required"),
|
|
196
|
-
{
|
|
197
|
-
errors: {},
|
|
198
|
-
warnings: {},
|
|
199
|
-
amount: new bignumber_js_1.BigNumber(0),
|
|
200
|
-
estimatedFees: fees
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
]
|
|
39
|
+
transactions: []
|
|
205
40
|
},
|
|
206
41
|
{
|
|
207
42
|
raw: accountTZnotRevealed,
|
|
208
|
-
|
|
209
|
-
"balance is sum of ops", // https://ledgerhq.atlassian.net/browse/LLC-591
|
|
210
|
-
],
|
|
211
|
-
transactions: [
|
|
212
|
-
{
|
|
213
|
-
name: "send 10% to KT",
|
|
214
|
-
transaction: function (t, account) { return (__assign(__assign({}, t), { recipient: addressKT, amount: account.balance.div(10) })); },
|
|
215
|
-
expectedStatus: {
|
|
216
|
-
errors: {
|
|
217
|
-
recipient: new errors_1.NotSupportedLegacyAddress()
|
|
218
|
-
},
|
|
219
|
-
warnings: {}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
name: "send 10% to existing tz",
|
|
224
|
-
transaction: function (t, account) { return (__assign(__assign({}, t), { recipient: addressTZnew, amount: account.balance.div(10) })); },
|
|
225
|
-
expectedStatus: function (account, _a) {
|
|
226
|
-
var fees = _a.fees;
|
|
227
|
-
return ((0, invariant_1["default"])(fees, "fees are required"),
|
|
228
|
-
{
|
|
229
|
-
errors: {},
|
|
230
|
-
warnings: {},
|
|
231
|
-
estimatedFees: fees.times(2),
|
|
232
|
-
amount: account.balance.div(10),
|
|
233
|
-
totalSpent: account.balance
|
|
234
|
-
.div(10)
|
|
235
|
-
.plus(fees.times(2))
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
]
|
|
43
|
+
transactions: []
|
|
240
44
|
},
|
|
241
45
|
{
|
|
242
46
|
raw: accountTZnew,
|
|
243
47
|
test: function (expect, account) {
|
|
244
48
|
expect(account.operations).toEqual([]);
|
|
245
49
|
},
|
|
246
|
-
transactions: [
|
|
247
|
-
{
|
|
248
|
-
name: "send 10% to existing tz",
|
|
249
|
-
transaction: function (t) { return (__assign(__assign({}, t), { recipient: addressTZregular, useAllAmount: true })); },
|
|
250
|
-
expectedStatus: {
|
|
251
|
-
errors: {
|
|
252
|
-
amount: new errors_1.NotEnoughBalance()
|
|
253
|
-
},
|
|
254
|
-
warnings: {}
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
]
|
|
50
|
+
transactions: []
|
|
258
51
|
},
|
|
52
|
+
// FIXME these accounts have issue
|
|
53
|
+
/*
|
|
259
54
|
{
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
"from KT 2, send max to existing account",
|
|
264
|
-
],
|
|
265
|
-
raw: accountTZwithKT,
|
|
266
|
-
transactions: [
|
|
267
|
-
{
|
|
268
|
-
name: "from KT 1, send max to new account",
|
|
269
|
-
transaction: function (t, account) {
|
|
270
|
-
var _a;
|
|
271
|
-
return ((0, invariant_1["default"])(account.subAccounts, "subAccounts"), __assign(__assign({}, t), { subAccountId: (_a = account.subAccounts) === null || _a === void 0 ? void 0 : _a[0].id, recipient: addressTZnew, useAllAmount: true }));
|
|
272
|
-
},
|
|
273
|
-
expectedStatus: function (_a, _b) {
|
|
274
|
-
var subAccounts = _a.subAccounts;
|
|
275
|
-
var storageLimit = _b.storageLimit, fees = _b.fees;
|
|
276
|
-
return ((0, invariant_1["default"])(fees && subAccounts, "fees are required"),
|
|
277
|
-
{
|
|
278
|
-
errors: {},
|
|
279
|
-
warnings: {},
|
|
280
|
-
estimatedFees: fees,
|
|
281
|
-
amount: subAccounts === null || subAccounts === void 0 ? void 0 : subAccounts[0].balance.minus(reservedAmountForStorageLimit(storageLimit)),
|
|
282
|
-
totalSpent: subAccounts === null || subAccounts === void 0 ? void 0 : subAccounts[0].balance
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
name: "from KT 2, send max to existing account",
|
|
288
|
-
transaction: function (t, account) {
|
|
289
|
-
var _a;
|
|
290
|
-
return ((0, invariant_1["default"])(account.subAccounts && account.subAccounts[1], "subAccounts"), __assign(__assign({}, t), { subAccountId: (_a = account.subAccounts) === null || _a === void 0 ? void 0 : _a[1].id, recipient: addressTZnew, useAllAmount: true }));
|
|
291
|
-
},
|
|
292
|
-
expectedStatus: function (_a, _b) {
|
|
293
|
-
var subAccounts = _a.subAccounts;
|
|
294
|
-
var fees = _b.fees, storageLimit = _b.storageLimit;
|
|
295
|
-
return ((0, invariant_1["default"])(subAccounts && fees && storageLimit, "fees are required"),
|
|
296
|
-
{
|
|
297
|
-
errors: {},
|
|
298
|
-
warnings: {},
|
|
299
|
-
estimatedFees: fees,
|
|
300
|
-
amount: subAccounts === null || subAccounts === void 0 ? void 0 : subAccounts[1].balance,
|
|
301
|
-
totalSpent: subAccounts === null || subAccounts === void 0 ? void 0 : subAccounts[1].balance
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
]
|
|
55
|
+
raw: accountTZwithKT,
|
|
56
|
+
transactions: [
|
|
57
|
+
],
|
|
306
58
|
},
|
|
59
|
+
*/
|
|
60
|
+
/*
|
|
307
61
|
{
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
raw: accountTZemptyWithKT,
|
|
312
|
-
transactions: [
|
|
313
|
-
{
|
|
314
|
-
name: "from KT 1, send max",
|
|
315
|
-
transaction: function (t, account) {
|
|
316
|
-
var _a;
|
|
317
|
-
return ((0, invariant_1["default"])(account.subAccounts, "subAccounts"), __assign(__assign({}, t), { subAccountId: (_a = account.subAccounts) === null || _a === void 0 ? void 0 : _a[0].id, recipient: addressTZregular, useAllAmount: true }));
|
|
318
|
-
},
|
|
319
|
-
expectedStatus: {
|
|
320
|
-
errors: {
|
|
321
|
-
amount: new errors_1.NotEnoughBalanceInParentAccount()
|
|
322
|
-
},
|
|
323
|
-
warnings: {}
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
name: "from KT 1, send 10%",
|
|
328
|
-
transaction: function (t, account) {
|
|
329
|
-
var _a;
|
|
330
|
-
return ((0, invariant_1["default"])(account.subAccounts, "subAccounts"), __assign(__assign({}, t), { subAccountId: (_a = account.subAccounts) === null || _a === void 0 ? void 0 : _a[0].id, amount: account.balance.div(10), recipient: addressTZregular }));
|
|
331
|
-
},
|
|
332
|
-
expectedStatus: {
|
|
333
|
-
errors: {
|
|
334
|
-
amount: new errors_1.NotEnoughBalanceInParentAccount()
|
|
335
|
-
},
|
|
336
|
-
warnings: {}
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
]
|
|
62
|
+
raw: accountTZemptyWithKT,
|
|
63
|
+
transactions: [
|
|
64
|
+
],
|
|
340
65
|
},
|
|
66
|
+
*/
|
|
341
67
|
]
|
|
342
68
|
}
|
|
343
69
|
}
|
|
344
70
|
};
|
|
345
71
|
exports["default"] = dataset;
|
|
346
|
-
function makeAccount(name,
|
|
72
|
+
function makeAccount(name, address, derivationMode) {
|
|
347
73
|
return {
|
|
348
|
-
id: "
|
|
349
|
-
seedIdentifier:
|
|
74
|
+
id: "js:2:tezos:".concat(address, ":").concat(derivationMode),
|
|
75
|
+
seedIdentifier: address,
|
|
350
76
|
name: "Tezos " + name,
|
|
351
77
|
derivationMode: derivationMode,
|
|
352
78
|
index: 0,
|
|
353
|
-
freshAddress:
|
|
79
|
+
freshAddress: address,
|
|
354
80
|
freshAddressPath: "",
|
|
355
81
|
freshAddresses: [],
|
|
356
82
|
blockHeight: 0,
|
|
@@ -360,7 +86,7 @@ function makeAccount(name, pubKey, derivationMode) {
|
|
|
360
86
|
unitMagnitude: 6,
|
|
361
87
|
lastSyncDate: "",
|
|
362
88
|
balance: "0",
|
|
363
|
-
xpub:
|
|
89
|
+
xpub: "",
|
|
364
90
|
subAccounts: []
|
|
365
91
|
};
|
|
366
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-dataset.js","sourceRoot":"","sources":["../../../src/families/tezos/test-dataset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-dataset.js","sourceRoot":"","sources":["../../../src/families/tezos/test-dataset.ts"],"names":[],"mappings":";;;AAGA,eAAe;AACf,oEAAoE;AAEpE,iEAAiE;AACpD,QAAA,2BAA2B,GAAG,WAAW,CACpD,sBAAsB,EACtB,sCAAsC,EACtC,QAAQ,CACT,CAAC;AACF;;;;;;EAME;AACF,IAAM,YAAY,GAAG,WAAW,CAC9B,OAAO,EACP,sCAAsC,EACtC,QAAQ,CACT,CAAC;AACF,IAAM,oBAAoB,GAAG,WAAW,CACtC,eAAe,EACf,sCAAsC,EACtC,aAAa,CACd,CAAC;AACF,IAAM,2BAA2B,GAAG,WAAW,CAC7C,sBAAsB,EACtB,sCAAsC,EACtC,aAAa,CACd,CAAC;AACF;;;;;;E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 -1,10 +1,10 @@
|
|
|
1
1
|
import type { Transaction, TransactionRaw } from "./types";
|
|
2
2
|
import type { Account } from "../../types";
|
|
3
|
-
export declare const formatTransaction: ({ mode, subAccountId, amount, recipient, gasLimit, storageLimit, fees, useAllAmount, }: Transaction, mainAccount: Account) => string;
|
|
3
|
+
export declare const formatTransaction: ({ mode, subAccountId, amount, recipient, gasLimit, storageLimit, fees, useAllAmount, estimatedFees, }: Transaction, mainAccount: Account) => string;
|
|
4
4
|
export declare const fromTransactionRaw: (tr: TransactionRaw) => Transaction;
|
|
5
5
|
export declare const toTransactionRaw: (t: Transaction) => TransactionRaw;
|
|
6
6
|
declare const _default: {
|
|
7
|
-
formatTransaction: ({ mode, subAccountId, amount, recipient, gasLimit, storageLimit, fees, useAllAmount, }: Transaction, mainAccount: Account) => string;
|
|
7
|
+
formatTransaction: ({ mode, subAccountId, amount, recipient, gasLimit, storageLimit, fees, useAllAmount, estimatedFees, }: Transaction, mainAccount: Account) => string;
|
|
8
8
|
fromTransactionRaw: (tr: TransactionRaw) => Transaction;
|
|
9
9
|
toTransactionRaw: (t: Transaction) => TransactionRaw;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/families/tezos/transaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/families/tezos/transaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,eAAO,MAAM,iBAAiB,0GAWzB,WAAW,eACD,OAAO,KACnB,MAqBF,CAAC;AACF,eAAO,MAAM,kBAAkB,OAAQ,cAAc,KAAG,WAiBvD,CAAC;AACF,eAAO,MAAM,gBAAgB,MAAO,WAAW,KAAG,cAiBjD,CAAC;;;;;;AACF,wBAIE"}
|
|
@@ -17,7 +17,7 @@ var common_1 = require("../../transaction/common");
|
|
|
17
17
|
var account_1 = require("../../account");
|
|
18
18
|
var currencies_1 = require("../../currencies");
|
|
19
19
|
var formatTransaction = function (_a, mainAccount) {
|
|
20
|
-
var mode = _a.mode, subAccountId = _a.subAccountId, amount = _a.amount, recipient = _a.recipient, gasLimit = _a.gasLimit, storageLimit = _a.storageLimit, fees = _a.fees, useAllAmount = _a.useAllAmount;
|
|
20
|
+
var mode = _a.mode, subAccountId = _a.subAccountId, amount = _a.amount, recipient = _a.recipient, gasLimit = _a.gasLimit, storageLimit = _a.storageLimit, fees = _a.fees, useAllAmount = _a.useAllAmount, estimatedFees = _a.estimatedFees;
|
|
21
21
|
var account = (subAccountId &&
|
|
22
22
|
(mainAccount.subAccounts || []).find(function (a) { return a.id === subAccountId; })) ||
|
|
23
23
|
mainAccount;
|
|
@@ -26,7 +26,7 @@ var formatTransaction = function (_a, mainAccount) {
|
|
|
26
26
|
: (0, currencies_1.formatCurrencyUnit)((0, account_1.getAccountUnit)(account), amount, {
|
|
27
27
|
showCode: true,
|
|
28
28
|
disableRounding: true
|
|
29
|
-
}), "\nTO ").concat(recipient, "\nwith fees=").concat(!fees ? "?" : (0, currencies_1.formatCurrencyUnit)(mainAccount.unit, fees), "\nwith gasLimit=").concat(!gasLimit ? "?" : gasLimit.toString(), "\nwith storageLimit=").concat(!storageLimit ? "?" : storageLimit.toString());
|
|
29
|
+
}), "\nTO ").concat(recipient, "\nwith fees=").concat(!fees ? "?" : (0, currencies_1.formatCurrencyUnit)(mainAccount.unit, fees), "\nwith gasLimit=").concat(!gasLimit ? "?" : gasLimit.toString(), "\nwith storageLimit=").concat(!storageLimit ? "?" : storageLimit.toString(), "\n(estimatedFees ").concat(!estimatedFees ? "?" : (0, currencies_1.formatCurrencyUnit)(mainAccount.unit, estimatedFees), ")");
|
|
30
30
|
};
|
|
31
31
|
exports.formatTransaction = formatTransaction;
|
|
32
32
|
var fromTransactionRaw = function (tr) {
|
|
@@ -35,7 +35,7 @@ var fromTransactionRaw = function (tr) {
|
|
|
35
35
|
return __assign(__assign({}, common), { family: tr.family, mode: tr.mode, networkInfo: networkInfo && {
|
|
36
36
|
family: networkInfo.family,
|
|
37
37
|
fees: new bignumber_js_1.BigNumber(networkInfo.fees)
|
|
38
|
-
}, fees: tr.fees ? new bignumber_js_1.BigNumber(tr.fees) : null, gasLimit: tr.gasLimit ? new bignumber_js_1.BigNumber(tr.gasLimit) : null, storageLimit: tr.storageLimit ? new bignumber_js_1.BigNumber(tr.storageLimit) : null, taquitoError: tr.taquitoError });
|
|
38
|
+
}, fees: tr.fees ? new bignumber_js_1.BigNumber(tr.fees) : null, gasLimit: tr.gasLimit ? new bignumber_js_1.BigNumber(tr.gasLimit) : null, storageLimit: tr.storageLimit ? new bignumber_js_1.BigNumber(tr.storageLimit) : null, estimatedFees: tr.estimatedFees ? new bignumber_js_1.BigNumber(tr.estimatedFees) : null, taquitoError: tr.taquitoError });
|
|
39
39
|
};
|
|
40
40
|
exports.fromTransactionRaw = fromTransactionRaw;
|
|
41
41
|
var toTransactionRaw = function (t) {
|
|
@@ -44,7 +44,7 @@ var toTransactionRaw = function (t) {
|
|
|
44
44
|
return __assign(__assign({}, common), { family: t.family, mode: t.mode, networkInfo: networkInfo && {
|
|
45
45
|
family: networkInfo.family,
|
|
46
46
|
fees: networkInfo.fees.toString()
|
|
47
|
-
}, fees: t.fees ? t.fees.toString() : null, gasLimit: t.gasLimit ? t.gasLimit.toString() : null, storageLimit: t.storageLimit ? t.storageLimit.toString() : null, taquitoError: t.taquitoError });
|
|
47
|
+
}, fees: t.fees ? t.fees.toString() : null, gasLimit: t.gasLimit ? t.gasLimit.toString() : null, storageLimit: t.storageLimit ? t.storageLimit.toString() : null, estimatedFees: t.estimatedFees ? t.estimatedFees.toString() : null, taquitoError: t.taquitoError });
|
|
48
48
|
};
|
|
49
49
|
exports.toTransactionRaw = toTransactionRaw;
|
|
50
50
|
exports["default"] = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../src/families/tezos/transaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,6CAAyC;AAEzC,mDAGkC;AAElC,yCAA+C;AAC/C,+CAAsD;AAC/C,IAAM,iBAAiB,GAAG,UAC/B,
|
|
1
|
+
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../src/families/tezos/transaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,6CAAyC;AAEzC,mDAGkC;AAElC,yCAA+C;AAC/C,+CAAsD;AAC/C,IAAM,iBAAiB,GAAG,UAC/B,EAUc,EACd,WAAoB;QAVlB,IAAI,UAAA,EACJ,YAAY,kBAAA,EACZ,MAAM,YAAA,EACN,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,IAAI,UAAA,EACJ,YAAY,kBAAA,EACZ,aAAa,mBAAA;IAIf,IAAM,OAAO,GACX,CAAC,YAAY;QACX,CAAC,WAAW,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,EAAE,KAAK,YAAY,EAArB,CAAqB,CAAC,CAAC;QACrE,WAAW,CAAC;IACd,OAAO,YACP,IAAI,CAAC,WAAW,EAAE,cAChB,YAAY;QACV,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,IAAA,+BAAkB,EAAC,IAAA,wBAAc,EAAC,OAAO,CAAC,EAAE,MAAM,EAAE;YAClD,QAAQ,EAAE,IAAI;YACd,eAAe,EAAE,IAAI;SACtB,CAAC,kBAEL,SAAS,yBACF,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,C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
101
101
|
gasLimit: BigNumber | null | undefined;
|
|
102
102
|
storageLimit: BigNumber | null | undefined;
|
|
103
|
+
estimatedFees: BigNumber | null | undefined;
|
|
103
104
|
taquitoError: string | null | undefined;
|
|
104
105
|
};
|
|
105
106
|
export declare type TransactionRaw = TransactionCommonRaw & {
|
|
@@ -109,6 +110,7 @@ export declare type TransactionRaw = TransactionCommonRaw & {
|
|
|
109
110
|
fees: string | null | undefined;
|
|
110
111
|
gasLimit: string | null | undefined;
|
|
111
112
|
storageLimit: string | null | undefined;
|
|
113
|
+
estimatedFees: string | null | undefined;
|
|
112
114
|
taquitoError: string | null | undefined;
|
|
113
115
|
};
|
|
114
116
|
export declare const reflect: (declare: (arg0: string, arg1: Spec) => void) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/families/tezos/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,IAAI,EACJ,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;CAY7B,CAAC;AAEF,oBAAY,kBAAkB,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,CAAC;AAEpE,oBAAY,iBAAiB,GAC3B,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAi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;CACzC,CAAC;AACF,oBAAY,cAAc,GAAG,oBAAoB,GAAG;IAClD,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,kBAAkB,CAAC;IACzB,WAAW,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AACF,eAAO,MAAM,OAAO,mBAAoB,MAAM,QAAQ,IAAI,KAAK,IAAI;;;;;;;;;;;CAyHlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/families/tezos/types.ts"],"names":[],"mappings":";;;AAwBA,qBAAqB;AAER,QAAA,iBAAiB,GAAG;IAC/B,kBAAkB,EAAE,CAAC;IACrB,mBAAmB,EAAE,CAAC;IACtB,mBAAmB,EAAE,CAAC;IACtB,qBAAqB,EAAE,CAAC;IACxB,mBAAmB,EAAE,CAAC;IACtB,sBAAsB,EAAE,CAAC;IACzB,oBAAoB,EAAE,CAAC;IACvB,oBAAoB,EAAE,CAAC;IACvB,yBAAyB,EAAE,CAAC;IAC5B,yBAAyB,EAAE,CAAC;IAC5B,wBAAwB,EAAE,EAAE;CAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/families/tezos/types.ts"],"names":[],"mappings":";;;AAwBA,qBAAqB;AAER,QAAA,iBAAiB,GAAG;IAC/B,kBAAkB,EAAE,CAAC;IACrB,mBAAmB,EAAE,CAAC;IACtB,mBAAmB,EAAE,CAAC;IACtB,qBAAqB,EAAE,CAAC;IACxB,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@ -60,7 +60,7 @@ declare const _default: {
|
|
|
60
60
|
toTransactionRaw: (t: import("../families/stellar/types").Transaction) => import("../families/stellar/types").TransactionRaw;
|
|
61
61
|
};
|
|
62
62
|
tezos: {
|
|
63
|
-
formatTransaction: ({ mode, subAccountId, amount, recipient, gasLimit, storageLimit, fees, useAllAmount, }: import("../families/tezos/types").Transaction, mainAccount: import("../types").Account) => string;
|
|
63
|
+
formatTransaction: ({ mode, subAccountId, amount, recipient, gasLimit, storageLimit, fees, useAllAmount, estimatedFees, }: import("../families/tezos/types").Transaction, mainAccount: import("../types").Account) => string;
|
|
64
64
|
fromTransactionRaw: (tr: import("../families/tezos/types").TransactionRaw) => import("../families/tezos/types").Transaction;
|
|
65
65
|
toTransactionRaw: (t: import("../families/tezos/types").Transaction) => import("../families/tezos/types").TransactionRaw;
|
|
66
66
|
};
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/LedgerHQ/ledger-live-common"
|
|
10
10
|
},
|
|
11
|
-
"version": "21.
|
|
11
|
+
"version": "21.22.1",
|
|
12
12
|
"main": "lib/index.js",
|
|
13
13
|
"types": "lib/index.d.ts",
|
|
14
14
|
"license": "Apache-2.0",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@crypto-com/chain-jslib": "0.0.19",
|
|
46
46
|
"@ledgerhq/compressjs": "1.3.2",
|
|
47
|
-
"@ledgerhq/cryptoassets": "6.
|
|
47
|
+
"@ledgerhq/cryptoassets": "6.21.1",
|
|
48
48
|
"@ledgerhq/devices": "6.20.0",
|
|
49
49
|
"@ledgerhq/errors": "6.10.0",
|
|
50
50
|
"@ledgerhq/hw-app-algorand": "6.20.0",
|
|
51
|
-
"@ledgerhq/hw-app-btc": "6.
|
|
51
|
+
"@ledgerhq/hw-app-btc": "6.21.0",
|
|
52
52
|
"@ledgerhq/hw-app-cosmos": "6.20.0",
|
|
53
|
-
"@ledgerhq/hw-app-eth": "6.
|
|
53
|
+
"@ledgerhq/hw-app-eth": "6.21.1",
|
|
54
54
|
"@ledgerhq/hw-app-polkadot": "6.20.0",
|
|
55
55
|
"@ledgerhq/hw-app-solana": "^6.20.0",
|
|
56
56
|
"@ledgerhq/hw-app-str": "6.20.0",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"@polkadot/types-known": "6.11.1",
|
|
68
68
|
"@solana/spl-token": "^0.1.8",
|
|
69
69
|
"@solana/web3.js": "^1.31.0",
|
|
70
|
-
"@taquito/ledger-signer": "^
|
|
71
|
-
"@taquito/taquito": "
|
|
70
|
+
"@taquito/ledger-signer": "^11.1.0",
|
|
71
|
+
"@taquito/taquito": "11.1.0",
|
|
72
72
|
"@types/bchaddrjs": "^0.4.0",
|
|
73
73
|
"@types/bs58check": "^2.1.0",
|
|
74
74
|
"@walletconnect/client": "1.7.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"eslint-plugin-typescript": "^0.14.0",
|
|
157
157
|
"fs": "^0.0.1-security",
|
|
158
158
|
"glob": "^7.2.0",
|
|
159
|
-
"jest": "^27.4.
|
|
159
|
+
"jest": "^27.4.5",
|
|
160
160
|
"jest-file-snapshot": "^0.5.0",
|
|
161
161
|
"prettier": "2.3.2",
|
|
162
162
|
"react": "17.0.2",
|
|
@@ -165,9 +165,9 @@
|
|
|
165
165
|
"react-test-renderer": "^17.0.2",
|
|
166
166
|
"rimraf": "^3.0.2",
|
|
167
167
|
"timemachine": "^0.3.2",
|
|
168
|
-
"ts-jest": "^27.1.
|
|
168
|
+
"ts-jest": "^27.1.2",
|
|
169
169
|
"ts-node": "^10.4.0",
|
|
170
|
-
"typescript": "^4.5.
|
|
170
|
+
"typescript": "^4.5.4",
|
|
171
171
|
"typescript-eslint-parser": "^22.0.0"
|
|
172
172
|
}
|
|
173
173
|
}
|