@tatumio/algo 2.0.1-alpha.406 → 2.0.1-alpha.408

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@tatumio/algo",
3
- "version": "2.0.1-alpha.406",
3
+ "version": "2.0.1-alpha.408",
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.406",
10
- "@tatumio/api-client": "2.0.1-alpha.406",
9
+ "@tatumio/shared-testing-common": "2.0.1-alpha.408",
10
+ "@tatumio/api-client": "2.0.1-alpha.408",
11
11
  "axios": "^0.26.0",
12
12
  "form-data": "^4.0.0",
13
- "@tatumio/shared-abstract-sdk": "2.0.1-alpha.406",
13
+ "@tatumio/shared-abstract-sdk": "2.0.1-alpha.408",
14
14
  "bignumber.js": "^9.0.2",
15
15
  "lodash": "^4.17.21",
16
- "@tatumio/shared-core": "2.0.1-alpha.406",
17
- "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.406",
16
+ "@tatumio/shared-core": "2.0.1-alpha.408",
17
+ "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.408",
18
18
  "algosdk": "^1.13.1",
19
19
  "base32.js": "^0.1.0",
20
20
  "url-parse": "^1.5.10",
@@ -11,9 +11,9 @@ const algosdk = tslib_1.__importStar(require("algosdk"));
11
11
  const algo_wallet_1 = require("../algo.wallet");
12
12
  const prepareSignedTransaction = ({ body, testnet = false, algoWeb, apiCalls, provider, }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
13
13
  var _a;
14
- const account = body.from || body.account;
15
- const to = body.to || body.address;
16
- const privateKey = body.fromPrivateKey || body.privateKey;
14
+ const account = body.from;
15
+ const to = body.to;
16
+ const privateKey = body.fromPrivateKey;
17
17
  const from = (0, shared_abstract_sdk_1.isWithSignatureId)(body)
18
18
  ? account
19
19
  : (0, algo_wallet_1.algoWallet)().generateAddressFromPrivatetKey(privateKey);
@@ -1 +1 @@
1
- {"version":3,"file":"algo.tx.native.js","sourceRoot":"","sources":["../../../../../../../../packages/blockchain/algo/src/lib/services/tx/algo.tx.native.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,aAAa;AACb,kEAA8B;AAC9B,sEAAwF;AACxF,+CAAwC;AACxC,yDAAkC;AASlC,gDAA2C;AAEpC,MAAM,wBAAwB,GAAG,CAAO,EAC7C,IAAI,EACJ,OAAO,GAAG,KAAK,EACf,OAAO,EACP,QAAQ,EACR,QAAQ,GAOT,EAAmB,EAAE;;IACpB,MAAM,OAAO,GAAI,IAA+B,CAAC,IAAI,IAAK,IAAqB,CAAC,OAAO,CAAA;IACvF,MAAM,EAAE,GAAI,IAA+B,CAAC,EAAE,IAAK,IAAqB,CAAC,OAAO,CAAA;IAChF,MAAM,UAAU,GAAI,IAA+B,CAAC,cAAc,IAAK,IAAqB,CAAC,UAAU,CAAA;IAEvG,MAAM,IAAI,GAAG,IAAA,uCAAiB,EAAC,IAAmD,CAAC;QACjF,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,IAAA,wBAAU,GAAE,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAA;IAE3D,IAAK,IAA+B,CAAC,EAAE,EAAE;QACvC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,QAAQ,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAA;QACpE,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;o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1C,OAAO,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAC/C,CAAC,CAAA,CAAA;AA/DY,QAAA,wBAAwB,4BA+DpC"}
1
+ {"version":3,"file":"algo.tx.native.js","sourceRoot":"","sources":["../../../../../../../../packages/blockchain/algo/src/lib/services/tx/algo.tx.native.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,aAAa;AACb,kEAA8B;AAC9B,sEAAwF;AACxF,+CAAwC;AACxC,yDAAkC;AASlC,gDAA2C;AAEpC,MAAM,wBAAwB,GAAG,CAAO,EAC7C,IAAI,EACJ,OAAO,GAAG,KAAK,EACf,OAAO,EACP,QAAQ,EACR,QAAQ,GAOT,EAAmB,EAAE;;IACpB,MAAM,OAAO,GAAI,IAA+B,CAAC,IAAI,CAAA;IACrD,MAAM,EAAE,GAAI,IAA+B,CAAC,EAAE,CAAA;IAC9C,MAAM,UAAU,GAAI,IAA+B,CAAC,cAAc,CAAA;IAElE,MAAM,IAAI,GAAG,IAAA,uCAAiB,EAAC,IAAmD,CAAC;QACjF,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,IAAA,wBAAU,GAAE,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAA;IAE3D,IAAK,IAA+B,CAAC,EAAE,EAAE;QACvC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,QAAQ,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAA;QACpE,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,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