@tatumio/tron 2.2.18 → 2.2.20
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/tron",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.20",
|
4
4
|
"type": "commonjs",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "./src/index.js",
|
7
7
|
"types": "./src/index.d.ts",
|
8
8
|
"dependencies": {
|
9
|
-
"@tatumio/shared-testing-common": "2.2.
|
10
|
-
"@tatumio/api-client": "2.2.
|
9
|
+
"@tatumio/shared-testing-common": "2.2.20",
|
10
|
+
"@tatumio/api-client": "2.2.20",
|
11
11
|
"axios": "^0.26.0",
|
12
12
|
"form-data": "^4.0.0",
|
13
|
-
"@tatumio/shared-blockchain-evm-based": "2.2.
|
14
|
-
"@tatumio/shared-abstract-sdk": "2.2.
|
13
|
+
"@tatumio/shared-blockchain-evm-based": "2.2.20",
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.2.20",
|
15
15
|
"bignumber.js": "^9.0.2",
|
16
|
-
"@tatumio/shared-core": "2.2.
|
16
|
+
"@tatumio/shared-core": "2.2.20",
|
17
17
|
"lodash": "^4.17.21",
|
18
|
-
"@tatumio/shared-blockchain-abstract": "2.2.
|
18
|
+
"@tatumio/shared-blockchain-abstract": "2.2.20",
|
19
19
|
"ethereumjs-wallet": "^1.0.2",
|
20
20
|
"bip39": "^3.0.2",
|
21
21
|
"web3": "^1.7.4",
|
@@ -30,7 +30,7 @@ const sendTronVirtualAccountTransaction = (body, tronWeb) => tslib_1.__awaiter(v
|
|
30
30
|
const withdrawalBody = Object.assign(Object.assign({}, withdrawal), { fee: withdrawalFee });
|
31
31
|
const account = yield api_client_1.AccountService.getAccountByAccountId(senderAccountId);
|
32
32
|
if (account.currency === api_client_1.Currency.TRON) {
|
33
|
-
txData = yield txService.native.
|
33
|
+
txData = yield txService.native.prepare.signedTransaction({
|
34
34
|
amount,
|
35
35
|
fromPrivateKey: fromPrivKey,
|
36
36
|
to: address,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tron.virtualAccount.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/tron/src/lib/services/tron.virtualAccount.ts"],"names":[],"mappings":";;;;AAAA,oDAQ4B;AAC5B,oFAG4C;AAC5C,sDAAqE;AACrE,+CAA0C;AAE1C,uCAAkC;AAElC,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,0BAAe,CAAA;IACf,0BAAe,CAAA;AACjB,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB;AAED,MAAM,qBAAqB,GAAG,CAAC,qBAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,qBAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAA;AAK5F,MAAM,iCAAiC,GAAG,CACxC,IAAgC,EAChC,OAAiB,EACgB,EAAE;IACnC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,KAAoB,IAAI,EAAnB,UAAU,kBAAK,IAAI,EAAzD,uCAAkD,CAAO,CAAA;IAC/D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,UAAU,CAAA;IACvD,MAAM,MAAM,GAAG,IAAA,wBAAU,EAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IACtC,MAAM,SAAS,GAAG,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IACrC,IAAI,WAAmB,CAAA;IACvB,IAAI,MAAW,CAAA;IAEf,IAAI,QAAQ,IAAI,KAAK,KAAK,SAAS,EAAE;QACnC,WAAW,GAAG,CAAC,MAAM,MAAM,CAAC,8BAA8B,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAW,CAAA;KACvF;SAAM;QACL,WAAW,GAAG,IAAI,CAAC,cAAwB,CAAA;KAC5C;IAED,MAAM,aAAa,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,KAAI,KAAK,CAAA;IAC9C,MAAM,cAAc,mCACf,UAAU,KACb,GAAG,EAAE,aAAa,GACnB,CAAA;IAED,MAAM,OAAO,GAAG,MAAM,2BAAc,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAA;IAC3E,IAAI,OAAO,CAAC,QAAQ,KAAK,qBAAQ,CAAC,IAAI,EAAE;QACtC,MAAM,GAAG,MAAM,SAAS,CAAC,MAAM,CAAC,
|
1
|
+
{"version":3,"file":"tron.virtualAccount.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/tron/src/lib/services/tron.virtualAccount.ts"],"names":[],"mappings":";;;;AAAA,oDAQ4B;AAC5B,oFAG4C;AAC5C,sDAAqE;AACrE,+CAA0C;AAE1C,uCAAkC;AAElC,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,0BAAe,CAAA;IACf,0BAAe,CAAA;AACjB,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB;AAED,MAAM,qBAAqB,GAAG,CAAC,qBAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,qBAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAA;AAK5F,MAAM,iCAAiC,GAAG,CACxC,IAAgC,EAChC,OAAiB,EACgB,EAAE;IACnC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,KAAoB,IAAI,EAAnB,UAAU,kBAAK,IAAI,EAAzD,uCAAkD,CAAO,CAAA;IAC/D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,UAAU,CAAA;IACvD,MAAM,MAAM,GAAG,IAAA,wBAAU,EAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IACtC,MAAM,SAAS,GAAG,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IACrC,IAAI,WAAmB,CAAA;IACvB,IAAI,MAAW,CAAA;IAEf,IAAI,QAAQ,IAAI,KAAK,KAAK,SAAS,EAAE;QACnC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