@xswap-link/sdk 0.9.6 → 0.9.7
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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.global.js +63 -63
- package/dist/index.js +9 -9
- package/dist/index.mjs +10 -10
- package/localTheme.ts +3 -0
- package/package.json +1 -1
- package/src/assets/icons/ChainlinkIcon.tsx +21 -0
- package/src/assets/icons/index.ts +1 -1
- package/src/components/PoweredBy/index.tsx +3 -18
- package/src/components/Swap/SwapView/SwapPanel/ChainPanel/ChainPicker/index.tsx +13 -97
- package/src/components/Swap/SwapView/SwapPanel/ChainPanel/index.tsx +3 -82
- package/src/components/Swap/SwapView/SwapPanel/TokenPanel/TokenPicker/TokenItem/index.tsx +8 -11
- package/src/components/Swap/SwapView/SwapPanel/TokenPanel/TokenPicker/index.tsx +0 -1
- package/src/context/SwapProvider.tsx +454 -300
- package/src/models/TokenData.ts +2 -0
- package/src/models/payloads/ModalIntegrationPayload.ts +1 -0
- package/src/utils/index.ts +30 -0
- package/src/utils/validation.ts +13 -26
- package/tailwind.config.js +2 -0
- package/test/context/SwapProvider.test.tsx +1 -0
- package/test/fixtures/supportedChains.mock.ts +7180 -22795
- package/src/assets/icons/ChainlinkCCIPIcon.tsx +0 -23
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -162,6 +162,7 @@ type ModalIntegrationThemeStyles = {
|
|
|
162
162
|
warningLight?: string;
|
|
163
163
|
errorDark?: string;
|
|
164
164
|
errorLight?: string;
|
|
165
|
+
chainlinkLogo?: string;
|
|
165
166
|
};
|
|
166
167
|
type ModalIntegrationStyles = Pick<ModalIntegrationThemeStyles, "mainAccentLight" | "mainAccentDark" | "textSecondary"> & {
|
|
167
168
|
width?: string;
|
|
@@ -295,6 +296,8 @@ type Chain = {
|
|
|
295
296
|
scanApiURL?: string;
|
|
296
297
|
defaultDstChain?: string;
|
|
297
298
|
disabledForDestination?: string[];
|
|
299
|
+
supportedDstForBridge?: string[];
|
|
300
|
+
supportedDstForSwap?: string[];
|
|
298
301
|
};
|
|
299
302
|
type Token = {
|
|
300
303
|
address: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ type ModalIntegrationThemeStyles = {
|
|
|
162
162
|
warningLight?: string;
|
|
163
163
|
errorDark?: string;
|
|
164
164
|
errorLight?: string;
|
|
165
|
+
chainlinkLogo?: string;
|
|
165
166
|
};
|
|
166
167
|
type ModalIntegrationStyles = Pick<ModalIntegrationThemeStyles, "mainAccentLight" | "mainAccentDark" | "textSecondary"> & {
|
|
167
168
|
width?: string;
|
|
@@ -295,6 +296,8 @@ type Chain = {
|
|
|
295
296
|
scanApiURL?: string;
|
|
296
297
|
defaultDstChain?: string;
|
|
297
298
|
disabledForDestination?: string[];
|
|
299
|
+
supportedDstForBridge?: string[];
|
|
300
|
+
supportedDstForSwap?: string[];
|
|
298
301
|
};
|
|
299
302
|
type Token = {
|
|
300
303
|
address: string;
|