@tatumio/algo 2.0.1-alpha.314 → 2.0.1-alpha.322
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +9 -8
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/lib/algo.sdk.js +1 -1
- package/src/lib/algo.sdk.js.map +1 -1
- package/src/lib/services/algo.tx.js +23 -23
- package/src/lib/services/algo.tx.js.map +1 -1
- package/src/lib/services/algo.wallet.js +2 -2
- package/src/lib/services/algo.wallet.js.map +1 -1
- package/src/lib/services/algo.web.js +2 -2
- package/src/lib/services/algo.web.js.map +1 -1
package/package.json
CHANGED
@@ -1,22 +1,23 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/algo",
|
3
|
-
"version": "2.0.1-alpha.
|
3
|
+
"version": "2.0.1-alpha.322",
|
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": "
|
10
|
-
"@tatumio/api-client": "
|
9
|
+
"@tatumio/shared-testing-common": "0.0.0",
|
10
|
+
"@tatumio/api-client": "0.0.0",
|
11
11
|
"axios": "^0.26.0",
|
12
12
|
"form-data": "^4.0.0",
|
13
|
-
"@tatumio/shared-core": "
|
14
|
-
"@tatumio/shared-abstract-sdk": "
|
13
|
+
"@tatumio/shared-core": "0.0.0",
|
14
|
+
"@tatumio/shared-abstract-sdk": "0.0.0",
|
15
15
|
"bignumber.js": "^9.0.2",
|
16
|
-
"@tatumio/shared-blockchain-abstract": "
|
16
|
+
"@tatumio/shared-blockchain-abstract": "0.0.0",
|
17
17
|
"algosdk": "^1.13.1",
|
18
18
|
"base32.js": "^0.1.0",
|
19
|
-
"url-parse": "^1.5.10"
|
19
|
+
"url-parse": "^1.5.10",
|
20
|
+
"tslib": "^2.0.0"
|
20
21
|
},
|
21
22
|
"peerDependencies": {}
|
22
23
|
}
|
package/src/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
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
5
|
//# 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,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/blockchain/algo/src/index.ts"],"names":[],"mappings":";;;AAAA,yDAA8B"}
|
package/src/lib/algo.sdk.js
CHANGED
@@ -13,7 +13,7 @@ const blockchain = shared_core_1.Blockchain.ALGO;
|
|
13
13
|
const TatumAlgoSDK = (args) => {
|
14
14
|
const web = (0, algo_web_1.algoWeb)();
|
15
15
|
const txService = (0, algo_tx_1.algoTx)({ algoWeb: web });
|
16
|
-
const _a = (0, shared_blockchain_abstract_1.abstractBlockchainSdk)(Object.assign(Object.assign({}, args), { blockchain })), { nft } = _a, abstractSdk =
|
16
|
+
const _a = (0, shared_blockchain_abstract_1.abstractBlockchainSdk)(Object.assign(Object.assign({}, args), { blockchain })), { nft } = _a, abstractSdk = tslib_1.__rest(_a, ["nft"]);
|
17
17
|
const { transferNFT, burnNFT } = nft;
|
18
18
|
return Object.assign(Object.assign({}, abstractSdk), { algoWeb: web, record: (0, algo_record_1.algoRecord)(), wallet: (0, algo_wallet_1.algoWallet)(), transaction: txService.native, erc20: Object.assign(Object.assign({}, txService.erc20), { getErc20TransactionByAddress: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetTransactionByAddress, getErc20AccountBalance: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetBalance }), nft: Object.assign(Object.assign({}, txService.erc721), { transferNFT,
|
19
19
|
burnNFT }), blockchain: {
|
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,oFAA2E;AAC3E,oDAA6F;AAC7F,kDAA6C;AAC7C,wDAAmD;AACnD,wDAAmD;AACnD,gDAA2C;AAE3C,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAkB,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,IAAA,kBAAO,GAAE,CAAA;IACrB,MAAM,SAAS,GAAG,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAA;IAC1C,MAAM,KAA0B,IAAA,kDAAqB,kCAAM,IAAI,KAAE,UAAU,IAAG,EAAxE,EAAE,GAAG,OAAmE,EAA9D,WAAW,
|
1
|
+
{"version":3,"file":"algo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/algo/src/lib/algo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAAiD;AAEjD,oFAA2E;AAC3E,oDAA6F;AAC7F,kDAA6C;AAC7C,wDAAmD;AACnD,wDAAmD;AACnD,gDAA2C;AAE3C,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAkB,EAAE,EAAE;IACjD,MAAM,GAAG,GAAG,IAAA,kBAAO,GAAE,CAAA;IACrB,MAAM,SAAS,GAAG,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAA;IAC1C,MAAM,KAA0B,IAAA,kDAAqB,kCAAM,IAAI,KAAE,UAAU,IAAG,EAAxE,EAAE,GAAG,OAAmE,EAA9D,WAAW,sBAArB,OAAuB,CAAiD,CAAA;IAE9E,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;IAEpC,uCACK,WAAW,KACd,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,IAAA,wBAAU,GAAE,EACpB,MAAM,EAAE,IAAA,wBAAU,GAAE,EACpB,WAAW,EAAE,SAAS,CAAC,MAAM,EAC7B,KAAK,kCACA,SAAS,CAAC,KAAK,KAClB,4BAA4B,EAAE,mDAAsC,CAAC,4BAA4B,EACjG,sBAAsB,EAAE,mDAAsC,CAAC,eAAe,KAEhF,GAAG,kCACE,SAAS,CAAC,MAAM,KACnB,WAAW;YACX,OAAO,KAET,UAAU,EAAE;YACV,SAAS,EAAE,4BAAe,CAAC,gBAAgB;YAC3C,QAAQ,EAAE,4BAAe,CAAC,gBAAgB;YAC1C,eAAe,EAAE,4BAAe,CAAC,uBAAuB;YACxD,2BAA2B,EAAE,4BAAe,CAAC,kBAAkB;YAC/D,cAAc,EAAE,4BAAe,CAAC,sBAAsB;YACtD,yBAAyB,EAAE,4BAAe,CAAC,kCAAkC;SAC9E,EACD,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;AArCY,QAAA,YAAY,gBAqCxB"}
|
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.algoTx = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const api_client_1 = require("@tatumio/api-client");
|
6
|
-
const algosdk =
|
6
|
+
const algosdk = tslib_1.__importStar(require("algosdk"));
|
7
7
|
// No types for base32.js
|
8
8
|
// @ts-ignore
|
9
|
-
const base32_js_1 =
|
9
|
+
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
|
function isTransferAlgoKMS(input) {
|
13
13
|
return input.signatureId !== undefined;
|
14
14
|
}
|
15
|
-
const prepareSignedTransaction = (body, testnet = false, algoWeb, provider) =>
|
15
|
+
const prepareSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
16
16
|
var _a;
|
17
17
|
const algodClient = algoWeb.getClient(testnet, provider);
|
18
18
|
const params = yield algodClient.getTransactionParams().do();
|
@@ -27,7 +27,7 @@ const prepareSignedTransaction = (body, testnet = false, algoWeb, provider) => (
|
|
27
27
|
const signedTxn = bodyn.signTxn(secretKey);
|
28
28
|
return Buffer.from(signedTxn).toString('hex');
|
29
29
|
});
|
30
|
-
const prepareCreateNFTSignedTransaction = (body, testnet = false, algoWeb, provider) =>
|
30
|
+
const prepareCreateNFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
31
31
|
const algodClient = algoWeb.getClient(testnet, provider);
|
32
32
|
const params = yield algodClient.getTransactionParams().do();
|
33
33
|
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
@@ -42,7 +42,7 @@ const prepareCreateNFTSignedTransaction = (body, testnet = false, algoWeb, provi
|
|
42
42
|
const signedTxn = txn.signTxn(secretKey);
|
43
43
|
return Buffer.from(signedTxn).toString('hex');
|
44
44
|
});
|
45
|
-
const prepareTransferNFTSignedTransaction = (body, testnet = false, algoWeb, provider) =>
|
45
|
+
const prepareTransferNFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
46
46
|
const algodClient = algoWeb.getClient(testnet, provider);
|
47
47
|
const params = yield algodClient.getTransactionParams().do();
|
48
48
|
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
@@ -60,7 +60,7 @@ const prepareTransferNFTSignedTransaction = (body, testnet = false, algoWeb, pro
|
|
60
60
|
const signedTxn = txn.signTxn(secretKey);
|
61
61
|
return Buffer.from(signedTxn).toString('hex');
|
62
62
|
});
|
63
|
-
const prepareBurnNFTSignedTransaction = (body, testnet = false, algoWeb, provider) =>
|
63
|
+
const prepareBurnNFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
64
64
|
const algodClient = algoWeb.getClient(testnet, provider);
|
65
65
|
const params = yield algodClient.getTransactionParams().do();
|
66
66
|
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
@@ -72,7 +72,7 @@ const prepareBurnNFTSignedTransaction = (body, testnet = false, algoWeb, provide
|
|
72
72
|
const signedTxn = txn.signTxn(secretKey);
|
73
73
|
return Buffer.from(signedTxn).toString('hex');
|
74
74
|
});
|
75
|
-
const prepareCreateFTSignedTransaction = (body, testnet = false, algoWeb, provider) =>
|
75
|
+
const prepareCreateFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
76
76
|
const algodClient = algoWeb.getClient(testnet, provider);
|
77
77
|
const params = yield algodClient.getTransactionParams().do();
|
78
78
|
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
@@ -87,7 +87,7 @@ const prepareCreateFTSignedTransaction = (body, testnet = false, algoWeb, provid
|
|
87
87
|
const signedTxn = txn.signTxn(secretKey);
|
88
88
|
return Buffer.from(signedTxn).toString('hex');
|
89
89
|
});
|
90
|
-
const prepareTransferFTSignedTransaction = (body, testnet = false, algoWeb, provider) =>
|
90
|
+
const prepareTransferFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
91
91
|
const algodClient = algoWeb.getClient(testnet, provider);
|
92
92
|
const params = yield algodClient.getTransactionParams().do();
|
93
93
|
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
@@ -102,7 +102,7 @@ const prepareTransferFTSignedTransaction = (body, testnet = false, algoWeb, prov
|
|
102
102
|
const signedTxn = txn.signTxn(secretKey);
|
103
103
|
return Buffer.from(signedTxn).toString('hex');
|
104
104
|
});
|
105
|
-
const prepareBurnFTSignedTransaction = (body, testnet = false, algoWeb, provider) =>
|
105
|
+
const prepareBurnFTSignedTransaction = (body, testnet = false, algoWeb, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
106
106
|
const algodClient = algoWeb.getClient(testnet, provider);
|
107
107
|
const params = yield algodClient.getTransactionParams().do();
|
108
108
|
const decoder = new base32_js_1.default.Decoder({ type: 'rfc4648' });
|
@@ -128,7 +128,7 @@ const algoTx = (args) => {
|
|
128
128
|
* @param provider url of the Algorand Server to connnect to. If not set, default public server will be used.
|
129
129
|
* @returns transaction data to be broadcast to blockchain.
|
130
130
|
*/
|
131
|
-
createFTSignedTransaction: (body, testnet = false, provider) =>
|
131
|
+
createFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareCreateFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
|
132
132
|
/**
|
133
133
|
* Sign Algorand transfer FT transaction with private kwy locally. Nothing is broadcast to the blockchain.
|
134
134
|
* @param testnet mainnet or testnet version
|
@@ -136,7 +136,7 @@ const algoTx = (args) => {
|
|
136
136
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
137
137
|
* @returns transaction data to be broadcast to blockchain.
|
138
138
|
*/
|
139
|
-
transferFTSignedTransaction: (body, testnet = false, provider) =>
|
139
|
+
transferFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareTransferFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
|
140
140
|
/**
|
141
141
|
* Sign ALgorand burn FT transaction with private key locally. Nothing is broadcast to the blockchain.
|
142
142
|
* @param testnet mainnet or testnet version
|
@@ -144,7 +144,7 @@ const algoTx = (args) => {
|
|
144
144
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
145
145
|
* @returns transaction data to be broadcast to blockchain.
|
146
146
|
*/
|
147
|
-
burnFTSignedTransaction: (body, testnet = false, provider) =>
|
147
|
+
burnFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareBurnFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
|
148
148
|
},
|
149
149
|
send: {
|
150
150
|
/**
|
@@ -154,7 +154,7 @@ const algoTx = (args) => {
|
|
154
154
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
155
155
|
* @returns transaction id of the transaction in the blockchain.
|
156
156
|
*/
|
157
|
-
createFTSignedTransaction: (body, testnet = false, provider) =>
|
157
|
+
createFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
158
158
|
return api_client_1.AlgorandService.algoandBroadcast(Object.assign({ txData: yield prepareCreateFTSignedTransaction(body, testnet, args.algoWeb, provider) }, ((0, shared_abstract_sdk_1.isWithSignatureId)(body) && { signatureId: body.signatureId })));
|
159
159
|
}),
|
160
160
|
/**
|
@@ -164,7 +164,7 @@ const algoTx = (args) => {
|
|
164
164
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
165
165
|
* @returns transaction id of the transaction in the blockchain.
|
166
166
|
*/
|
167
|
-
transferFTSignedTransaction: (body, testnet = false, provider) =>
|
167
|
+
transferFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
168
168
|
return api_client_1.AlgorandService.algoandBroadcast({
|
169
169
|
txData: yield prepareTransferFTSignedTransaction(body, testnet, args.algoWeb, provider),
|
170
170
|
});
|
@@ -176,7 +176,7 @@ const algoTx = (args) => {
|
|
176
176
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
177
177
|
* @returns transaction id of the transaction in the blockchain.
|
178
178
|
*/
|
179
|
-
burnFTSignedTransaction: (body, testnet = false, provider) =>
|
179
|
+
burnFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
180
180
|
return api_client_1.AlgorandService.algoandBroadcast(Object.assign({ txData: yield prepareBurnFTSignedTransaction(body, testnet, args.algoWeb, provider) }, ((0, shared_abstract_sdk_1.isWithSignatureId)(body) && { signatureId: body.signatureId })));
|
181
181
|
}),
|
182
182
|
},
|
@@ -190,7 +190,7 @@ const algoTx = (args) => {
|
|
190
190
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
191
191
|
* @returns transaction data to be broadcast to blockchain
|
192
192
|
*/
|
193
|
-
createNFTSignedTransaction: (body, testnet = false, provider) =>
|
193
|
+
createNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareCreateNFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
|
194
194
|
/**
|
195
195
|
* Sign Algorand transfer NFT transaction with private key locally. Nothing is broadcast to the blockchain.
|
196
196
|
* @param testnet mainnet or testnet version
|
@@ -198,7 +198,7 @@ const algoTx = (args) => {
|
|
198
198
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
199
199
|
* @returns transaction data to be broadcast to blockchain.
|
200
200
|
*/
|
201
|
-
transferNFTSignedTransaction: (body, testnet = false, provider) =>
|
201
|
+
transferNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareTransferNFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
|
202
202
|
/**
|
203
203
|
* Sign Algorand burn NFT transaction with private key locally. Nothing is broadcast to the blockchain.
|
204
204
|
* @param testnet mainnet or testnet version
|
@@ -206,7 +206,7 @@ const algoTx = (args) => {
|
|
206
206
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
207
207
|
* @returns transaction data to be broadcast to blockchain.
|
208
208
|
*/
|
209
|
-
burnNFTSignedTransaction: (body, testnet = false, provider) =>
|
209
|
+
burnNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareBurnNFTSignedTransaction(body, testnet, args.algoWeb, provider); }),
|
210
210
|
},
|
211
211
|
send: {
|
212
212
|
/**
|
@@ -216,7 +216,7 @@ const algoTx = (args) => {
|
|
216
216
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
217
217
|
* @returns transaction id of the transaction in the blockchain
|
218
218
|
*/
|
219
|
-
createNFTSignedTransaction: (body, testnet = false, provider) =>
|
219
|
+
createNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
220
220
|
return api_client_1.AlgorandService.algoandBroadcast(Object.assign({ txData: yield prepareCreateNFTSignedTransaction(body, testnet, args.algoWeb, provider) }, ((0, shared_abstract_sdk_1.isWithSignatureId)(body) && { signatureId: body.signatureId })));
|
221
221
|
}),
|
222
222
|
/**
|
@@ -226,7 +226,7 @@ const algoTx = (args) => {
|
|
226
226
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
227
227
|
* @returns transaction id of the transaction in the blockchain.
|
228
228
|
*/
|
229
|
-
transferNFTSignedTransaction: (body, testnet = false, provider) =>
|
229
|
+
transferNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
230
230
|
return api_client_1.AlgorandService.algoandBroadcast(Object.assign({ txData: yield prepareTransferNFTSignedTransaction(body, testnet, args.algoWeb, provider) }, ((0, shared_abstract_sdk_1.isWithSignatureId)(body) && { signatureId: body.signatureId })));
|
231
231
|
}),
|
232
232
|
/**
|
@@ -236,7 +236,7 @@ const algoTx = (args) => {
|
|
236
236
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
237
237
|
* @returns transaction id of the transaction in the blockchain.
|
238
238
|
*/
|
239
|
-
burnNFTSignedTransaction: (body, testnet = false, provider) =>
|
239
|
+
burnNFTSignedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
240
240
|
return api_client_1.AlgorandService.algoandBroadcast(Object.assign({ txData: yield prepareBurnNFTSignedTransaction(body, testnet, args.algoWeb, provider) }, ((0, shared_abstract_sdk_1.isWithSignatureId)(body) && { signatureId: body.signatureId })));
|
241
241
|
}),
|
242
242
|
},
|
@@ -250,7 +250,7 @@ const algoTx = (args) => {
|
|
250
250
|
* @param provider url of the algorand server endpoint for purestake.io restapi
|
251
251
|
* @returns transaction data to be broadcast to blockchain
|
252
252
|
*/
|
253
|
-
signedTransaction: (body, testnet = false, provider) =>
|
253
|
+
signedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return prepareSignedTransaction(body, testnet, args.algoWeb, provider); }),
|
254
254
|
},
|
255
255
|
send: {
|
256
256
|
/**
|
@@ -261,7 +261,7 @@ const algoTx = (args) => {
|
|
261
261
|
* @param provider url of the Algorand Server to connect to. If not set, default public server will be used.
|
262
262
|
* @returns transaction id of the transaction in the blockchain
|
263
263
|
*/
|
264
|
-
signedTransaction: (body, testnet = false, provider) =>
|
264
|
+
signedTransaction: (body, testnet = false, provider) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
265
265
|
return api_client_1.AlgorandService.algoandBroadcast(Object.assign({ txData: yield prepareSignedTransaction(body, testnet, args.algoWeb, provider) }, (isTransferAlgoKMS(body) && { signatureId: body.signatureId })));
|
266
266
|
}),
|
267
267
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"algo.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.tx.ts"],"names":[],"mappings":";;;;AAAA,oDAe4B;AAE5B,8DAAkC;AAClC,yBAAyB;AACzB,aAAa;AACb,uEAA8B;AAC9B,+CAA0C;AAC1C,sEAA8E;AAE9E,SAAS,iBAAiB,CAAC,KAAqC;IAC9D,OAAQ,KAAyB,CAAC,WAAW,KAAK,SAAS,CAAA;AAC7D,CAAC;AAMD,MAAM,wBAAwB,GAAG,CAC/B,IAAoC,EACpC,OAAO,GAAG,KAAK,EACf,OAAgB,EAChB,QAAiB,EACjB,EAAE;;IACF,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,O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,EAAE,EAAE;oBACpG,OAAA,4BAAe,CAAC,gBAAgB,iBAC9B,MAAM,EAAE,MAAM,wBAAwB,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,IAC1E,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,EACjE,CAAA;kBAAA;aACL;SACF;KACF,CAAA;AACH,CAAC,CAAA;AA7MY,QAAA,MAAM,UA6MlB"}
|
@@ -2,10 +2,10 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.algoWallet = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
|
-
const algosdk =
|
5
|
+
const algosdk = tslib_1.__importStar(require("algosdk"));
|
6
6
|
// No types for base32.js
|
7
7
|
// @ts-ignore
|
8
|
-
const base32_js_1 =
|
8
|
+
const base32_js_1 = tslib_1.__importDefault(require("base32.js"));
|
9
9
|
const algoWallet = () => {
|
10
10
|
return {
|
11
11
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"algo.wallet.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.wallet.ts"],"names":[],"mappings":";;;;AACA,
|
1
|
+
{"version":3,"file":"algo.wallet.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.wallet.ts"],"names":[],"mappings":";;;;AACA,yDAAkC;AAClC,yBAAyB;AACzB,aAAa;AACb,kEAA8B;AAEvB,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,OAAO;QACL;;;;WAIG;QACH,cAAc,CAAC,QAAiB;YAC9B,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,EAAE,CAAA;YAC5F,MAAM,OAAO,GAAG,IAAI,mBAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;YACvD,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAA;YAEnD,OAAO;gBACL,OAAO,EAAE,OAAO,CAAC,IAAI;gBACrB,MAAM;aACP,CAAA;QACH,CAAC;QACD;;;;WAIG;QACH,8BAA8B,CAAC,UAAkB;YAC/C,MAAM,OAAO,GAAG,IAAI,mBAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;YACvD,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,GAAG,CAAA;YAC/C,MAAM,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAA;YAEjD,OAAO,OAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,IAAI,CAAA;QAC7C,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AA9BY,QAAA,UAAU,cA8BtB"}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.algoWeb = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
|
-
const algosdk =
|
6
|
-
const url_parse_1 =
|
5
|
+
const algosdk = tslib_1.__importStar(require("algosdk"));
|
6
|
+
const url_parse_1 = tslib_1.__importDefault(require("url-parse"));
|
7
7
|
const algoWeb = () => {
|
8
8
|
return {
|
9
9
|
getClient: (testnet, provider) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"algo.web.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.web.ts"],"names":[],"mappings":";;;;AAAA,
|
1
|
+
{"version":3,"file":"algo.web.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/algo/src/lib/services/algo.web.ts"],"names":[],"mappings":";;;;AAAA,yDAAkC;AAClC,kEAA2B;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