@tatumio/celo 2.0.1-alpha.310-fix-4 → 2.0.1-alpha.310-fix-6
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
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tatumio/celo",
|
|
3
|
-
"version": "2.0.1-alpha.310-fix-
|
|
3
|
+
"version": "2.0.1-alpha.310-fix-6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.310-fix-
|
|
9
|
-
"@tatumio/api-client": "2.0.1-alpha.310-fix-
|
|
8
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.310-fix-6",
|
|
9
|
+
"@tatumio/api-client": "2.0.1-alpha.310-fix-6",
|
|
10
10
|
"axios": "^0.26.0",
|
|
11
11
|
"form-data": "^4.0.0",
|
|
12
|
-
"@tatumio/shared-testing-common": "2.0.1-alpha.310-fix-
|
|
12
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.310-fix-6",
|
|
13
13
|
"bignumber.js": "^9.0.2",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
|
-
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.310-fix-
|
|
16
|
-
"@tatumio/shared-core": "2.0.1-alpha.310-fix-
|
|
17
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.310-fix-
|
|
15
|
+
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.310-fix-6",
|
|
16
|
+
"@tatumio/shared-core": "2.0.1-alpha.310-fix-6",
|
|
17
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.310-fix-6",
|
|
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.310-fix-
|
|
23
|
+
"@tatumio/shared-testing-evm-based": "2.0.1-alpha.310-fix-6",
|
|
24
24
|
"@celo-tools/celo-ethers-wrapper": "^0.1.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {}
|
package/src/lib/celo.sdk.js
CHANGED
|
@@ -11,7 +11,12 @@ const celo_tx_1 = require("./services/celo.tx");
|
|
|
11
11
|
const celo_auction_1 = require("./services/celo.auction");
|
|
12
12
|
const blockchain = shared_core_1.Blockchain.CELO;
|
|
13
13
|
const TatumCeloSDK = (args) => {
|
|
14
|
-
const web3 = (0, celo_web3_1.celoWeb3)({
|
|
14
|
+
const web3 = (0, celo_web3_1.celoWeb3)({
|
|
15
|
+
blockchain,
|
|
16
|
+
apiCalls: {
|
|
17
|
+
getFee: api_client_1.BlockchainFeesService.getBlockchainFee,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
15
20
|
const api = api_client_1.CeloService;
|
|
16
21
|
const txService = (0, celo_tx_1.celoTxService)({ blockchain, web3 });
|
|
17
22
|
const _a = (0, shared_blockchain_evm_based_1.evmBasedSdk)(Object.assign(Object.assign({}, args), { blockchain, web3 })), { nft } = _a, evmSdk = (0, tslib_1.__rest)(_a, ["nft"]);
|
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,
|
|
1
|
+
{"version":3,"file":"celo.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/celo/src/lib/celo.sdk.ts"],"names":[],"mappings":";;;;AAAA,sDAA4E;AAE5E,oDAI4B;AAC5B,oDAA+C;AAC/C,sFAAkE;AAClE,kDAA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A;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,GAAG,EAAE,wBAAW,CAAC,kBAAkB;YACnC,sBAAsB,EAAE,wBAAW,CAAC,2BAA2B;SAChE,IACF;AACH,CAAC,CAAA;AA7CY,QAAA,YAAY,gBA6CxB"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import Web3 from 'web3';
|
|
2
2
|
import { EvmBasedBlockchain } from '@tatumio/shared-core';
|
|
3
|
+
import { BlockchainFeesService } from '@tatumio/api-client';
|
|
3
4
|
export declare const celoWeb3: (args: {
|
|
4
5
|
blockchain: EvmBasedBlockchain;
|
|
5
6
|
client?: Web3;
|
|
7
|
+
apiCalls: {
|
|
8
|
+
getFee: typeof BlockchainFeesService.getBlockchainFee;
|
|
9
|
+
};
|
|
6
10
|
}) => {
|
|
7
11
|
getClient(provider?: string, fromPrivateKey?: string): Web3;
|
|
8
12
|
getGasPriceInWei(): Promise<string>;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.celoWeb3 = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const shared_blockchain_evm_based_1 = require("@tatumio/shared-blockchain-evm-based");
|
|
6
|
-
const api_client_1 = require("@tatumio/api-client");
|
|
7
6
|
const celoWeb3 = (args) => {
|
|
8
7
|
const evmBasedWeb3Result = (0, shared_blockchain_evm_based_1.evmBasedWeb3)(args);
|
|
9
8
|
return Object.assign(Object.assign({}, evmBasedWeb3Result), { getClient(provider, fromPrivateKey) {
|
|
@@ -18,7 +17,7 @@ const celoWeb3 = (args) => {
|
|
|
18
17
|
getGasPriceInWei() {
|
|
19
18
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
20
19
|
// TODO: SHOULD BE REPLACED TO CELO
|
|
21
|
-
return (yield
|
|
20
|
+
return (yield args.apiCalls.getFee('ETH')).medium.toString();
|
|
22
21
|
});
|
|
23
22
|
} });
|
|
24
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"celo.web3.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.web3.ts"],"names":[],"mappings":";;;;AAAA,sFAAmE;
|
|
1
|
+
{"version":3,"file":"celo.web3.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/celo/src/lib/services/celo.web3.ts"],"names":[],"mappings":";;;;AAAA,sFAAmE;AAK5D,MAAM,QAAQ,GAAG,CAAC,IAMxB,EAAE,EAAE;IACH,MAAM,kBAAkB,GAAG,IAAA,0CAAY,EAAC,IAAI,CAAC,CAAA;IAE7C,uCACK,kBAAkB,KACrB,SAAS,CAAC,QAAiB,EAAE,cAAuB;;YAClD,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,MAAM,mCAAI,kBAAkB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;YAElE,IAAI,cAAc,EAAE;gBAClB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;gBAC5C,IAAI,CAAC,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;aAC9D;YAED,OAAO,IAAI,CAAA;QACb,CAAC;QACK,gBAAgB;;gBACpB,mCAAmC;gBACnC,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAA;YAC9D,CAAC;SAAA,IACF;AACH,CAAC,CAAA;AA1BY,QAAA,QAAQ,YA0BpB"}
|