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

@collabland/chain

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@collabland/chain - npm Package Compare versions

Comparing version 0.11.0 to 0.12.0

1

dist/caip/index.d.ts

@@ -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;

16

dist/caip/types.d.ts

@@ -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

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