@rarible/types
Advanced tools
Comparing version 0.10.0-alpha.4 to 0.10.0-alpha.5
@@ -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]; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59369
681