@tatumio/celo 2.0.1-alpha.376 → 2.0.1-alpha.377
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 +13 -13
- package/src/lib/celo.sdk.js +5 -3
- 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.377",
|
|
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.377",
|
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.377",
|
|
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.377",
|
|
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.377",
|
|
16
|
+
"@tatumio/shared-core": "2.0.1-alpha.377",
|
|
17
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.377",
|
|
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.377",
|
|
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
|
@@ -91,6 +91,10 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
91
91
|
}, provider?: string, testnet?: boolean) => Promise<import("@tatumio/api-client").SignatureId | import("@tatumio/api-client").TransactionHash | import("@tatumio/api-client").FlowMintedMultipleResult>;
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
+
storage: {
|
|
95
|
+
upload: typeof import("@tatumio/api-client").IpfsService.storeIpfs;
|
|
96
|
+
get: typeof import("@tatumio/api-client").IpfsService.getIpfsData;
|
|
97
|
+
};
|
|
94
98
|
multiToken: {
|
|
95
99
|
prepare: {
|
|
96
100
|
mintMultiTokenTransaction: (body: import("..").ChainMintMultiTokenCelo, provider?: string, testnet?: boolean) => Promise<any>;
|
|
@@ -214,7 +218,7 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
214
218
|
getCurrentBlock: typeof CeloService.celoGetCurrentBlock;
|
|
215
219
|
getBlock: typeof CeloService.celoGetBlock;
|
|
216
220
|
getBlockchainAccountBalance: typeof CeloService.celoGetBalance;
|
|
217
|
-
|
|
221
|
+
getTransaction: typeof CeloService.celoGetTransaction;
|
|
218
222
|
getAccountTransactions: typeof CeloService.celoGetTransactionByAddress;
|
|
219
223
|
smartContractGetAddress: typeof BlockchainUtilsService.scGetContractAddress;
|
|
220
224
|
};
|
|
@@ -234,13 +238,16 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
234
238
|
generateAddressFromPrivateKey(privateKey: string): string;
|
|
235
239
|
generateWallet(mnemonic?: string, options?: {
|
|
236
240
|
testnet: boolean;
|
|
237
|
-
}): Promise<import("@tatumio/api-client").
|
|
241
|
+
}): Promise<import("@tatumio/api-client").Wallet>;
|
|
238
242
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
+
custodialManagedWallet: {
|
|
244
|
+
transfer: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialTransferManagedAddress;
|
|
245
|
+
getAll: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialGetWallets;
|
|
246
|
+
create: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialCreateWallet;
|
|
247
|
+
delete: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialDeleteWallet;
|
|
248
|
+
get: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialGetWallet;
|
|
243
249
|
};
|
|
250
|
+
getExchangeRate(basePair?: import("@tatumio/api-client").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
|
|
244
251
|
subscriptions: typeof import("@tatumio/api-client").NotificationSubscriptionsService;
|
|
245
252
|
security: {
|
|
246
253
|
checkMaliciousAddress: typeof import("@tatumio/api-client").MaliciousAddressService.checkMalicousAddress;
|
|
@@ -251,13 +258,6 @@ export declare const TatumCeloSDK: (args: SDKArguments) => {
|
|
|
251
258
|
freezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.freezeApiKey;
|
|
252
259
|
unfreezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.unfreezeApiKey;
|
|
253
260
|
};
|
|
254
|
-
custodialManagedWallet: {
|
|
255
|
-
transfer: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialTransferManagedAddress;
|
|
256
|
-
getAll: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialGetWallets;
|
|
257
|
-
create: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialCreateWallet;
|
|
258
|
-
delete: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialDeleteWallet;
|
|
259
|
-
get: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialGetWallet;
|
|
260
|
-
};
|
|
261
261
|
ledger: {
|
|
262
262
|
customer: {
|
|
263
263
|
get: typeof import("@tatumio/api-client").CustomerService.getCustomerByExternalOrInternalId;
|
package/src/lib/celo.sdk.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TatumCeloSDK = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const shared_core_1 = require("@tatumio/shared-core");
|
|
6
|
+
const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
|
|
6
7
|
const api_client_1 = require("@tatumio/api-client");
|
|
7
8
|
const celo_web3_1 = require("./services/celo.web3");
|
|
8
9
|
const shared_blockchain_evm_based_1 = require("@tatumio/shared-blockchain-evm-based");
|
|
@@ -15,9 +16,10 @@ const TatumCeloSDK = (args) => {
|
|
|
15
16
|
const web3 = (0, celo_web3_1.celoWeb3)({ blockchain });
|
|
16
17
|
const api = api_client_1.CeloService;
|
|
17
18
|
const txService = (0, celo_tx_1.celoTxService)({ blockchain, web3 });
|
|
18
|
-
const
|
|
19
|
+
const evmSdk = (0, shared_blockchain_evm_based_1.evmBasedSdk)(Object.assign(Object.assign({}, args), { blockchain, web3 }));
|
|
20
|
+
const { nft, storage } = (0, shared_abstract_sdk_1.abstractSdkNft)();
|
|
19
21
|
const virtualAccount = (0, celo_virtualAccount_1.virtualAccountService)({ blockchain, web3 });
|
|
20
|
-
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: {
|
|
22
|
+
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), storage, multiToken: txService.multiToken, smartContract: txService.smartContract, custodial: txService.custodial, gasPump: txService.gasPump, virtualAccount, marketplace: {
|
|
21
23
|
auction: (0, celo_auction_1.celoAuctionService)({ blockchain, web3 }),
|
|
22
24
|
}, httpDriver: (request) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
23
25
|
return api.celoWeb3Driver(args.apiKey, Object.assign(Object.assign({}, request), { jsonrpc: '2.0' }));
|
|
@@ -27,7 +29,7 @@ const TatumCeloSDK = (args) => {
|
|
|
27
29
|
getCurrentBlock: api_client_1.CeloService.celoGetCurrentBlock,
|
|
28
30
|
getBlock: api_client_1.CeloService.celoGetBlock,
|
|
29
31
|
getBlockchainAccountBalance: api_client_1.CeloService.celoGetBalance,
|
|
30
|
-
|
|
32
|
+
getTransaction: api_client_1.CeloService.celoGetTransaction,
|
|
31
33
|
getAccountTransactions: api_client_1.CeloService.celoGetTransactionByAddress,
|
|
32
34
|
smartContractGetAddress: api_client_1.BlockchainUtilsService.scGetContractAddress,
|
|
33
35
|
} });
|
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;
|
|
1
|
+
{"version":3,"file":"celo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/celo/src/lib/celo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAA4E;AAC5E,sEAA2E;AAC3E,oDAI4B;AAC5B,oDAA+C;AAC/C,sFAAkE;AAClE,kDAAoD;AACpD,gDAAkD;AAClD,0DAA4D;AAC5D,wEAAsE;AAEtE,MAAM,UAAU,GAAG,wBAAU,CAAC,IAAI,CAAA;AAE3B,MAAM,YAAY,GAAG,CAAC,IAAkB,EAAE,EAAE;IACjD,MAAM,IAAI,GAAG,IAAA,oBAAQ,EAAC,EAAE,UAAU,EAAE,CAAC,CAAA;IACrC,MAAM,GAAG,GAAG,wBAAW,CAAA;IACvB,MAAM,SAAS,GAAG,IAAA,uBAAa,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAA;IACrD,MAAM,MAAM,GAAG,IAAA,yCAAW,kCAAM,IAAI,KAAE,UAAU,EAAE,IAAI,IAAG,CAAA;IACzD,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,IAAA,oCAAc,GAAE,CAAA;IAEzC,MAAM,cAAc,GAAG,IAAA,2CAAqB,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAA;IAElE,uCACK,MAAM,KACT,GAAG,EACH,GAAG,EAAE,IAAA,yBAAc,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACzC,WAAW,EAAE,SAAS,CAAC,MAAM,EAC7B,KAAK,kCACA,SAAS,CAAC,KAAK,KAClB,4BAA4B,EAAE,mDAAsC,CAAC,4BAA4B,EACjG,sBAAsB,EAAE,mDAAsC,CAAC,eAAe,EAC9E,uBAAuB,EAAE,mDAAsC,CAAC,sBAAsB,KAExF,GAAG,kCACE,SAAS,CAAC,MAAM,GAChB,GAAG,GAER,OAAO,EACP,UAAU,EAAE,SAAS,CAAC,UAAU,EAChC,aAAa,EAAE,SAAS,CAAC,aAAa,EACtC,SAAS,EAAE,SAAS,CAAC,SAAS,EAC9B,OAAO,EAAE,SAAS,CAAC,OAAO,EAC1B,cAAc,EACd,WAAW,EAAE;YACX,OAAO,EAAE,IAAA,iCAAkB,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;SAClD,EACD,UAAU,EAAE,CAAO,OAAoB,EAAyB,EAAE;YAChE,OAAO,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,kCAAO,OAAO,KAAE,OAAO,EAAE,KAAK,IAAG,CAAA;QACxE,CAAC,CAAA,EACD,UAAU,EAAE;YACV,SAAS,EAAE,wBAAW,CAAC,aAAa;YACpC,oBAAoB,EAAE,wBAAW,CAAC,uBAAuB;YACzD,eAAe,EAAE,wBAAW,CAAC,mBAAmB;YAChD,QAAQ,EAAE,wBAAW,CAAC,YAAY;YAClC,2BAA2B,EAAE,wBAAW,CAAC,cAAc;YACvD,cAAc,EAAE,wBAAW,CAAC,kBAAkB;YAC9C,sBAAsB,EAAE,wBAAW,CAAC,2BAA2B;YAC/D,uBAAuB,EAAE,mCAAsB,CAAC,oBAAoB;SACrE,IACF;AACH,CAAC,CAAA;AA/CY,QAAA,YAAY,gBA+CxB"}
|