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

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tronTrc721 = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const api_client_1 = require("@tatumio/api-client");
6
- const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
7
6
  const shared_blockchain_evm_based_1 = require("@tatumio/shared-blockchain-evm-based");
8
7
  const bignumber_js_1 = tslib_1.__importDefault(require("bignumber.js"));
9
8
  const prepareDeploySignedTransaction = (body, tronWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
@@ -19,8 +18,8 @@ const prepareDeploySignedTransaction = (body, tronWeb, provider) => tslib_1.__aw
19
18
  parameters: [name, symbol],
20
19
  name,
21
20
  };
22
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
23
- const tx = yield client.transactionBuilder.createSmartContract(params, body.from);
21
+ if (body.signatureId) {
22
+ const tx = yield client.transactionBuilder.createSmartContract(params, body.account);
24
23
  return JSON.stringify(tx);
25
24
  }
26
25
  else {
@@ -59,11 +58,11 @@ const prepareMintCashbackSignedTransaction = (body, tronWeb, provider) => tslib_
59
58
  value: cb,
60
59
  },
61
60
  ];
62
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
61
+ if (body.signatureId) {
63
62
  const { transaction } = yield client.transactionBuilder.triggerSmartContract(contractAddressHex, methodName, {
64
63
  feeLimit: client.toSun(feeLimit),
65
- from: body.from,
66
- }, params, body.from);
64
+ from: body.account,
65
+ }, params, body.account);
67
66
  return JSON.stringify(transaction);
68
67
  }
69
68
  else {
@@ -92,11 +91,11 @@ const prepareMintSignedTransaction = (body, tronWeb, provider) => tslib_1.__awai
92
91
  value: url,
93
92
  },
94
93
  ];
95
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
94
+ if (body.signatureId) {
96
95
  const { transaction } = yield client.transactionBuilder.triggerSmartContract(contractAddressHex, methodName, {
97
96
  feeLimit: client.toSun(feeLimit),
98
- from: body.from,
99
- }, params, body.from);
97
+ from: body.account,
98
+ }, params, body.account);
100
99
  return JSON.stringify(transaction);
101
100
  }
102
101
  else {
@@ -108,6 +107,7 @@ const prepareMintSignedTransaction = (body, tronWeb, provider) => tslib_1.__awai
108
107
  return JSON.stringify(yield client.trx.sign(transaction, body.fromPrivateKey));
109
108
  }
110
109
  });
110
+ // TODO: do a balance check before sending tx - https://app.clickup.com/t/24443045/TT-3496
111
111
  const transferSignedTransaction = (body, tronWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
112
112
  const { to, tokenId, contractAddress, feeLimit, value } = body;
113
113
  const client = tronWeb.getClient(provider);
@@ -121,12 +121,12 @@ const transferSignedTransaction = (body, tronWeb, provider) => tslib_1.__awaiter
121
121
  const contractAddressHex = client.address.toHex(contractAddress);
122
122
  const methodName = 'safeTransfer(address,uint256)';
123
123
  client.setAddress(contractAddress);
124
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
124
+ if (body.signatureId) {
125
125
  const { transaction } = yield client.transactionBuilder.triggerSmartContract(contractAddressHex, methodName, {
126
126
  feeLimit: client.toSun(feeLimit),
127
- from: body.from,
127
+ from: body.account,
128
128
  callValue: value ? `0x${new bignumber_js_1.default(value).multipliedBy(1e6).toString(16)}` : 0,
129
- }, params, body.from);
129
+ }, params, body.account);
130
130
  return JSON.stringify(transaction);
131
131
  }
132
132
  else {
@@ -151,11 +151,11 @@ const burnSignedTransaction = (body, tronWeb, provider) => tslib_1.__awaiter(voi
151
151
  value: `0x${new bignumber_js_1.default(tokenId).toString(16)}`,
152
152
  },
153
153
  ];
154
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
154
+ if (body.signatureId) {
155
155
  const { transaction } = yield client.transactionBuilder.triggerSmartContract(contractAddressHex, methodName, {
156
156
  feeLimit: client.toSun(feeLimit),
157
- from: body.from,
158
- }, params, body.from);
157
+ from: body.account,
158
+ }, params, body.account);
159
159
  return JSON.stringify(transaction);
160
160
  }
161
161
  else {
@@ -187,11 +187,11 @@ const prepareMintMultipleSignedTransaction = (body, tronWeb, provider) => tslib_
187
187
  value: url,
188
188
  },
189
189
  ];
190
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
190
+ if (body.signatureId) {
191
191
  const { transaction } = yield client.transactionBuilder.triggerSmartContract(contractAddressHex, methodName, {
192
192
  feeLimit: client.toSun(feeLimit),
193
- from: body.from,
194
- }, params, body.from);
193
+ from: body.account,
194
+ }, params, body.account);
195
195
  return JSON.stringify(transaction);
196
196
  }
197
197
  else {
@@ -219,11 +219,11 @@ const prepareUpdateCashbackValueForAuthorSignedTransaction = (body, tronWeb, pro
219
219
  value: `0x${new bignumber_js_1.default(cashbackValue).multipliedBy(1e6).toString(16)}`,
220
220
  },
221
221
  ];
222
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
222
+ if (body.signatureId) {
223
223
  const { transaction } = yield client.transactionBuilder.triggerSmartContract(contractAddressHex, methodName, {
224
224
  feeLimit: client.toSun(feeLimit),
225
- from: body.from,
226
- }, params, body.from);
225
+ from: body.account,
226
+ }, params, body.account);
227
227
  return JSON.stringify(transaction);
228
228
  }
229
229
  else {
@@ -296,10 +296,14 @@ const tronTrc721 = (args) => {
296
296
  * @returns transaction id of the transaction in the blockchain
297
297
  */
298
298
  deploySignedTransaction: (body, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
299
- return api_client_1.TronService.tronBroadcast({
300
- txData: yield prepareDeploySignedTransaction(body, args.tronWeb, provider),
301
- // TODO: SignatureID is missing in OpenApi
302
- });
299
+ if (body.signatureId) {
300
+ return api_client_1.NftErc721OrCompatibleService.nftDeployErc721(body);
301
+ }
302
+ else {
303
+ return api_client_1.TronService.tronBroadcast({
304
+ txData: yield prepareDeploySignedTransaction(body, args.tronWeb, provider),
305
+ });
306
+ }
303
307
  }),
304
308
  /**
305
309
  * Send Tron mint cashback trc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
@@ -308,10 +312,14 @@ const tronTrc721 = (args) => {
308
312
  * @returns transaction id of the transaction in the blockchain
309
313
  */
310
314
  mintCashbackSignedTransaction: (body, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
311
- return api_client_1.TronService.tronBroadcast({
312
- txData: yield prepareMintCashbackSignedTransaction(body, args.tronWeb, provider),
313
- // TODO: SignatureID is missing in OpenApi
314
- });
315
+ if (body.signatureId) {
316
+ return api_client_1.NftErc721OrCompatibleService.nftMintErc721(body);
317
+ }
318
+ else {
319
+ return api_client_1.TronService.tronBroadcast({
320
+ txData: yield prepareMintCashbackSignedTransaction(body, args.tronWeb, provider),
321
+ });
322
+ }
315
323
  }),
316
324
  /**
317
325
  * Send Tron mint cashback trc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
@@ -320,10 +328,14 @@ const tronTrc721 = (args) => {
320
328
  * @returns transaction id of the transaction in the blockchain
321
329
  */
322
330
  mintSignedTransaction: (body, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
323
- return api_client_1.TronService.tronBroadcast({
324
- txData: yield prepareMintSignedTransaction(body, args.tronWeb, provider),
325
- // TODO: SignatureID is missing in OpenApi
326
- });
331
+ if (body.signatureId) {
332
+ return api_client_1.NftErc721OrCompatibleService.nftMintErc721(body);
333
+ }
334
+ else {
335
+ return api_client_1.TronService.tronBroadcast({
336
+ txData: yield prepareMintSignedTransaction(body, args.tronWeb, provider),
337
+ });
338
+ }
327
339
  }),
328
340
  /**
329
341
  * Send Tron transfer trc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
@@ -332,9 +344,14 @@ const tronTrc721 = (args) => {
332
344
  * @returns transaction id of the transaction in the blockchain
333
345
  */
334
346
  transferSignedTransaction: (body, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
335
- return api_client_1.TronService.tronBroadcast({
336
- txData: yield transferSignedTransaction(body, args.tronWeb, provider),
337
- });
347
+ if (body.signatureId) {
348
+ return api_client_1.NftErc721OrCompatibleService.nftTransferErc721(body);
349
+ }
350
+ else {
351
+ return api_client_1.TronService.tronBroadcast({
352
+ txData: yield transferSignedTransaction(body, args.tronWeb, provider),
353
+ });
354
+ }
338
355
  }),
339
356
  /**
340
357
  * Send Tron burn trc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
@@ -343,10 +360,14 @@ const tronTrc721 = (args) => {
343
360
  * @returns transaction id of the transaction in the blockchain
344
361
  */
345
362
  burnSignedTransaction: (body, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
346
- return api_client_1.TronService.tronBroadcast({
347
- txData: yield burnSignedTransaction(body, args.tronWeb, provider),
348
- // TODO: SignatureID is missing in OpenApi
349
- });
363
+ if (body.signatureId) {
364
+ return api_client_1.NftErc721OrCompatibleService.nftBurnErc721(body);
365
+ }
366
+ else {
367
+ return api_client_1.TronService.tronBroadcast({
368
+ txData: yield burnSignedTransaction(body, args.tronWeb, provider),
369
+ });
370
+ }
350
371
  }),
351
372
  /**
352
373
  * Send Tron mint multiple trc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
@@ -355,10 +376,14 @@ const tronTrc721 = (args) => {
355
376
  * @returns transaction id of the transaction in the blockchain
356
377
  */
357
378
  mintMultipleSignedTransaction: (body, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
358
- return api_client_1.TronService.tronBroadcast({
359
- txData: yield prepareMintMultipleSignedTransaction(body, args.tronWeb, provider),
360
- // TODO: SignatureID is missing in OpenApi
361
- });
379
+ if (body.signatureId) {
380
+ return api_client_1.NftErc721OrCompatibleService.nftMintMultipleErc721(body);
381
+ }
382
+ else {
383
+ return api_client_1.TronService.tronBroadcast({
384
+ txData: yield prepareMintMultipleSignedTransaction(body, args.tronWeb, provider),
385
+ });
386
+ }
362
387
  }),
363
388
  /**
364
389
  * Send Tron update cashback for author trc721 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
@@ -367,10 +392,14 @@ const tronTrc721 = (args) => {
367
392
  * @returns transaction id of the transaction in the blockchain
368
393
  */
369
394
  updateCashbackValueForAuthorSignedTransaction: (body, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
370
- return api_client_1.TronService.tronBroadcast({
371
- txData: yield prepareUpdateCashbackValueForAuthorSignedTransaction(body, args.tronWeb, provider),
372
- // TODO: SignatureID is missing in OpenApi
373
- });
395
+ if (body.signatureId) {
396
+ return api_client_1.NftErc721OrCompatibleService.nftUpdateCashbackErc721(body);
397
+ }
398
+ else {
399
+ return api_client_1.TronService.tronBroadcast({
400
+ txData: yield prepareUpdateCashbackValueForAuthorSignedTransaction(body, args.tronWeb, provider),
401
+ });
402
+ }
374
403
  }),
375
404
  },
376
405
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tron.trc721.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/tron/src/lib/services/tron.trc721.ts"],"names":[],"mappings":";;;;AAAA,oDAc4B;AAC5B,sEAAgE;AAChE,sFAAkE;AAClE,wEAAoC;AAMpC,MAAM,8BAA8B,GAAG,CACrC,IAAsC,EACtC,OAAiB,EACjB,QAAiB,EACjB,EAAE;IACF,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;IAE1C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;IAEvC,MAAM,MAAM,GAAG;QACb,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;QAChC,SAAS,EAAE,CAAC;QACZ,iBAAiB,EAAE,GAAG;QACtB,iBAAiB,EAAE,CAAC;QACpB,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,yCAAW,CAAC,GAAG,CAAC;QACpC,QAAQ,EAAE,yCAAW,CAAC,QAAQ;QAC9B,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;QAC1B,IAAI;KACL,CAAA;IAED,IAAI,IAAA,uCAAiB,EAAC,IAA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AO,EAAE,QAAQ,CAAC;oBAChF,0CAA0C;iBAC3C,CAAC,CAAA;cAAA;YACJ;;;;;eAKG;YACH,6CAA6C,EAAE,CAC7C,IAAkF,EAClF,QAAiB,EACjB,EAAE;gBACF,OAAA,wBAAW,CAAC,aAAa,CAAC;oBACxB,MAAM,EAAE,MAAM,oDAAoD,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC;oBAChG,0CAA0C;iBAC3C,CAAC,CAAA;cAAA;SACL;KACF,CAAA;AACH,CAAC,CAAA;AArJY,QAAA,UAAU,cAqJtB"}
1
+ {"version":3,"file":"tron.trc721.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/tron/src/lib/services/tron.trc721.ts"],"names":[],"mappings":";;;;AAAA,oDAe4B;AAE5B,sFAAkE;AAClE,wEAAoC;AAUpC,MAAM,8BAA8B,GAAG,CAAO,IAAmB,EAAE,OAAiB,EAAE,QAAiB,EAAE,EAAE;IACzG,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;IAE1C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;IAEvC,MAAM,MAAM,GAAG;QACb,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;QAChC,SAAS,EAAE,CAAC;QACZ,iBAAiB,EAAE,GAAG;QACtB,iBAAiB,EAAE,CAAC;QACpB,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,yCAAW,CAAC,GAAG,CAAC;QACpC,QAAQ,EAAE,yCAAW,CAAC,QAAQ;QAC9B,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;QAC1B,IAAI;KACL,CAAA;IAED,IAAI,IAAI,CAAC,WAAW,EAAE;QACpB,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;QAEpF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E;qBAAM;oBACL,OAAO,wBAAW,CAAC,aAAa,CAAC;wBAC/B,MAAM,EAAE,MAAM,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC;qBAClE,CAAC,CAAA;iBACH;YACH,CAAC,CAAA;YACD;;;;;eAKG;YACH,6BAA6B,EAAE,CAAO,IAAyB,EAAE,QAAiB,EAAE,EAAE;gBACpF,IAAI,IAAI,CAAC,WAAW,EAAE;oBACpB,OAAO,yCAA4B,CAAC,qBAAqB,CAAC,IAA8B,CAAC,CAAA;iBAC1F;qBAAM;oBACL,OAAO,wBAAW,CAAC,aAAa,CAAC;wBAC/B,MAAM,EAAE,MAAM,oCAAoC,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC;qBACjF,CAAC,CAAA;iBACH;YACH,CAAC,CAAA;YACD;;;;;eAKG;YACH,6CAA6C,EAAE,CAC7C,IAA8B,EAC9B,QAAiB,EACjB,EAAE;gBACF,IAAI,IAAI,CAAC,WAAW,EAAE;oBACpB,OAAO,yCAA4B,CAAC,uBAAuB,CACzD,IAA8C,CAC/C,CAAA;iBACF;qBAAM;oBACL,OAAO,wBAAW,CAAC,aAAa,CAAC;wBAC/B,MAAM,EAAE,MAAM,oDAAoD,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC;qBACjG,CAAC,CAAA;iBACH;YACH,CAAC,CAAA;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAlLY,QAAA,UAAU,cAkLtB"}
@@ -1,76 +1,141 @@
1
- import { CallSmartContractMethod, CallSmartContractMethodKMS, FreezeTron, FreezeTronKMS, GenerateCustodialWalletTron, GenerateCustodialWalletTronKMS, GenerateMarketplaceTron, GenerateMarketplaceTronKMS, TransferTronBlockchain, TransferTronBlockchainKMS } from '@tatumio/api-client';
1
+ import { CallSmartContractMethod, FreezeTron, GenerateCustodialWalletTron, TransferTronBlockchain } from '@tatumio/api-client';
2
+ import { FromPrivateKeyOrSignatureIdTron } from '@tatumio/shared-blockchain-abstract';
2
3
  import { ITronWeb } from './tron.web';
4
+ export declare type CallSmartContract = FromPrivateKeyOrSignatureIdTron<CallSmartContractMethod>;
5
+ export declare type TronGenerateCustodialWallet = FromPrivateKeyOrSignatureIdTron<GenerateCustodialWalletTron>;
6
+ declare type TronTransfer = FromPrivateKeyOrSignatureIdTron<TransferTronBlockchain>;
7
+ declare type TronFreeze = FromPrivateKeyOrSignatureIdTron<FreezeTron>;
3
8
  export declare const tronTx: (args: {
4
9
  tronWeb: ITronWeb;
5
10
  }) => {
6
11
  trc10: {
7
12
  prepare: {
8
- signedTransaction: (body: import("@tatumio/api-client").TransferTronTrc10Blockchain | import("@tatumio/api-client").TransferTronTrc10BlockchainKMS, precision?: number, provider?: string) => Promise<string>;
9
- createSignedTransaction: (body: import("@tatumio/api-client").CreateTronTrc10Blockchain | import("@tatumio/api-client").CreateTronTrc10BlockchainKMS, provider?: string) => Promise<string>;
13
+ signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
14
+ index: number;
15
+ account: string;
16
+ from: string;
17
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey">>, precision?: number, provider?: string) => Promise<string>;
18
+ createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
19
+ index: number;
20
+ account: string;
21
+ from: string;
22
+ }> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey">>, provider?: string) => Promise<string>;
10
23
  };
11
24
  send: {
12
- signedTransaction: (body: import("@tatumio/api-client").TransferTronTrc10Blockchain | import("@tatumio/api-client").TransferTronTrc10BlockchainKMS, precision?: number, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
13
- createSignedTransaction: (body: import("@tatumio/api-client").CreateTronTrc10Blockchain | import("@tatumio/api-client").CreateTronTrc10BlockchainKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
25
+ signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
26
+ index: number;
27
+ account: string;
28
+ from: string;
29
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc10Blockchain, "fromPrivateKey">>, precision?: number, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
30
+ createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
31
+ index: number;
32
+ account: string;
33
+ from: string;
34
+ }> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc10Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
14
35
  };
15
36
  };
16
37
  trc20: {
17
38
  getAccountTrc20Address: (address: string, contractAddress: string, provider?: string) => Promise<any>;
18
39
  getTrc20ContractDecimals: (contractAddress: string, provider?: string) => Promise<any>;
19
40
  prepare: {
20
- signedTransaction: (body: import("@tatumio/api-client").TransferTronTrc20Blockchain | import("@tatumio/api-client").TransferTronTrc20BlockchainKMS, provider?: string) => Promise<string>;
21
- createSignedTransaction: (body: import("@tatumio/api-client").CreateTronTrc20Blockchain | import("@tatumio/api-client").CreateTronTrc20BlockchainKMS, provider?: string) => Promise<string>;
41
+ signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
42
+ index: number;
43
+ account: string;
44
+ from: string;
45
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<string>;
46
+ createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
47
+ index: number;
48
+ account: string;
49
+ from: string;
50
+ }> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<string>;
22
51
  };
23
52
  send: {
24
- signedTransaction: (body: import("@tatumio/api-client").TransferTronTrc20Blockchain | import("@tatumio/api-client").TransferTronTrc20BlockchainKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
25
- createSignedTransaction: (body: import("@tatumio/api-client").CreateTronTrc20Blockchain | import("@tatumio/api-client").CreateTronTrc20BlockchainKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
53
+ signedTransaction: (body: Omit<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
54
+ index: number;
55
+ account: string;
56
+ from: string;
57
+ }> & Partial<Pick<import("@tatumio/api-client").TransferTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
58
+ createSignedTransaction: (body: Omit<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
59
+ index: number;
60
+ account: string;
61
+ from: string;
62
+ }> & Partial<Pick<import("@tatumio/api-client").CreateTronTrc20Blockchain, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
26
63
  };
27
64
  };
28
65
  trc721: {
29
66
  prepare: {
30
- deploySignedTransaction: (body: (import("@tatumio/api-client").DeployNftTronKMS & {
67
+ deploySignedTransaction: (body: Omit<import("@tatumio/api-client").DeployNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
68
+ index: number;
69
+ account: string;
31
70
  from: string;
32
- }) | import("@tatumio/api-client").DeployNftTron, provider?: string) => Promise<string>;
33
- mintCashbackSignedTransaction: (body: (import("@tatumio/api-client").MintNftKMSTron & {
71
+ }> & Partial<Pick<import("@tatumio/api-client").DeployNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
72
+ mintCashbackSignedTransaction: (body: Omit<import("@tatumio/api-client").MintNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
73
+ index: number;
74
+ account: string;
34
75
  from: string;
35
- }) | import("@tatumio/api-client").MintNftTron, provider?: string) => Promise<string>;
36
- mintSignedTransaction: (body: (import("@tatumio/api-client").MintNftKMSTron & {
76
+ }> & Partial<Pick<import("@tatumio/api-client").MintNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
77
+ mintSignedTransaction: (body: Omit<import("@tatumio/api-client").MintNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
78
+ index: number;
79
+ account: string;
37
80
  from: string;
38
- }) | import("@tatumio/api-client").MintNftTron, provider?: string) => Promise<string>;
39
- transferSignedTransaction: (body: (import("@tatumio/api-client").TransferNftKMSTron & {
81
+ }> & Partial<Pick<import("@tatumio/api-client").MintNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
82
+ transferSignedTransaction: (body: Omit<import("@tatumio/api-client").TransferNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
83
+ index: number;
84
+ account: string;
40
85
  from: string;
41
- }) | import("@tatumio/api-client").TransferNftTron, provider?: string) => Promise<string>;
42
- burnSignedTransaction: (body: (import("@tatumio/api-client").BurnNftKMSTron & {
86
+ }> & Partial<Pick<import("@tatumio/api-client").TransferNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
87
+ burnSignedTransaction: (body: Omit<import("@tatumio/api-client").BurnNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
88
+ index: number;
89
+ account: string;
43
90
  from: string;
44
- }) | import("@tatumio/api-client").BurnNftTron, provider?: string) => Promise<string>;
45
- mintMultipleSignedTransaction: (body: (import("@tatumio/api-client").MintMultipleNftKMSTron & {
91
+ }> & Partial<Pick<import("@tatumio/api-client").BurnNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
92
+ mintMultipleSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
93
+ index: number;
94
+ account: string;
46
95
  from: string;
47
- }) | import("@tatumio/api-client").MintMultipleNftTron, provider?: string) => Promise<string>;
48
- updateCashbackValueForAuthorSignedTransaction: (body: (import("@tatumio/api-client").UpdateCashbackValueForAuthorNftKMSTron & {
96
+ }> & Partial<Pick<import("@tatumio/api-client").MintMultipleNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
97
+ updateCashbackValueForAuthorSignedTransaction: (body: Omit<import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
98
+ index: number;
99
+ account: string;
49
100
  from: string;
50
- }) | import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, provider?: string) => Promise<string>;
101
+ }> & Partial<Pick<import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, "fromPrivateKey">>, provider?: string) => Promise<string>;
51
102
  };
52
103
  send: {
53
- deploySignedTransaction: (body: (import("@tatumio/api-client").DeployNftTronKMS & {
104
+ deploySignedTransaction: (body: Omit<import("@tatumio/api-client").DeployNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
105
+ index: number;
106
+ account: string;
54
107
  from: string;
55
- }) | import("@tatumio/api-client").DeployNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
56
- mintCashbackSignedTransaction: (body: (import("@tatumio/api-client").MintNftKMSTron & {
108
+ }> & Partial<Pick<import("@tatumio/api-client").DeployNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
109
+ mintCashbackSignedTransaction: (body: Omit<import("@tatumio/api-client").MintNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
110
+ index: number;
111
+ account: string;
57
112
  from: string;
58
- }) | import("@tatumio/api-client").MintNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
59
- mintSignedTransaction: (body: (import("@tatumio/api-client").MintNftKMSTron & {
113
+ }> & 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>;
114
+ mintSignedTransaction: (body: Omit<import("@tatumio/api-client").MintNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
115
+ index: number;
116
+ account: string;
60
117
  from: string;
61
- }) | import("@tatumio/api-client").MintNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
62
- transferSignedTransaction: (body: (import("@tatumio/api-client").TransferNftKMSTron & {
118
+ }> & 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>;
119
+ transferSignedTransaction: (body: Omit<import("@tatumio/api-client").TransferNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
120
+ index: number;
121
+ account: string;
63
122
  from: string;
64
- }) | import("@tatumio/api-client").TransferNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
65
- burnSignedTransaction: (body: (import("@tatumio/api-client").BurnNftKMSTron & {
123
+ }> & Partial<Pick<import("@tatumio/api-client").TransferNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
124
+ burnSignedTransaction: (body: Omit<import("@tatumio/api-client").BurnNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
125
+ index: number;
126
+ account: string;
66
127
  from: string;
67
- }) | import("@tatumio/api-client").BurnNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
68
- mintMultipleSignedTransaction: (body: (import("@tatumio/api-client").MintMultipleNftKMSTron & {
128
+ }> & Partial<Pick<import("@tatumio/api-client").BurnNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
129
+ mintMultipleSignedTransaction: (body: Omit<import("@tatumio/api-client").MintMultipleNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
130
+ index: number;
131
+ account: string;
69
132
  from: string;
70
- }) | import("@tatumio/api-client").MintMultipleNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
71
- updateCashbackValueForAuthorSignedTransaction: (body: (import("@tatumio/api-client").UpdateCashbackValueForAuthorNftKMSTron & {
133
+ }> & 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>;
134
+ updateCashbackValueForAuthorSignedTransaction: (body: Omit<import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, "fromPrivateKey"> & Partial<import("@tatumio/api-client").SignatureId & {
135
+ index: number;
136
+ account: string;
72
137
  from: string;
73
- }) | import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
138
+ }> & Partial<Pick<import("@tatumio/api-client").UpdateCashbackValueForAuthorNftTron, "fromPrivateKey">>, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
74
139
  };
75
140
  };
76
141
  native: {
@@ -81,14 +146,14 @@ export declare const tronTx: (args: {
81
146
  * @param provider
82
147
  * @returns transaction data to be broadcast to blockchain.
83
148
  */
84
- signedTransaction: (body: TransferTronBlockchain | TransferTronBlockchainKMS, provider?: string) => Promise<string>;
149
+ signedTransaction: (body: TronTransfer, provider?: string) => Promise<string>;
85
150
  /**
86
151
  * Sign Tron Freeze balance transaction with private keys locally. Nothing is broadcast to the blockchain.
87
152
  * @param body content of the transaction to broadcast
88
153
  * @param provider optional provider to enter. if not present, Tatum provider will be used.
89
154
  * @returns transaction data to be broadcast to blockchain.
90
155
  */
91
- freezeTransaction: (body: FreezeTron | FreezeTronKMS, provider?: string) => Promise<string>;
156
+ freezeTransaction: (body: TronFreeze, provider?: string) => Promise<string>;
92
157
  };
93
158
  send: {
94
159
  /**
@@ -97,14 +162,14 @@ export declare const tronTx: (args: {
97
162
  * @param body content of the transaction to broadcast
98
163
  * @returns transaction id of the transaction in the blockchain
99
164
  */
100
- signedTransaction: (body: TransferTronBlockchain | TransferTronBlockchainKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
165
+ signedTransaction: (body: TronTransfer, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
101
166
  /**
102
167
  * Send Tron Freeze balance transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
103
168
  * This operation is irreversible.
104
169
  * @param body content of the transaction to broadcast
105
170
  * @returns transaction id of the transaction in the blockchain
106
171
  */
107
- freezeTransaction: (body: FreezeTron | FreezeTronKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
172
+ freezeTransaction: (body: TronFreeze, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
108
173
  };
109
174
  };
110
175
  smartContract: {
@@ -115,7 +180,7 @@ export declare const tronTx: (args: {
115
180
  * @param provider
116
181
  * @returns transaction data to be broadcast to blockchain.
117
182
  */
118
- smartContractInvocation: (body: CallSmartContractMethod | CallSmartContractMethodKMS, provider?: string) => Promise<string>;
183
+ smartContractInvocation: (body: CallSmartContract, provider?: string) => Promise<string>;
119
184
  };
120
185
  };
121
186
  custodial: {
@@ -126,14 +191,14 @@ export declare const tronTx: (args: {
126
191
  * @param provider
127
192
  * @returns transaction data to be broadcast to blockchain.
128
193
  */
129
- custodialTransferBatch: (body: CallSmartContractMethod | CallSmartContractMethodKMS, provider?: string) => Promise<string>;
194
+ custodialTransferBatch: (body: CallSmartContract, provider?: string) => Promise<string>;
130
195
  /**
131
196
  * Sign Tron generate custodial wallet transaction with private keys locally. Nothing is broadcast to the blockchain.
132
197
  * @param body content of the transaction to broadcast
133
198
  * @param provider
134
199
  * @returns transaction data to be broadcast to blockchain.
135
200
  */
136
- generateCustodialWalletSignedTransaction: (body: GenerateCustodialWalletTron | GenerateCustodialWalletTronKMS, provider?: string) => Promise<string>;
201
+ generateCustodialWalletSignedTransaction: (body: TronGenerateCustodialWallet, provider?: string) => Promise<string>;
137
202
  };
138
203
  send: {
139
204
  /**
@@ -142,7 +207,7 @@ export declare const tronTx: (args: {
142
207
  * @param body content of the transaction to broadcast
143
208
  * @returns transaction id of the transaction in the blockchain
144
209
  */
145
- generateCustodialWalletSignedTransaction: (body: GenerateCustodialWalletTron | GenerateCustodialWalletTronKMS, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
210
+ generateCustodialWalletSignedTransaction: (body: TronGenerateCustodialWallet, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").CustodialManagedAddress>;
146
211
  };
147
212
  };
148
213
  gasPump: {
@@ -150,24 +215,5 @@ export declare const tronTx: (args: {
150
215
  prepareGasPumpBatch: (testnet: boolean, body: any, provider?: string) => Promise<string>;
151
216
  };
152
217
  };
153
- marketplace: {
154
- prepare: {
155
- /**
156
- * Sign TRON deploy new smart contract for NFT marketplace transaction. Smart contract enables marketplace operator to create new listing for NFT (ERC-721/1155).
157
- * @param body request data
158
- * @param provider optional provider to enter. if not present, Tatum provider will be used.
159
- * @returns {txId: string} Transaction ID of the operation, or signatureID in case of Tatum KMS
160
- */
161
- deployMarketplaceListingSignedTransaction: (body: GenerateMarketplaceTron | GenerateMarketplaceTronKMS, tronWeb: ITronWeb, provider?: string) => Promise<string>;
162
- };
163
- send: {
164
- /**
165
- * Deploy new smart contract for NFT marketplace logic. Smart contract enables marketplace operator to create new listing for NFT (ERC-721/1155).
166
- * @param body request data
167
- * @param provider optional provider to enter. if not present, Tatum provider will be used.
168
- * @returns {txId: string} Transaction ID of the operation, or signatureID in case of Tatum KMS
169
- */
170
- deployMarketplaceListingSignedTransaction: (body: GenerateMarketplaceTron | GenerateMarketplaceTronKMS, tronWeb: ITronWeb, provider?: string) => Promise<import("@tatumio/api-client").TransactionHash>;
171
- };
172
- };
173
218
  };
219
+ export {};