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

@rarible/types

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rarible/types - npm Package Compare versions

Comparing version 0.10.0-alpha.6 to 0.10.0-alpha.7

build/address.d.ts

6

build/big-number.d.ts
import type { BigNumberLike } from "./common/big-number";
import { toBigNumberLike } from "./common/big-number";
/**
* @deprecated will be removed in future.
* @deprecated will be replaced in 0.11.0.
* Please use `import { BigNumberLike } from "@rarible/types"`

@@ -9,3 +9,3 @@ */

/**
* @deprecated will be removed in future
* @deprecated will be replaced in 0.11.0.
* Please use `import { toBigNumberLike } from "@rarible/types"`

@@ -15,4 +15,4 @@ */

/**
* @deprecated will be removed in future
* @deprecated will be removed in 0.11.0
*/
export declare const ZERO_NUMBER: BigNumberLike;

@@ -6,3 +6,3 @@ "use strict";

/**
* @deprecated will be removed in future
* @deprecated will be replaced in 0.11.0.
* Please use `import { toBigNumberLike } from "@rarible/types"`

@@ -12,4 +12,4 @@ */

/**
* @deprecated will be removed in future
* @deprecated will be removed in 0.11.0
*/
exports.ZERO_NUMBER = (0, exports.toBigNumber)("0");

@@ -15,2 +15,2 @@ import type { EVMAddress } from "../evm";

*/
export type Address = AddressByBlockchain[BlockchainEnum];
export type BlockchainAddress = AddressByBlockchain[BlockchainEnum];

@@ -15,2 +15,2 @@ import type { EVMAddress } from "../evm";

*/
export type ContractAddress = ContractAddressByBlockchain[BlockchainEnum];
export type BlockchainContractAddress = ContractAddressByBlockchain[BlockchainEnum];

@@ -15,2 +15,2 @@ import type { EVMTransactionHash } from "../evm";

*/
export type Hash = HashByBlockchain[BlockchainEnum];
export type BlockchainTransactionHash = HashByBlockchain[BlockchainEnum];

@@ -10,3 +10,3 @@ export type EVMAddress = string & {

export declare function toEVMAddressSafe(raw: string): EVMAddress | undefined;
export declare const ZERO_ADDRESS: EVMAddress;
export declare function randomAddress(): EVMAddress;
export declare const EVM_ZERO_ADDRESS: EVMAddress;
export declare function randomEVMAddress(): EVMAddress;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.randomAddress = exports.ZERO_ADDRESS = exports.toEVMAddressSafe = exports.toEVMAddress = void 0;
exports.randomEVMAddress = exports.EVM_ZERO_ADDRESS = exports.toEVMAddressSafe = exports.toEVMAddress = void 0;
const binary_1 = require("../../../common/binary");

@@ -35,6 +35,6 @@ /**

exports.toEVMAddressSafe = toEVMAddressSafe;
exports.ZERO_ADDRESS = toEVMAddress("0x0000000000000000000000000000000000000000");
function randomAddress() {
exports.EVM_ZERO_ADDRESS = toEVMAddress("0x0000000000000000000000000000000000000000");
function randomEVMAddress() {
return toEVMAddress((0, binary_1.randomBinary)(20));
}
exports.randomAddress = randomAddress;
exports.randomEVMAddress = randomEVMAddress;

@@ -5,1 +5,3 @@ export * from "./api";

export * from "./big-number";
export * from "./contract-address";
export * from "./address";

@@ -7,2 +7,5 @@ "use strict";

tslib_1.__exportStar(require("./blockchains"), exports);
// @deprecated modules
tslib_1.__exportStar(require("./big-number"), exports);
tslib_1.__exportStar(require("./contract-address"), exports);
tslib_1.__exportStar(require("./address"), exports);
{
"name": "@rarible/types",
"version": "0.10.0-alpha.6",
"version": "0.10.0-alpha.7",
"keywords": [

@@ -32,3 +32,3 @@ "rarible",

},
"gitHead": "009ba3a898f3e85d6f84efdb9de3a3462b88d8d3"
"gitHead": "5b14d0a61831e6e069e5b39d8185cfd606d66293"
}

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