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.26 to 0.10.0-alpha.28

build/blockchains/aptos/address/index.d.ts

2

build/blockchains/union/address/random.js

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

const enum_1 = require("../enum");
const aptos_1 = require("../../aptos");
const dictionary = {

@@ -15,2 +16,3 @@ [enum_1.BlockchainLayer1Enum.ETHEREUM]: evm_1.randomEVMAddress,

[enum_1.BlockchainLayer1Enum.TEZOS]: tezos_1.randomTezosAddress,
[enum_1.BlockchainLayer1Enum.APTOS]: aptos_1.randomAptosAddress,
};

@@ -17,0 +19,0 @@ function getRandomAddress(blockchain) {

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

const enum_1 = require("../enum");
const aptos_1 = require("../../aptos");
exports.addressValidators = {

@@ -15,2 +16,3 @@ [enum_1.BlockchainLayer1Enum.ETHEREUM]: evm_1.evmAddressValidator,

[enum_1.BlockchainLayer1Enum.TEZOS]: tezos_1.tezosAddressValidator,
[enum_1.BlockchainLayer1Enum.APTOS]: aptos_1.aptosAddressValidator,
};

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

const enum_1 = require("../enum");
const aptos_1 = require("../../aptos");
const dictionary = {

@@ -15,2 +16,3 @@ [enum_1.BlockchainLayer1Enum.ETHEREUM]: evm_1.randomEVMAddress,

[enum_1.BlockchainLayer1Enum.TEZOS]: tezos_1.randomTezosContractAddress,
[enum_1.BlockchainLayer1Enum.APTOS]: aptos_1.randomAptosAddress,
};

@@ -17,0 +19,0 @@ function getRandomContractAddress(blockchain) {

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

const enum_1 = require("../enum");
const aptos_1 = require("../../aptos");
exports.contractAddressValidators = {

@@ -15,2 +16,3 @@ [enum_1.BlockchainLayer1Enum.ETHEREUM]: evm_1.evmAddressValidator,

[enum_1.BlockchainLayer1Enum.TEZOS]: tezos_1.tezosContractAddressValidator,
[enum_1.BlockchainLayer1Enum.APTOS]: aptos_1.aptosAddressValidator,
};

12

build/blockchains/union/enum/domain.d.ts

@@ -5,3 +5,4 @@ export declare enum BlockchainLayer1Enum {

TEZOS = "TEZOS",
SOLANA = "SOLANA"
SOLANA = "SOLANA",
APTOS = "APTOS"
}

@@ -16,2 +17,3 @@ export declare const blockchainsLayer1: BlockchainLayer1Enum[];

SOLANA = "SOLANA",
APTOS = "APTOS",
ECLIPSE = "ECLIPSE",

@@ -27,6 +29,7 @@ MANTLE = "MANTLE",

CELO = "CELO",
XAI = "XAI"
XAI = "XAI",
CHILIZ = "CHILIZ"
}
export declare const blockchains: BlockchainEnum[];
export declare const evmBlockchains: readonly [BlockchainEnum.POLYGON, BlockchainEnum.IMMUTABLEX, BlockchainEnum.POLYGON, BlockchainEnum.MANTLE, BlockchainEnum.ZKSYNC, BlockchainEnum.RARI, BlockchainEnum.ASTARZKEVM, BlockchainEnum.BASE, BlockchainEnum.ARBITRUM, BlockchainEnum.LIGHTLINK, BlockchainEnum.CELO, BlockchainEnum.KROMA, BlockchainEnum.XAI];
export declare const evmBlockchains: readonly [BlockchainEnum.POLYGON, BlockchainEnum.IMMUTABLEX, BlockchainEnum.POLYGON, BlockchainEnum.MANTLE, BlockchainEnum.ZKSYNC, BlockchainEnum.RARI, BlockchainEnum.ASTARZKEVM, BlockchainEnum.BASE, BlockchainEnum.ARBITRUM, BlockchainEnum.LIGHTLINK, BlockchainEnum.CELO, BlockchainEnum.KROMA, BlockchainEnum.XAI, BlockchainEnum.CHILIZ];
export type EVMBlockchain = (typeof evmBlockchains)[number];

@@ -47,2 +50,3 @@ export declare function isEVMBlockchain(blockchain: string): blockchain is EVMBlockchain;

readonly XAI: BlockchainLayer1Enum.ETHEREUM;
readonly CHILIZ: BlockchainLayer1Enum.ETHEREUM;
readonly BASE: BlockchainLayer1Enum.ETHEREUM;

@@ -52,2 +56,3 @@ readonly FLOW: BlockchainLayer1Enum.FLOW;

readonly ECLIPSE: BlockchainLayer1Enum.SOLANA;
readonly APTOS: BlockchainLayer1Enum.APTOS;
readonly TEZOS: BlockchainLayer1Enum.TEZOS;

@@ -61,4 +66,5 @@ };

[BlockchainLayer1Enum.TEZOS]: BlockchainEnum.TEZOS;
[BlockchainLayer1Enum.APTOS]: BlockchainEnum.APTOS;
}
export type WithLayer1Blockchain<T extends BlockchainLayer1Enum = BlockchainLayer1Enum, Base extends string = string> = `${T}:${Base}`;
export type WithBlockchain<T extends BlockchainEnum = BlockchainEnum, Base extends string = string> = `${T}:${Base}`;

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

BlockchainLayer1Enum["SOLANA"] = "SOLANA";
BlockchainLayer1Enum["APTOS"] = "APTOS";
})(BlockchainLayer1Enum = exports.BlockchainLayer1Enum || (exports.BlockchainLayer1Enum = {}));

@@ -21,2 +22,3 @@ exports.blockchainsLayer1 = Object.values(BlockchainLayer1Enum);

BlockchainEnum["SOLANA"] = "SOLANA";
BlockchainEnum["APTOS"] = "APTOS";
BlockchainEnum["ECLIPSE"] = "ECLIPSE";

@@ -33,2 +35,3 @@ BlockchainEnum["MANTLE"] = "MANTLE";

BlockchainEnum["XAI"] = "XAI";
BlockchainEnum["CHILIZ"] = "CHILIZ";
})(BlockchainEnum = exports.BlockchainEnum || (exports.BlockchainEnum = {}));

@@ -50,2 +53,3 @@ exports.blockchains = Object.values(BlockchainEnum);

BlockchainEnum.XAI,
BlockchainEnum.CHILIZ,
];

@@ -69,2 +73,3 @@ function isEVMBlockchain(blockchain) {

[BlockchainEnum.XAI]: BlockchainLayer1Enum.ETHEREUM,
[BlockchainEnum.CHILIZ]: BlockchainLayer1Enum.ETHEREUM,
[BlockchainEnum.BASE]: BlockchainLayer1Enum.ETHEREUM,

@@ -74,3 +79,4 @@ [BlockchainEnum.FLOW]: BlockchainLayer1Enum.FLOW,

[BlockchainEnum.ECLIPSE]: BlockchainLayer1Enum.SOLANA,
[BlockchainEnum.APTOS]: BlockchainLayer1Enum.APTOS,
[BlockchainEnum.TEZOS]: BlockchainLayer1Enum.TEZOS,
};

@@ -6,2 +6,3 @@ import { randomEVMAddress } from "../../evm";

import { BlockchainLayer1Enum } from "../enum";
import { randomAptosAddress } from "../../aptos";
const dictionary = {

@@ -12,2 +13,3 @@ [BlockchainLayer1Enum.ETHEREUM]: randomEVMAddress,

[BlockchainLayer1Enum.TEZOS]: randomTezosAddress,
[BlockchainLayer1Enum.APTOS]: randomAptosAddress,
};

@@ -14,0 +16,0 @@ export function getRandomAddress(blockchain) {

@@ -6,2 +6,3 @@ import { evmAddressValidator } from "../../evm";

import { BlockchainLayer1Enum } from "../enum";
import { aptosAddressValidator } from "../../aptos";
export const addressValidators = {

@@ -12,2 +13,3 @@ [BlockchainLayer1Enum.ETHEREUM]: evmAddressValidator,

[BlockchainLayer1Enum.TEZOS]: tezosAddressValidator,
[BlockchainLayer1Enum.APTOS]: aptosAddressValidator,
};

@@ -6,2 +6,3 @@ import { randomEVMAddress } from "../../evm";

import { BlockchainLayer1Enum } from "../enum";
import { randomAptosAddress } from "../../aptos";
const dictionary = {

@@ -12,2 +13,3 @@ [BlockchainLayer1Enum.ETHEREUM]: randomEVMAddress,

[BlockchainLayer1Enum.TEZOS]: randomTezosContractAddress,
[BlockchainLayer1Enum.APTOS]: randomAptosAddress,
};

@@ -14,0 +16,0 @@ export function getRandomContractAddress(blockchain) {

@@ -6,2 +6,3 @@ import { evmAddressValidator } from "../../evm";

import { BlockchainLayer1Enum } from "../enum";
import { aptosAddressValidator } from "../../aptos";
export const contractAddressValidators = {

@@ -12,2 +13,3 @@ [BlockchainLayer1Enum.ETHEREUM]: evmAddressValidator,

[BlockchainLayer1Enum.TEZOS]: tezosContractAddressValidator,
[BlockchainLayer1Enum.APTOS]: aptosAddressValidator,
};

@@ -5,3 +5,4 @@ export declare enum BlockchainLayer1Enum {

TEZOS = "TEZOS",
SOLANA = "SOLANA"
SOLANA = "SOLANA",
APTOS = "APTOS"
}

@@ -16,2 +17,3 @@ export declare const blockchainsLayer1: BlockchainLayer1Enum[];

SOLANA = "SOLANA",
APTOS = "APTOS",
ECLIPSE = "ECLIPSE",

@@ -27,6 +29,7 @@ MANTLE = "MANTLE",

CELO = "CELO",
XAI = "XAI"
XAI = "XAI",
CHILIZ = "CHILIZ"
}
export declare const blockchains: BlockchainEnum[];
export declare const evmBlockchains: readonly [BlockchainEnum.POLYGON, BlockchainEnum.IMMUTABLEX, BlockchainEnum.POLYGON, BlockchainEnum.MANTLE, BlockchainEnum.ZKSYNC, BlockchainEnum.RARI, BlockchainEnum.ASTARZKEVM, BlockchainEnum.BASE, BlockchainEnum.ARBITRUM, BlockchainEnum.LIGHTLINK, BlockchainEnum.CELO, BlockchainEnum.KROMA, BlockchainEnum.XAI];
export declare const evmBlockchains: readonly [BlockchainEnum.POLYGON, BlockchainEnum.IMMUTABLEX, BlockchainEnum.POLYGON, BlockchainEnum.MANTLE, BlockchainEnum.ZKSYNC, BlockchainEnum.RARI, BlockchainEnum.ASTARZKEVM, BlockchainEnum.BASE, BlockchainEnum.ARBITRUM, BlockchainEnum.LIGHTLINK, BlockchainEnum.CELO, BlockchainEnum.KROMA, BlockchainEnum.XAI, BlockchainEnum.CHILIZ];
export type EVMBlockchain = (typeof evmBlockchains)[number];

@@ -47,2 +50,3 @@ export declare function isEVMBlockchain(blockchain: string): blockchain is EVMBlockchain;

readonly XAI: BlockchainLayer1Enum.ETHEREUM;
readonly CHILIZ: BlockchainLayer1Enum.ETHEREUM;
readonly BASE: BlockchainLayer1Enum.ETHEREUM;

@@ -52,2 +56,3 @@ readonly FLOW: BlockchainLayer1Enum.FLOW;

readonly ECLIPSE: BlockchainLayer1Enum.SOLANA;
readonly APTOS: BlockchainLayer1Enum.APTOS;
readonly TEZOS: BlockchainLayer1Enum.TEZOS;

@@ -61,4 +66,5 @@ };

[BlockchainLayer1Enum.TEZOS]: BlockchainEnum.TEZOS;
[BlockchainLayer1Enum.APTOS]: BlockchainEnum.APTOS;
}
export type WithLayer1Blockchain<T extends BlockchainLayer1Enum = BlockchainLayer1Enum, Base extends string = string> = `${T}:${Base}`;
export type WithBlockchain<T extends BlockchainEnum = BlockchainEnum, Base extends string = string> = `${T}:${Base}`;

@@ -7,2 +7,3 @@ export var BlockchainLayer1Enum;

BlockchainLayer1Enum["SOLANA"] = "SOLANA";
BlockchainLayer1Enum["APTOS"] = "APTOS";
})(BlockchainLayer1Enum || (BlockchainLayer1Enum = {}));

@@ -18,2 +19,3 @@ export const blockchainsLayer1 = Object.values(BlockchainLayer1Enum);

BlockchainEnum["SOLANA"] = "SOLANA";
BlockchainEnum["APTOS"] = "APTOS";
BlockchainEnum["ECLIPSE"] = "ECLIPSE";

@@ -30,2 +32,3 @@ BlockchainEnum["MANTLE"] = "MANTLE";

BlockchainEnum["XAI"] = "XAI";
BlockchainEnum["CHILIZ"] = "CHILIZ";
})(BlockchainEnum || (BlockchainEnum = {}));

@@ -47,2 +50,3 @@ export const blockchains = Object.values(BlockchainEnum);

BlockchainEnum.XAI,
BlockchainEnum.CHILIZ,
];

@@ -65,2 +69,3 @@ export function isEVMBlockchain(blockchain) {

[BlockchainEnum.XAI]: BlockchainLayer1Enum.ETHEREUM,
[BlockchainEnum.CHILIZ]: BlockchainLayer1Enum.ETHEREUM,
[BlockchainEnum.BASE]: BlockchainLayer1Enum.ETHEREUM,

@@ -70,3 +75,4 @@ [BlockchainEnum.FLOW]: BlockchainLayer1Enum.FLOW,

[BlockchainEnum.ECLIPSE]: BlockchainLayer1Enum.SOLANA,
[BlockchainEnum.APTOS]: BlockchainLayer1Enum.APTOS,
[BlockchainEnum.TEZOS]: BlockchainLayer1Enum.TEZOS,
};
{
"name": "@rarible/types",
"version": "0.10.0-alpha.26",
"version": "0.10.0-alpha.28",
"keywords": [

@@ -27,3 +27,3 @@ "rarible",

"dependencies": {
"@rarible/utils": "^0.10.0-alpha.26"
"@rarible/utils": "^0.10.0-alpha.28"
},

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

},
"gitHead": "3395dbf164e7af31016ee0b314eb0265cf6bef94"
"gitHead": "a656d1007f4aa0ff6f9384ce25d8cd52f6d3a99c"
}

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