Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tatumio/shared-blockchain-abstract

Package Overview
Dependencies
Maintainers
3
Versions
341
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tatumio/shared-blockchain-abstract - npm Package Compare versions

Comparing version 2.0.1-alpha.224 to 2.0.1-alpha.227

8

package.json
{
"name": "@tatumio/shared-blockchain-abstract",
"version": "2.0.1-alpha.224",
"version": "2.0.1-alpha.227",
"license": "MIT",

@@ -8,8 +8,8 @@ "main": "./src/index.js",

"dependencies": {
"@tatumio/api-client": "2.0.1-alpha.223",
"@tatumio/api-client": "2.0.1-alpha.224",
"axios": "^0.24.0",
"cross-blob": "^3.0.0",
"form-data": "^4.0.0",
"@tatumio/shared-core": "2.0.1-alpha.223",
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.223",
"@tatumio/shared-core": "2.0.1-alpha.224",
"@tatumio/shared-abstract-sdk": "2.0.1-alpha.224",
"bignumber.js": "^9.0.2"

@@ -16,0 +16,0 @@ },

@@ -1,7 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./lib/abstract-blockchain.sdk"), exports);
(0, tslib_1.__exportStar)(require("./lib/services/kms.abstract-blockchain"), exports);
(0, tslib_1.__exportStar)(require("./lib/services/offchain.abstract-blockchain"), exports);
export * from './lib/abstract-blockchain.sdk';
export * from './lib/services/kms.abstract-blockchain';
export * from './lib/services/offchain.abstract-blockchain';
//# sourceMappingURL=index.js.map

@@ -1,17 +0,13 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abstractBlockchainSdk = void 0;
const api_client_1 = require("@tatumio/api-client");
const shared_core_1 = require("@tatumio/shared-core");
const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
const kms_abstract_blockchain_1 = require("./services/kms.abstract-blockchain");
const offchain_abstract_blockchain_1 = require("./services/offchain.abstract-blockchain");
const abstractBlockchainSdk = (args) => {
return Object.assign(Object.assign({}, (0, shared_abstract_sdk_1.abstractSdk)(args)), { kms: (0, kms_abstract_blockchain_1.abstractBlockchainKms)(args), offchain: (0, offchain_abstract_blockchain_1.abstractBlockchainOffchain)(args), getExchangeRate(basePair) {
return api_client_1.TatumServiceService.getExchangeRate(
import { TatumServiceService, } from '@tatumio/api-client';
import { blockchainHelper } from '@tatumio/shared-core';
import { abstractSdk } from '@tatumio/shared-abstract-sdk';
import { abstractBlockchainKms } from './services/kms.abstract-blockchain';
import { abstractBlockchainOffchain } from './services/offchain.abstract-blockchain';
export const abstractBlockchainSdk = (args) => {
return Object.assign(Object.assign({}, abstractSdk(args)), { kms: abstractBlockchainKms(args), offchain: abstractBlockchainOffchain(args), getExchangeRate(basePair) {
return TatumServiceService.getExchangeRate(
// @ts-ignore @TODO OPENAPI fix
shared_core_1.blockchainHelper.getDefaultCurrencyByBlockchain(blockchain), basePair);
blockchainHelper.getDefaultCurrencyByBlockchain(blockchain), basePair);
} });
};
exports.abstractBlockchainSdk = abstractBlockchainSdk;
//# sourceMappingURL=abstract-blockchain.sdk.js.map

@@ -1,9 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abstractBlockchainKms = void 0;
const shared_core_1 = require("@tatumio/shared-core");
const api_client_1 = require("@tatumio/api-client");
const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
const abstractBlockchainKms = (args) => {
const superObject = (0, shared_abstract_sdk_1.abstractSdkKms)();
import { blockchainHelper } from '@tatumio/shared-core';
import { ApiServices } from '@tatumio/api-client';
import { abstractSdkKms } from '@tatumio/shared-abstract-sdk';
export const abstractBlockchainKms = (args) => {
const superObject = abstractSdkKms();
return Object.assign(Object.assign({}, superObject), {

@@ -19,8 +16,7 @@ // @TODO looks like a bug - should be array

getAllPending(signatures) {
return api_client_1.ApiServices.kms.getPendingTransactionsToSign(
return ApiServices.kms.getPendingTransactionsToSign(
// @ts-ignore @TODO
shared_core_1.blockchainHelper.getDefaultCurrencyByBlockchain(args.blockchain));
blockchainHelper.getDefaultCurrencyByBlockchain(args.blockchain));
} });
};
exports.abstractBlockchainKms = abstractBlockchainKms;
//# sourceMappingURL=kms.abstract-blockchain.js.map

@@ -1,18 +0,14 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abstractBlockchainOffchain = void 0;
const tslib_1 = require("tslib");
const shared_abstract_sdk_1 = require("@tatumio/shared-abstract-sdk");
const shared_core_1 = require("@tatumio/shared-core");
const abstractBlockchainOffchain = (args) => {
const superObject = (0, shared_abstract_sdk_1.abstractSdkOffChain)();
return Object.assign(Object.assign({}, superObject), { depositAddress: Object.assign(Object.assign({}, superObject.depositAddress), { checkExists: (address, index) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
return superObject.depositAddress.checkExists(shared_core_1.blockchainHelper.getDefaultCurrencyByBlockchain(args.blockchain), address, index);
import { __awaiter } from "tslib";
import { abstractSdkOffChain } from '@tatumio/shared-abstract-sdk';
import { blockchainHelper } from '@tatumio/shared-core';
export const abstractBlockchainOffchain = (args) => {
const superObject = abstractSdkOffChain();
return Object.assign(Object.assign({}, superObject), { depositAddress: Object.assign(Object.assign({}, superObject.depositAddress), { checkExists: (address, index) => __awaiter(void 0, void 0, void 0, function* () {
return superObject.depositAddress.checkExists(blockchainHelper.getDefaultCurrencyByBlockchain(args.blockchain), address, index);
}) }), withdrawal: {
getAll: (status, pageSize = 50, offset = 0) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
return superObject.withdrawal.getAll(pageSize, shared_core_1.blockchainHelper.getDefaultCurrencyByBlockchain(args.blockchain), status, offset);
getAll: (status, pageSize = 50, offset = 0) => __awaiter(void 0, void 0, void 0, function* () {
return superObject.withdrawal.getAll(pageSize, blockchainHelper.getDefaultCurrencyByBlockchain(args.blockchain), status, offset);
}),
} });
};
exports.abstractBlockchainOffchain = abstractBlockchainOffchain;
//# sourceMappingURL=offchain.abstract-blockchain.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc