@tatumio/bsc 2.0.1-alpha.223 → 2.0.1-alpha.229
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,28 +1,24 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tatumio/bsc",
|
3
|
-
"version": "2.0.1-alpha.
|
3
|
+
"version": "2.0.1-alpha.229",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./src/index.js",
|
6
6
|
"typings": "./src/index.d.ts",
|
7
7
|
"dependencies": {
|
8
|
-
"@tatumio/shared-testing": "2.0.1-alpha.
|
9
|
-
"@tatumio/shared-blockchain-
|
10
|
-
"@tatumio/
|
8
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.228",
|
9
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.228",
|
10
|
+
"@tatumio/api-client": "2.0.1-alpha.228",
|
11
11
|
"axios": "^0.24.0",
|
12
|
-
"@tatumio/api-client": "2.0.1-alpha.222",
|
13
|
-
"cross-blob": "^3.0.0",
|
14
12
|
"form-data": "^4.0.0",
|
15
|
-
"@tatumio/shared-
|
16
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
13
|
+
"@tatumio/shared-core": "2.0.1-alpha.228",
|
14
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.228",
|
17
15
|
"bignumber.js": "^9.0.2",
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"hdkey": "^2.0.1",
|
22
|
-
"bitcore-lib": "^8.25.25",
|
23
|
-
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.222",
|
16
|
+
"@tatumio/shared-testing-evm-based": "0.0.1",
|
17
|
+
"web3": "^1.7.0",
|
18
|
+
"@tatumio/shared-blockchain-evm-based": "2.0.1-alpha.228",
|
24
19
|
"ethereumjs-wallet": "^1.0.2",
|
25
|
-
"
|
20
|
+
"bip39": "^3.0.2",
|
21
|
+
"web3-core": "^1.7.0"
|
26
22
|
},
|
27
23
|
"peerDependencies": {}
|
28
24
|
}
|
package/src/lib/bsc.sdk.d.ts
CHANGED
@@ -10,7 +10,23 @@ export declare const TatumBscSDK: (args: SDKArguments) => {
|
|
10
10
|
complete: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.completePendingSignature;
|
11
11
|
delete: typeof import("@tatumio/api-client").SecurityKeyManagementSystemService.deletePendingTransactionToSign;
|
12
12
|
};
|
13
|
-
transaction: {
|
13
|
+
transaction: {
|
14
|
+
erc20: {
|
15
|
+
decimals: (contractAddress: string, provider?: string) => Promise<any>;
|
16
|
+
prepare: {
|
17
|
+
deploySignedTransaction: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainDeployErc20, provider?: string) => Promise<string>;
|
18
|
+
transferSignedTransaction: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferErc20, provider?: string) => Promise<string>;
|
19
|
+
mintSignedTransaction: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainMintErc20, provider?: string) => Promise<string>;
|
20
|
+
burnSignedTransaction: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainBurnErc20, provider?: string) => Promise<string>;
|
21
|
+
};
|
22
|
+
send: {
|
23
|
+
deploySignedTransaction: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainDeployErc20, provider?: string) => Promise<any>;
|
24
|
+
transferSignedTransaction: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferErc20, provider?: string) => Promise<any>;
|
25
|
+
mintSignedTransaction: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainMintErc20, provider?: string) => Promise<any>;
|
26
|
+
burnSignedTransaction: (body: import("../../../../../dist/packages/shared/blockchain/abstract/src").ChainBurnErc20, provider?: string) => Promise<any>;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
};
|
14
30
|
httpDriver: (request: Web3Request) => Promise<Web3Response>;
|
15
31
|
blockchain: {
|
16
32
|
broadcast: typeof BlockchainBscService.bscBroadcast;
|
@@ -50,6 +66,9 @@ export declare const TatumBscSDK: (args: SDKArguments) => {
|
|
50
66
|
};
|
51
67
|
withdrawal: {
|
52
68
|
getAll: (status?: "InProgress" | "Done" | "Cancelled", pageSize?: number, offset?: number) => Promise<import("@tatumio/api-client").WithdrawalObject[]>;
|
69
|
+
broadcast: typeof import("@tatumio/api-client").OffChainWithdrawalService.broadcastBlockchainTransaction;
|
70
|
+
create: typeof import("@tatumio/api-client").OffChainWithdrawalService.storeWithdrawal;
|
71
|
+
complete: typeof import("@tatumio/api-client").OffChainWithdrawalService.completeWithdrawal;
|
53
72
|
};
|
54
73
|
storeTokenAddress: typeof import("@tatumio/api-client").OffChainBlockchainService.storeTokenAddress;
|
55
74
|
};
|
@@ -3,4 +3,20 @@ import { EvmBasedBlockchain } from '@tatumio/shared-core';
|
|
3
3
|
export declare const bscTxService: (args: {
|
4
4
|
blockchain: EvmBasedBlockchain;
|
5
5
|
web3: EvmBasedWeb3;
|
6
|
-
}) => {
|
6
|
+
}) => {
|
7
|
+
erc20: {
|
8
|
+
decimals: (contractAddress: string, provider?: string) => Promise<any>;
|
9
|
+
prepare: {
|
10
|
+
deploySignedTransaction: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainDeployErc20, provider?: string) => Promise<string>;
|
11
|
+
transferSignedTransaction: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferErc20, provider?: string) => Promise<string>;
|
12
|
+
mintSignedTransaction: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainMintErc20, provider?: string) => Promise<string>;
|
13
|
+
burnSignedTransaction: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainBurnErc20, provider?: string) => Promise<string>;
|
14
|
+
};
|
15
|
+
send: {
|
16
|
+
deploySignedTransaction: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainDeployErc20, provider?: string) => Promise<any>;
|
17
|
+
transferSignedTransaction: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainTransferErc20, provider?: string) => Promise<any>;
|
18
|
+
mintSignedTransaction: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainMintErc20, provider?: string) => Promise<any>;
|
19
|
+
burnSignedTransaction: (body: import("../../../../../../dist/packages/shared/blockchain/abstract/src").ChainBurnErc20, provider?: string) => Promise<any>;
|
20
|
+
};
|
21
|
+
};
|
22
|
+
};
|
@@ -1,8 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.bscTxService = void 0;
|
4
|
+
const api_client_1 = require("@tatumio/api-client");
|
5
|
+
const shared_blockchain_evm_based_1 = require("@tatumio/shared-blockchain-evm-based");
|
4
6
|
const bscTxService = (args) => {
|
5
|
-
return {
|
7
|
+
return {
|
8
|
+
erc20: Object.assign({}, (0, shared_blockchain_evm_based_1.erc20)(Object.assign(Object.assign({}, args), { broadcastFunction: api_client_1.BlockchainBscService.bscBroadcast }))),
|
9
|
+
};
|
6
10
|
};
|
7
11
|
exports.bscTxService = bscTxService;
|
8
12
|
//# sourceMappingURL=bsc.tx.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bsc.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/bsc/src/lib/services/bsc.tx.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"bsc.tx.js","sourceRoot":"","sources":["../../../../../../../packages/blockchain/bsc/src/lib/services/bsc.tx.ts"],"names":[],"mappings":";;;AAAA,oDAA0D;AAC1D,sFAA0E;AAGnE,MAAM,YAAY,GAAG,CAAC,IAA4D,EAAE,EAAE;IAC3F,OAAO;QACL,KAAK,oBACA,IAAA,mCAAK,kCACH,IAAI,KACP,iBAAiB,EAAE,iCAAoB,CAAC,YAAY,IACpD,CACH;KACF,CAAA;AACH,CAAC,CAAA;AATY,QAAA,YAAY,gBASxB"}
|