@tatumio/celo 2.0.1-alpha.372 → 2.0.1-alpha.374
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 +8 -8
- package/src/lib/celo.sdk.d.ts +17 -1
- package/src/lib/celo.sdk.js +1 -5
- package/src/lib/celo.sdk.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tatumio/celo",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.374",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
|
9
|
-
"@tatumio/api-client": "2.0.1-alpha.
|
|
8
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.374",
|
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.374",
|
|
10
10
|
"axios": "^0.26.0",
|
|
11
11
|
"form-data": "^4.0.0",
|
|
12
|
-
"@tatumio/shared-testing-common": "2.0.1-alpha.
|
|
12
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.374",
|
|
13
13
|
"bignumber.js": "^9.0.2",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
|
-
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.
|
|
16
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
|
17
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
|
15
|
+
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.374",
|
|
16
|
+
"@tatumio/shared-core": "2.0.1-alpha.374",
|
|
17
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.374",
|
|
18
18
|
"ethereumjs-wallet": "^1.0.2",
|
|
19
19
|
"bip39": "^3.0.2",
|
|
20
20
|
"web3": "^1.7.4",
|
|
21
21
|
"web3-core": "^1.7.4",
|
|
22
22
|
"web3-utils": "^1.7.4",
|
|
23
|
-
"@tatumio/shared-testing-evm-based": "2.0.1-alpha.
|
|
23
|
+
"@tatumio/shared-testing-evm-based": "2.0.1-alpha.374",
|
|
24
24
|
"@celo-tools/celo-ethers-wrapper": "^0.1.0",
|
|
25
25
|
"tslib": "^2.0.0"
|
|
26
26
|
},
|
package/src/lib/celo.sdk.d.ts
CHANGED
|
@@ -40,11 +40,27 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
nft: {
|
|
43
|
+
deployNFTSmartContract: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftDeployErc721;
|
|
44
|
+
addNFTMinter: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftAddMinter;
|
|
45
|
+
mintNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftMintErc721;
|
|
46
|
+
mintMultipleNFTs: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftMintMultipleErc721;
|
|
47
|
+
burnNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftBurnErc721;
|
|
48
|
+
transferNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftTransferErc721;
|
|
49
|
+
updateNFTRoyalty: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftUpdateCashbackErc721;
|
|
43
50
|
getNFTTransaction: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactErc721;
|
|
44
|
-
|
|
51
|
+
getNFTTransactionsByToken: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactionByToken;
|
|
52
|
+
getNFTTransactionsByAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactionByAddress;
|
|
53
|
+
getNFTsByAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTokensByAddressErc721;
|
|
45
54
|
getNFTProvenanceData: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetProvenanceDataErc721;
|
|
46
55
|
getNFTMetadataURI: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetMetadataErc721;
|
|
47
56
|
getNFTRoyalty: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetRoyaltyErc721;
|
|
57
|
+
getNFTAccountBalance: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetBalanceErc721;
|
|
58
|
+
getNFTContractAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetContractAddress;
|
|
59
|
+
getNFTImage: (chain: "CELO" | "ETH" | "BSC" | "MATIC" | "FLOW" | "TRON" | "ONE" | "KLAY" | "SOL" | "KCS", contractAddress: string, tokenId: string, account?: string) => Promise<{
|
|
60
|
+
originalUrl: string;
|
|
61
|
+
publicUrl: string;
|
|
62
|
+
}>;
|
|
63
|
+
prepareAddNftMinterAbstraction: (body: import("@tatumio/api-client").AddNftMinter | import("@tatumio/api-client").AddNftMinterKMS) => string[];
|
|
48
64
|
prepare: {
|
|
49
65
|
mintSignedTransaction: (body: import("..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
50
66
|
mintCashbackSignedTransaction: (body: import("..").ChainMintNftCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
package/src/lib/celo.sdk.js
CHANGED
|
@@ -18,11 +18,7 @@ const TatumCeloSDK = (args) => {
|
|
|
18
18
|
const _a = (0, shared_blockchain_evm_based_1.evmBasedSdk)(Object.assign(Object.assign({}, args), { blockchain, web3 })), { nft } = _a, evmSdk = tslib_1.__rest(_a, ["nft"]);
|
|
19
19
|
const virtualAccount = (0, celo_virtualAccount_1.virtualAccountService)({ blockchain, web3 });
|
|
20
20
|
const { getNFTTransaction, getNFTAccountBalance, getNFTProvenanceData, getNFTMetadataURI, getNFTRoyalty } = nft;
|
|
21
|
-
return Object.assign(Object.assign({}, evmSdk), { api, kms: (0, celo_kms_1.celoKmsService)({ blockchain, web3 }), transaction: txService.native, erc20: Object.assign(Object.assign({}, txService.erc20), { getErc20TransactionByAddress: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetTransactionByAddress, getErc20AccountBalance: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetBalance, getErc20AccountBalances: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetBalanceAddress }), nft: Object.assign(Object.assign({}, txService.erc721),
|
|
22
|
-
getNFTAccountBalance,
|
|
23
|
-
getNFTProvenanceData,
|
|
24
|
-
getNFTMetadataURI,
|
|
25
|
-
getNFTRoyalty }), multiToken: txService.multiToken, smartContract: txService.smartContract, custodial: txService.custodial, gasPump: txService.gasPump, virtualAccount, marketplace: {
|
|
21
|
+
return Object.assign(Object.assign({}, evmSdk), { api, kms: (0, celo_kms_1.celoKmsService)({ blockchain, web3 }), transaction: txService.native, erc20: Object.assign(Object.assign({}, txService.erc20), { getErc20TransactionByAddress: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetTransactionByAddress, getErc20AccountBalance: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetBalance, getErc20AccountBalances: api_client_1.FungibleTokensErc20OrCompatibleService.erc20GetBalanceAddress }), nft: Object.assign(Object.assign({}, txService.erc721), nft), multiToken: txService.multiToken, smartContract: txService.smartContract, custodial: txService.custodial, gasPump: txService.gasPump, virtualAccount, marketplace: {
|
|
26
22
|
auction: (0, celo_auction_1.celoAuctionService)({ blockchain, web3 }),
|
|
27
23
|
}, httpDriver: (request) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
28
24
|
return api.celoWeb3Driver(args.apiKey, Object.assign(Object.assign({}, request), { jsonrpc: '2.0' }));
|
package/src/lib/celo.sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"celo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/celo/src/lib/celo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAA4E;AAE5E,oDAI4B;AA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