@tatumio/egld 2.0.1-alpha.260 → 2.0.1-alpha.263
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +6 -6
- package/src/lib/egld.sdk.d.ts +13 -13
- package/src/lib/egld.sdk.js +12 -12
- package/src/lib/services/egld.tx.js +5 -5
package/package.json
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/egld",
|
3
|
-
"version": "2.0.1-alpha.
|
3
|
+
"version": "2.0.1-alpha.263",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./src/index.js",
|
6
6
|
"typings": "./src/index.d.ts",
|
7
7
|
"dependencies": {
|
8
|
-
"@tatumio/api-client": "2.0.1-alpha.
|
8
|
+
"@tatumio/api-client": "2.0.1-alpha.263",
|
9
9
|
"axios": "^0.26.0",
|
10
10
|
"form-data": "^4.0.0",
|
11
|
-
"@tatumio/shared-testing-common": "2.0.1-alpha.
|
12
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
13
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
11
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.263",
|
12
|
+
"@tatumio/shared-core": "2.0.1-alpha.263",
|
13
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.263",
|
14
14
|
"bignumber.js": "^9.0.2",
|
15
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
15
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.263",
|
16
16
|
"ed25519-hd-key": "^1.2.0",
|
17
17
|
"web3-core": "^1.7.0",
|
18
18
|
"@elrondnetwork/erdjs": "^9.2.4",
|
package/src/lib/egld.sdk.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SDKArguments } from '@tatumio/shared-abstract-sdk';
|
2
|
-
import {
|
2
|
+
import { ElrondService } from '@tatumio/api-client';
|
3
3
|
export declare const TatumEgldSDK: (args: SDKArguments) => {
|
4
4
|
record: {
|
5
5
|
getLog(id: string): import("@tatumio/api-client").CancelablePromise<{
|
@@ -58,20 +58,20 @@ export declare const TatumEgldSDK: (args: SDKArguments) => {
|
|
58
58
|
delete: typeof import("@tatumio/api-client").KeyManagementSystemService.deletePendingTransactionToSign;
|
59
59
|
};
|
60
60
|
blockchain: {
|
61
|
-
broadcast: typeof
|
62
|
-
getBlock: typeof
|
63
|
-
getCurrentBlock: typeof
|
64
|
-
generateWallet: typeof
|
65
|
-
generateAddress: typeof
|
66
|
-
generatePrivateKeyOfAddress: typeof
|
67
|
-
getBalance: typeof
|
68
|
-
getTransaction: typeof
|
69
|
-
getTransactionsSentFromAddress: typeof
|
70
|
-
getCountOfTransactionSentFromAddress: typeof
|
61
|
+
broadcast: typeof ElrondService.egldBroadcast;
|
62
|
+
getBlock: typeof ElrondService.egldGetBlock;
|
63
|
+
getCurrentBlock: typeof ElrondService.eGldGetCurrentBlock;
|
64
|
+
generateWallet: typeof ElrondService.egldGenerateWallet;
|
65
|
+
generateAddress: typeof ElrondService.egldGenerateAddress;
|
66
|
+
generatePrivateKeyOfAddress: typeof ElrondService.egldGenerateAddressPrivateKey;
|
67
|
+
getBalance: typeof ElrondService.egldGetBalance;
|
68
|
+
getTransaction: typeof ElrondService.egldGetTransaction;
|
69
|
+
getTransactionsSentFromAddress: typeof ElrondService.egldGetTransactionAddress;
|
70
|
+
getCountOfTransactionSentFromAddress: typeof ElrondService.egldGetTransactionCount;
|
71
71
|
};
|
72
72
|
node: {
|
73
|
-
post: typeof
|
74
|
-
get: typeof
|
73
|
+
post: typeof ElrondService.egldNodePost;
|
74
|
+
get: typeof ElrondService.egldNodeGet;
|
75
75
|
};
|
76
76
|
getExchangeRate(basePair?: import("@tatumio/api-client").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
|
77
77
|
storage: {
|
package/src/lib/egld.sdk.js
CHANGED
@@ -12,19 +12,19 @@ const egld_kms_1 = require("./services/egld.kms");
|
|
12
12
|
const blockchain = shared_core_1.Blockchain.EGLD;
|
13
13
|
const TatumEgldSDK = (args) => {
|
14
14
|
return Object.assign(Object.assign({}, (0, shared_blockchain_abstract_1.abstractBlockchainSdk)(Object.assign(Object.assign({}, args), { blockchain }))), { record: (0, egld_record_1.egldRecord)(), wallet: (0, egld_wallet_1.egldWallet)(), transaction: (0, egld_tx_1.egldTransactionService)(), offchain: (0, egld_offchain_1.egldOffchainService)({ blockchain }), kms: (0, egld_kms_1.egldKmsService)({ blockchain }), blockchain: {
|
15
|
-
broadcast: api_client_1.
|
16
|
-
getBlock: api_client_1.
|
17
|
-
getCurrentBlock: api_client_1.
|
18
|
-
generateWallet: api_client_1.
|
19
|
-
generateAddress: api_client_1.
|
20
|
-
generatePrivateKeyOfAddress: api_client_1.
|
21
|
-
getBalance: api_client_1.
|
22
|
-
getTransaction: api_client_1.
|
23
|
-
getTransactionsSentFromAddress: api_client_1.
|
24
|
-
getCountOfTransactionSentFromAddress: api_client_1.
|
15
|
+
broadcast: api_client_1.ElrondService.egldBroadcast,
|
16
|
+
getBlock: api_client_1.ElrondService.egldGetBlock,
|
17
|
+
getCurrentBlock: api_client_1.ElrondService.eGldGetCurrentBlock,
|
18
|
+
generateWallet: api_client_1.ElrondService.egldGenerateWallet,
|
19
|
+
generateAddress: api_client_1.ElrondService.egldGenerateAddress,
|
20
|
+
generatePrivateKeyOfAddress: api_client_1.ElrondService.egldGenerateAddressPrivateKey,
|
21
|
+
getBalance: api_client_1.ElrondService.egldGetBalance,
|
22
|
+
getTransaction: api_client_1.ElrondService.egldGetTransaction,
|
23
|
+
getTransactionsSentFromAddress: api_client_1.ElrondService.egldGetTransactionAddress,
|
24
|
+
getCountOfTransactionSentFromAddress: api_client_1.ElrondService.egldGetTransactionCount,
|
25
25
|
}, node: {
|
26
|
-
post: api_client_1.
|
27
|
-
get: api_client_1.
|
26
|
+
post: api_client_1.ElrondService.egldNodePost,
|
27
|
+
get: api_client_1.ElrondService.egldNodeGet,
|
28
28
|
} });
|
29
29
|
};
|
30
30
|
exports.TatumEgldSDK = TatumEgldSDK;
|
@@ -190,7 +190,7 @@ const egldTransactionService = () => {
|
|
190
190
|
* @returns transaction id of the transaction in the blockchain
|
191
191
|
*/
|
192
192
|
deploy: (body) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
193
|
-
return yield api_client_1.
|
193
|
+
return yield api_client_1.ElrondService.egldBroadcast({
|
194
194
|
txData: yield prepareDeploy(body),
|
195
195
|
signatureId: body.signatureId,
|
196
196
|
});
|
@@ -202,7 +202,7 @@ const egldTransactionService = () => {
|
|
202
202
|
* @returns transaction id of the transaction in the blockchain
|
203
203
|
*/
|
204
204
|
signedTransaction: (body) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
205
|
-
return yield api_client_1.
|
205
|
+
return yield api_client_1.ElrondService.egldBroadcast({
|
206
206
|
txData: yield (0, exports.prepareSignedTransaction)(body),
|
207
207
|
signatureId: body.signatureId,
|
208
208
|
});
|
@@ -214,7 +214,7 @@ const egldTransactionService = () => {
|
|
214
214
|
* @returns transaction id of the transaction in the blockchain
|
215
215
|
*/
|
216
216
|
smartContractMethodInvocation: (body) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
217
|
-
return yield api_client_1.
|
217
|
+
return yield api_client_1.ElrondService.egldBroadcast({
|
218
218
|
txData: yield (0, exports.prepareTransferEsdtSignedTransaction)(body),
|
219
219
|
signatureId: body.signatureId,
|
220
220
|
});
|
@@ -226,7 +226,7 @@ const egldTransactionService = () => {
|
|
226
226
|
* @returns transaction id of the transaction in the blockchain
|
227
227
|
*/
|
228
228
|
transferNft: (body) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
229
|
-
return yield api_client_1.
|
229
|
+
return yield api_client_1.ElrondService.egldBroadcast({
|
230
230
|
txData: yield (0, exports.prepareTransferNft)(body),
|
231
231
|
signatureId: body.signatureId,
|
232
232
|
});
|
@@ -238,7 +238,7 @@ const egldTransactionService = () => {
|
|
238
238
|
* @returns transaction id of the transaction in the blockchain
|
239
239
|
*/
|
240
240
|
deployNft: (body) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
241
|
-
return yield api_client_1.
|
241
|
+
return yield api_client_1.ElrondService.egldBroadcast({
|
242
242
|
txData: yield (0, exports.prepareDeployNftOrSft)(body),
|
243
243
|
signatureId: body.signatureId,
|
244
244
|
});
|