@tatumio/bnb 2.0.1-alpha.376 → 2.0.1-alpha.378
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 +6 -6
- package/src/lib/bnb.sdk.d.ts +0 -36
- package/src/lib/bnb.sdk.js +0 -2
- package/src/lib/bnb.sdk.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tatumio/bnb",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.378",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@tatumio/api-client": "2.0.1-alpha.
|
|
8
|
+
"@tatumio/api-client": "2.0.1-alpha.378",
|
|
9
9
|
"axios": "^0.26.0",
|
|
10
10
|
"form-data": "^4.0.0",
|
|
11
|
-
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.
|
|
12
|
-
"@tatumio/shared-testing-common": "2.0.1-alpha.
|
|
11
|
+
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.378",
|
|
12
|
+
"@tatumio/shared-testing-common": "2.0.1-alpha.378",
|
|
13
13
|
"bignumber.js": "^9.0.2",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
|
-
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.
|
|
16
|
-
"@tatumio/shared-core": "2.0.1-alpha.
|
|
15
|
+
"@tatumio/shared-blockchain-abstract": "2.0.1-alpha.378",
|
|
16
|
+
"@tatumio/shared-core": "2.0.1-alpha.378",
|
|
17
17
|
"@binance-chain/javascript-sdk": "^4.1.1",
|
|
18
18
|
"tslib": "^2.0.0"
|
|
19
19
|
},
|
package/src/lib/bnb.sdk.d.ts
CHANGED
|
@@ -96,20 +96,14 @@ export declare const TatumBnbSDK: (args: SDKArguments, apiCalls?: BnbApiCallsTyp
|
|
|
96
96
|
storeTokenAddress: any;
|
|
97
97
|
};
|
|
98
98
|
blockchain: {
|
|
99
|
-
generateWallet: typeof BnbBeaconChainService.bnbGenerateWallet;
|
|
100
99
|
getCurrentBlock: typeof BnbBeaconChainService.bnbGetCurrentBlock;
|
|
101
100
|
getBlock: typeof BnbBeaconChainService.bnbGetBlock;
|
|
102
101
|
getAccount: typeof BnbBeaconChainService.bnbGetAccount;
|
|
103
102
|
getTransaction: typeof BnbBeaconChainService.bnbGetTransaction;
|
|
104
103
|
getTxByAccount: typeof BnbBeaconChainService.bnbGetTxByAccount;
|
|
105
|
-
blockchainTransfer: typeof BnbBeaconChainService.bnbBlockchainTransfer;
|
|
106
104
|
broadcast: typeof BnbBeaconChainService.bnbBroadcast;
|
|
107
105
|
};
|
|
108
106
|
getExchangeRate(basePair?: import("@tatumio/api-client").Fiat): import("@tatumio/api-client").CancelablePromise<import("@tatumio/api-client").ExchangeRate>;
|
|
109
|
-
storage: {
|
|
110
|
-
upload: typeof import("@tatumio/api-client").IpfsService.storeIpfs;
|
|
111
|
-
get: typeof import("@tatumio/api-client").IpfsService.getIpfsData;
|
|
112
|
-
};
|
|
113
107
|
subscriptions: typeof import("@tatumio/api-client").NotificationSubscriptionsService;
|
|
114
108
|
security: {
|
|
115
109
|
checkMaliciousAddress: typeof import("@tatumio/api-client").MaliciousAddressService.checkMalicousAddress;
|
|
@@ -120,36 +114,6 @@ export declare const TatumBnbSDK: (args: SDKArguments, apiCalls?: BnbApiCallsTyp
|
|
|
120
114
|
freezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.freezeApiKey;
|
|
121
115
|
unfreezeApiKey: typeof import("@tatumio/api-client").ServiceUtilsService.unfreezeApiKey;
|
|
122
116
|
};
|
|
123
|
-
custodialManagedWallet: {
|
|
124
|
-
transfer: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialTransferManagedAddress;
|
|
125
|
-
getAll: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialGetWallets;
|
|
126
|
-
create: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialCreateWallet;
|
|
127
|
-
delete: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialDeleteWallet;
|
|
128
|
-
get: typeof import("@tatumio/api-client").CustodialManagedWalletsService.custodialGetWallet;
|
|
129
|
-
};
|
|
130
|
-
nft: {
|
|
131
|
-
deployNFTSmartContract: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftDeployErc721;
|
|
132
|
-
addNFTMinter: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftAddMinter;
|
|
133
|
-
mintNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftMintErc721;
|
|
134
|
-
mintMultipleNFTs: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftMintMultipleErc721;
|
|
135
|
-
burnNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftBurnErc721;
|
|
136
|
-
transferNFT: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftTransferErc721;
|
|
137
|
-
updateNFTRoyalty: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftUpdateCashbackErc721;
|
|
138
|
-
getNFTTransaction: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactErc721;
|
|
139
|
-
getNFTTransactionsByToken: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactionByToken;
|
|
140
|
-
getNFTTransactionsByAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTransactionByAddress;
|
|
141
|
-
getNFTsByAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetTokensByAddressErc721;
|
|
142
|
-
getNFTProvenanceData: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetProvenanceDataErc721;
|
|
143
|
-
getNFTMetadataURI: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetMetadataErc721;
|
|
144
|
-
getNFTRoyalty: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetRoyaltyErc721;
|
|
145
|
-
getNFTAccountBalance: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetBalanceErc721;
|
|
146
|
-
getNFTContractAddress: typeof import("@tatumio/api-client").NftErc721OrCompatibleService.nftGetContractAddress;
|
|
147
|
-
getNFTImage: (chain: "ETH" | "BSC" | "MATIC" | "CELO" | "FLOW" | "TRON" | "ONE" | "KLAY" | "SOL" | "KCS", contractAddress: string, tokenId: string, account?: string) => Promise<{
|
|
148
|
-
originalUrl: string;
|
|
149
|
-
publicUrl: string;
|
|
150
|
-
}>;
|
|
151
|
-
prepareAddNftMinterAbstraction: (body: import("@tatumio/api-client").AddNftMinter | import("@tatumio/api-client").AddNftMinterKMS) => string[];
|
|
152
|
-
};
|
|
153
117
|
ledger: {
|
|
154
118
|
customer: {
|
|
155
119
|
get: typeof import("@tatumio/api-client").CustomerService.getCustomerByExternalOrInternalId;
|
package/src/lib/bnb.sdk.js
CHANGED
|
@@ -12,13 +12,11 @@ const bnb_web3_1 = require("./services/bnb.web3");
|
|
|
12
12
|
const TatumBnbSDK = (args, apiCalls = { getAccountInfo: api_client_1.ApiServices.blockchain.bnb.bnbGetAccount }) => {
|
|
13
13
|
const web3 = (0, bnb_web3_1.bnbWeb3)(args.provider);
|
|
14
14
|
return Object.assign(Object.assign({}, (0, shared_blockchain_abstract_1.abstractBlockchainSdk)(Object.assign(Object.assign({}, args), { blockchain: shared_core_1.Blockchain.BNB }))), { wallet: (0, bnb_wallet_1.bnbWallet)(), transaction: (0, bnb_tx_1.bnbTxService)({ web3 }, apiCalls), kms: (0, bnb_kms_1.bnbKmsService)({ web3 }), virtualAccount: (0, bnb_virtualAccount_1.bnbVirtualAccountService)({ web3 }, apiCalls), blockchain: {
|
|
15
|
-
generateWallet: api_client_1.BnbBeaconChainService.bnbGenerateWallet,
|
|
16
15
|
getCurrentBlock: api_client_1.BnbBeaconChainService.bnbGetCurrentBlock,
|
|
17
16
|
getBlock: api_client_1.BnbBeaconChainService.bnbGetBlock,
|
|
18
17
|
getAccount: api_client_1.BnbBeaconChainService.bnbGetAccount,
|
|
19
18
|
getTransaction: api_client_1.BnbBeaconChainService.bnbGetTransaction,
|
|
20
19
|
getTxByAccount: api_client_1.BnbBeaconChainService.bnbGetTxByAccount,
|
|
21
|
-
blockchainTransfer: api_client_1.BnbBeaconChainService.bnbBlockchainTransfer,
|
|
22
20
|
broadcast: api_client_1.BnbBeaconChainService.bnbBroadcast,
|
|
23
21
|
} });
|
|
24
22
|
};
|
package/src/lib/bnb.sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bnb.sdk.js","sourceRoot":"","sources":["../../../../../../packages/blockchain/bnb/src/lib/bnb.sdk.ts"],"names":[],"mappings":";;;AACA,oDAAwE;AACxE,oFAA2E;AAE3E,8CAAgD;AAChD,gDAAkD;AAClD,sDAAiD;AACjD,sDAAiD;AACjD,sEAAwE;AACxE,kDAAsD;AAE/C,MAAM,WAAW,GAAG,CACzB,IAAkB,EAClB,WAA4B,EAAE,cAAc,EAAE,wBAAW,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,EAAE,EACxF,EAAE;IACF,MAAM,IAAI,GAAY,IAAA,kBAAO,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IAE5C,uCACK,IAAA,kDAAqB,kCAAM,IAAI,KAAE,UAAU,EAAE,wBAAU,CAAC,GAAG,IAAG,KACjE,MAAM,EAAE,IAAA,sBAAS,GAAE,EACnB,WAAW,EAAE,IAAA,qBAAY,EAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,CAAC,EAC7C,GAAG,EAAE,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,CAAC,EAC5B,cAAc,EAAE,IAAA,6CAAwB,EAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,CAAC,EAC5D,UAAU,EAAE;YACV,
|
|
1
|
+
{"version":3,"file":"bnb.sdk.js","sourceRoot":"","sources":["../../../../../../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