|
43 | 43 | import org.tron.core.capsule.WitnessCapsule; |
44 | 44 | import org.tron.core.db.AccountStore; |
45 | 45 | import org.tron.core.db.Manager; |
46 | | -import org.tron.core.exception.*; |
| 46 | +import org.tron.core.exception.ContractExeException; |
| 47 | +import org.tron.core.exception.ContractValidateException; |
| 48 | +import org.tron.core.exception.DupTransactionException; |
| 49 | +import org.tron.core.exception.StoreException; |
| 50 | +import org.tron.core.exception.TaposException; |
| 51 | +import org.tron.core.exception.TooBigTransactionException; |
| 52 | +import org.tron.core.exception.ValidateBandwidthException; |
| 53 | +import org.tron.core.exception.ValidateSignatureException; |
47 | 54 | import org.tron.core.net.message.TransactionMessage; |
48 | 55 | import org.tron.core.net.node.NodeImpl; |
49 | 56 | import org.tron.protos.Contract.AccountCreateContract; |
@@ -191,6 +198,7 @@ public Account getBalance(Account account) { |
191 | 198 | /** |
192 | 199 | * Create a transaction by contract. |
193 | 200 | */ |
| 201 | + @Deprecated |
194 | 202 | public Transaction createTransaction(TransferContract contract) { |
195 | 203 | AccountStore accountStore = dbManager.getAccountStore(); |
196 | 204 | return new TransactionCapsule(contract, accountStore).getInstance(); |
@@ -244,7 +252,7 @@ public Transaction createTransaction(VoteWitnessContract voteWitnessContract) { |
244 | 252 | public Transaction createTransaction(AssetIssueContract assetIssueContract) { |
245 | 253 | return new TransactionCapsule(assetIssueContract).getInstance(); |
246 | 254 | } |
247 | | - |
| 255 | + @Deprecated |
248 | 256 | public Transaction createTransaction(WitnessCreateContract witnessCreateContract) { |
249 | 257 | return new TransactionCapsule(witnessCreateContract).getInstance(); |
250 | 258 | } |
@@ -287,11 +295,11 @@ public WitnessList getWitnessList() { |
287 | 295 | .forEach(witnessCapsule -> builder.addWitnesses(witnessCapsule.getInstance())); |
288 | 296 | return builder.build(); |
289 | 297 | } |
290 | | - |
| 298 | + @Deprecated |
291 | 299 | public Transaction createTransaction(TransferAssetContract transferAssetContract) { |
292 | 300 | return new TransactionCapsule(transferAssetContract).getInstance(); |
293 | 301 | } |
294 | | - |
| 302 | + @Deprecated |
295 | 303 | public Transaction createTransaction( |
296 | 304 | ParticipateAssetIssueContract participateAssetIssueContract) { |
297 | 305 | return new TransactionCapsule(participateAssetIssueContract).getInstance(); |
|
0 commit comments