@sodax/types 0.0.1-rc.9 → 1.0.0-beta
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/LICENSE +21 -0
- package/README.md +32 -0
- package/dist/backend/index.d.ts +31 -0
- package/dist/backend/index.d.ts.map +1 -0
- package/dist/backend/index.js +2 -0
- package/dist/backend/index.js.map +1 -0
- package/dist/common/index.d.ts +193 -5
- package/dist/common/index.d.ts.map +1 -1
- package/dist/constants/index.d.ts +4756 -3
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2363 -12
- package/dist/constants/index.js.map +1 -1
- package/dist/evm/index.d.ts +0 -1
- package/dist/evm/index.d.ts.map +1 -1
- package/dist/icon/index.d.ts +0 -1
- package/dist/icon/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/injective/index.d.ts +2 -4
- package/dist/injective/index.d.ts.map +1 -1
- package/dist/solana/index.d.ts +0 -1
- package/dist/solana/index.d.ts.map +1 -1
- package/dist/stellar/index.d.ts +2 -2
- package/dist/stellar/index.d.ts.map +1 -1
- package/dist/sui/index.d.ts +2 -3
- package/dist/sui/index.d.ts.map +1 -1
- package/package.json +2 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) [2025] [Sodax]
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @sodax/types
|
|
2
|
+
|
|
3
|
+
Shared TypeScript types and constants used throughout Sodax libraries.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This package provides a centralized collection of type definitions and constants for the Sodax ecosystem, including:
|
|
8
|
+
|
|
9
|
+
- **Chain configurations**: Hub and spoke chain definitions for EVM, Solana, Stellar, Sui, ICON, and Injective
|
|
10
|
+
- **Token definitions**: Supported tokens, hub assets, and vault configurations
|
|
11
|
+
- **Chain-specific types**: Wallet provider interfaces and transaction types for each supported blockchain
|
|
12
|
+
- **Backend API types**: Type definitions for configuration API responses
|
|
13
|
+
|
|
14
|
+
## Structure
|
|
15
|
+
|
|
16
|
+
- **`common/`**: Core types for chains, tokens, addresses, and chain configurations
|
|
17
|
+
- **`constants/`**: Chain IDs, token definitions, hub vaults, and spoke chain configurations
|
|
18
|
+
- **`backend/`**: API response types for configuration endpoints
|
|
19
|
+
- **`evm/`**: EVM-specific transaction and wallet provider types
|
|
20
|
+
- **`stellar/`**: Stellar-specific transaction and wallet provider types
|
|
21
|
+
- **`solana/`**: Solana-specific transaction and wallet provider types
|
|
22
|
+
- **`sui/`**: Sui-specific transaction and wallet provider types
|
|
23
|
+
- **`icon/`**: ICON-specific transaction and wallet provider types
|
|
24
|
+
- **`injective/`**: Injective-specific transaction and wallet provider types
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import type { ChainId, Token, SpokeChainConfig } from '@sodax/types';
|
|
30
|
+
import { CHAIN_IDS, spokeChainConfig } from '@sodax/types';
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SpokeChainId, Token, HubAsset, IntentRelayChainIdMap, SpokeChainConfigMap, Address } from '../common/index.js';
|
|
2
|
+
export type GetChainsApiResponse = readonly SpokeChainId[];
|
|
3
|
+
export type GetSwapTokensApiResponse = Record<SpokeChainId, readonly Token[]>;
|
|
4
|
+
export type GetSwapTokensByChainIdApiResponse = readonly Token[];
|
|
5
|
+
export type GetMoneyMarketTokensApiResponse = Record<SpokeChainId, readonly Token[]>;
|
|
6
|
+
export type GetMoneyMarketTokensByChainIdApiResponse = readonly Token[];
|
|
7
|
+
export type GetHubAssetsApiResponse = Record<SpokeChainId, Record<string, HubAsset>>;
|
|
8
|
+
export type GetHubAssetsByChainIdApiResponse = Record<string, HubAsset>;
|
|
9
|
+
export type GetRelayChainIdMapApiResponse = IntentRelayChainIdMap;
|
|
10
|
+
export type GetSpokeChainConfigApiResponse = SpokeChainConfigMap;
|
|
11
|
+
export type GetMoneyMarketReserveAssetsApiResponse = readonly Address[];
|
|
12
|
+
export type GetAllConfigApiResponse = {
|
|
13
|
+
version?: number;
|
|
14
|
+
supportedChains: GetChainsApiResponse;
|
|
15
|
+
supportedSwapTokens: GetSwapTokensApiResponse;
|
|
16
|
+
supportedMoneyMarketTokens: GetMoneyMarketTokensApiResponse;
|
|
17
|
+
supportedMoneyMarketReserveAssets: GetMoneyMarketReserveAssetsApiResponse;
|
|
18
|
+
supportedHubAssets: GetHubAssetsApiResponse;
|
|
19
|
+
relayChainIdMap: GetRelayChainIdMapApiResponse;
|
|
20
|
+
spokeChainConfig: GetSpokeChainConfigApiResponse;
|
|
21
|
+
};
|
|
22
|
+
export interface IConfigApi {
|
|
23
|
+
getChains(): Promise<GetChainsApiResponse>;
|
|
24
|
+
getSwapTokens(): Promise<GetSwapTokensApiResponse>;
|
|
25
|
+
getSwapTokensByChainId(chainId: SpokeChainId): Promise<GetSwapTokensByChainIdApiResponse>;
|
|
26
|
+
getMoneyMarketTokens(): Promise<GetMoneyMarketTokensApiResponse>;
|
|
27
|
+
getMoneyMarketTokensByChainId(chainId: SpokeChainId): Promise<GetMoneyMarketTokensByChainIdApiResponse>;
|
|
28
|
+
getHubAssets(): Promise<GetHubAssetsApiResponse>;
|
|
29
|
+
getHubAssetsByChainId(chainId: SpokeChainId): Promise<GetHubAssetsByChainIdApiResponse>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/backend/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB,OAAO,EACR,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,oBAAoB,GAAG,SAAS,YAAY,EAAE,CAAC;AAC3D,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,YAAY,EAAE,SAAS,KAAK,EAAE,CAAC,CAAC;AAC9E,MAAM,MAAM,iCAAiC,GAAG,SAAS,KAAK,EAAE,CAAC;AACjE,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,YAAY,EAAE,SAAS,KAAK,EAAE,CAAC,CAAC;AACrF,MAAM,MAAM,wCAAwC,GAAG,SAAS,KAAK,EAAE,CAAC;AACxE,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AACrF,MAAM,MAAM,gCAAgC,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACxE,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,CAAC;AAClE,MAAM,MAAM,8BAA8B,GAAG,mBAAmB,CAAC;AACjE,MAAM,MAAM,sCAAsC,GAAG,SAAS,OAAO,EAAE,CAAC;AACxE,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,oBAAoB,CAAC;IACtC,mBAAmB,EAAE,wBAAwB,CAAC;IAC9C,0BAA0B,EAAE,+BAA+B,CAAC;IAC5D,iCAAiC,EAAE,sCAAsC,CAAC;IAC1E,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,eAAe,EAAE,6BAA6B,CAAC;IAC/C,gBAAgB,EAAE,8BAA8B,CAAC;CAClD,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,SAAS,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC3C,aAAa,IAAI,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACnD,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC1F,oBAAoB,IAAI,OAAO,CAAC,+BAA+B,CAAC,CAAC;IACjE,6BAA6B,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;IACxG,YAAY,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACjD,qBAAqB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;CACzF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/backend/index.ts"],"names":[],"mappings":""}
|
package/dist/common/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { HUB_CHAIN_IDS,
|
|
1
|
+
import type { HUB_CHAIN_IDS, CHAIN_IDS, EVM_CHAIN_IDS, ChainIdToIntentRelayChainId, HubVaultSymbols, ETHEREUM_MAINNET_CHAIN_ID, STELLAR_MAINNET_CHAIN_ID } from '../constants/index.js';
|
|
2
|
+
import type { InjectiveNetworkEnv } from '../injective/index.js';
|
|
2
3
|
export type HubChainId = (typeof HUB_CHAIN_IDS)[number];
|
|
3
|
-
export type SpokeChainId = (typeof
|
|
4
|
+
export type SpokeChainId = (typeof CHAIN_IDS)[number];
|
|
4
5
|
export type ChainId = (typeof CHAIN_IDS)[number];
|
|
5
|
-
export type ChainType = 'ICON' | 'EVM' | '
|
|
6
|
+
export type ChainType = 'ICON' | 'EVM' | 'INJECTIVE' | 'SUI' | 'STELLAR' | 'SOLANA';
|
|
6
7
|
export type Chain = {
|
|
7
8
|
id: string | number;
|
|
8
9
|
name: string;
|
|
@@ -18,7 +19,13 @@ export type Token = {
|
|
|
18
19
|
decimals: number;
|
|
19
20
|
address: string;
|
|
20
21
|
};
|
|
21
|
-
export type
|
|
22
|
+
export type Erc20Token = {
|
|
23
|
+
name: string;
|
|
24
|
+
symbol: string;
|
|
25
|
+
decimals: number;
|
|
26
|
+
address: Address;
|
|
27
|
+
};
|
|
28
|
+
export type XToken = (Token | Erc20Token) & {
|
|
22
29
|
xChainId: ChainId;
|
|
23
30
|
};
|
|
24
31
|
export type ByteArray = Uint8Array;
|
|
@@ -29,6 +36,187 @@ export type HubAddress = Address;
|
|
|
29
36
|
export type OriginalAssetAddress = string;
|
|
30
37
|
export interface WalletAddressProvider {
|
|
31
38
|
getWalletAddress(): Promise<string>;
|
|
32
|
-
getWalletAddressBytes(): Promise<Hex>;
|
|
33
39
|
}
|
|
40
|
+
export type HttpUrl = `http://${string}` | `https://${string}`;
|
|
41
|
+
export type StellarRpcConfig = {
|
|
42
|
+
horizonRpcUrl?: HttpUrl;
|
|
43
|
+
sorobanRpcUrl?: HttpUrl;
|
|
44
|
+
};
|
|
45
|
+
export type RpcConfig = Partial<{
|
|
46
|
+
[K in ChainId]: K extends typeof STELLAR_MAINNET_CHAIN_ID ? StellarRpcConfig : string;
|
|
47
|
+
}> & {
|
|
48
|
+
[ETHEREUM_MAINNET_CHAIN_ID]?: string | undefined;
|
|
49
|
+
};
|
|
50
|
+
export type IntentRelayChainId = (typeof ChainIdToIntentRelayChainId)[keyof typeof ChainIdToIntentRelayChainId];
|
|
51
|
+
export type IntentRelayChainIdMap = Record<ChainId, IntentRelayChainId>;
|
|
52
|
+
export type SpokeChainConfigMap = Record<SpokeChainId, SpokeChainConfig>;
|
|
53
|
+
export type HubVaultSymbol = (typeof HubVaultSymbols)[number];
|
|
54
|
+
export type EvmChainId = (typeof EVM_CHAIN_IDS)[number];
|
|
55
|
+
export type EvmSpokeChainId = (typeof EVM_CHAIN_IDS)[number];
|
|
56
|
+
export type GetSpokeChainIdType<T extends ChainType> = T extends 'EVM' ? EvmSpokeChainId : SpokeChainId;
|
|
57
|
+
export type BaseSpokeChainInfo<T extends ChainType> = {
|
|
58
|
+
name: string;
|
|
59
|
+
id: GetSpokeChainIdType<T>;
|
|
60
|
+
chainId: string | number;
|
|
61
|
+
type: T;
|
|
62
|
+
};
|
|
63
|
+
export type HubAssetInfo = {
|
|
64
|
+
asset: Address;
|
|
65
|
+
decimal: number;
|
|
66
|
+
vault: Address;
|
|
67
|
+
};
|
|
68
|
+
export type BaseHubChainConfig<T extends ChainType> = {
|
|
69
|
+
chain: HubChainInfo<T>;
|
|
70
|
+
addresses: {
|
|
71
|
+
[key: string]: Address | string | Uint8Array;
|
|
72
|
+
};
|
|
73
|
+
supportedTokens: Token[];
|
|
74
|
+
nativeToken: Address | string;
|
|
75
|
+
};
|
|
76
|
+
export type HubChainInfo<T extends ChainType> = {
|
|
77
|
+
name: string;
|
|
78
|
+
id: HubChainId;
|
|
79
|
+
type: T;
|
|
80
|
+
};
|
|
81
|
+
export type HubChainConfig = EvmHubChainConfig;
|
|
82
|
+
export type AssetInfo = {
|
|
83
|
+
chainId: bigint;
|
|
84
|
+
spokeAddress: `0x${string}`;
|
|
85
|
+
};
|
|
86
|
+
export type EvmHubChainConfig = BaseHubChainConfig<'EVM'> & {
|
|
87
|
+
addresses: {
|
|
88
|
+
assetManager: Address;
|
|
89
|
+
hubWallet: Address;
|
|
90
|
+
xTokenManager: Address;
|
|
91
|
+
icxMigration: Address;
|
|
92
|
+
balnSwap: Address;
|
|
93
|
+
sodaToken: Address;
|
|
94
|
+
sodaVault: Address;
|
|
95
|
+
stakedSoda: Address;
|
|
96
|
+
xSoda: Address;
|
|
97
|
+
stakingRouter: Address;
|
|
98
|
+
};
|
|
99
|
+
nativeToken: Address;
|
|
100
|
+
wrappedNativeToken: Address;
|
|
101
|
+
};
|
|
102
|
+
export type SpokeChainInfo<T extends ChainType> = BaseSpokeChainInfo<T>;
|
|
103
|
+
export type BaseSpokeChainConfig<T extends ChainType> = {
|
|
104
|
+
chain: SpokeChainInfo<T>;
|
|
105
|
+
addresses: {
|
|
106
|
+
[key: string]: string | Uint8Array;
|
|
107
|
+
};
|
|
108
|
+
supportedTokens: Record<string, XToken>;
|
|
109
|
+
nativeToken: string;
|
|
110
|
+
bnUSD: string;
|
|
111
|
+
};
|
|
112
|
+
export type SonicSpokeChainConfig = BaseSpokeChainConfig<'EVM'> & {
|
|
113
|
+
addresses: {
|
|
114
|
+
walletRouter: Address;
|
|
115
|
+
wrappedSonic: Address;
|
|
116
|
+
};
|
|
117
|
+
nativeToken: Address;
|
|
118
|
+
};
|
|
119
|
+
export type SolanaChainConfig = BaseSpokeChainConfig<'SOLANA'> & {
|
|
120
|
+
addresses: {
|
|
121
|
+
assetManager: string;
|
|
122
|
+
connection: string;
|
|
123
|
+
xTokenManager: string;
|
|
124
|
+
rateLimit: string;
|
|
125
|
+
testToken: string;
|
|
126
|
+
};
|
|
127
|
+
chain: SpokeChainInfo<'SOLANA'>;
|
|
128
|
+
rpcUrl: string;
|
|
129
|
+
walletAddress: string;
|
|
130
|
+
nativeToken: string;
|
|
131
|
+
gasPrice: string;
|
|
132
|
+
};
|
|
133
|
+
export type StellarAssetTrustline = {
|
|
134
|
+
assetCode: string;
|
|
135
|
+
contractId: string;
|
|
136
|
+
assetIssuer: string;
|
|
137
|
+
};
|
|
138
|
+
export type StellarSpokeChainConfig = BaseSpokeChainConfig<'STELLAR'> & {
|
|
139
|
+
addresses: {
|
|
140
|
+
assetManager: string;
|
|
141
|
+
connection: string;
|
|
142
|
+
xTokenManager: string;
|
|
143
|
+
rateLimit: string;
|
|
144
|
+
testToken: string;
|
|
145
|
+
};
|
|
146
|
+
horizonRpcUrl: HttpUrl;
|
|
147
|
+
sorobanRpcUrl: HttpUrl;
|
|
148
|
+
trustlineConfigs: StellarAssetTrustline[];
|
|
149
|
+
};
|
|
150
|
+
export type InjectiveSpokeChainConfig = BaseSpokeChainConfig<'INJECTIVE'> & {
|
|
151
|
+
rpcUrl: string;
|
|
152
|
+
walletAddress: string;
|
|
153
|
+
addresses: {
|
|
154
|
+
assetManager: string;
|
|
155
|
+
connection: string;
|
|
156
|
+
xTokenManager: string;
|
|
157
|
+
rateLimit: string;
|
|
158
|
+
testToken: string;
|
|
159
|
+
};
|
|
160
|
+
nativeToken: string;
|
|
161
|
+
prefix: string;
|
|
162
|
+
gasPrice: string;
|
|
163
|
+
isBrowser: boolean;
|
|
164
|
+
networkId: string;
|
|
165
|
+
network: InjectiveNetworkEnv;
|
|
166
|
+
};
|
|
167
|
+
export type EvmSpokeChainConfig = BaseSpokeChainConfig<'EVM'> & {
|
|
168
|
+
addresses: {
|
|
169
|
+
assetManager: Address;
|
|
170
|
+
connection: Address;
|
|
171
|
+
};
|
|
172
|
+
nativeToken: string;
|
|
173
|
+
};
|
|
174
|
+
export type SuiSpokeChainConfig = BaseSpokeChainConfig<'SUI'> & {
|
|
175
|
+
addresses: {
|
|
176
|
+
originalAssetManager: string;
|
|
177
|
+
assetManagerConfigId: string;
|
|
178
|
+
connection: string;
|
|
179
|
+
xTokenManager: string;
|
|
180
|
+
rateLimit: string;
|
|
181
|
+
testToken: string;
|
|
182
|
+
};
|
|
183
|
+
rpc_url: string;
|
|
184
|
+
};
|
|
185
|
+
export type IconAddress = `hx${string}` | `cx${string}`;
|
|
186
|
+
export type IconSpokeChainConfig = BaseSpokeChainConfig<'ICON'> & {
|
|
187
|
+
addresses: {
|
|
188
|
+
assetManager: IconAddress;
|
|
189
|
+
connection: IconAddress;
|
|
190
|
+
rateLimit: IconAddress;
|
|
191
|
+
wICX: `cx${string}`;
|
|
192
|
+
};
|
|
193
|
+
nid: Hex;
|
|
194
|
+
};
|
|
195
|
+
export type SpokeChainConfig = EvmSpokeChainConfig | SonicSpokeChainConfig | InjectiveSpokeChainConfig | IconSpokeChainConfig | SuiSpokeChainConfig | StellarSpokeChainConfig | SolanaChainConfig;
|
|
196
|
+
export type SolverConfig = {
|
|
197
|
+
intentsContract: Address;
|
|
198
|
+
solverApiEndpoint: HttpUrl;
|
|
199
|
+
};
|
|
200
|
+
export type MoneyMarketConfig = {
|
|
201
|
+
uiPoolDataProvider: Address;
|
|
202
|
+
lendingPool: Address;
|
|
203
|
+
poolAddressesProvider: Address;
|
|
204
|
+
bnUSD: Address;
|
|
205
|
+
bnUSDVault: Address;
|
|
206
|
+
bnUSDAToken: Address;
|
|
207
|
+
};
|
|
208
|
+
export type HubAsset = {
|
|
209
|
+
asset: Address;
|
|
210
|
+
decimal: number;
|
|
211
|
+
vault: Address;
|
|
212
|
+
symbol: string;
|
|
213
|
+
name: string;
|
|
214
|
+
};
|
|
215
|
+
export type TokenInfo = {
|
|
216
|
+
decimals: number;
|
|
217
|
+
depositFee: bigint;
|
|
218
|
+
withdrawalFee: bigint;
|
|
219
|
+
maxDeposit: bigint;
|
|
220
|
+
isSupported: boolean;
|
|
221
|
+
};
|
|
34
222
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"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