@keplr-wallet/types
Advanced tools
Comparing version 0.8.0 to 0.8.2
@@ -29,5 +29,22 @@ /** | ||
/** | ||
* IBCCurrency is the currency that is sent from the other chain via IBC. | ||
* This will be handled as similar to the native currency. | ||
* But, this has more information abounr IBC channel and paths. | ||
*/ | ||
export interface IBCCurrency extends Currency { | ||
readonly paths: { | ||
portId: string; | ||
channelId: string; | ||
}[]; | ||
/** | ||
* The chain id that the currency is from. | ||
* If that chain is unknown, this will be undefined. | ||
*/ | ||
readonly originChainId: string | undefined; | ||
readonly originCurrency: Currency | undefined; | ||
} | ||
/** | ||
* Any type of currency that Kepler applications can support. | ||
*/ | ||
export declare type AppCurrency = Currency | CW20Currency | Secret20Currency; | ||
export declare type AppCurrency = Currency | CW20Currency | Secret20Currency | IBCCurrency; | ||
export interface FiatCurrency { | ||
@@ -34,0 +51,0 @@ readonly currency: string; |
{ | ||
"name": "@keplr-wallet/types", | ||
"version": "0.8.0", | ||
"version": "0.8.2", | ||
"main": "build/index.js", | ||
@@ -29,3 +29,3 @@ "author": "chainapsis", | ||
}, | ||
"gitHead": "88359c7d49f32cc3a294575c7767c43b369ee218" | ||
"gitHead": "2ef99c3ee03b7072189f61f81e11d0ccfe10e07f" | ||
} |
@@ -32,5 +32,27 @@ /** | ||
/** | ||
* IBCCurrency is the currency that is sent from the other chain via IBC. | ||
* This will be handled as similar to the native currency. | ||
* But, this has more information abounr IBC channel and paths. | ||
*/ | ||
export interface IBCCurrency extends Currency { | ||
readonly paths: { | ||
portId: string; | ||
channelId: string; | ||
}[]; | ||
/** | ||
* The chain id that the currency is from. | ||
* If that chain is unknown, this will be undefined. | ||
*/ | ||
readonly originChainId: string | undefined; | ||
readonly originCurrency: Currency | undefined; | ||
} | ||
/** | ||
* Any type of currency that Kepler applications can support. | ||
*/ | ||
export type AppCurrency = Currency | CW20Currency | Secret20Currency; | ||
export type AppCurrency = | ||
| Currency | ||
| CW20Currency | ||
| Secret20Currency | ||
| IBCCurrency; | ||
@@ -37,0 +59,0 @@ export interface FiatCurrency { |
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
29186
437