@tatumio/tron 2.0.1-alpha.358 → 2.0.1-alpha.360
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/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.360",
|
|
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.360",
|
|
10
|
+
"@tatumio/api-client": "2.0.1-alpha.360",
|
|
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.360",
|
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.360",
|
|
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.360",
|
|
17
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.360",
|
|
18
18
|
"ethereumjs-wallet": "^1.0.2",
|
|
19
19
|
"bip39": "^3.0.2",
|
|
20
20
|
"web3": "^1.7.4",
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -5,4 +5,5 @@ tslib_1.__exportStar(require("./lib/tron.sdk"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./lib/services/tron.tx"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./lib/services/tron.wallet"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./lib/services/tron.trc20"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./lib/services/tron.web"), exports);
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/blockchain/tron/src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA8B;AAC9B,iEAAsC;AACtC,qEAA0C;AAC1C,oEAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/blockchain/tron/src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA8B;AAC9B,iEAAsC;AACtC,qEAA0C;AAC1C,oEAAyC;AACzC,kEAAuC"}
|
|
@@ -30,14 +30,14 @@ export declare const tronTrc10: (args: {
|
|
|
30
30
|
* @param body content of the transaction to broadcast
|
|
31
31
|
* @returns transaction id of the transaction in the blockchain
|
|
32
32
|
*/
|
|
33
|
-
signedTransaction: (body: TronTransferTrc10, precision?: number, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
33
|
+
signedTransaction: (body: TronTransferTrc10, precision?: number, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
34
34
|
/**
|
|
35
35
|
* Create Tron TRC10 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
|
|
36
36
|
* This operation is irreversible.
|
|
37
37
|
* @param body content of the transaction to broadcast
|
|
38
38
|
* @returns transaction id of the transaction in the blockchain
|
|
39
39
|
*/
|
|
40
|
-
createSignedTransaction: (body: TronCreateTrc10, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
40
|
+
createSignedTransaction: (body: TronCreateTrc10, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export {};
|
|
@@ -36,14 +36,14 @@ export declare const tronTrc20: (args: {
|
|
|
36
36
|
* @param body content of the transaction to broadcast
|
|
37
37
|
* @returns transaction id of the transaction in the blockchain
|
|
38
38
|
*/
|
|
39
|
-
signedTransaction: (body: TransferTronTrc20, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
39
|
+
signedTransaction: (body: TransferTronTrc20, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
40
40
|
/**
|
|
41
41
|
* Create Tron TRC20 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
|
|
42
42
|
* This operation is irreversible.
|
|
43
43
|
* @param body content of the transaction to broadcast
|
|
44
44
|
* @returns transaction id of the transaction in the blockchain
|
|
45
45
|
*/
|
|
46
|
-
createSignedTransaction: (body: CreateTronTrc20, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
46
|
+
createSignedTransaction: (body: CreateTronTrc20, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
export {};
|
|
@@ -26,11 +26,11 @@ export declare const tronTx: (args: {
|
|
|
26
26
|
signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
|
27
27
|
index: number;
|
|
28
28
|
from: string;
|
|
29
|
-
}> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey">>, precision?: number, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
29
|
+
}> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey">>, precision?: number, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
30
30
|
createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
|
31
31
|
index: number;
|
|
32
32
|
from: string;
|
|
33
|
-
}> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
33
|
+
}> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
trc20: {
|
|
@@ -50,11 +50,11 @@ export declare const tronTx: (args: {
|
|
|
50
50
|
signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
|
51
51
|
index: number;
|
|
52
52
|
from: string;
|
|
53
|
-
}> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
53
|
+
}> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
54
54
|
createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
|
55
55
|
index: number;
|
|
56
56
|
from: string;
|
|
57
|
-
}> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
57
|
+
}> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
trc721: {
|
|
@@ -129,14 +129,14 @@ export declare const tronTx: (args: {
|
|
|
129
129
|
* @param body content of the transaction to broadcast
|
|
130
130
|
* @returns transaction id of the transaction in the blockchain
|
|
131
131
|
*/
|
|
132
|
-
signedTransaction: (body: TronTransfer, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
132
|
+
signedTransaction: (body: TronTransfer, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
133
133
|
/**
|
|
134
134
|
* Send Tron Freeze balance transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
|
|
135
135
|
* This operation is irreversible.
|
|
136
136
|
* @param body content of the transaction to broadcast
|
|
137
137
|
* @returns transaction id of the transaction in the blockchain
|
|
138
138
|
*/
|
|
139
|
-
freezeTransaction: (body: TronFreeze, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
139
|
+
freezeTransaction: (body: TronFreeze, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
142
|
smartContract: {
|
package/src/lib/tron.sdk.d.ts
CHANGED
|
@@ -16,11 +16,11 @@ export declare const TatumTronSDK: (args: SDKArguments) => {
|
|
|
16
16
|
signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronBlockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
|
17
17
|
index: number;
|
|
18
18
|
from: string;
|
|
19
|
-
}> & Partial<Pick<import("@tatumio/api-client").TransferTronBlockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
19
|
+
}> & Partial<Pick<import("@tatumio/api-client").TransferTronBlockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
20
20
|
freezeTransaction: (body: Omit<import("@tatumio/api-client").FreezeTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
|
21
21
|
index: number;
|
|
22
22
|
from: string;
|
|
23
|
-
}> & Partial<Pick<import("@tatumio/api-client").FreezeTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
23
|
+
}> & Partial<Pick<import("@tatumio/api-client").FreezeTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
trc10: {
|
|
@@ -38,11 +38,11 @@ export declare const TatumTronSDK: (args: SDKArguments) => {
|
|
|
38
38
|
signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
|
39
39
|
index: number;
|
|
40
40
|
from: string;
|
|
41
|
-
}> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey">>, precision?: number, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
41
|
+
}> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey">>, precision?: number, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
42
42
|
createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
|
43
43
|
index: number;
|
|
44
44
|
from: string;
|
|
45
|
-
}> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
45
|
+
}> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
trc20: {
|
|
@@ -62,11 +62,11 @@ export declare const TatumTronSDK: (args: SDKArguments) => {
|
|
|
62
62
|
signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
|
63
63
|
index: number;
|
|
64
64
|
from: string;
|
|
65
|
-
}> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
65
|
+
}> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
66
66
|
createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
|
|
67
67
|
index: number;
|
|
68
68
|
from: string;
|
|
69
|
-
}> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
|
|
69
|
+
}> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
kms: {
|