@tatumio/algo 2.0.1-alpha.379.1 → 2.0.1-alpha.381
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +6 -6
- package/src/index.d.ts +1 -6
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/lib/algo.sdk.d.ts +14 -14
- package/src/lib/services/algo.tx.d.ts +4 -22
- package/src/lib/services/algo.tx.js +82 -183
- package/src/lib/services/algo.tx.js.map +1 -1
- package/src/lib/services/algo.types.d.ts +27 -0
- package/src/lib/services/algo.types.js +3 -0
- package/src/lib/services/algo.types.js.map +1 -0
- package/src/lib/services/tx/algo.tx.fungible.d.ts +20 -0
- package/src/lib/services/tx/algo.tx.fungible.js +60 -0
- package/src/lib/services/tx/algo.tx.fungible.js.map +1 -0
- package/src/lib/services/tx/algo.tx.native.d.ts +9 -0
- package/src/lib/services/tx/algo.tx.native.js +48 -0
- package/src/lib/services/tx/algo.tx.native.js.map +1 -0
- package/src/lib/services/tx/algo.tx.nft.d.ts +20 -0
- package/src/lib/services/tx/algo.tx.nft.js +63 -0
- package/src/lib/services/tx/algo.tx.nft.js.map +1 -0
- package/src/lib/services/index.d.ts +0 -3
- package/src/lib/services/index.js +0 -7
- package/src/lib/services/index.js.map +0 -1
package/package.json
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/algo",
|
3
|
-
"version": "2.0.1-alpha.
|
3
|
+
"version": "2.0.1-alpha.381",
|
4
4
|
"type": "commonjs",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "./src/index.js",
|
7
7
|
"types": "./src/index.d.ts",
|
8
8
|
"dependencies": {
|
9
|
-
"@tatumio/shared-testing-common": "2.0.1-alpha.
|
10
|
-
"@tatumio/api-client": "2.0.1-alpha.
|
9
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.381",
|
10
|
+
"@tatumio/api-client": "2.0.1-alpha.381",
|
11
11
|
"axios": "^0.26.0",
|
12
12
|
"form-data": "^4.0.0",
|
13
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
14
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
13
|
+
"@tatumio/shared-core": "2.0.1-alpha.381",
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.381",
|
15
15
|
"bignumber.js": "^9.0.2",
|
16
16
|
"lodash": "^4.17.21",
|
17
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
17
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.381",
|
18
18
|
"algosdk": "^1.13.1",
|
19
19
|
"base32.js": "^0.1.0",
|
20
20
|
"url-parse": "^1.5.10",
|
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,
|
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"}
|
package/src/lib/algo.sdk.d.ts
CHANGED
@@ -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 '
|
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").
|
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.
|
26
|
-
transferFTSignedTransaction: (body: import("./services/algo.
|
27
|
-
burnFTSignedTransaction: (body: import("./services/algo.
|
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.
|
31
|
-
transferFTSignedTransaction: (body: import("./services/algo.
|
32
|
-
burnFTSignedTransaction: (body: import("./services/algo.
|
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.
|
40
|
-
transferNFTSignedTransaction: (body: import("./services/algo.
|
41
|
-
burnNFTSignedTransaction: (body: import("./services/algo.
|
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.
|
45
|
-
transferNFTSignedTransaction: (body: import("./services/algo.
|
46
|
-
burnNFTSignedTransaction: (body: import("./services/algo.
|
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 {
|
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 {
|
4
|
-
import {
|
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<
|
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,96 +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).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, params);
|
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(),
|
76
|
-
/*{
|
77
|
-
...params,
|
78
|
-
fee: Number(body.fee || '0.001') * 1000000,
|
79
|
-
flatFee: true,
|
80
|
-
},*/
|
81
|
-
params, undefined);
|
82
|
-
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
83
|
-
return JSON.stringify(txn);
|
84
|
-
}
|
85
|
-
const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
|
86
|
-
const signedTxn = txn.signTxn(secretKey);
|
87
|
-
return Buffer.from(signedTxn).toString('hex');
|
88
|
-
});
|
89
|
-
const prepareBurnNFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
90
|
-
const algodClient = algoWeb.getClient(testnet, provider);
|
91
|
-
const params = yield algodClient.getTransactionParams().do();
|
92
|
-
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
93
|
-
const txn = algosdk.makeAssetDestroyTxnWithSuggestedParams((0, shared_abstract_sdk_1.isWithSignatureId)(body)
|
94
|
-
? body.from
|
95
|
-
: (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);
|
96
|
-
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
97
|
-
return JSON.stringify(txn);
|
98
|
-
}
|
99
|
-
const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
|
100
|
-
const signedTxn = txn.signTxn(secretKey);
|
101
|
-
return Buffer.from(signedTxn).toString('hex');
|
102
|
-
});
|
103
17
|
const prepareReceiveAssetSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
104
18
|
const algodClient = algoWeb.getClient(testnet, provider);
|
105
19
|
const params = yield algodClient.getTransactionParams().do();
|
@@ -107,82 +21,13 @@ const algoTxService = (args, apiCalls) => {
|
|
107
21
|
const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
|
108
22
|
? body.from
|
109
23
|
: (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
|
110
|
-
const txn = algosdk.makeAssetTransferTxnWithSuggestedParams(from, from, undefined, undefined, 0, undefined, body.assetId,
|
111
|
-
/*{
|
112
|
-
...params,
|
113
|
-
fee: Number(body.fee || '0.001') * 1000000,
|
114
|
-
flatFee: true,
|
115
|
-
},*/
|
116
|
-
params);
|
24
|
+
const txn = algosdk.makeAssetTransferTxnWithSuggestedParams(from, from, undefined, undefined, 0, undefined, body.assetId, Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }));
|
117
25
|
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
118
26
|
return JSON.stringify(txn);
|
119
27
|
}
|
120
28
|
const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
|
121
29
|
return Buffer.from(txn.signTxn(secretKey)).toString('hex');
|
122
30
|
});
|
123
|
-
const prepareCreateFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
124
|
-
const algodClient = algoWeb.getClient(testnet, provider);
|
125
|
-
const params = yield algodClient.getTransactionParams().do();
|
126
|
-
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
127
|
-
const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
|
128
|
-
? body.from
|
129
|
-
: (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
|
130
|
-
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,
|
131
|
-
/* {
|
132
|
-
...params,
|
133
|
-
fee: Number(body.fee || '0.001') * 1000000,
|
134
|
-
flatFee: true,
|
135
|
-
},*/
|
136
|
-
params);
|
137
|
-
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
138
|
-
return JSON.stringify(txn);
|
139
|
-
}
|
140
|
-
const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
|
141
|
-
const signedTxn = txn.signTxn(secretKey);
|
142
|
-
return Buffer.from(signedTxn).toString('hex');
|
143
|
-
});
|
144
|
-
const prepareTransferFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
145
|
-
const algodClient = algoWeb.getClient(testnet, provider);
|
146
|
-
const params = yield algodClient.getTransactionParams().do();
|
147
|
-
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
148
|
-
const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
|
149
|
-
? body.from
|
150
|
-
: (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
|
151
|
-
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),
|
152
|
-
/*{
|
153
|
-
...params,
|
154
|
-
fee: Number(body.fee || '0.001') * 1000000,
|
155
|
-
flatFee: true,
|
156
|
-
},*/
|
157
|
-
params, undefined);
|
158
|
-
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
159
|
-
return JSON.stringify(txn);
|
160
|
-
}
|
161
|
-
const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
|
162
|
-
const signedTxn = txn.signTxn(secretKey);
|
163
|
-
return Buffer.from(signedTxn).toString('hex');
|
164
|
-
});
|
165
|
-
const prepareBurnFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
166
|
-
const algodClient = algoWeb.getClient(testnet, provider);
|
167
|
-
const params = yield algodClient.getTransactionParams().do();
|
168
|
-
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
169
|
-
const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
|
170
|
-
? body.from
|
171
|
-
: (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
|
172
|
-
const txn = algosdk.makeAssetDestroyTxnWithSuggestedParams(from, undefined, Number(body.contractAddress),
|
173
|
-
/*{
|
174
|
-
...params,
|
175
|
-
fee: Number(body.fee || '0.001') * 1000000,
|
176
|
-
flatFee: true,
|
177
|
-
},*/
|
178
|
-
params, undefined);
|
179
|
-
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
180
|
-
return JSON.stringify(txn);
|
181
|
-
}
|
182
|
-
const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
|
183
|
-
const signedTxn = txn.signTxn(secretKey);
|
184
|
-
return Buffer.from(signedTxn).toString('hex');
|
185
|
-
});
|
186
31
|
return {
|
187
32
|
asset: {
|
188
33
|
prepare: {
|
@@ -222,7 +67,7 @@ const algoTxService = (args, apiCalls) => {
|
|
222
67
|
* @param provider url of the Algorand Server to connnect to. If not set, default public server will be used.
|
223
68
|
* @returns transaction data to be broadcast to blockchain.
|
224
69
|
*/
|
225
|
-
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 }); }),
|
226
71
|
/**
|
227
72
|
* Sign Algorand transfer FT transaction with private kwy locally. Nothing is broadcast to the blockchain.
|
228
73
|
* @param testnet mainnet or testnet version
|
@@ -230,7 +75,7 @@ const algoTxService = (args, apiCalls) => {
|
|
230
75
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
231
76
|
* @returns transaction data to be broadcast to blockchain.
|
232
77
|
*/
|
233
|
-
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 }); }),
|
234
79
|
/**
|
235
80
|
* Sign ALgorand burn FT transaction with private key locally. Nothing is broadcast to the blockchain.
|
236
81
|
* @param body content of the transaction to broadcast
|
@@ -238,7 +83,7 @@ const algoTxService = (args, apiCalls) => {
|
|
238
83
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
239
84
|
* @returns transaction data to be broadcast to blockchain.
|
240
85
|
*/
|
241
|
-
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 }); }),
|
242
87
|
},
|
243
88
|
send: {
|
244
89
|
/**
|
@@ -252,7 +97,12 @@ const algoTxService = (args, apiCalls) => {
|
|
252
97
|
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
253
98
|
return api_client_1.ApiServices.fungibleToken.erc20Deploy(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
|
254
99
|
}
|
255
|
-
const txData = yield
|
100
|
+
const txData = yield (0, algo_tx_fungible_1.prepareCreateFTSignedTransaction)({
|
101
|
+
body,
|
102
|
+
testnet,
|
103
|
+
algoWeb: args.algoWeb,
|
104
|
+
provider,
|
105
|
+
});
|
256
106
|
return api_client_1.AlgorandService.algorandBroadcast({
|
257
107
|
txData,
|
258
108
|
});
|
@@ -268,7 +118,12 @@ const algoTxService = (args, apiCalls) => {
|
|
268
118
|
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
269
119
|
return api_client_1.ApiServices.fungibleToken.erc20Transfer(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
|
270
120
|
}
|
271
|
-
const txData = yield
|
121
|
+
const txData = yield (0, algo_tx_fungible_1.prepareTransferFTSignedTransaction)({
|
122
|
+
body,
|
123
|
+
testnet,
|
124
|
+
algoWeb: args.algoWeb,
|
125
|
+
provider,
|
126
|
+
});
|
272
127
|
return api_client_1.AlgorandService.algorandBroadcast({
|
273
128
|
txData,
|
274
129
|
});
|
@@ -284,7 +139,12 @@ const algoTxService = (args, apiCalls) => {
|
|
284
139
|
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
285
140
|
return api_client_1.ApiServices.fungibleToken.erc20Burn(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
|
286
141
|
}
|
287
|
-
const txData = yield
|
142
|
+
const txData = yield (0, algo_tx_fungible_1.prepareBurnFTSignedTransaction)({
|
143
|
+
body,
|
144
|
+
testnet,
|
145
|
+
algoWeb: args.algoWeb,
|
146
|
+
provider,
|
147
|
+
});
|
288
148
|
return api_client_1.AlgorandService.algorandBroadcast({
|
289
149
|
txData,
|
290
150
|
});
|
@@ -300,7 +160,14 @@ const algoTxService = (args, apiCalls) => {
|
|
300
160
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
301
161
|
* @returns transaction data to be broadcast to blockchain
|
302
162
|
*/
|
303
|
-
createNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
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
|
+
}),
|
304
171
|
/**
|
305
172
|
* Sign Algorand transfer NFT transaction with private key locally. Nothing is broadcast to the blockchain.
|
306
173
|
* @param body content of the transaction to broadcast
|
@@ -308,7 +175,7 @@ const algoTxService = (args, apiCalls) => {
|
|
308
175
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
309
176
|
* @returns transaction data to be broadcast to blockchain.
|
310
177
|
*/
|
311
|
-
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 }); }),
|
312
179
|
/**
|
313
180
|
* Sign Algorand burn NFT transaction with private key locally. Nothing is broadcast to the blockchain.
|
314
181
|
* @param body content of the transaction to broadcast
|
@@ -316,7 +183,7 @@ const algoTxService = (args, apiCalls) => {
|
|
316
183
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
317
184
|
* @returns transaction data to be broadcast to blockchain.
|
318
185
|
*/
|
319
|
-
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 }); }),
|
320
187
|
},
|
321
188
|
send: {
|
322
189
|
/**
|
@@ -330,7 +197,12 @@ const algoTxService = (args, apiCalls) => {
|
|
330
197
|
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body) || !body.fromPrivateKey) {
|
331
198
|
return api_client_1.ApiServices.nft.nftMintErc721(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
|
332
199
|
}
|
333
|
-
const txData = yield
|
200
|
+
const txData = yield (0, algo_tx_nft_1.prepareCreateNFTSignedTransaction)({
|
201
|
+
body: body,
|
202
|
+
testnet,
|
203
|
+
algoWeb: args.algoWeb,
|
204
|
+
provider,
|
205
|
+
});
|
334
206
|
return api_client_1.AlgorandService.algorandBroadcast({
|
335
207
|
txData,
|
336
208
|
});
|
@@ -346,7 +218,12 @@ const algoTxService = (args, apiCalls) => {
|
|
346
218
|
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
347
219
|
return api_client_1.ApiServices.nft.nftTransferErc721(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
|
348
220
|
}
|
349
|
-
const txData = yield
|
221
|
+
const txData = yield (0, algo_tx_nft_1.prepareTransferNFTSignedTransaction)({
|
222
|
+
body,
|
223
|
+
testnet,
|
224
|
+
algoWeb: args.algoWeb,
|
225
|
+
provider,
|
226
|
+
});
|
350
227
|
return api_client_1.AlgorandService.algorandBroadcast({
|
351
228
|
txData,
|
352
229
|
});
|
@@ -362,7 +239,12 @@ const algoTxService = (args, apiCalls) => {
|
|
362
239
|
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
363
240
|
return api_client_1.ApiServices.nft.nftBurnErc721(Object.assign({ chain: api_client_1.Currency.ALGO }, body));
|
364
241
|
}
|
365
|
-
const txData = yield
|
242
|
+
const txData = yield (0, algo_tx_nft_1.prepareBurnNFTSignedTransaction)({
|
243
|
+
body,
|
244
|
+
testnet,
|
245
|
+
algoWeb: args.algoWeb,
|
246
|
+
provider,
|
247
|
+
});
|
366
248
|
return api_client_1.AlgorandService.algorandBroadcast({
|
367
249
|
txData,
|
368
250
|
});
|
@@ -378,7 +260,7 @@ const algoTxService = (args, apiCalls) => {
|
|
378
260
|
* @param provider url of the algorand server endpoint for purestake.io restapi
|
379
261
|
* @returns transaction data to be broadcast to blockchain
|
380
262
|
*/
|
381
|
-
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 }); }),
|
382
264
|
},
|
383
265
|
send: {
|
384
266
|
/**
|
@@ -398,7 +280,13 @@ const algoTxService = (args, apiCalls) => {
|
|
398
280
|
return api_client_1.ApiServices.blockchain.algo.algorandBlockchainTransfer(body);
|
399
281
|
}
|
400
282
|
}
|
401
|
-
const txData = yield
|
283
|
+
const txData = yield (0, algo_tx_native_1.prepareSignedTransaction)({
|
284
|
+
body,
|
285
|
+
testnet,
|
286
|
+
algoWeb: args.algoWeb,
|
287
|
+
apiCalls,
|
288
|
+
provider,
|
289
|
+
});
|
402
290
|
return api_client_1.AlgorandService.algorandBroadcast({
|
403
291
|
txData,
|
404
292
|
});
|
@@ -418,23 +306,34 @@ const algoTxService = (args, apiCalls) => {
|
|
418
306
|
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
419
307
|
return api_client_1.ApiServices.virtualAccount.blockchain.algoTransfer(body);
|
420
308
|
}
|
421
|
-
const
|
309
|
+
const _a = body, { fee, privateKey } = _a, withdrawal = tslib_1.__rest(_a, ["fee", "privateKey"]);
|
422
310
|
const { senderAccountId } = withdrawal;
|
423
311
|
const account = yield api_client_1.AccountService.getAccountByAccountId(senderAccountId);
|
424
312
|
let txData;
|
425
313
|
if (account.currency === api_client_1.Currency.ALGO) {
|
426
|
-
txData = yield
|
314
|
+
txData = yield (0, algo_tx_native_1.prepareSignedTransaction)({
|
315
|
+
body: body,
|
316
|
+
testnet,
|
317
|
+
algoWeb: args.algoWeb,
|
318
|
+
apiCalls,
|
319
|
+
provider,
|
320
|
+
});
|
427
321
|
}
|
428
322
|
else {
|
429
323
|
const vc = yield api_client_1.ApiServices.ledger.virtualCurrency.getCurrency(account.currency);
|
430
|
-
txData = yield prepareTransferFTSignedTransaction({
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
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: new bignumber_js_1.BigNumber(body.amount).multipliedBy(Math.pow(10, (vc.precision || 0))).toString(),
|
330
|
+
contractAddress: vc.erc20Address,
|
331
|
+
fee: body.fee,
|
332
|
+
},
|
333
|
+
testnet,
|
334
|
+
algoWeb: args.algoWeb,
|
335
|
+
provider,
|
336
|
+
});
|
438
337
|
}
|
439
338
|
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() }));
|
440
339
|
try {
|
@@ -1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AE,GAAG,MAAM,wBAAW,CAAC,cAAc,CAAC,UAAU,CAAC,eAAe,iCACrE,UAAU,KACb,GAAG,EAAE,IAAI,wBAAS,CAAC,GAAG,IAAI,OAAO,CAAC,CAAC,QAAQ,EAAE,IAC7C,CAAA;gBAEF,IAAI;oBACF,uCACK,CAAC,MAAM,wBAAW,CAAC,cAAc,CAAC,UAAU,CAAC,8BAA8B,CAAC;wBAC7E,MAAM;wBACN,YAAY,EAAE,EAAE;wBAChB,QAAQ,EAAE,qBAAQ,CAAC,IAAI;qBACxB,CAAC,CAAC,KACH,EAAE,IACH;iBACF;gBAAC,OAAO,CAAC,EAAE;oBACV,IAAI;wBACF,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;AAhtBY,QAAA,aAAa,iBAgtBzB"}
|
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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AE,IAAI,CAAC,GAAG;yBACY;wBAC3B,OAAO;wBACP,OAAO,EAAE,IAAI,CAAC,OAAO;wBACrB,QAAQ;qBACT,CAAC,CAAA;iBACH;gBAED,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,wBAAW,CAAC,cAAc,CAAC,UAAU,CAAC,eAAe,iCACrE,UAAU,KACb,GAAG,EAAE,IAAI,wBAAS,CAAC,GAAG,IAAI,OAAO,CAAC,CAAC,QAAQ,EAAE,IAC7C,CAAA;gBAEF,IAAI;oBACF,uCACK,CAAC,MAAM,wBAAW,CAAC,cAAc,CAAC,UAAU,CAAC,8BAA8B,CAAC;wBAC7E,MAAM;wBACN,YAAY,EAAE,EAAE;wBAChB,QAAQ,EAAE,qBAAQ,CAAC,IAAI;qBACxB,CAAC,CAAC,KACH,EAAE,IACH;iBACF;gBAAC,OAAO,CAAC,EAAE;oBACV,IAAI;wBACF,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;AAhcY,QAAA,aAAa,iBAgczB"}
|
@@ -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 @@
|
|
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,OAAO,GAAG,IAAI,mBAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,MAAM,IAAI,GAAG,IAAA,uCAAiB,EAAC,IAA0B,CAAC;QACxD,CAAC,CAAE,IAA2B,CAAC,IAAI;QACnC,CAAC,CAAC,IAAA,wBAAU,GAAE,CAAC,8BA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
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,kEAA8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Algo, BurnNftAlgoKMS, MintNftAlgo, MintNftAlgoKMS, TransferNftAlgo, TransferNftAlgoExpress, TransferNftAlgoKMS } 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,63 @@
|
|
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;
|
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 txn = algosdk.makeAssetCreateTxnWithSuggestedParams(from, undefined, 1, 0, false, from, (_a = body.attr) === null || _a === void 0 ? void 0 : _a.reserve, (_b = body.attr) === null || _b === void 0 ? void 0 : _b.freeze, (_c = body.attr) === null || _c === void 0 ? void 0 : _c.clawback, (_d = body.attr) === null || _d === void 0 ? void 0 : _d.assetUnit, body.name, body.url, undefined, Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }));
|
21
|
+
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
22
|
+
return JSON.stringify(txn);
|
23
|
+
}
|
24
|
+
const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
|
25
|
+
const signedTxn = txn.signTxn(secretKey);
|
26
|
+
return Buffer.from(signedTxn).toString('hex');
|
27
|
+
});
|
28
|
+
exports.prepareCreateNFTSignedTransaction = prepareCreateNFTSignedTransaction;
|
29
|
+
const prepareTransferNFTSignedTransaction = ({ body, testnet = false, algoWeb, provider, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
30
|
+
const algodClient = algoWeb.getClient(testnet, provider);
|
31
|
+
const params = yield algodClient.getTransactionParams().do();
|
32
|
+
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
33
|
+
const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
|
34
|
+
? body.from
|
35
|
+
: (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(body.fromPrivateKey);
|
36
|
+
if (!body.value) {
|
37
|
+
throw new Error('No value specified');
|
38
|
+
}
|
39
|
+
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);
|
40
|
+
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
41
|
+
return JSON.stringify(txn);
|
42
|
+
}
|
43
|
+
const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
|
44
|
+
const signedTxn = txn.signTxn(secretKey);
|
45
|
+
return Buffer.from(signedTxn).toString('hex');
|
46
|
+
});
|
47
|
+
exports.prepareTransferNFTSignedTransaction = prepareTransferNFTSignedTransaction;
|
48
|
+
const prepareBurnNFTSignedTransaction = ({ body, testnet = false, algoWeb, provider, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
49
|
+
const algodClient = algoWeb.getClient(testnet, provider);
|
50
|
+
const params = yield algodClient.getTransactionParams().do();
|
51
|
+
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
52
|
+
const txn = algosdk.makeAssetDestroyTxnWithSuggestedParams((0, shared_abstract_sdk_1.isWithSignatureId)(body)
|
53
|
+
? body.from
|
54
|
+
: (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);
|
55
|
+
if ((0, shared_abstract_sdk_1.isWithSignatureId)(body)) {
|
56
|
+
return JSON.stringify(txn);
|
57
|
+
}
|
58
|
+
const secretKey = new Uint8Array(decoder.write(body.fromPrivateKey).buf);
|
59
|
+
const signedTxn = txn.signTxn(secretKey);
|
60
|
+
return Buffer.from(signedTxn).toString('hex');
|
61
|
+
});
|
62
|
+
exports.prepareBurnNFTSignedTransaction = prepareBurnNFTSignedTransaction;
|
63
|
+
//# 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;AAClC,+CAAwC;AAWxC,gDAA2C;AAEpC,MAAM,iCAAiC,GAAG,CAAO,EACtD,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,OAAO,GAAG,IAAI,mBAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,MAAM,IAAI,GAAG,IAAA,uCAAiB,EAAC,IAAI,CAAC;QAClC,CAAC,CAAC,IAAI,CAAC,IAAI;QACX,CAAC,CAAC,IAAA,wBAAU,GAAE,CAAC,8BAA8B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;IAEpE,MAAM,GAAG,GAAG,OAAO,CAAC,qCAAqC,CACvD,IAAI,EACJ,SAAS,EACT,CAAC,EACD,CAAC,EACD,KAAK,EACL,IAAI,EACJ,MAAA,IAAI,CAAC,IAAI,0CAAE,OAAO,EAClB,MAAA,IAAI,CAAC,IAAI,0CAAE,MAAM,EACjB,MAAA,IAAI,CAAC,IAAI,0CAAE,QAAQ,EACnB,MAAA,IAAI,CAAC,IAAI,0CAAE,SAAS,EACpB,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,GAAG,EACR,SAAS,kCAEJ,MAAM,KACT,GAAG,EAAE,MAAM,CAA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E,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,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"}
|