@tatumio/algo 2.0.1-alpha.426 → 2.1.1

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.426",
3
+ "version": "2.1.1",
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.426",
10
- "@tatumio/api-client": "2.0.1-alpha.426",
9
+ "@tatumio/shared-testing-common": "2.1.1",
10
+ "@tatumio/api-client": "2.1.1",
11
11
  "axios": "^0.26.0",
12
12
  "form-data": "^4.0.0",
13
- "@tatumio/shared-abstract-sdk": "2.0.1-alpha.426",
13
+ "@tatumio/shared-abstract-sdk": "2.1.1",
14
14
  "bignumber.js": "^9.0.2",
15
15
  "lodash": "^4.17.21",
16
- "@tatumio/shared-core": "2.0.1-alpha.426",
17
- "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.426",
16
+ "@tatumio/shared-core": "2.1.1",
17
+ "@tatumio/shared-blockchain-abstract": "2.1.1",
18
18
  "algosdk": "^1.13.1",
19
19
  "base32.js": "^0.1.0",
20
20
  "url-parse": "^1.5.10",
@@ -4,7 +4,9 @@ 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: {
7
- generateWallet(mnemonic?: string): import("@tatumio/api-client").AlgoWallet;
7
+ generateWallet(mnemonic?: string): import("@tatumio/api-client").AlgoWallet & {
8
+ mnemonic: string;
9
+ };
8
10
  generateAddressFromPrivatetKey(privateKey: string): string;
9
11
  };
10
12
  transaction: {
@@ -5,7 +5,9 @@ export declare const algoWallet: () => {
5
5
  * @param mnemonic optional mnemonic seed to use. If not present, new one will be generated
6
6
  * @returns wallet or a combination of address and private key
7
7
  */
8
- generateWallet(mnemonic?: string): AlgoWallet;
8
+ generateWallet(mnemonic?: string): AlgoWallet & {
9
+ mnemonic: string;
10
+ };
9
11
  /**
10
12
  * Generate Algo Address From Private Key
11
13
  * @param privateKey Private key to use
@@ -20,6 +20,7 @@ const algoWallet = () => {
20
20
  return {
21
21
  address: account.addr,
22
22
  secret,
23
+ mnemonic: algosdk.secretKeyToMnemonic(secret),
23
24
  };
24
25
  },
25
26
  /**
@@ -1 +1 @@
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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AA;QAC7C,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AA/BY,QAAA,UAAU,cA+BtB"}