@tatumio/algo 2.0.1-alpha.380 → 2.0.1-alpha.381.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@tatumio/algo",
3
- "version": "2.0.1-alpha.380",
3
+ "version": "2.0.1-alpha.381.1",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.js",
7
7
  "types": "./src/index.d.ts",
8
- "dependencies": {
9
- "@tatumio/shared-testing-common": "2.0.1-alpha.380",
10
- "@tatumio/api-client": "2.0.1-alpha.380",
8
+ "dependencies": {},
9
+ "peerDependencies": {
10
+ "@tatumio/shared-testing-common": "2.0.1-alpha.381.1",
11
+ "@tatumio/api-client": "2.0.1-alpha.381.1",
11
12
  "axios": "^0.26.0",
12
13
  "form-data": "^4.0.0",
13
- "@tatumio/shared-core": "2.0.1-alpha.380",
14
- "@tatumio/shared-abstract-sdk": "2.0.1-alpha.380",
14
+ "@tatumio/shared-core": "2.0.1-alpha.381.1",
15
+ "@tatumio/shared-abstract-sdk": "2.0.1-alpha.381.1",
15
16
  "bignumber.js": "^9.0.2",
16
17
  "lodash": "^4.17.21",
17
- "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.380",
18
+ "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.381.1",
18
19
  "algosdk": "^1.13.1",
19
20
  "base32.js": "^0.1.0",
20
21
  "url-parse": "^1.5.10",
21
22
  "tslib": "^2.0.0"
22
- },
23
- "peerDependencies": {}
23
+ }
24
24
  }
package/src/index.d.ts CHANGED
@@ -1,10 +1,5 @@
1
1
  export * from './lib/algo.sdk';
2
- export * from './lib/services';
3
2
  export * from './lib/services/algo.wallet';
4
3
  export * from './lib/services/algo.tx';
4
+ export * from './lib/services/algo.types';
5
5
  export * from './lib/services/algo.web';
6
- export declare type AlgoApiCallsType = {
7
- getBlockchainAccountBalance: (account: string) => Promise<{
8
- balance?: number;
9
- }>;
10
- };
package/src/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./lib/algo.sdk"), exports);
5
- tslib_1.__exportStar(require("./lib/services"), exports);
6
5
  tslib_1.__exportStar(require("./lib/services/algo.wallet"), exports);
7
6
  tslib_1.__exportStar(require("./lib/services/algo.tx"), exports);
7
+ tslib_1.__exportStar(require("./lib/services/algo.types"), exports);
8
8
  tslib_1.__exportStar(require("./lib/services/algo.web"), exports);
9
9
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/blockchain/algo/src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA8B;AAC9B,yDAA8B;AAC9B,qEAA0C;AAC1C,iEAAsC;AACtC,kEAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/blockchain/algo/src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA8B;AAC9B,qEAA0C;AAC1C,iEAAsC;AACtC,oEAAyC;AACzC,kEAAuC"}
@@ -1,6 +1,6 @@
1
1
  import { SDKArguments } from '@tatumio/shared-abstract-sdk';
2
2
  import { AlgorandService, FungibleTokensErc20OrCompatibleService } from '@tatumio/api-client';
3
- import { AlgoApiCallsType } from '../index';
3
+ import type { AlgoApiCallsType } from './services/algo.types';
4
4
  export declare const TatumAlgoSDK: (args: SDKArguments, apiCalls?: AlgoApiCallsType) => {
5
5
  algoWeb: import("./services/algo.web").AlgoWeb;
6
6
  wallet: {
@@ -12,7 +12,7 @@ export declare const TatumAlgoSDK: (args: SDKArguments, apiCalls?: AlgoApiCallsT
12
12
  signedTransaction: (body: import("@tatumio/api-client").TransferAlgo | import("@tatumio/api-client").TransferAlgoKMS, testnet?: boolean, provider?: string) => Promise<string>;
13
13
  };
14
14
  send: {
15
- signedTransaction: (body: import("@tatumio/api-client").TransferAlgo | import("@tatumio/api-client").TransferAlgoKMS | import("@tatumio/api-client").TransferAlgorandBlockchain | import("@tatumio/api-client").TransferAlgorandBlockchainKMS, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").OffchainTransactionSignatureResult | import("@tatumio/api-client").TransactionHash>;
15
+ signedTransaction: (body: import("@tatumio/api-client").TransferAlgo | import("@tatumio/api-client").TransferAlgoKMS | import("@tatumio/api-client").TransferAlgorandBlockchain | import("@tatumio/api-client").TransferAlgorandBlockchainKMS, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
16
16
  };
17
17
  };
18
18
  token: {
@@ -22,28 +22,28 @@ export declare const TatumAlgoSDK: (args: SDKArguments, apiCalls?: AlgoApiCallsT
22
22
  getFTAccountBalance: typeof FungibleTokensErc20OrCompatibleService.erc20GetBalance;
23
23
  getFTAccountBalances: typeof FungibleTokensErc20OrCompatibleService.erc20GetBalanceAddress;
24
24
  prepare: {
25
- createFTSignedTransaction: (body: import("./services/algo.tx").DeployAlgoErc20KMS | import("./services/algo.tx").DeployAlgoErc20, testnet?: boolean, provider?: string) => Promise<string>;
26
- transferFTSignedTransaction: (body: import("./services/algo.tx").ChainTransferAlgoErc20 | import("./services/algo.tx").ChainTransferAlgoErc20KMS, testnet?: boolean, provider?: string) => Promise<string>;
27
- burnFTSignedTransaction: (body: import("./services/algo.tx").ChainBurnAlgoErc20 | import("./services/algo.tx").ChainBurnAlgoErc20KMS, testnet?: boolean, provider?: string) => Promise<string>;
25
+ createFTSignedTransaction: (body: import("./services/algo.types").DeployAlgoErc20KMS | import("./services/algo.types").DeployAlgoErc20, testnet?: boolean, provider?: string) => Promise<string>;
26
+ transferFTSignedTransaction: (body: import("./services/algo.types").ChainTransferAlgoErc20 | import("./services/algo.types").ChainTransferAlgoErc20KMS, testnet?: boolean, provider?: string) => Promise<string>;
27
+ burnFTSignedTransaction: (body: import("./services/algo.types").ChainBurnAlgoErc20 | import("./services/algo.types").ChainBurnAlgoErc20KMS, testnet?: boolean, provider?: string) => Promise<string>;
28
28
  };
29
29
  send: {
30
- createFTSignedTransaction: (body: import("./services/algo.tx").DeployAlgoErc20KMS | import("./services/algo.tx").DeployAlgoErc20, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
31
- transferFTSignedTransaction: (body: import("./services/algo.tx").ChainTransferAlgoErc20 | import("./services/algo.tx").ChainTransferAlgoErc20KMS, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
32
- burnFTSignedTransaction: (body: import("./services/algo.tx").ChainBurnAlgoErc20 | import("./services/algo.tx").ChainBurnAlgoErc20KMS, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
30
+ createFTSignedTransaction: (body: import("./services/algo.types").DeployAlgoErc20KMS | import("./services/algo.types").DeployAlgoErc20, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
31
+ transferFTSignedTransaction: (body: import("./services/algo.types").ChainTransferAlgoErc20 | import("./services/algo.types").ChainTransferAlgoErc20KMS, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
32
+ burnFTSignedTransaction: (body: import("./services/algo.types").ChainBurnAlgoErc20 | import("./services/algo.types").ChainBurnAlgoErc20KMS, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
33
33
  };
34
34
  };
35
35
  nft: {
36
36
  getNFTAccountBalance: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetBalanceErc721;
37
37
  getNFTContractAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetContractAddress;
38
38
  prepare: {
39
- createNFTSignedTransaction: (body: import("./services/algo.tx").MintNftAlgoKMS | import("./services/algo.tx").MintNftAlgo | import("./services/algo.tx").MintNftExpressAlgo, testnet?: boolean, provider?: string) => Promise<string>;
40
- transferNFTSignedTransaction: (body: import("./services/algo.tx").TransferNftAlgoKMS | import("./services/algo.tx").TransferNftAlgo, testnet?: boolean, provider?: string) => Promise<string>;
41
- burnNFTSignedTransaction: (body: import("./services/algo.tx").BurnNftAlgoKMS | import("./services/algo.tx").BurnNftAlgo, testnet?: boolean, provider?: string) => Promise<string>;
39
+ createNFTSignedTransaction: (body: import("./services/algo.types").MintNftAlgoKMS | import("./services/algo.types").MintNftAlgo | import("./services/algo.types").MintNftExpressAlgo, testnet?: boolean, provider?: string) => Promise<string>;
40
+ transferNFTSignedTransaction: (body: import("./services/algo.types").TransferNftAlgoKMS | import("./services/algo.types").TransferNftAlgo, testnet?: boolean, provider?: string) => Promise<string>;
41
+ burnNFTSignedTransaction: (body: import("./services/algo.types").BurnNftAlgoKMS | import("./services/algo.types").BurnNftAlgo, testnet?: boolean, provider?: string) => Promise<string>;
42
42
  };
43
43
  send: {
44
- createNFTSignedTransaction: (body: import("./services/algo.tx").MintNftAlgoKMS | import("./services/algo.tx").MintNftAlgo | import("./services/algo.tx").MintNftExpressAlgo, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").FlowMintedResult | import("@tatumio/api-client").SolanaMintedResult | import("@tatumio/api-client").AlgorandMintedResult>;
45
- transferNFTSignedTransaction: (body: import("./services/algo.tx").TransferNftAlgoKMS | import("./services/algo.tx").TransferNftAlgo, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
46
- burnNFTSignedTransaction: (body: import("./services/algo.tx").BurnNftAlgoKMS | import("./services/algo.tx").BurnNftAlgo, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
44
+ createNFTSignedTransaction: (body: import("./services/algo.types").MintNftAlgoKMS | import("./services/algo.types").MintNftAlgo | import("./services/algo.types").MintNftExpressAlgo, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").FlowMintedResult | import("@tatumio/api-client").SolanaMintedResult | import("@tatumio/api-client").AlgorandMintedResult>;
45
+ transferNFTSignedTransaction: (body: import("./services/algo.types").TransferNftAlgoKMS | import("./services/algo.types").TransferNftAlgo, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
46
+ burnNFTSignedTransaction: (body: import("./services/algo.types").BurnNftAlgoKMS | import("./services/algo.types").BurnNftAlgo, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
47
47
  };
48
48
  };
49
49
  storage: {
@@ -1,25 +1,7 @@
1
- import { BurnNftAlgo as ApiBurnNftAlgo, BurnNftAlgoKMS as ApiBurnNftAlgoKMS, ChainTransferAlgoErc20 as ApiChainTransferAlgoErc20, ChainTransferAlgoErc20KMS as ApiChainTransferAlgoErc20KMS, ChainDeployAlgoErc20 as ApiDeployErc20, ChainDeployAlgoErc20KMS as ApiDeployErc20KMS, MintNftAlgorand as ApiMintNftAlgorand, MintNftAlgorandKMS as ApiMintNftAlgorandKMS, MintNftExpressAlgorand as ApiMintNftExpressAlgorand, OffchainTransactionResult, OffchainTransactionSignatureResult, ReceiveAlgorandAsset, ReceiveAlgorandAssetKMS, TransferAlgo as ApiTransferAlgo, TransferAlgoKMS as ApiTransferAlgoKMS, TransferNftAlgo as ApiTransferNftAlgo, TransferNftAlgoKMS as ApiTransferNftAlgoKMS, TransferAlgorandBlockchain as ApiTransferAlgorandBlockchain, TransferAlgorandBlockchainKMS as ApiTransferAlgorandBlockchainKMS, TransferNftAlgoExpress as ApiTransferNftAlgoExpress, ChainBurnAlgoErc20KMS as ApiChainBurnAlgoErc20KMS, ChainBurnAlgoErc20 as ApiChainBurnAlgoErc20 } from '@tatumio/api-client';
1
+ import { OffchainTransactionResult, OffchainTransactionSignatureResult, ReceiveAlgorandAsset, ReceiveAlgorandAssetKMS, TransferAlgo as ApiTransferAlgo, TransferAlgoKMS as ApiTransferAlgoKMS } from '@tatumio/api-client';
2
2
  import { AlgoWeb } from './algo.web';
3
- import { WithoutChain } from '@tatumio/shared-abstract-sdk';
4
- import { AlgoApiCallsType } from '../../index';
5
- export declare type TransferAlgo = ApiTransferAlgo;
6
- export declare type TransferAlgoKMS = ApiTransferAlgoKMS;
7
- export declare type TransferAlgoBlockchain = ApiTransferAlgorandBlockchain;
8
- export declare type TransferAlgoBlockchainKMS = ApiTransferAlgorandBlockchainKMS;
9
- export declare type MintNftAlgoKMS = WithoutChain<ApiMintNftAlgorandKMS>;
10
- export declare type MintNftAlgo = WithoutChain<ApiMintNftAlgorand>;
11
- export declare type MintNftExpressAlgo = WithoutChain<ApiMintNftExpressAlgorand>;
12
- export declare type TransferNftAlgoKMS = WithoutChain<ApiTransferNftAlgoKMS>;
13
- export declare type TransferNftAlgo = WithoutChain<ApiTransferNftAlgo>;
14
- export declare type TransferNftAlgoExpress = WithoutChain<ApiTransferNftAlgoExpress>;
15
- export declare type BurnNftAlgoKMS = WithoutChain<ApiBurnNftAlgoKMS>;
16
- export declare type BurnNftAlgo = WithoutChain<ApiBurnNftAlgo>;
17
- export declare type DeployAlgoErc20KMS = WithoutChain<ApiDeployErc20KMS>;
18
- export declare type DeployAlgoErc20 = WithoutChain<ApiDeployErc20>;
19
- export declare type ChainTransferAlgoErc20 = WithoutChain<ApiChainTransferAlgoErc20>;
20
- export declare type ChainTransferAlgoErc20KMS = WithoutChain<ApiChainTransferAlgoErc20KMS>;
21
- export declare type ChainBurnAlgoErc20 = WithoutChain<ApiChainBurnAlgoErc20>;
22
- export declare type ChainBurnAlgoErc20KMS = WithoutChain<ApiChainBurnAlgoErc20KMS>;
3
+ import { AlgoApiCallsType } from './algo.types';
4
+ import { BurnNftAlgo, BurnNftAlgoKMS, ChainBurnAlgoErc20, ChainBurnAlgoErc20KMS, ChainTransferAlgoErc20, ChainTransferAlgoErc20KMS, DeployAlgoErc20, DeployAlgoErc20KMS, MintNftAlgo, MintNftAlgoKMS, MintNftExpressAlgo, TransferAlgo, TransferAlgoBlockchain, TransferAlgoBlockchainKMS, TransferAlgoKMS, TransferNftAlgo, TransferNftAlgoKMS } from './algo.types';
23
5
  declare type SendVirtualAccountTxResponse = OffchainTransactionResult | OffchainTransactionSignatureResult | {
24
6
  id?: string;
25
7
  } | void;
@@ -176,7 +158,7 @@ export declare const algoTxService: (args: {
176
158
  * @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
177
159
  * @returns transaction id of the transaction in the blockchain
178
160
  */
179
- signedTransaction: (body: TransferAlgo | TransferAlgoKMS | TransferAlgoBlockchain | TransferAlgoBlockchainKMS, testnet?: boolean, provider?: string) => Promise<OffchainTransactionSignatureResult | import("@tatumio/api-client").TransactionHash>;
161
+ signedTransaction: (body: TransferAlgo | TransferAlgoKMS | TransferAlgoBlockchain | TransferAlgoBlockchainKMS, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
180
162
  };
181
163
  };
182
164
  virtualAccount: {
@@ -10,90 +10,10 @@ const base32_js_1 = tslib_1.__importDefault(require("base32.js"));
10
10
  const algo_wallet_1 = require("./algo.wallet");
11
11
  const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
12
12
  const bignumber_js_1 = require("bignumber.js");
13
+ const algo_tx_native_1 = require("./tx/algo.tx.native");
14
+ const algo_tx_fungible_1 = require("./tx/algo.tx.fungible");
15
+ const algo_tx_nft_1 = require("./tx/algo.tx.nft");
13
16
  const algoTxService = (args, apiCalls) => {
14
- const prepareSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
15
- var _a;
16
- const account = body.from || body.account;
17
- const to = body.to || body.address;
18
- const privateKey = body.fromPrivateKey || body.privateKey;
19
- const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
20
- ? account
21
- : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(privateKey);
22
- if (body.to) {
23
- const { balance } = yield apiCalls.getBlockchainAccountBalance(from);
24
- const requiredBalance = new bignumber_js_1.BigNumber(body.amount).plus(body.fee || 0.001);
25
- const accountBalance = new bignumber_js_1.BigNumber(balance || 0);
26
- if (accountBalance.isLessThan(requiredBalance)) {
27
- throw new shared_abstract_sdk_1.SdkError({
28
- code: shared_abstract_sdk_1.SdkErrorCode.INSUFFICIENT_FUNDS,
29
- originalError: {
30
- name: shared_abstract_sdk_1.SdkErrorCode.INSUFFICIENT_FUNDS,
31
- message: `Insufficient funds to create transaction from address ${from} -> available balance is ${accountBalance.toString()}, required balance is ${requiredBalance.toString()}.`,
32
- },
33
- });
34
- }
35
- }
36
- const algodClient = algoWeb.getClient(testnet, provider);
37
- const params = yield algodClient.getTransactionParams().do();
38
- const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
39
- const enc = new TextEncoder();
40
- const note = enc.encode((_a = body.senderNote) !== null && _a !== void 0 ? _a : '');
41
- const bodyn = algosdk.makePaymentTxnWithSuggestedParams(from, to, new bignumber_js_1.BigNumber(body.amount).multipliedBy(1000000).toNumber(), undefined, note, Object.assign(Object.assign({}, params), { fee: new bignumber_js_1.BigNumber(body.fee || '0.001').multipliedBy(1000000).toNumber(), flatFee: true }));
42
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
43
- return JSON.stringify(bodyn);
44
- }
45
- const secretKey = new Uint8Array(decoder.write(privateKey).buf);
46
- const signedTxn = bodyn.signTxn(secretKey);
47
- return Buffer.from(signedTxn).toString('hex');
48
- });
49
- const prepareCreateNFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
50
- var _b, _c, _d, _e;
51
- const algodClient = algoWeb.getClient(testnet, provider);
52
- const params = yield algodClient.getTransactionParams().do();
53
- const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
54
- const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
55
- ? body.from
56
- : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
57
- const txn = algosdk.makeAssetCreateTxnWithSuggestedParams(from, undefined, 1, 0, false, from, (_b = body.attr) === null || _b === void 0 ? void 0 : _b.reserve, (_c = body.attr) === null || _c === void 0 ? void 0 : _c.freeze, (_d = body.attr) === null || _d === void 0 ? void 0 : _d.clawback, (_e = body.attr) === null || _e === void 0 ? void 0 : _e.assetUnit, body.name, body.url, undefined, Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }));
58
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
59
- return JSON.stringify(txn);
60
- }
61
- const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
62
- const signedTxn = txn.signTxn(secretKey);
63
- return Buffer.from(signedTxn).toString('hex');
64
- });
65
- const prepareTransferNFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
66
- const algodClient = algoWeb.getClient(testnet, provider);
67
- const params = yield algodClient.getTransactionParams().do();
68
- const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
69
- const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
70
- ? body.from
71
- : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
72
- if (!body.value) {
73
- throw new Error('No value specified');
74
- }
75
- const txn = algosdk.makeAssetTransferTxnWithSuggestedParams(from, body.to, undefined, undefined, Number.parseInt(body.value || '1'), undefined, new bignumber_js_1.BigNumber(body.contractAddress).toNumber(), Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }), undefined);
76
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
77
- return JSON.stringify(txn);
78
- }
79
- const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
80
- const signedTxn = txn.signTxn(secretKey);
81
- return Buffer.from(signedTxn).toString('hex');
82
- });
83
- const prepareBurnNFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
84
- const algodClient = algoWeb.getClient(testnet, provider);
85
- const params = yield algodClient.getTransactionParams().do();
86
- const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
87
- const txn = algosdk.makeAssetDestroyTxnWithSuggestedParams((0, shared_abstract_sdk_1.isWithSignatureId)(body)
88
- ? body.from
89
- : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey), undefined, Number(body.contractAddress), Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }), undefined);
90
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
91
- return JSON.stringify(txn);
92
- }
93
- const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
94
- const signedTxn = txn.signTxn(secretKey);
95
- return Buffer.from(signedTxn).toString('hex');
96
- });
97
17
  const prepareReceiveAssetSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
98
18
  const algodClient = algoWeb.getClient(testnet, provider);
99
19
  const params = yield algodClient.getTransactionParams().do();
@@ -108,51 +28,6 @@ const algoTxService = (args, apiCalls) => {
108
28
  const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
109
29
  return Buffer.from(txn.signTxn(secretKey)).toString('hex');
110
30
  });
111
- const prepareCreateFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
112
- const algodClient = algoWeb.getClient(testnet, provider);
113
- const params = yield algodClient.getTransactionParams().do();
114
- const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
115
- const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
116
- ? body.from
117
- : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
118
- const txn = algosdk.makeAssetCreateTxnWithSuggestedParams(from, undefined, new bignumber_js_1.BigNumber(body.supply).shiftedBy(new bignumber_js_1.BigNumber(body.digits).toNumber()).toNumber(), new bignumber_js_1.BigNumber(body.digits).toNumber(), false, from, undefined, undefined, undefined, body.symbol, body.name, body.url, undefined, Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }));
119
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
120
- return JSON.stringify(txn);
121
- }
122
- const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
123
- const signedTxn = txn.signTxn(secretKey);
124
- return Buffer.from(signedTxn).toString('hex');
125
- });
126
- const prepareTransferFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
127
- const algodClient = algoWeb.getClient(testnet, provider);
128
- const params = yield algodClient.getTransactionParams().do();
129
- const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
130
- const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
131
- ? body.from
132
- : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
133
- const txn = algosdk.makeAssetTransferTxnWithSuggestedParams(from, body.to, undefined, undefined, new bignumber_js_1.BigNumber(body.amount).shiftedBy(body.digits || 1).toNumber(), undefined, Number(body.contractAddress), Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }), undefined);
134
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
135
- return JSON.stringify(txn);
136
- }
137
- const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
138
- const signedTxn = txn.signTxn(secretKey);
139
- return Buffer.from(signedTxn).toString('hex');
140
- });
141
- const prepareBurnFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
142
- const algodClient = algoWeb.getClient(testnet, provider);
143
- const params = yield algodClient.getTransactionParams().do();
144
- const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
145
- const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
146
- ? body.from
147
- : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
148
- const txn = algosdk.makeAssetDestroyTxnWithSuggestedParams(from, undefined, Number(body.contractAddress), Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }), undefined);
149
- if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
150
- return JSON.stringify(txn);
151
- }
152
- const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
153
- const signedTxn = txn.signTxn(secretKey);
154
- return Buffer.from(signedTxn).toString('hex');
155
- });
156
31
  return {
157
32
  asset: {
158
33
  prepare: {
@@ -192,7 +67,7 @@ const algoTxService = (args, apiCalls) => {
192
67
  * @param provider url of the Algorand Server to connnect to. If not set, default public server will be used.
193
68
  * @returns transaction data to be broadcast to blockchain.
194
69
  */
195
- createFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareCreateFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
70
+ createFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return (0, algo_tx_fungible_1.prepareCreateFTSignedTransaction)({ body, testnet, algoWeb: args.algoWeb, provider }); }),
196
71
  /**
197
72
  * Sign Algorand transfer FT transaction with private kwy locally. Nothing is broadcast to the blockchain.
198
73
  * @param testnet mainnet or testnet version
@@ -200,7 +75,7 @@ const algoTxService = (args, apiCalls) => {
200
75
  * @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
201
76
  * @returns transaction data to be broadcast to blockchain.
202
77
  */
203
- transferFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareTransferFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
78
+ transferFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return (0, algo_tx_fungible_1.prepareTransferFTSignedTransaction)({ body, testnet, algoWeb: args.algoWeb, provider }); }),
204
79
  /**
205
80
  * Sign ALgorand burn FT transaction with private key locally. Nothing is broadcast to the blockchain.
206
81
  * @param body content of the transaction to broadcast
@@ -208,7 +83,7 @@ const algoTxService = (args, apiCalls) => {
208
83
  * @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
209
84
  * @returns transaction data to be broadcast to blockchain.
210
85
  */
211
- burnFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareBurnFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
86
+ burnFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return (0, algo_tx_fungible_1.prepareBurnFTSignedTransaction)({ body, testnet, algoWeb: args.algoWeb, provider }); }),
212
87
  },
213
88
  send: {
214
89
  /**
@@ -222,7 +97,12 @@ const algoTxService = (args, apiCalls) => {
222
97
  if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
223
98
  return api_client_1.ApiServices.fungibleToken.erc20Deploy(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
224
99
  }
225
- const txData = yield prepareCreateFTSignedTransaction(body, testnet, args.algoWeb, provider);
100
+ const txData = yield (0, algo_tx_fungible_1.prepareCreateFTSignedTransaction)({
101
+ body,
102
+ testnet,
103
+ algoWeb: args.algoWeb,
104
+ provider,
105
+ });
226
106
  return api_client_1.AlgorandService.algorandBroadcast({
227
107
  txData,
228
108
  });
@@ -238,7 +118,12 @@ const algoTxService = (args, apiCalls) => {
238
118
  if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
239
119
  return api_client_1.ApiServices.fungibleToken.erc20Transfer(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
240
120
  }
241
- const txData = yield prepareTransferFTSignedTransaction(body, testnet, args.algoWeb, provider);
121
+ const txData = yield (0, algo_tx_fungible_1.prepareTransferFTSignedTransaction)({
122
+ body,
123
+ testnet,
124
+ algoWeb: args.algoWeb,
125
+ provider,
126
+ });
242
127
  return api_client_1.AlgorandService.algorandBroadcast({
243
128
  txData,
244
129
  });
@@ -254,7 +139,12 @@ const algoTxService = (args, apiCalls) => {
254
139
  if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
255
140
  return api_client_1.ApiServices.fungibleToken.erc20Burn(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
256
141
  }
257
- const txData = yield prepareBurnFTSignedTransaction(body, testnet, args.algoWeb, provider);
142
+ const txData = yield (0, algo_tx_fungible_1.prepareBurnFTSignedTransaction)({
143
+ body,
144
+ testnet,
145
+ algoWeb: args.algoWeb,
146
+ provider,
147
+ });
258
148
  return api_client_1.AlgorandService.algorandBroadcast({
259
149
  txData,
260
150
  });
@@ -270,7 +160,14 @@ const algoTxService = (args, apiCalls) => {
270
160
  * @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
271
161
  * @returns transaction data to be broadcast to blockchain
272
162
  */
273
- createNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareCreateNFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
163
+ createNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
164
+ return (0, algo_tx_nft_1.prepareCreateNFTSignedTransaction)({
165
+ body: body,
166
+ testnet,
167
+ algoWeb: args.algoWeb,
168
+ provider,
169
+ });
170
+ }),
274
171
  /**
275
172
  * Sign Algorand transfer NFT transaction with private key locally. Nothing is broadcast to the blockchain.
276
173
  * @param body content of the transaction to broadcast
@@ -278,7 +175,7 @@ const algoTxService = (args, apiCalls) => {
278
175
  * @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
279
176
  * @returns transaction data to be broadcast to blockchain.
280
177
  */
281
- transferNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareTransferNFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
178
+ transferNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return (0, algo_tx_nft_1.prepareTransferNFTSignedTransaction)({ body, testnet, algoWeb: args.algoWeb, provider }); }),
282
179
  /**
283
180
  * Sign Algorand burn NFT transaction with private key locally. Nothing is broadcast to the blockchain.
284
181
  * @param body content of the transaction to broadcast
@@ -286,7 +183,7 @@ const algoTxService = (args, apiCalls) => {
286
183
  * @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
287
184
  * @returns transaction data to be broadcast to blockchain.
288
185
  */
289
- burnNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareBurnNFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
186
+ burnNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return (0, algo_tx_nft_1.prepareBurnNFTSignedTransaction)({ body, testnet, algoWeb: args.algoWeb, provider }); }),
290
187
  },
291
188
  send: {
292
189
  /**
@@ -300,7 +197,12 @@ const algoTxService = (args, apiCalls) => {
300
197
  if ((0, shared_abstract_sdk_1.isWithSignatureId)(body) || !body.fromPrivateKey) {
301
198
  return api_client_1.ApiServices.nft.nftMintErc721(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
302
199
  }
303
- const txData = yield prepareCreateNFTSignedTransaction(body, testnet, args.algoWeb, provider);
200
+ const txData = yield (0, algo_tx_nft_1.prepareCreateNFTSignedTransaction)({
201
+ body: body,
202
+ testnet,
203
+ algoWeb: args.algoWeb,
204
+ provider,
205
+ });
304
206
  return api_client_1.AlgorandService.algorandBroadcast({
305
207
  txData,
306
208
  });
@@ -316,7 +218,12 @@ const algoTxService = (args, apiCalls) => {
316
218
  if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
317
219
  return api_client_1.ApiServices.nft.nftTransferErc721(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
318
220
  }
319
- const txData = yield prepareTransferNFTSignedTransaction(body, testnet, args.algoWeb, provider);
221
+ const txData = yield (0, algo_tx_nft_1.prepareTransferNFTSignedTransaction)({
222
+ body,
223
+ testnet,
224
+ algoWeb: args.algoWeb,
225
+ provider,
226
+ });
320
227
  return api_client_1.AlgorandService.algorandBroadcast({
321
228
  txData,
322
229
  });
@@ -332,7 +239,12 @@ const algoTxService = (args, apiCalls) => {
332
239
  if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
333
240
  return api_client_1.ApiServices.nft.nftBurnErc721(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
334
241
  }
335
- const txData = yield prepareBurnNFTSignedTransaction(body, testnet, args.algoWeb, provider);
242
+ const txData = yield (0, algo_tx_nft_1.prepareBurnNFTSignedTransaction)({
243
+ body,
244
+ testnet,
245
+ algoWeb: args.algoWeb,
246
+ provider,
247
+ });
336
248
  return api_client_1.AlgorandService.algorandBroadcast({
337
249
  txData,
338
250
  });
@@ -348,7 +260,7 @@ const algoTxService = (args, apiCalls) => {
348
260
  * @param provider url of the algorand server endpoint for purestake.io restapi
349
261
  * @returns transaction data to be broadcast to blockchain
350
262
  */
351
- signedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareSignedTransaction(body, testnet, args.algoWeb, provider); }),
263
+ signedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return (0, algo_tx_native_1.prepareSignedTransaction)({ body, testnet, algoWeb: args.algoWeb, apiCalls, provider }); }),
352
264
  },
353
265
  send: {
354
266
  /**
@@ -368,7 +280,13 @@ const algoTxService = (args, apiCalls) => {
368
280
  return api_client_1.ApiServices.blockchain.algo.algorandBlockchainTransfer(body);
369
281
  }
370
282
  }
371
- const txData = yield prepareSignedTransaction(body, testnet, args.algoWeb, provider);
283
+ const txData = yield (0, algo_tx_native_1.prepareSignedTransaction)({
284
+ body,
285
+ testnet,
286
+ algoWeb: args.algoWeb,
287
+ apiCalls,
288
+ provider,
289
+ });
372
290
  return api_client_1.AlgorandService.algorandBroadcast({
373
291
  txData,
374
292
  });
@@ -388,23 +306,35 @@ const algoTxService = (args, apiCalls) => {
388
306
  if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
389
307
  return api_client_1.ApiServices.virtualAccount.blockchain.algoTransfer(body);
390
308
  }
391
- const _f = body, { fee, privateKey } = _f, withdrawal = tslib_1.__rest(_f, ["fee", "privateKey"]);
309
+ const _a = body, { fee, privateKey } = _a, withdrawal = tslib_1.__rest(_a, ["fee", "privateKey"]);
392
310
  const { senderAccountId } = withdrawal;
393
311
  const account = yield api_client_1.AccountService.getAccountByAccountId(senderAccountId);
394
312
  let txData;
395
313
  if (account.currency === api_client_1.Currency.ALGO) {
396
- txData = yield prepareSignedTransaction(body, testnet, args.algoWeb, provider);
314
+ txData = yield (0, algo_tx_native_1.prepareSignedTransaction)({
315
+ body: body,
316
+ testnet,
317
+ algoWeb: args.algoWeb,
318
+ apiCalls,
319
+ provider,
320
+ });
397
321
  }
398
322
  else {
399
323
  const vc = yield api_client_1.ApiServices.ledger.virtualCurrency.getCurrency(account.currency);
400
- txData = yield prepareTransferFTSignedTransaction({
401
- from: (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(privateKey),
402
- fromPrivateKey: privateKey,
403
- to: body.address,
404
- amount: new bignumber_js_1.BigNumber(body.amount).multipliedBy(Math.pow(10, (vc.precision || 0))).toString(),
405
- contractAddress: vc.erc20Address,
406
- fee: body.fee,
407
- }, testnet, args.algoWeb, provider);
324
+ txData = yield (0, algo_tx_fungible_1.prepareTransferFTSignedTransaction)({
325
+ body: {
326
+ from: (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(privateKey),
327
+ fromPrivateKey: privateKey,
328
+ to: body.address,
329
+ amount: body.amount,
330
+ digits: vc.precision,
331
+ contractAddress: vc.erc20Address,
332
+ fee: body.fee,
333
+ },
334
+ testnet,
335
+ algoWeb: args.algoWeb,
336
+ provider,
337
+ });
408
338
  }
409
339
  const { id } = yield api_client_1.ApiServices.virtualAccount.withdrawal.storeWithdrawal(Object.assign(Object.assign({}, withdrawal), { fee: new bignumber_js_1.BigNumber(fee || '0.001').toString() }));
410
340
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"algo.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.tx.ts"],"names":[],"mappings":";;;;AAAA,oDA2B4B;AAE5B,yDAAkC;AAClC,yBAAyB;AACzB,aAAa;AACb,kEAA8B;AAC9B,+CAA0C;AAC1C,sEAAsG;AAEtG,+CAAwC;AAkCjC,MAAM,aAAa,GAAG,CAAC,IAA0B,EAAE,QAA0B,EAAE,EAAE;IACtF,MAAM,wBAAwB,GAAG,CAC/B,IAAyF,EACzF,OAAO,GAAG,KAAK,EACf,OAAgB,EAChB,QAAiB,EACA,EAAE;;QACnB,MAAM,OAAO,GAAI,IAA+B,CAAC,IAAI,IAAK,IAAqB,CAAC,OAAO,CAAA;QACvF,MAAM,EAAE,GAAI,IAA+B,CAAC,EAAE,IAAK,IAAqB,CAAC,OAAO,CAAA;QAChF,MAAM,UAAU,GAAI,IAA+B,CAAC,cAAc,IAAK,IAAqB,CAAC,UAAU,CAAA;QAEvG,MAAM,IAAI,GAAG,IAAA,uCAAiB,EAAC,IAAmD,CAAC;YACjF,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,IAAA,wBAAU,GAAE,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAA;QAE3D,IAAK,IAA+B,CAAC,EAAE,EAAE;YACvC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,QAAQ,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAA;YACpE,MAAM,eAAe,GAAG,IAAI,wBAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,KAAK,CA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,UAAU,CAAC,0BAA0B,CAAC,EAAG,CAAC,CAAA;qBACnF;oBAAC,OAAO,CAAC,EAAE;wBACV,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA;qBAChC;iBACF;YACH,CAAC,CAAA;SACF;KACF,CAAA;AACH,CAAC,CAAA;AA1sBY,QAAA,aAAa,iBA0sBzB"}
1
+ {"version":3,"file":"algo.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.tx.ts"],"names":[],"mappings":";;;;AAAA,oDAkB4B;AAE5B,yDAAkC;AAClC,yBAAyB;AACzB,aAAa;AACb,kEAA8B;AAC9B,+CAA0C;AAC1C,sEAAgE;AAEhE,+CAAwC;AACxC,wDAA8D;AAoB9D,4DAI8B;AAC9B,kDAIyB;AAQlB,MAAM,aAAa,GAAG,CAAC,IAA0B,EAAE,QAA0B,EAAE,EAAE;IACtF,MAAM,oCAAoC,GAAG,CAC3C,IAAoD,EACpD,OAAO,GAAG,KAAK,EACf,OAAgB,EAChB,QAAiB,EACjB,EAAE;QACF,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;QACxD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,oBAAoB,EAAE,CAAC,EAAE,EAAE,CAAA;QAC5D,MAAM,OAAO,GAAG,IAAI,mBAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;QACvD,MAAM,IAAI,GAAG,IAAA,uCAAiB,EAAC,IAAI,CAAC;YAClC,CAAC,CAAC,IAAI,CAAC,IAAI;YACX,CAAC,CAAC,IAAA,wBAAU,GAAE,CAAC,8BAA8B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QACpE,MAAM,GAAG,GAAG,OAAO,CAAC,uCAAuC,CACzD,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,SAAS,EACT,CAAC,EACD,SAAS,EACT,IAAI,CAAC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BACF,OAAO,MAAM,wBAAW,CAAC,cAAc,CAAC,UAAU,CAAC,0BAA0B,CAAC,EAAG,CAAC,CAAA;qBACnF;oBAAC,OAAO,CAAC,EAAE;wBACV,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA;qBAChC;iBACF;YACH,CAAC,CAAA;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAjcY,QAAA,aAAa,iBAiczB"}
@@ -0,0 +1,27 @@
1
+ import { BurnNftAlgo as ApiBurnNftAlgo, BurnNftAlgoKMS as ApiBurnNftAlgoKMS, ChainBurnAlgoErc20 as ApiChainBurnAlgoErc20, ChainBurnAlgoErc20KMS as ApiChainBurnAlgoErc20KMS, ChainDeployAlgoErc20 as ApiDeployErc20, ChainDeployAlgoErc20KMS as ApiDeployErc20KMS, ChainTransferAlgoErc20 as ApiChainTransferAlgoErc20, ChainTransferAlgoErc20KMS as ApiChainTransferAlgoErc20KMS, MintMultiToken, MintMultiTokenKMS, MintNftAlgorand as ApiMintNftAlgorand, MintNftAlgorandKMS as ApiMintNftAlgorandKMS, MintNftExpressAlgorand as ApiMintNftExpressAlgorand, TransferAlgo as ApiTransferAlgo, TransferAlgoKMS as ApiTransferAlgoKMS, TransferAlgorandBlockchain as ApiTransferAlgorandBlockchain, TransferAlgorandBlockchainKMS as ApiTransferAlgorandBlockchainKMS, TransferNftAlgo as ApiTransferNftAlgo, TransferNftAlgoExpress as ApiTransferNftAlgoExpress, TransferNftAlgoKMS as ApiTransferNftAlgoKMS } from '@tatumio/api-client';
2
+ import { WithoutChain } from '@tatumio/shared-abstract-sdk';
3
+ export declare type TransferAlgo = ApiTransferAlgo;
4
+ export declare type TransferAlgoKMS = ApiTransferAlgoKMS;
5
+ export declare type TransferAlgoBlockchain = ApiTransferAlgorandBlockchain;
6
+ export declare type TransferAlgoBlockchainKMS = ApiTransferAlgorandBlockchainKMS;
7
+ export declare type MintNftAlgoKMS = WithoutChain<ApiMintNftAlgorandKMS>;
8
+ export declare type MintNftAlgo = WithoutChain<ApiMintNftAlgorand>;
9
+ export declare type MintNftExpressAlgo = WithoutChain<ApiMintNftExpressAlgorand>;
10
+ export declare type MintMultiTokenAlgo = WithoutChain<MintMultiToken>;
11
+ export declare type MintMultiTokenAlgoKMS = WithoutChain<MintMultiTokenKMS>;
12
+ export declare type TransferNftAlgoKMS = WithoutChain<ApiTransferNftAlgoKMS>;
13
+ export declare type TransferNftAlgo = WithoutChain<ApiTransferNftAlgo>;
14
+ export declare type TransferNftAlgoExpress = WithoutChain<ApiTransferNftAlgoExpress>;
15
+ export declare type BurnNftAlgoKMS = WithoutChain<ApiBurnNftAlgoKMS>;
16
+ export declare type BurnNftAlgo = WithoutChain<ApiBurnNftAlgo>;
17
+ export declare type DeployAlgoErc20KMS = WithoutChain<ApiDeployErc20KMS>;
18
+ export declare type DeployAlgoErc20 = WithoutChain<ApiDeployErc20>;
19
+ export declare type ChainTransferAlgoErc20 = WithoutChain<ApiChainTransferAlgoErc20>;
20
+ export declare type ChainTransferAlgoErc20KMS = WithoutChain<ApiChainTransferAlgoErc20KMS>;
21
+ export declare type ChainBurnAlgoErc20 = WithoutChain<ApiChainBurnAlgoErc20>;
22
+ export declare type ChainBurnAlgoErc20KMS = WithoutChain<ApiChainBurnAlgoErc20KMS>;
23
+ export declare type AlgoApiCallsType = {
24
+ getBlockchainAccountBalance: (account: string) => Promise<{
25
+ balance?: number;
26
+ }>;
27
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=algo.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algo.types.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import type { ChainBurnAlgoErc20, ChainBurnAlgoErc20KMS, ChainTransferAlgoErc20, ChainTransferAlgoErc20KMS, DeployAlgoErc20, DeployAlgoErc20KMS } from '../algo.types';
2
+ import { AlgoWeb } from '../algo.web';
3
+ export declare const prepareCreateFTSignedTransaction: ({ body, testnet, algoWeb, provider, }: {
4
+ body: DeployAlgoErc20 | DeployAlgoErc20KMS;
5
+ testnet?: boolean;
6
+ algoWeb: AlgoWeb;
7
+ provider?: string;
8
+ }) => Promise<string>;
9
+ export declare const prepareTransferFTSignedTransaction: ({ body, testnet, algoWeb, provider, }: {
10
+ body: ChainTransferAlgoErc20 | ChainTransferAlgoErc20KMS;
11
+ testnet?: boolean;
12
+ algoWeb: AlgoWeb;
13
+ provider?: string;
14
+ }) => Promise<string>;
15
+ export declare const prepareBurnFTSignedTransaction: ({ body, testnet, algoWeb, provider, }: {
16
+ body: ChainBurnAlgoErc20 | ChainBurnAlgoErc20KMS;
17
+ testnet?: boolean;
18
+ algoWeb: AlgoWeb;
19
+ provider?: string;
20
+ }) => Promise<string>;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prepareBurnFTSignedTransaction = exports.prepareTransferFTSignedTransaction = exports.prepareCreateFTSignedTransaction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
6
+ const algosdk = tslib_1.__importStar(require("algosdk"));
7
+ const bignumber_js_1 = require("bignumber.js");
8
+ // No types for base32.js
9
+ // @ts-ignore
10
+ const base32_js_1 = tslib_1.__importDefault(require("base32.js"));
11
+ const algo_wallet_1 = require("../algo.wallet");
12
+ const prepareCreateFTSignedTransaction = ({ body, testnet = false, algoWeb, provider, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
13
+ const algodClient = algoWeb.getClient(testnet, provider);
14
+ const params = yield algodClient.getTransactionParams().do();
15
+ const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
16
+ const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
17
+ ? body.from
18
+ : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
19
+ const txn = algosdk.makeAssetCreateTxnWithSuggestedParams(from, undefined, new bignumber_js_1.BigNumber(body.supply).shiftedBy(new bignumber_js_1.BigNumber(body.digits).toNumber()).toNumber(), new bignumber_js_1.BigNumber(body.digits).toNumber(), false, from, undefined, undefined, undefined, body.symbol, body.name, body.url, undefined, Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }));
20
+ if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
21
+ return JSON.stringify(txn);
22
+ }
23
+ const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
24
+ const signedTxn = txn.signTxn(secretKey);
25
+ return Buffer.from(signedTxn).toString('hex');
26
+ });
27
+ exports.prepareCreateFTSignedTransaction = prepareCreateFTSignedTransaction;
28
+ const prepareTransferFTSignedTransaction = ({ body, testnet = false, algoWeb, provider, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
29
+ const algodClient = algoWeb.getClient(testnet, provider);
30
+ const params = yield algodClient.getTransactionParams().do();
31
+ const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
32
+ const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
33
+ ? body.from
34
+ : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
35
+ const txn = algosdk.makeAssetTransferTxnWithSuggestedParams(from, body.to, undefined, undefined, new bignumber_js_1.BigNumber(body.amount).shiftedBy(body.digits || 1).toNumber(), undefined, Number(body.contractAddress), Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }), undefined);
36
+ if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
37
+ return JSON.stringify(txn);
38
+ }
39
+ const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
40
+ const signedTxn = txn.signTxn(secretKey);
41
+ return Buffer.from(signedTxn).toString('hex');
42
+ });
43
+ exports.prepareTransferFTSignedTransaction = prepareTransferFTSignedTransaction;
44
+ const prepareBurnFTSignedTransaction = ({ body, testnet = false, algoWeb, provider, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
45
+ const algodClient = algoWeb.getClient(testnet, provider);
46
+ const params = yield algodClient.getTransactionParams().do();
47
+ const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
48
+ const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
49
+ ? body.from
50
+ : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
51
+ const txn = algosdk.makeAssetDestroyTxnWithSuggestedParams(from, undefined, Number(body.contractAddress), Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }), undefined);
52
+ if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
53
+ return JSON.stringify(txn);
54
+ }
55
+ const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
56
+ const signedTxn = txn.signTxn(secretKey);
57
+ return Buffer.from(signedTxn).toString('hex');
58
+ });
59
+ exports.prepareBurnFTSignedTransaction = prepareBurnFTSignedTransaction;
60
+ //# sourceMappingURL=algo.tx.fungible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algo.tx.fungible.js","sourceRoot":"","sources":["../../../../../../../../packages/blockchain/algo/src/lib/services/tx/algo.tx.fungible.ts"],"names":[],"mappings":";;;;AAAA,sEAAgE;AAChE,yDAAkC;AAClC,+CAAwC;AASxC,yBAAyB;AACzB,aAAa;AACb,kEAA8B;AAE9B,gDAA2C;AAEpC,MAAM,gCAAgC,GAAG,CAAO,EACrD,IAAI,EACJ,OAAO,GAAG,KAAK,EACf,OAAO,EACP,QAAQ,GAMT,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IACxD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,oBAAoB,EAAE,CAAC,EAAE,EAAE,CAAA;IAE5D,MAAM,OAA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,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IAExC,OAAO,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAC/C,CAAC,CAAA,CAAA;AAxCY,QAAA,8BAA8B,kCAwC1C"}
@@ -0,0 +1,9 @@
1
+ import type { AlgoApiCallsType, TransferAlgo, TransferAlgoBlockchain, TransferAlgoBlockchainKMS, TransferAlgoKMS } from '../algo.types';
2
+ import { AlgoWeb } from '../algo.web';
3
+ export declare const prepareSignedTransaction: ({ body, testnet, algoWeb, apiCalls, provider, }: {
4
+ body: TransferAlgo | TransferAlgoKMS | TransferAlgoBlockchain | TransferAlgoBlockchainKMS;
5
+ testnet?: boolean;
6
+ algoWeb: AlgoWeb;
7
+ apiCalls: AlgoApiCallsType;
8
+ provider?: string;
9
+ }) => Promise<string>;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prepareSignedTransaction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // No types for base32.js
6
+ // @ts-ignore
7
+ const base32_js_1 = tslib_1.__importDefault(require("base32.js"));
8
+ const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
9
+ const bignumber_js_1 = require("bignumber.js");
10
+ const algosdk = tslib_1.__importStar(require("algosdk"));
11
+ const algo_wallet_1 = require("../algo.wallet");
12
+ const prepareSignedTransaction = ({ body, testnet = false, algoWeb, apiCalls, provider, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
13
+ var _a;
14
+ const account = body.from || body.account;
15
+ const to = body.to || body.address;
16
+ const privateKey = body.fromPrivateKey || body.privateKey;
17
+ const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
18
+ ? account
19
+ : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(privateKey);
20
+ if (body.to) {
21
+ const { balance } = yield apiCalls.getBlockchainAccountBalance(from);
22
+ const requiredBalance = new bignumber_js_1.BigNumber(body.amount).plus(body.fee || 0.001);
23
+ const accountBalance = new bignumber_js_1.BigNumber(balance || 0);
24
+ if (accountBalance.isLessThan(requiredBalance)) {
25
+ throw new shared_abstract_sdk_1.SdkError({
26
+ code: shared_abstract_sdk_1.SdkErrorCode.INSUFFICIENT_FUNDS,
27
+ originalError: {
28
+ name: shared_abstract_sdk_1.SdkErrorCode.INSUFFICIENT_FUNDS,
29
+ message: `Insufficient funds to create transaction from address ${from} -> available balance is ${accountBalance.toString()}, required balance is ${requiredBalance.toString()}.`,
30
+ },
31
+ });
32
+ }
33
+ }
34
+ const algodClient = algoWeb.getClient(testnet, provider);
35
+ const params = yield algodClient.getTransactionParams().do();
36
+ const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
37
+ const enc = new TextEncoder();
38
+ const note = enc.encode((_a = body.senderNote) !== null && _a !== void 0 ? _a : '');
39
+ const bodyn = algosdk.makePaymentTxnWithSuggestedParams(from, to, new bignumber_js_1.BigNumber(body.amount).multipliedBy(1000000).toNumber(), undefined, note, Object.assign(Object.assign({}, params), { fee: new bignumber_js_1.BigNumber(body.fee || '0.001').multipliedBy(1000000).toNumber(), flatFee: true }));
40
+ if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
41
+ return JSON.stringify(bodyn);
42
+ }
43
+ const secretKey = new Uint8Array(decoder.write(privateKey).buf);
44
+ const signedTxn = bodyn.signTxn(secretKey);
45
+ return Buffer.from(signedTxn).toString('hex');
46
+ });
47
+ exports.prepareSignedTransaction = prepareSignedTransaction;
48
+ //# sourceMappingURL=algo.tx.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algo.tx.native.js","sourceRoot":"","sources":["../../../../../../../../packages/blockchain/algo/src/lib/services/tx/algo.tx.native.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,aAAa;AACb,kEAA8B;AAC9B,sEAAwF;AACxF,+CAAwC;AACxC,yDAAkC;AASlC,gDAA2C;AAEpC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ferNftAlgoKMS } from '../algo.types';
2
+ import { AlgoWeb } from '../algo.web';
3
+ export declare const prepareCreateNFTSignedTransaction: ({ body, testnet, algoWeb, provider, }: {
4
+ body: MintNftAlgo | MintNftAlgoKMS;
5
+ testnet?: boolean;
6
+ algoWeb: AlgoWeb;
7
+ provider?: string;
8
+ }) => Promise<string>;
9
+ export declare const prepareTransferNFTSignedTransaction: ({ body, testnet, algoWeb, provider, }: {
10
+ body: TransferNftAlgo | TransferNftAlgoKMS | TransferNftAlgoExpress;
11
+ testnet?: boolean;
12
+ algoWeb: AlgoWeb;
13
+ provider?: string;
14
+ }) => Promise<string>;
15
+ export declare const prepareBurnNFTSignedTransaction: ({ body, testnet, algoWeb, provider, }: {
16
+ body: BurnNftAlgo | BurnNftAlgoKMS;
17
+ testnet?: boolean;
18
+ algoWeb: AlgoWeb;
19
+ provider?: string;
20
+ }) => Promise<string>;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prepareBurnNFTSignedTransaction = exports.prepareTransferNFTSignedTransaction = exports.prepareCreateNFTSignedTransaction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // No types for base32.js
6
+ // @ts-ignore
7
+ const base32_js_1 = tslib_1.__importDefault(require("base32.js"));
8
+ const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
9
+ const algosdk = tslib_1.__importStar(require("algosdk"));
10
+ const bignumber_js_1 = require("bignumber.js");
11
+ const algo_wallet_1 = require("../algo.wallet");
12
+ const prepareCreateNFTSignedTransaction = ({ body, testnet = false, algoWeb, provider, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
13
+ var _a, _b, _c, _d, _e, _f;
14
+ const algodClient = algoWeb.getClient(testnet, provider);
15
+ const params = yield algodClient.getTransactionParams().do();
16
+ const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
17
+ const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
18
+ ? body.from
19
+ : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
20
+ const decimals = ((_a = body.attr) === null || _a === void 0 ? void 0 : _a['decimals']) || 0;
21
+ const total = new bignumber_js_1.BigNumber(((_b = body.attr) === null || _b === void 0 ? void 0 : _b['total']) || 1)
22
+ .multipliedBy(Math.pow(10, decimals))
23
+ .toNumber();
24
+ const txn = algosdk.makeAssetCreateTxnWithSuggestedParams(from, undefined, total, decimals, false, from, (_c = body.attr) === null || _c === void 0 ? void 0 : _c.reserve, (_d = body.attr) === null || _d === void 0 ? void 0 : _d.freeze, (_e = body.attr) === null || _e === void 0 ? void 0 : _e.clawback, (_f = body.attr) === null || _f === void 0 ? void 0 : _f.assetUnit, body.name, body.url, undefined, Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }));
25
+ if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
26
+ return JSON.stringify(txn);
27
+ }
28
+ const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
29
+ const signedTxn = txn.signTxn(secretKey);
30
+ return Buffer.from(signedTxn).toString('hex');
31
+ });
32
+ exports.prepareCreateNFTSignedTransaction = prepareCreateNFTSignedTransaction;
33
+ const prepareTransferNFTSignedTransaction = ({ body, testnet = false, algoWeb, provider, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
34
+ const algodClient = algoWeb.getClient(testnet, provider);
35
+ const params = yield algodClient.getTransactionParams().do();
36
+ const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
37
+ const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
38
+ ? body.from
39
+ : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
40
+ const amount = new bignumber_js_1.BigNumber(body.amount || 1)
41
+ .multipliedBy(Math.pow(10, (body.decimals || 0)))
42
+ .toNumber();
43
+ const txn = algosdk.makeAssetTransferTxnWithSuggestedParams(from, body.to, undefined, undefined, amount, undefined, new bignumber_js_1.BigNumber(body.contractAddress).toNumber(), Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }), undefined);
44
+ if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
45
+ return JSON.stringify(txn);
46
+ }
47
+ const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
48
+ const signedTxn = txn.signTxn(secretKey);
49
+ return Buffer.from(signedTxn).toString('hex');
50
+ });
51
+ exports.prepareTransferNFTSignedTransaction = prepareTransferNFTSignedTransaction;
52
+ const prepareBurnNFTSignedTransaction = ({ body, testnet = false, algoWeb, provider, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
53
+ const algodClient = algoWeb.getClient(testnet, provider);
54
+ const params = yield algodClient.getTransactionParams().do();
55
+ const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
56
+ const txn = algosdk.makeAssetDestroyTxnWithSuggestedParams((0, shared_abstract_sdk_1.isWithSignatureId)(body)
57
+ ? body.from
58
+ : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey), undefined, Number(body.contractAddress), Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }), undefined);
59
+ if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
60
+ return JSON.stringify(txn);
61
+ }
62
+ const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
63
+ const signedTxn = txn.signTxn(secretKey);
64
+ return Buffer.from(signedTxn).toString('hex');
65
+ });
66
+ exports.prepareBurnNFTSignedTransaction = prepareBurnNFTSignedTransaction;
67
+ //# sourceMappingURL=algo.tx.nft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algo.tx.nft.js","sourceRoot":"","sources":["../../../../../../../../packages/blockchain/algo/src/lib/services/tx/algo.tx.nft.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,aAAa;AACb,kEAA8B;AAC9B,sEAAgE;AAChE,yDAAkC;A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AC,sCAAsC,CACxD,IAAA,uCAAiB,EAAC,IAAsB,CAAC;QACvC,CAAC,CAAE,IAAuB,CAAC,IAAI;QAC/B,CAAC,CAAC,IAAA,wBAAU,GAAE,CAAC,8BAA8B,CAAE,IAAoB,CAAC,cAAc,CAAC,EACrF,SAAS,EACT,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,kCAEvB,MAAM,KACT,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,OAAO,EAC1C,OAAO,EAAE,IAAI,KAEf,SAAS,CACV,CAAA;IAED,IAAI,IAAA,uCAAiB,EAAC,IAAsB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;KAC3B;IAED,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,KAAK,CAAE,IAAoB,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,CAAA;IACzF,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IAExC,OAAO,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAC/C,CAAC,CAAA,CAAA;AAtCY,QAAA,+BAA+B,mCAsC3C"}
@@ -1,3 +0,0 @@
1
- export * from './algo.tx';
2
- export * from './algo.wallet';
3
- export * from './algo.web';
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./algo.tx"), exports);
5
- tslib_1.__exportStar(require("./algo.wallet"), exports);
6
- tslib_1.__exportStar(require("./algo.web"), exports);
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,wDAA6B;AAC7B,qDAA0B"}