@tatumio/sdk 2.0.1-alpha.231 → 2.0.1-alpha.235
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +31 -23
- package/src/lib/sdk.common.d.ts +4 -0
- package/src/lib/sdk.d.ts +12 -1
- package/src/lib/sdk.js +4 -0
- package/src/lib/sdk.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,48 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tatumio/sdk",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.235",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@tatumio/btc": "2.0.1-alpha.
|
|
9
|
-
"@tatumio/shared-testing-common": "2.0.1-alpha.
|
|
10
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
|
11
|
-
"@tatumio/api-client": "2.0.1-alpha.
|
|
8
|
+
"@tatumio/btc": "2.0.1-alpha.235",
|
|
9
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.235",
|
|
10
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.235",
|
|
11
|
+
"@tatumio/api-client": "2.0.1-alpha.235",
|
|
12
12
|
"axios": "^0.24.0",
|
|
13
13
|
"form-data": "^4.0.0",
|
|
14
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
|
15
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
|
14
|
+
"@tatumio/shared-core": "2.0.1-alpha.235",
|
|
15
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.235",
|
|
16
16
|
"bignumber.js": "^9.0.2",
|
|
17
|
-
"@tatumio/shared-testing-btc-based": "2.0.1-alpha.
|
|
18
|
-
"@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.
|
|
17
|
+
"@tatumio/shared-testing-btc-based": "2.0.1-alpha.235",
|
|
18
|
+
"@tatumio/shared-blockchain-btc-based": "2.0.1-alpha.235",
|
|
19
19
|
"bip32": "^2.0.5",
|
|
20
20
|
"bip39": "^3.0.2",
|
|
21
21
|
"bitcoinjs-lib": "^5.2.0",
|
|
22
22
|
"hdkey": "^2.0.1",
|
|
23
23
|
"bitcore-lib": "^8.25.25",
|
|
24
|
-
"@tatumio/celo": "2.0.1-alpha.
|
|
25
|
-
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.
|
|
24
|
+
"@tatumio/celo": "2.0.1-alpha.235",
|
|
25
|
+
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.235",
|
|
26
26
|
"ethereumjs-wallet": "^1.0.2",
|
|
27
27
|
"web3": "^1.7.0",
|
|
28
28
|
"web3-core": "^1.7.0",
|
|
29
29
|
"@harmony-js/crypto": "^0.1.56",
|
|
30
|
+
"web3-utils": "^1.7.0",
|
|
30
31
|
"@celo-tools/celo-ethers-wrapper": "^0.1.0",
|
|
31
|
-
"@tatumio/eth": "2.0.1-alpha.
|
|
32
|
-
"@tatumio/shared-testing-evm-based": "2.0.1-alpha.
|
|
33
|
-
"@tatumio/ltc": "2.0.1-alpha.
|
|
32
|
+
"@tatumio/eth": "2.0.1-alpha.235",
|
|
33
|
+
"@tatumio/shared-testing-evm-based": "2.0.1-alpha.235",
|
|
34
|
+
"@tatumio/ltc": "2.0.1-alpha.235",
|
|
34
35
|
"bitcore-lib-ltc": "^8.25.27",
|
|
35
|
-
"@tatumio/doge": "2.0.1-alpha.
|
|
36
|
+
"@tatumio/doge": "2.0.1-alpha.235",
|
|
36
37
|
"bitcore-lib-doge": "^8.25.27",
|
|
37
|
-
"@tatumio/polygon": "2.0.1-alpha.
|
|
38
|
-
"@tatumio/kcs": "2.0.1-alpha.
|
|
39
|
-
"@tatumio/one": "2.0.1-alpha.
|
|
40
|
-
"@tatumio/bsc": "2.0.1-alpha.
|
|
41
|
-
"@tatumio/xrp": "2.0.1-alpha.
|
|
42
|
-
"@tatumio/shared-testing-xrp-based": "2.0.1-alpha.
|
|
38
|
+
"@tatumio/polygon": "2.0.1-alpha.235",
|
|
39
|
+
"@tatumio/kcs": "2.0.1-alpha.235",
|
|
40
|
+
"@tatumio/one": "2.0.1-alpha.235",
|
|
41
|
+
"@tatumio/bsc": "2.0.1-alpha.235",
|
|
42
|
+
"@tatumio/xrp": "2.0.1-alpha.235",
|
|
43
|
+
"@tatumio/shared-testing-xrp-based": "2.0.1-alpha.235",
|
|
43
44
|
"ripple-lib": "^1.7.1",
|
|
44
|
-
"@tatumio/
|
|
45
|
-
"
|
|
45
|
+
"@tatumio/solana": "0.0.1",
|
|
46
|
+
"@solana/web3.js": "^1.32.0",
|
|
47
|
+
"@solana/spl-token": "^0.1.8",
|
|
48
|
+
"@tatumio/tron": "2.0.1-alpha.235",
|
|
49
|
+
"tronweb": "^4.1.0",
|
|
50
|
+
"@tatumio/algo": "2.0.1-alpha.235",
|
|
51
|
+
"algosdk": "^1.13.1",
|
|
52
|
+
"base32.js": "^0.1.0",
|
|
53
|
+
"url-parse": "^1.5.4"
|
|
46
54
|
},
|
|
47
55
|
"peerDependencies": {}
|
|
48
56
|
}
|
package/src/lib/sdk.common.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ import { TatumKcsSDK } from '@tatumio/kcs';
|
|
|
8
8
|
import { TatumOneSDK } from '@tatumio/one';
|
|
9
9
|
import { TatumBscSDK } from '@tatumio/bsc';
|
|
10
10
|
import { TatumXrpSDK } from '@tatumio/xrp';
|
|
11
|
+
import { TatumSolanaSDK } from '@tatumio/solana';
|
|
11
12
|
import { TatumTronSDK } from '@tatumio/tron';
|
|
13
|
+
import { TatumAlgoSDK } from '@tatumio/algo';
|
|
12
14
|
export declare type SDKS = {
|
|
13
15
|
btc: ReturnType<typeof TatumBtcSDK>;
|
|
14
16
|
eth: ReturnType<typeof TatumEthSDK>;
|
|
@@ -20,5 +22,7 @@ export declare type SDKS = {
|
|
|
20
22
|
one: ReturnType<typeof TatumOneSDK>;
|
|
21
23
|
bsc: ReturnType<typeof TatumBscSDK>;
|
|
22
24
|
xrp: ReturnType<typeof TatumXrpSDK>;
|
|
25
|
+
sol: ReturnType<typeof TatumSolanaSDK>;
|
|
23
26
|
tron: ReturnType<typeof TatumTronSDK>;
|
|
27
|
+
algo: ReturnType<typeof TatumAlgoSDK>;
|
|
24
28
|
};
|
package/src/lib/sdk.d.ts
CHANGED
|
@@ -125,7 +125,13 @@ export declare const TatumSDK: (args: {
|
|
|
125
125
|
storeTokenAddress: typeof import("@tatumio/api-client").OffChainBlockchainService.storeTokenAddress;
|
|
126
126
|
};
|
|
127
127
|
nft: {
|
|
128
|
+
deployNFTSmartContract: typeof import("@tatumio/api-client").BlockchainNftService.nftDeployErc721;
|
|
129
|
+
addNFTMinter: typeof import("@tatumio/api-client").BlockchainNftService.nftAddMinter;
|
|
128
130
|
mintNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftMintErc721;
|
|
131
|
+
mintMultipleNFTs: typeof import("@tatumio/api-client").BlockchainNftService.nftMintMultipleErc721;
|
|
132
|
+
burnNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftBurnErc721;
|
|
133
|
+
transferNFT: typeof import("@tatumio/api-client").BlockchainNftService.nftTransferErc721;
|
|
134
|
+
updateNFTRoyalty: typeof import("@tatumio/api-client").BlockchainNftService.nftUpdateCashbackErc721;
|
|
129
135
|
getNFTTransaction: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactErc721;
|
|
130
136
|
getNFTTransactionsByToken: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByToken;
|
|
131
137
|
getNFTTransactionsByAddress: typeof import("@tatumio/api-client").BlockchainNftService.nftGetTransactionByAddress;
|
|
@@ -133,7 +139,12 @@ export declare const TatumSDK: (args: {
|
|
|
133
139
|
getNFTProvenanceData: typeof import("@tatumio/api-client").BlockchainNftService.nftGetProvenanceDataErc721;
|
|
134
140
|
getNFTMetadataURI: typeof import("@tatumio/api-client").BlockchainNftService.nftGetMetadataErc721;
|
|
135
141
|
getNFTRoyalty: typeof import("@tatumio/api-client").BlockchainNftService.nftGetRoyaltyErc721;
|
|
136
|
-
|
|
142
|
+
getNFTAccountBalance: typeof import("@tatumio/api-client").BlockchainNftService.nftGetBalanceErc721;
|
|
143
|
+
getNFTImage: (chain: "ETH" | "MATIC" | "KCS" | "SOL" | "ONE" | "KLAY" | "CELO" | "TRON" | "FLOW" | "BSC", contractAddress: string, tokenId: string, account?: string) => Promise<{
|
|
144
|
+
originalUrl: string;
|
|
145
|
+
publicUrl: string;
|
|
146
|
+
}>;
|
|
147
|
+
prepareAddNftMinterAbstraction: (body: import("@tatumio/api-client").AddNftMinter | import("@tatumio/api-client").AddNftMinterKMS) => Promise<string[]>;
|
|
137
148
|
};
|
|
138
149
|
getExchangeRate: typeof import("@tatumio/api-client").TatumServiceService.getExchangeRate;
|
|
139
150
|
};
|
package/src/lib/sdk.js
CHANGED
|
@@ -17,7 +17,9 @@ const polygon_1 = require("@tatumio/polygon");
|
|
|
17
17
|
const kcs_1 = require("@tatumio/kcs");
|
|
18
18
|
const one_1 = require("@tatumio/one");
|
|
19
19
|
const bsc_1 = require("@tatumio/bsc");
|
|
20
|
+
const solana_1 = require("@tatumio/solana");
|
|
20
21
|
const tron_1 = require("@tatumio/tron");
|
|
22
|
+
const algo_1 = require("@tatumio/algo");
|
|
21
23
|
const TatumSDK = (args) => {
|
|
22
24
|
const blockchainSpecificSDKs = {
|
|
23
25
|
btc: (0, btc_1.TatumBtcSDK)(args),
|
|
@@ -30,7 +32,9 @@ const TatumSDK = (args) => {
|
|
|
30
32
|
one: (0, one_1.TatumOneSDK)(args),
|
|
31
33
|
bsc: (0, bsc_1.TatumBscSDK)(args),
|
|
32
34
|
xrp: (0, xrp_1.TatumXrpSDK)(args),
|
|
35
|
+
sol: (0, solana_1.TatumSolanaSDK)(args),
|
|
33
36
|
tron: (0, tron_1.TatumTronSDK)(args),
|
|
37
|
+
algo: (0, algo_1.TatumAlgoSDK)(args),
|
|
34
38
|
};
|
|
35
39
|
return Object.assign(Object.assign({}, (0, shared_abstract_sdk_1.abstractSdk)(args)), { blockchain: blockchainSpecificSDKs, kms: (0, sdk_kms_1.sdkKms)({ sdks: blockchainSpecificSDKs }), wallet: sdk_wallet_1.walletSdk, record: api_client_1.BlockchainRecordService, multiToken: (0, sdk_multitoken_1.sdkMultiToken)(), httpDriver: (currency, request) => (0, sdk_httpDriver_1.httpDriver)(blockchainSpecificSDKs, currency, request) });
|
|
36
40
|
};
|
package/src/lib/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../../../../packages/sdk/src/lib/sdk.ts"],"names":[],"mappings":";;;AAAA,sCAA0C;AAC1C,sDAAiD;AACjD,oDAAuE;AACvE,sEAA0D;AAC1D,gDAA2C;AAC3C,sCAA0C;AAG1C,8DAAyD;AAEzD,8DAAsD;AACtD,wCAA4C;AAC5C,wCAA4C;AAC5C,sCAA0C;AAC1C,sCAA0C;AAC1C,8CAAkD;AAClD,sCAA0C;AAC1C,sCAA0C;AAC1C,sCAA0C;AAC1C,wCAA4C;AAErC,MAAM,QAAQ,GAAG,CAAC,IAAwC,EAAE,EAAE;IACnE,MAAM,sBAAsB,GAAS;QACnC,GAAG,EAAE,IAAA,iBAAW,EAAC,IAAI,CAAC;QACtB,GAAG,EAAE,IAAA,iBAAW,EAAC,IAAI,CAAC;QACtB,IAAI,EAAE,IAAA,mBAAY,EAAC,IAAI,CAAC;QACxB,IAAI,EAAE,IAAA,mBAAY,EAAC,IAAI,CAAC;QACxB,GAAG,EAAE,IAAA,iBAAW,EAAC,IAAI,CAAC;QACtB,OAAO,EAAE,IAAA,yBAAe,EAAC,IAAI,CAAC;QAC9B,GAAG,EAAE,IAAA,iBAAW,EAAC,IAAI,CAAC;QACtB,GAAG,EAAE,IAAA,iBAAW,EAAC,IAAI,CAAC;QACtB,G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