@tatumio/tron 2.0.1-alpha.340 → 2.0.1-alpha.343
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/tron",
|
3
|
-
"version": "2.0.1-alpha.
|
3
|
+
"version": "2.0.1-alpha.343",
|
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.0.1-alpha.
|
10
|
-
"@tatumio/api-client": "2.0.1-alpha.
|
9
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.343",
|
10
|
+
"@tatumio/api-client": "2.0.1-alpha.343",
|
11
11
|
"axios": "^0.26.0",
|
12
12
|
"form-data": "^4.0.0",
|
13
|
-
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.
|
14
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
13
|
+
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.343",
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.343",
|
15
15
|
"bignumber.js": "^9.0.2",
|
16
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
17
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
16
|
+
"@tatumio/shared-core": "2.0.1-alpha.343",
|
17
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.343",
|
18
18
|
"ethereumjs-wallet": "^1.0.2",
|
19
19
|
"bip39": "^3.0.2",
|
20
20
|
"web3": "^1.7.4",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tron.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/tron/src/lib/services/tron.tx.ts"],"names":[],"mappings":";;;;AAAA,
|
1
|
+
{"version":3,"file":"tron.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/tron/src/lib/services/tron.tx.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ACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,mBAAmB,EAAE,CAAO,OAAgB,EAAE,IAAS,EAAE,QAAiB,EAAE,EAAE,0DAC5E,OAAA,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA,GAAA;aAC7D;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAtHY,QAAA,MAAM,UAsHlB"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { TransferTron } from '@tatumio/api-client';
|
2
|
-
import {
|
2
|
+
import { FromPrivateKeyOrSignatureId } from '@tatumio/shared-blockchain-abstract';
|
3
3
|
import { Blockchain } from '@tatumio/shared-core';
|
4
4
|
import { ITronWeb } from './tron.web';
|
5
5
|
export declare enum TrcType {
|
6
6
|
TRC10 = "TRC10",
|
7
7
|
TRC20 = "TRC20"
|
8
8
|
}
|
9
|
-
declare type TransferVirtualAccountTron =
|
9
|
+
declare type TransferVirtualAccountTron = FromPrivateKeyOrSignatureId<TransferTron>;
|
10
10
|
declare type VirtualAccountResponse = {
|
11
11
|
id?: string;
|
12
12
|
txId?: string;
|
package/src/lib/tron.sdk.d.ts
CHANGED
@@ -221,9 +221,9 @@ export declare const TatumTronSDK: (args: SDKArguments) => {
|
|
221
221
|
virtualAccount: {
|
222
222
|
send: (body: Omit<import("@tatumio/api-client").TransferTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
223
223
|
index: number;
|
224
|
-
}> & Partial<{
|
224
|
+
}> & Partial<Pick<import("@tatumio/api-client").TransferTron, "fromPrivateKey">> & Partial<{
|
225
225
|
mnemonic: string;
|
226
|
-
}>
|
226
|
+
}>) => Promise<(void | {
|
227
227
|
id?: string;
|
228
228
|
txId?: string;
|
229
229
|
completed?: boolean;
|