@imtbl/sdk 0.27.9 → 0.27.11
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/blockchain_data.js +1 -1
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +19 -5
- package/dist/checkout_sdk.js +222 -159
- package/dist/checkout_widgets.d.ts +1 -1
- package/dist/checkout_widgets.js +2 -2
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +356 -264
- package/dist/index.d.ts +21 -6
- package/dist/index.js +340 -248
- package/dist/passport.d.ts +1 -0
- package/dist/passport.js +116 -87
- package/package.json +1 -1
package/dist/checkout_sdk.d.ts
CHANGED
|
@@ -566,7 +566,8 @@ interface ModuleConfiguration<T> {
|
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
/**
|
|
569
|
-
*
|
|
569
|
+
* Type representing an ERC20 token
|
|
570
|
+
* @property {string} type - The token type, used to discriminate between {@link ERC20} and {@link Native}
|
|
570
571
|
* @property {number} chainId - The chain ID
|
|
571
572
|
* @property {string} address - The token address
|
|
572
573
|
* @property {number} decimals - The token decimals
|
|
@@ -582,7 +583,8 @@ type ERC20 = {
|
|
|
582
583
|
name?: string;
|
|
583
584
|
};
|
|
584
585
|
/**
|
|
585
|
-
*
|
|
586
|
+
* Type representing a native token
|
|
587
|
+
* @property {string} type - The token type, used to discriminate between {@link ERC20} and {@link Native}
|
|
586
588
|
* @property {number} chainId - The chain ID
|
|
587
589
|
* @property {number} decimals - The token decimals
|
|
588
590
|
* @property {string | undefined} symbol - The token symbol or undefined if it is not available
|
|
@@ -595,13 +597,25 @@ type Native = {
|
|
|
595
597
|
symbol?: string;
|
|
596
598
|
name?: string;
|
|
597
599
|
};
|
|
598
|
-
|
|
600
|
+
/**
|
|
601
|
+
* Type representing a token, either an {@link ERC20} or {@link Native}
|
|
602
|
+
*/
|
|
603
|
+
type Coin = ERC20 | Native;
|
|
604
|
+
/**
|
|
605
|
+
* Type representing the overrides for the {@link Exchange} module
|
|
606
|
+
* @property {string} rpcURL - The RPC URL for the chain
|
|
607
|
+
* @property {ExchangeContracts} exchangeContracts - The DEX contract addresses
|
|
608
|
+
* @property {ERC20[]} commonRoutingTokens - The tokens used to find available pools for a swap
|
|
609
|
+
* @property {Coin} nativeToken - The native token of the chain
|
|
610
|
+
* @property {ERC20} wrappedNativeToken - The wrapped native token of the chain
|
|
611
|
+
*/
|
|
612
|
+
type ExchangeOverrides = {
|
|
599
613
|
rpcURL: string;
|
|
600
614
|
exchangeContracts: ExchangeContracts;
|
|
601
615
|
commonRoutingTokens: ERC20[];
|
|
602
|
-
nativeToken:
|
|
616
|
+
nativeToken: Coin;
|
|
603
617
|
wrappedNativeToken: ERC20;
|
|
604
|
-
}
|
|
618
|
+
};
|
|
605
619
|
|
|
606
620
|
/**
|
|
607
621
|
* @typedef {string} Address - Represents an Ethereum address.
|