From 5694cb89ae87d4ae65d84c0434693f4c0dd93b18 Mon Sep 17 00:00:00 2001 From: Oleksandr Kovalov Date: Mon, 3 Jun 2024 19:48:23 -0400 Subject: [PATCH] Feat fee v2 batch send fra (#214) * feat: fix batch send fra fee * feat: add tx detail log to batch send fra * feat: rename v2 to evm, fix batch send fra to use sendToMany instead of v2 * feat: refactor utxo help to extract out cache read write logic, update buildFeeV3 to use cache * feat: minor fixes in cli commands and brc20 service --- .rgignore | 1 + dist/api/account/account.js | 2 +- dist/api/account/account.js.map | 2 +- dist/api/evm/evm.js | 2 +- dist/api/evm/evm.js.map | 2 +- dist/api/sdkAsset/sdkAsset.d.ts | 2 +- dist/api/sdkAsset/sdkAsset.js | 4 +- dist/api/sdkAsset/sdkAsset.js.map | 2 +- dist/api/transaction/transaction.d.ts | 43 +-- dist/api/transaction/transaction.js | 101 +++---- dist/api/transaction/transaction.js.map | 2 +- dist/cli/commands/batchBuyTicket.js | 31 +- dist/cli/commands/batchBuyTicket.js.map | 2 +- dist/cli/commands/batchBuyTicketUnits.js | 5 +- dist/cli/commands/batchBuyTicketUnits.js.map | 2 +- dist/cli/commands/batchMintTicket.js | 18 +- dist/cli/commands/batchMintTicket.js.map | 2 +- dist/cli/commands/batchSendFra.js | 103 +++---- dist/cli/commands/batchSendFra.js.map | 2 +- .../cli/commands/getBalanceFromWallets.js.map | 2 +- dist/cli/commands/utils.d.ts | 7 +- dist/cli/commands/utils.js | 29 +- dist/cli/commands/utils.js.map | 2 +- dist/run.js | 40 ++- dist/run.js.map | 2 +- dist/services/brc20.js | 54 ++-- dist/services/brc20.js.map | 2 +- dist/services/fee.d.ts | 11 +- dist/services/fee.js | 278 ++++++++++-------- dist/services/fee.js.map | 2 +- dist/services/feeUtils.d.ts | 3 +- dist/services/feeUtils.js | 37 ++- dist/services/feeUtils.js.map | 2 +- dist/services/feeUtils.spec.js | 139 +++++++-- dist/services/feeUtils.spec.js.map | 2 +- dist/services/txHelper.d.ts | 9 + dist/services/txHelper.js | 92 ++++++ dist/services/txHelper.js.map | 1 + dist/services/utxoHelper.d.ts | 6 +- dist/services/utxoHelper.js | 188 +++++++----- dist/services/utxoHelper.js.map | 2 +- dist/services/utxoHelper.spec.js | 6 +- dist/services/utxoHelper.spec.js.map | 2 +- src/api/account/account.ts | 2 +- src/api/evm/evm.ts | 4 +- src/api/sdkAsset/sdkAsset.ts | 6 +- src/api/transaction/transaction.ts | 83 ++---- src/cli/commands/batchBuyTicket.ts | 26 +- src/cli/commands/batchBuyTicketUnits.ts | 1 - src/cli/commands/batchMintTicket.ts | 17 +- src/cli/commands/batchSendFra.ts | 59 ++-- src/cli/commands/getBalanceFromWallets.ts | 1 - src/cli/commands/utils.ts | 13 +- src/run-balance.ts | 2 +- src/run.ts | 28 +- src/services/brc20.ts | 28 +- src/services/fee.ts | 246 ++++++++++------ src/services/feeUtils.spec.ts | 172 +++++++++-- src/services/feeUtils.ts | 44 ++- src/services/txHelper.ts | 26 ++ src/services/utxoHelper.spec.ts | 6 +- src/services/utxoHelper.ts | 158 +++++----- 62 files changed, 1236 insertions(+), 932 deletions(-) create mode 100644 dist/services/txHelper.d.ts create mode 100644 dist/services/txHelper.js create mode 100644 dist/services/txHelper.js.map create mode 100644 src/services/txHelper.ts diff --git a/.rgignore b/.rgignore index 1521c8b7..55570af3 100644 --- a/.rgignore +++ b/.rgignore @@ -1 +1,2 @@ dist +*.spec.ts diff --git a/dist/api/account/account.js b/dist/api/account/account.js index b182b8ef..77643343 100644 --- a/dist/api/account/account.js +++ b/dist/api/account/account.js @@ -82,7 +82,7 @@ var getAssetBalance = function (walletKeypair, assetCode, sids) { return __await switch (_a.label) { case 0: _a.trys.push([0, 2, , 3]); - return [4 /*yield*/, (0, utxoHelper_1.addUtxo)(walletKeypair, sids)]; + return [4 /*yield*/, (0, utxoHelper_1.addUtxo)(walletKeypair, sids, assetCode)]; case 1: utxoDataList = _a.sent(); return [3 /*break*/, 3]; diff --git a/dist/api/account/account.js.map b/dist/api/account/account.js.map index bc528952..7bacdfc6 100644 --- a/dist/api/account/account.js.map +++ b/dist/api/account/account.js.map @@ -1 +1 @@ -{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/api/account/account.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA8F;AAC9F,wDAAiE;AACjE,sCAAiF;AACjF,kDAAsC;AAEtC,wCAA4D;AAOrD,IAAM,eAAe,GAAG,UAC7B,aAA2B,EAC3B,SAAiB,EACjB,IAAc;;;;;;gBAKG,qBAAM,IAAA,oBAAO,EAAC,aAAa,EAAE,IAAI,CAAC,EAAA;;gBAAjD,YAAY,GAAG,SAAkC,CAAC;;;;gBAE5C,CAAC,GAAU,KAAY,CAAC;gBAE9B,MAAM,IAAI,KAAK,CAAC,oDAA4C,CAAC,CAAC,OAAO,OAAG,CAAC,CAAC;;gBAG5E,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE;oBACxB,sBAAO,IAAA,kBAAe,EAAC,CAAC,CAAC,EAAC;iBAC3B;gBAEK,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC,UAAA,GAAG,YAAI,OAAA,CAAA,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,0CAAE,UAAU,MAAK,SAAS,CAAA,EAAA,CAAC,CAAC;gBAEzF,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE;oBAC5B,sBAAO,IAAA,kBAAe,EAAC,CAAC,CAAC,EAAC;iBAC3B;gBAEK,cAAc,GAAG,gBAAgB,CAAC,MAAM,CAAC,UAAC,GAAW,EAAE,eAA4B;;oBACvF,OAAO,GAAG,GAAG,MAAM,CAAC,CAAA,MAAA,eAAe,CAAC,IAAI,0CAAE,MAAM,KAAI,CAAC,CAAC,CAAC;gBACzD,CAAC,EAAE,CAAC,CAAC,CAAC;gBAEN,sBAAO,IAAA,kBAAe,EAAC,cAAc,CAA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MAAM,GAAG,SAAyC;gBAEtC,eAAe,GAAK,MAAM,SAAX,CAAY;gBAE7C,IAAI,CAAC,eAAe,EAAE;oBACpB,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;iBACpD;gBAEkC,qBAAM,IAAA,+BAAuB,EAAC,eAAe,CAAC,EAAA;;gBAA3E,0BAA0B,GAAG,SAA8C;gBAEjF,sBAAO,0BAA0B,EAAC;;;KACnC,CAAC;AAdW,QAAA,gBAAgB,oBAc3B;AAEK,IAAM,cAAc,GAAG,UAAO,OAAe;;;;oBACnC,qBAAM,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,EAAA;;gBAA9C,MAAM,GAAG,SAAqC;gBAElC,WAAW,GAAK,MAAM,SAAX,CAAY;gBAEzC,IAAI,CAAC,WAAW,EAAE;oBAChB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;iBAClD;gBAED,sBAAO,WAAW,EAAC;;;KACpB,CAAC;AAVW,QAAA,cAAc,kBAUzB"} \ No newline at end of file +{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/api/account/account.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA8F;AAC9F,wDAAiE;AACjE,sCAAiF;AACjF,kDAAsC;AAEtC,wCAA4D;AAOrD,IAAM,eAAe,GAAG,UAC7B,aAA2B,EAC3B,SAAiB,EACjB,IAAc;;;;;;gBAKG,qBAAM,IAAA,oBAAO,EAAC,aAAa,EAAE,IAAI,EAAE,SAAS,CAAC,EAAA;;gBAA5D,YAAY,GAAG,SAA6C,CAAC;;;;gBAEvD,CAAC,GAAU,KAAY,CAAC;gBAE9B,MAAM,IAAI,KAAK,CAAC,oDAA4C,CAAC,CAAC,OAAO,OAAG,CAAC,CAAC;;gBAG5E,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE;oBACxB,sBAAO,IAAA,kBA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/evm.js b/dist/api/evm/evm.js index 3e01626e..4239404d 100644 --- a/dist/api/evm/evm.js +++ b/dist/api/evm/evm.js @@ -481,7 +481,7 @@ var sendAccountToEvm = function (walletInfo, amount, ethAddress, assetCode, lowL isAmountBlind: false, isTypeBlind: false, }; - return [4 /*yield*/, Transaction.sendToAddressV2(walletInfo, address, amount, mainAssetCode, assetBlindRules)]; + return [4 /*yield*/, Transaction.sendToAddressToEvm(walletInfo, address, amount, mainAssetCode, assetBlindRules)]; case 2: transactionBuilder = _a.sent(); return [4 /*yield*/, AssetApi.getAssetDetails(assetCode)]; diff --git a/dist/api/evm/evm.js.map b/dist/api/evm/evm.js.map index 113d26f9..9641a4df 100644 --- a/dist/api/evm/evm.js.map +++ b/dist/api/evm/evm.js.map @@ -1 +1 @@ -{"version":3,"file":"evm.js","sourceRoot":"","sources":["../../../src/api/evm/evm.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAoD;AACpD,4DAAgD;AAChD,8DAAqC;AAErC,kEAA2C;AAC3C,wDAA+B;AAE/B,8CAAwB;AAExB,iCAAoC;AACpC,sDAAiD;AACjD,qEAAgE;AAIhE,oDAAwC;AACxC,0DAA8C;AAC9C,+BAUgB;AAET,IAAM,uBAAuB,GAAG,UAAC,OAAe;IAC/C,IAAA,KAAmB,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,EAA/C,IAAI,UAAA,EAAE,MAAM,YAAmC,CAAC;IACxD,IAAI,MAAM,IAAI,KAAK,EAAE;QACnB,OAAO,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KACnD;IACD,OAAO,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAClD,CAAC,CAAC;AANW,QAAA,uBAAuB,2BAMlC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AAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;iBACnF;gBAED,sBAAO,YAAY,EAAC;;;gBAEd,CAAC,GAAU,KAAY,CAAC;gBAC9B,MAAM,IAAI,KAAK,CAAC,iDAAyC,CAAC,CAAC,OAAO,CAAE,CAAC,CAAC;;;;KAEzE,CAAC;AAzDW,QAAA,gBAAgB,oBAyD3B"} \ No newline at end of file diff --git a/dist/api/sdkAsset/sdkAsset.d.ts b/dist/api/sdkAsset/sdkAsset.d.ts index 2ea15c2f..1f97a2d5 100644 --- a/dist/api/sdkAsset/sdkAsset.d.ts +++ b/dist/api/sdkAsset/sdkAsset.d.ts @@ -28,7 +28,7 @@ export interface AssetBlindRules { * @returns - Findora Asset code */ export declare const getFraAssetCode: () => Promise; -export declare const getMinimalFee: () => Promise; +export declare const getMinimalFee: (receiversCount?: number) => Promise; export declare const getFraPublicKey: () => Promise; export declare const getAssetCode: (val: number[]) => Promise; /** diff --git a/dist/api/sdkAsset/sdkAsset.js b/dist/api/sdkAsset/sdkAsset.js index 82061ff9..ead25166 100644 --- a/dist/api/sdkAsset/sdkAsset.js +++ b/dist/api/sdkAsset/sdkAsset.js @@ -107,10 +107,10 @@ var getFraAssetCode = function () { return __awaiter(void 0, void 0, void 0, fun }); }); }; exports.getFraAssetCode = getFraAssetCode; -var getMinimalFee = function () { return __awaiter(void 0, void 0, void 0, function () { +var getMinimalFee = function (receiversCount) { return __awaiter(void 0, void 0, void 0, function () { var fee; return __generator(this, function (_a) { - fee = (0, feeUtils_1.getFeeByMemoAndOutput)(); + fee = (0, feeUtils_1.getFeeByMemoAndOutput)(0, receiversCount ? receiversCount : 0); return [2 /*return*/, BigInt(fee)]; }); }); }; diff --git a/dist/api/sdkAsset/sdkAsset.js.map b/dist/api/sdkAsset/sdkAsset.js.map index df630942..1b272a23 100644 --- a/dist/api/sdkAsset/sdkAsset.js.map +++ b/dist/api/sdkAsset/sdkAsset.js.map @@ -1 +1 @@ -{"version":3,"file":"sdkAsset.js","source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,EAAE,EAAE;iBACT,CAAC;gBAEF,sBAAO,YAAY,EAAC;;;KACrB,CAAC;AAnCW,QAAA,eAAe,mBAmC1B"} \ No newline at end of file diff --git a/dist/api/transaction/transaction.d.ts b/dist/api/transaction/transaction.d.ts index 986ac988..feb85d62 100644 --- a/dist/api/transaction/transaction.d.ts +++ b/dist/api/transaction/transaction.d.ts @@ -46,46 +46,7 @@ export interface TransferReciever { * @returns TransactionBuilder which should be used in `Transaction.submitTransaction` */ export declare const sendToMany: (walletInfo: WalletKeypar, recieversList: TransferReciever[], assetCode: string, assetBlindRules?: AssetApi.AssetBlindRules) => Promise; -/** - * Send some asset to multiple receivers - * - * @remarks - * Using this function, user can transfer perform multiple transfers of the same asset to multiple receivers using different amounts - * - * @example - * - * ```ts - * const walletInfo = await Keypair.restoreFromPrivateKey(pkey, password); - * const toWalletInfoMine2 = await Keypair.restoreFromPrivateKey(toPkeyMine2, password); - * const toWalletInfoMine3 = await Keypair.restoreFromPrivateKey(toPkeyMine3, password); - * - * const assetCode = await Asset.getFraAssetCode(); - * - * const assetBlindRules: Asset.AssetBlindRules = { isTypeBlind: false, isAmountBlind: false }; - * - * const recieversInfo = [ - * { reciverWalletInfo: toWalletInfoMine2, amount: '2' }, - * { reciverWalletInfo: toWalletInfoMine3, amount: '3' }, - * ]; - * - * const transactionBuilder = await Transaction.sendToMany( - * walletInfo, - * recieversInfo, - * assetCode, - * assetBlindRules, - * ); - * - * const resultHandle = await Transaction.submitTransaction(transactionBuilder); - * ``` - * @throws `Could not create transfer operation (main)` - * @throws `Could not get transactionBuilder from "getTransactionBuilder"` - * @throws `Could not add transfer operation` - * @throws `Could not create transfer operation for fee` - * @throws `Could not add transfer operation for fee` - * - * @returns TransactionBuilder which should be used in `Transaction.submitTransaction` - */ -export declare const sendToManyV2: (walletInfo: WalletKeypar, recieversList: TransferReciever[], assetCode: string, assetBlindRules?: AssetApi.AssetBlindRules) => Promise; +export declare const sendToManyToEvm: (walletInfo: WalletKeypar, recieversList: TransferReciever[], assetCode: string, assetBlindRules?: AssetApi.AssetBlindRules) => Promise; /** * Submits a transaction * @@ -176,7 +137,7 @@ export declare const sendToAddress: (walletInfo: WalletKeypar, address: string, * * @returns TransactionBuilder which should be used in `Transaction.submitTransaction` */ -export declare const sendToAddressV2: (walletInfo: WalletKeypar, address: string, amount: string, assetCode: string, assetBlindRules?: AssetApi.AssetBlindRules) => Promise; +export declare const sendToAddressToEvm: (walletInfo: WalletKeypar, address: string, amount: string, assetCode: string, assetBlindRules?: AssetApi.AssetBlindRules) => Promise; export declare const sendToPublicKey: (walletInfo: WalletKeypar, publicKey: string, amount: string, assetCode: string, assetBlindRules?: AssetApi.AssetBlindRules) => Promise; export declare const getTxnList: (address: string, type: 'from' | 'to', page?: number, per_page?: number) => Promise; export declare const getTxnListByStaking: (address: string, type?: 'claim' | 'delegation' | 'unDelegation', page?: number, per_page?: number) => Promise; diff --git a/dist/api/transaction/transaction.js b/dist/api/transaction/transaction.js index d4547dc9..afdd546d 100644 --- a/dist/api/transaction/transaction.js +++ b/dist/api/transaction/transaction.js @@ -59,7 +59,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.brc20Transfer = exports.brc20Mint = exports.brc20Deploy = exports.getBrc20TransactionBuilder = exports.getBrc20TransferBuilder = exports.getBrc20MintBuilder = exports.getBrc20DeployBuilder = exports.getTxnListByPrism = exports.getTxnListByStakingUnDelegation = exports.getTxnListByStaking = exports.getTxnList = exports.sendToPublicKey = exports.sendToAddressV2 = exports.sendToAddress = exports.submitTransaction = exports.sendToManyV2 = exports.sendToMany = void 0; +exports.brc20Transfer = exports.brc20Mint = exports.brc20Deploy = exports.getBrc20TransactionBuilder = exports.getBrc20TransferBuilder = exports.getBrc20MintBuilder = exports.getBrc20DeployBuilder = exports.getTxnListByPrism = exports.getTxnListByStakingUnDelegation = exports.getTxnListByStaking = exports.getTxnList = exports.sendToPublicKey = exports.sendToAddressToEvm = exports.sendToAddress = exports.submitTransaction = exports.sendToManyToEvm = exports.sendToMany = void 0; var feeUtils_1 = require("../../services/feeUtils"); var bigNumber_1 = require("../../services/bigNumber"); var Fee = __importStar(require("../../services/fee")); @@ -110,7 +110,7 @@ var processor_1 = require("./processor"); * @returns TransactionBuilder which should be used in `Transaction.submitTransaction` */ var sendToMany = function (walletInfo, recieversList, assetCode, assetBlindRules) { return __awaiter(void 0, void 0, void 0, function () { - var ledger, asset, decimals, recieversInfo, fraAssetCode, isFraTransfer, minimalFee, toPublickey, feeRecieverInfoItem, transferOperationBuilder, receivedTransferOperation, e, transactionBuilder, error_1, e, e, transferOperationBuilderFee, receivedTransferOperationFee, e, e, e; + var ledger, asset, decimals, recieversInfo, fraAssetCode, isFraTransfer, outputsCount, minimalFee, toPublickey, feeRecieverInfoItem, transferOperationBuilder, receivedTransferOperation, e, transactionBuilder, error_1, e, e, transferOperationBuilderFee, receivedTransferOperationFee, e, e, e; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, (0, ledgerWrapper_1.getLedger)()]; @@ -121,6 +121,8 @@ var sendToMany = function (walletInfo, recieversList, assetCode, assetBlindRules asset = _a.sent(); decimals = asset.assetRules.decimals; recieversInfo = []; + fraAssetCode = ledger.fra_get_asset_code(); + isFraTransfer = assetCode === fraAssetCode; recieversList.forEach(function (reciver) { var toWalletInfo = reciver.reciverWalletInfo, amount = reciver.amount; var toPublickey = ledger.public_key_from_base64(toWalletInfo.publickey); @@ -132,10 +134,9 @@ var sendToMany = function (walletInfo, recieversList, assetCode, assetBlindRules }; recieversInfo.push(recieverInfoItem); }); - fraAssetCode = ledger.fra_get_asset_code(); - isFraTransfer = assetCode === fraAssetCode; + outputsCount = recieversInfo.length; if (!isFraTransfer) return [3 /*break*/, 5]; - return [4 /*yield*/, AssetApi.getMinimalFee()]; + return [4 /*yield*/, AssetApi.getMinimalFee(outputsCount)]; case 3: minimalFee = _a.sent(); return [4 /*yield*/, AssetApi.getFraPublicKey()]; @@ -213,47 +214,9 @@ var sendToMany = function (walletInfo, recieversList, assetCode, assetBlindRules }); }); }; exports.sendToMany = sendToMany; -/** - * Send some asset to multiple receivers - * - * @remarks - * Using this function, user can transfer perform multiple transfers of the same asset to multiple receivers using different amounts - * - * @example - * - * ```ts - * const walletInfo = await Keypair.restoreFromPrivateKey(pkey, password); - * const toWalletInfoMine2 = await Keypair.restoreFromPrivateKey(toPkeyMine2, password); - * const toWalletInfoMine3 = await Keypair.restoreFromPrivateKey(toPkeyMine3, password); - * - * const assetCode = await Asset.getFraAssetCode(); - * - * const assetBlindRules: Asset.AssetBlindRules = { isTypeBlind: false, isAmountBlind: false }; - * - * const recieversInfo = [ - * { reciverWalletInfo: toWalletInfoMine2, amount: '2' }, - * { reciverWalletInfo: toWalletInfoMine3, amount: '3' }, - * ]; - * - * const transactionBuilder = await Transaction.sendToMany( - * walletInfo, - * recieversInfo, - * assetCode, - * assetBlindRules, - * ); - * - * const resultHandle = await Transaction.submitTransaction(transactionBuilder); - * ``` - * @throws `Could not create transfer operation (main)` - * @throws `Could not get transactionBuilder from "getTransactionBuilder"` - * @throws `Could not add transfer operation` - * @throws `Could not create transfer operation for fee` - * @throws `Could not add transfer operation for fee` - * - * @returns TransactionBuilder which should be used in `Transaction.submitTransaction` - */ -var sendToManyV2 = function (walletInfo, recieversList, assetCode, assetBlindRules) { return __awaiter(void 0, void 0, void 0, function () { - var ledger, asset, decimals, minimalFee, toPublickey, fraAssetCode, isFraTransfer, recieversInfo, transferOperationBuilder, receivedTransferOperation, e, transactionBuilder, error_2, e, e, e; +// it is only used by the evm module +var sendToManyToEvm = function (walletInfo, recieversList, assetCode, assetBlindRules) { return __awaiter(void 0, void 0, void 0, function () { + var ledger, asset, decimals, fraAssetCode, isFraTransfer, extraOutput, outputsCount, minimalFee, toPublickey, recieversInfo, transferOperationBuilder, receivedTransferOperation, e, transactionBuilder, error_2, e, e, e; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, (0, ledgerWrapper_1.getLedger)()]; @@ -263,14 +226,21 @@ var sendToManyV2 = function (walletInfo, recieversList, assetCode, assetBlindRul case 2: asset = _a.sent(); decimals = asset.assetRules.decimals; - return [4 /*yield*/, AssetApi.getMinimalFee()]; + fraAssetCode = ledger.fra_get_asset_code(); + isFraTransfer = assetCode === fraAssetCode; + extraOutput = 0; + if (!isFraTransfer) { + // if it is not an fra transfer, we have one more asset, hence 1 more output, + // so we need to account on it in the fee + extraOutput = 1; + } + outputsCount = recieversList.length + extraOutput; + return [4 /*yield*/, AssetApi.getMinimalFee(outputsCount)]; case 3: minimalFee = _a.sent(); return [4 /*yield*/, AssetApi.getFraPublicKey()]; case 4: toPublickey = _a.sent(); - fraAssetCode = ledger.fra_get_asset_code(); - isFraTransfer = assetCode === fraAssetCode; recieversInfo = {}; recieversInfo[fraAssetCode] = [ { @@ -292,7 +262,7 @@ var sendToManyV2 = function (walletInfo, recieversList, assetCode, assetBlindRul }; recieversInfo[assetCode].push(recieverInfoItem); }); - return [4 /*yield*/, Fee.buildTransferOperationV2(walletInfo, recieversInfo)]; + return [4 /*yield*/, Fee.buildTransferOperationMultiAsset(walletInfo, recieversInfo)]; case 5: transferOperationBuilder = _a.sent(); receivedTransferOperation = ''; @@ -341,7 +311,7 @@ var sendToManyV2 = function (walletInfo, recieversList, assetCode, assetBlindRul } }); }); }; -exports.sendToManyV2 = sendToManyV2; +exports.sendToManyToEvm = sendToManyToEvm; /** * Submits a transaction * @@ -474,7 +444,7 @@ exports.sendToAddress = sendToAddress; * * @returns TransactionBuilder which should be used in `Transaction.submitTransaction` */ -var sendToAddressV2 = function (walletInfo, address, amount, assetCode, assetBlindRules) { return __awaiter(void 0, void 0, void 0, function () { +var sendToAddressToEvm = function (walletInfo, address, amount, assetCode, assetBlindRules) { return __awaiter(void 0, void 0, void 0, function () { var toWalletInfoLight, recieversInfo; return __generator(this, function (_a) { switch (_a.label) { @@ -482,11 +452,11 @@ var sendToAddressV2 = function (walletInfo, address, amount, assetCode, assetBli case 1: toWalletInfoLight = _a.sent(); recieversInfo = [{ reciverWalletInfo: toWalletInfoLight, amount: amount }]; - return [2 /*return*/, (0, exports.sendToManyV2)(walletInfo, recieversInfo, assetCode, assetBlindRules)]; + return [2 /*return*/, (0, exports.sendToManyToEvm)(walletInfo, recieversInfo, assetCode, assetBlindRules)]; } }); }); }; -exports.sendToAddressV2 = sendToAddressV2; +exports.sendToAddressToEvm = sendToAddressToEvm; var sendToPublicKey = function (walletInfo, publicKey, amount, assetCode, assetBlindRules) { return __awaiter(void 0, void 0, void 0, function () { var address; return __generator(this, function (_a) { @@ -867,29 +837,30 @@ var brc20Deploy = function (wallet, params) { return __awaiter(void 0, void 0, v }); }; exports.brc20Deploy = brc20Deploy; var brc20Mint = function (wallet, params) { return __awaiter(void 0, void 0, void 0, function () { - var ledger, fraAssetCode, recieversInfo, toPublickey, feeRecieverInfoItem, transferOperationBuilder, receivedTransferOperation, transactionBuilder; - var _a, _b; - return __generator(this, function (_c) { - switch (_c.label) { + var ledger, fraAssetCode, recieversInfo, toPublickey, totalMemos, feeRecieverInfoItem, transferOperationBuilder, receivedTransferOperation, transactionBuilder; + var _a; + return __generator(this, function (_b) { + switch (_b.label) { case 0: return [4 /*yield*/, (0, ledgerWrapper_1.getLedger)()]; case 1: - ledger = _c.sent(); + ledger = _b.sent(); fraAssetCode = ledger.fra_get_asset_code(); recieversInfo = []; return [4 /*yield*/, AssetApi.getFraPublicKey()]; case 2: - toPublickey = _c.sent(); + toPublickey = _b.sent(); + totalMemos = (_a = params.repeat) !== null && _a !== void 0 ? _a : 1; feeRecieverInfoItem = { - utxoNumbers: params.fee ? BigInt(params.fee) : BigInt((0, feeUtils_1.getFeeByMemoAndOutput)((_a = params.repeat) !== null && _a !== void 0 ? _a : 1)), + utxoNumbers: params.fee ? BigInt(params.fee) : BigInt((0, feeUtils_1.getFeeByMemoAndOutput)(totalMemos, totalMemos + 2)), toPublickey: toPublickey, }; recieversInfo.push(feeRecieverInfoItem); return [4 /*yield*/, Fee.buildTransferOperationV3(wallet, recieversInfo, fraAssetCode)]; case 3: - transferOperationBuilder = _c.sent(); - return [4 /*yield*/, (0, exports.getBrc20MintBuilder)(wallet, params.tick, params.amt, (_b = params.repeat) !== null && _b !== void 0 ? _b : 1, transferOperationBuilder)]; + transferOperationBuilder = _b.sent(); + return [4 /*yield*/, (0, exports.getBrc20MintBuilder)(wallet, params.tick, params.amt, totalMemos, transferOperationBuilder)]; case 4: - receivedTransferOperation = _c.sent(); + receivedTransferOperation = _b.sent(); transactionBuilder = (0, exports.getBrc20TransactionBuilder)(wallet, receivedTransferOperation); return [2 /*return*/, transactionBuilder]; } @@ -909,7 +880,7 @@ var brc20Transfer = function (wallet, params) { return __awaiter(void 0, void 0, case 2: toPublickey = _a.sent(); feeRecieverInfoItem = { - utxoNumbers: params.fee ? BigInt(params.fee) : BigInt((0, feeUtils_1.getFeeByMemoAndOutput)(1)), + utxoNumbers: params.fee ? BigInt(params.fee) : BigInt((0, feeUtils_1.getFeeByMemoAndOutput)(1, 3)), toPublickey: toPublickey, }; recieversInfo.push(feeRecieverInfoItem); diff --git a/dist/api/transaction/transaction.js.map b/dist/api/transaction/transaction.js.map index 50d35008..67c123a7 100644 --- a/dist/api/transaction/transaction.js.map +++ b/dist/api/transaction/transaction.js.map @@ -1 +1 @@ -{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../src/api/transaction/transaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAgE;AAChE,sDAA0D;AAC1D,sDAA0C;AAC1C,qEAAgE;AAEhE,sCAA6G;AAC7G,kDAAsC;AACtC,oDAAwC;AACxC,iDAAqC;AACrC,iDAAqC;AACrC,yCAAiD;AAcjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACI,IAAM,UAAU,GAAG,UACxB,UAAwB,EACxB,aAAiC,EACjC,SAAi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,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAA,gCAAqB,EAAC,CAAC,CAAC,CAAC;oBAC/E,WAAW,aAAA;iBACZ,CAAC;gBAEF,aAAa,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;gBAEP,qBAAM,GAAG,CAAC,wBAAwB,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,EAAA;;gBAAlG,wBAAwB,GAAG,SAAuE;gBAEtE,qBAAM,IAAA,+BAAuB,EAC7D,MAAM,EACN,MAAM,CAAC,eAAe,EACtB,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,GAAG,EACV,wBAAwB,CACzB,EAAA;;gBANK,yBAAyB,GAAG,SAMjC;gBAEK,kBAAkB,GAAG,IAAA,kCAA0B,EAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;gBAEzF,sBAAO,kBAAkB,EAAC;;;KAC3B,CAAC;AA3BW,QAAA,aAAa,iBA2BxB"} \ No newline at end of file +{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../src/api/transaction/transaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAgE;AAChE,sDAA0D;AAC1D,sDAA0C;AAC1C,qEAAgE;AAEhE,sCAA6G;AAC7G,kDAAsC;AACtC,oDAAwC;AACxC,iDAAqC;AACrC,iDAAqC;AACrC,yCAAiD;AAcjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACI,IAAM,UAAU,GAAG,UACxB,UAAwB,EACxB,aAAiC,EACjC,SAAiB,EACjB,eAA0C;;;;oBAE3B,qBAAM,IAAA,yBAAS,GAAE,EAAA;;gBAA1B,MAAM,GAAG,SAAiB;gBAElB,qBAAM,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,EAAA;;gBAAjD,KAAK,GAAG,SAAyC;gBACjD,QAAQ,GAAG,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AM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAA,gCAAqB,EAAC,CAAC,EAAE,CAAC,CAAC,CAAC;oBAClF,WAAW,aAAA;iBACZ,CAAC;gBAEF,aAAa,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;gBAEP,qBAAM,GAAG,CAAC,wBAAwB,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,EAAA;;gBAAlG,wBAAwB,GAAG,SAAuE;gBAEtE,qBAAM,IAAA,+BAAuB,EAC7D,MAAM,EACN,MAAM,CAAC,eAAe,EACtB,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,GAAG,EACV,wBAAwB,CACzB,EAAA;;gBANK,yBAAyB,GAAG,SAMjC;gBAEK,kBAAkB,GAAG,IAAA,kCAA0B,EAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;gBAEzF,sBAAO,kBAAkB,EAAC;;;KAC3B,CAAC;AA3BW,QAAA,aAAa,iBA2BxB"} \ No newline at end of file diff --git a/dist/cli/commands/batchBuyTicket.js b/dist/cli/commands/batchBuyTicket.js index 0b357b22..e74e1c00 100644 --- a/dist/cli/commands/batchBuyTicket.js +++ b/dist/cli/commands/batchBuyTicket.js @@ -96,28 +96,6 @@ var getRecordsList = function (parsedListOfRecords) { }); return recordsList; }; -// const writeDistributionLog = async (sendInfo: ProcessedRecordInfo[], errorsInfo: ErrorsInfo) => { -// const dateStamp = now(); -// -// const resultFilePath = `${resultFileLogName}_${dateStamp}.txt`; -// -// try { -// await writeFile( -// resultFilePath, -// JSON.stringify( -// { -// date: dateStamp, -// sendInfo, -// errorsInfo, -// }, -// null, -// 2, -// ), -// ); -// } catch (error) { -// throw new Error(`can not write result log for "${resultFilePath}", "${(error as Error).message}"`); -// } -// }; var runBatchBuyTicket = function (filePath, repeatTimes, waitBetweenRepeatMinutes) { return __awaiter(void 0, void 0, void 0, function () { var data, parsedListOfRecords, err_1, error_1, hostUrl, processedInfo, errorsInfo, recordsList, password, totalRepetitions, i, _loop_1, _i, recordsList_1, currentRecord; return __generator(this, function (_a) { @@ -161,7 +139,7 @@ var runBatchBuyTicket = function (filePath, repeatTimes, waitBetweenRepeatMinute (0, utils_1.log)("Begin: Set \"".concat(totalRepetitions, "\" out of \"").concat(repeatTimes, "\"")); i = 1; _loop_1 = function (currentRecord) { - var fromPk, tick, totalFraToSpend_1, minAmtToBuy_1, maxAmtToBuy_1, rndSecMin, rndSecMax, walletFrom, waitTimeInMSec, rowData, postedListings, data_1, total, errorMessage, sortedList, errorMessage, selectedOrderIdx, selectedOrder, listId, amt, fraPrice, _b, txHash, buyResult, rowData_1, errorMessage, rowData_2, errorMessage, error_2, rowData, errorMessage; + var fromPk, tick, totalFraToSpend_1, minAmtToBuy_1, maxAmtToBuy_1, rndSecMin, rndSecMax, walletFrom, waitTimeInMSec, rowData, postedListings, data_1, total, errorMessage, sortedList, errorMessage, selectedOrderIdx, selectedOrder, listId, fraPrice, _b, txHash, buyResult, rowData_1, errorMessage, rowData_2, errorMessage, error_2, rowData, errorMessage; return __generator(this, function (_c) { switch (_c.label) { case 0: @@ -199,7 +177,7 @@ var runBatchBuyTicket = function (filePath, repeatTimes, waitBetweenRepeatMinute selectedOrderIdx = (0, utils_1.getRandomNumber)(1, sortedList.length); selectedOrder = sortedList[selectedOrderIdx - 1]; console.log('selectedOrder', selectedOrder); - listId = selectedOrder.id, amt = selectedOrder.amount, fraPrice = selectedOrder.fraPrice; + listId = selectedOrder.id, fraPrice = selectedOrder.fraPrice; return [4 /*yield*/, (0, brc20_1.buy)(listId, fraPrice, hostUrl, walletFrom)]; case 3: _b = _c.sent(), txHash = _b.txHash, buyResult = _b.buyResult; @@ -262,11 +240,8 @@ var runBatchBuyTicket = function (filePath, repeatTimes, waitBetweenRepeatMinute case 13: if (totalRepetitions <= repeatTimes) return [3 /*break*/, 7]; _a.label = 14; - case 14: - // await writeDistributionLog(processedInfo, errorsInfo); - return [4 /*yield*/, (0, utils_2.writeDistributionLog)(processedInfo, errorsInfo, resultFileLogName)]; + case 14: return [4 /*yield*/, (0, utils_2.writeDistributionLog)(processedInfo, errorsInfo, resultFileLogName)]; case 15: - // await writeDistributionLog(processedInfo, errorsInfo); _a.sent(); (0, utils_1.log)("Command Log ", JSON.stringify(processedInfo, null, 2)); (0, utils_1.log)("Command Errors Log ", JSON.stringify(errorsInfo, null, 2)); diff --git a/dist/cli/commands/batchBuyTicket.js.map b/dist/cli/commands/batchBuyTicket.js.map index deb59476..1c24d387 100644 --- a/dist/cli/commands/batchBuyTicket.js.map +++ b/dist/cli/commands/batchBuyTicket.js.map @@ -1 +1 @@ -{"version":3,"file":"batchBuyTicket.js","sourceRoot":"","sources":["../../../src/cli/commands/batchBuyTicket.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA+B;AAC/B,gEAAkC;AAClC,kDAA4B;AAC5B,iCAAoC;AACpC,8CAAsE;AACtE,8CAAkE;AAClE,iCAA+C;AAE/C,IAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAmB9C,IAAM,UAAU,GAAG,UAAC,aAA4B;IAC9C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QAChD,IAAM,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;QAEvC,IAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAClE,IAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACpE,IAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QAChF,IA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,WAAG,EAAC,YAAY,CAAC,CAAC;;;gCAGpB,CAAC,IAAI,CAAC,CAAC;;;;;sBAjG4B,EAAX,2BAAW;;;qBAAX,CAAA,yBAAW,CAAA;gBAA5B,aAAa;8CAAb,aAAa;;;;;gBAAI,IAAW,CAAA;;;gBAoGrC,IAAA,WAAG,EAAC,qBAAa,gBAAgB,yBAAa,WAAW,OAAG,CAAC,CAAC;gBAC9D,IAAA,WAAG,EAAC,wBAAgB,wBAAwB,mCAA+B,CAAC,CAAC;gBAE7E,qBAAM,IAAA,uBAAK,EAAC,wBAAwB,GAAG,EAAE,GAAG,IAAI,CAAC,EAAA;;gBAAjD,SAAiD,CAAC;gBAClD,gBAAgB,IAAI,CAAC,CAAC;;;oBACf,gBAAgB,IAAI,WAAW;;qBAExC,qBAAM,IAAA,4BAAoB,EAAkC,aAAa,EAAE,UAAU,EAAE,iBAAiB,CAAC,EAAA;;gBAAzG,SAAyG,CAAC;gBAE1G,IAAA,WAAG,EAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC5D,IAAA,WAAG,EAAC,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;;;;KACjE,CAAC;AA7JW,QAAA,iBAAiB,qBA6J5B"} \ No newline at end of file diff --git a/dist/cli/commands/batchBuyTicketUnits.js b/dist/cli/commands/batchBuyTicketUnits.js index 657c02a3..b5b85991 100644 --- a/dist/cli/commands/batchBuyTicketUnits.js +++ b/dist/cli/commands/batchBuyTicketUnits.js @@ -242,11 +242,8 @@ var runBatchBuyTicketUnits = function (filePath, repeatTimes, waitBetweenRepeatM case 13: if (totalRepetitions <= repeatTimes) return [3 /*break*/, 7]; _a.label = 14; - case 14: - // await writeDistributionLog(processedInfo, errorsInfo); - return [4 /*yield*/, (0, utils_2.writeDistributionLog)(processedInfo, errorsInfo, resultFileLogName)]; + case 14: return [4 /*yield*/, (0, utils_2.writeDistributionLog)(processedInfo, errorsInfo, resultFileLogName)]; case 15: - // await writeDistributionLog(processedInfo, errorsInfo); _a.sent(); (0, utils_1.log)("Command Log ", JSON.stringify(processedInfo, null, 2)); (0, utils_1.log)("Command Errors Log ", JSON.stringify(errorsInfo, null, 2)); diff --git a/dist/cli/commands/batchBuyTicketUnits.js.map b/dist/cli/commands/batchBuyTicketUnits.js.map index 4d6d2889..6bf4a20f 100644 --- a/dist/cli/commands/batchBuyTicketUnits.js.map +++ b/dist/cli/commands/batchBuyTicketUnits.js.map @@ -1 +1 @@ -{"version":3,"file":"batchBuyTicketUnits.js","sourceRoot":"","sources":["../../../src/cli/commands/batchBuyTicketUnits.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA+B;AAC/B,gEAAkC;AAClC,kDAA4B;AAC5B,iCAAoC;AACpC,8CAAsE;AACtE,8CAAkE;AAClE,iCAA+C;AAE/C,IAAM,iBAAiB,GAAG,wBAAwB,CAAC;AAmBnD,IAAM,UAAU,GAAG,UAAC,aAA4B;IAC9C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QAChD,IAAM,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;QAEvC,IAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAClE,IAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACpE,IAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QAChF,IAAM,uBAAuB,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa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C;;;oBACf,gBAAgB,IAAI,WAAW;;;YAExC,yDAAyD;YACzD,qBAAM,IAAA,4BAAoB,EAAkC,aAAa,EAAE,UAAU,EAAE,iBAAiB,CAAC,EAAA;;gBADzG,yDAAyD;gBACzD,SAAyG,CAAC;gBAE1G,IAAA,WAAG,EAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC5D,IAAA,WAAG,EAAC,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;;;;KACjE,CAAC;AA/JW,QAAA,sBAAsB,0BA+JjC"} \ No newline at end of file +{"version":3,"file":"batchBuyTicketUnits.js","sourceRoot":"","sources":["../../../src/cli/commands/batchBuyTicketUnits.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA+B;AAC/B,gEAAkC;AAClC,kDAA4B;AAC5B,iCAAoC;AACpC,8CAAsE;AACtE,8CAAkE;AAClE,iCAA+C;AAE/C,IAAM,iBAAiB,GAAG,wBAAwB,CAAC;AAmBnD,IAAM,UAAU,GAAG,UAAC,aAA4B;IAC9C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QAChD,IAAM,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;QAEvC,IAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAClE,IAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACpE,IAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,iBAAiB,C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CAAC,EAAA;;gBAAjD,SAAiD,CAAC;gBAClD,gBAAgB,IAAI,CAAC,CAAC;;;oBACf,gBAAgB,IAAI,WAAW;;qBAExC,qBAAM,IAAA,4BAAoB,EAAkC,aAAa,EAAE,UAAU,EAAE,iBAAiB,CAAC,EAAA;;gBAAzG,SAAyG,CAAC;gBAE1G,IAAA,WAAG,EAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC5D,IAAA,WAAG,EAAC,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;;;;KACjE,CAAC;AA9JW,QAAA,sBAAsB,0BA8JjC"} \ No newline at end of file diff --git a/dist/cli/commands/batchMintTicket.js b/dist/cli/commands/batchMintTicket.js index dcd490dd..d2a71458 100644 --- a/dist/cli/commands/batchMintTicket.js +++ b/dist/cli/commands/batchMintTicket.js @@ -87,7 +87,7 @@ var getRecordsList = function (parsedListOfRecords) { return recordsList; }; var runBatchMintTicket = function (filePath, fromPk) { return __awaiter(void 0, void 0, void 0, function () { - var data, parsedListOfRecords, err_1, error_1, password, walletFrom, processedInfo, errorsInfo, recordsList, i, _i, recordsList_1, currentRecord, tick, amt, repeat, rndSecMin, rndSecMax, waitTimeInMSec, txHash, rowData, errorMessage, _a, txDetailsResponse, txDetailsResponseError, error_2, rowData, errorMessage; + var data, parsedListOfRecords, err_1, error_1, password, walletFrom, processedInfo, errorsInfo, recordsList, i, _i, recordsList_1, currentRecord, tick, amt, repeat, rndSecMin, rndSecMax, waitTimeInMSec, submittedTxHash, rowData, errorMessage, _a, txDetailsResponseSubmitted, txDetailsResponseErrorSumbitted, error_2, rowData, errorMessage; return __generator(this, function (_b) { switch (_b.label) { case 0: @@ -136,23 +136,23 @@ var runBatchMintTicket = function (filePath, fromPk) { return __awaiter(void 0, waitTimeInMSec = (0, utils_1.getRandomNumber)(rndSecMin * 1000, rndSecMax * 1000); return [4 /*yield*/, (0, brc20_1.sendBRC20MintTx)(tick, amt, repeat, walletFrom)]; case 10: - txHash = _b.sent(); - (0, utils_1.log)("".concat(i, ": Tx hash is \"").concat(txHash, "\"")); - if (!txHash) { + submittedTxHash = _b.sent(); + (0, utils_1.log)("".concat(i, ": Submitted Tx hash is \"").concat(submittedTxHash, "\"")); + if (!submittedTxHash) { rowData = JSON.stringify(currentRecord); errorMessage = "".concat(i, ": !! ERROR!! - potential error while sending a mint transaction with this data \"").concat(rowData, "\". Error: - txHash is empty."); errorsInfo.push(errorMessage); (0, utils_1.log)(errorMessage); } - return [4 /*yield*/, (0, utils_2.getTxDetailsByHash)(txHash)]; + return [4 /*yield*/, (0, utils_2.getTxDetailsByHash)(submittedTxHash)]; case 11: - _a = _b.sent(), txDetailsResponse = _a.txDetailsResponse, txDetailsResponseError = _a.txDetailsResponseError; + _a = _b.sent(), txDetailsResponseSubmitted = _a.txDetailsResponse, txDetailsResponseErrorSumbitted = _a.txDetailsResponseError; processedInfo.push({ - txHash: txHash, + txHash: submittedTxHash, dataItem: __assign({}, currentRecord), chosenRandomWaitingTimeSec: "".concat((waitTimeInMSec / 1000).toFixed(1)), - txDetailsResponse: txDetailsResponse, - txDetailsResponseError: txDetailsResponseError, + txDetailsResponseSubmitted: txDetailsResponseSubmitted, + txDetailsResponseErrorSumbitted: txDetailsResponseErrorSumbitted, }); (0, utils_1.log)("".concat(i, ": Waiting for randomly chosen ").concat(waitTimeInMSec / 1000, "s (given range is ").concat(rndSecMin, " - ").concat(rndSecMax, ") before processing next record")); return [4 /*yield*/, (0, sleep_promise_1.default)(waitTimeInMSec)]; diff --git a/dist/cli/commands/batchMintTicket.js.map b/dist/cli/commands/batchMintTicket.js.map index 9825e30d..39ae1bb5 100644 --- a/dist/cli/commands/batchMintTicket.js.map +++ b/dist/cli/commands/batchMintTicket.js.map @@ -1 +1 @@ -{"version":3,"file":"batchMintTicket.js","sourceRoot":"","sources":["../../../src/c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/dist/cli/commands/batchSendFra.js index 37850808..cbb7996a 100644 --- a/dist/cli/commands/batchSendFra.js +++ b/dist/cli/commands/batchSendFra.js @@ -52,12 +52,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); exports.runBatchSendFra = void 0; var neat_csv_1 = __importDefault(require("neat-csv")); -var sleep_promise_1 = __importDefault(require("sleep-promise")); var api_1 = require("../../api"); var utils_1 = require("../../services/utils"); var utils_2 = require("./utils"); var resultFileLogName = "batchFraSendLog"; -var waitingTimeBeforeCheckTxStatus = 32000; var chunk = function (arr, size) { return Array.from({ length: Math.ceil(arr.length / size) }, function (_v, i) { return arr.slice(i * size, i * size + size); }); }; @@ -82,29 +80,6 @@ var getRecieversList = function (parsedListOfRecievers) { }); return receiversList; }; -// const writeDistributionLog = async (sendInfo: SendInfo[], errorsInfo: ErrorsInfo) => { -// const dateStamp = now(); -// -// const resultFilePath = `batchFraSendLog_${dateStamp}.txt`; -// -// try { -// await writeFile( -// resultFilePath, -// JSON.stringify( -// { -// date: dateStamp, -// distributionType: 'FRA', -// sendInfo, -// errorsInfo, -// }, -// null, -// 2, -// ), -// ); -// } catch (error) { -// throw new Error(`can not write result log for "${resultFilePath}", "${(error as Error).message}"`); -// } -// }; var processTransferRecieverItem = function (tokenReceiver) { return __awaiter(void 0, void 0, void 0, function () { var reciverWalletInfo; return __generator(this, function (_a) { @@ -122,7 +97,7 @@ var processTransferRecievers = function (tokenReceiversChunk) { return __awaiter }); }); }; var sendTxToAccounts = function (senderWallet, recieversInfo, assetCode) { return __awaiter(void 0, void 0, void 0, function () { - var assetBlindRules, transactionBuilder, txHash; + var assetBlindRules, transactionBuilder, submittedTxHash, txHash; return __generator(this, function (_a) { switch (_a.label) { case 0: @@ -132,42 +107,41 @@ var sendTxToAccounts = function (senderWallet, recieversInfo, assetCode) { retur transactionBuilder = _a.sent(); return [4 /*yield*/, api_1.Transaction.submitTransaction(transactionBuilder)]; case 2: - txHash = _a.sent(); - console.log('🚀 ~ file: batchSendFra.ts ~ line 132 ~ txHash', txHash); - return [4 /*yield*/, (0, sleep_promise_1.default)(waitingTimeBeforeCheckTxStatus)]; + submittedTxHash = _a.sent(); + return [4 /*yield*/, (0, utils_2.getTxHashSwapByHash)(submittedTxHash)]; case 3: - _a.sent(); - return [2 /*return*/, { txHash: txHash }]; + txHash = (_a.sent()).txHash; + return [2 /*return*/, { txHash: txHash, submittedTxHash: submittedTxHash }]; } }); }); }; var runBatchSendFra = function (filePath, fromPk, numberOfOutputs) { return __awaiter(void 0, void 0, void 0, function () { - var data, parsedListOfRecievers, err_1, error_1, password, walletFrom, sendInfo, errorsInfo, receiversList, receiversChunks, fraCode, i, _i, receiversChunks_1, currentChunk, recieversInfo, txHash, error_2, addresses, errorMessage; - return __generator(this, function (_a) { - switch (_a.label) { + var data, parsedListOfRecievers, err_1, error_1, password, walletFrom, sendInfo, errorsInfo, receiversList, receiversChunks, fraCode, i, _i, receiversChunks_1, currentChunk, recieversInfo, _a, swappedTxHash, submittedTxHash, _b, txDetailsResponseSwapped, txDetailsResponseErrorSwapped, error_2, addresses, errorMessage; + return __generator(this, function (_c) { + switch (_c.label) { case 0: - _a.trys.push([0, 2, , 3]); + _c.trys.push([0, 2, , 3]); return [4 /*yield*/, (0, utils_1.readFile)(filePath)]; case 1: - data = _a.sent(); + data = _c.sent(); return [3 /*break*/, 3]; case 2: - err_1 = _a.sent(); + err_1 = _c.sent(); throw Error('Could not read file "fileFra.csv" '); case 3: - _a.trys.push([3, 5, , 6]); + _c.trys.push([3, 5, , 6]); return [4 /*yield*/, (0, neat_csv_1.default)(data)]; case 4: - parsedListOfRecievers = _a.sent(); + parsedListOfRecievers = _c.sent(); return [3 /*break*/, 6]; case 5: - error_1 = _a.sent(); + error_1 = _c.sent(); throw Error('Could not parse file "fileFra.csv" '); case 6: password = '123'; return [4 /*yield*/, api_1.Keypair.restoreFromPrivateKey(fromPk, password)]; case 7: - walletFrom = _a.sent(); + walletFrom = _c.sent(); sendInfo = []; errorsInfo = []; try { @@ -180,47 +154,50 @@ var runBatchSendFra = function (filePath, fromPk, numberOfOutputs) { return __aw receiversChunks = chunk(receiversList, numberOfOutputs); return [4 /*yield*/, api_1.Asset.getFraAssetCode()]; case 8: - fraCode = _a.sent(); + fraCode = _c.sent(); i = 0; _i = 0, receiversChunks_1 = receiversChunks; - _a.label = 9; + _c.label = 9; case 9: - if (!(_i < receiversChunks_1.length)) return [3 /*break*/, 16]; + if (!(_i < receiversChunks_1.length)) return [3 /*break*/, 17]; currentChunk = receiversChunks_1[_i]; - _a.label = 10; + _c.label = 10; case 10: - _a.trys.push([10, 13, , 14]); + _c.trys.push([10, 14, , 15]); return [4 /*yield*/, processTransferRecievers(currentChunk)]; case 11: - recieversInfo = _a.sent(); + recieversInfo = _c.sent(); return [4 /*yield*/, sendTxToAccounts(walletFrom, recieversInfo, fraCode)]; case 12: - txHash = (_a.sent()).txHash; + _a = _c.sent(), swappedTxHash = _a.txHash, submittedTxHash = _a.submittedTxHash; + return [4 /*yield*/, (0, utils_2.getTxDetailsByHash)(swappedTxHash)]; + case 13: + _b = _c.sent(), txDetailsResponseSwapped = _b.txDetailsResponse, txDetailsResponseErrorSwapped = _b.txDetailsResponseError; sendInfo.push({ - txHash: txHash, + submittedTxHash: submittedTxHash, + swappedTxHash: swappedTxHash, + txDetailsResponseSwapped: txDetailsResponseSwapped, + txDetailsResponseErrorSwapped: txDetailsResponseErrorSwapped, tokenReceivers: __assign({}, currentChunk), }); - (0, utils_1.log)("".concat(i + 1, ": Tx hash is \"").concat(txHash, "\"")); - return [3 /*break*/, 14]; - case 13: - error_2 = _a.sent(); + (0, utils_1.log)("".concat(i + 1, ": Tx hash (submitted) is \"").concat(submittedTxHash, "\", Tx hash (swapped) is \"").concat(swappedTxHash, "\"")); + return [3 /*break*/, 15]; + case 14: + error_2 = _c.sent(); addresses = currentChunk.map(function (item) { return item.address; }).join(','); errorMessage = "".concat(i + 1, ": !! ERROR!! - could not send a transaction to one of those addresses \"").concat(addresses, "\". Error: - ").concat(error_2.message, ". Skipping...."); errorsInfo.push(errorMessage); (0, utils_1.log)(errorMessage); - return [3 /*break*/, 14]; - case 14: - i += 1; - _a.label = 15; + return [3 /*break*/, 15]; case 15: + i += 1; + _c.label = 16; + case 16: _i++; return [3 /*break*/, 9]; - case 16: - // await writeDistributionLog(sendInfo, errorsInfo); - return [4 /*yield*/, (0, utils_2.writeDistributionLog)(sendInfo, errorsInfo, resultFileLogName)]; - case 17: - // await writeDistributionLog(sendInfo, errorsInfo); - _a.sent(); + case 17: return [4 /*yield*/, (0, utils_2.writeDistributionLog)(sendInfo, errorsInfo, resultFileLogName)]; + case 18: + _c.sent(); (0, utils_1.log)("Batch Send Log ", JSON.stringify(sendInfo, null, 2)); (0, utils_1.log)("Batch Send Errors Log ", JSON.stringify(errorsInfo, null, 2)); return [2 /*return*/]; diff --git a/dist/cli/commands/batchSendFra.js.map b/dist/cli/commands/batchSendFra.js.map index 0030d7a1..8411d328 100644 --- a/dist/cli/commands/batchSendFra.js.map +++ b/dist/cli/commands/batchSendFra.js.map @@ -1 +1 @@ -{"version":3,"file":"batchSendFra.js","sourceRoot":"","sources":["../../../src/cli/commands/batchSendFra.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA+B;AAC/B,gEAAkC;AAClC,iCAAwD;AAExD,8CAAqD;AACrD,iCAA+C;AAE/C,IAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAa5C,IAAM,8BAA8B,GAAG,KAAK,CAAC;AAE7C,IAAM,KAAK,GAAG,UAAI,GAAQ,EAAE,IAAY;IACtC,OAAA,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,EAAE,UAAC,EAAE,EAAE,CAAC,IAAK,OAAA,GAAG,CAAC,KAAK,CAAC,C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AC;gBAEH,IAAA,WAAG,EAAC,UAAG,CAAC,GAAG,CAAC,wCAA6B,eAAe,wCAA4B,aAAa,OAAG,CAAC,CAAC;;;;gBAEhG,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,CAAC,OAAO,EAAZ,CAAY,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAC7D,YAAY,GAAG,UACnB,CAAC,GAAG,CAAC,qFACmE,SAAS,0BAChF,OAAe,CAAC,OAAO,mBACV,CAAC;gBACjB,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBAC9B,IAAA,WAAG,EAAC,YAAY,CAAC,CAAC;;;gBAGpB,CAAC,IAAI,CAAC,CAAC;;;gBAlCgB,IAAe,CAAA;;qBAqCxC,qBAAM,IAAA,4BAAoB,EAAuB,QAAQ,EAAE,UAAU,EAAE,iBAAiB,CAAC,EAAA;;gBAAzF,SAAyF,CAAC;gBAE1F,IAAA,WAAG,EAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;gBAC1D,IAAA,WAAG,EAAC,wBAAwB,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;;;;KACpE,CAAC;AA9EW,QAAA,eAAe,mBA8E1B"} \ No newline at end of file diff --git a/dist/cli/commands/getBalanceFromWallets.js.map b/dist/cli/commands/getBalanceFromWallets.js.map index 04fe0a11..878f2667 100644 --- a/dist/cli/commands/getBalanceFromWallets.js.map +++ b/dist/cli/commands/getBalanceFromWallets.js.map @@ -1 +1 @@ -{"version":3,"file":"getBalanceFromWallets.js","sourceRoot":"","sources":["../../../src/cli/commands/getBalanceFromWallets.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAqD;AAErD,iCAA6C;AAG7C,IAAM,QAA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AAC,CAAC;iBAChC;gBAAC,OAAO,GAAG,EAAE;oBACZ,IAAA,WAAG,EAAC,8CAAuC,QAAQ,CAAE,CAAC,CAAC;oBACvD,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;iBACzB;gBAEK,UAAU,GAAG,EAAE,CAAC;sBAEe,EAAX,2BAAW;;;qBAAX,CAAA,yBAAW,CAAA;gBAA5B,aAAa;gBACZ,KAAoC,aAAa,WAAlC,EAAf,UAAU,mBAAG,EAAE,KAAA,EAAE,OAAO,GAAY,aAAa,QAAzB,EAAE,KAAK,GAAK,aAAa,MAAlB,CAAmB;;;;gBAElC,qBAAM,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC,EAAA;;gBAAtD,aAAa,GAAG,SAAsC;gBAC5D,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;;;;gBAE/B,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,KAAG,CAAC,CAAC;gBACxB,UAAU,CAAC,IAAI,CAAC,UAAG,KAAK,wDAA8C,KAAK,wBAAa,OAAO,OAAG,CAAC,CAAC;;;gBAP9E,IAAW,CAAA;;;gBAUrC,IAAA,WAAG,EAAC,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;;;;KAC1C,CAAC;AA/BW,QAAA,wBAAwB,4BA+BnC"} \ No newline at end of file diff --git a/dist/cli/commands/utils.d.ts b/dist/cli/commands/utils.d.ts index 4bf71729..744ca574 100644 --- a/dist/cli/commands/utils.d.ts +++ b/dist/cli/commands/utils.d.ts @@ -1,7 +1,2 @@ +export { getTxHashSwapByHash, getTxDetailsByHash } from '../../services/txHelper'; export declare const writeDistributionLog: (sendInfo: T[], errorsInfo: E, resultFileLogName: string) => Promise; -export declare const getTxDetailsByHash: (txHash: string, blocksToWait?: number) => Promise<{ - txDetailsResponse: { - tx: string; - } | undefined; - txDetailsResponseError: import("../../api/network/types").ResultError | undefined; -}>; diff --git a/dist/cli/commands/utils.js b/dist/cli/commands/utils.js index 008759b0..9dc2bec6 100644 --- a/dist/cli/commands/utils.js +++ b/dist/cli/commands/utils.js @@ -36,10 +36,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTxDetailsByHash = exports.writeDistributionLog = void 0; +exports.writeDistributionLog = exports.getTxDetailsByHash = exports.getTxHashSwapByHash = void 0; var utils_1 = require("../../services/utils"); -var api_1 = require("../../api"); -var testHelpers_1 = require("../../evm/testHelpers"); +var txHelper_1 = require("../../services/txHelper"); +Object.defineProperty(exports, "getTxHashSwapByHash", { enumerable: true, get: function () { return txHelper_1.getTxHashSwapByHash; } }); +Object.defineProperty(exports, "getTxDetailsByHash", { enumerable: true, get: function () { return txHelper_1.getTxDetailsByHash; } }); var writeDistributionLog = function (sendInfo, errorsInfo, resultFileLogName) { return __awaiter(void 0, void 0, void 0, function () { var dateStamp, resultFilePath, error_1; return __generator(this, function (_a) { @@ -72,26 +73,4 @@ var writeDistributionLog = function (sendInfo, errorsInfo, resultFileLogName) { }); }); }; exports.writeDistributionLog = writeDistributionLog; -var getTxDetailsByHash = function (txHash, blocksToWait) { - if (blocksToWait === void 0) { blocksToWait = 1; } - return __awaiter(void 0, void 0, void 0, function () { - var txDetailsResult, txDetailsResponse; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: return [4 /*yield*/, (0, testHelpers_1.waitForBlockChange)(blocksToWait)]; - case 1: - _a.sent(); - return [4 /*yield*/, api_1.Network.getTransactionDetails(txHash)]; - case 2: - txDetailsResult = _a.sent(); - txDetailsResponse = txDetailsResult.response; - return [2 /*return*/, { - txDetailsResponse: txDetailsResponse === null || txDetailsResponse === void 0 ? void 0 : txDetailsResponse.result, - txDetailsResponseError: txDetailsResult === null || txDetailsResult === void 0 ? void 0 : txDetailsResult.error, - }]; - } - }); - }); -}; -exports.getTxDetailsByHash = getTxDetailsByHash; //# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/cli/commands/utils.js.map b/dist/cli/commands/utils.js.map index dfc23990..b05e29c4 100644 --- a/dist/cli/commands/utils.js.map +++ b/dist/cli/commands/utils.js.map @@ -1 +1 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/cli/commands/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAsD;AACtD,iCAAoC;AACpC,qDAA2D;AAEpD,IAAM,oBAAoB,GAAG,UAAa,QAAa,EAAE,UAAa,EAAE,iBAAyB;;;;;gBAChG,SAAS,GAAG,IAAA,WAAG,GAAE,CAAC;gBAElB,cAAc,GAAG,UAAG,iBAAiB,cAAI,SAAS;qBACrD,IAAI,EAAE;qBACN,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;qBAClB,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;qBAClB,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;qBAClB,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;qBAClB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,SAAM,CAAC;;;;gBAG3B,qBAAM,IAAA,iBAAS,EACb,cAAc,EACd,IAAI,CAAC,SAAS,CACZ;wBACE,IAAI,EAAE,SAAS;wBACf,QAAQ,UAAA;wBACR,UAAU,YAAA;qBACX,EACD,IAAI,EACJ,CAAC,CACF,CACF,EAAA;;gBAXD,SAWC,CAAC;;;;gBAEF,MAAM,IAAI,KAAK,CAAC,yCAAiC,cAAc,mBAAQ,OAAe,CAAC,OAAO,OAAG,CAAC,CAAC;;;;KAEtG,CAAC;AA3BW,QAAA,oBAAoB,wBA2B/B;AAEK,IAAM,kBAAkB,GAAG,UAAO,MAAc,EAAE,YAAgB;IAAhB,6BAAA,EAAA,gBAAgB;;;;;wBACvE,qBAAM,IAAA,gCAAkB,EAAC,YAAY,CAAC,EAAA;;oBAAtC,SAAsC,CAAC;oBACf,qBAAM,aAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAA;;oBAA7D,eAAe,GAAG,SAA2C;oBACjD,iBAAiB,GAAK,eAAe,SAApB,CAAqB;oBACxD,sBAAO;4BACL,iBAAiB,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,MAAM;4BAC5C,sBAAsB,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,KAAK;yBAC/C,EAAC;;;;CACH,CAAC;AARW,QAAA,kBAAkB,sBAQ7B"} \ No newline at end of file +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/cli/commands/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAsD;AACtD,oDAAkF;AAAzE,+GAAA,mBAAmB,OAAA;AAAE,8GAAA,kBAAkB,OAAA;AAEzC,IAAM,oBAAoB,GAAG,UAAa,QAAa,EAAE,UAAa,EAAE,iBAAyB;;;;;gBAChG,SAAS,GAAG,IAAA,WAAG,GAAE,CAAC;gBAElB,cAAc,GAAG,UAAG,iBAAiB,cAAI,SAAS;qBACrD,IAAI,EAAE;qBACN,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;qBAClB,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;qBAClB,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;qBAClB,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;qBAClB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,SAAM,CAAC;;;;gBAG3B,qBAAM,IAAA,iBAAS,EACb,cAAc,EACd,IAAI,CAAC,SAAS,CACZ;wBACE,IAAI,EAAE,SAAS;wBACf,QAAQ,UAAA;wBACR,UAAU,YAAA;qBACX,EACD,IAAI,EACJ,CAAC,CACF,CACF,EAAA;;gBAXD,SAWC,CAAC;;;;gBAEF,MAAM,IAAI,KAAK,CAAC,yCAAiC,cAAc,mBAAQ,OAAe,CAAC,OAAO,OAAG,CAAC,CAAC;;;;KAEtG,CAAC;AA3BW,QAAA,oBAAoB,wBA2B/B"} \ No newline at end of file diff --git a/dist/run.js b/dist/run.js index a4f28bdc..960ea738 100644 --- a/dist/run.js +++ b/dist/run.js @@ -77,8 +77,8 @@ var api_1 = require("./api"); var testHelpers_1 = require("./evm/testHelpers"); var providers_1 = require("./services/cacheStore/providers"); var Fee = __importStar(require("./services/fee")); -var FeeUtils = __importStar(require("./services/feeUtils")); -var fee_1 = require("./services/fee"); +var TxHelper = __importStar(require("./services/txHelper")); +// import { getFeeInputs } from './services/fee'; var ledgerWrapper_1 = require("./services/ledger/ledgerWrapper"); var utils_1 = require("./services/utils"); var UtxoHelper = __importStar(require("./services/utxoHelper")); @@ -310,7 +310,7 @@ var getDelegateInfo = function () { return __awaiter(void 0, void 0, void 0, fun * Get transfer operation builder (before sending a tx) */ var getTransferBuilderOperation = function () { return __awaiter(void 0, void 0, void 0, function () { - var ledger, password, pkey, walletInfo, sidsResult, sids, utxoDataList, fraCode, amount, sendUtxoList, utxoInputsInfo, minimalFee, toPublickey, transferOperationBuilder, recieversInfo, trasferOperation; + var ledger, password, pkey, walletInfo, sidsResult, sids, fraCode, utxoDataList, amount, sendUtxoList, utxoInputsInfo, minimalFee, toPublickey, transferOperationBuilder, recieversInfo, trasferOperation; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, (0, ledgerWrapper_1.getLedger)()]; @@ -328,12 +328,12 @@ var getTransferBuilderOperation = function () { return __awaiter(void 0, void 0, if (!sids) { return [2 /*return*/]; } - return [4 /*yield*/, UtxoHelper.addUtxo(walletInfo, sids)]; - case 4: - utxoDataList = _a.sent(); return [4 /*yield*/, api_1.Asset.getFraAssetCode()]; - case 5: + case 4: fraCode = _a.sent(); + return [4 /*yield*/, UtxoHelper.addUtxo(walletInfo, sids, fraCode)]; + case 5: + utxoDataList = _a.sent(); amount = BigInt(3); sendUtxoList = UtxoHelper.getSendUtxo(fraCode, amount, utxoDataList); return [4 /*yield*/, UtxoHelper.addUtxoInputs(sendUtxoList)]; @@ -1364,7 +1364,7 @@ var createTestBars = function (senderOne) { }); }; var getFee = function () { return __awaiter(void 0, void 0, void 0, function () { - var password, pkey, walletInfo, feeInputsPayload; + var password, pkey, walletInfo; return __generator(this, function (_a) { switch (_a.label) { case 0: @@ -1374,10 +1374,6 @@ var getFee = function () { return __awaiter(void 0, void 0, void 0, function () case 1: walletInfo = _a.sent(); console.log('🚀 ~ file: run.ts ~ line 1299 ~ getFee ~ walletInfo', walletInfo); - return [4 /*yield*/, (0, fee_1.getFeeInputs)(walletInfo, [11], true)]; - case 2: - feeInputsPayload = _a.sent(); - console.log('🚀 ~ file: run.ts ~ line 1301 ~ getFee ~ feeInputsPayload', feeInputsPayload); return [2 /*return*/]; } }); @@ -1887,18 +1883,20 @@ var brc20ApiTest = function () { return __awaiter(void 0, void 0, void 0, functi }); }); }; var dateTest = function () { return __awaiter(void 0, void 0, void 0, function () { - var minimalFee, minimalFeeV2, minimalFeeV2Human; + var submittedTxHash, swappedTxHash, detailsSendSubmitted, detailsSendSwapped; return __generator(this, function (_a) { switch (_a.label) { - case 0: return [4 /*yield*/, api_1.Asset.getMinimalFee()]; + case 0: + submittedTxHash = '602c3aba20f2f9457e6576b28e88a3fa2dc20e908d6b595e573149c8f5c0c6e9'; + swappedTxHash = 'CD2DB9E546406E013054F514AE8A5C2041439706504C3C6977EC139D85EFF195'; + return [4 /*yield*/, TxHelper.getTxDetailsByHash(submittedTxHash)]; case 1: - minimalFee = _a.sent(); - console.log('ledger minimalFee', minimalFee); - minimalFeeV2 = FeeUtils.getFeeByMemoAndOutput(); - console.log('minimalFeeV2', minimalFeeV2); - console.log(minimalFee === BigInt(minimalFeeV2)); - minimalFeeV2Human = FeeUtils.getFeeByMemoAndOutputInString(1, 2); - console.log('minimalFeeV2Human', minimalFeeV2Human); + detailsSendSubmitted = _a.sent(); + return [4 /*yield*/, TxHelper.getTxDetailsByHash(swappedTxHash)]; + case 2: + detailsSendSwapped = _a.sent(); + console.log('detailsSendSubmitted', detailsSendSubmitted); + console.log('detailsSendSwapped', detailsSendSwapped); return [2 /*return*/]; } }); diff --git a/dist/run.js.map b/dist/run.js.map index f984a653..5ffd0629 100644 --- a/dist/run.js.map +++ b/dist/run.js.map @@ -1 +1 @@ -{"version":3,"file":"run.js","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,kDAA4B;AAC5B,8CAAwB;AACxB,gEAAkC;AAElC,gDAA0B;AAE1B,2EAAqD;AACrD,mEAA6C;AAE7C,eAAK,CAAC,MAAM,CAAC,sBAAY,CAAC,CAAC;AAC3B,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;AAEvB,8CAAwB;AACxB,6BAAoF;AAEpF,iDAAuD;AACvD,6DAAyF;AACzF,kDAAsC;AACtC,4DAAgD;AAChD,sCAA8C;AAC9C,iEAA4D;AAC5D,0CAK0B;AAC1B,gEAAoD;AACpD,oEAAoE;AAEpE,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,IAAM,8BAA8B,GAAG,KAAK,CAAC;AAE7C,IAAM,aAAa,GAAG,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACvD,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;AAC5C;;GAEG;AACH,IAAM,MAAM,GAAG;IACb,oDAAoD;IACpD,OAAO,EAAE,uCAAuC;IAChD,iEAAiE;IACjE,kDAAkD;IAClD,8CAA8C;IAC9C,+BAA+B;IAC/B,+CAA+C;IAC/C,+CAA+C;IAC/C,oEAAoE;IACpE,oCAAoC;IACpC,iFAAiF;IACjF,+CAA+C;IAC/C,cAAc,EAAE,wCAAwC;IACxD,aAAa,EAAE,6BAAiB;IAChC,SAAS,EAAE,UAAG,aAAa,WAAQ;IACnC,QAAQ,EAAE,uCAAuC;IAC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B,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAI7C,qBAAM,aAAO,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,EAAA;;gBAAvD,OAAO,GAAG,SAA6C;gBAC7D,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;;;;KAO1D,CAAC;AAEF,IAAM,QAAQ,GAAG;;;;;gBACT,eAAe,GAAG,kEAAkE,CAAC;gBACrF,aAAa,GAAG,kEAAkE,CAAC;gBAE5D,qBAAM,QAAQ,CAAC,kBAAkB,CAAC,eAAe,CAAC,EAAA;;gBAAzE,oBAAoB,GAAG,SAAkD;gBACpD,qBAAM,QAAQ,CAAC,kBAAkB,CAAC,aAAa,CAAC,EAAA;;gBAArE,kBAAkB,GAAG,SAAgD;gBAC3E,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAAC;gBAC1D,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAAC;;;;KACvD,CAAC;AAEF,QAAQ,EAAE,CAAC;AACX,WAAW;AAEX,kBAAkB;AAClB,gBAAgB;AAChB,mBAAmB;AAEnB,uBAAuB;AACvB,iBAAiB;AACjB,sBAAsB;AACtB,YAAY;AACZ,oBAAoB;AAEpB,mBAAmB;AACnB,eAAe;AACf,mBAAmB;AACnB,kBAAkB"} \ No newline at end of file diff --git a/dist/services/brc20.js b/dist/services/brc20.js index 98744eb8..cf878729 100644 --- a/dist/services/brc20.js +++ b/dist/services/brc20.js @@ -61,8 +61,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { Object.defineProperty(exports, "__esModule", { value: true }); exports.getTradingListingList = exports.buy = exports.sendBRC20TransferTx = exports.addList = exports.getMiddleman = exports.sendBRC20MintTx = exports.sendBRC20DeployTx = void 0; var api_1 = require("../api"); -var utils_1 = require("../services/utils"); var feeUtils_1 = require("../services/feeUtils"); +var txHelper_1 = require("../services/txHelper"); var axios_1 = __importStar(require("axios")); var brcEnpoints = { balance: '/balance', @@ -202,7 +202,7 @@ var confirmList = function (listId, user, baseUrl) { return __awaiter(void 0, vo }); }); }; var addList = function (ticker, totalPrice, amount, baseUrl, walletInfoFrom) { return __awaiter(void 0, void 0, void 0, function () { - var _axios, user, formData, headers, data, listId, receiver, fraTx, brc20Tx, confirmResult, error_3; + var _axios, user, formData, headers, data, listId, receiver, amt, fraTx, brc20Tx, confirmResult, error_3; return __generator(this, function (_a) { switch (_a.label) { case 0: @@ -227,8 +227,9 @@ var addList = function (ticker, totalPrice, amount, baseUrl, walletInfoFrom) { r return [4 /*yield*/, (0, exports.getMiddleman)(listId, baseUrl)]; case 3: receiver = _a.sent(); + amt = (0, feeUtils_1.getFeeByMemoAndOutputInString)(2, 10); return [4 /*yield*/, fraTransfer({ - amt: (0, feeUtils_1.getFeeByMemoAndOutputInString)(1, 2), + amt: amt, receiver: receiver, }, walletInfoFrom)]; case 4: @@ -291,51 +292,38 @@ var sendBRC20TransferTx = function (tick, amt, receiver, walletInfoFrom) { retur }); }; exports.sendBRC20TransferTx = sendBRC20TransferTx; var sendFRATransferTx = function (data, walletInfoFrom) { return __awaiter(void 0, void 0, void 0, function () { - var amt, receiver, assetCode, assetBlindRules, transactionBuilder, result, txHash, response, tx, hash, er_4; - var _a, _b, _c; - return __generator(this, function (_d) { - switch (_d.label) { + var amt, receiver, assetCode, assetBlindRules, transactionBuilder, submittedTxHash, txHash, er_4; + return __generator(this, function (_a) { + switch (_a.label) { case 0: amt = data.amt, receiver = data.receiver; - _d.label = 1; + _a.label = 1; case 1: - _d.trys.push([1, 9, , 10]); + _a.trys.push([1, 6, , 7]); return [4 /*yield*/, api_1.Asset.getFraAssetCode()]; case 2: - assetCode = _d.sent(); + assetCode = _a.sent(); assetBlindRules = { isTypeBlind: false, isAmountBlind: false, }; - return [4 /*yield*/, api_1.Transaction.sendToAddressV2(walletInfoFrom, receiver, "".concat(amt), assetCode, assetBlindRules)]; + return [4 /*yield*/, api_1.Transaction.sendToAddress(walletInfoFrom, receiver, "".concat(amt), assetCode, assetBlindRules)]; case 3: - transactionBuilder = _d.sent(); - console.log('will send a sendFRATransferTx transactionBuilder (this will fail now)', transactionBuilder); + transactionBuilder = _a.sent(); return [4 /*yield*/, api_1.Transaction.submitTransaction(transactionBuilder)]; case 4: - result = _d.sent(); - console.log('submit tx result (for sending fra), ', result); - txHash = ''; - _d.label = 5; + submittedTxHash = _a.sent(); + return [4 /*yield*/, (0, txHelper_1.getTxHashSwapByHash)(submittedTxHash)]; case 5: - if (!(txHash === '')) return [3 /*break*/, 8]; - return [4 /*yield*/, (0, utils_1.delay)(5000)]; + txHash = (_a.sent()).txHash; + console.log('submit tx hash (for sending fra), ', submittedTxHash); + console.log('swapped tx hash (for sending fra), ', txHash); + return [2 /*return*/, txHash]; case 6: - _d.sent(); - return [4 /*yield*/, api_1.Network.getHashSwap(result)]; - case 7: - response = _d.sent(); - tx = ((_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.response) === null || _a === void 0 ? void 0 : _a.result) === null || _b === void 0 ? void 0 : _b.txs) !== null && _c !== void 0 ? _c : [])[0]; - console.log('tx hash swap result after waiting 5sec', tx); - hash = (tx || {}).hash; - txHash = tx ? hash : ''; - return [3 /*break*/, 5]; - case 8: return [2 /*return*/, txHash]; - case 9: - er_4 = _d.sent(); + er_4 = _a.sent(); console.log('sendFRATransferTx err', er_4); - return [3 /*break*/, 10]; - case 10: return [2 /*return*/, '']; + return [3 /*break*/, 7]; + case 7: return [2 /*return*/, '']; } }); }); }; diff --git a/dist/services/brc20.js.map b/dist/services/brc20.js.map index cc76a8ee..ed1603b0 100644 --- a/dist/services/brc20.js.map +++ b/dist/services/brc20.js.map @@ -1 +1 @@ -{"version":3,"file":"brc20.js","sourceRoot":"","sources":["../../src/services/brc20.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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Q,EAAE,SAAS;wBACnB,UAAU,EAAE,CAAC;qBACd,CAAC;oBAEF,sBAAO,IAAI,EAAC;;;;;CAEf,CAAC;AAzEW,QAAA,qBAAqB,yBAyEhC"} \ No newline at end of file diff --git a/dist/services/fee.d.ts b/dist/services/fee.d.ts index 6f69310e..d8e993b8 100644 --- a/dist/services/fee.d.ts +++ b/dist/services/fee.d.ts @@ -1,7 +1,7 @@ import { WalletKeypar } from '../api/keypair'; import * as AssetApi from '../api/sdkAsset'; import * as FindoraWallet from '../types/findoraWallet'; -import { ClientAssetRecord, FeeInputs, OwnerMemo, TransferOperationBuilder, TxoRef, XfrKeyPair, XfrPublicKey } from './ledger/types'; +import { ClientAssetRecord, OwnerMemo, TransferOperationBuilder, TxoRef, XfrKeyPair, XfrPublicKey } from './ledger/types'; import { UtxoInputsInfo } from './utxoHelper'; interface FeeInputPayloadType { txoRef: TxoRef; @@ -15,6 +15,9 @@ export interface ReciverInfo { toPublickey: XfrPublicKey; assetBlindRules?: AssetApi.AssetBlindRules; } +export interface ReciverInfoEvm { + [key: string]: ReciverInfo[]; +} export declare const getEmptyTransferBuilder: () => Promise; export declare const getAssetTracingPolicies: (asset: FindoraWallet.IAsset) => Promise; export declare const getTransferOperation: (walletInfo: WalletKeypar, utxoInputs: UtxoInputsInfo, recieversInfo: ReciverInfo[], assetCode: string, transferOp: TransferOperationBuilder) => Promise; @@ -23,11 +26,7 @@ export declare const buildTransferOperationWithFee: (walletInfo: WalletKeypar, a isAmountBlind?: boolean; isTypeBlind?: boolean; }) => Promise; -export declare const getFeeInputs: (walletInfo: WalletKeypar, excludeSids: number[], _isBarToAbar: boolean) => Promise; export declare const buildTransferOperation: (walletInfo: WalletKeypar, recieversInfo: ReciverInfo[], assetCode: string) => Promise; -export interface ReciverInfoV2 { - [key: string]: ReciverInfo[]; -} -export declare const buildTransferOperationV2: (walletInfo: WalletKeypar, recieversInfo: ReciverInfoV2) => Promise; export declare const buildTransferOperationV3: (walletInfo: WalletKeypar, recieversInfo: ReciverInfo[], assetCode: string) => Promise; +export declare const buildTransferOperationMultiAsset: (walletInfo: WalletKeypar, recieversInfo: ReciverInfoEvm) => Promise; export {}; diff --git a/dist/services/fee.js b/dist/services/fee.js index 7e32602d..a31f32d3 100644 --- a/dist/services/fee.js +++ b/dist/services/fee.js @@ -70,7 +70,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { } }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.buildTransferOperationV3 = exports.buildTransferOperationV2 = exports.buildTransferOperation = exports.getFeeInputs = exports.buildTransferOperationWithFee = exports.getPayloadForFeeInputs = exports.getTransferOperation = exports.getAssetTracingPolicies = exports.getEmptyTransferBuilder = void 0; +exports.buildTransferOperationMultiAsset = exports.buildTransferOperationV3 = exports.buildTransferOperation = exports.buildTransferOperationWithFee = exports.getPayloadForFeeInputs = exports.getTransferOperation = exports.getAssetTracingPolicies = exports.getEmptyTransferBuilder = void 0; var Network = __importStar(require("../api/network")); var AssetApi = __importStar(require("../api/sdkAsset")); var ledgerWrapper_1 = require("./ledger/ledgerWrapper"); @@ -257,51 +257,48 @@ var buildTransferOperationWithFee = function (walletInfo, assetBlindRules) { ret }); }; exports.buildTransferOperationWithFee = buildTransferOperationWithFee; // used in triple masking -var getFeeInputs = function (walletInfo, excludeSids, _isBarToAbar) { return __awaiter(void 0, void 0, void 0, function () { - var ledger, sidsResult, sids, filteredSids, minimalFee, fraAssetCode, utxoDataList, sendUtxoList, utxoInputsInfo, feeInputsPayload, feeInputs; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: return [4 /*yield*/, (0, ledgerWrapper_1.getLedger)()]; - case 1: - ledger = _a.sent(); - return [4 /*yield*/, Network.getOwnedSids(walletInfo.publickey)]; - case 2: - sidsResult = _a.sent(); - sids = sidsResult.response; - if (!sids) { - throw new Error('No sids were fetched'); - } - filteredSids = sids.filter(function (sid) { return !excludeSids.includes(sid); }); - return [4 /*yield*/, AssetApi.getMinimalFee()]; - case 3: - minimalFee = _a.sent(); - console.log('🚀 ~ file: fee.ts ~ line 263 ~ abar minimalFee', minimalFee); - return [4 /*yield*/, AssetApi.getFraAssetCode()]; - case 4: - fraAssetCode = _a.sent(); - return [4 /*yield*/, (0, utxoHelper_1.addUtxo)(walletInfo, filteredSids)]; - case 5: - utxoDataList = _a.sent(); - sendUtxoList = (0, utxoHelper_1.getSendUtxo)(fraAssetCode, minimalFee, utxoDataList); - return [4 /*yield*/, (0, utxoHelper_1.addUtxoInputs)(sendUtxoList)]; - case 6: - utxoInputsInfo = _a.sent(); - return [4 /*yield*/, (0, exports.getPayloadForFeeInputs)(walletInfo, utxoInputsInfo)]; - case 7: - feeInputsPayload = _a.sent(); - feeInputs = ledger.FeeInputs.new(); - feeInputsPayload.forEach(function (payloadItem) { - var amount = payloadItem.amount, txoRef = payloadItem.txoRef, assetRecord = payloadItem.assetRecord, ownerMemo = payloadItem.ownerMemo, keypair = payloadItem.keypair; - feeInputs = feeInputs.append2(BigInt(amount.toString()), txoRef, assetRecord, ownerMemo, keypair); - }); - return [2 /*return*/, feeInputs]; - } - }); -}); }; -exports.getFeeInputs = getFeeInputs; +// export const getFeeInputs = async ( +// walletInfo: WalletKeypar, +// excludeSids: number[], +// _isBarToAbar: boolean, +// ): Promise => { +// const ledger = await getLedger(); +// +// const sidsResult = await Network.getOwnedSids(walletInfo.publickey); +// +// const { response: sids } = sidsResult; +// +// if (!sids) { +// throw new Error('No sids were fetched'); +// } +// +// const filteredSids = sids.filter(sid => !excludeSids.includes(sid)); +// //const filteredSids = sids.filter(sid => sid !== excludeSid); +// +// const minimalFee = await AssetApi.getMinimalFee(); +// +// console.log('🚀 ~ file: fee.ts ~ line 263 ~ abar minimalFee', minimalFee); +// +// const fraAssetCode = await AssetApi.getFraAssetCode(); +// +// const utxoDataList = await addUtxo(walletInfo, filteredSids); +// const sendUtxoList = getSendUtxo(fraAssetCode, minimalFee, utxoDataList); +// const utxoInputsInfo = await addUtxoInputs(sendUtxoList); +// +// const feeInputsPayload = await getPayloadForFeeInputs(walletInfo, utxoInputsInfo); +// +// let feeInputs = ledger.FeeInputs.new(); +// +// feeInputsPayload.forEach(payloadItem => { +// const { amount, txoRef, assetRecord, ownerMemo, keypair } = payloadItem; +// feeInputs = feeInputs.append2(BigInt(amount.toString()), txoRef, assetRecord, ownerMemo, keypair); +// }); +// +// return feeInputs; +// }; // creates an istance of a TransferOperationBuilder to transfer tokens based on recieversInfo var buildTransferOperation = function (walletInfo, recieversInfo, assetCode) { return __awaiter(void 0, void 0, void 0, function () { - var sidsResult, sids, totalUtxoNumbers, utxoDataList, sendUtxoList, utxoInputsInfo, transferOperationBuilder; + var sidsResult, sids, transferOperationBuilder, totalUtxoNumbers, utxoDataList, sendUtxoList, utxoInputsInfo; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, Network.getOwnedSids(walletInfo.publickey)]; @@ -311,19 +308,19 @@ var buildTransferOperation = function (walletInfo, recieversInfo, assetCode) { r if (!sids) { throw new Error('No sids were fetched'); } + return [4 /*yield*/, (0, exports.getEmptyTransferBuilder)()]; + case 2: + transferOperationBuilder = _a.sent(); totalUtxoNumbers = recieversInfo.reduce(function (acc, receiver) { return BigInt(Number(receiver.utxoNumbers) + Number(acc)); }, BigInt(0)); - return [4 /*yield*/, (0, utxoHelper_1.addUtxo)(walletInfo, sids)]; - case 2: + return [4 /*yield*/, (0, utxoHelper_1.addUtxo)(walletInfo, sids, assetCode)]; + case 3: utxoDataList = _a.sent(); sendUtxoList = (0, utxoHelper_1.getSendUtxo)(assetCode, totalUtxoNumbers, utxoDataList); return [4 /*yield*/, (0, utxoHelper_1.addUtxoInputs)(sendUtxoList)]; - case 3: - utxoInputsInfo = _a.sent(); - return [4 /*yield*/, (0, exports.getEmptyTransferBuilder)()]; case 4: - transferOperationBuilder = _a.sent(); + utxoInputsInfo = _a.sent(); return [4 /*yield*/, (0, exports.getTransferOperation)(walletInfo, utxoInputsInfo, recieversInfo, assetCode, transferOperationBuilder)]; case 5: transferOperationBuilder = _a.sent(); @@ -333,61 +330,18 @@ var buildTransferOperation = function (walletInfo, recieversInfo, assetCode) { r }); }; exports.buildTransferOperation = buildTransferOperation; // creates an istance of a TransferOperationBuilder to transfer tokens based on recieversInfo -var buildTransferOperationV2 = function (walletInfo, recieversInfo) { return __awaiter(void 0, void 0, void 0, function () { - var sidsResult, sids, transferOperationBuilder, _i, _a, assetCodeType, assetCodeItem, totalUtxoNumbers, utxoDataList, sendUtxoList, utxoInputsInfo; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: return [4 /*yield*/, Network.getOwnedSids(walletInfo.publickey)]; - case 1: - sidsResult = _b.sent(); - sids = sidsResult.response; - if (!sids) { - throw new Error('No sids were fetched'); - } - return [4 /*yield*/, (0, exports.getEmptyTransferBuilder)()]; - case 2: - transferOperationBuilder = _b.sent(); - _i = 0, _a = Object.keys(recieversInfo); - _b.label = 3; - case 3: - if (!(_i < _a.length)) return [3 /*break*/, 8]; - assetCodeType = _a[_i]; - assetCodeItem = recieversInfo[assetCodeType]; - totalUtxoNumbers = assetCodeItem.reduce(function (acc, receiver) { - return BigInt(Number(receiver.utxoNumbers) + Number(acc)); - }, BigInt(0)); - return [4 /*yield*/, (0, utxoHelper_1.addUtxo)(walletInfo, sids)]; - case 4: - utxoDataList = _b.sent(); - sendUtxoList = (0, utxoHelper_1.getSendUtxo)(assetCodeType, totalUtxoNumbers, utxoDataList); - return [4 /*yield*/, (0, utxoHelper_1.addUtxoInputs)(sendUtxoList)]; - case 5: - utxoInputsInfo = _b.sent(); - return [4 /*yield*/, (0, exports.getTransferOperation)(walletInfo, utxoInputsInfo, assetCodeItem, assetCodeType, transferOperationBuilder)]; - case 6: - transferOperationBuilder = _b.sent(); - _b.label = 7; - case 7: - _i++; - return [3 /*break*/, 3]; - case 8: return [2 /*return*/, transferOperationBuilder]; - } - }); -}); }; -exports.buildTransferOperationV2 = buildTransferOperationV2; -// creates an istance of a TransferOperationBuilder to transfer tokens based on recieversInfo var buildTransferOperationV3 = function (walletInfo, recieversInfo, assetCode) { return __awaiter(void 0, void 0, void 0, function () { - var sidsResult, ledger, sids, totalUtxoNumbers, total, utxoDataList, _i, sids_1, sid, _a, utxoData, memoData, assetRecord, ownerMemo, decryptAssetData, decryptedAsetType, sendUtxoList, utxoInputsInfo, transferOperationBuilder; - return __generator(this, function (_b) { - switch (_b.label) { + var sidsResult, ledger, sids, totalUtxoNumbers, total, cacheDataToSave, utxoDataCache, nonCachedSids, utxoDataList, _i, sids_1, sid, cachedItem, _a, nonCachedSids_1, sid, _b, utxoData, memoData, assetRecord, ownerMemo, decryptAssetData, decryptedAsetType, utxoItem, sendUtxoList, utxoInputsInfo, transferOperationBuilder; + return __generator(this, function (_c) { + switch (_c.label) { case 0: console.log(assetCode); return [4 /*yield*/, Network.getOwnedSids(walletInfo.publickey)]; case 1: - sidsResult = _b.sent(); + sidsResult = _c.sent(); return [4 /*yield*/, (0, ledgerWrapper_1.getLedger)()]; case 2: - ledger = _b.sent(); + ledger = _c.sent(); sids = sidsResult.response; if (!sids) { throw new Error('No sids were fetched'); @@ -396,59 +350,139 @@ var buildTransferOperationV3 = function (walletInfo, recieversInfo, assetCode) { return BigInt(Number(receiver.utxoNumbers) + Number(acc)); }, BigInt(0)); total = Number(totalUtxoNumbers); - utxoDataList = []; - _i = 0, sids_1 = sids; - _b.label = 3; + cacheDataToSave = {}; + return [4 /*yield*/, (0, utxoHelper_1.getCachedItemsForAddress)(walletInfo.address)]; case 3: - if (!(_i < sids_1.length)) return [3 /*break*/, 7]; - sid = sids_1[_i]; + utxoDataCache = _c.sent(); + nonCachedSids = []; + utxoDataList = []; + for (_i = 0, sids_1 = sids; _i < sids_1.length; _i++) { + sid = sids_1[_i]; + cachedItem = utxoDataCache === null || utxoDataCache === void 0 ? void 0 : utxoDataCache["sid_".concat(sid)]; + // we would need to fetch it + if (!cachedItem) { + nonCachedSids.push(sid); + } + if (cachedItem) { + // if we have cache but it is not spent, we need fetch to check + if (cachedItem.body.amount !== 0) { + nonCachedSids.push(sid); + } + cacheDataToSave["sid_".concat(sid)] = cachedItem; + } + } + _a = 0, nonCachedSids_1 = nonCachedSids; + _c.label = 4; + case 4: + if (!(_a < nonCachedSids_1.length)) return [3 /*break*/, 8]; + sid = nonCachedSids_1[_a]; return [4 /*yield*/, Promise.all([ Network.getUtxo(sid), Network.getOwnerMemo(sid), ])]; - case 4: - _a = _b.sent(), utxoData = _a[0].response, memoData = _a[1].response; - if (!utxoData || utxoData.utxo.record.amount.NonConfidential === '0') - return [3 /*break*/, 6]; + case 5: + _b = _c.sent(), utxoData = _b[0].response, memoData = _b[1].response; + // we only continue here in case of error. if amount is 0 we still need to process it + // to be able to save to cache and avoid fetching it from the network next time. + // we only save it to cache, we dont add it to the utxoDataList + if (!utxoData) { + return [3 /*break*/, 7]; + } assetRecord = ledger.ClientAssetRecord.from_json(utxoData.utxo); ownerMemo = memoData ? ledger.OwnerMemo.from_json(memoData) : undefined; return [4 /*yield*/, ledger.open_client_asset_record(assetRecord, ownerMemo === null || ownerMemo === void 0 ? void 0 : ownerMemo.clone(), walletInfo.keypair)]; - case 5: - decryptAssetData = _b.sent(); + case 6: + decryptAssetData = _c.sent(); decryptedAsetType = ledger.asset_type_from_jsvalue(decryptAssetData.asset_type); if (decryptedAsetType === assetCode) { total -= Number(decryptAssetData.amount); decryptAssetData.asset_type = decryptedAsetType; decryptAssetData.amount = BigInt(decryptAssetData.amount); - utxoDataList.push({ + utxoItem = { address: walletInfo.address, sid: sid, body: decryptAssetData || {}, utxo: __assign({}, utxoData.utxo), ownerMemo: ownerMemo === null || ownerMemo === void 0 ? void 0 : ownerMemo.clone(), memoData: memoData, - }); + }; + // we have to save decrypted utxo item with proper asset code to cache. + // even if amount is 0. because this way , this spent utxo wont be fetched from the + // network and will be read from cache + cacheDataToSave["sid_".concat(sid)] = utxoItem; + // this is the same as comparing non NonConfidential amount but it is covering encrypted utxo + // it it is 0 we dont add it to the list + if (decryptAssetData.amount === BigInt(0)) { + return [3 /*break*/, 7]; + } + // we only add it to the list if amount > 0, as per previous if statement + utxoDataList.push(utxoItem); } if (total <= 0) - return [3 /*break*/, 7]; - _b.label = 6; - case 6: - _i++; - return [3 /*break*/, 3]; + return [3 /*break*/, 8]; + _c.label = 7; case 7: + _a++; + return [3 /*break*/, 4]; + case 8: return [4 /*yield*/, (0, utxoHelper_1.updateUtxoCacheForWalletAddress)(cacheDataToSave, walletInfo.address)]; + case 9: + _c.sent(); sendUtxoList = (0, utxoHelper_1.getSendUtxo)(assetCode, totalUtxoNumbers, utxoDataList); return [4 /*yield*/, (0, utxoHelper_1.addUtxoInputs)(sendUtxoList)]; - case 8: - utxoInputsInfo = _b.sent(); + case 10: + utxoInputsInfo = _c.sent(); return [4 /*yield*/, (0, exports.getEmptyTransferBuilder)()]; - case 9: - transferOperationBuilder = _b.sent(); + case 11: + transferOperationBuilder = _c.sent(); return [4 /*yield*/, (0, exports.getTransferOperation)(walletInfo, utxoInputsInfo, recieversInfo, assetCode, transferOperationBuilder)]; - case 10: - transferOperationBuilder = _b.sent(); + case 12: + transferOperationBuilder = _c.sent(); return [2 /*return*/, transferOperationBuilder]; } }); }); }; exports.buildTransferOperationV3 = buildTransferOperationV3; +// diffence with buildTransferOperation is that recieversInfo here has an assect code in it +var buildTransferOperationMultiAsset = function (walletInfo, recieversInfo) { return __awaiter(void 0, void 0, void 0, function () { + var sidsResult, sids, transferOperationBuilder, _i, _a, assetCodeType, assetCodeItem, totalUtxoNumbers, utxoDataList, sendUtxoList, utxoInputsInfo; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: return [4 /*yield*/, Network.getOwnedSids(walletInfo.publickey)]; + case 1: + sidsResult = _b.sent(); + sids = sidsResult.response; + if (!sids) { + throw new Error('No sids were fetched'); + } + return [4 /*yield*/, (0, exports.getEmptyTransferBuilder)()]; + case 2: + transferOperationBuilder = _b.sent(); + _i = 0, _a = Object.keys(recieversInfo); + _b.label = 3; + case 3: + if (!(_i < _a.length)) return [3 /*break*/, 8]; + assetCodeType = _a[_i]; + assetCodeItem = recieversInfo[assetCodeType]; + totalUtxoNumbers = assetCodeItem.reduce(function (acc, receiver) { + return BigInt(Number(receiver.utxoNumbers) + Number(acc)); + }, BigInt(0)); + return [4 /*yield*/, (0, utxoHelper_1.addUtxo)(walletInfo, sids, assetCodeType)]; + case 4: + utxoDataList = _b.sent(); + sendUtxoList = (0, utxoHelper_1.getSendUtxo)(assetCodeType, totalUtxoNumbers, utxoDataList); + return [4 /*yield*/, (0, utxoHelper_1.addUtxoInputs)(sendUtxoList)]; + case 5: + utxoInputsInfo = _b.sent(); + return [4 /*yield*/, (0, exports.getTransferOperation)(walletInfo, utxoInputsInfo, assetCodeItem, assetCodeType, transferOperationBuilder)]; + case 6: + transferOperationBuilder = _b.sent(); + _b.label = 7; + case 7: + _i++; + return [3 /*break*/, 3]; + case 8: return [2 /*return*/, transferOperationBuilder]; + } + }); +}); }; +exports.buildTransferOperationMultiAsset = buildTransferOperationMultiAsset; //# sourceMappingURL=fee.js.map \ No newline at end of file diff --git a/dist/services/fee.js.map b/dist/services/fee.js.map index 9042ed9e..fa3b455d 100644 --- a/dist/services/fee.js.map +++ b/dist/services/fee.js.map @@ -1 +1 @@ -{"version":3,"file":"fee.js","sourceRoot":"","sources":["../../src/services/fee.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAA0C;AAC1C,wDAA4C;AAE5C,wDAAmD;AAYnD,2CAAuG;AAgBhG,IAAM,uBAAuB,GAAG;;;;oBACtB,qBAAM,IAAA,yBAAS,GAAE,EAAA;;gBAA1B,MAAM,GAAG,SAAiB;gBAEhC,sBAAO,MAAM,CAAC,wBAAwB,CAAC,GAAG,EAAE,EAAC;;;KAC9C,CAAC;AAJW,QAAA,uBAAuB,2BAIlC;AAEK,IAAM,uBAAuB,GAAG,UAAO,KAA2B;;;;oBACxD,qBAAM,IAAA,yBAAS,G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YAAY,GAAG,IAAA,wBAAW,EAAC,aAAa,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC;gBACzD,qBAAM,IAAA,0BAAa,EAAC,YAAY,CAAC,EAAA;;gBAAlD,cAAc,GAAG,SAAiC;gBAE7B,qBAAM,IAAA,4BAAoB,EACnD,UAAU,EACV,cAAc,EACd,aAAa,EACb,aAAa,EACb,wBAAwB,CACzB,EAAA;;gBAND,wBAAwB,GAAG,SAM1B,CAAC;;;gBAjBwB,IAA0B,CAAA;;oBAoBtD,sBAAO,wBAAwB,EAAC;;;KACjC,CAAC;AAnCW,QAAA,gCAAgC,oCAmC3C"} \ No newline at end of file diff --git a/dist/services/feeUtils.d.ts b/dist/services/feeUtils.d.ts index 1249f85a..d3965aad 100644 --- a/dist/services/feeUtils.d.ts +++ b/dist/services/feeUtils.d.ts @@ -1,2 +1,3 @@ -export declare const getFeeByMemoAndOutput: (memoCount?: number, givenOutputCount?: number) => number; +export declare const getFeeByMemoAndOutput: (memoCount?: number, outputCount?: number) => number; export declare const getFeeByMemoAndOutputInString: (memoCount?: number, givenOutputCount?: number) => string; +export declare const getFeeByMemoAndOutputOriginal: (memoCount?: number, givenOutputCount?: number) => number; diff --git a/dist/services/feeUtils.js b/dist/services/feeUtils.js index 5d16e54f..c298b67e 100644 --- a/dist/services/feeUtils.js +++ b/dist/services/feeUtils.js @@ -1,26 +1,47 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getFeeByMemoAndOutputInString = exports.getFeeByMemoAndOutput = void 0; +exports.getFeeByMemoAndOutputOriginal = exports.getFeeByMemoAndOutputInString = exports.getFeeByMemoAndOutput = void 0; var bigNumber_1 = require("./bigNumber"); // this function also exists in the fragments ui, so if this one is updated , that one needs to be update too -var getFeeByMemoAndOutput = function (memoCount, givenOutputCount) { +var getFeeByMemoAndOutput = function (memoCount, outputCount) { if (memoCount === void 0) { memoCount = 0; } - var outputCount = memoCount + 2 - 3; - var outputCountCaluclated = outputCount <= 0 ? 0 : outputCount; - var outputCountToUse = givenOutputCount ? givenOutputCount : outputCountCaluclated; + if (outputCount === void 0) { outputCount = 0; } // @TODO we might want to switch to fetching minimalFeeV1 from the ledger, like in the next line // const fee = ledger.fra_get_minimal_fee(); var minimalFeeV1 = 10000000; // 10 FRA - var gasFee = minimalFeeV1 + outputCountToUse * 2 * minimalFeeV1 + memoCount * 2 * minimalFeeV1; + var outputCountCalculated = outputCount + 2 - 3; + var outputCountToUse = outputCount <= 0 ? 0 : outputCountCalculated; + // console.log('oo', oo); + // console.log('outputCountToUse', outputCountToUse); + var gasFee = +(0, bigNumber_1.create)(minimalFeeV1) + .plus((0, bigNumber_1.toWei)(outputCountToUse * 2 + memoCount * 2)) + .toString(); return gasFee; }; exports.getFeeByMemoAndOutput = getFeeByMemoAndOutput; // this function also exists in the fragments ui, so if this one is updated , that one needs to be update too var getFeeByMemoAndOutputInString = function (memoCount, givenOutputCount) { + // const gazFee = getFeeByMemoAndOutputOriginal(memoCount, givenOutputCount); + // that is 70 fra for 1,2 and I can cancel and buy + // console.log('gazFee O', gazFee); if (memoCount === void 0) { memoCount = 0; } - var gazFee = (0, exports.getFeeByMemoAndOutput)(memoCount, givenOutputCount); - var gazFeeFormatted = (0, bigNumber_1.fromWei)(gazFee, 6).toFormat(6); + var gazFeeN = (0, exports.getFeeByMemoAndOutput)(memoCount, givenOutputCount); + // with 1,2 it is 14 fra, no cancel + // with 1,7 it is 24 fra, no cancel + // with 2,7 it is 26 fra, no cancel + // with 2,10 it is 32 fra, cancel worked and buy worked + var gazFeeFormatted = (0, bigNumber_1.fromWei)(gazFeeN, 6).toFormat(6); return gazFeeFormatted; }; exports.getFeeByMemoAndOutputInString = getFeeByMemoAndOutputInString; +var getFeeByMemoAndOutputOriginal = function (memoCount, givenOutputCount) { + if (memoCount === void 0) { memoCount = 0; } + var outputCount = memoCount + 2 - 3; + var outputCountCaluclated = outputCount <= 0 ? 0 : outputCount; + var outputCountToUse = givenOutputCount ? givenOutputCount : outputCountCaluclated; + var minimalFeeV1 = 10000000; // 10 FRA + var gasFee = minimalFeeV1 + outputCountToUse * 2 * minimalFeeV1 + memoCount * 2 * minimalFeeV1; + return gasFee; +}; +exports.getFeeByMemoAndOutputOriginal = getFeeByMemoAndOutputOriginal; //# sourceMappingURL=feeUtils.js.map \ No newline at end of file diff --git a/dist/services/feeUtils.js.map b/dist/services/feeUtils.js.map index fd8c35b4..7b2aa20e 100644 --- a/dist/services/feeUtils.js.map +++ b/dist/services/feeUtils.js.map @@ -1 +1 @@ -{"version":3,"file":"feeUtils.js","sourceRoot":"","sources":["../../src/services/feeUtils.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,6GAA6G;AACtG,IAAM,qBAAqB,GAAG,UAAC,SAAa,EAAE,gBAAyB;IAAxC,0BAAA,EAAA,aAAa;IACjD,IAAM,WAAW,GAAG,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC;IAEtC,IAAM,qBAAqB,GAAG,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IACjE,IAAM,gBAAgB,GAAG,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,qBAAqB,CAAC;IAErF,gGAAgG;IAChG,4CAA4C;IAC5C,IAAM,YAAY,GAAG,QAAU,CAAC,CAAC,SAAS;IAE1C,IAAM,MAAM,GAAG,YAAY,GAAG,gBAAgB,GAAG,CAAC,GAAG,YAAY,GAAG,SAAS,GAAG,CAAC,GAAG,YAAY,CAAC;IAEjG,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAbW,QAAA,qBAAqB,yBAahC;AAEF,6GAA6G;AACtG,IAAM,6BAA6B,GAAG,UAAC,SAAa,EAAE,gBAAyB;IAAxC,0BAAA,EAAA,aAAa;IACzD,IAAM,MAAM,GAAG,IAAA,6BAAqB,EAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAElE,IAAM,eAAe,GAAG,IAAA,mBAAO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,CAAC,CAAC,CAAC,CAAC;IAExD,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC;AAfW,QAAA,6BAA6B,iCAexC;AAEK,IAAM,6BAA6B,GAAG,UAAC,SAAa,EAAE,gBAAyB;IAAxC,0BAAA,EAAA,aAAa;IACzD,IAAM,WAAW,GAAG,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC;IAEtC,IAAM,qBAAqB,GAAG,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IACjE,IAAM,gBAAgB,GAAG,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,qBAAqB,CAAC;IAErF,IAAM,YAAY,GAAG,QAAU,CAAC,CAAC,SAAS;IAE1C,IAAM,MAAM,GAAG,YAAY,GAAG,gBAAgB,GAAG,CAAC,GAAG,YAAY,GAAG,SAAS,GAAG,CAAC,GAAG,YAAY,CAAC;IAEjG,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAXW,QAAA,6BAA6B,iCAWxC"} \ No newline at end of file diff --git a/dist/services/feeUtils.spec.js b/dist/services/feeUtils.spec.js index 46ec27cc..70ab9c1b 100644 --- a/dist/services/feeUtils.spec.js +++ b/dist/services/feeUtils.spec.js @@ -74,51 +74,146 @@ describe("FeeUtils tests", function () { describe('providing only memo count, and no outputs count', function () { it('with no given memo it returns 10 FRA fee', function () { var result = FeeUtils.getFeeByMemoAndOutput(); - var expected = 10000000; // 10 FRA + var expected = 10000000; expect(result).toEqual(expected); }, extendedExecutionTimeout); - it('with given memo=1 it returns 30 FRA fee', function () { + it('with given memo=1 it returns 12 FRA fee', function () { var result = FeeUtils.getFeeByMemoAndOutput(1); - var expected = 30000000; // 30 FRA + var expected = 12000000; expect(result).toEqual(expected); }, extendedExecutionTimeout); - it('with given memo=2 it returns 70 FRA fee', function () { + it('with given memo=2 it returns 14 FRA fee', function () { var result = FeeUtils.getFeeByMemoAndOutput(2); - var expected = 70000000; // 70 FRA + var expected = 14000000; expect(result).toEqual(expected); }, extendedExecutionTimeout); - it('with given memo=3 it returns 110 FRA fee', function () { + it('with given memo=3 it returns 16 FRA fee', function () { var result = FeeUtils.getFeeByMemoAndOutput(3); - var expected = 110000000; // 110 FRA - expect(result).toEqual(expected); - }, extendedExecutionTimeout); - it('with given memo=3 it returns 310 FRA fee', function () { - var result = FeeUtils.getFeeByMemoAndOutput(8); - var expected = 310000000; // 310 FRA + var expected = 16000000; expect(result).toEqual(expected); }, extendedExecutionTimeout); + // + // it( + // 'with given memo=2 it returns 70 FRA fee', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(2); + // + // const expected = 70_000_000; // 70 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); + // + // it( + // 'with given memo=3 it returns 110 FRA fee', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(3); + // + // const expected = 110_000_000; // 110 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); + // + // it( + // 'with given memo=3 it returns 310 FRA fee', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(8); + // + // const expected = 310_000_000; // 310 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); }); describe('providing both memo count, and outputs count', function () { - it('with memo = 0 and output it returns 10 FRA fee', function () { + it('with memo = 0 and output = 0 it returns 10 FRA fee', function () { var result = FeeUtils.getFeeByMemoAndOutput(0, 0); - var expected = 10000000; // 10 FRA + var expected = 10000000; + expect(result).toEqual(expected); + }, extendedExecutionTimeout); + it('with memo = 0 and output = 1 it returns 10 FRA fee', function () { + var result = FeeUtils.getFeeByMemoAndOutput(0, 1); + var expected = 10000000; expect(result).toEqual(expected); }, extendedExecutionTimeout); - it('with given memo=0 and 3 outputs it returns 70 FRA fee', function () { + it('with memo = 0 and output = 2 it returns 12 FRA fee', function () { + var result = FeeUtils.getFeeByMemoAndOutput(0, 2); + var expected = 12000000; + expect(result).toEqual(expected); + }, extendedExecutionTimeout); + it('with memo = 0 and output = 3 it returns 14 FRA fee', function () { var result = FeeUtils.getFeeByMemoAndOutput(0, 3); - var expected = 70000000; // 70 FRA + var expected = 14000000; + expect(result).toEqual(expected); + }, extendedExecutionTimeout); + it('with memo = 0 and output = 10 it returns 28 FRA fee', function () { + var result = FeeUtils.getFeeByMemoAndOutput(0, 10); + var expected = 28000000; + expect(result).toEqual(expected); + }, extendedExecutionTimeout); + it('with memo = 0 and output = 20 it returns 48 FRA fee', function () { + var result = FeeUtils.getFeeByMemoAndOutput(0, 20); + var expected = 48000000; + expect(result).toEqual(expected); + }, extendedExecutionTimeout); + it('with memo = 1 and output = 7 it returns 24 FRA fee', function () { + var result = FeeUtils.getFeeByMemoAndOutput(1, 7); + var expected = 24000000; + expect(result).toEqual(expected); + }, extendedExecutionTimeout); + it('with memo = 2 and output = 7 it returns 26 FRA fee', function () { + var result = FeeUtils.getFeeByMemoAndOutput(2, 7); + var expected = 26000000; + expect(result).toEqual(expected); + }, extendedExecutionTimeout); + it('with memo = 3 and output = 7 it returns 28 FRA fee', function () { + var result = FeeUtils.getFeeByMemoAndOutput(3, 7); + var expected = 28000000; expect(result).toEqual(expected); }, extendedExecutionTimeout); - it('with given memo=1 and output=2 it returns 70 FRA fee (buy brc20 fra to middle man)', function () { - var result = FeeUtils.getFeeByMemoAndOutput(1, 2); - var expected = 70000000; // 70 FRA + it('with memo = 2 and output = 8 it returns 28 FRA fee', function () { + var result = FeeUtils.getFeeByMemoAndOutput(2, 8); + var expected = 28000000; expect(result).toEqual(expected); }, extendedExecutionTimeout); - it('with given memo=1 and output=4 3 it returns 110 FRA fee', function () { - var result = FeeUtils.getFeeByMemoAndOutput(1, 4); - var expected = 110000000; // 110 FRA + it('with memo = 2 and output = 10 it returns 32 FRA fee', function () { + var result = FeeUtils.getFeeByMemoAndOutput(2, 10); + var expected = 32000000; expect(result).toEqual(expected); }, extendedExecutionTimeout); + // it( + // 'with given memo=0 and 3 outputs it returns 70 FRA fee', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(0, 3); + // + // const expected = 70_000_000; // 70 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); + // + // it( + // 'with given memo=1 and output=2 it returns 70 FRA fee (buy brc20 fra to middle man)', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(1, 2); + // + // const expected = 70_000_000; // 70 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); + // + // it( + // 'with given memo=1 and output=4 3 it returns 110 FRA fee', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(1, 4); + // + // const expected = 110_000_000; // 110 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); }); }); }); diff --git a/dist/services/feeUtils.spec.js.map b/dist/services/feeUtils.spec.js.map index 5f0b3de4..4883a036 100644 --- a/dist/services/feeUtils.spec.js.map +++ b/dist/services/feeUtils.spec.js.map @@ -1 +1 @@ -{"version":3,"file":"feeUtils.spec.js","sourceRoot":"","sources":["../../src/services/feeUtils.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAuC;AAEvC,IAAM,wBAAwB,GAAG,MAAM,CAAC;AAExC,QAAQ,CAAC,cAAO,CAAC,CAAC,CAAC;AACnB,SAAS,CAAC,cAAO,CAAC,CAAC,CAAC;AAEpB,SAAS,CAAC,UAAO,IAAS;;QACxB,IAAI,EAAE,CAAC;;;KACR,EAAE,wBAAwB,CAAC,CAAC;AAE7B,QAAQ,CAAC,gBAAgB,EAAE;IACzB,QAAQ,CAAC,uBAAuB,EAAE;QAChC,QAAQ,CAAC,iDAAiD,EAAE;YAC1D,EAAE,CACA,0CAA0C,EAC1C;gBACE,IAAM,MAAM,GAAG,QAAQ,CAAC,qBAAqB,EAAE,CAAC;gBAEhD,IAAM,QAAQ,GAAG,QAAU,CAAC,CAAC,SAAS;gBACtC,MAAM,CAAC,MAA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AC9B,KAAK;YACL,EAAE;YACF,MAAM;YACN,+DAA+D;YAC/D,YAAY;YACZ,2DAA2D;YAC3D,EAAE;YACF,+CAA+C;YAC/C,wCAAwC;YACxC,OAAO;YACP,8BAA8B;YAC9B,KAAK;QACP,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/services/txHelper.d.ts b/dist/services/txHelper.d.ts new file mode 100644 index 00000000..a0909b1b --- /dev/null +++ b/dist/services/txHelper.d.ts @@ -0,0 +1,9 @@ +export declare const getTxDetailsByHash: (txHash: string, blocksToWait?: number) => Promise<{ + txDetailsResponse: { + tx: string; + } | undefined; + txDetailsResponseError: import("../api/network/types").ResultError | undefined; +}>; +export declare const getTxHashSwapByHash: (submittedTxHash: string, blocksToWait?: number) => Promise<{ + txHash: string; +}>; diff --git a/dist/services/txHelper.js b/dist/services/txHelper.js new file mode 100644 index 00000000..3bc90d1d --- /dev/null +++ b/dist/services/txHelper.js @@ -0,0 +1,92 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getTxHashSwapByHash = exports.getTxDetailsByHash = void 0; +var api_1 = require("../api"); +var testHelpers_1 = require("../evm/testHelpers"); +var getTxDetailsByHash = function (txHash, blocksToWait) { + if (blocksToWait === void 0) { blocksToWait = 1; } + return __awaiter(void 0, void 0, void 0, function () { + var txDetailsResult, txDetailsResponse; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: return [4 /*yield*/, (0, testHelpers_1.waitForBlockChange)(blocksToWait)]; + case 1: + _a.sent(); + return [4 /*yield*/, api_1.Network.getTransactionDetails(txHash)]; + case 2: + txDetailsResult = _a.sent(); + txDetailsResponse = txDetailsResult.response; + return [2 /*return*/, { + txDetailsResponse: txDetailsResponse === null || txDetailsResponse === void 0 ? void 0 : txDetailsResponse.result, + txDetailsResponseError: txDetailsResult === null || txDetailsResult === void 0 ? void 0 : txDetailsResult.error, + }]; + } + }); + }); +}; +exports.getTxDetailsByHash = getTxDetailsByHash; +var getTxHashSwapByHash = function (submittedTxHash, blocksToWait) { + if (blocksToWait === void 0) { blocksToWait = 1; } + return __awaiter(void 0, void 0, void 0, function () { + var txHash, response, tx, hash; + var _a, _b, _c; + return __generator(this, function (_d) { + switch (_d.label) { + case 0: + txHash = ''; + _d.label = 1; + case 1: + if (!(txHash === '')) return [3 /*break*/, 4]; + return [4 /*yield*/, (0, testHelpers_1.waitForBlockChange)(blocksToWait)]; + case 2: + _d.sent(); + return [4 /*yield*/, api_1.Network.getHashSwap(submittedTxHash)]; + case 3: + response = _d.sent(); + tx = ((_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.response) === null || _a === void 0 ? void 0 : _a.result) === null || _b === void 0 ? void 0 : _b.txs) !== null && _c !== void 0 ? _c : [])[0]; + hash = (tx || {}).hash; + txHash = tx ? hash : ''; + return [3 /*break*/, 1]; + case 4: return [2 /*return*/, { txHash: txHash }]; + } + }); + }); +}; +exports.getTxHashSwapByHash = getTxHashSwapByHash; +//# sourceMappingURL=txHelper.js.map \ No newline at end of file diff --git a/dist/services/txHelper.js.map b/dist/services/txHelper.js.map new file mode 100644 index 00000000..f199e48b --- /dev/null +++ b/dist/services/txHelper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"txHelper.js","sourceRoot":"","sources":["../../src/services/txHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8BAAiC;AACjC,kDAAwD;AAEjD,IAAM,kBAAkB,GAAG,UAAO,MAAc,EAAE,YAAgB;IAAhB,6BAAA,EAAA,gBAAgB;;;;;wBACvE,qBAAM,IAAA,gCAAkB,EAAC,YAAY,CAAC,EAAA;;oBAAtC,SAAsC,CAAC;oBACf,qBAAM,aAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAA;;oBAA7D,eAAe,GAAG,SAA2C;oBACjD,iBAAiB,GAAK,eAAe,SAApB,CAAqB;oBACxD,sBAAO;4BACL,iBAAiB,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,MAAM;4BAC5C,sBAAsB,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,KAAK;yBAC/C,EAAC;;;;CACH,CAAC;AARW,QAAA,kBAAkB,sBAQ7B;AAEK,IAAM,mBAAmB,GAAG,UAAO,eAAuB,EAAE,YAAgB;IAAhB,6BAAA,EAAA,gBAAgB;;;;;;;oBAC7E,MAAM,GAAG,EAAE,CAAC;;;yBAET,CAAA,MAAM,KAAK,EAAE,CAAA;oBAClB,qBAAM,IAAA,gCAAkB,EAAC,YAAY,CAAC,EAAA;;oBAAtC,SAAsC,CAAC;oBACtB,qBAAM,aAAO,CAAC,WAAW,CAAC,eAAe,CAAC,EAAA;;oBAArD,QAAQ,GAAG,SAA0C;oBACpD,EAAE,GAAI,CAAA,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,0CAAE,MAAM,0CAAE,GAAG,mCAAI,EAAE,CAAA,GAAzC,CAA0C;oBAC3C,IAAI,GAAK,CAAA,EAAE,IAAI,EAAE,CAAA,KAAb,CAAc;oBAC1B,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;;wBAG1B,sBAAO,EAAE,MAAM,QAAA,EAAE,EAAC;;;;CACnB,CAAC;AAZW,QAAA,mBAAmB,uBAY9B"} \ No newline at end of file diff --git a/dist/services/utxoHelper.d.ts b/dist/services/utxoHelper.d.ts index 3f54f3ca..735d75ef 100644 --- a/dist/services/utxoHelper.d.ts +++ b/dist/services/utxoHelper.d.ts @@ -1,5 +1,6 @@ import { WalletKeypar } from '../api/keypair'; import { LedgerUtxo, OwnedMemoResponse, UtxoResponse } from '../api/network/types'; +import { CacheItem } from './cacheStore/types'; import { ClientAssetRecord as LedgerClientAssetRecord, OwnerMemo as LedgerOwnerMemo, TxoRef as LedgerTxoRef } from './ledger/types'; export interface LedgerUtxoItem { sid: number; @@ -34,8 +35,11 @@ export interface UtxoInputsInfo { export declare const filterUtxoByCode: (code: string, utxoDataList: AddUtxoItem[]) => AddUtxoItem[]; export declare const filterZeroAmountUtxo: (utxoDataList: AddUtxoItem[]) => AddUtxoItem[]; export declare const decryptUtxoItem: (sid: number, walletInfo: WalletKeypar, utxoData: UtxoResponse, memoData?: OwnedMemoResponse) => Promise; +export declare const getCacheEntryNameForAddress: (walletAddres: string) => string; +export declare const getCachedItemsForAddress: (walletAddres: string) => Promise; export declare const getUtxoItem: (sid: number, walletInfo: WalletKeypar, cachedItem?: AddUtxoItem) => Promise; -export declare const addUtxo: (walletInfo: WalletKeypar, addSids: number[]) => Promise; +export declare const updateUtxoCacheForWalletAddress: (cacheDataToSave: CacheItem, walletAddress: string) => Promise; +export declare const addUtxo: (walletInfo: WalletKeypar, addSids: number[], assetCode: string) => Promise; /** * @depricated */ diff --git a/dist/services/utxoHelper.js b/dist/services/utxoHelper.js index 0f92fc50..d589a8ea 100644 --- a/dist/services/utxoHelper.js +++ b/dist/services/utxoHelper.js @@ -73,7 +73,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUtxoWithAmount = exports.addUtxoInputs = exports.getSendUtxo = exports.getSendUtxoForAmount = exports.addUtxo = exports.getUtxoItem = exports.decryptUtxoItem = exports.filterZeroAmountUtxo = exports.filterUtxoByCode = void 0; +exports.getUtxoWithAmount = exports.addUtxoInputs = exports.getSendUtxo = exports.getSendUtxoForAmount = exports.addUtxo = exports.updateUtxoCacheForWalletAddress = exports.getUtxoItem = exports.getCachedItemsForAddress = exports.getCacheEntryNameForAddress = exports.decryptUtxoItem = exports.filterZeroAmountUtxo = exports.filterUtxoByCode = void 0; var Network = __importStar(require("../api/network")); var cache_1 = require("../config/cache"); var Sdk_1 = __importDefault(require("../Sdk")); @@ -104,7 +104,10 @@ var mergeSortUtxoList = function (arr) { return mergeUtxoList(mergeSortUtxoList(left), mergeSortUtxoList(right)); }; var filterUtxoByCode = function (code, utxoDataList) { - return utxoDataList.filter(function (assetItem) { var _a; return ((_a = assetItem === null || assetItem === void 0 ? void 0 : assetItem.body) === null || _a === void 0 ? void 0 : _a.asset_type) === code; }); + return utxoDataList.filter(function (assetItem) { + var _a; + return ((_a = assetItem === null || assetItem === void 0 ? void 0 : assetItem.body) === null || _a === void 0 ? void 0 : _a.asset_type) === code; + }); }; exports.filterUtxoByCode = filterUtxoByCode; var filterZeroAmountUtxo = function (utxoDataList) { @@ -116,7 +119,7 @@ var filterZeroAmountUtxo = function (utxoDataList) { exports.filterZeroAmountUtxo = filterZeroAmountUtxo; // is called only from getUtxoItem var decryptUtxoItem = function (sid, walletInfo, utxoData, memoData) { return __awaiter(void 0, void 0, void 0, function () { - var ledger, assetRecord, err, ownerMemo, err, decryptAssetData, error_1, err, decryptedAsetType, err, item; + var ledger, assetRecord, err, ownerMemo, err, decryptAssetData, error_1, err, decryptedAssetType, err, item; return __generator(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, (0, ledgerWrapper_1.getLedger)()]; @@ -149,13 +152,13 @@ var decryptUtxoItem = function (sid, walletInfo, utxoData, memoData) { return __ throw new Error("Can not open client asset record to decode. Details: \"".concat(err.message, "\"")); case 5: try { - decryptedAsetType = ledger.asset_type_from_jsvalue(decryptAssetData.asset_type); + decryptedAssetType = ledger.asset_type_from_jsvalue(decryptAssetData.asset_type); } catch (error) { err = error; throw new Error("Can not decrypt asset type. Details: \"".concat(err.message, "\"")); } - decryptAssetData.asset_type = decryptedAsetType; + decryptAssetData.asset_type = decryptedAssetType; decryptAssetData.amount = BigInt(decryptAssetData.amount); item = { address: walletInfo.address, @@ -164,12 +167,50 @@ var decryptUtxoItem = function (sid, walletInfo, utxoData, memoData) { return __ utxo: __assign({}, utxoData.utxo), ownerMemo: ownerMemo === null || ownerMemo === void 0 ? void 0 : ownerMemo.clone(), memoData: memoData, + decryptedAssetType: decryptedAssetType, }; return [2 /*return*/, item]; } }); }); }; exports.decryptUtxoItem = decryptUtxoItem; +var getCacheEntryNameForAddress = function (walletAddres) { + var envName = Sdk_1.default.environment.hostUrl.replace(/https:\/\//g, '').replace(/http:\/\//g, ''); + var cacheEntryName = "".concat(envName, "_").concat(cache_1.CACHE_ENTRIES.UTXO_DATA, "_").concat(walletAddres); + var fullPathToCacheEntry = "".concat(Sdk_1.default.environment.cachePath, "/").concat(cacheEntryName, ".json"); + try { + if (window && (window === null || window === void 0 ? void 0 : window.document)) { + fullPathToCacheEntry = cacheEntryName; + } + } + catch (_) { + // we do nothing when we catch an error here, as that means that we are in the console mode + } + return fullPathToCacheEntry; +}; +exports.getCacheEntryNameForAddress = getCacheEntryNameForAddress; +var getCachedItemsForAddress = function (walletAddres) { return __awaiter(void 0, void 0, void 0, function () { + var utxoDataCache, fullPathToCacheEntry, error_2, err; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + fullPathToCacheEntry = (0, exports.getCacheEntryNameForAddress)(walletAddres); + _a.label = 1; + case 1: + _a.trys.push([1, 3, , 4]); + return [4 /*yield*/, factory_1.default.read(fullPathToCacheEntry, Sdk_1.default.environment.cacheProvider || providers_1.MemoryCacheProvider)]; + case 2: + utxoDataCache = _a.sent(); + return [3 /*break*/, 4]; + case 3: + error_2 = _a.sent(); + err = error_2; + throw new Error("Error reading the cache, \"".concat(err.message, "\"")); + case 4: return [2 /*return*/, utxoDataCache]; + } + }); +}); }; +exports.getCachedItemsForAddress = getCachedItemsForAddress; // is called only by addUtxo var getUtxoItem = function (sid, walletInfo, cachedItem) { return __awaiter(void 0, void 0, void 0, function () { var utxoDataResult, utxoData, utxoError, memoDataResult, memoData, memoError, item; @@ -177,15 +218,11 @@ var getUtxoItem = function (sid, walletInfo, cachedItem) { return __awaiter(void switch (_a.label) { case 0: if (cachedItem) { - // we simply do not fetch spent utxo if they are not in cache + // we simply do not fetch spent utxo if they are in cache if (cachedItem.body.amount === 0) { return [2 /*return*/, cachedItem]; } - // else { - // console.log( - // `we have cache for sid ${sid} , but its amount is ${cachedItem.body.amount}, so need to refetch`, - // ); - // } + // no cache for sid (or need to update the cache) - Fetching utxo for this sid ); } return [4 /*yield*/, Network.getUtxo(sid)]; case 1: @@ -204,89 +241,84 @@ var getUtxoItem = function (sid, walletInfo, cachedItem) { return __awaiter(void return [4 /*yield*/, (0, exports.decryptUtxoItem)(sid, walletInfo, utxoData, memoData)]; case 3: item = _a.sent(); - // console.log('🚀 ~ file: utxoHelper.ts ~ line 155 ~ sid processed', sid); - // console.log('🚀 ~ file: utxoHelper.ts ~ line 178 ~ item', item); return [2 /*return*/, item]; } }); }); }; exports.getUtxoItem = getUtxoItem; -// creates a list of items with descrypted utxo information -var addUtxo = function (walletInfo, addSids) { return __awaiter(void 0, void 0, void 0, function () { - var utxoDataList, cacheDataToSave, utxoDataCache, envName, cacheEntryName, fullPathToCacheEntry, error_2, err, i, sid, item, error_3, err, error_4, err; +var updateUtxoCacheForWalletAddress = function (cacheDataToSave, walletAddress) { return __awaiter(void 0, void 0, void 0, function () { + var fullPathToCacheEntry, error_3, err; return __generator(this, function (_a) { switch (_a.label) { case 0: - utxoDataList = []; - cacheDataToSave = {}; - envName = Sdk_1.default.environment.hostUrl.replace(/https:\/\//g, '').replace(/http:\/\//g, ''); - cacheEntryName = "".concat(envName, "_").concat(cache_1.CACHE_ENTRIES.UTXO_DATA, "_").concat(walletInfo.address); - fullPathToCacheEntry = "".concat(Sdk_1.default.environment.cachePath, "/").concat(cacheEntryName, ".json"); - // console.log('addUtxo - fullPathToCacheEntry', fullPathToCacheEntry); - // console.log('addUtxo - addSids.len', addSids.length); - try { - if (window && (window === null || window === void 0 ? void 0 : window.document)) { - fullPathToCacheEntry = cacheEntryName; - // console.log('addUtxo - fullPathToCacheEntry skip', fullPathToCacheEntry); - } - } - catch (_) { - // console.log('window instance is not found. running is sdk mode. skipping'); - } + fullPathToCacheEntry = (0, exports.getCacheEntryNameForAddress)(walletAddress); _a.label = 1; case 1: _a.trys.push([1, 3, , 4]); - return [4 /*yield*/, factory_1.default.read(fullPathToCacheEntry, Sdk_1.default.environment.cacheProvider || providers_1.MemoryCacheProvider)]; + return [4 /*yield*/, factory_1.default.write(fullPathToCacheEntry, cacheDataToSave, Sdk_1.default.environment.cacheProvider || providers_1.MemoryCacheProvider)]; case 2: - // console.log('addUtxo - Sdk.environment.cacheProvider', Sdk.environment.cacheProvider); - utxoDataCache = _a.sent(); + _a.sent(); return [3 /*break*/, 4]; case 3: - error_2 = _a.sent(); - err = error_2; - throw new Error("Error reading the cache, \"".concat(err.message, "\"")); - case 4: + error_3 = _a.sent(); + err = error_3; + console.log("Could not write cache for utxoData, \"".concat(err.message, "\"")); + return [3 /*break*/, 4]; + case 4: return [2 /*return*/]; + } + }); +}); }; +exports.updateUtxoCacheForWalletAddress = updateUtxoCacheForWalletAddress; +// creates a list of items with descrypted utxo information +var addUtxo = function (walletInfo, addSids, assetCode) { return __awaiter(void 0, void 0, void 0, function () { + var utxoDataList, cacheDataToSave, utxoDataCache, i, sid, item, error_4, err; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + utxoDataList = []; + cacheDataToSave = {}; + return [4 /*yield*/, (0, exports.getCachedItemsForAddress)(walletInfo.address)]; + case 1: + utxoDataCache = _a.sent(); i = 0; - _a.label = 5; - case 5: - if (!(i < addSids.length)) return [3 /*break*/, 10]; + _a.label = 2; + case 2: + if (!(i < addSids.length)) return [3 /*break*/, 7]; sid = addSids[i]; - _a.label = 6; - case 6: - _a.trys.push([6, 8, , 9]); + _a.label = 3; + case 3: + _a.trys.push([3, 5, , 6]); return [4 /*yield*/, (0, exports.getUtxoItem)(sid, walletInfo, utxoDataCache === null || utxoDataCache === void 0 ? void 0 : utxoDataCache["sid_".concat(sid)])]; - case 7: + case 4: item = _a.sent(); - // do we save only spent or all the utxo? I think we need to save all, since - // those should not be fetched at all - // if (item.body.amount != 0) { - utxoDataList.push(item); - cacheDataToSave["sid_".concat(item.sid)] = item; - return [3 /*break*/, 9]; - case 8: - error_3 = _a.sent(); - err = error_3; + // we also filtering out wrong asset code and 0 amount withing the getSendUtxo mehod + // by calling + // + // filteredUtxoList = filterUtxoByCode(code, utxoDataList); + // and + // filteredNonZeroUtxoList = filterZeroAmountUtxo(filteredUtxoList); + // + // but sometimes we might need to call addUtxo directly so we are filtering it here as well + // + if (item.body.asset_type === assetCode) { + if (item.body.amount != 0) { + utxoDataList.push(item); + } + cacheDataToSave["sid_".concat(item.sid)] = item; + } + return [3 /*break*/, 6]; + case 5: + error_4 = _a.sent(); + err = error_4; console.log("Could not process addUtxo for sid ".concat(sid, ", Details: \"").concat(err.message, "\"")); - return [3 /*break*/, 9]; - case 9: + return [3 /*break*/, 6]; + case 6: i++; - return [3 /*break*/, 5]; - case 10: - _a.trys.push([10, 12, , 13]); - // console.log('addUtxo - to save', cacheDataToSave); - // console.log('addUtxo - lenght to save', Object.entries(cacheDataToSave).length); - return [4 /*yield*/, factory_1.default.write(fullPathToCacheEntry, cacheDataToSave, Sdk_1.default.environment.cacheProvider || providers_1.MemoryCacheProvider)]; - case 11: - // console.log('addUtxo - to save', cacheDataToSave); - // console.log('addUtxo - lenght to save', Object.entries(cacheDataToSave).length); + return [3 /*break*/, 2]; + case 7: return [4 /*yield*/, (0, exports.updateUtxoCacheForWalletAddress)(cacheDataToSave, walletInfo.address)]; + case 8: _a.sent(); - return [3 /*break*/, 13]; - case 12: - error_4 = _a.sent(); - err = error_4; - console.log("Could not write cache for utxoData, \"".concat(err.message, "\"")); - return [3 /*break*/, 13]; - case 13: return [2 /*return*/, utxoDataList]; + return [2 /*return*/, utxoDataList]; } }); }); }; @@ -337,9 +369,13 @@ exports.addUtxo = addUtxo; var getSendUtxoForAmount = function (code, amount, utxoDataList) { var result = []; var filteredUtxoList = (0, exports.filterUtxoByCode)(code, utxoDataList); + // new incsrioption have 0 amount but they are not spent, so we need + // to filter them out as well , otherwise tx size will grow a lot and + // tx size threshold will be reached quicker + var filteredNonZeroUtxoList = (0, exports.filterZeroAmountUtxo)(filteredUtxoList); console.log('🚀 ~ file: utxoHelper.ts ~ line 307 ~ amount', amount); - for (var _i = 0, filteredUtxoList_1 = filteredUtxoList; _i < filteredUtxoList_1.length; _i++) { - var assetItem = filteredUtxoList_1[_i]; + for (var _i = 0, filteredNonZeroUtxoList_1 = filteredNonZeroUtxoList; _i < filteredNonZeroUtxoList_1.length; _i++) { + var assetItem = filteredNonZeroUtxoList_1[_i]; var _amount = BigInt(assetItem.body.amount); console.log('🚀 ~ file: utxoHelper.ts ~ line 307 ~ _amount', _amount); if (_amount === amount) { @@ -446,7 +482,7 @@ var getUtxoWithAmount = function (walletInfo, utxoNumbers, assetCode) { return _ console.log('ERROR no sids available'); throw new Error("could not get an utxo with an amount of ".concat(utxoNumbers, " for asset code ").concat(assetCode, ". No sids available")); } - return [4 /*yield*/, (0, exports.addUtxo)(walletInfo, sids)]; + return [4 /*yield*/, (0, exports.addUtxo)(walletInfo, sids, assetCode)]; case 2: utxoDataList = _a.sent(); sendUtxoList = (0, exports.getSendUtxoForAmount)(assetCode, utxoNumbers, utxoDataList); diff --git a/dist/services/utxoHelper.js.map b/dist/services/utxoHelper.js.map index 543d3c50..4183bb1b 100644 --- a/dist/services/utxoHelper.js.map +++ b/dist/services/utxoHelper.js.map @@ -1 +1 @@ -{"version":3,"file":"utxoHelper.js","sourceRoot":"","sources":["../../src/services/utxoHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAA0C;AAE1C,yCAAgD;AAChD,+CAAyB;AACzB,iEAAyC;AACzC,oDAA6D;AAE7D,wDAAmD;AA2CnD,IAAM,aAAa,GAAG,UAAC,IAAmB,EAAE,IAAmB;IAC7D,IAAM,GAAG,GAAG,EAAE,CAAC;IAEf,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE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CxB;AAEK,IAAM,iBAAiB,GAAG,UAC/B,UAAwB,EACxB,WAAmB,EACnB,SAAiB;;;;oBAEU,qBAAM,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,EAAA;;gBAAzD,IAAI,GAAK,CAAA,SAAgD,CAAA,SAArD;gBACtB,IAAI,CAAC,IAAI,EAAE;oBACT,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;oBACvC,MAAM,IAAI,KAAK,CACb,kDAA2C,WAAW,6BAAmB,SAAS,wBAAqB,CACxG,CAAC;iBACH;gBAEoB,qBAAM,IAAA,eAAO,EAAC,UAAU,EAAE,IAAI,EAAE,SAAS,CAAC,EAAA;;gBAAzD,YAAY,GAAG,SAA0C;gBACzD,YAAY,GAAG,IAAA,4BAAoB,EAAC,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;gBAEzE,SAAS,GAAI,YAAY,GAAhB,CAAiB;gBAEjC,IAAI,CAAC,SAAS,EAAE;oBACd,MAAM,IAAI,KAAK,CAAC,kDAA2C,WAAW,6BAAmB,SAAS,CAAE,CAAC,CAAC;iBACvG;gBAED,sBAAO,SAAS,EAAC;;;KAClB,CAAC;AAvBW,QAAA,iBAAiB,qBAuB5B"} \ No newline at end of file diff --git a/dist/services/utxoHelper.spec.js b/dist/services/utxoHelper.spec.js index b4d32052..30546e75 100644 --- a/dist/services/utxoHelper.spec.js +++ b/dist/services/utxoHelper.spec.js @@ -760,7 +760,7 @@ describe('utxoHelper (unit test)', function () { return Promise.resolve(true); }); fullPathToCacheEntry = "".concat(Sdk_1.default.environment.cachePath, "/").concat(cache_1.CACHE_ENTRIES.UTXO_DATA, "_").concat(walletInfo.address, ".json"); - return [4 /*yield*/, UtxoHelper.addUtxo(walletInfo, addSids)]; + return [4 /*yield*/, UtxoHelper.addUtxo(walletInfo, addSids, 'aaa')]; case 1: result = _a.sent(); expect(spyCacheRead).toBeCalledWith(fullPathToCacheEntry, Sdk_1.default.environment.cacheProvider); @@ -789,7 +789,7 @@ describe('utxoHelper (unit test)', function () { address: 'myAddress', }; fullPathToCacheEntry = "".concat(Sdk_1.default.environment.cachePath, "/").concat(cache_1.CACHE_ENTRIES.UTXO_DATA, "_").concat(walletInfo.address, ".json"); - return [4 /*yield*/, expect(UtxoHelper.addUtxo(walletInfo, addSids)).rejects.toThrow('Error reading the cache')]; + return [4 /*yield*/, expect(UtxoHelper.addUtxo(walletInfo, addSids, 'aaa')).rejects.toThrow('Error reading the cache')]; case 1: _a.sent(); expect(spyCacheRead).toBeCalledWith(fullPathToCacheEntry, Sdk_1.default.environment.cacheProvider); @@ -838,7 +838,7 @@ describe('utxoHelper (unit test)', function () { return Promise.resolve(true); }); fullPathToCacheEntry = "".concat(Sdk_1.default.environment.cachePath, "/").concat(cache_1.CACHE_ENTRIES.UTXO_DATA, "_").concat(walletInfo.address, ".json"); - return [4 /*yield*/, UtxoHelper.addUtxo(walletInfo, addSids)]; + return [4 /*yield*/, UtxoHelper.addUtxo(walletInfo, addSids, 'aaa')]; case 1: result = _a.sent(); expect(spyCacheRead).toBeCalledWith(fullPathToCacheEntry, Sdk_1.default.environment.cacheProvider); diff --git a/dist/services/utxoHelper.spec.js.map b/dist/services/utxoHelper.spec.js.map index b3a2286c..51f8b5ae 100644 --- a/dist/services/utxoHelper.spec.js.map +++ b/dist/services/utxoHelper.spec.js.map @@ -1 +1 @@ -{"version":3,"file":"utxoHelper.spec.js","sourceRoot":"","sources":["../../src/services/utxoHelper.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAiD;AAEjD,iEAAqD;AAErD,uDAA2C;AAC3C,yCAAgD;AAChD,+CAAyB;AACzB,iEAAyC;AAEzC,8DAAkD;AAElD,QAAQ,CAAC,wBAAwB,EAAE;IACjC,QAAQ,CAAC,iBAAiB,EAAE;QAC1B,EAAE,CAAC,oCAAoC,EAAE;;;;;wB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4BAC1C,MAAM,EAAE,YAAY;yBACkB,CAAC;wBAEnC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,kBAAkB,CAAC;4BACxE,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;wBACnC,CAAC,CAAC,CAAC;wBAEG,kCAAkC,GAAG,IAAI,CAAC,KAAK,CAAC,uBAAuB,EAAE,WAAW,CAAC,CAAC;wBAE5F,qBAAM,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAC9D,0CAA0C,CAC3C,EAAA;;wBAFD,SAEC,CAAC;wBAEF,MAAM,CAAC,kCAAkC,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;wBAE9F,YAAY,CAAC,WAAW,EAAE,CAAC;wBAC3B,kCAAkC,CAAC,WAAW,EAAE,CAAC;;;;aAClD,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/api/account/account.ts b/src/api/account/account.ts index 76ded9bf..d33a935f 100644 --- a/src/api/account/account.ts +++ b/src/api/account/account.ts @@ -18,7 +18,7 @@ export const getAssetBalance = async ( let utxoDataList; try { - utxoDataList = await addUtxo(walletKeypair, sids); + utxoDataList = await addUtxo(walletKeypair, sids, assetCode); } catch (err) { const e: Error = err as Error; diff --git a/src/api/evm/evm.ts b/src/api/evm/evm.ts index c1df49c5..b75dc484 100644 --- a/src/api/evm/evm.ts +++ b/src/api/evm/evm.ts @@ -19,7 +19,7 @@ import { calculationDecimalsAmount, getErc20Contract, getFNSRegistryContract, - getNameResolverContract, + // getNameResolverContract, getNFT1155Contract, getNFT721Contract, getSimBridgeContract, @@ -438,7 +438,7 @@ export const sendAccountToEvm = async ( isTypeBlind: false, }; - let transactionBuilder = await Transaction.sendToAddressV2( + let transactionBuilder = await Transaction.sendToAddressToEvm( walletInfo, address, amount, diff --git a/src/api/sdkAsset/sdkAsset.ts b/src/api/sdkAsset/sdkAsset.ts index c54842e4..55a281ff 100644 --- a/src/api/sdkAsset/sdkAsset.ts +++ b/src/api/sdkAsset/sdkAsset.ts @@ -48,10 +48,12 @@ export const getFraAssetCode = async (): Promise => { return assetCode; }; -export const getMinimalFee = async (): Promise => { +export const getMinimalFee = async (receiversCount?: number): Promise => { // const ledger = await getLedger(); // const fee = ledger.fra_get_minimal_fee(); - const fee = getFeeByMemoAndOutput(); + // + const fee = getFeeByMemoAndOutput(0, receiversCount ? receiversCount : 0); + return BigInt(fee); }; diff --git a/src/api/transaction/transaction.ts b/src/api/transaction/transaction.ts index d4141962..54f36446 100644 --- a/src/api/transaction/transaction.ts +++ b/src/api/transaction/transaction.ts @@ -74,6 +74,9 @@ export const sendToMany = async ( const recieversInfo: Fee.ReciverInfo[] = []; + const fraAssetCode = ledger.fra_get_asset_code(); + const isFraTransfer = assetCode === fraAssetCode; + recieversList.forEach(reciver => { const { reciverWalletInfo: toWalletInfo, amount } = reciver; const toPublickey = ledger.public_key_from_base64(toWalletInfo.publickey); @@ -88,12 +91,10 @@ export const sendToMany = async ( recieversInfo.push(recieverInfoItem); }); - const fraAssetCode = ledger.fra_get_asset_code(); - - const isFraTransfer = assetCode === fraAssetCode; + const outputsCount = recieversInfo.length; if (isFraTransfer) { - const minimalFee = await AssetApi.getMinimalFee(); + const minimalFee = await AssetApi.getMinimalFee(outputsCount); const toPublickey = await AssetApi.getFraPublicKey(); const feeRecieverInfoItem = { @@ -172,46 +173,8 @@ export const sendToMany = async ( return transactionBuilder; }; -/** - * Send some asset to multiple receivers - * - * @remarks - * Using this function, user can transfer perform multiple transfers of the same asset to multiple receivers using different amounts - * - * @example - * - * ```ts - * const walletInfo = await Keypair.restoreFromPrivateKey(pkey, password); - * const toWalletInfoMine2 = await Keypair.restoreFromPrivateKey(toPkeyMine2, password); - * const toWalletInfoMine3 = await Keypair.restoreFromPrivateKey(toPkeyMine3, password); - * - * const assetCode = await Asset.getFraAssetCode(); - * - * const assetBlindRules: Asset.AssetBlindRules = { isTypeBlind: false, isAmountBlind: false }; - * - * const recieversInfo = [ - * { reciverWalletInfo: toWalletInfoMine2, amount: '2' }, - * { reciverWalletInfo: toWalletInfoMine3, amount: '3' }, - * ]; - * - * const transactionBuilder = await Transaction.sendToMany( - * walletInfo, - * recieversInfo, - * assetCode, - * assetBlindRules, - * ); - * - * const resultHandle = await Transaction.submitTransaction(transactionBuilder); - * ``` - * @throws `Could not create transfer operation (main)` - * @throws `Could not get transactionBuilder from "getTransactionBuilder"` - * @throws `Could not add transfer operation` - * @throws `Could not create transfer operation for fee` - * @throws `Could not add transfer operation for fee` - * - * @returns TransactionBuilder which should be used in `Transaction.submitTransaction` - */ -export const sendToManyV2 = async ( +// it is only used by the evm module +export const sendToManyToEvm = async ( walletInfo: WalletKeypar, recieversList: TransferReciever[], assetCode: string, @@ -222,13 +185,23 @@ export const sendToManyV2 = async ( const asset = await AssetApi.getAssetDetails(assetCode); const decimals = asset.assetRules.decimals; - const minimalFee = await AssetApi.getMinimalFee(); - const toPublickey = await AssetApi.getFraPublicKey(); - const fraAssetCode = ledger.fra_get_asset_code(); const isFraTransfer = assetCode === fraAssetCode; - const recieversInfo: Fee.ReciverInfoV2 = {}; + let extraOutput = 0; + + if (!isFraTransfer) { + // if it is not an fra transfer, we have one more asset, hence 1 more output, + // so we need to account on it in the fee + extraOutput = 1; + } + + const outputsCount = recieversList.length + extraOutput; + + const minimalFee = await AssetApi.getMinimalFee(outputsCount); + const toPublickey = await AssetApi.getFraPublicKey(); + + const recieversInfo: Fee.ReciverInfoEvm = {}; recieversInfo[fraAssetCode] = [ { @@ -255,7 +228,7 @@ export const sendToManyV2 = async ( recieversInfo[assetCode].push(recieverInfoItem); }); - const transferOperationBuilder = await Fee.buildTransferOperationV2(walletInfo, recieversInfo); + const transferOperationBuilder = await Fee.buildTransferOperationMultiAsset(walletInfo, recieversInfo); let receivedTransferOperation = ''; @@ -433,7 +406,7 @@ export const sendToAddress = async ( * * @returns TransactionBuilder which should be used in `Transaction.submitTransaction` */ -export const sendToAddressV2 = async ( +export const sendToAddressToEvm = async ( walletInfo: WalletKeypar, address: string, amount: string, @@ -444,7 +417,7 @@ export const sendToAddressV2 = async ( const recieversInfo = [{ reciverWalletInfo: toWalletInfoLight, amount }]; - return sendToManyV2(walletInfo, recieversInfo, assetCode, assetBlindRules); + return sendToManyToEvm(walletInfo, recieversInfo, assetCode, assetBlindRules); }; export const sendToPublicKey = async ( @@ -857,8 +830,10 @@ export const brc20Mint = async (wallet: WalletKeypar, params: MintParams) => { const toPublickey = await AssetApi.getFraPublicKey(); + const totalMemos = params.repeat ?? 1; + const feeRecieverInfoItem = { - utxoNumbers: params.fee ? BigInt(params.fee) : BigInt(getFeeByMemoAndOutput(params.repeat ?? 1)), + utxoNumbers: params.fee ? BigInt(params.fee) : BigInt(getFeeByMemoAndOutput(totalMemos, totalMemos + 2)), toPublickey, }; @@ -870,7 +845,7 @@ export const brc20Mint = async (wallet: WalletKeypar, params: MintParams) => { wallet, params.tick, params.amt, - params.repeat ?? 1, + totalMemos, transferOperationBuilder, ); @@ -894,7 +869,7 @@ export const brc20Transfer = async (wallet: WalletKeypar, params: Brc20TransferP const toPublickey = await AssetApi.getFraPublicKey(); const feeRecieverInfoItem = { - utxoNumbers: params.fee ? BigInt(params.fee) : BigInt(getFeeByMemoAndOutput(1)), + utxoNumbers: params.fee ? BigInt(params.fee) : BigInt(getFeeByMemoAndOutput(1, 3)), toPublickey, }; diff --git a/src/cli/commands/batchBuyTicket.ts b/src/cli/commands/batchBuyTicket.ts index e14dc4b8..3a12f55e 100644 --- a/src/cli/commands/batchBuyTicket.ts +++ b/src/cli/commands/batchBuyTicket.ts @@ -75,29 +75,6 @@ const getRecordsList = (parsedListOfRecords: neatCsv.Row[]): DataRecord[] => { return recordsList; }; -// const writeDistributionLog = async (sendInfo: ProcessedRecordInfo[], errorsInfo: ErrorsInfo) => { -// const dateStamp = now(); -// -// const resultFilePath = `${resultFileLogName}_${dateStamp}.txt`; -// -// try { -// await writeFile( -// resultFilePath, -// JSON.stringify( -// { -// date: dateStamp, -// sendInfo, -// errorsInfo, -// }, -// null, -// 2, -// ), -// ); -// } catch (error) { -// throw new Error(`can not write result log for "${resultFilePath}", "${(error as Error).message}"`); -// } -// }; - export const runBatchBuyTicket = async ( filePath: string, repeatTimes: number, @@ -196,7 +173,7 @@ export const runBatchBuyTicket = async ( console.log('selectedOrder', selectedOrder); - const { id: listId, amount: amt, fraPrice } = selectedOrder; + const { id: listId, fraPrice } = selectedOrder; const { txHash, buyResult } = await buy(listId, fraPrice, hostUrl, walletFrom); log(`${i}: Tx hash is "${txHash}"`); @@ -251,7 +228,6 @@ export const runBatchBuyTicket = async ( totalRepetitions += 1; } while (totalRepetitions <= repeatTimes); - // await writeDistributionLog(processedInfo, errorsInfo); await writeDistributionLog(processedInfo, errorsInfo, resultFileLogName); log(`Command Log `, JSON.stringify(processedInfo, null, 2)); diff --git a/src/cli/commands/batchBuyTicketUnits.ts b/src/cli/commands/batchBuyTicketUnits.ts index fdc4e319..d0f616fd 100644 --- a/src/cli/commands/batchBuyTicketUnits.ts +++ b/src/cli/commands/batchBuyTicketUnits.ts @@ -230,7 +230,6 @@ export const runBatchBuyTicketUnits = async ( totalRepetitions += 1; } while (totalRepetitions <= repeatTimes); - // await writeDistributionLog(processedInfo, errorsInfo); await writeDistributionLog(processedInfo, errorsInfo, resultFileLogName); log(`Command Log `, JSON.stringify(processedInfo, null, 2)); diff --git a/src/cli/commands/batchMintTicket.ts b/src/cli/commands/batchMintTicket.ts index 132aca95..06030588 100644 --- a/src/cli/commands/batchMintTicket.ts +++ b/src/cli/commands/batchMintTicket.ts @@ -100,11 +100,11 @@ export const runBatchMintTicket = async (filePath: string, fromPk: string) => { const { tick, amt, repeat, rndSecMin, rndSecMax } = currentRecord; const waitTimeInMSec = getRandomNumber(rndSecMin * 1000, rndSecMax * 1000); - const txHash = await sendBRC20MintTx(tick, amt, repeat, walletFrom); + const submittedTxHash = await sendBRC20MintTx(tick, amt, repeat, walletFrom); - log(`${i}: Tx hash is "${txHash}"`); + log(`${i}: Submitted Tx hash is "${submittedTxHash}"`); - if (!txHash) { + if (!submittedTxHash) { const rowData = JSON.stringify(currentRecord); const errorMessage = `${i}: !! ERROR!! - potential error while sending a mint transaction with this data "${rowData}". Error: - txHash is empty.`; @@ -112,14 +112,17 @@ export const runBatchMintTicket = async (filePath: string, fromPk: string) => { log(errorMessage); } - const { txDetailsResponse, txDetailsResponseError } = await getTxDetailsByHash(txHash); + const { + txDetailsResponse: txDetailsResponseSubmitted, + txDetailsResponseError: txDetailsResponseErrorSumbitted, + } = await getTxDetailsByHash(submittedTxHash); processedInfo.push({ - txHash, + txHash: submittedTxHash, dataItem: { ...currentRecord }, chosenRandomWaitingTimeSec: `${(waitTimeInMSec / 1000).toFixed(1)}`, - txDetailsResponse, - txDetailsResponseError, + txDetailsResponseSubmitted, + txDetailsResponseErrorSumbitted, }); log( diff --git a/src/cli/commands/batchSendFra.ts b/src/cli/commands/batchSendFra.ts index b80c89ae..40ddc918 100644 --- a/src/cli/commands/batchSendFra.ts +++ b/src/cli/commands/batchSendFra.ts @@ -1,14 +1,14 @@ import neatCsv from 'neat-csv'; -import sleep from 'sleep-promise'; import { Asset, Keypair, Transaction } from '../../api'; import { TransferReciever } from '../../api/transaction'; import { log, readFile } from '../../services/utils'; -import { writeDistributionLog } from './utils'; +import { writeDistributionLog, getTxDetailsByHash, getTxHashSwapByHash } from './utils'; const resultFileLogName = `batchFraSendLog`; interface SendInfo { - txHash: string; + submittedTxHash: string; + swappedTxHash: string; tokenReceivers: TokenReceiver[]; } @@ -18,8 +18,6 @@ interface TokenReceiver { } type ErrorsInfo = string[]; -const waitingTimeBeforeCheckTxStatus = 32000; - const chunk = (arr: T[], size: number): T[][] => Array.from({ length: Math.ceil(arr.length / size) }, (_v, i) => arr.slice(i * size, i * size + size)); @@ -55,30 +53,6 @@ const getRecieversList = (parsedListOfRecievers: neatCsv.Row[]): TokenReceiver[] return receiversList; }; -// const writeDistributionLog = async (sendInfo: SendInfo[], errorsInfo: ErrorsInfo) => { -// const dateStamp = now(); -// -// const resultFilePath = `batchFraSendLog_${dateStamp}.txt`; -// -// try { -// await writeFile( -// resultFilePath, -// JSON.stringify( -// { -// date: dateStamp, -// distributionType: 'FRA', -// sendInfo, -// errorsInfo, -// }, -// null, -// 2, -// ), -// ); -// } catch (error) { -// throw new Error(`can not write result log for "${resultFilePath}", "${(error as Error).message}"`); -// } -// }; - const processTransferRecieverItem = async (tokenReceiver: TokenReceiver): Promise => { const reciverWalletInfo = await Keypair.getAddressPublicAndKey(tokenReceiver.address); return { reciverWalletInfo, amount: tokenReceiver.numbers }; @@ -104,13 +78,11 @@ const sendTxToAccounts = async ( assetBlindRules, ); - const txHash = await Transaction.submitTransaction(transactionBuilder); - - console.log('🚀 ~ file: batchSendFra.ts ~ line 132 ~ txHash', txHash); + const submittedTxHash = await Transaction.submitTransaction(transactionBuilder); - await sleep(waitingTimeBeforeCheckTxStatus); + const { txHash } = await getTxHashSwapByHash(submittedTxHash); - return { txHash }; + return { txHash, submittedTxHash }; }; export const runBatchSendFra = async (filePath: string, fromPk: string, numberOfOutputs: number) => { @@ -153,14 +125,26 @@ export const runBatchSendFra = async (filePath: string, fromPk: string, numberOf for (let currentChunk of receiversChunks) { try { const recieversInfo = await processTransferRecievers(currentChunk); - const { txHash } = await sendTxToAccounts(walletFrom, recieversInfo, fraCode); + const { txHash: swappedTxHash, submittedTxHash } = await sendTxToAccounts( + walletFrom, + recieversInfo, + fraCode, + ); + + const { + txDetailsResponse: txDetailsResponseSwapped, + txDetailsResponseError: txDetailsResponseErrorSwapped, + } = await getTxDetailsByHash(swappedTxHash); sendInfo.push({ - txHash, + submittedTxHash, + swappedTxHash, + txDetailsResponseSwapped, + txDetailsResponseErrorSwapped, tokenReceivers: { ...currentChunk }, }); - log(`${i + 1}: Tx hash is "${txHash}"`); + log(`${i + 1}: Tx hash (submitted) is "${submittedTxHash}", Tx hash (swapped) is "${swappedTxHash}"`); } catch (error) { const addresses = currentChunk.map(item => item.address).join(','); const errorMessage = `${ @@ -175,7 +159,6 @@ export const runBatchSendFra = async (filePath: string, fromPk: string, numberOf i += 1; } - // await writeDistributionLog(sendInfo, errorsInfo); await writeDistributionLog(sendInfo, errorsInfo, resultFileLogName); log(`Batch Send Log `, JSON.stringify(sendInfo, null, 2)); diff --git a/src/cli/commands/getBalanceFromWallets.ts b/src/cli/commands/getBalanceFromWallets.ts index 340ca818..55635601 100644 --- a/src/cli/commands/getBalanceFromWallets.ts +++ b/src/cli/commands/getBalanceFromWallets.ts @@ -9,7 +9,6 @@ const processRecord = async (index: number, privateKey: string) => { const walletInfo = await Keypair.restoreFromPrivateKey(privateKey.trim(), password); const balance = await Account.getBalance(walletInfo); - // const result = await Api.Network.getBrc20BalanceAll(account.account); const result = `${index}. Balance for "${walletInfo.address}" is ${balance}`; diff --git a/src/cli/commands/utils.ts b/src/cli/commands/utils.ts index cf2dc987..2b869153 100644 --- a/src/cli/commands/utils.ts +++ b/src/cli/commands/utils.ts @@ -1,6 +1,5 @@ import { now, writeFile } from '../../services/utils'; -import { Network } from '../../api'; -import { waitForBlockChange } from '../../evm/testHelpers'; +export { getTxHashSwapByHash, getTxDetailsByHash } from '../../services/txHelper'; export const writeDistributionLog = async (sendInfo: T[], errorsInfo: E, resultFileLogName: string) => { const dateStamp = now(); @@ -30,13 +29,3 @@ export const writeDistributionLog = async (sendInfo: T[], errorsInfo: E, r throw new Error(`can not write result log for "${resultFilePath}", "${(error as Error).message}"`); } }; - -export const getTxDetailsByHash = async (txHash: string, blocksToWait = 1) => { - await waitForBlockChange(blocksToWait); - const txDetailsResult = await Network.getTransactionDetails(txHash); - const { response: txDetailsResponse } = txDetailsResult; - return { - txDetailsResponse: txDetailsResponse?.result, - txDetailsResponseError: txDetailsResult?.error, - }; -}; diff --git a/src/run-balance.ts b/src/run-balance.ts index e178b9f5..99553667 100644 --- a/src/run-balance.ts +++ b/src/run-balance.ts @@ -7,7 +7,7 @@ import Sdk from './Sdk'; import { toWei } from './services/bigNumber'; import { FileCacheProvider, MemoryCacheProvider } from './services/cacheStore/providers'; import * as Fee from './services/fee'; -import { getFeeInputs } from './services/fee'; +// import { getFeeInputs } from './services/fee'; import { getLedger } from './services/ledger/ledgerWrapper'; import { getRandomNumber } from './services/utils'; import * as UtxoHelper from './services/utxoHelper'; diff --git a/src/run.ts b/src/run.ts index 36e7b109..3a584b09 100644 --- a/src/run.ts +++ b/src/run.ts @@ -17,8 +17,8 @@ import * as NetworkTypes from './api/network/types'; import { waitForBlockChange } from './evm/testHelpers'; import { FileCacheProvider, MemoryCacheProvider } from './services/cacheStore/providers'; import * as Fee from './services/fee'; -import * as FeeUtils from './services/feeUtils'; -import { getFeeInputs } from './services/fee'; +import * as TxHelper from './services/txHelper'; +// import { getFeeInputs } from './services/fee'; import { getLedger } from './services/ledger/ledgerWrapper'; import { getRandomNumber, @@ -263,10 +263,10 @@ const getTransferBuilderOperation = async () => { return; } - const utxoDataList = await UtxoHelper.addUtxo(walletInfo, sids); - const fraCode = await Asset.getFraAssetCode(); + const utxoDataList = await UtxoHelper.addUtxo(walletInfo, sids, fraCode); + const amount = BigInt(3); const sendUtxoList = UtxoHelper.getSendUtxo(fraCode, amount, utxoDataList); @@ -1307,8 +1307,8 @@ const getFee = async () => { const walletInfo = await Keypair.restoreFromPrivateKey(pkey, password); console.log('🚀 ~ file: run.ts ~ line 1299 ~ getFee ~ walletInfo', walletInfo); - const feeInputsPayload = await getFeeInputs(walletInfo, [11], true); - console.log('🚀 ~ file: run.ts ~ line 1301 ~ getFee ~ feeInputsPayload', feeInputsPayload); + // const feeInputsPayload = await getFeeInputs(walletInfo, [11], true); + // console.log('🚀 ~ file: run.ts ~ line 1301 ~ getFee ~ feeInputsPayload', feeInputsPayload); }; async function approveToken() { @@ -1828,15 +1828,15 @@ const brc20ApiTest = async () => { }; const dateTest = async () => { - const minimalFee = await Asset.getMinimalFee(); - console.log('ledger minimalFee', minimalFee); - - const minimalFeeV2 = FeeUtils.getFeeByMemoAndOutput(); - console.log('minimalFeeV2', minimalFeeV2); - console.log(minimalFee === BigInt(minimalFeeV2)); - const minimalFeeV2Human = FeeUtils.getFeeByMemoAndOutputInString(1, 2); - console.log('minimalFeeV2Human', minimalFeeV2Human); + const submittedTxHash = '602c3aba20f2f9457e6576b28e88a3fa2dc20e908d6b595e573149c8f5c0c6e9'; + const swappedTxHash = 'CD2DB9E546406E013054F514AE8A5C2041439706504C3C6977EC139D85EFF195'; + + const detailsSendSubmitted = await TxHelper.getTxDetailsByHash(submittedTxHash); + const detailsSendSwapped = await TxHelper.getTxDetailsByHash(swappedTxHash); + console.log('detailsSendSubmitted', detailsSendSubmitted); + console.log('detailsSendSwapped', detailsSendSwapped); }; + dateTest(); // prism(); diff --git a/src/services/brc20.ts b/src/services/brc20.ts index 7bd7d2e3..e9ff6ef8 100644 --- a/src/services/brc20.ts +++ b/src/services/brc20.ts @@ -1,6 +1,6 @@ import { Asset, Keypair, Transaction, Network } from '../api'; -import { delay } from '../services/utils'; -import { getFeeByMemoAndOutput, getFeeByMemoAndOutputInString } from '../services/feeUtils'; +import { getFeeByMemoAndOutputInString } from '../services/feeUtils'; +import { getTxHashSwapByHash } from '../services/txHelper'; import axios, { AxiosHeaders } from 'axios'; @@ -58,6 +58,7 @@ type TradingListingListResponse = { totalPages: number; data: TradingListingDetail[]; }; + const brcEnpoints = { balance: '/balance', balanceAll: '/balance/all', @@ -65,7 +66,6 @@ const brcEnpoints = { tokenDetail: '/token/:id/detail', // not used in sdk tokenHolders: '/token/userRank', // not used in sdk tokenDeployCheck: '/token/check/:ticker', - addList: '/addList', confirmList: '/confirmList', cancelList: '/cancelList', @@ -213,9 +213,11 @@ export const addList = async ( if (listId) { const receiver = await getMiddleman(listId, baseUrl); + const amt = getFeeByMemoAndOutputInString(2, 10); + const fraTx = await fraTransfer( { - amt: getFeeByMemoAndOutputInString(1, 2), + amt, receiver, }, walletInfoFrom, @@ -292,7 +294,7 @@ const sendFRATransferTx = async (data: FRATransferType, walletInfoFrom: Keypair. isAmountBlind: false, }; - const transactionBuilder = await Transaction.sendToAddressV2( + const transactionBuilder = await Transaction.sendToAddress( walletInfoFrom, receiver, `${amt}`, @@ -300,21 +302,13 @@ const sendFRATransferTx = async (data: FRATransferType, walletInfoFrom: Keypair. assetBlindRules, ); - console.log('will send a sendFRATransferTx transactionBuilder (this will fail now)', transactionBuilder); - const result = await Transaction.submitTransaction(transactionBuilder); + const submittedTxHash = await Transaction.submitTransaction(transactionBuilder); - console.log('submit tx result (for sending fra), ', result); + const { txHash } = await getTxHashSwapByHash(submittedTxHash); - let txHash = ''; + console.log('submit tx hash (for sending fra), ', submittedTxHash); + console.log('swapped tx hash (for sending fra), ', txHash); - while (txHash === '') { - await delay(5000); - const response = await Network.getHashSwap(result); - const [tx] = response?.response?.result?.txs ?? []; - console.log('tx hash swap result after waiting 5sec', tx); - const { hash } = tx || {}; - txHash = tx ? hash : ''; - } return txHash; } catch (er) { console.log('sendFRATransferTx err', er); diff --git a/src/services/fee.ts b/src/services/fee.ts index 1108df43..cd04a423 100644 --- a/src/services/fee.ts +++ b/src/services/fee.ts @@ -1,11 +1,12 @@ import { WalletKeypar } from '../api/keypair'; import * as Network from '../api/network'; +import { CacheItem } from './cacheStore/types'; import * as AssetApi from '../api/sdkAsset'; import * as FindoraWallet from '../types/findoraWallet'; import { getLedger } from './ledger/ledgerWrapper'; import { ClientAssetRecord, - FeeInputs, + // FeeInputs, OwnerMemo, TracingPolicies, TransferOperationBuilder, @@ -14,7 +15,16 @@ import { XfrPublicKey, } from './ledger/types'; -import { addUtxo, addUtxoInputs, getSendUtxo, UtxoInputParameter, UtxoInputsInfo } from './utxoHelper'; +import { + addUtxo, + addUtxoInputs, + getSendUtxo, + UtxoInputParameter, + UtxoInputsInfo, + getCachedItemsForAddress, + updateUtxoCacheForWalletAddress, + getCacheEntryNameForAddress, +} from './utxoHelper'; interface FeeInputPayloadType { txoRef: TxoRef; @@ -30,6 +40,11 @@ export interface ReciverInfo { assetBlindRules?: AssetApi.AssetBlindRules; } +// allows to have a multi asset recieversInfo , with the asset code as key +export interface ReciverInfoEvm { + [key: string]: ReciverInfo[]; +} + export const getEmptyTransferBuilder = async (): Promise => { const ledger = await getLedger(); @@ -137,7 +152,7 @@ export const getTransferOperation = async ( } }); - if (inputAmount > utxoNumbers) { + if ((inputAmount as bigint) > utxoNumbers) { const numberToSubmit = BigInt(Number(inputAmount) - Number(utxoNumbers)); if (isTraceable) { @@ -225,45 +240,45 @@ export const buildTransferOperationWithFee = async ( }; // used in triple masking -export const getFeeInputs = async ( - walletInfo: WalletKeypar, - excludeSids: number[], - _isBarToAbar: boolean, -): Promise => { - const ledger = await getLedger(); - - const sidsResult = await Network.getOwnedSids(walletInfo.publickey); - - const { response: sids } = sidsResult; - - if (!sids) { - throw new Error('No sids were fetched'); - } - - const filteredSids = sids.filter(sid => !excludeSids.includes(sid)); - //const filteredSids = sids.filter(sid => sid !== excludeSid); - - const minimalFee = await AssetApi.getMinimalFee(); - - console.log('🚀 ~ file: fee.ts ~ line 263 ~ abar minimalFee', minimalFee); - - const fraAssetCode = await AssetApi.getFraAssetCode(); - - const utxoDataList = await addUtxo(walletInfo, filteredSids); - const sendUtxoList = getSendUtxo(fraAssetCode, minimalFee, utxoDataList); - const utxoInputsInfo = await addUtxoInputs(sendUtxoList); - - const feeInputsPayload = await getPayloadForFeeInputs(walletInfo, utxoInputsInfo); - - let feeInputs = ledger.FeeInputs.new(); - - feeInputsPayload.forEach(payloadItem => { - const { amount, txoRef, assetRecord, ownerMemo, keypair } = payloadItem; - feeInputs = feeInputs.append2(BigInt(amount.toString()), txoRef, assetRecord, ownerMemo, keypair); - }); - - return feeInputs; -}; +// export const getFeeInputs = async ( +// walletInfo: WalletKeypar, +// excludeSids: number[], +// _isBarToAbar: boolean, +// ): Promise => { +// const ledger = await getLedger(); +// +// const sidsResult = await Network.getOwnedSids(walletInfo.publickey); +// +// const { response: sids } = sidsResult; +// +// if (!sids) { +// throw new Error('No sids were fetched'); +// } +// +// const filteredSids = sids.filter(sid => !excludeSids.includes(sid)); +// //const filteredSids = sids.filter(sid => sid !== excludeSid); +// +// const minimalFee = await AssetApi.getMinimalFee(); +// +// console.log('🚀 ~ file: fee.ts ~ line 263 ~ abar minimalFee', minimalFee); +// +// const fraAssetCode = await AssetApi.getFraAssetCode(); +// +// const utxoDataList = await addUtxo(walletInfo, filteredSids); +// const sendUtxoList = getSendUtxo(fraAssetCode, minimalFee, utxoDataList); +// const utxoInputsInfo = await addUtxoInputs(sendUtxoList); +// +// const feeInputsPayload = await getPayloadForFeeInputs(walletInfo, utxoInputsInfo); +// +// let feeInputs = ledger.FeeInputs.new(); +// +// feeInputsPayload.forEach(payloadItem => { +// const { amount, txoRef, assetRecord, ownerMemo, keypair } = payloadItem; +// feeInputs = feeInputs.append2(BigInt(amount.toString()), txoRef, assetRecord, ownerMemo, keypair); +// }); +// +// return feeInputs; +// }; // creates an istance of a TransferOperationBuilder to transfer tokens based on recieversInfo export const buildTransferOperation = async ( @@ -279,15 +294,17 @@ export const buildTransferOperation = async ( throw new Error('No sids were fetched'); } + let transferOperationBuilder = await getEmptyTransferBuilder(); + const totalUtxoNumbers = recieversInfo.reduce((acc, receiver) => { return BigInt(Number(receiver.utxoNumbers) + Number(acc)); }, BigInt(0)); - const utxoDataList = await addUtxo(walletInfo, sids); + const utxoDataList = await addUtxo(walletInfo, sids, assetCode); + const sendUtxoList = getSendUtxo(assetCode, totalUtxoNumbers, utxoDataList); const utxoInputsInfo = await addUtxoInputs(sendUtxoList); - let transferOperationBuilder = await getEmptyTransferBuilder(); transferOperationBuilder = await getTransferOperation( walletInfo, utxoInputsInfo, @@ -299,48 +316,6 @@ export const buildTransferOperation = async ( return transferOperationBuilder; }; -export interface ReciverInfoV2 { - [key: string]: ReciverInfo[]; -} - -// creates an istance of a TransferOperationBuilder to transfer tokens based on recieversInfo -export const buildTransferOperationV2 = async ( - walletInfo: WalletKeypar, - recieversInfo: ReciverInfoV2, -): Promise => { - const sidsResult = await Network.getOwnedSids(walletInfo.publickey); - - const { response: sids } = sidsResult; - - if (!sids) { - throw new Error('No sids were fetched'); - } - - let transferOperationBuilder = await getEmptyTransferBuilder(); - - for (const assetCodeType of Object.keys(recieversInfo)) { - const assetCodeItem = recieversInfo[assetCodeType]; - - const totalUtxoNumbers = assetCodeItem.reduce((acc, receiver) => { - return BigInt(Number(receiver.utxoNumbers) + Number(acc)); - }, BigInt(0)); - - const utxoDataList = await addUtxo(walletInfo, sids); - const sendUtxoList = getSendUtxo(assetCodeType, totalUtxoNumbers, utxoDataList); - const utxoInputsInfo = await addUtxoInputs(sendUtxoList); - - transferOperationBuilder = await getTransferOperation( - walletInfo, - utxoInputsInfo, - assetCodeItem, - assetCodeType, - transferOperationBuilder, - ); - } - - return transferOperationBuilder; -}; - // creates an istance of a TransferOperationBuilder to transfer tokens based on recieversInfo export const buildTransferOperationV3 = async ( walletInfo: WalletKeypar, @@ -362,13 +337,42 @@ export const buildTransferOperationV3 = async ( }, BigInt(0)); let total = Number(totalUtxoNumbers); + + const cacheDataToSave: CacheItem = {}; + const utxoDataCache = await getCachedItemsForAddress(walletInfo.address); + + const nonCachedSids = []; + const utxoDataList = []; + for (const sid of sids) { + const cachedItem = utxoDataCache?.[`sid_${sid}`]; + + // we would need to fetch it + if (!cachedItem) { + nonCachedSids.push(sid); + } + + if (cachedItem) { + // if we have cache but it is not spent, we need fetch to check + if (cachedItem.body.amount !== 0) { + nonCachedSids.push(sid); + } + cacheDataToSave[`sid_${sid}`] = cachedItem; + } + } + + for (const sid of nonCachedSids) { const [{ response: utxoData }, { response: memoData }] = await Promise.all([ Network.getUtxo(sid), Network.getOwnerMemo(sid), ]); - if (!utxoData || utxoData.utxo.record.amount.NonConfidential === '0') continue; + // we only continue here in case of error. if amount is 0 we still need to process it + // to be able to save to cache and avoid fetching it from the network next time. + // we only save it to cache, we dont add it to the utxoDataList + if (!utxoData) { + continue; + } const assetRecord = ledger.ClientAssetRecord.from_json(utxoData.utxo); const ownerMemo = memoData ? ledger.OwnerMemo.from_json(memoData) : undefined; @@ -379,21 +383,47 @@ export const buildTransferOperationV3 = async ( ); const decryptedAsetType = ledger.asset_type_from_jsvalue(decryptAssetData.asset_type); + if (decryptedAsetType === assetCode) { total -= Number(decryptAssetData.amount); decryptAssetData.asset_type = decryptedAsetType; decryptAssetData.amount = BigInt(decryptAssetData.amount); - utxoDataList.push({ + + const utxoItem = { address: walletInfo.address, sid, body: decryptAssetData || {}, utxo: { ...utxoData.utxo }, ownerMemo: ownerMemo?.clone(), memoData, - }); + }; + + // we have to save decrypted utxo item with proper asset code to cache. + // even if amount is 0. because this way , this spent utxo wont be fetched from the + // network and will be read from cache + cacheDataToSave[`sid_${sid}`] = utxoItem; + + // this is the same as comparing non NonConfidential amount but it is covering encrypted utxo + // it it is 0 we dont add it to the list + if (decryptAssetData.amount === BigInt(0)) { + continue; + } + + // we only add it to the list if amount > 0, as per previous if statement + utxoDataList.push(utxoItem); } if (total <= 0) break; } + + await updateUtxoCacheForWalletAddress(cacheDataToSave, walletInfo.address); + + // we also filtering out wrong asset code and 0 amount withing the getSendUtxo mehod + // by calling + // + // filteredUtxoList = filterUtxoByCode(code, utxoDataList); + // and + // filteredNonZeroUtxoList = filterZeroAmountUtxo(filteredUtxoList); + // const sendUtxoList = getSendUtxo(assetCode, totalUtxoNumbers, utxoDataList); const utxoInputsInfo = await addUtxoInputs(sendUtxoList); @@ -408,3 +438,41 @@ export const buildTransferOperationV3 = async ( return transferOperationBuilder; }; + +// diffence with buildTransferOperation is that recieversInfo here has an assect code in it +export const buildTransferOperationMultiAsset = async ( + walletInfo: WalletKeypar, + recieversInfo: ReciverInfoEvm, +): Promise => { + const sidsResult = await Network.getOwnedSids(walletInfo.publickey); + + const { response: sids } = sidsResult; + + if (!sids) { + throw new Error('No sids were fetched'); + } + + let transferOperationBuilder = await getEmptyTransferBuilder(); + + for (const assetCodeType of Object.keys(recieversInfo)) { + const assetCodeItem = recieversInfo[assetCodeType]; + + const totalUtxoNumbers = assetCodeItem.reduce((acc, receiver) => { + return BigInt(Number(receiver.utxoNumbers) + Number(acc)); + }, BigInt(0)); + + const utxoDataList = await addUtxo(walletInfo, sids, assetCodeType); + const sendUtxoList = getSendUtxo(assetCodeType, totalUtxoNumbers, utxoDataList); + const utxoInputsInfo = await addUtxoInputs(sendUtxoList); + + transferOperationBuilder = await getTransferOperation( + walletInfo, + utxoInputsInfo, + assetCodeItem, + assetCodeType, + transferOperationBuilder, + ); + } + + return transferOperationBuilder; +}; diff --git a/src/services/feeUtils.spec.ts b/src/services/feeUtils.spec.ts index 4a1a99f1..51abd6dc 100644 --- a/src/services/feeUtils.spec.ts +++ b/src/services/feeUtils.spec.ts @@ -17,100 +17,222 @@ describe(`FeeUtils tests`, () => { () => { const result = FeeUtils.getFeeByMemoAndOutput(); - const expected = 10_000_000; // 10 FRA + const expected = 10_000_000; expect(result).toEqual(expected); }, extendedExecutionTimeout, ); - it( - 'with given memo=1 it returns 30 FRA fee', + 'with given memo=1 it returns 12 FRA fee', () => { const result = FeeUtils.getFeeByMemoAndOutput(1); - const expected = 30_000_000; // 30 FRA + const expected = 12_000_000; expect(result).toEqual(expected); }, extendedExecutionTimeout, ); it( - 'with given memo=2 it returns 70 FRA fee', + 'with given memo=2 it returns 14 FRA fee', () => { const result = FeeUtils.getFeeByMemoAndOutput(2); - const expected = 70_000_000; // 70 FRA + const expected = 14_000_000; expect(result).toEqual(expected); }, extendedExecutionTimeout, ); it( - 'with given memo=3 it returns 110 FRA fee', + 'with given memo=3 it returns 16 FRA fee', () => { const result = FeeUtils.getFeeByMemoAndOutput(3); - const expected = 110_000_000; // 110 FRA + const expected = 16_000_000; expect(result).toEqual(expected); }, extendedExecutionTimeout, ); - + // + // it( + // 'with given memo=2 it returns 70 FRA fee', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(2); + // + // const expected = 70_000_000; // 70 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); + // + // it( + // 'with given memo=3 it returns 110 FRA fee', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(3); + // + // const expected = 110_000_000; // 110 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); + // + // it( + // 'with given memo=3 it returns 310 FRA fee', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(8); + // + // const expected = 310_000_000; // 310 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); + }); + describe('providing both memo count, and outputs count', () => { it( - 'with given memo=3 it returns 310 FRA fee', + 'with memo = 0 and output = 0 it returns 10 FRA fee', () => { - const result = FeeUtils.getFeeByMemoAndOutput(8); + const result = FeeUtils.getFeeByMemoAndOutput(0, 0); - const expected = 310_000_000; // 310 FRA + const expected = 10_000_000; expect(result).toEqual(expected); }, extendedExecutionTimeout, ); - }); - describe('providing both memo count, and outputs count', () => { it( - 'with memo = 0 and output it returns 10 FRA fee', + 'with memo = 0 and output = 1 it returns 10 FRA fee', () => { - const result = FeeUtils.getFeeByMemoAndOutput(0, 0); + const result = FeeUtils.getFeeByMemoAndOutput(0, 1); - const expected = 10_000_000; // 10 FRA + const expected = 10_000_000; expect(result).toEqual(expected); }, extendedExecutionTimeout, ); + it( + 'with memo = 0 and output = 2 it returns 12 FRA fee', + () => { + const result = FeeUtils.getFeeByMemoAndOutput(0, 2); + const expected = 12_000_000; + expect(result).toEqual(expected); + }, + extendedExecutionTimeout, + ); it( - 'with given memo=0 and 3 outputs it returns 70 FRA fee', + 'with memo = 0 and output = 3 it returns 14 FRA fee', () => { const result = FeeUtils.getFeeByMemoAndOutput(0, 3); - const expected = 70_000_000; // 70 FRA + const expected = 14_000_000; + expect(result).toEqual(expected); + }, + extendedExecutionTimeout, + ); + it( + 'with memo = 0 and output = 10 it returns 28 FRA fee', + () => { + const result = FeeUtils.getFeeByMemoAndOutput(0, 10); + + const expected = 28_000_000; expect(result).toEqual(expected); }, extendedExecutionTimeout, ); + it( + 'with memo = 0 and output = 20 it returns 48 FRA fee', + () => { + const result = FeeUtils.getFeeByMemoAndOutput(0, 20); + const expected = 48_000_000; + expect(result).toEqual(expected); + }, + extendedExecutionTimeout, + ); + + it( + 'with memo = 1 and output = 7 it returns 24 FRA fee', + () => { + const result = FeeUtils.getFeeByMemoAndOutput(1, 7); + + const expected = 24_000_000; + expect(result).toEqual(expected); + }, + extendedExecutionTimeout, + ); + it( + 'with memo = 2 and output = 7 it returns 26 FRA fee', + () => { + const result = FeeUtils.getFeeByMemoAndOutput(2, 7); + + const expected = 26_000_000; + expect(result).toEqual(expected); + }, + extendedExecutionTimeout, + ); + it( + 'with memo = 3 and output = 7 it returns 28 FRA fee', + () => { + const result = FeeUtils.getFeeByMemoAndOutput(3, 7); + + const expected = 28_000_000; + expect(result).toEqual(expected); + }, + extendedExecutionTimeout, + ); it( - 'with given memo=1 and output=2 it returns 70 FRA fee (buy brc20 fra to middle man)', + 'with memo = 2 and output = 8 it returns 28 FRA fee', () => { - const result = FeeUtils.getFeeByMemoAndOutput(1, 2); + const result = FeeUtils.getFeeByMemoAndOutput(2, 8); - const expected = 70_000_000; // 70 FRA + const expected = 28_000_000; expect(result).toEqual(expected); }, extendedExecutionTimeout, ); it( - 'with given memo=1 and output=4 3 it returns 110 FRA fee', + 'with memo = 2 and output = 10 it returns 32 FRA fee', () => { - const result = FeeUtils.getFeeByMemoAndOutput(1, 4); + const result = FeeUtils.getFeeByMemoAndOutput(2, 10); - const expected = 110_000_000; // 110 FRA + const expected = 32_000_000; expect(result).toEqual(expected); }, extendedExecutionTimeout, ); + // it( + // 'with given memo=0 and 3 outputs it returns 70 FRA fee', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(0, 3); + // + // const expected = 70_000_000; // 70 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); + // + // it( + // 'with given memo=1 and output=2 it returns 70 FRA fee (buy brc20 fra to middle man)', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(1, 2); + // + // const expected = 70_000_000; // 70 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); + // + // it( + // 'with given memo=1 and output=4 3 it returns 110 FRA fee', + // () => { + // const result = FeeUtils.getFeeByMemoAndOutput(1, 4); + // + // const expected = 110_000_000; // 110 FRA + // expect(result).toEqual(expected); + // }, + // extendedExecutionTimeout, + // ); }); }); }); diff --git a/src/services/feeUtils.ts b/src/services/feeUtils.ts index c46fde29..bdd0f461 100644 --- a/src/services/feeUtils.ts +++ b/src/services/feeUtils.ts @@ -1,25 +1,49 @@ -import { fromWei } from './bigNumber'; +import { create as createBigNumber, fromWei, toWei } from './bigNumber'; // this function also exists in the fragments ui, so if this one is updated , that one needs to be update too -export const getFeeByMemoAndOutput = (memoCount = 0, givenOutputCount?: number) => { - const outputCount = memoCount + 2 - 3; - - const outputCountCaluclated = outputCount <= 0 ? 0 : outputCount; - const outputCountToUse = givenOutputCount ? givenOutputCount : outputCountCaluclated; - +export const getFeeByMemoAndOutput = (memoCount = 0, outputCount = 0) => { // @TODO we might want to switch to fetching minimalFeeV1 from the ledger, like in the next line // const fee = ledger.fra_get_minimal_fee(); const minimalFeeV1 = 10_000_000; // 10 FRA - const gasFee = minimalFeeV1 + outputCountToUse * 2 * minimalFeeV1 + memoCount * 2 * minimalFeeV1; + const outputCountCalculated = outputCount + 2 - 3; + const outputCountToUse = outputCount <= 0 ? 0 : outputCountCalculated; + // console.log('oo', oo); + // console.log('outputCountToUse', outputCountToUse); + const gasFee = +createBigNumber(minimalFeeV1) + .plus(toWei(outputCountToUse * 2 + memoCount * 2)) + .toString(); return gasFee; }; // this function also exists in the fragments ui, so if this one is updated , that one needs to be update too export const getFeeByMemoAndOutputInString = (memoCount = 0, givenOutputCount?: number) => { - const gazFee = getFeeByMemoAndOutput(memoCount, givenOutputCount); + // const gazFee = getFeeByMemoAndOutputOriginal(memoCount, givenOutputCount); + // that is 70 fra for 1,2 and I can cancel and buy + // console.log('gazFee O', gazFee); + + const gazFeeN = getFeeByMemoAndOutput(memoCount, givenOutputCount); + + // with 1,2 it is 14 fra, no cancel + // with 1,7 it is 24 fra, no cancel + // with 2,7 it is 26 fra, no cancel + // with 2,10 it is 32 fra, cancel worked and buy worked + + const gazFeeFormatted = fromWei(gazFeeN, 6).toFormat(6); - const gazFeeFormatted = fromWei(gazFee, 6).toFormat(6); return gazFeeFormatted; }; + +export const getFeeByMemoAndOutputOriginal = (memoCount = 0, givenOutputCount?: number) => { + const outputCount = memoCount + 2 - 3; + + const outputCountCaluclated = outputCount <= 0 ? 0 : outputCount; + const outputCountToUse = givenOutputCount ? givenOutputCount : outputCountCaluclated; + + const minimalFeeV1 = 10_000_000; // 10 FRA + + const gasFee = minimalFeeV1 + outputCountToUse * 2 * minimalFeeV1 + memoCount * 2 * minimalFeeV1; + + return gasFee; +}; diff --git a/src/services/txHelper.ts b/src/services/txHelper.ts new file mode 100644 index 00000000..9620f228 --- /dev/null +++ b/src/services/txHelper.ts @@ -0,0 +1,26 @@ +import { Network } from '../api'; +import { waitForBlockChange } from '../evm/testHelpers'; + +export const getTxDetailsByHash = async (txHash: string, blocksToWait = 1) => { + await waitForBlockChange(blocksToWait); + const txDetailsResult = await Network.getTransactionDetails(txHash); + const { response: txDetailsResponse } = txDetailsResult; + return { + txDetailsResponse: txDetailsResponse?.result, + txDetailsResponseError: txDetailsResult?.error, + }; +}; + +export const getTxHashSwapByHash = async (submittedTxHash: string, blocksToWait = 1) => { + let txHash = ''; + + while (txHash === '') { + await waitForBlockChange(blocksToWait); + const response = await Network.getHashSwap(submittedTxHash); + const [tx] = response?.response?.result?.txs ?? []; + const { hash } = tx || {}; + txHash = tx ? hash : ''; + } + + return { txHash }; +}; diff --git a/src/services/utxoHelper.spec.ts b/src/services/utxoHelper.spec.ts index f70b86ea..31b0bf77 100644 --- a/src/services/utxoHelper.spec.ts +++ b/src/services/utxoHelper.spec.ts @@ -763,7 +763,7 @@ describe('utxoHelper (unit test)', () => { const fullPathToCacheEntry = `${Sdk.environment.cachePath}/${CACHE_ENTRIES.UTXO_DATA}_${walletInfo.address}.json`; - const result = await UtxoHelper.addUtxo(walletInfo, addSids); + const result = await UtxoHelper.addUtxo(walletInfo, addSids, 'aaa'); expect(spyCacheRead).toBeCalledWith(fullPathToCacheEntry, Sdk.environment.cacheProvider); expect(spyGetUtxoItem).toBeCalledWith(addSids[0], walletInfo, utxoDataCache.sid_1); @@ -794,7 +794,7 @@ describe('utxoHelper (unit test)', () => { const fullPathToCacheEntry = `${Sdk.environment.cachePath}/${CACHE_ENTRIES.UTXO_DATA}_${walletInfo.address}.json`; - await expect(UtxoHelper.addUtxo(walletInfo, addSids)).rejects.toThrow('Error reading the cache'); + await expect(UtxoHelper.addUtxo(walletInfo, addSids, 'aaa')).rejects.toThrow('Error reading the cache'); expect(spyCacheRead).toBeCalledWith(fullPathToCacheEntry, Sdk.environment.cacheProvider); @@ -846,7 +846,7 @@ describe('utxoHelper (unit test)', () => { const fullPathToCacheEntry = `${Sdk.environment.cachePath}/${CACHE_ENTRIES.UTXO_DATA}_${walletInfo.address}.json`; - const result = await UtxoHelper.addUtxo(walletInfo, addSids); + const result = await UtxoHelper.addUtxo(walletInfo, addSids, 'aaa'); expect(spyCacheRead).toBeCalledWith(fullPathToCacheEntry, Sdk.environment.cacheProvider); expect(spyGetUtxoItem).toHaveBeenNthCalledWith(1, addSids[0], walletInfo, utxoDataCache.sid_1); diff --git a/src/services/utxoHelper.ts b/src/services/utxoHelper.ts index 18c788df..50e70333 100644 --- a/src/services/utxoHelper.ts +++ b/src/services/utxoHelper.ts @@ -79,7 +79,9 @@ const mergeSortUtxoList = (arr: AddUtxoItem[]): AddUtxoItem[] => { }; export const filterUtxoByCode = (code: string, utxoDataList: AddUtxoItem[]): AddUtxoItem[] => { - return utxoDataList.filter(assetItem => assetItem?.body?.asset_type === code); + return utxoDataList.filter(assetItem => { + return assetItem?.body?.asset_type === code; + }); }; export const filterZeroAmountUtxo = (utxoDataList: AddUtxoItem[]): AddUtxoItem[] => { @@ -129,17 +131,16 @@ export const decryptUtxoItem = async ( throw new Error(`Can not open client asset record to decode. Details: "${err.message}"`); } - let decryptedAsetType; + let decryptedAssetType; try { - decryptedAsetType = ledger.asset_type_from_jsvalue(decryptAssetData.asset_type); + decryptedAssetType = ledger.asset_type_from_jsvalue(decryptAssetData.asset_type); } catch (error) { const err: Error = error as Error; throw new Error(`Can not decrypt asset type. Details: "${err.message}"`); } - decryptAssetData.asset_type = decryptedAsetType; - + decryptAssetData.asset_type = decryptedAssetType; decryptAssetData.amount = BigInt(decryptAssetData.amount); const item = { @@ -149,11 +150,47 @@ export const decryptUtxoItem = async ( utxo: { ...utxoData.utxo }, ownerMemo: ownerMemo?.clone(), memoData, + decryptedAssetType, }; return item; }; +export const getCacheEntryNameForAddress = (walletAddres: string): string => { + const envName = Sdk.environment.hostUrl.replace(/https:\/\//g, '').replace(/http:\/\//g, ''); + const cacheEntryName = `${envName}_${CACHE_ENTRIES.UTXO_DATA}_${walletAddres}`; + + let fullPathToCacheEntry = `${Sdk.environment.cachePath}/${cacheEntryName}.json`; + + try { + if (window && window?.document) { + fullPathToCacheEntry = cacheEntryName; + } + } catch (_) { + // we do nothing when we catch an error here, as that means that we are in the console mode + } + + return fullPathToCacheEntry; +}; + +export const getCachedItemsForAddress = async (walletAddres: string) => { + let utxoDataCache; + + const fullPathToCacheEntry = getCacheEntryNameForAddress(walletAddres); + + try { + utxoDataCache = await Cache.read( + fullPathToCacheEntry, + Sdk.environment.cacheProvider || MemoryCacheProvider, + ); + } catch (error) { + const err: Error = error as Error; + throw new Error(`Error reading the cache, "${err.message}"`); + } + + return utxoDataCache; +}; + // is called only by addUtxo export const getUtxoItem = async ( sid: number, @@ -161,19 +198,13 @@ export const getUtxoItem = async ( cachedItem?: AddUtxoItem, ): Promise => { if (cachedItem) { - // we simply do not fetch spent utxo if they are not in cache + // we simply do not fetch spent utxo if they are in cache if (cachedItem.body.amount === 0) { return cachedItem; } - // else { - // console.log( - // `we have cache for sid ${sid} , but its amount is ${cachedItem.body.amount}, so need to refetch`, - // ); - // } + // no cache for sid (or need to update the cache) - Fetching utxo for this sid ); } - // console.log(`no cache for sid (or need to update the cache) - Fetching utxo for sid "${sid}"`); - const utxoDataResult = await Network.getUtxo(sid); const { response: utxoData, error: utxoError } = utxoDataResult; @@ -184,77 +215,63 @@ export const getUtxoItem = async ( const memoDataResult = await Network.getOwnerMemo(sid); - // console.log('🚀 ~ file: utxoHelper.ts ~ line 1 ~ sid processing 1', sid); - const { response: memoData, error: memoError } = memoDataResult; if (memoError) { throw new Error(`Could not fetch memo data for sid "${sid}", Error - ${memoError.message}`); } - // console.log('🚀 ~ file: utxoHelper.ts ~ line 2 ~ sid processing 2', sid); - - // console.log('🚀 ~ file: utxoHelper.ts ~ line 155 ~ sid processing', sid); - const item = await decryptUtxoItem(sid, walletInfo, utxoData, memoData); - // console.log('🚀 ~ file: utxoHelper.ts ~ line 155 ~ sid processed', sid); - // console.log('🚀 ~ file: utxoHelper.ts ~ line 178 ~ item', item); return item; }; -// creates a list of items with descrypted utxo information -export const addUtxo = async (walletInfo: WalletKeypar, addSids: number[]): Promise => { - const utxoDataList = []; - const cacheDataToSave: CacheItem = {}; - let utxoDataCache; - - const envName = Sdk.environment.hostUrl.replace(/https:\/\//g, '').replace(/http:\/\//g, ''); - - const cacheEntryName = `${envName}_${CACHE_ENTRIES.UTXO_DATA}_${walletInfo.address}`; - - let fullPathToCacheEntry = `${Sdk.environment.cachePath}/${cacheEntryName}.json`; - // console.log('addUtxo - fullPathToCacheEntry', fullPathToCacheEntry); - // console.log('addUtxo - addSids.len', addSids.length); - - try { - if (window && window?.document) { - fullPathToCacheEntry = cacheEntryName; - // console.log('addUtxo - fullPathToCacheEntry skip', fullPathToCacheEntry); - } - } catch (_) { - // console.log('window instance is not found. running is sdk mode. skipping'); - } +export const updateUtxoCacheForWalletAddress = async (cacheDataToSave: CacheItem, walletAddress: string) => { + const fullPathToCacheEntry = getCacheEntryNameForAddress(walletAddress); try { - // console.log('addUtxo - Sdk.environment.cacheProvider', Sdk.environment.cacheProvider); - utxoDataCache = await Cache.read( + await Cache.write( fullPathToCacheEntry, + cacheDataToSave, Sdk.environment.cacheProvider || MemoryCacheProvider, ); - // console.log('addUtxo - utxoDataCache len ', Object.entries(utxoDataCache).length); } catch (error) { const err: Error = error as Error; - throw new Error(`Error reading the cache, "${err.message}"`); + console.log(`Could not write cache for utxoData, "${err.message}"`); } +}; + +// creates a list of items with descrypted utxo information +export const addUtxo = async ( + walletInfo: WalletKeypar, + addSids: number[], + assetCode: string, +): Promise => { + const utxoDataList = []; + const cacheDataToSave: CacheItem = {}; + const utxoDataCache = await getCachedItemsForAddress(walletInfo.address); for (let i = 0; i < addSids.length; i++) { const sid = addSids[i]; - // console.log('🚀 ~ file: utxoHelper.ts ~ line 207 ~ addUtxo ~ sid', sid); try { const item = await getUtxoItem(sid, walletInfo, utxoDataCache?.[`sid_${sid}`]); - // do we save only spent or all the utxo? I think we need to save all, since - // those should not be fetched at all - // if (item.body.amount != 0) { - utxoDataList.push(item); - cacheDataToSave[`sid_${item.sid}`] = item; - // } else { - // console.log(`sid ${sid} , item `, item); - // } - - // console.log('sid processed!!', sid); + // we also filtering out wrong asset code and 0 amount withing the getSendUtxo mehod + // by calling + // + // filteredUtxoList = filterUtxoByCode(code, utxoDataList); + // and + // filteredNonZeroUtxoList = filterZeroAmountUtxo(filteredUtxoList); + // + // but sometimes we might need to call addUtxo directly so we are filtering it here as well + // + if (item.body.asset_type === assetCode) { + if (item.body.amount != 0) { + utxoDataList.push(item); + } + cacheDataToSave[`sid_${item.sid}`] = item; + } } catch (error) { const err: Error = error as Error; console.log(`Could not process addUtxo for sid ${sid}, Details: "${err.message}"`); @@ -262,19 +279,7 @@ export const addUtxo = async (walletInfo: WalletKeypar, addSids: number[]): Prom } } - // console.log('🚀 ~ file: utxoHelper.ts ~ line 229 ~ addUtxo ~ utxoDataList', utxoDataList); - try { - // console.log('addUtxo - to save', cacheDataToSave); - // console.log('addUtxo - lenght to save', Object.entries(cacheDataToSave).length); - await Cache.write( - fullPathToCacheEntry, - cacheDataToSave, - Sdk.environment.cacheProvider || MemoryCacheProvider, - ); - } catch (error) { - const err: Error = error as Error; - console.log(`Could not write cache for utxoData, "${err.message}"`); - } + await updateUtxoCacheForWalletAddress(cacheDataToSave, walletInfo.address); return utxoDataList; }; @@ -338,8 +343,13 @@ export const getSendUtxoForAmount = ( const filteredUtxoList = filterUtxoByCode(code, utxoDataList); + // new incsrioption have 0 amount but they are not spent, so we need + // to filter them out as well , otherwise tx size will grow a lot and + // tx size threshold will be reached quicker + const filteredNonZeroUtxoList = filterZeroAmountUtxo(filteredUtxoList); + console.log('🚀 ~ file: utxoHelper.ts ~ line 307 ~ amount', amount); - for (const assetItem of filteredUtxoList) { + for (const assetItem of filteredNonZeroUtxoList) { const _amount = BigInt(assetItem.body.amount); console.log('🚀 ~ file: utxoHelper.ts ~ line 307 ~ _amount', _amount); @@ -461,9 +471,9 @@ export const getUtxoWithAmount = async ( ); } - const utxoDataList = await addUtxo(walletInfo, sids); - + const utxoDataList = await addUtxo(walletInfo, sids, assetCode); const sendUtxoList = getSendUtxoForAmount(assetCode, utxoNumbers, utxoDataList); + const [utxoInput] = sendUtxoList; if (!utxoInput) {