@sodax/sdk 2.1.0-rc.8 → 2.1.0
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.cjs +11 -15
- package/dist/index.mjs +11 -15
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -4727,21 +4727,17 @@ var spokeHooks = {
|
|
|
4727
4727
|
supportedTokens: [spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.USDC.address]
|
|
4728
4728
|
// USDC on HyperEVM
|
|
4729
4729
|
}
|
|
4730
|
+
],
|
|
4731
|
+
[ChainKeys.ETHEREUM_MAINNET]: [
|
|
4732
|
+
{
|
|
4733
|
+
kind: HookKind.FLINT_DEPOSIT,
|
|
4734
|
+
// FlintDepositHook, deployed 2026-08-10 (icon-project/sodax-contracts#693). USDC only: any
|
|
4735
|
+
// other delivered token is handed to the recipient as a plain transfer by the hook itself.
|
|
4736
|
+
address: "0xDf376dE34e9f1474A025Dfe411b7EB5541793C5d",
|
|
4737
|
+
supportedTokens: [spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDC.address]
|
|
4738
|
+
// USDC on Ethereum
|
|
4739
|
+
}
|
|
4730
4740
|
]
|
|
4731
|
-
// HookKind.FLINT_DEPOSIT is not registered yet: FlintDepositHook is not deployed to Ethereum
|
|
4732
|
-
// mainnet (icon-project/sodax-contracts#693). Registering it with a placeholder address would
|
|
4733
|
-
// route real intent output to that address, so the entry lands with the deployment:
|
|
4734
|
-
//
|
|
4735
|
-
// [ChainKeys.ETHEREUM_MAINNET]: [
|
|
4736
|
-
// {
|
|
4737
|
-
// kind: HookKind.FLINT_DEPOSIT,
|
|
4738
|
-
// address: '0x…',
|
|
4739
|
-
// supportedTokens: [spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDC.address],
|
|
4740
|
-
// },
|
|
4741
|
-
// ],
|
|
4742
|
-
//
|
|
4743
|
-
// Until then `getSpokeHook` returns undefined and `resolveDeliveryHook` throws, which is the
|
|
4744
|
-
// correct behaviour for a hook that does not exist on chain.
|
|
4745
4741
|
};
|
|
4746
4742
|
var getSpokeHook = (chainKey, kind) => spokeHooks[chainKey]?.find((h) => h.kind === kind);
|
|
4747
4743
|
var getSpokeHooks = (chainKey) => spokeHooks[chainKey] ?? [];
|
|
@@ -4890,7 +4886,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
|
|
|
4890
4886
|
}
|
|
4891
4887
|
|
|
4892
4888
|
// ../types/dist/index.js
|
|
4893
|
-
var CONFIG_VERSION =
|
|
4889
|
+
var CONFIG_VERSION = 230;
|
|
4894
4890
|
|
|
4895
4891
|
// src/shared/utils/resolveTimeoutMs.ts
|
|
4896
4892
|
function resolveTimeoutMs(timeout, fallbackMs) {
|
package/dist/index.mjs
CHANGED
|
@@ -4699,21 +4699,17 @@ var spokeHooks = {
|
|
|
4699
4699
|
supportedTokens: [spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.USDC.address]
|
|
4700
4700
|
// USDC on HyperEVM
|
|
4701
4701
|
}
|
|
4702
|
+
],
|
|
4703
|
+
[ChainKeys.ETHEREUM_MAINNET]: [
|
|
4704
|
+
{
|
|
4705
|
+
kind: HookKind.FLINT_DEPOSIT,
|
|
4706
|
+
// FlintDepositHook, deployed 2026-08-10 (icon-project/sodax-contracts#693). USDC only: any
|
|
4707
|
+
// other delivered token is handed to the recipient as a plain transfer by the hook itself.
|
|
4708
|
+
address: "0xDf376dE34e9f1474A025Dfe411b7EB5541793C5d",
|
|
4709
|
+
supportedTokens: [spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDC.address]
|
|
4710
|
+
// USDC on Ethereum
|
|
4711
|
+
}
|
|
4702
4712
|
]
|
|
4703
|
-
// HookKind.FLINT_DEPOSIT is not registered yet: FlintDepositHook is not deployed to Ethereum
|
|
4704
|
-
// mainnet (icon-project/sodax-contracts#693). Registering it with a placeholder address would
|
|
4705
|
-
// route real intent output to that address, so the entry lands with the deployment:
|
|
4706
|
-
//
|
|
4707
|
-
// [ChainKeys.ETHEREUM_MAINNET]: [
|
|
4708
|
-
// {
|
|
4709
|
-
// kind: HookKind.FLINT_DEPOSIT,
|
|
4710
|
-
// address: '0x…',
|
|
4711
|
-
// supportedTokens: [spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDC.address],
|
|
4712
|
-
// },
|
|
4713
|
-
// ],
|
|
4714
|
-
//
|
|
4715
|
-
// Until then `getSpokeHook` returns undefined and `resolveDeliveryHook` throws, which is the
|
|
4716
|
-
// correct behaviour for a hook that does not exist on chain.
|
|
4717
4713
|
};
|
|
4718
4714
|
var getSpokeHook = (chainKey, kind) => spokeHooks[chainKey]?.find((h) => h.kind === kind);
|
|
4719
4715
|
var getSpokeHooks = (chainKey) => spokeHooks[chainKey] ?? [];
|
|
@@ -4862,7 +4858,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
|
|
|
4862
4858
|
}
|
|
4863
4859
|
|
|
4864
4860
|
// ../types/dist/index.js
|
|
4865
|
-
var CONFIG_VERSION =
|
|
4861
|
+
var CONFIG_VERSION = 230;
|
|
4866
4862
|
|
|
4867
4863
|
// src/shared/utils/resolveTimeoutMs.ts
|
|
4868
4864
|
function resolveTimeoutMs(timeout, fallbackMs) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.1.0
|
|
7
|
+
"version": "2.1.0",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"description": "Sodax SDK",
|
|
10
10
|
"keywords": [
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"rlp": "3.0.0",
|
|
68
68
|
"viem": "2.29.2",
|
|
69
69
|
"valibot": "1.4.1",
|
|
70
|
-
"@sodax/libs": "2.1.0
|
|
71
|
-
"@sodax/swaps-api": "2.1.0
|
|
72
|
-
"@sodax/types": "2.1.0
|
|
70
|
+
"@sodax/libs": "2.1.0",
|
|
71
|
+
"@sodax/swaps-api": "2.1.0",
|
|
72
|
+
"@sodax/types": "2.1.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@arethetypeswrong/cli": "0.17.4",
|