@tatumio/algo 2.0.1-alpha.376 → 2.0.1-alpha.377
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.d.ts +4 -11
- package/src/lib/algo.sdk.js +4 -2
- package/src/lib/algo.sdk.js.map +1 -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.377",
|
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.377",
|
10
|
+
"@tatumio/api-client": "2.0.1-alpha.377",
|
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.377",
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.377",
|
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.377",
|
18
18
|
"algosdk": "^1.13.1",
|
19
19
|
"base32.js": "^0.1.0",
|
20
20
|
"url-parse": "^1.5.10",
|
package/src/lib/algo.sdk.d.ts
CHANGED
@@ -46,6 +46,10 @@ export declare const TatumAlgoSDK: (args: SDKArguments, apiCalls?: AlgoApiCallsT
|
|
46
46
|
burnNFTSignedTransaction: (body: import("./services/algo.tx").BurnNftAlgoKMS | import("./services/algo.tx").BurnNftAlgo, testnet?: boolean, provider?: string) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash>;
|
47
47
|
};
|
48
48
|
};
|
49
|
+
storage: {
|
50
|
+
upload: typeof import("@tatumio/api-client").IpfsService.storeIpfs;
|
51
|
+
get: typeof import("@tatumio/api-client").IpfsService.getIpfsData;
|
52
|
+
};
|
49
53
|
};
|
50
54
|
blockchain: {
|
51
55
|
broadcast: typeof AlgorandService.algorandBroadcast;
|
@@ -87,10 +91,6 @@ export declare const TatumAlgoSDK: (args: SDKArguments, apiCalls?: AlgoApiCallsT
|
|
87
91
|
delete: typeof import("@tatumio/api-client").KeyManagementSystemService.deletePendingTransactionToSign;
|
88
92
|
};
|
89
93
|
getExchangeRate(basePair?: import("@tatumio/api-client").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
|
90
|
-
storage: {
|
91
|
-
upload: typeof import("@tatumio/api-client").IpfsService.storeIpfs;
|
92
|
-
get: typeof import("@tatumio/api-client").IpfsService.getIpfsData;
|
93
|
-
};
|
94
94
|
subscriptions: typeof import("@tatumio/api-client").NotificationSubscriptionsService;
|
95
95
|
security: {
|
96
96
|
checkMaliciousAddress: typeof import("@tatumio/api-client").MaliciousAddressService.checkMalicousAddress;
|
@@ -101,13 +101,6 @@ export declare const TatumAlgoSDK: (args: SDKArguments, apiCalls?: AlgoApiCallsT
|
|
101
101
|
freezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.freezeApiKey;
|
102
102
|
unfreezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.unfreezeApiKey;
|
103
103
|
};
|
104
|
-
custodialManagedWallet: {
|
105
|
-
transfer: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialTransferManagedAddress;
|
106
|
-
getAll: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialGetWallets;
|
107
|
-
create: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialCreateWallet;
|
108
|
-
delete: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialDeleteWallet;
|
109
|
-
get: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialGetWallet;
|
110
|
-
};
|
111
104
|
ledger: {
|
112
105
|
customer: {
|
113
106
|
get: typeof import("@tatumio/api-client").CustomerService.getCustomerByExternalOrInternalId;
|
package/src/lib/algo.sdk.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.TatumAlgoSDK = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
4
|
const shared_core_1 = require("@tatumio/shared-core");
|
5
|
+
const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
|
6
6
|
const shared_blockchain_abstract_1 = require("@tatumio/shared-blockchain-abstract");
|
7
7
|
const api_client_1 = require("@tatumio/api-client");
|
8
8
|
const algo_web_1 = require("./services/algo.web");
|
@@ -14,13 +14,15 @@ const TatumAlgoSDK = (args, apiCalls = {
|
|
14
14
|
}) => {
|
15
15
|
const web = (0, algo_web_1.algoWeb)(args);
|
16
16
|
const txService = (0, algo_tx_1.algoTxService)({ algoWeb: web }, apiCalls);
|
17
|
-
const
|
17
|
+
const abstractSdk = (0, shared_blockchain_abstract_1.abstractBlockchainSdk)(Object.assign(Object.assign({}, args), { blockchain }));
|
18
|
+
const { nft, storage } = (0, shared_abstract_sdk_1.abstractSdkNft)();
|
18
19
|
const { getNFTAccountBalance, getNFTContractAddress } = nft;
|
19
20
|
return Object.assign(Object.assign({}, abstractSdk), { algoWeb: web, wallet: (0, algo_wallet_1.algoWallet)(), transaction: txService.native, token: {
|
20
21
|
receiveAsset: txService.asset.send.receive,
|
21
22
|
fungible: Object.assign(Object.assign({}, txService.fungible), { getFTTransactionByAddress: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetTransactionByAddress, getFTAccountBalance: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetBalance, getFTAccountBalances: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetBalanceAddress }),
|
22
23
|
nft: Object.assign(Object.assign({}, txService.nft), { getNFTAccountBalance,
|
23
24
|
getNFTContractAddress }),
|
25
|
+
storage,
|
24
26
|
}, blockchain: {
|
25
27
|
broadcast: api_client_1.AlgorandService.algorandBroadcast,
|
26
28
|
getBlock: api_client_1.AlgorandService.algorandGetBlock,
|
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":"
|
1
|
+
{"version":3,"file":"algo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/algo/src/lib/algo.sdk.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AACjD,sEAA2E;AAC3E,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,EAAC,IAAI,CAAC,CAAA;IACzB,MAAM,SAAS,GAAG,IAAA,uBAAa,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,QAAQ,CAAC,CAAA;IAC3D,MAAM,WAAW,GAAG,IAAA,kDAAqB,kCAAM,IAAI,KAAE,UAAU,IAAG,CAAA;IAClE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,IAAA,oCAAc,GAAE,CAAA;IAEzC,MAAM,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,GAAG,GAAG,CAAA;IAE3D,uCACK,WAAW,KACd,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,IAAA,wBAAU,GA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