@unifold/core 0.1.57 → 0.1.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- type ChainType = 'ethereum' | 'solana' | 'bitcoin' | 'algorand' | 'xrpl';
1
+ type ChainType = 'ethereum' | 'solana' | 'bitcoin' | 'algorand' | 'xrpl' | 'cardano';
2
2
 
3
3
  declare function setApiConfig(config: {
4
4
  baseUrl?: string;
@@ -24,7 +24,7 @@ declare function getIconUrl(iconPath: string): string;
24
24
  declare function getIconUrlWithCdn(iconPath: string, assetCdnUrl?: string): string;
25
25
  interface Wallet {
26
26
  id: string;
27
- chain_type: "ethereum" | "solana" | "bitcoin" | "algorand" | "xrpl";
27
+ chain_type: "ethereum" | "solana" | "bitcoin" | "algorand" | "xrpl" | "cardano";
28
28
  address_type: string | null;
29
29
  address: string;
30
30
  destination_chain_type: string;
@@ -81,7 +81,7 @@ declare function getDepositAddress(params: GetExistingDepositAddressRequest, pub
81
81
  /**
82
82
  * Get wallet address for a specific chain type
83
83
  */
84
- declare function getWalletByChainType(wallets: Wallet[], chainType: "ethereum" | "solana" | "bitcoin" | "algorand" | "xrpl"): Wallet | undefined;
84
+ declare function getWalletByChainType(wallets: Wallet[], chainType: "ethereum" | "solana" | "bitcoin" | "algorand" | "xrpl" | "cardano"): Wallet | undefined;
85
85
  interface AutoSwapRequest {
86
86
  wallet_id: string;
87
87
  origin_currency: string;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- type ChainType = 'ethereum' | 'solana' | 'bitcoin' | 'algorand' | 'xrpl';
1
+ type ChainType = 'ethereum' | 'solana' | 'bitcoin' | 'algorand' | 'xrpl' | 'cardano';
2
2
 
3
3
  declare function setApiConfig(config: {
4
4
  baseUrl?: string;
@@ -24,7 +24,7 @@ declare function getIconUrl(iconPath: string): string;
24
24
  declare function getIconUrlWithCdn(iconPath: string, assetCdnUrl?: string): string;
25
25
  interface Wallet {
26
26
  id: string;
27
- chain_type: "ethereum" | "solana" | "bitcoin" | "algorand" | "xrpl";
27
+ chain_type: "ethereum" | "solana" | "bitcoin" | "algorand" | "xrpl" | "cardano";
28
28
  address_type: string | null;
29
29
  address: string;
30
30
  destination_chain_type: string;
@@ -81,7 +81,7 @@ declare function getDepositAddress(params: GetExistingDepositAddressRequest, pub
81
81
  /**
82
82
  * Get wallet address for a specific chain type
83
83
  */
84
- declare function getWalletByChainType(wallets: Wallet[], chainType: "ethereum" | "solana" | "bitcoin" | "algorand" | "xrpl"): Wallet | undefined;
84
+ declare function getWalletByChainType(wallets: Wallet[], chainType: "ethereum" | "solana" | "bitcoin" | "algorand" | "xrpl" | "cardano"): Wallet | undefined;
85
85
  interface AutoSwapRequest {
86
86
  wallet_id: string;
87
87
  origin_currency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifold/core",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "description": "Unifold Core SDK - Core types, API client, and business logic",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",