@tatumio/algo 2.0.1-alpha.236 → 2.0.1-alpha.237

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@tatumio/algo",
3
- "version": "2.0.1-alpha.236",
3
+ "version": "2.0.1-alpha.237",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.js",
7
7
  "typings": "./src/index.d.ts",
8
8
  "dependencies": {
9
- "@tatumio/shared-testing-common": "2.0.1-alpha.236",
10
- "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.236",
11
- "@tatumio/api-client": "2.0.1-alpha.236",
12
- "axios": "^0.24.0",
9
+ "@tatumio/shared-testing-common": "2.0.1-alpha.237",
10
+ "@tatumio/shared-blockchain-abstract": "2.0.1-alpha.237",
11
+ "@tatumio/api-client": "2.0.1-alpha.237",
12
+ "axios": "^0.25.0",
13
13
  "form-data": "^4.0.0",
14
- "@tatumio/shared-core": "2.0.1-alpha.236",
15
- "@tatumio/shared-abstract-sdk": "2.0.1-alpha.236",
14
+ "@tatumio/shared-core": "2.0.1-alpha.237",
15
+ "@tatumio/shared-abstract-sdk": "2.0.1-alpha.237",
16
16
  "bignumber.js": "^9.0.2",
17
17
  "algosdk": "^1.13.1",
18
18
  "base32.js": "^0.1.0",
19
- "url-parse": "^1.5.4"
19
+ "url-parse": "^1.5.9"
20
20
  },
21
21
  "peerDependencies": {}
22
22
  }
@@ -34,26 +34,8 @@ export declare const TatumAlgoSDK: (args: SDKArguments) => {
34
34
  };
35
35
  };
36
36
  nft: {
37
- deployNFTSmartContract: typeof import("@tatumio/api-client").BlockchainNftService.nftDeployErc721;
38
- addNFTMinter: typeof import("@tatumio/api-client").BlockchainNftService.nftAddMinter;
39
- mintNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftMintErc721;
40
- mintMultipleNFTs: typeof import("@tatumio/api-client").BlockchainNftService.nftMintMultipleErc721;
41
- burnNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftBurnErc721;
42
37
  transferNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftTransferErc721;
43
- updateNFTRoyalty: typeof import("@tatumio/api-client").BlockchainNftService.nftUpdateCashbackErc721;
44
- getNFTTransaction: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactErc721;
45
- getNFTTransactionsByToken: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByToken;
46
- getNFTTransactionsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByAddress;
47
- getNFTsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetBalanceErc721;
48
- getNFTProvenanceData: typeof import("@tatumio/api-client").BlockchainNftService.nftGetProvenanceDataErc721;
49
- getNFTMetadataURI: typeof import("@tatumio/api-client").BlockchainNftService.nftGetMetadataErc721;
50
- getNFTRoyalty: typeof import("@tatumio/api-client").BlockchainNftService.nftGetRoyaltyErc721;
51
- getNFTAccountBalance: typeof import("@tatumio/api-client").BlockchainNftService.nftGetBalanceErc721;
52
- getNFTImage: (chain: "ETH" | "MATIC" | "KCS" | "ONE" | "KLAY" | "BSC" | "CELO" | "FLOW" | "TRON" | "SOL", contractAddress: string, tokenId: string, account?: string) => Promise<{
53
- originalUrl: string;
54
- publicUrl: string;
55
- }>;
56
- prepareAddNftMinterAbstraction: (body: import("@tatumio/api-client").AddNftMinter | import("@tatumio/api-client").AddNftMinterKMS) => Promise<string[]>;
38
+ burnNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftBurnErc721;
57
39
  prepare: {
58
40
  createNFTSignedTransaction: (body: import("./services/algo.tx").DeployNftKMS | import("./services/algo.tx").DeployNft, testnet?: boolean, provider?: string) => Promise<string>;
59
41
  transferNFTSignedTransaction: (body: import("./services/algo.tx").TransferNftKMS | import("./services/algo.tx").TransferNft, testnet?: boolean, provider?: string) => Promise<string>;
@@ -14,7 +14,9 @@ const TatumAlgoSDK = (args) => {
14
14
  const web = (0, algo_web_1.algoWeb)();
15
15
  const txService = (0, algo_tx_1.algoTx)({ algoWeb: web });
16
16
  const _a = (0, shared_blockchain_abstract_1.abstractBlockchainSdk)(Object.assign(Object.assign({}, args), { blockchain })), { nft } = _a, abstractSdk = (0, tslib_1.__rest)(_a, ["nft"]);
17
- 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.BlockchainFungibleTokenService.erc20GetTransactionByAddress, getErc20AccountBalance: api_client_1.BlockchainFungibleTokenService.erc20GetBalance }), nft: Object.assign(Object.assign({}, txService.erc721), nft), blockchain: {
17
+ const { transferNFT, burnNFT } = nft;
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.BlockchainFungibleTokenService.erc20GetTransactionByAddress, getErc20AccountBalance: api_client_1.BlockchainFungibleTokenService.erc20GetBalance }), nft: Object.assign(Object.assign({}, txService.erc721), { transferNFT,
19
+ burnNFT }), blockchain: {
18
20
  broadcast: api_client_1.BlockchainAlgorandAlgoService.algoandBroadcast,
19
21
  getBlock: api_client_1.BlockchainAlgorandAlgoService.algorandGetBlock,
20
22
  getCurrentBlock: api_client_1.BlockchainAlgorandAlgoService.algorandGetCurrentBlock,
@@ -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,oDAAmG;AACnG,kDAA6C;AAC7C,wDAAmD;AACnD,wDAAmD;AACnD,gDAA2C;AAE3C,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAkB,E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