@tatumio/tron 2.0.1-alpha.331 → 2.0.1-alpha.332

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,34 +3,82 @@ import { SDKArguments } from '@tatumio/shared-abstract-sdk';
3
3
  export declare const TatumTronSDK: (args: SDKArguments) => {
4
4
  transaction: {
5
5
  prepare: {
6
- signedTransaction: (body: import("@tatumio/api-client").TransferTronBlockchain | import("@tatumio/api-client").TransferTronBlockchainKMS, provider?: string) => Promise<string>;
7
- freezeTransaction: (body: import("@tatumio/api-client").FreezeTron | import("@tatumio/api-client").FreezeTronKMS, provider?: string) => Promise<string>;
6
+ signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronBlockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
7
+ index: number;
8
+ account: string;
9
+ from: string;
10
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTronBlockchain, "fromPrivateKey">>, provider?: string) => Promise<string>;
11
+ freezeTransaction: (body: Omit<import("@tatumio/api-client").FreezeTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
12
+ index: number;
13
+ account: string;
14
+ from: string;
15
+ }> & Partial<Pick<import("@tatumio/api-client").FreezeTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
8
16
  };
9
17
  send: {
10
- signedTransaction: (body: import("@tatumio/api-client").TransferTronBlockchain | import("@tatumio/api-client").TransferTronBlockchainKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
11
- freezeTransaction: (body: import("@tatumio/api-client").FreezeTron | import("@tatumio/api-client").FreezeTronKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
18
+ signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronBlockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
19
+ index: number;
20
+ account: string;
21
+ from: string;
22
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTronBlockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
23
+ freezeTransaction: (body: Omit<import("@tatumio/api-client").FreezeTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
24
+ index: number;
25
+ account: string;
26
+ from: string;
27
+ }> & Partial<Pick<import("@tatumio/api-client").FreezeTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
12
28
  };
13
29
  };
14
30
  trc10: {
15
31
  prepare: {
16
- signedTransaction: (body: import("@tatumio/api-client").TransferTronTrc10Blockchain | import("@tatumio/api-client").TransferTronTrc10BlockchainKMS, precision?: number, provider?: string) => Promise<string>;
17
- createSignedTransaction: (body: import("@tatumio/api-client").CreateTronTrc10Blockchain | import("@tatumio/api-client").CreateTronTrc10BlockchainKMS, provider?: string) => Promise<string>;
32
+ signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
33
+ index: number;
34
+ account: string;
35
+ from: string;
36
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey">>, precision?: number, provider?: string) => Promise<string>;
37
+ createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
38
+ index: number;
39
+ account: string;
40
+ from: string;
41
+ }> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey">>, provider?: string) => Promise<string>;
18
42
  };
19
43
  send: {
20
- signedTransaction: (body: import("@tatumio/api-client").TransferTronTrc10Blockchain | import("@tatumio/api-client").TransferTronTrc10BlockchainKMS, precision?: number, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
21
- createSignedTransaction: (body: import("@tatumio/api-client").CreateTronTrc10Blockchain | import("@tatumio/api-client").CreateTronTrc10BlockchainKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
44
+ signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
45
+ index: number;
46
+ account: string;
47
+ from: string;
48
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey">>, precision?: number, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
49
+ createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
50
+ index: number;
51
+ account: string;
52
+ from: string;
53
+ }> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
22
54
  };
23
55
  };
24
56
  trc20: {
25
57
  getAccountTrc20Address: (address: string, contractAddress: string, provider?: string) => Promise<any>;
26
58
  getTrc20ContractDecimals: (contractAddress: string, provider?: string) => Promise<any>;
27
59
  prepare: {
28
- signedTransaction: (body: import("@tatumio/api-client").TransferTronTrc20Blockchain | import("@tatumio/api-client").TransferTronTrc20BlockchainKMS, provider?: string) => Promise<string>;
29
- createSignedTransaction: (body: import("@tatumio/api-client").CreateTronTrc20Blockchain | import("@tatumio/api-client").CreateTronTrc20BlockchainKMS, provider?: string) => Promise<string>;
60
+ signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
61
+ index: number;
62
+ account: string;
63
+ from: string;
64
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<string>;
65
+ createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
66
+ index: number;
67
+ account: string;
68
+ from: string;
69
+ }> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<string>;
30
70
  };
31
71
  send: {
32
- signedTransaction: (body: import("@tatumio/api-client").TransferTronTrc20Blockchain | import("@tatumio/api-client").TransferTronTrc20BlockchainKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
33
- createSignedTransaction: (body: import("@tatumio/api-client").CreateTronTrc20Blockchain | import("@tatumio/api-client").CreateTronTrc20BlockchainKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
72
+ signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
73
+ index: number;
74
+ account: string;
75
+ from: string;
76
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
77
+ createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
78
+ index: number;
79
+ account: string;
80
+ from: string;
81
+ }> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
34
82
  };
35
83
  };
36
84
  kms: {
@@ -52,72 +100,92 @@ export declare const TatumTronSDK: (args: SDKArguments) => {
52
100
  getNFTMetadataURI: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetMetadataErc721;
53
101
  getNFTRoyalty: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetRoyaltyErc721;
54
102
  prepare: {
55
- deploySignedTransaction: (body: (import("@tatumio/api-client").DeployNftTronKMS & {
103
+ deploySignedTransaction: (body: Omit<import("@tatumio/api-client").DeployNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
104
+ index: number;
105
+ account: string;
56
106
  from: string;
57
- }) | import("@tatumio/api-client").DeployNftTron, provider?: string) => Promise<string>;
58
- mintCashbackSignedTransaction: (body: (import("@tatumio/api-client").MintNftKMSTron & {
107
+ }> & Partial<Pick<import("@tatumio/api-client").DeployNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
108
+ mintCashbackSignedTransaction: (body: Omit<import("@tatumio/api-client").MintNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
109
+ index: number;
110
+ account: string;
59
111
  from: string;
60
- }) | import("@tatumio/api-client").MintNftTron, provider?: string) => Promise<string>;
61
- mintSignedTransaction: (body: (import("@tatumio/api-client").MintNftKMSTron & {
112
+ }> & Partial<Pick<import("@tatumio/api-client").MintNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
113
+ mintSignedTransaction: (body: Omit<import("@tatumio/api-client").MintNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
114
+ index: number;
115
+ account: string;
62
116
  from: string;
63
- }) | import("@tatumio/api-client").MintNftTron, provider?: string) => Promise<string>;
64
- transferSignedTransaction: (body: (import("@tatumio/api-client").TransferNftKMSTron & {
117
+ }> & Partial<Pick<import("@tatumio/api-client").MintNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
118
+ transferSignedTransaction: (body: Omit<import("@tatumio/api-client").TransferNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
119
+ index: number;
120
+ account: string;
65
121
  from: string;
66
- }) | import("@tatumio/api-client").TransferNftTron, provider?: string) => Promise<string>;
67
- burnSignedTransaction: (body: (import("@tatumio/api-client").BurnNftKMSTron & {
122
+ }> & Partial<Pick<import("@tatumio/api-client").TransferNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
123
+ burnSignedTransaction: (body: Omit<import("@tatumio/api-client").BurnNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
124
+ index: number;
125
+ account: string;
68
126
  from: string;
69
- }) | import("@tatumio/api-client").BurnNftTron, provider?: string) => Promise<string>;
70
- mintMultipleSignedTransaction: (body: (import("@tatumio/api-client").MintMultipleNftKMSTron & {
127
+ }> & Partial<Pick<import("@tatumio/api-client").BurnNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
128
+ mintMultipleSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
129
+ index: number;
130
+ account: string;
71
131
  from: string;
72
- }) | import("@tatumio/api-client").MintMultipleNftTron, provider?: string) => Promise<string>;
73
- updateCashbackValueForAuthorSignedTransaction: (body: (import("@tatumio/api-client").UpdateCashbackValueForAuthorNftKMSTron & {
132
+ }> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
133
+ updateCashbackValueForAuthorSignedTransaction: (body: Omit<import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
134
+ index: number;
135
+ account: string;
74
136
  from: string;
75
- }) | import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, provider?: string) => Promise<string>;
137
+ }> & Partial<Pick<import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
76
138
  };
77
139
  send: {
78
- deploySignedTransaction: (body: (import("@tatumio/api-client").DeployNftTronKMS & {
140
+ deploySignedTransaction: (body: Omit<import("@tatumio/api-client").DeployNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
141
+ index: number;
142
+ account: string;
79
143
  from: string;
80
- }) | import("@tatumio/api-client").DeployNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
81
- mintCashbackSignedTransaction: (body: (import("@tatumio/api-client").MintNftKMSTron & {
144
+ }> & Partial<Pick<import("@tatumio/api-client").DeployNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
145
+ mintCashbackSignedTransaction: (body: Omit<import("@tatumio/api-client").MintNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
146
+ index: number;
147
+ account: string;
82
148
  from: string;
83
- }) | import("@tatumio/api-client").MintNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
84
- mintSignedTransaction: (body: (import("@tatumio/api-client").MintNftKMSTron & {
149
+ }> & Partial<Pick<import("@tatumio/api-client").MintNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").FlowMintedResult | import("@tatumio/api-client").SolanaMintedResult | import("@tatumio/api-client").AlgorandMintedResult>;
150
+ mintSignedTransaction: (body: Omit<import("@tatumio/api-client").MintNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
151
+ index: number;
152
+ account: string;
85
153
  from: string;
86
- }) | import("@tatumio/api-client").MintNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
87
- transferSignedTransaction: (body: (import("@tatumio/api-client").TransferNftKMSTron & {
154
+ }> & Partial<Pick<import("@tatumio/api-client").MintNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").FlowMintedResult | import("@tatumio/api-client").SolanaMintedResult | import("@tatumio/api-client").AlgorandMintedResult>;
155
+ transferSignedTransaction: (body: Omit<import("@tatumio/api-client").TransferNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
156
+ index: number;
157
+ account: string;
88
158
  from: string;
89
- }) | import("@tatumio/api-client").TransferNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
90
- burnSignedTransaction: (body: (import("@tatumio/api-client").BurnNftKMSTron & {
159
+ }> & Partial<Pick<import("@tatumio/api-client").TransferNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
160
+ burnSignedTransaction: (body: Omit<import("@tatumio/api-client").BurnNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
161
+ index: number;
162
+ account: string;
91
163
  from: string;
92
- }) | import("@tatumio/api-client").BurnNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
93
- mintMultipleSignedTransaction: (body: (import("@tatumio/api-client").MintMultipleNftKMSTron & {
164
+ }> & Partial<Pick<import("@tatumio/api-client").BurnNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
165
+ mintMultipleSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
166
+ index: number;
167
+ account: string;
94
168
  from: string;
95
- }) | import("@tatumio/api-client").MintMultipleNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
96
- updateCashbackValueForAuthorSignedTransaction: (body: (import("@tatumio/api-client").UpdateCashbackValueForAuthorNftKMSTron & {
169
+ }> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").FlowMintedMultipleResult>;
170
+ updateCashbackValueForAuthorSignedTransaction: (body: Omit<import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
171
+ index: number;
172
+ account: string;
97
173
  from: string;
98
- }) | import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
99
- };
100
- };
101
- marketplace: {
102
- prepare: {
103
- deployMarketplaceListingSignedTransaction: (body: import("@tatumio/api-client").GenerateMarketplaceTron | import("@tatumio/api-client").GenerateMarketplaceTronKMS, tronWeb: import("./services/tron.web").ITronWeb, provider?: string) => Promise<string>;
104
- };
105
- send: {
106
- deployMarketplaceListingSignedTransaction: (body: import("@tatumio/api-client").GenerateMarketplaceTron | import("@tatumio/api-client").GenerateMarketplaceTronKMS, tronWeb: import("./services/tron.web").ITronWeb, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
174
+ }> & Partial<Pick<import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
107
175
  };
108
176
  };
109
177
  smartContract: {
110
178
  prepare: {
111
- smartContractInvocation: (body: import("@tatumio/api-client").CallSmartContractMethod | import("@tatumio/api-client").CallSmartContractMethodKMS, provider?: string) => Promise<string>;
179
+ smartContractInvocation: (body: import("./services/tron.tx").CallSmartContract, provider?: string) => Promise<string>;
112
180
  };
113
181
  };
114
182
  custodial: {
115
183
  prepare: {
116
- custodialTransferBatch: (body: import("@tatumio/api-client").CallSmartContractMethod | import("@tatumio/api-client").CallSmartContractMethodKMS, provider?: string) => Promise<string>;
117
- generateCustodialWalletSignedTransaction: (body: import("@tatumio/api-client").GenerateCustodialWalletTron | import("@tatumio/api-client").GenerateCustodialWalletTronKMS, provider?: string) => Promise<string>;
184
+ custodialTransferBatch: (body: import("./services/tron.tx").CallSmartContract, provider?: string) => Promise<string>;
185
+ generateCustodialWalletSignedTransaction: (body: import("./services/tron.tx").TronGenerateCustodialWallet, provider?: string) => Promise<string>;
118
186
  };
119
187
  send: {
120
- generateCustodialWalletSignedTransaction: (body: import("@tatumio/api-client").GenerateCustodialWalletTron | import("@tatumio/api-client").GenerateCustodialWalletTronKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
188
+ generateCustodialWalletSignedTransaction: (body: import("./services/tron.tx").TronGenerateCustodialWallet, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").CustodialManagedAddress>;
121
189
  };
122
190
  };
123
191
  wallet: {
@@ -128,14 +196,30 @@ export declare const TatumTronSDK: (args: SDKArguments) => {
128
196
  generateAddressFromPrivatekey(privateKey: string): string;
129
197
  custodial: {
130
198
  prepare: {
131
- custodialWallet: (body: import("@tatumio/api-client").GenerateCustodialWalletTron | import("@tatumio/api-client").GenerateCustodialWalletTronKMS, provider?: string) => Promise<string>;
132
- transferFromCustodialWallet: (body: import("@tatumio/api-client").TransferCustodialWalletTron | import("@tatumio/api-client").TransferCustodialWalletTronKMS, getContractDecimals: (contractAddress: string, provider?: string, testnet?: boolean) => Promise<number>, provider?: string, decimals?: number, testnet?: boolean) => Promise<string>;
133
- batchTransferFromCustodialWallet: (body: import("@tatumio/api-client").TransferCustodialWalletBatchTron | import("@tatumio/api-client").TransferCustodialWalletBatchTronKMS, getContractDecimals: (contractAddress: string, provider?: string, testnet?: boolean) => Promise<number>, provider?: string, decimals?: number, testnet?: boolean) => Promise<string>;
199
+ custodialWallet: (body: import("./services/tron.tx").TronGenerateCustodialWallet, provider?: string) => Promise<string>;
200
+ transferFromCustodialWallet: (body: Omit<import("@tatumio/api-client").TransferCustodialWalletTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
201
+ index: number;
202
+ account: string;
203
+ from: string;
204
+ }> & Partial<Pick<import("@tatumio/api-client").TransferCustodialWalletTron, "fromPrivateKey">>, getContractDecimals: (contractAddress: string, provider?: string, testnet?: boolean) => Promise<number>, provider?: string, decimals?: number, testnet?: boolean) => Promise<string>;
205
+ batchTransferFromCustodialWallet: (body: Omit<import("@tatumio/api-client").TransferCustodialWalletBatchTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
206
+ index: number;
207
+ account: string;
208
+ from: string;
209
+ }> & Partial<Pick<import("@tatumio/api-client").TransferCustodialWalletBatchTron, "fromPrivateKey">>, getContractDecimals: (contractAddress: string, provider?: string, testnet?: boolean) => Promise<number>, provider?: string, decimals?: number, testnet?: boolean) => Promise<string>;
134
210
  };
135
211
  send: {
136
- custodialWallet: (body: import("@tatumio/api-client").GenerateCustodialWalletTron | import("@tatumio/api-client").GenerateCustodialWalletTronKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
137
- transferFromCustodialWallet: (body: import("@tatumio/api-client").TransferCustodialWalletTron | import("@tatumio/api-client").TransferCustodialWalletTronKMS, getContractDecimals: (contractAddress: string, provider?: string, testnet?: boolean) => Promise<number>, provider?: string, decimals?: number, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHash>;
138
- batchTransferFromCustodialWallet: (body: import("@tatumio/api-client").TransferCustodialWalletBatchTron | import("@tatumio/api-client").TransferCustodialWalletBatchTronKMS, getContractDecimals: (contractAddress: string, provider?: string, testnet?: boolean) => Promise<number>, provider?: string, decimals?: number, testnet?: boolean) => Promise<import("@tatumio/api-client").TransactionHash>;
212
+ custodialWallet: (body: import("./services/tron.tx").TronGenerateCustodialWallet, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").CustodialManagedAddress>;
213
+ transferFromCustodialWallet: (body: Omit<import("@tatumio/api-client").TransferCustodialWalletTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
214
+ index: number;
215
+ account: string;
216
+ from: string;
217
+ }> & Partial<Pick<import("@tatumio/api-client").TransferCustodialWalletTron, "fromPrivateKey">>, getContractDecimals: (contractAddress: string, provider?: string, testnet?: boolean) => Promise<number>, provider?: string, decimals?: number, testnet?: boolean) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
218
+ batchTransferFromCustodialWallet: (body: Omit<import("@tatumio/api-client").TransferCustodialWalletBatchTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
219
+ index: number;
220
+ account: string;
221
+ from: string;
222
+ }> & Partial<Pick<import("@tatumio/api-client").TransferCustodialWalletBatchTron, "fromPrivateKey">>, getContractDecimals: (contractAddress: string, provider?: string, testnet?: boolean) => Promise<number>, provider?: string, decimals?: number, testnet?: boolean) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
139
223
  };
140
224
  };
141
225
  gasPump: {
@@ -159,6 +243,42 @@ export declare const TatumTronSDK: (args: SDKArguments) => {
159
243
  getTransaction: typeof TronService.tronGetTransaction;
160
244
  sendTransaction: typeof TronService.tronTransfer;
161
245
  smartContractGetAddress: typeof BlockchainUtilsService.scGetContractAddress;
246
+ getTransactions: typeof TronService.tronAccountTx;
247
+ getTrc20Transactions: typeof TronService.tronAccountTx20;
248
+ generateWallet: typeof TronService.generateTronwallet;
249
+ generateAddress: typeof TronService.tronGenerateAddress;
250
+ generatePrivateKey: typeof TronService.tronGenerateAddressPrivateKey;
251
+ createTrc10: typeof TronService.tronCreateTrc10;
252
+ createTrc20: typeof TronService.tronCreateTrc20;
253
+ transferTrc10: typeof TronService.tronTransferTrc10;
254
+ transferTrc20: typeof TronService.tronTransferTrc20;
255
+ tronFreeze: typeof TronService.tronFreeze;
256
+ };
257
+ virtualAccount: {
258
+ send: (body: Omit<import("@tatumio/api-client").TransferTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
259
+ index: number;
260
+ }> & Partial<{
261
+ mnemonic: string;
262
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTron, "fromPrivateKey">>) => Promise<(void | {
263
+ id?: string;
264
+ txId?: string;
265
+ completed?: boolean;
266
+ }) | import("@tatumio/api-client").OffchainTransactionSignatureResult>;
267
+ depositAddress: {
268
+ checkExists: (address: string, index?: number) => Promise<any>;
269
+ create: any;
270
+ createMultiple: any;
271
+ assign: any;
272
+ remove: any;
273
+ getByAccount: any;
274
+ };
275
+ withdrawal: {
276
+ getAll: (status?: "InProgress" | "Done" | "Cancelled", pageSize?: number, offset?: number) => Promise<any[]>;
277
+ broadcast: any;
278
+ create: any;
279
+ complete: any;
280
+ };
281
+ storeTokenAddress: any;
162
282
  };
163
283
  offchain: {
164
284
  depositAddress: {
@@ -10,10 +10,12 @@ const tron_tx_1 = require("./services/tron.tx");
10
10
  const tron_wallet_1 = require("./services/tron.wallet");
11
11
  const tron_record_1 = require("./services/tron.record");
12
12
  const tron_kms_1 = require("./services/tron.kms");
13
+ const tron_virtualAccount_1 = require("./services/tron.virtualAccount");
13
14
  const blockchain = shared_core_1.Blockchain.TRON;
14
15
  const TatumTronSDK = (args) => {
15
16
  const web = (0, tron_web_1.tronWeb)();
16
17
  const txService = (0, tron_tx_1.tronTx)({ tronWeb: web });
18
+ const virtualAccount = (0, tron_virtualAccount_1.virtualAccountService)({ blockchain, tronWeb: web });
17
19
  const _a = (0, shared_blockchain_abstract_1.abstractBlockchainSdk)(Object.assign(Object.assign({}, args), { blockchain })), { nft } = _a, abstractSdk = tslib_1.__rest(_a, ["nft"]);
18
20
  const { deployNFTSmartContract, mintNFT, transferNFT, mintMultipleNFTs, burnNFT, updateNFTRoyalty, getNFTTransaction, getNFTAccountBalance, getNFTMetadataURI, getNFTRoyalty, } = nft;
19
21
  return Object.assign(Object.assign({}, abstractSdk), { transaction: txService.native, trc10: txService.trc10, trc20: txService.trc20, kms: (0, tron_kms_1.tronKmsService)({ blockchain }), nft: Object.assign(Object.assign({}, txService.trc721), { deployNFTSmartContract,
@@ -25,7 +27,7 @@ const TatumTronSDK = (args) => {
25
27
  getNFTTransaction,
26
28
  getNFTAccountBalance,
27
29
  getNFTMetadataURI,
28
- getNFTRoyalty }), marketplace: txService.marketplace, smartContract: txService.smartContract, custodial: txService.custodial, wallet: (0, tron_wallet_1.tronWallet)({ tronWeb: web }), tronWeb: web, record: (0, tron_record_1.tronRecord)(), blockchain: {
30
+ getNFTRoyalty }), smartContract: txService.smartContract, custodial: txService.custodial, wallet: (0, tron_wallet_1.tronWallet)({ tronWeb: web }), tronWeb: web, record: (0, tron_record_1.tronRecord)(), blockchain: {
29
31
  broadcast: api_client_1.TronService.tronBroadcast,
30
32
  getCurrentBlock: api_client_1.TronService.tronGetCurrentBlock,
31
33
  getBlock: api_client_1.TronService.tronGetBlock,
@@ -34,7 +36,17 @@ const TatumTronSDK = (args) => {
34
36
  getTransaction: api_client_1.TronService.tronGetTransaction,
35
37
  sendTransaction: api_client_1.TronService.tronTransfer,
36
38
  smartContractGetAddress: api_client_1.BlockchainUtilsService.scGetContractAddress,
37
- } });
39
+ getTransactions: api_client_1.TronService.tronAccountTx,
40
+ getTrc20Transactions: api_client_1.TronService.tronAccountTx20,
41
+ generateWallet: api_client_1.TronService.generateTronwallet,
42
+ generateAddress: api_client_1.TronService.tronGenerateAddress,
43
+ generatePrivateKey: api_client_1.TronService.tronGenerateAddressPrivateKey,
44
+ createTrc10: api_client_1.TronService.tronCreateTrc10,
45
+ createTrc20: api_client_1.TronService.tronCreateTrc20,
46
+ transferTrc10: api_client_1.TronService.tronTransferTrc10,
47
+ transferTrc20: api_client_1.TronService.tronTransferTrc20,
48
+ tronFreeze: api_client_1.TronService.tronFreeze,
49
+ }, virtualAccount });
38
50
  };
39
51
  exports.TatumTronSDK = TatumTronSDK;
40
52
  //# sourceMappingURL=tron.sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tron.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/tron/src/lib/tron.sdk.ts"],"names":[],"mappings":";;;;AAAA,oDAAyE;AACzE,sDAAiD;AAEjD,oFAA2E;AAC3E,kDAA6C;AAC7C,gDAA2C;AAC3C,wDAAmD;AACnD,wDAAmD;AACnD,kDAAoD;AAEpD,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAkB,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,IAAA,kBAAO,GAAE,CAAA;IACrB,MAAM,SAAS,GAAG,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAA;IAC1C,MAAM,KAA0B,IAAA,kDAAqB,kCAAM,IAAI,KAAE,UAAU,IAAG,EAAxE,EAAE,GAAG,OAAmE,EAA9D,WAAW,sBAArB,OAAuB,CAAiD,CAAA;IAE9E,MAAM,EACJ,sBAAsB,EACtB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,GACd,GAAG,GAAG,CAAA;IAEP,uCACK,WAAW,KACd,WAAW,EAAE,SAAS,CAAC,MAAM,EAC7B,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,GAAG,EAAE,IAAA,yBAAc,EAAC,EAAE,UAAU,EAAE,CAAC,EACnC,GAAG,kCACE,SAAS,CAAC,MAAM,KACnB,sBAAsB;YACtB,OAAO;YACP,WAAW;YACX,gBAAgB;YAChB,OAAO;YACP,gBAAgB;YAChB,iBAAiB;YACjB,oBAAoB;YACpB,iBAAiB;YACjB,aAAa,KAEf,WAAW,EAAE,SAAS,CAAC,WAAW,EAClC,aAAa,EAAE,SAAS,CAAC,aAAa,EACtC,SAAS,EAAE,SAAS,CAAC,SAAS,EAC9B,MAAM,EAAE,IAAA,wBAAU,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EACpC,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,IAAA,wBAAU,GAAE,EACpB,UAAU,EAAE;YACV,SAAS,EAAE,wBAAW,CAAC,aAAa;YACpC,eAAe,EAAE,wBAAW,CAAC,mBAAmB;YAChD,QAAQ,EAAE,wBAAW,CAAC,YAAY;YAClC,cAAc,EAAE,wBAAW,CAAC,eAAe;YAC3C,UAAU,EAAE,wBAAW,CAAC,cAAc;YACtC,cAAc,EAAE,wBAAW,CAAC,kBAAkB;YAC9C,eAAe,EAAE,wBAAW,CAAC,YAAY;YACzC,uBAAuB,EAAE,mCAAsB,CAAC,oBAAoB;SACrE,IACF;AACH,CAAC,CAAA;AAtDY,QAAA,YAAY,gBAsDxB"}
1
+ {"version":3,"file":"tron.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/tron/src/lib/tron.sdk.ts"],"names":[],"mappings":";;;;AAAA,oDAAyE;AACzE,sDAAiD;AAEjD,oFAA2E;AAC3E,kDAA6C;AAC7C,gDAA2C;AAC3C,wDAAmD;AACnD,wDAAmD;AACnD,kDAAoD;AACpD,wEAAsE;AAEtE,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAkB,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,IAAA,kBAAO,GAAE,CAAA;IACrB,MAAM,SAAS,GAAG,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAA;IAC1C,MAAM,cAAc,GAAG,IAAA,2CAAqB,EAAC,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAA;IAC1E,MAAM,KAA0B,IAAA,kDAAqB,kCAAM,IAAI,KAAE,UAAU,IAAG,EAAxE,EAAE,GAAG,OAAmE,EAA9D,WAAW,sBAArB,OAAuB,CAAiD,CAAA;IAE9E,MAAM,EACJ,sBAAsB,EACtB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,GACd,GAAG,GAAG,CAAA;IAEP,uCACK,WAAW,KACd,WAAW,EAAE,SAAS,CAAC,MAAM,EAC7B,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,KAAK,EAAE,SAAS,CAAC,KAAK,EACtB,GAAG,EAAE,IAAA,yBAAc,EAAC,EAAE,UAAU,EAAE,CAAC,EACnC,GAAG,kCACE,SAAS,CAAC,MAAM,KACnB,sBAAsB;YACtB,OAAO;YACP,WAAW;YACX,gBAAgB;YAChB,OAAO;YACP,gBAAgB;YAChB,iBAAiB;YACjB,oBAAoB;YACpB,iBAAiB;YACjB,aAAa,KAEf,aAAa,EAAE,SAAS,CAAC,aAAa,EACtC,SAAS,EAAE,SAAS,CAAC,SAAS,EAC9B,MAAM,EAAE,IAAA,wBAAU,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EACpC,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,IAAA,wBAAU,GAAE,EACpB,UAAU,EAAE;YACV,SAAS,EAAE,wBAAW,CAAC,aAAa;YACpC,eAAe,EAAE,wBAAW,CAAC,mBAAmB;YAChD,QAAQ,EAAE,wBAAW,CAAC,YAAY;YAClC,cAAc,EAAE,wBAAW,CAAC,eAAe;YAC3C,UAAU,EAAE,wBAAW,CAAC,cAAc;YACtC,cAAc,EAAE,wBAAW,CAAC,kBAAkB;YAC9C,eAAe,EAAE,wBAAW,CAAC,YAAY;YACzC,uBAAuB,EAAE,mCAAsB,CAAC,oBAAoB;YACpE,eAAe,EAAE,wBAAW,CAAC,aAAa;YAC1C,oBAAoB,EAAE,wBAAW,CAAC,eAAe;YACjD,cAAc,EAAE,wBAAW,CAAC,kBAAkB;YAC9C,eAAe,EAAE,wBAAW,CAAC,mBAAmB;YAChD,kBAAkB,EAAE,wBAAW,CAAC,6BAA6B;YAC7D,WAAW,EAAE,wBAAW,CAAC,eAAe;YACxC,WAAW,EAAE,wBAAW,CAAC,eAAe;YACxC,aAAa,EAAE,wBAAW,CAAC,iBAAiB;YAC5C,aAAa,EAAE,wBAAW,CAAC,iBAAiB;YAC5C,UAAU,EAAE,wBAAW,CAAC,UAAU;SACnC,EACD,cAAc,IACf;AACH,CAAC,CAAA;AAjEY,QAAA,YAAY,gBAiExB"}