New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@defichain/jellyfish-address

Package Overview
Dependencies
Maintainers
2
Versions
278
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@defichain/jellyfish-address - npm Package Compare versions

Comparing version 0.43.0 to 0.44.0

dist/script/Base58Check.d.ts

6

dist/address.d.ts
import { Network } from '@defichain/jellyfish-network';
import { Script } from '@defichain/jellyfish-transaction';
export declare type AddressType = 'Unknown' | 'P2PKH' | 'P2SH' | 'P2WPKH' | 'P2WSH';
export declare type AddressTypeDeprecated = 'Unknown' | 'P2PKH' | 'P2SH' | 'P2WPKH' | 'P2WSH';
export declare type Validator = () => boolean;

@@ -8,6 +8,6 @@ export declare abstract class Address {

utf8String: string;
type: AddressType;
type: AddressTypeDeprecated;
valid: boolean;
validatorPassed: number;
constructor(network: Network, utf8String: string, valid: boolean, type: AddressType);
constructor(network: Network, utf8String: string, valid: boolean, type: AddressTypeDeprecated);
abstract validators(): Validator[];

@@ -14,0 +14,0 @@ abstract getScript(): Script;

import { Network } from '@defichain/jellyfish-network';
import { Address, AddressType, Validator } from './address';
import { Address, AddressTypeDeprecated, Validator } from './address';
export declare abstract class Base58Address extends Address {

@@ -8,3 +8,3 @@ static MIN_LENGTH: number;

static DATA_HEX_LENGTH: number;
constructor(network: Network, utf8String: string, hex: string, valid: boolean, type: AddressType);
constructor(network: Network, utf8String: string, hex: string, valid: boolean, type: AddressTypeDeprecated);
abstract getPrefix(): number;

@@ -11,0 +11,0 @@ validators(): Validator[];

import { Network } from '@defichain/jellyfish-network';
import { Address, AddressType, Validator } from './address';
import { Address, AddressTypeDeprecated, Validator } from './address';
export declare abstract class Bech32Address extends Address {
static MAX_LENGTH: number;
static MAX_HUMAN_READABLE_LENGTH: number;
constructor(network: Network, utf8String: string, valid: boolean, addressType: AddressType);
constructor(network: Network, utf8String: string, valid: boolean, addressType: AddressTypeDeprecated);
validators(): Validator[];

@@ -8,0 +8,0 @@ getHrp(): string;

@@ -14,2 +14,4 @@ import { NetworkName } from '@defichain/jellyfish-network';

* @returns DefiAddress or a child class
*
* @deprecated use fromAddress(address: string, network: NetworkName | string) instead
*/

@@ -21,8 +23,20 @@ declare function guess(address: string): Address;

* @returns DefiAddress or a child class
*
* @deprecated use fromAddress(address: string, network: NetworkName | string) instead
*/
declare function from<T extends Address>(net: NetworkName, address: string): T;
/**
* @deprecated use fromAddress(address: string, network: NetworkName | string) instead
*/
export declare const DeFiAddress: {
/**
* @deprecated use fromAddress(address: string, network: NetworkName | string) instead
*/
guess: typeof guess;
/**
* @deprecated use fromAddress(address: string, network: NetworkName | string) instead
*/
from: typeof from;
};
export * from './script';
//# sourceMappingURL=index.d.ts.map

@@ -33,2 +33,4 @@ "use strict";

* @returns DefiAddress or a child class
*
* @deprecated use fromAddress(address: string, network: NetworkName | string) instead
*/

@@ -50,2 +52,4 @@ function guess(address) {

* @returns DefiAddress or a child class
*
* @deprecated use fromAddress(address: string, network: NetworkName | string) instead
*/

@@ -84,6 +88,16 @@ function from(net, address) {

}
/**
* @deprecated use fromAddress(address: string, network: NetworkName | string) instead
*/
exports.DeFiAddress = {
/**
* @deprecated use fromAddress(address: string, network: NetworkName | string) instead
*/
guess,
/**
* @deprecated use fromAddress(address: string, network: NetworkName | string) instead
*/
from
};
__exportStar(require("./script"), exports);
//# sourceMappingURL=index.js.map
{
"private": false,
"name": "@defichain/jellyfish-address",
"version": "0.43.0",
"version": "0.44.0",
"description": "A collection of TypeScript + JavaScript tools and libraries for DeFi Blockchain developers to build decentralized finance for Bitcoin",

@@ -38,10 +38,12 @@ "keywords": [

"dependencies": {
"@defichain/jellyfish-crypto": "^0.43.0",
"@defichain/jellyfish-network": "^0.43.0",
"@defichain/jellyfish-transaction": "^0.43.0",
"@defichain/jellyfish-crypto": "^0.44.0",
"@defichain/jellyfish-network": "^0.44.0",
"@defichain/jellyfish-transaction": "^0.44.0",
"bech32": "^2.0.0",
"bs58": "^4.0.1"
},
"devDependencies": {
"@types/bech32": "^1.1.2",
"@types/bs58": "^4.0.1"
}
}

@@ -5,2 +5,2 @@ [![npm](https://img.shields.io/npm/v/@defichain/jellyfish-address)](https://www.npmjs.com/package/@defichain/jellyfish-address/v/latest)

DeFi Blockchain address type builder, parser, validator library.
All in one DeFiChain from script to address, address to script parser.

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

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