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

@rarible/types

Package Overview
Dependencies
Maintainers
0
Versions
92
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-beta.0 to 0.10.0-beta.1

2

build/blockchains/common/address.d.ts

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { BlockchainEnum, BlockchainLayer1Enum, L1BlockchainByBlockchain } from "../union/enum/domain.js";

@@ -3,0 +3,0 @@ import type { Layer1ful } from "./common.js";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidAddressError = void 0;
const index_1 = require("@rarible/utils/error/custom/index");
class InvalidAddressError extends index_1.CustomError {
const utils_1 = require("@rarible/utils");
class InvalidAddressError extends utils_1.CustomError {
constructor(blockchain, value) {

@@ -7,0 +7,0 @@ super(`Invalid address ${value} for blockchain ${blockchain}`);

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { BlockchainEnum, BlockchainLayer1Enum, L1BlockchainByBlockchain } from "../union/enum/domain.js";

@@ -3,0 +3,0 @@ import type { AbstractAddress } from "./address.js";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidContractAddressError = void 0;
const index_1 = require("@rarible/utils/error/custom/index");
class InvalidContractAddressError extends index_1.CustomError {
const utils_1 = require("@rarible/utils");
class InvalidContractAddressError extends utils_1.CustomError {
constructor(blockchain, value) {

@@ -7,0 +7,0 @@ super(`Invalid contract address ${value} for blockchain ${blockchain}`);

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { BlockchainEnum, BlockchainLayer1Enum, L1BlockchainByBlockchain } from "../union/enum/index.js";

@@ -3,0 +3,0 @@ import type { Layer1ful } from "./common.js";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidTransactionHashError = void 0;
const index_1 = require("@rarible/utils/error/custom/index");
class InvalidTransactionHashError extends index_1.CustomError {
const utils_1 = require("@rarible/utils");
class InvalidTransactionHashError extends utils_1.CustomError {
constructor(blockchain, value) {

@@ -7,0 +7,0 @@ super(`Not valid transaction hash ${value} for blockchain ${blockchain}`);

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { AbstractAddress } from "../../common/address.js";

@@ -3,0 +3,0 @@ import type { BlockchainEnum, L1BlockchainByBlockchain, WithBlockchain } from "../enum/domain.js";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidUnionAddressError = exports.isUnionAddress = exports.toUnionAddressSafe = exports.toUnionAddress = void 0;
const index_1 = require("@rarible/utils/error/custom/index");
const utils_1 = require("@rarible/utils");
const utils_js_1 = require("../enum/utils.js");

@@ -42,3 +42,3 @@ const validators_js_1 = require("./validators.js");

exports.isUnionAddress = isUnionAddress;
class InvalidUnionAddressError extends index_1.CustomError {
class InvalidUnionAddressError extends utils_1.CustomError {
constructor(address) {

@@ -45,0 +45,0 @@ super(`Not a UnionAddress: ${address}`);

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { AbstractContractAddress } from "../../common/contract-address.js";

@@ -3,0 +3,0 @@ import type { BlockchainEnum, L1BlockchainByBlockchain, WithBlockchain } from "../enum/domain.js";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidUnionContractAddressError = exports.isUnionContractAddress = exports.toUnionContractAddressSafe = exports.toUnionContractAddress = void 0;
const index_1 = require("@rarible/utils/error/custom/index");
const utils_1 = require("@rarible/utils");
const utils_js_1 = require("../enum/utils.js");

@@ -30,3 +30,3 @@ const validators_js_1 = require("./validators.js");

exports.isUnionContractAddress = isUnionContractAddress;
class InvalidUnionContractAddressError extends index_1.CustomError {
class InvalidUnionContractAddressError extends utils_1.CustomError {
constructor(address) {

@@ -33,0 +33,0 @@ super(`Not a valid union contract address: ${address}`);

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { BlockchainEnum, BlockchainLayer1Enum, L1BlockchainByBlockchain, WithBlockchain, WithLayer1Blockchain } from "./domain.js";

@@ -3,0 +3,0 @@ export declare const withLayer1BlockchainRegExp: RegExp;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BlockchainParseError = exports.parseBlockchainSafe = exports.parseBlockchain = exports.toLayerOneBlockchain = exports.withBlockchain = exports.isRealBlockchainSpecified = exports.withBlockchainRegExp = exports.withLayer1Blockchain = exports.isBlockchainSpecified = exports.withLayer1BlockchainRegExp = void 0;
const index_1 = require("@rarible/utils/error/custom/index");
const utils_1 = require("@rarible/utils");
const domain_js_1 = require("./domain.js");

@@ -45,3 +45,3 @@ exports.withLayer1BlockchainRegExp = new RegExp(`^(${domain_js_1.blockchainsLayer1.join("|")}):(.*?)$`);

exports.parseBlockchainSafe = parseBlockchainSafe;
class BlockchainParseError extends index_1.CustomError {
class BlockchainParseError extends utils_1.CustomError {
constructor(value) {

@@ -48,0 +48,0 @@ super(`Can't parse blockchain from value ${value}`);

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { BlockchainEnum, BlockchainLayer1Enum, L1BlockchainByBlockchain } from "../union/enum/domain.js";

@@ -3,0 +3,0 @@ import type { Layer1ful } from "./common.js";

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
export class InvalidAddressError extends CustomError {

@@ -3,0 +3,0 @@ constructor(blockchain, value) {

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { BlockchainEnum, BlockchainLayer1Enum, L1BlockchainByBlockchain } from "../union/enum/domain.js";

@@ -3,0 +3,0 @@ import type { AbstractAddress } from "./address.js";

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
export class InvalidContractAddressError extends CustomError {

@@ -3,0 +3,0 @@ constructor(blockchain, value) {

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { BlockchainEnum, BlockchainLayer1Enum, L1BlockchainByBlockchain } from "../union/enum/index.js";

@@ -3,0 +3,0 @@ import type { Layer1ful } from "./common.js";

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
export class InvalidTransactionHashError extends CustomError {

@@ -3,0 +3,0 @@ constructor(blockchain, value) {

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { AbstractAddress } from "../../common/address.js";

@@ -3,0 +3,0 @@ import type { BlockchainEnum, L1BlockchainByBlockchain, WithBlockchain } from "../enum/domain.js";

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import { parseBlockchain, parseBlockchainSafe, toLayerOneBlockchain, withLayer1Blockchain } from "../enum/utils.js";

@@ -3,0 +3,0 @@ import { addressValidators } from "./validators.js";

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { AbstractContractAddress } from "../../common/contract-address.js";

@@ -3,0 +3,0 @@ import type { BlockchainEnum, L1BlockchainByBlockchain, WithBlockchain } from "../enum/domain.js";

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import { toLayerOneBlockchain, parseBlockchainSafe } from "../enum/utils.js";

@@ -3,0 +3,0 @@ import { contractAddressValidators } from "./validators.js";

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import type { BlockchainEnum, BlockchainLayer1Enum, L1BlockchainByBlockchain, WithBlockchain, WithLayer1Blockchain } from "./domain.js";

@@ -3,0 +3,0 @@ export declare const withLayer1BlockchainRegExp: RegExp;

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

import { CustomError } from "@rarible/utils/error/custom/index";
import { CustomError } from "@rarible/utils";
import { L1BlockchainByBlockchainDictionary, blockchains, blockchainsLayer1 } from "./domain.js";

@@ -3,0 +3,0 @@ export const withLayer1BlockchainRegExp = new RegExp(`^(${blockchainsLayer1.join("|")}):(.*?)$`);

{
"name": "@rarible/types",
"version": "0.10.0-beta.0",
"version": "0.10.0-beta.1",
"keywords": [

@@ -54,3 +54,3 @@ "rarible",

"dependencies": {
"@rarible/utils": "^0.10.0-beta.0"
"@rarible/utils": "^0.10.0-beta.1"
},

@@ -70,3 +70,3 @@ "peerDependencies": {

},
"gitHead": "eaacb2983b489e4c9d43da1006937b148574c74f"
"gitHead": "eaf4218958c50e3d245769cf9ab8efeba721bf00"
}

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