@tatumio/algo 2.0.1-alpha.347 → 2.0.1-alpha.348
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +6 -6
- package/src/lib/algo.sdk.js +1 -1
- package/src/lib/algo.sdk.js.map +1 -1
- package/src/lib/services/algo.tx.d.ts +0 -1
- package/src/lib/services/algo.tx.js +1 -20
- package/src/lib/services/algo.tx.js.map +1 -1
- package/src/lib/services/algo.web.d.ts +2 -1
- package/src/lib/services/algo.web.js +8 -27
- package/src/lib/services/algo.web.js.map +1 -1
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/algo",
|
3
|
-
"version": "2.0.1-alpha.
|
3
|
+
"version": "2.0.1-alpha.348",
|
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.348",
|
10
|
+
"@tatumio/api-client": "2.0.1-alpha.348",
|
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.348",
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.348",
|
15
15
|
"bignumber.js": "^9.0.2",
|
16
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
16
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.348",
|
17
17
|
"algosdk": "^1.13.1",
|
18
18
|
"base32.js": "^0.1.0",
|
19
19
|
"url-parse": "^1.5.10",
|
package/src/lib/algo.sdk.js
CHANGED
@@ -12,7 +12,7 @@ const blockchain = shared_core_1.Blockchain.ALGO;
|
|
12
12
|
const TatumAlgoSDK = (args, apiCalls = {
|
13
13
|
getBlockchainAccountBalance: api_client_1.ApiServices.blockchain.algo.algorandGetBalance,
|
14
14
|
}) => {
|
15
|
-
const web = (0, algo_web_1.algoWeb)();
|
15
|
+
const web = (0, algo_web_1.algoWeb)(args);
|
16
16
|
const txService = (0, algo_tx_1.algoTxService)({ algoWeb: web }, apiCalls);
|
17
17
|
const _a = (0, shared_blockchain_abstract_1.abstractBlockchainSdk)(Object.assign(Object.assign({}, args), { blockchain })), { nft } = _a, abstractSdk = tslib_1.__rest(_a, ["nft"]);
|
18
18
|
const { mintNFT, transferNFT, burnNFT, getNFTAccountBalance, getNFTContractAddress } = nft;
|
package/src/lib/algo.sdk.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"algo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/algo/src/lib/algo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAAiD;AAEjD,oFAA6G;AAC7G,oDAA0G;AAC1G,kDAA6C;AAC7C,wDAAmD;AACnD,gDAAkD;AAGlD,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAC1B,IAAkB,EAClB,WAA6B;IAC3B,2BAA2B,EAAE,wBAAW,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB;CAC5E,EACD,EAAE;IACF,MAAM,GAAG,GAAG,IAAA,kBAAO,
|
1
|
+
{"version":3,"file":"algo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/algo/src/lib/algo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAAiD;AAEjD,oFAA6G;AAC7G,oDAA0G;AAC1G,kDAA6C;AAC7C,wDAAmD;AACnD,gDAAkD;AAGlD,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAC1B,IAAkB,EAClB,WAA6B;IAC3B,2BAA2B,EAAE,wBAA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C;SAC9E,EACD,cAAc,kCACT,IAAA,6DAAgC,EAAC,EAAE,UAAU,EAAE,CAAC,GAChD,SAAS,CAAC,cAAc,GAE7B,IAAI,EAAE;YACJ,gBAAgB,EAAE,4BAAe,CAAC,wBAAwB;YAC1D,SAAS,EAAE,4BAAe,CAAC,iBAAiB;YAC5C,UAAU,EAAE,4BAAe,CAAC,kBAAkB;SAC/C,IACF;AACH,CAAC,CAAA;AArDY,QAAA,YAAY,gBAqDxB"}
|
@@ -34,7 +34,6 @@ export declare type ChainTransferAlgoErc20KMS = WithoutChain<ApiChainTransferAlg
|
|
34
34
|
declare type SendOffchainResponse = OffchainTransactionResult | OffchainTransactionSignatureResult | {
|
35
35
|
id?: string;
|
36
36
|
} | void;
|
37
|
-
export declare const prepareSignedTransaction: (body: TransferAlgo | TransferAlgoKMS | ApiTransferAlgo | ApiTransferAlgoKMS, testnet: boolean, algoWeb: AlgoWeb, provider?: string) => Promise<string>;
|
38
37
|
export declare const algoTxService: (args: {
|
39
38
|
algoWeb: AlgoWeb;
|
40
39
|
}, apiCalls: AlgoApiCallsType) => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.algoTxService =
|
3
|
+
exports.algoTxService = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const api_client_1 = require("@tatumio/api-client");
|
6
6
|
const algosdk = tslib_1.__importStar(require("algosdk"));
|
@@ -10,25 +10,6 @@ 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 prepareSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
14
|
-
var _a;
|
15
|
-
const algodClient = algoWeb.getClient(testnet, provider);
|
16
|
-
const params = yield algodClient.getTransactionParams().do();
|
17
|
-
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
18
|
-
const enc = new TextEncoder();
|
19
|
-
const note = enc.encode((_a = body.senderNote) !== null && _a !== void 0 ? _a : '');
|
20
|
-
const bodyn = algosdk.makePaymentTxnWithSuggestedParams(body.account, body.address, Number(body.amount) * 1000000, undefined, note, Object.assign(Object.assign({}, params), { fee: Number(body.fee || '0.001') * 1000000, flatFee: true }));
|
21
|
-
if (isTransferAlgoKMS(body)) {
|
22
|
-
return JSON.stringify(bodyn);
|
23
|
-
}
|
24
|
-
const secretKey = new Uint8Array(decoder.write(body.privateKey).buf);
|
25
|
-
const signedTxn = bodyn.signTxn(secretKey);
|
26
|
-
return Buffer.from(signedTxn).toString('hex');
|
27
|
-
});
|
28
|
-
exports.prepareSignedTransaction = prepareSignedTransaction;
|
29
|
-
function isTransferAlgoKMS(input) {
|
30
|
-
return input.signatureId !== undefined;
|
31
|
-
}
|
32
13
|
const algoTxService = (args, apiCalls) => {
|
33
14
|
const prepareSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
34
15
|
const { balance } = yield apiCalls.getBlockchainAccountBalance(body.account);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"algo.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.tx.ts"],"names":[],"mappings":";;;;AAAA,oDAqB4B;AAE5B,yDAAkC;AAClC,yBAAyB;AACzB,aAAa;AACb,kEAA8B;AAC9B,+CAA0C;AAC1C,sEAAsG;AAEtG,+CAAwC;AA6BjC,MAAM,wBAAwB,GAAG,CACtC,IAA2E,EAC3E,OAAO,GAAG,KAAK,EACf,OAAgB,EAChB,QAAiB,EACA,EAAE;;IACnB,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IACxD,MAAM,MAAM,GAAG,MAAM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,EAAE,qBAAQ,CAAC,IAAI;qBACxB,CAAC,CAAC,KACH,EAAE,IACH;iBACF;gBAAC,OAAO,CAAC,EAAE;oBACV,IAAI;wBACF,OAAO,MAAM,wBAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC,EAAG,CAAC,CAAA;qBAC7E;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;AAvmBY,QAAA,aAAa,iBAumBzB"}
|
1
|
+
{"version":3,"file":"algo.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.tx.ts"],"names":[],"mappings":";;;;AAAA,oDAqB4B;AAE5B,yDAAkC;AAClC,yBAAyB;AACzB,aAAa;AACb,kEAA8B;AAC9B,+CAA0C;AAC1C,sEAAsG;AAEtG,+CAAwC;AA6BjC,MAAM,aAAa,GAAG,CAAC,IAA0B,EAAE,QAA0B,EAAE,EAAE;IACtF,MAAM,wBAAwB,GAAG,CAC/B,IAA2E,EAC3E,OAAO,GAAG,KAAK,EACf,OAAgB,EAChB,QAAiB,EACA,EAAE;QACnB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,QAAQ,CAAC,2BAA2B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC5E,MAAM,eAAe,GAAG,IAAI,wBAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,CAAA;QAC1E,MAAM,cAAc,GAAG,IAAI,wBAAS,CAAC,OAAO,IAAI,CAAC,CAAC,CAAA;QAClD,IAAI,cAAc,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE;YAC9C,MAAM,IAAI,8BAAQ,CAAC;gBACjB,IAAI,EAAE,kCAAY,CAAC,kBAAkB;gBACrC,aAAa,EAAE;oBACb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|
/**
|
4
5
|
* Algod V2 Client
|
@@ -15,4 +16,4 @@ export interface AlgoWeb {
|
|
15
16
|
*/
|
16
17
|
getIndexerClient(testnet: boolean, provider?: string): algosdk.Indexer;
|
17
18
|
}
|
18
|
-
export declare const algoWeb: () => AlgoWeb;
|
19
|
+
export declare const algoWeb: (args: SDKArguments) => AlgoWeb;
|
@@ -4,44 +4,25 @@ exports.algoWeb = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const algosdk = tslib_1.__importStar(require("algosdk"));
|
6
6
|
const url_parse_1 = tslib_1.__importDefault(require("url-parse"));
|
7
|
-
const
|
7
|
+
const api_client_1 = require("@tatumio/api-client");
|
8
|
+
const algoWeb = (args) => {
|
8
9
|
return {
|
9
10
|
getClient: (testnet, provider) => {
|
10
|
-
const tokenValue = testnet
|
11
|
-
? process.env['TATUM_ALGORAND_TESTNET_TOKEN']
|
12
|
-
: process.env['TATUM_ALGORAND_MAINNET_TOKEN'];
|
13
|
-
if (!tokenValue) {
|
14
|
-
throw new Error('No ALGORAND token specified');
|
15
|
-
}
|
16
11
|
if (provider) {
|
17
|
-
return new algosdk.Algodv2(
|
12
|
+
return new algosdk.Algodv2('', provider, (0, url_parse_1.default)(provider).port);
|
18
13
|
}
|
19
14
|
else {
|
20
|
-
const
|
21
|
-
|
22
|
-
: process.env['TATUM_ALGORAND_MAINNET_THIRD_API_ALGOD_URL'];
|
23
|
-
return new algosdk.Algodv2({
|
24
|
-
'X-API-Key': tokenValue,
|
25
|
-
}, server);
|
15
|
+
const endpoint = `${args.url || api_client_1.TATUM_API_CONSTANTS.URL}/${api_client_1.TATUM_API_CONSTANTS.API_VERSION}/blockchain/node/${api_client_1.Currency.ALGO}/`;
|
16
|
+
return new algosdk.Algodv2({ nodeType: 'ALGOD' }, endpoint);
|
26
17
|
}
|
27
18
|
},
|
28
19
|
getIndexerClient: (testnet, provider) => {
|
29
|
-
const tokenValue = testnet
|
30
|
-
? process.env['TATUM_ALGORAND_TESTNET_TOKEN']
|
31
|
-
: process.env['TATUM_ALGORAND_MAINNET_TOKEN'];
|
32
|
-
if (!tokenValue) {
|
33
|
-
throw new Error('No ALGORAND token specified');
|
34
|
-
}
|
35
20
|
if (provider) {
|
36
|
-
return new algosdk.Indexer(
|
21
|
+
return new algosdk.Indexer('', provider, (0, url_parse_1.default)(provider).port);
|
37
22
|
}
|
38
23
|
else {
|
39
|
-
const
|
40
|
-
|
41
|
-
: process.env['TATUM_ALGORAND_MAINNET_THIRD_API_ALGOD_URL'];
|
42
|
-
return new algosdk.Indexer({
|
43
|
-
'X-API-Key': tokenValue,
|
44
|
-
}, server);
|
24
|
+
const endpoint = `${args.url || api_client_1.TATUM_API_CONSTANTS.URL}/${api_client_1.TATUM_API_CONSTANTS.API_VERSION}/blockchain/node/${api_client_1.Currency.ALGO}/`;
|
25
|
+
return new algosdk.Indexer({ nodeType: 'INDEXER' }, endpoint);
|
45
26
|
}
|
46
27
|
},
|
47
28
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"algo.web.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.web.ts"],"names":[],"mappings":";;;;AAAA,yDAAkC;AAClC,kEAA2B;
|
1
|
+
{"version":3,"file":"algo.web.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.web.ts"],"names":[],"mappings":";;;;AAAA,yDAAkC;AAClC,kEAA2B;AAC3B,oDAAmE;AAoB5D,MAAM,OAAO,GAAG,CAAC,IAAkB,EAAW,EAAE;IACrD,OAAO;QACL,SAAS,EAAE,CAAC,OAAgB,EAAE,QAAiB,EAAE,EAAE;YACjD,IAAI,QAAQ,EAAE;gBACZ,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAA,mBAAG,EAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAA;aAC7D;iBAAM;gBACL,MAAM,QAAQ,GAAG,GAAG,IAAI,CAAC,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