Socket
Socket
Sign inDemoInstall

@tatumio/shared-core

Package Overview
Dependencies
Maintainers
5
Versions
337
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tatumio/shared-core - npm Package Compare versions

Comparing version 2.2.70 to 2.2.71

4

package.json
{
"name": "@tatumio/shared-core",
"version": "2.2.70",
"version": "2.2.71",
"license": "MIT",

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

"dependencies": {
"@tatumio/api-client": "2.2.70",
"@tatumio/api-client": "2.2.71",
"axios": "^0.26.0",

@@ -11,0 +11,0 @@ "form-data": "^4.0.0",

@@ -40,2 +40,3 @@ "use strict";

BASE: "m/44'/60'/0'/0",
AVAX: "m/44'/60'/0'/0",
};

@@ -42,0 +43,0 @@ exports.COMMON_TESTNET_DERIVATION_PATH = "m/44'/1'/0'/0";

@@ -1,2 +0,1 @@

import { AxiosRequestConfig } from 'axios';
import { Blockchain, EvmBasedBlockchain } from './models/Blockchain';

@@ -10,4 +9,4 @@ export declare const httpCommon: {

rpcEndpoint: (blockchain: Blockchain, url: string, apiKey: string) => string;
get: <T = any, R = import("axios").AxiosResponse<T, any>, D = any>(url: string, config?: AxiosRequestConfig<D>) => Promise<R>;
post: <T_1 = any, R_1 = import("axios").AxiosResponse<T_1, any>, D_1 = any>(url: string, data?: D_1, config?: AxiosRequestConfig<D_1>) => Promise<R_1>;
get: <T = any, R = import("axios").AxiosResponse<T, any>, D = any>(url: string, config?: import("axios").AxiosRequestConfig<D>) => Promise<R>;
post: <T_1 = any, R_1 = import("axios").AxiosResponse<T_1, any>, D_1 = any>(url: string, data?: D_1, config?: import("axios").AxiosRequestConfig<D_1>) => Promise<R_1>;
axios: import("axios").AxiosInstance;

@@ -25,4 +24,4 @@ CancelToken: import("axios").CancelTokenStatic;

rpcEndpoint: (blockchain: Blockchain, url: string, apiKey: string) => string;
get: <T = any, R = import("axios").AxiosResponse<T, any>, D = any>(url: string, config?: AxiosRequestConfig<D>) => Promise<R>;
post: <T_1 = any, R_1 = import("axios").AxiosResponse<T_1, any>, D_1 = any>(url: string, data?: D_1, config?: AxiosRequestConfig<D_1>) => Promise<R_1>;
get: <T = any, R = import("axios").AxiosResponse<T, any>, D = any>(url: string, config?: import("axios").AxiosRequestConfig<D>) => Promise<R>;
post: <T_1 = any, R_1 = import("axios").AxiosResponse<T_1, any>, D_1 = any>(url: string, data?: D_1, config?: import("axios").AxiosRequestConfig<D_1>) => Promise<R_1>;
axios: import("axios").AxiosInstance;

@@ -29,0 +28,0 @@ CancelToken: import("axios").CancelTokenStatic;

@@ -5,4 +5,4 @@ "use strict";

const tslib_1 = require("tslib");
const api_client_1 = require("@tatumio/api-client");
const axios_1 = tslib_1.__importDefault(require("axios"));
const api_client_1 = require("@tatumio/api-client");
const blockchain_common_1 = require("./blockchain.common");

@@ -39,2 +39,3 @@ const EndpointsMapping = {

BASE: 'base',
AVAX: 'avalanche',
};

@@ -41,0 +42,0 @@ const isWebWorker = typeof self === 'object' &&

@@ -30,7 +30,8 @@ export declare enum Blockchain {

CRO = "CRO",
BASE = "BASE"
BASE = "BASE",
AVAX = "AVAX"
}
export declare const EvmBasedBlockchains: Blockchain[];
export declare const BtcBasedBlockchains: readonly [Blockchain.BTC, Blockchain.LTC, Blockchain.DOGE, Blockchain.BCH];
export declare type BtcBasedBlockchain = typeof BtcBasedBlockchains[number];
export declare type BtcBasedBlockchain = (typeof BtcBasedBlockchains)[number];
export declare type EvmBasedBlockchain = Blockchain.ETH | Blockchain.CELO | Blockchain.BSC | Blockchain.HARMONY | Blockchain.POLYGON | Blockchain.KCS | Blockchain.KLAY | Blockchain.XDC | Blockchain.EON | Blockchain.CHILIZ | Blockchain.FLR | Blockchain.CRO | Blockchain.BASE;

@@ -35,2 +35,3 @@ "use strict";

Blockchain["BASE"] = "BASE";
Blockchain["AVAX"] = "AVAX";
})(Blockchain = exports.Blockchain || (exports.Blockchain = {}));

@@ -37,0 +38,0 @@ exports.EvmBasedBlockchains = [

@@ -0,3 +1,3 @@

import { Currency, NativeCurrency } from '@tatumio/api-client';
import { Blockchain } from './Blockchain';
import { Currency, NativeCurrency } from '@tatumio/api-client';
export declare const BlockchainCurrencyMapping: Record<Blockchain, NativeCurrency | {

@@ -4,0 +4,0 @@ nativeCurrency: NativeCurrency;

@@ -53,2 +53,3 @@ "use strict";

BASE: api_client_1.Currency.BASE,
AVAX: api_client_1.Currency.AVAX,
};

@@ -55,0 +56,0 @@ exports.CurrencyToBlockchainMapping = buildCurrencyBlockchainMapping();

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