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.4 to 0.10.0-alpha.5

4

build/blockchains/common/address.d.ts

@@ -12,1 +12,5 @@ import type { EVMAddress } from "../evm";

}
/**
* Vanilla blockchain address format
*/
export type Address = AddressByBlockchain[BlockchainEnum];

@@ -12,1 +12,5 @@ import type { EVMAddress } from "../evm";

}
/**
* Vanilla blockchain address format
*/
export type ContractAddress = ContractAddressByBlockchain[BlockchainEnum];
import type { EVMTransactionHash } from "../evm";
import type { FlowTransactionHash } from "../flow";
import type { BlockchainEnum } from "../union";

@@ -7,5 +8,9 @@ export interface HashByBlockchain extends Record<BlockchainEnum, string> {

[BlockchainEnum.IMMUTABLEX]: EVMTransactionHash;
[BlockchainEnum.FLOW]: string;
[BlockchainEnum.FLOW]: FlowTransactionHash;
[BlockchainEnum.TEZOS]: string;
[BlockchainEnum.SOLANA]: string;
}
/**
* Vanilla blockchain hash format
*/
export type Hash = HashByBlockchain[BlockchainEnum];

4

build/blockchains/union/contract-address/index.d.ts

@@ -10,5 +10,5 @@ import type { WithBlockchain } from "../enum";

*/
export type ContractAddress = WithBlockchain & {
export type UnionContractAddress = WithBlockchain & {
__IS_CONTRACT_ADDRESS__: true;
};
export declare function toContractAddress(value: string): ContractAddress;
export declare function toUnionContractAddress(value: string): UnionContractAddress;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toContractAddress = void 0;
exports.toUnionContractAddress = void 0;
const enum_1 = require("../enum");
function toContractAddress(value) {
function toUnionContractAddress(value) {
if (!(0, enum_1.isRealBlockchainSpecified)(value)) {

@@ -11,2 +11,2 @@ throw new Error(`Not a ContractAddress: ${value}`);

}
exports.toContractAddress = toContractAddress;
exports.toUnionContractAddress = toUnionContractAddress;
{
"name": "@rarible/types",
"version": "0.10.0-alpha.4",
"version": "0.10.0-alpha.5",
"keywords": [

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

},
"gitHead": "fb160e722010a183df9b3806aef0af6d82df1318"
"gitHead": "aa34275fd96eb2c9c83ff0af8a491d279e4c70d9"
}

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