@collabland/chain
Advanced tools
Comparing version 0.11.0 to 0.12.0
@@ -38,3 +38,2 @@ export * from './account-id'; | ||
export declare type CAIPIdType<T extends CAIPIdParams> = T extends AssetIdParams ? AssetId : T extends AssetTypeParams ? AssetType : T extends AccountIdParams ? AccountId : T extends ChainIdParams ? ChainId : T extends AssetNameParams ? AssetName : never; | ||
export declare type AssetParams = AssetIdParams | AssetTypeParams; | ||
export declare type Asset = AssetId | AssetType; |
@@ -27,3 +27,3 @@ /** | ||
/** | ||
* Chain id | ||
* Chain id parameters | ||
*/ | ||
@@ -35,3 +35,3 @@ export interface ChainIdParams { | ||
/** | ||
* Account id | ||
* Account id parameters | ||
*/ | ||
@@ -43,3 +43,3 @@ export interface AccountIdParams { | ||
/** | ||
* Asset name | ||
* Asset name parameters | ||
*/ | ||
@@ -51,3 +51,3 @@ export interface AssetNameParams { | ||
/** | ||
* Asset name and id | ||
* Asset name and id parameters | ||
*/ | ||
@@ -59,3 +59,3 @@ export interface AssetNameIdParams { | ||
/** | ||
* Asset type | ||
* Asset type parameters | ||
*/ | ||
@@ -67,3 +67,3 @@ export interface AssetTypeParams { | ||
/** | ||
* Asset id | ||
* Asset id parameters | ||
*/ | ||
@@ -73,2 +73,6 @@ export interface AssetIdParams extends AssetTypeParams, AssetNameIdParams { | ||
/** | ||
* Asset id or type parameters | ||
*/ | ||
export declare type AssetParams = AssetIdParams | AssetTypeParams; | ||
/** | ||
* Type guide for chain id | ||
@@ -75,0 +79,0 @@ * @param obj - Object that might be a chain id |
@@ -1,2 +0,2 @@ | ||
import { AccountId, AccountIdParams, AssetId, AssetIdParams, AssetType, AssetTypeParams, CAIPId, CAIPIdParams, CAIPIdParamsType, ChainId, ChainIdParams } from './caip'; | ||
import { AccountId, AccountIdParams, AssetId, AssetIdParams, AssetParams, AssetType, AssetTypeParams, CAIPId, CAIPIdParams, CAIPIdParamsType, ChainId, ChainIdParams } from './caip'; | ||
import { ChainOptions } from './types'; | ||
@@ -126,4 +126,8 @@ /** | ||
/** | ||
* Asset resources | ||
* Asset resource (type or id) | ||
*/ | ||
export declare type AssetResource = AssetTypeResource | AssetIdResource; | ||
/** | ||
* Asset resource id (type or id) | ||
*/ | ||
export declare type AssetResourceId = ChainResourceId<AssetParams>; |
{ | ||
"name": "@collabland/chain", | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"description": "CollabLand Ethereum Integration", | ||
@@ -34,3 +34,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@collabland/common": "^0.22.0", | ||
"@collabland/common": "^0.22.1", | ||
"tslib": "^2.0.0" | ||
@@ -47,3 +47,3 @@ }, | ||
"author": "Abridged, Inc.", | ||
"gitHead": "ad6d1039f419a915b1d37f8c4a7a7e11b34479a8" | ||
"gitHead": "aaf0c34dedb22df483bf743481e5d124d1717cff" | ||
} |
@@ -138,3 +138,2 @@ // Copyright Abridged, Inc. 2021. All Rights Reserved. | ||
export type AssetParams = AssetIdParams | AssetTypeParams; | ||
export type Asset = AssetId | AssetType; |
@@ -34,3 +34,3 @@ // Copyright Abridged, Inc. 2021. All Rights Reserved. | ||
/** | ||
* Chain id | ||
* Chain id parameters | ||
*/ | ||
@@ -43,3 +43,3 @@ export interface ChainIdParams { | ||
/** | ||
* Account id | ||
* Account id parameters | ||
*/ | ||
@@ -52,3 +52,3 @@ export interface AccountIdParams { | ||
/** | ||
* Asset name | ||
* Asset name parameters | ||
*/ | ||
@@ -61,3 +61,3 @@ export interface AssetNameParams { | ||
/** | ||
* Asset name and id | ||
* Asset name and id parameters | ||
*/ | ||
@@ -70,3 +70,3 @@ export interface AssetNameIdParams { | ||
/** | ||
* Asset type | ||
* Asset type parameters | ||
*/ | ||
@@ -79,3 +79,3 @@ export interface AssetTypeParams { | ||
/** | ||
* Asset id | ||
* Asset id parameters | ||
*/ | ||
@@ -85,2 +85,7 @@ export interface AssetIdParams extends AssetTypeParams, AssetNameIdParams {} | ||
/** | ||
* Asset id or type parameters | ||
*/ | ||
export type AssetParams = AssetIdParams | AssetTypeParams; | ||
/** | ||
* Type guide for chain id | ||
@@ -87,0 +92,0 @@ * @param obj - Object that might be a chain id |
@@ -13,2 +13,3 @@ // Copyright Abridged, Inc. 2021. All Rights Reserved. | ||
AssetIdParams, | ||
AssetParams, | ||
AssetType, | ||
@@ -301,4 +302,9 @@ AssetTypeParams, | ||
/** | ||
* Asset resources | ||
* Asset resource (type or id) | ||
*/ | ||
export type AssetResource = AssetTypeResource | AssetIdResource; | ||
/** | ||
* Asset resource id (type or id) | ||
*/ | ||
export type AssetResourceId = ChainResourceId<AssetParams>; |
Sorry, the diff of this file is not supported yet
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
124797
3285
Updated@collabland/common@^0.22.1