@sodax/sdk 0.0.1-rc.19 → 0.0.1-rc.20
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/README.md +2 -2
- package/dist/index.cjs +180 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +151 -93
- package/dist/index.d.ts +151 -93
- package/dist/index.mjs +180 -101
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6051,6 +6051,10 @@ type IntentError<T extends IntentErrorCode = IntentErrorCode> = {
|
|
|
6051
6051
|
code: T;
|
|
6052
6052
|
data: IntentErrorData<T>;
|
|
6053
6053
|
};
|
|
6054
|
+
type SwapParams<S extends SpokeProvider> = Prettify<{
|
|
6055
|
+
intentParams: CreateIntentParams;
|
|
6056
|
+
spokeProvider: S;
|
|
6057
|
+
} & OptionalFee>;
|
|
6054
6058
|
declare class SolverService {
|
|
6055
6059
|
readonly config: SolverServiceConfig;
|
|
6056
6060
|
readonly hubProvider: EvmHubProvider;
|
|
@@ -6096,7 +6100,7 @@ declare class SolverService {
|
|
|
6096
6100
|
* const fee: bigint = await solverService.getFee(1000000000000000n);
|
|
6097
6101
|
* console.log('Fee:', fee);
|
|
6098
6102
|
*/
|
|
6099
|
-
getFee(inputAmount: bigint):
|
|
6103
|
+
getFee(inputAmount: bigint): bigint;
|
|
6100
6104
|
/**
|
|
6101
6105
|
* Get the status of an intent from Solver API
|
|
6102
6106
|
* NOTE: intentHash should be retrieved from relay packet dst_tx_hash property (see createAndSubmitIntent)
|
|
@@ -6166,29 +6170,37 @@ declare class SolverService {
|
|
|
6166
6170
|
*/
|
|
6167
6171
|
submitIntent(submitPayload: IntentRelayRequest<'submit'>): Promise<Result<GetRelayResponse<'submit'>, IntentError<'SUBMIT_TX_FAILED'>>>;
|
|
6168
6172
|
/**
|
|
6169
|
-
*
|
|
6170
|
-
* @param {CreateIntentParams} payload - The intent to create
|
|
6171
|
-
* @param {ISpokeProvider} spokeProvider - The spoke provider
|
|
6172
|
-
* @param {number} timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
|
|
6173
|
-
* @returns {Promise<Result<[SolverExecutionResponse, Intent, PacketData], IntentError<IntentErrorCode>>>} The solver execution response, intent, and packet data
|
|
6173
|
+
* Syntactic sugar for createAndSubmitIntent: creates an intent and submits it to the Solver API and Relayer API.
|
|
6174
6174
|
*
|
|
6175
|
-
* @
|
|
6176
|
-
*
|
|
6177
|
-
*
|
|
6178
|
-
*
|
|
6179
|
-
*
|
|
6180
|
-
*
|
|
6181
|
-
*
|
|
6182
|
-
*
|
|
6183
|
-
* "srcChain": "0x38.bsc", // Chain ID where input tokens originate
|
|
6184
|
-
* "dstChain": "0xa4b1.arbitrum", // Chain ID where output tokens should be delivered
|
|
6185
|
-
* "srcAddress": "0x..", // Source address (original address on spoke chain)
|
|
6186
|
-
* "dstAddress": "0x...", // Destination address (original address on spoke chain)
|
|
6187
|
-
* "solver": "0x..", // Optional specific solver address (address(0) = any solver)
|
|
6188
|
-
* "data": "0x..", // Additional arbitrary data
|
|
6189
|
-
* } satisfies CreateIntentParams;
|
|
6175
|
+
* @param {Prettify<SwapParams<S> & OptionalTimeout>} params - Object containing:
|
|
6176
|
+
* - intentParams: The parameters for creating the intent.
|
|
6177
|
+
* - spokeProvider: The spoke provider instance.
|
|
6178
|
+
* - fee: (Optional) Partner fee configuration.
|
|
6179
|
+
* - timeout: (Optional) Timeout in milliseconds for the transaction (default: 60 seconds).
|
|
6180
|
+
* @returns {Promise<Result<[SolverExecutionResponse, Intent, Hex], IntentError<IntentErrorCode>>>}
|
|
6181
|
+
* A promise resolving to a Result containing a tuple of SolverExecutionResponse, Intent, and packet data (Hex),
|
|
6182
|
+
* or an IntentError if the operation fails.
|
|
6190
6183
|
*
|
|
6191
|
-
*
|
|
6184
|
+
* @example
|
|
6185
|
+
* const swapResult = await solverService.swap({
|
|
6186
|
+
* intentParams: {
|
|
6187
|
+
* inputToken: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8",
|
|
6188
|
+
* outputToken: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
|
|
6189
|
+
* inputAmount: 1000000000000000n,
|
|
6190
|
+
* minOutputAmount: 900000000000000n,
|
|
6191
|
+
* deadline: 0n,
|
|
6192
|
+
* allowPartialFill: false,
|
|
6193
|
+
* srcChain: "0x38.bsc",
|
|
6194
|
+
* dstChain: "0xa4b1.arbitrum",
|
|
6195
|
+
* srcAddress: "0x..",
|
|
6196
|
+
* dstAddress: "0x...",
|
|
6197
|
+
* solver: "0x..",
|
|
6198
|
+
* data: "0x..",
|
|
6199
|
+
* },
|
|
6200
|
+
* spokeProvider,
|
|
6201
|
+
* fee, // optional
|
|
6202
|
+
* timeout, // optional
|
|
6203
|
+
* });
|
|
6192
6204
|
*
|
|
6193
6205
|
* if (swapResult.ok) {
|
|
6194
6206
|
* const [solverExecutionResponse, intent, packetData] = swapResult.value;
|
|
@@ -6199,31 +6211,39 @@ declare class SolverService {
|
|
|
6199
6211
|
* // handle error
|
|
6200
6212
|
* }
|
|
6201
6213
|
*/
|
|
6202
|
-
swap<S extends SpokeProvider>(
|
|
6214
|
+
swap<S extends SpokeProvider>({ intentParams: params, spokeProvider, fee, timeout, }: Prettify<SwapParams<S> & OptionalTimeout>): Promise<Result<[SolverExecutionResponse, Intent, Hex$1], IntentError<IntentErrorCode>>>;
|
|
6203
6215
|
/**
|
|
6204
6216
|
* Creates an intent and submits it to the Solver API and Relayer API
|
|
6205
|
-
* @param {
|
|
6206
|
-
*
|
|
6207
|
-
*
|
|
6208
|
-
*
|
|
6217
|
+
* @param {Prettify<SwapParams<S> & OptionalTimeout>} params - Object containing:
|
|
6218
|
+
* - intentParams: The parameters for creating the intent.
|
|
6219
|
+
* - spokeProvider: The spoke provider instance.
|
|
6220
|
+
* - fee: (Optional) Partner fee configuration.
|
|
6221
|
+
* - timeout: (Optional) Timeout in milliseconds for the transaction (default: 60 seconds).
|
|
6222
|
+
* @returns {Promise<Result<[SolverExecutionResponse, Intent, Hex], IntentError<IntentErrorCode>>>}
|
|
6223
|
+
* A promise resolving to a Result containing a tuple of SolverExecutionResponse, Intent, and packet data (Hex),
|
|
6224
|
+
* or an IntentError if the operation fails.
|
|
6209
6225
|
*
|
|
6210
6226
|
* @example
|
|
6211
|
-
* const
|
|
6212
|
-
*
|
|
6213
|
-
*
|
|
6214
|
-
* "
|
|
6215
|
-
*
|
|
6216
|
-
*
|
|
6217
|
-
*
|
|
6218
|
-
*
|
|
6219
|
-
*
|
|
6220
|
-
*
|
|
6221
|
-
*
|
|
6222
|
-
*
|
|
6223
|
-
*
|
|
6224
|
-
*
|
|
6227
|
+
* const createAndSubmitIntentResult = await solverService.createAndSubmitIntent({
|
|
6228
|
+
* intentParams: {
|
|
6229
|
+
* inputToken: "0x2170Ed0880ac9A755fd29B2688956BD959F933F8",
|
|
6230
|
+
* outputToken: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
|
|
6231
|
+
* inputAmount: 1000000000000000n,
|
|
6232
|
+
* minOutputAmount: 900000000000000n,
|
|
6233
|
+
* deadline: 0n,
|
|
6234
|
+
* allowPartialFill: false,
|
|
6235
|
+
* srcChain: "0x38.bsc",
|
|
6236
|
+
* dstChain: "0xa4b1.arbitrum",
|
|
6237
|
+
* srcAddress: "0x..",
|
|
6238
|
+
* dstAddress: "0x...",
|
|
6239
|
+
* solver: "0x..",
|
|
6240
|
+
* data: "0x..",
|
|
6241
|
+
* },
|
|
6242
|
+
* spokeProvider,
|
|
6243
|
+
* fee, // optional
|
|
6244
|
+
* timeout, // optional
|
|
6245
|
+
* });
|
|
6225
6246
|
*
|
|
6226
|
-
* const createAndSubmitIntentResult = await solverService.createAndSubmitIntent(payload, spokeProvider);
|
|
6227
6247
|
*
|
|
6228
6248
|
* if (createAndSubmitIntentResult.ok) {
|
|
6229
6249
|
* const [solverExecutionResponse, intent, packetData] = createAndSubmitIntentResult.value;
|
|
@@ -6234,73 +6254,94 @@ declare class SolverService {
|
|
|
6234
6254
|
* // handle error
|
|
6235
6255
|
* }
|
|
6236
6256
|
*/
|
|
6237
|
-
createAndSubmitIntent<S extends SpokeProvider>(
|
|
6257
|
+
createAndSubmitIntent<S extends SpokeProvider>({ intentParams: params, spokeProvider, fee, timeout, }: Prettify<SwapParams<S> & OptionalTimeout>): Promise<Result<[SolverExecutionResponse, Intent, Hex$1], IntentError<IntentErrorCode>>>;
|
|
6238
6258
|
/**
|
|
6239
|
-
* Check whether
|
|
6240
|
-
* @param {
|
|
6241
|
-
*
|
|
6242
|
-
*
|
|
6259
|
+
* Check whether the Asset Manager contract is allowed to spend the specified amount of tokens
|
|
6260
|
+
* @param {Prettify<SwapParams<S>} params - Object containing:
|
|
6261
|
+
* - intentParams: The parameters for creating the intent.
|
|
6262
|
+
* - spokeProvider: The spoke provider instance.
|
|
6263
|
+
* - fee: (Optional) Partner fee configuration.
|
|
6264
|
+
* @returns {Promise<Result<boolean>>} - Returns true if allowance is sufficient, false if approval is needed
|
|
6243
6265
|
*
|
|
6244
6266
|
* @example
|
|
6245
|
-
* const
|
|
6246
|
-
*
|
|
6247
|
-
*
|
|
6248
|
-
*
|
|
6249
|
-
*
|
|
6250
|
-
*
|
|
6251
|
-
*
|
|
6252
|
-
*
|
|
6253
|
-
*
|
|
6254
|
-
*
|
|
6255
|
-
*
|
|
6256
|
-
*
|
|
6257
|
-
*
|
|
6267
|
+
* const createIntentParams = {
|
|
6268
|
+
* inputToken: '0x2170Ed0880ac9A755fd29B2688956BD959F933F8', // BSC ETH token address
|
|
6269
|
+
* outputToken: '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f', // ARB WBTC token address
|
|
6270
|
+
* inputAmount: 1000000000000000n, // The amount of input tokens
|
|
6271
|
+
* minOutputAmount: 900000000000000n, // min amount you are expecting to receive
|
|
6272
|
+
* deadline: 0n, // Optional timestamp after which intent expires (0 = no deadline)
|
|
6273
|
+
* allowPartialFill: false, // Whether the intent can be partially filled
|
|
6274
|
+
* srcChain: BSC_MAINNET_CHAIN_ID, // Chain ID where input tokens originate
|
|
6275
|
+
* dstChain: ARBITRUM_MAINNET_CHAIN_ID, // Chain ID where output tokens should be delivered
|
|
6276
|
+
* srcAddress: '0x..', // Source address (original address on spoke chain)
|
|
6277
|
+
* dstAddress: '0x...', // Destination address (original address on spoke chain)
|
|
6278
|
+
* solver: '0x0000000000000000000000000000000000000000', // Optional specific solver address
|
|
6279
|
+
* data: '0x', // Additional arbitrary data
|
|
6258
6280
|
* } satisfies CreateIntentParams;
|
|
6259
6281
|
*
|
|
6260
|
-
* const isAllowanceValid = await
|
|
6282
|
+
* const isAllowanceValid = await sodax.solver.isAllowanceValid({
|
|
6283
|
+
* intentParams: createIntentParams,
|
|
6284
|
+
* spokeProvider: bscSpokeProvider,
|
|
6285
|
+
* });
|
|
6261
6286
|
*
|
|
6262
|
-
* if (!
|
|
6287
|
+
* if (!isAllowanceValid.ok) {
|
|
6263
6288
|
* // Handle error
|
|
6264
|
-
*
|
|
6265
|
-
*
|
|
6266
|
-
*
|
|
6267
|
-
*
|
|
6289
|
+
* console.error('Failed to check allowance:', isAllowanceValid.error);
|
|
6290
|
+
* } else if (!isAllowanceValid.value) {
|
|
6291
|
+
* // Need to approve tokens
|
|
6292
|
+
* console.log('Approval required');
|
|
6268
6293
|
* }
|
|
6269
6294
|
*/
|
|
6270
|
-
isAllowanceValid<S extends SpokeProvider>(
|
|
6295
|
+
isAllowanceValid<S extends SpokeProvider>({ intentParams: params, spokeProvider, fee, }: SwapParams<S>): Promise<Result<boolean>>;
|
|
6271
6296
|
/**
|
|
6272
|
-
* Approve
|
|
6273
|
-
* @param
|
|
6274
|
-
*
|
|
6275
|
-
*
|
|
6276
|
-
*
|
|
6277
|
-
*
|
|
6278
|
-
* @returns {Promise<Result<TxReturnType<S, R>>>} - Returns
|
|
6297
|
+
* Approve the Asset Manager contract to spend tokens on behalf of the user (required for EVM chains)
|
|
6298
|
+
* @param {Prettify<SwapParams<S> & OptionalRaw<R>>} params - Object containing:
|
|
6299
|
+
* - intentParams: The parameters for creating the intent.
|
|
6300
|
+
* - spokeProvider: The spoke provider instance.
|
|
6301
|
+
* - fee: (Optional) Partner fee configuration.
|
|
6302
|
+
* - raw: (Optional) Whether to return the raw transaction data instead of executing it
|
|
6303
|
+
* @returns {Promise<Result<TxReturnType<S, R>>>} - Returns transaction hash or raw transaction data
|
|
6279
6304
|
*
|
|
6280
6305
|
* @example
|
|
6281
|
-
* const
|
|
6282
|
-
* '
|
|
6283
|
-
*
|
|
6284
|
-
*
|
|
6285
|
-
*
|
|
6286
|
-
*
|
|
6287
|
-
*
|
|
6306
|
+
* const createIntentParams = {
|
|
6307
|
+
* inputToken: '0x2170Ed0880ac9A755fd29B2688956BD959F933F8', // BSC ETH token address
|
|
6308
|
+
* outputToken: '0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f', // ARB WBTC token address
|
|
6309
|
+
* inputAmount: 1000000000000000n, // The amount of input tokens
|
|
6310
|
+
* minOutputAmount: 900000000000000n, // min amount you are expecting to receive
|
|
6311
|
+
* deadline: 0n, // Optional timestamp after which intent expires (0 = no deadline)
|
|
6312
|
+
* allowPartialFill: false, // Whether the intent can be partially filled
|
|
6313
|
+
* srcChain: BSC_MAINNET_CHAIN_ID, // Chain ID where input tokens originate
|
|
6314
|
+
* dstChain: ARBITRUM_MAINNET_CHAIN_ID, // Chain ID where output tokens should be delivered
|
|
6315
|
+
* srcAddress: '0x..', // Source address (original address on spoke chain)
|
|
6316
|
+
* dstAddress: '0x...', // Destination address (original address on spoke chain)
|
|
6317
|
+
* solver: '0x0000000000000000000000000000000000000000', // Optional specific solver address
|
|
6318
|
+
* data: '0x', // Additional arbitrary data
|
|
6319
|
+
* } satisfies CreateIntentParams;
|
|
6320
|
+
*
|
|
6321
|
+
* const approveResult = await sodax.solver.approve({
|
|
6322
|
+
* intentParams: createIntentParams,
|
|
6323
|
+
* spokeProvider: bscSpokeProvider,
|
|
6324
|
+
* });
|
|
6288
6325
|
*
|
|
6289
6326
|
* if (!approveResult.ok) {
|
|
6290
6327
|
* // Handle error
|
|
6328
|
+
* console.error('Failed to approve tokens:', approveResult.error);
|
|
6329
|
+
* } else {
|
|
6330
|
+
* // Transaction hash or raw transaction data
|
|
6331
|
+
* const txHash = approveResult.value;
|
|
6332
|
+
* console.log('Approval transaction:', txHash);
|
|
6291
6333
|
* }
|
|
6292
|
-
*
|
|
6293
|
-
* const txReceipt = approveResult.value;
|
|
6294
6334
|
*/
|
|
6295
|
-
approve<S extends SpokeProvider, R extends boolean = false>(
|
|
6335
|
+
approve<S extends SpokeProvider, R extends boolean = false>({ intentParams: params, spokeProvider, fee, raw, }: Prettify<SwapParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>>>;
|
|
6296
6336
|
/**
|
|
6297
6337
|
* Creates an intent by handling token approval and intent creation
|
|
6298
6338
|
* NOTE: This method does not submit the intent to the Solver API
|
|
6299
|
-
* @param {
|
|
6300
|
-
*
|
|
6301
|
-
*
|
|
6302
|
-
*
|
|
6303
|
-
*
|
|
6339
|
+
* @param {Prettify<SwapParams<S> & OptionalRaw<R>>} params - Object containing:
|
|
6340
|
+
* - intentParams: The parameters for creating the intent.
|
|
6341
|
+
* - spokeProvider: The spoke provider instance.
|
|
6342
|
+
* - fee: (Optional) Partner fee configuration.
|
|
6343
|
+
* - raw: (Optional) Whether to return the raw transaction data instead of executing it
|
|
6344
|
+
* @returns {Promise<Result<[TxReturnType<S, R>, Intent & FeeAmount], IntentError<'CREATION_FAILED'>>>} The encoded contract call or raw transaction data
|
|
6304
6345
|
*
|
|
6305
6346
|
* @example
|
|
6306
6347
|
* const payload = {
|
|
@@ -6318,14 +6359,22 @@ declare class SolverService {
|
|
|
6318
6359
|
* "data": "0x..", // Additional arbitrary data
|
|
6319
6360
|
* } satisfies CreateIntentParams;
|
|
6320
6361
|
*
|
|
6321
|
-
* const createIntentResult = await solverService.createIntent(
|
|
6362
|
+
* const createIntentResult = await solverService.createIntent({
|
|
6363
|
+
* intentParams: payload,
|
|
6364
|
+
* spokeProvider,
|
|
6365
|
+
* fee, // optional
|
|
6366
|
+
* raw, // optional
|
|
6367
|
+
* });
|
|
6322
6368
|
*
|
|
6323
6369
|
* if (createIntentResult.ok) {
|
|
6324
6370
|
* const [txResult, intent] = createIntentResult.value;
|
|
6325
6371
|
* console.log('Intent:', intent);
|
|
6326
|
-
*
|
|
6372
|
+
* console.log('Packet data:', packetData);
|
|
6373
|
+
* } else {
|
|
6374
|
+
* // handle error
|
|
6375
|
+
* }
|
|
6327
6376
|
*/
|
|
6328
|
-
createIntent<S extends SpokeProvider, R extends boolean = false>(
|
|
6377
|
+
createIntent<S extends SpokeProvider, R extends boolean = false>({ intentParams: params, spokeProvider, fee, raw, }: Prettify<SwapParams<S> & OptionalRaw<R>>): Promise<Result<[TxReturnType<S, R>, Intent & FeeAmount, Hex$1], IntentError<'CREATION_FAILED'>>>;
|
|
6329
6378
|
/**
|
|
6330
6379
|
* Cancels an intent
|
|
6331
6380
|
* @param {Intent} intent - The intent to cancel
|
|
@@ -7563,6 +7612,9 @@ type PartnerFeeConfig = {
|
|
|
7563
7612
|
type FeeAmount = {
|
|
7564
7613
|
feeAmount: bigint;
|
|
7565
7614
|
};
|
|
7615
|
+
type OptionalFee = {
|
|
7616
|
+
fee?: PartnerFee;
|
|
7617
|
+
};
|
|
7566
7618
|
type EvmTxReturnType<T extends boolean> = T extends true ? TransactionReceipt : Hex$1;
|
|
7567
7619
|
type IconAddress = `hx${string}` | `cx${string}`;
|
|
7568
7620
|
type IconContractAddress = `cx${string}`;
|
|
@@ -7717,6 +7769,12 @@ type InjectiveGasEstimate = {
|
|
|
7717
7769
|
};
|
|
7718
7770
|
type GasEstimateType = EvmGasEstimate | SolanaGasEstimate | StellarGasEstimate | IconGasEstimate | SuiGasEstimate | InjectiveGasEstimate;
|
|
7719
7771
|
type GetEstimateGasReturnType<T extends SpokeProvider> = T['chainConfig']['chain']['type'] extends 'EVM' ? EvmGasEstimate : T['chainConfig']['chain']['type'] extends 'SOLANA' ? SolanaGasEstimate : T['chainConfig']['chain']['type'] extends 'STELLAR' ? StellarGasEstimate : T['chainConfig']['chain']['type'] extends 'ICON' ? IconGasEstimate : T['chainConfig']['chain']['type'] extends 'SUI' ? SuiGasEstimate : T['chainConfig']['chain']['type'] extends 'INJECTIVE' ? InjectiveGasEstimate : GasEstimateType;
|
|
7772
|
+
type OptionalRaw<R extends boolean = false> = {
|
|
7773
|
+
raw?: R;
|
|
7774
|
+
};
|
|
7775
|
+
type OptionalTimeout = {
|
|
7776
|
+
timeout?: number;
|
|
7777
|
+
};
|
|
7720
7778
|
|
|
7721
7779
|
declare function getIconAddressBytes(address: string): Hex;
|
|
7722
7780
|
|
|
@@ -8970,4 +9028,4 @@ declare function isUnifiedBnUSDMigrateParams(value: unknown): value is UnifiedBn
|
|
|
8970
9028
|
declare function isBalnMigrateParams(value: unknown): value is BalnMigrateParams;
|
|
8971
9029
|
declare function isIcxCreateRevertMigrationParams(value: unknown): value is IcxCreateRevertMigrationParams;
|
|
8972
9030
|
|
|
8973
|
-
export { type AggregatedReserveData, type AssetInfo, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BaseCurrencyInfo, type BaseHubChainConfig, type BaseSpokeChainConfig, type BaseSpokeChainInfo, BigIntToHex, BnUSDMigrationService, type BnUSDRevertMigrationParams, type BorrowInfo, ChainIdToIntentRelayChainId, type CreateIntentParams, type CustomProvider, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DetailedLock, EVM_CHAIN_IDS, EVM_SPOKE_CHAIN_IDS, Erc20Service, EvmAssetManagerService, type EvmChainId, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, type EvmHubChainConfig, EvmHubProvider, type EvmHubProviderConfig, type EvmInitializedConfig, type EvmReturnType, EvmSolverService, type EvmSpokeChainConfig, type EvmSpokeChainId, type EvmSpokeDepositParams, EvmSpokeProvider, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type GasEstimateType, type GetAddressType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeChainIdType, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, type HttpPrefixedUrl, type HttpUrl, type HubAssetInfo, type HubChainConfig, type HubChainInfo, type HubTxHash, type HubVaultSymbol, HubVaultSymbols, ICON_TX_RESULT_WAIT_MAX_RETRY, INTENT_RELAY_CHAIN_IDS, type ISpokeProvider, type IWalletProvider, type IconAddress, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, type IconRawTransaction, type IconReturnType, type IconSpokeChainConfig, IconSpokeProvider, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type InjectiveGasEstimate, type InjectiveReturnType, type InjectiveSpokeChainConfig, InjectiveSpokeProvider, type Intent, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentError, type IntentErrorCode, type IntentErrorData, type IntentRelayChainId, type IntentRelayRequest, type IntentRelayRequestParams, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationTokens, type MoneyMarketAction, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketConfig, type MoneyMarketConfigParams, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, type NewbnUSDChainId, type Optional, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeConfig, type PartnerFeePercentage, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, type QuoteType, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type ReserveDataLegacy, type ResponseAddressType, type ResponseSigningType, type Result, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, Sodax, type SodaxConfig, type SolanaChainConfig, type SolanaGasEstimate, type SolanaRawTransaction, type SolanaReturnType, SolanaSpokeProvider, type SolverConfig, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SolverService, type SolverServiceConfig, type SonicSpokeChainConfig, type SonicSpokeDepositParams, SonicSpokeProvider, SonicSpokeService, type SpokeChainConfig, type SpokeChainInfo, type SpokeDepositParams, type SpokeProvider, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StellarGasEstimate, type StellarReturnType, type StellarRpcConfig, type StellarSpokeChainConfig, StellarSpokeProvider, type SubmitTxParams, type SubmitTxResponse, type SuiGasEstimate, type SuiRawTransaction, type SuiReturnType, type SuiSpokeChainConfig, SuiSpokeProvider, SupportedMigrationTokens, type TokenInfo, type TxReturnType, type UnifiedBnUSDMigrateParams, type UnstakeRequest, type UserReserveData, VAULT_TOKEN_DECIMALS, type VaultReserves, type VaultType, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WithdrawInfo, assetManagerAbi, balnSwapAbi, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateFeeAmount, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, encodeAddress, encodeContractCalls, erc20Abi, getAllLegacybnUSDTokens, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getIconAddressBytes, getIntentRelayChainId, getMoneyMarketConfig, getOriginalAssetAddress, getPacket, getRandomBytes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaults, hubVaultsAddressSet, intentRelayChainIdToSpokeChainIdMap, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconSpokeProvider, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveSpokeProvider, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketReserveAsset, isMoneyMarketReserveHubAsset, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketSupportedToken, isMoneyMarketWithdrawUnknownError, isNativeToken, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isResponseAddressType, isResponseSigningType, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, isWaitUntilIntentExecutedFailed, moneyMarketReserveAssets, moneyMarketReserveHubAssetsSet, moneyMarketSupportedTokens, newbnUSDSpokeChainIds, originalAssetTohubAssetMap, poolAbi, randomUint256, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainIdsSet, submitTransaction, supportedHubAssets, supportedHubChains, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, variableDebtTokenAbi, vaultTokenAbi, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|
|
9031
|
+
export { type AggregatedReserveData, type AssetInfo, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BaseCurrencyInfo, type BaseHubChainConfig, type BaseSpokeChainConfig, type BaseSpokeChainInfo, BigIntToHex, BnUSDMigrationService, type BnUSDRevertMigrationParams, type BorrowInfo, ChainIdToIntentRelayChainId, type CreateIntentParams, type CustomProvider, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DetailedLock, EVM_CHAIN_IDS, EVM_SPOKE_CHAIN_IDS, Erc20Service, EvmAssetManagerService, type EvmChainId, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, type EvmHubChainConfig, EvmHubProvider, type EvmHubProviderConfig, type EvmInitializedConfig, type EvmReturnType, EvmSolverService, type EvmSpokeChainConfig, type EvmSpokeChainId, type EvmSpokeDepositParams, EvmSpokeProvider, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type GasEstimateType, type GetAddressType, type GetEstimateGasReturnType, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeChainIdType, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, type HttpPrefixedUrl, type HttpUrl, type HubAssetInfo, type HubChainConfig, type HubChainInfo, type HubTxHash, type HubVaultSymbol, HubVaultSymbols, ICON_TX_RESULT_WAIT_MAX_RETRY, INTENT_RELAY_CHAIN_IDS, type ISpokeProvider, type IWalletProvider, type IconAddress, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, type IconRawTransaction, type IconReturnType, type IconSpokeChainConfig, IconSpokeProvider, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type InjectiveGasEstimate, type InjectiveReturnType, type InjectiveSpokeChainConfig, InjectiveSpokeProvider, type Intent, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentError, type IntentErrorCode, type IntentErrorData, type IntentRelayChainId, type IntentRelayRequest, type IntentRelayRequestParams, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationTokens, type MoneyMarketAction, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketConfig, type MoneyMarketConfigParams, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, type NewbnUSDChainId, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeConfig, type PartnerFeePercentage, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, type QuoteType, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type ReserveDataLegacy, type ResponseAddressType, type ResponseSigningType, type Result, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, Sodax, type SodaxConfig, type SolanaChainConfig, type SolanaGasEstimate, type SolanaRawTransaction, type SolanaReturnType, SolanaSpokeProvider, type SolverConfig, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, SolverService, type SolverServiceConfig, type SonicSpokeChainConfig, type SonicSpokeDepositParams, SonicSpokeProvider, SonicSpokeService, type SpokeChainConfig, type SpokeChainInfo, type SpokeDepositParams, type SpokeProvider, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StellarGasEstimate, type StellarReturnType, type StellarRpcConfig, type StellarSpokeChainConfig, StellarSpokeProvider, type SubmitTxParams, type SubmitTxResponse, type SuiGasEstimate, type SuiRawTransaction, type SuiReturnType, type SuiSpokeChainConfig, SuiSpokeProvider, SupportedMigrationTokens, type SwapParams, type TokenInfo, type TxReturnType, type UnifiedBnUSDMigrateParams, type UnstakeRequest, type UserReserveData, VAULT_TOKEN_DECIMALS, type VaultReserves, type VaultType, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WithdrawInfo, assetManagerAbi, balnSwapAbi, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateFeeAmount, calculatePercentageFeeAmount, chainIdToHubAssetsMap, connectionAbi, encodeAddress, encodeContractCalls, erc20Abi, getAllLegacybnUSDTokens, getEvmViemChain, getHubAssetInfo, getHubChainConfig, getIconAddressBytes, getIntentRelayChainId, getMoneyMarketConfig, getOriginalAssetAddress, getPacket, getRandomBytes, getSolanaAddressBytes, getSolverConfig, getSpokeChainIdFromIntentRelayChainId, getSupportedMoneyMarketTokens, getSupportedSolverTokens, getTransactionPackets, hexToBigInt, hubAssetToOriginalAssetMap, hubAssets, hubVaults, hubVaultsAddressSet, intentRelayChainIdToSpokeChainIdMap, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isEvmHubChainConfig, isEvmInitializedConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isIconAddress, isIconSpokeProvider, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveSpokeProvider, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketReserveAsset, isMoneyMarketReserveHubAsset, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketSupportedToken, isMoneyMarketWithdrawUnknownError, isNativeToken, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isResponseAddressType, isResponseSigningType, isSolanaSpokeProvider, isSolverSupportedToken, isSonicSpokeProvider, isStellarSpokeProvider, isSuiSpokeProvider, isUnifiedBnUSDMigrateParams, isValidChainHubAsset, isValidHubAsset, isValidIntentRelayChainId, isValidOriginalAssetAddress, isValidSpokeChainId, isWaitUntilIntentExecutedFailed, moneyMarketReserveAssets, moneyMarketReserveHubAssetsSet, moneyMarketSupportedTokens, newbnUSDSpokeChainIds, originalAssetTohubAssetMap, poolAbi, randomUint256, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainIdsSet, submitTransaction, supportedHubAssets, supportedHubChains, supportedSpokeChains, supportedTokensPerChain, uiPoolDataAbi, variableDebtTokenAbi, vaultTokenAbi, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|