@sodax/sdk 1.3.0-beta → 1.3.1-beta-rc2
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 +62 -66
- package/dist/index.cjs +10102 -256
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +341 -7
- package/dist/index.d.ts +341 -7
- package/dist/index.mjs +9948 -154
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, NearSpokeChainConfig, CallContractParams, NearRawTransaction, TransferArgs, SendMsgArgs, FillData, INearWalletProvider, Address, Erc20Token, SpokeChainId, HttpUrl, Token, GetMoneyMarketTokensApiResponse, SolverConfig, HubAsset, OriginalAssetAddress, XToken, Hex as Hex$1, defaultSharedConfig, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, TokenInfo, HubAddress, ChainId, EvmRawTransaction, EvmRawTransactionReceipt, ChainType, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, BaseSpokeChainConfig, IConfigApi, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, HubAssetInfo,
|
|
1
|
+
import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, NearSpokeChainConfig, CallContractParams, NearRawTransaction, TransferArgs, SendMsgArgs, FillData, INearWalletProvider, Address, Erc20Token, SpokeChainId, HttpUrl, Token, GetMoneyMarketTokensApiResponse, SolverConfig, HubAsset, OriginalAssetAddress, XToken, Hex as Hex$1, defaultSharedConfig, RadfiDepositTxResponse, BitcoinSpokeChainConfig, IBitcoinWalletProvider, AddressType, HubChainId, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, TokenInfo, HubAddress, ChainId, EvmRawTransaction, EvmRawTransactionReceipt, ChainType, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, BaseSpokeChainConfig, IConfigApi, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, HubAssetInfo, IconEoaAddress, HubChainConfig, BridgeLimit } from '@sodax/types';
|
|
2
2
|
export * from '@sodax/types';
|
|
3
3
|
import * as viem from 'viem';
|
|
4
4
|
import { Hex, Address as Address$1, PublicClient, HttpTransport, WalletClient, CustomTransport, Chain, Account as Account$1, Hash, GetLogsReturnType, TransactionReceipt } from 'viem';
|
|
@@ -7,6 +7,7 @@ import { Connection, TransactionInstruction, PublicKey, Finality } from '@solana
|
|
|
7
7
|
import { SuiClient } from '@mysten/sui/client';
|
|
8
8
|
import { Transaction as Transaction$1, TransactionResult } from '@mysten/sui/transactions';
|
|
9
9
|
import { JsonRpcProvider } from 'near-api-js';
|
|
10
|
+
import * as bitcoin from 'bitcoinjs-lib';
|
|
10
11
|
import { SorobanRpc, rpc, Transaction, Memo, MemoType, Operation, FeeBumpTransaction, Horizon, Contract, Account, xdr } from '@stellar/stellar-sdk';
|
|
11
12
|
import { ChainGrpcWasmApi, TxGrpcApi } from '@injectivelabs/sdk-ts';
|
|
12
13
|
import { NetworkEndpoints } from '@injectivelabs/networks';
|
|
@@ -7299,6 +7300,228 @@ declare class Sodax {
|
|
|
7299
7300
|
initialize(): Promise<Result<void>>;
|
|
7300
7301
|
}
|
|
7301
7302
|
|
|
7303
|
+
type RadfiConfig = {
|
|
7304
|
+
url: string;
|
|
7305
|
+
apiKey: string;
|
|
7306
|
+
umsUrl?: string;
|
|
7307
|
+
};
|
|
7308
|
+
type RadfiTradingWallet = {
|
|
7309
|
+
tradingAddress: string;
|
|
7310
|
+
userAddress: string;
|
|
7311
|
+
userPublicKey: string;
|
|
7312
|
+
};
|
|
7313
|
+
type RadfiAuthResult = {
|
|
7314
|
+
accessToken: string;
|
|
7315
|
+
refreshToken: string;
|
|
7316
|
+
tradingAddress: string;
|
|
7317
|
+
};
|
|
7318
|
+
type RadfiWalletBalance = {
|
|
7319
|
+
btcSatoshi: bigint;
|
|
7320
|
+
pendingSatoshi: bigint;
|
|
7321
|
+
externalPendingSatoshi: bigint;
|
|
7322
|
+
totalUtxos: number;
|
|
7323
|
+
};
|
|
7324
|
+
type RadfiUtxo = {
|
|
7325
|
+
id: string;
|
|
7326
|
+
txId: string;
|
|
7327
|
+
vout: number;
|
|
7328
|
+
value: string;
|
|
7329
|
+
address: string;
|
|
7330
|
+
isSpent: boolean;
|
|
7331
|
+
isExpired: boolean;
|
|
7332
|
+
expiryBlock?: number;
|
|
7333
|
+
currentBlock?: number;
|
|
7334
|
+
};
|
|
7335
|
+
type RadfiUtxoListResponse = {
|
|
7336
|
+
data: RadfiUtxo[];
|
|
7337
|
+
total: number;
|
|
7338
|
+
page: number;
|
|
7339
|
+
pageSize: number;
|
|
7340
|
+
};
|
|
7341
|
+
type RadfiBuildTxResponse = {
|
|
7342
|
+
base64Psbt: string;
|
|
7343
|
+
fee: number;
|
|
7344
|
+
txId: string;
|
|
7345
|
+
};
|
|
7346
|
+
declare class RadfiProvider {
|
|
7347
|
+
private readonly config;
|
|
7348
|
+
constructor(config: RadfiConfig);
|
|
7349
|
+
authenticate(params: {
|
|
7350
|
+
message: string;
|
|
7351
|
+
signature: string;
|
|
7352
|
+
address: string;
|
|
7353
|
+
publicKey: string;
|
|
7354
|
+
}): Promise<RadfiAuthResult>;
|
|
7355
|
+
refreshAccessToken(refreshToken: string): Promise<{
|
|
7356
|
+
accessToken: string;
|
|
7357
|
+
refreshToken: string;
|
|
7358
|
+
}>;
|
|
7359
|
+
createTradingWallet(params: {
|
|
7360
|
+
walletAddress: string;
|
|
7361
|
+
publicKey: string;
|
|
7362
|
+
}, accessToken: string): Promise<RadfiTradingWallet>;
|
|
7363
|
+
getTradingWallet(userAddress: string, accessToken?: string): Promise<RadfiTradingWallet>;
|
|
7364
|
+
getBalance(address: string): Promise<RadfiWalletBalance>;
|
|
7365
|
+
checkIfTradingWalletExists(userAddress: string): Promise<boolean>;
|
|
7366
|
+
createWithdrawTransaction(params: {
|
|
7367
|
+
token: string;
|
|
7368
|
+
amount: bigint;
|
|
7369
|
+
recipient: string;
|
|
7370
|
+
userAddress: string;
|
|
7371
|
+
data: string;
|
|
7372
|
+
}, accessToken: string): Promise<RadfiDepositTxResponse>;
|
|
7373
|
+
requestRadfiSignature(params: {
|
|
7374
|
+
userAddress: string;
|
|
7375
|
+
signedBase64Tx: string;
|
|
7376
|
+
}, accessToken: string): Promise<string>;
|
|
7377
|
+
/**
|
|
7378
|
+
* Fetch expired (or near-expiry) UTXOs for a trading wallet address from UMS API.
|
|
7379
|
+
*/
|
|
7380
|
+
getExpiredUtxos(tradingAddress: string, params?: {
|
|
7381
|
+
page?: number;
|
|
7382
|
+
pageSize?: number;
|
|
7383
|
+
}): Promise<RadfiUtxoListResponse>;
|
|
7384
|
+
/**
|
|
7385
|
+
* Build a renew-utxo transaction via the Radfi API.
|
|
7386
|
+
* Returns a PSBT that needs to be signed by the user.
|
|
7387
|
+
*/
|
|
7388
|
+
buildRenewUtxoTransaction(params: {
|
|
7389
|
+
userAddress: string;
|
|
7390
|
+
txIdVouts: string[];
|
|
7391
|
+
}, accessToken: string): Promise<RadfiBuildTxResponse>;
|
|
7392
|
+
/**
|
|
7393
|
+
* Sign and broadcast a renew-utxo transaction via the Radfi API.
|
|
7394
|
+
* The user signs the PSBT first, then Radfi co-signs and broadcasts.
|
|
7395
|
+
*/
|
|
7396
|
+
signAndBroadcastRenewUtxo(params: {
|
|
7397
|
+
userAddress: string;
|
|
7398
|
+
signedBase64Tx: string;
|
|
7399
|
+
}, accessToken: string): Promise<string>;
|
|
7400
|
+
private request;
|
|
7401
|
+
}
|
|
7402
|
+
|
|
7403
|
+
type BitcoinUTXO = {
|
|
7404
|
+
txid: string;
|
|
7405
|
+
vout: number;
|
|
7406
|
+
value: number;
|
|
7407
|
+
status: {
|
|
7408
|
+
confirmed: boolean;
|
|
7409
|
+
block_height?: number;
|
|
7410
|
+
block_hash?: string;
|
|
7411
|
+
block_time?: number;
|
|
7412
|
+
};
|
|
7413
|
+
};
|
|
7414
|
+
interface BitcoinTransactionResult {
|
|
7415
|
+
txHash: string;
|
|
7416
|
+
fee: number;
|
|
7417
|
+
size: number;
|
|
7418
|
+
virtualSize: number;
|
|
7419
|
+
}
|
|
7420
|
+
type WalletMode = 'USER' | 'TRADING';
|
|
7421
|
+
interface Payload {
|
|
7422
|
+
src_address: string;
|
|
7423
|
+
data: string;
|
|
7424
|
+
src_chain_id: number;
|
|
7425
|
+
dst_chain_id: number;
|
|
7426
|
+
wallet_used: WalletMode;
|
|
7427
|
+
timestamp: number;
|
|
7428
|
+
address_type: AddressType;
|
|
7429
|
+
}
|
|
7430
|
+
interface OnDemandPayload {
|
|
7431
|
+
payload_hex: string;
|
|
7432
|
+
signature?: string;
|
|
7433
|
+
}
|
|
7434
|
+
/**
|
|
7435
|
+
* Normalize a signed PSBT to base64 format.
|
|
7436
|
+
* Unisat/OKX wallets return hex, Xverse returns base64.
|
|
7437
|
+
* Radfi API expects base64.
|
|
7438
|
+
*/
|
|
7439
|
+
declare function normalizePsbtToBase64(signedPsbt: string): string;
|
|
7440
|
+
declare class BitcoinBaseSpokeProvider {
|
|
7441
|
+
readonly rpcUrl: string;
|
|
7442
|
+
readonly network: bitcoin.networks.Network;
|
|
7443
|
+
readonly chainConfig: BitcoinSpokeChainConfig;
|
|
7444
|
+
readonly radfi: RadfiProvider;
|
|
7445
|
+
readonly walletMode: WalletMode;
|
|
7446
|
+
radfiAccessToken: string;
|
|
7447
|
+
constructor(config: BitcoinSpokeChainConfig, radfiConfig: RadfiConfig, walletMode?: WalletMode, rpcURL?: string);
|
|
7448
|
+
setRadfiAccessToken(token: string): void;
|
|
7449
|
+
/**
|
|
7450
|
+
* Get current fee estimates
|
|
7451
|
+
*/
|
|
7452
|
+
getFeeEstimate(targetBlocks?: number): Promise<number>;
|
|
7453
|
+
static getBalance(tokenAddress: string, provider: BitcoinSpokeProviderType): Promise<bigint>;
|
|
7454
|
+
fetchScriptPubKey(utxo: BitcoinUTXO, provider: BitcoinSpokeProviderType): Promise<string>;
|
|
7455
|
+
/**
|
|
7456
|
+
* Build a priority Bitcoin transaction with proper fee calculation
|
|
7457
|
+
*/
|
|
7458
|
+
static buildBitcoinTransaction(utxos: BitcoinUTXO[], outputs: Array<{
|
|
7459
|
+
address: string;
|
|
7460
|
+
value: number;
|
|
7461
|
+
}>, changeAddress: string, provider: BitcoinSpokeProviderType, feeRate?: number): Promise<bitcoin.Psbt>;
|
|
7462
|
+
/**
|
|
7463
|
+
* Deposit operation - transfer BTC to the asset manager
|
|
7464
|
+
*/
|
|
7465
|
+
static deposit<S extends BitcoinSpokeProviderType, R extends boolean = false>(token: string, amount: bigint, data: string, provider: S, raw?: R, accessToken?: string): Promise<TxReturnType<S, R>>;
|
|
7466
|
+
/**
|
|
7467
|
+
* Build deposit PSBT with embedded cross-chain data
|
|
7468
|
+
*/
|
|
7469
|
+
static buildDepositPsbt(walletAddress: string, token: string, amount: bigint, data: string, utxos: BitcoinUTXO[], provider: BitcoinSpokeProviderType): Promise<bitcoin.Psbt>;
|
|
7470
|
+
/**
|
|
7471
|
+
* Fetch UTXOs for an address
|
|
7472
|
+
*/
|
|
7473
|
+
fetchUTXOs(address: string): Promise<BitcoinUTXO[]>;
|
|
7474
|
+
/**
|
|
7475
|
+
* Fetch raw transaction hex
|
|
7476
|
+
*/
|
|
7477
|
+
fetchRawTransaction(txid: string): Promise<string>;
|
|
7478
|
+
/**
|
|
7479
|
+
* Estimate transaction size in vbytes
|
|
7480
|
+
*/
|
|
7481
|
+
estimateTxSize(inputCount: number, outputCount: number): number;
|
|
7482
|
+
getAddressType(address: string): AddressType;
|
|
7483
|
+
encodePayloadToBytes(payload: Payload): string;
|
|
7484
|
+
static encodeWithdrawalData<S extends BitcoinSpokeProviderType, R extends boolean = false>(dstChainId: HubChainId, data: Hex, provider: S, raw?: R): Promise<string>;
|
|
7485
|
+
}
|
|
7486
|
+
/**
|
|
7487
|
+
* Raw Bitcoin Spoke Provider - for building unsigned transactions
|
|
7488
|
+
*/
|
|
7489
|
+
declare class BitcoinRawSpokeProvider extends BitcoinBaseSpokeProvider implements IRawSpokeProvider {
|
|
7490
|
+
readonly walletProvider: WalletAddressProvider;
|
|
7491
|
+
readonly raw = true;
|
|
7492
|
+
constructor(walletAddress: string, publicKey: string, chainConfig: BitcoinSpokeChainConfig, radfiConfig: RadfiConfig, walletMode?: WalletMode, rpcUrl?: string);
|
|
7493
|
+
}
|
|
7494
|
+
/**
|
|
7495
|
+
* Bitcoin Spoke Provider - with signing capabilities
|
|
7496
|
+
*/
|
|
7497
|
+
declare class BitcoinSpokeProvider extends BitcoinBaseSpokeProvider implements ISpokeProvider {
|
|
7498
|
+
readonly walletProvider: IBitcoinWalletProvider;
|
|
7499
|
+
constructor(walletProvider: IBitcoinWalletProvider, chainConfig: BitcoinSpokeChainConfig, radfiConfig: RadfiConfig, walletMode?: WalletMode, rpcUrl?: string);
|
|
7500
|
+
/**
|
|
7501
|
+
* Authenticate with Radfi: BIP322-sign a login message, then call the Radfi API.
|
|
7502
|
+
* Returns accessToken, refreshToken, and tradingAddress.
|
|
7503
|
+
*/
|
|
7504
|
+
authenticateWithWallet(cachedPublicKey?: string): Promise<{
|
|
7505
|
+
accessToken: string;
|
|
7506
|
+
refreshToken: string;
|
|
7507
|
+
tradingAddress: string;
|
|
7508
|
+
publicKey: string;
|
|
7509
|
+
}>;
|
|
7510
|
+
/**
|
|
7511
|
+
* Ensure a valid Radfi access token is set on this provider.
|
|
7512
|
+
* No-op if a token is already present.
|
|
7513
|
+
*/
|
|
7514
|
+
ensureRadfiAccessToken(): Promise<void>;
|
|
7515
|
+
/**
|
|
7516
|
+
* Sign and broadcast a Bitcoin transaction
|
|
7517
|
+
*/
|
|
7518
|
+
signAndBroadcastTransaction(psbt: bitcoin.Psbt | string): Promise<string>;
|
|
7519
|
+
/**
|
|
7520
|
+
* Broadcast a signed transaction
|
|
7521
|
+
*/
|
|
7522
|
+
private broadcastTransaction;
|
|
7523
|
+
}
|
|
7524
|
+
|
|
7302
7525
|
declare class IconBaseSpokeProvider {
|
|
7303
7526
|
readonly chainConfig: IconSpokeChainConfig;
|
|
7304
7527
|
readonly iconService: IconService;
|
|
@@ -7400,9 +7623,9 @@ declare class EvmRawSpokeProvider extends EvmBaseSpokeProvider implements IRawSp
|
|
|
7400
7623
|
readonly raw = true;
|
|
7401
7624
|
constructor(walletAddress: Address$1, chainConfig: EvmSpokeChainConfig, rpcUrl?: string);
|
|
7402
7625
|
}
|
|
7403
|
-
type IWalletProvider = IEvmWalletProvider | IInjectiveWalletProvider | IStellarWalletProvider | ISuiWalletProvider | IIconWalletProvider | ISolanaWalletProvider | INearWalletProvider;
|
|
7404
|
-
type SpokeProvider = (EvmSpokeProvider | InjectiveSpokeProvider | IconSpokeProvider | SuiSpokeProvider | StellarSpokeProvider | SolanaSpokeProvider | SonicSpokeProvider | NearSpokeProvider) & ISpokeProvider;
|
|
7405
|
-
type RawSpokeProvider = (EvmRawSpokeProvider | InjectiveRawSpokeProvider | IconRawSpokeProvider | SuiRawSpokeProvider | StellarRawSpokeProvider | SolanaRawSpokeProvider | SonicRawSpokeProvider | NearRawSpokeProvider) & IRawSpokeProvider;
|
|
7626
|
+
type IWalletProvider = IEvmWalletProvider | IInjectiveWalletProvider | IStellarWalletProvider | ISuiWalletProvider | IIconWalletProvider | IInjectiveWalletProvider | IStellarWalletProvider | IBitcoinWalletProvider | ISolanaWalletProvider | INearWalletProvider;
|
|
7627
|
+
type SpokeProvider = (EvmSpokeProvider | InjectiveSpokeProvider | IconSpokeProvider | SuiSpokeProvider | StellarSpokeProvider | SolanaSpokeProvider | SonicSpokeProvider | BitcoinSpokeProvider | NearSpokeProvider) & ISpokeProvider;
|
|
7628
|
+
type RawSpokeProvider = (EvmRawSpokeProvider | InjectiveRawSpokeProvider | IconRawSpokeProvider | SuiRawSpokeProvider | StellarRawSpokeProvider | SolanaRawSpokeProvider | SonicRawSpokeProvider | BitcoinRawSpokeProvider | NearRawSpokeProvider) & IRawSpokeProvider;
|
|
7406
7629
|
type RawSpokeProviderConfig = (EvmRawSpokeProviderConfig | InjectiveRawSpokeProviderConfig | IconRawSpokeProviderConfig | SuiRawSpokeProviderConfig | StellarRawSpokeProviderConfig | SolanaRawSpokeProviderConfig | SonicRawSpokeProviderConfig | NearRawSpokeProviderConfig) & {
|
|
7407
7630
|
chainConfig: SpokeChainConfig;
|
|
7408
7631
|
};
|
|
@@ -7543,7 +7766,7 @@ declare const hyper: {
|
|
|
7543
7766
|
};
|
|
7544
7767
|
declare function getEvmViemChain(id: EvmChainId): Chain;
|
|
7545
7768
|
declare const bnUSDLegacySpokeChainIds: readonly ["0x1.icon", "sui", "stellar"];
|
|
7546
|
-
declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "hyper" | "lightlink" | "ethereum" | "redbelly" | "0x2019.kaia" | "sui" | "stellar" | "injective-1" | "solana" | "near")[];
|
|
7769
|
+
declare const newbnUSDSpokeChainIds: ("0xa86a.avax" | "0xa4b1.arbitrum" | "0x2105.base" | "0x38.bsc" | "sonic" | "0xa.optimism" | "0x89.polygon" | "hyper" | "lightlink" | "ethereum" | "redbelly" | "0x2019.kaia" | "sui" | "stellar" | "injective-1" | "solana" | "near" | "bitcoin")[];
|
|
7547
7770
|
declare const bnUSDLegacyTokens: readonly [{
|
|
7548
7771
|
readonly symbol: "bnUSD (legacy)";
|
|
7549
7772
|
readonly name: "bnUSD";
|
|
@@ -7665,6 +7888,12 @@ declare const bnUSDNewTokens: ({
|
|
|
7665
7888
|
readonly decimals: 24;
|
|
7666
7889
|
readonly name: "bnUSD";
|
|
7667
7890
|
readonly xChainId: "near";
|
|
7891
|
+
} | {
|
|
7892
|
+
readonly symbol: "bnUSD";
|
|
7893
|
+
readonly name: "bnUSD";
|
|
7894
|
+
readonly decimals: 18;
|
|
7895
|
+
readonly address: "0:0";
|
|
7896
|
+
readonly xChainId: "bitcoin";
|
|
7668
7897
|
})[];
|
|
7669
7898
|
declare const isLegacybnUSDChainId: (chainId: SpokeChainId) => boolean;
|
|
7670
7899
|
declare const isNewbnUSDChainId: (chainId: SpokeChainId) => boolean;
|
|
@@ -9547,6 +9776,107 @@ declare class SuiSpokeService {
|
|
|
9547
9776
|
private static call;
|
|
9548
9777
|
}
|
|
9549
9778
|
|
|
9779
|
+
type BitcoinSpokeDepositParams = {
|
|
9780
|
+
from: string;
|
|
9781
|
+
to?: HubAddress;
|
|
9782
|
+
token: string;
|
|
9783
|
+
amount: bigint;
|
|
9784
|
+
data: Hex$1;
|
|
9785
|
+
accessToken?: string;
|
|
9786
|
+
};
|
|
9787
|
+
type BitcoinTransferToHubParams = {
|
|
9788
|
+
token: string;
|
|
9789
|
+
amount: bigint;
|
|
9790
|
+
data?: Hex$1;
|
|
9791
|
+
accessToken?: string;
|
|
9792
|
+
};
|
|
9793
|
+
type DepositSimulationParams$1 = {
|
|
9794
|
+
spokeChainID: number | string;
|
|
9795
|
+
token: Hex$1;
|
|
9796
|
+
from: Hex$1;
|
|
9797
|
+
to: HubAddress;
|
|
9798
|
+
amount: bigint;
|
|
9799
|
+
data: Hex$1;
|
|
9800
|
+
srcAddress: Hex$1;
|
|
9801
|
+
};
|
|
9802
|
+
declare class BitcoinSpokeService {
|
|
9803
|
+
private constructor();
|
|
9804
|
+
/**
|
|
9805
|
+
* Estimate transaction fee for a Bitcoin transaction
|
|
9806
|
+
*
|
|
9807
|
+
* @param {Hex} rawTx - The raw transaction parameters
|
|
9808
|
+
* @param {BitcoinSpokeProviderType} spokeProvider - The Bitcoin spoke provider
|
|
9809
|
+
* @returns {Promise<bigint>} Estimated fee in satoshis
|
|
9810
|
+
*/
|
|
9811
|
+
static estimateGas(rawTx: Hex$1, spokeProvider: BitcoinSpokeProviderType): Promise<bigint>;
|
|
9812
|
+
/**
|
|
9813
|
+
* Deposit tokens to the spoke chain and bridge to hub
|
|
9814
|
+
*
|
|
9815
|
+
* @param {BitcoinSpokeDepositParams} params - Deposit parameters
|
|
9816
|
+
* @param {BitcoinSpokeProviderType} spokeProvider - The Bitcoin spoke provider
|
|
9817
|
+
* @param {EvmHubProvider} EvmHubProvider - The hub chain provider
|
|
9818
|
+
* @param {boolean} raw - Whether to return raw PSBT or transaction hash
|
|
9819
|
+
* @returns {Promise<TxReturnType<BitcoinSpokeProviderType, R>>} Transaction hash or raw PSBT
|
|
9820
|
+
*/
|
|
9821
|
+
static deposit<R extends boolean = false>(params: BitcoinSpokeDepositParams, spokeProvider: BitcoinSpokeProviderType, raw?: R): Promise<TxReturnType<BitcoinSpokeProviderType, R>>;
|
|
9822
|
+
/**
|
|
9823
|
+
* Get the balance of deposited tokens in the asset manager
|
|
9824
|
+
*
|
|
9825
|
+
* @param {string} token - Token identifier ('BTC' for native Bitcoin)
|
|
9826
|
+
* @param {BitcoinSpokeProviderType} spokeProvider - The Bitcoin spoke provider
|
|
9827
|
+
* @returns {Promise<bigint>} Balance in satoshis
|
|
9828
|
+
*/
|
|
9829
|
+
static getDeposit(token: string, spokeProvider: BitcoinSpokeProviderType): Promise<bigint>;
|
|
9830
|
+
/**
|
|
9831
|
+
* Generate simulation parameters for deposit
|
|
9832
|
+
*
|
|
9833
|
+
* @param {BitcoinSpokeDepositParams} params - Deposit parameters
|
|
9834
|
+
* @param {BitcoinSpokeProviderType} spokeProvider - The Bitcoin spoke provider
|
|
9835
|
+
* @param {EvmHubProvider} EvmHubProvider - The hub chain provider
|
|
9836
|
+
* @returns {Promise<DepositSimulationParams>} Simulation parameters
|
|
9837
|
+
*/
|
|
9838
|
+
static getSimulateDepositParams(params: BitcoinSpokeDepositParams, spokeProvider: BitcoinSpokeProviderType, EvmHubProvider: EvmHubProvider): Promise<DepositSimulationParams$1>;
|
|
9839
|
+
/**
|
|
9840
|
+
* Fund the Radfi trading wallet by sending BTC from the user's personal wallet
|
|
9841
|
+
*
|
|
9842
|
+
* @param {bigint} amount - Amount in satoshis to send
|
|
9843
|
+
* @param {BitcoinSpokeProvider} spokeProvider - The Bitcoin spoke provider (must have signing capability)
|
|
9844
|
+
* @returns {Promise<string>} Transaction ID of the funding transaction
|
|
9845
|
+
*/
|
|
9846
|
+
static fundTradingWallet(amount: bigint, spokeProvider: BitcoinSpokeProvider): Promise<string>;
|
|
9847
|
+
/**
|
|
9848
|
+
* Call a contract on the hub chain from Bitcoin spoke
|
|
9849
|
+
*
|
|
9850
|
+
* @param {HubAddress} from - The hub wallet address
|
|
9851
|
+
* @param {Hex} payload - The payload to send
|
|
9852
|
+
* @param {BitcoinSpokeProviderType} spokeProvider - The Bitcoin spoke provider
|
|
9853
|
+
* @param {EvmHubProvider} EvmHubProvider - The hub chain provider
|
|
9854
|
+
* @param {boolean} raw - Whether to return raw PSBT or transaction hash
|
|
9855
|
+
* @returns {Promise<TxReturnType<BitcoinSpokeProviderType, R>>} Stringified JSON for payload and signature
|
|
9856
|
+
*/
|
|
9857
|
+
static callWallet<R extends boolean = false>(from: HubAddress, payload: Hex$1, spokeProvider: BitcoinSpokeProviderType, EvmHubProvider: EvmHubProvider, raw?: R): Promise<TxReturnType<BitcoinSpokeProviderType, R>>;
|
|
9858
|
+
/**
|
|
9859
|
+
* Transfer tokens to the hub chain
|
|
9860
|
+
*
|
|
9861
|
+
* @param {BitcoinTransferToHubParams} params - Transfer parameters
|
|
9862
|
+
* @param {BitcoinSpokeProviderType} spokeProvider - The Bitcoin spoke provider
|
|
9863
|
+
* @param {boolean} raw - Whether to return raw PSBT or transaction hash
|
|
9864
|
+
* @returns {Promise<TxReturnType<BitcoinSpokeProviderType, R>>} Transaction hash or raw PSBT
|
|
9865
|
+
*/
|
|
9866
|
+
private static transfer;
|
|
9867
|
+
/**
|
|
9868
|
+
* Send a message to the hub chain
|
|
9869
|
+
*
|
|
9870
|
+
* @param {HubChainId} dstChainId - Destination chain ID
|
|
9871
|
+
* @param {HubAddress} dstAddress - Destination address on hub
|
|
9872
|
+
* @param {Hex} payload - Message payload
|
|
9873
|
+
* @param {BitcoinSpokeProviderType} spokeProvider - The Bitcoin spoke provider
|
|
9874
|
+
* @param {boolean} raw - Whether to return raw PSBT or transaction hash
|
|
9875
|
+
* @returns {Promise<TxReturnType<BitcoinSpokeProviderType, R>>} Transaction hash or raw PSBT
|
|
9876
|
+
*/
|
|
9877
|
+
private static call;
|
|
9878
|
+
}
|
|
9879
|
+
|
|
9550
9880
|
declare class Erc20Service {
|
|
9551
9881
|
private constructor();
|
|
9552
9882
|
static getErc20Token(token: Address$1, publicClient: PublicClient): Promise<Erc20Token>;
|
|
@@ -9715,7 +10045,7 @@ type Result<T, E = Error | unknown> = {
|
|
|
9715
10045
|
error: E;
|
|
9716
10046
|
};
|
|
9717
10047
|
type SpokeDepositParams = EvmSpokeDepositParams | InjectiveSpokeDepositParams | IconSpokeDepositParams;
|
|
9718
|
-
type GetSpokeDepositParamsType<T extends SpokeProviderType> = T extends EvmSpokeProvider ? EvmSpokeDepositParams : T extends EvmRawSpokeProvider ? EvmSpokeDepositParams : T extends InjectiveSpokeProvider ? InjectiveSpokeDepositParams : T extends InjectiveRawSpokeProvider ? InjectiveSpokeDepositParams : T extends SuiSpokeProvider ? SuiSpokeDepositParams : T extends SuiRawSpokeProvider ? SuiSpokeDepositParams : T extends IconSpokeProvider ? IconSpokeDepositParams : T extends IconRawSpokeProvider ? IconSpokeDepositParams : T extends StellarSpokeProvider ? StellarSpokeDepositParams : T extends StellarRawSpokeProvider ? StellarSpokeDepositParams : T extends SolanaSpokeProvider ? SolanaSpokeDepositParams : T extends SolanaRawSpokeProvider ? SolanaSpokeDepositParams : T extends SonicSpokeProvider ? SonicSpokeDepositParams : T extends SonicRawSpokeProvider ? SonicSpokeDepositParams : T extends NearSpokeProvider ? NearSpokeDepositParams : T extends NearRawSpokeProvider ? NearSpokeDepositParams : never;
|
|
10048
|
+
type GetSpokeDepositParamsType<T extends SpokeProviderType> = T extends EvmSpokeProvider ? EvmSpokeDepositParams : T extends EvmRawSpokeProvider ? EvmSpokeDepositParams : T extends InjectiveSpokeProvider ? InjectiveSpokeDepositParams : T extends InjectiveRawSpokeProvider ? InjectiveSpokeDepositParams : T extends SuiSpokeProvider ? SuiSpokeDepositParams : T extends SuiRawSpokeProvider ? SuiSpokeDepositParams : T extends IconSpokeProvider ? IconSpokeDepositParams : T extends IconRawSpokeProvider ? IconSpokeDepositParams : T extends StellarSpokeProvider ? StellarSpokeDepositParams : T extends StellarRawSpokeProvider ? StellarSpokeDepositParams : T extends SolanaSpokeProvider ? SolanaSpokeDepositParams : T extends SolanaRawSpokeProvider ? SolanaSpokeDepositParams : T extends SonicSpokeProvider ? SonicSpokeDepositParams : T extends SonicRawSpokeProvider ? SonicSpokeDepositParams : T extends BitcoinSpokeProvider ? BitcoinSpokeDepositParams : T extends BitcoinRawSpokeProvider ? BitcoinSpokeDepositParams : T extends NearSpokeProvider ? NearSpokeDepositParams : T extends NearRawSpokeProvider ? NearSpokeDepositParams : never;
|
|
9719
10049
|
type GetAddressType<T extends SpokeProviderType> = T extends EvmSpokeProvider ? Address : T extends EvmRawSpokeProvider ? Address : T extends InjectiveSpokeProvider ? string : T extends InjectiveRawSpokeProvider ? string : T extends StellarSpokeProvider ? Hex$1 : T extends StellarRawSpokeProvider ? Hex$1 : T extends IconSpokeProvider ? IconAddress : T extends IconRawSpokeProvider ? IconAddress : T extends SuiSpokeProvider ? Hex$1 : T extends SuiRawSpokeProvider ? Hex$1 : T extends SolanaSpokeProvider ? Hex$1 : T extends SolanaRawSpokeProvider ? Hex$1 : T extends SonicSpokeProvider ? Address : T extends SonicRawSpokeProvider ? Address : T extends NearSpokeProvider ? Address : T extends NearRawSpokeProvider ? Address : never;
|
|
9720
10050
|
type SolverConfigParams = Prettify<SolverConfig & Optional<PartnerFeeConfig, 'partnerFee'>> | Optional<PartnerFeeConfig, 'partnerFee'>;
|
|
9721
10051
|
type QuoteType = 'exact_input';
|
|
@@ -9835,6 +10165,7 @@ type PromiseTxReturnType<T extends SpokeProvider, Raw extends boolean> = T['chai
|
|
|
9835
10165
|
type EvmSpokeProviderType = EvmSpokeProvider | EvmRawSpokeProvider;
|
|
9836
10166
|
type SolanaSpokeProviderType = SolanaSpokeProvider | SolanaRawSpokeProvider;
|
|
9837
10167
|
type StellarSpokeProviderType = StellarSpokeProvider | StellarRawSpokeProvider;
|
|
10168
|
+
type BitcoinSpokeProviderType = BitcoinSpokeProvider | BitcoinRawSpokeProvider;
|
|
9838
10169
|
type IconSpokeProviderType = IconSpokeProvider | IconRawSpokeProvider;
|
|
9839
10170
|
type SuiSpokeProviderType = SuiSpokeProvider | SuiRawSpokeProvider;
|
|
9840
10171
|
type InjectiveSpokeProviderType = InjectiveSpokeProvider | InjectiveRawSpokeProvider;
|
|
@@ -10724,7 +11055,9 @@ declare function isSolanaSpokeProviderType(value: SpokeProviderType): value is S
|
|
|
10724
11055
|
declare function isSolanaSpokeProvider(value: SpokeProviderType): value is SolanaSpokeProvider;
|
|
10725
11056
|
declare function isNearSpokeProvider(value: SpokeProviderType): value is NearSpokeProvider;
|
|
10726
11057
|
declare function isStellarSpokeProviderType(value: SpokeProviderType): value is StellarSpokeProviderType;
|
|
11058
|
+
declare function isBitcoinSpokeProviderType(value: SpokeProviderType): value is BitcoinSpokeProviderType;
|
|
10727
11059
|
declare function isStellarSpokeProvider(value: SpokeProviderType): value is StellarSpokeProvider;
|
|
11060
|
+
declare function isBitcoinSpokeProvider(value: SpokeProviderType): value is BitcoinSpokeProvider;
|
|
10728
11061
|
declare function isNearSpokeProviderType(value: SpokeProviderType): value is NearSpokeProviderType;
|
|
10729
11062
|
declare function isInjectiveSpokeProviderType(value: SpokeProviderType): value is InjectiveSpokeProviderType;
|
|
10730
11063
|
declare function isInjectiveSpokeProvider(value: SpokeProviderType): value is InjectiveSpokeProvider;
|
|
@@ -10757,6 +11090,7 @@ declare function isRawSpokeProvider(value: unknown): value is RawSpokeProvider;
|
|
|
10757
11090
|
declare function isEvmRawSpokeProvider(value: unknown): value is EvmRawSpokeProvider;
|
|
10758
11091
|
declare function isSolanaRawSpokeProvider(value: unknown): value is SolanaRawSpokeProvider;
|
|
10759
11092
|
declare function isStellarRawSpokeProvider(value: unknown): value is StellarRawSpokeProvider;
|
|
11093
|
+
declare function isBitcoinRawSpokeProvider(value: unknown): value is BitcoinRawSpokeProvider;
|
|
10760
11094
|
declare function isIconRawSpokeProvider(value: unknown): value is IconRawSpokeProvider;
|
|
10761
11095
|
declare function isSuiRawSpokeProvider(value: unknown): value is SuiRawSpokeProvider;
|
|
10762
11096
|
declare function isInjectiveRawSpokeProvider(value: unknown): value is InjectiveRawSpokeProvider;
|
|
@@ -11822,4 +12156,4 @@ declare class MigrationService {
|
|
|
11822
12156
|
createRevertSodaToIcxMigrationIntent<S extends SonicSpokeProviderType = SonicSpokeProviderType, R extends boolean = false>(params: Omit<IcxCreateRevertMigrationParams, 'wICX'>, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
|
|
11823
12157
|
}
|
|
11824
12158
|
|
|
11825
|
-
export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type AssetEntry, type AutoSwapPreferences, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type BridgeServiceConstructorParams, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CallResponse, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentAutoSwapError, type CreateIntentParams, type CreateLimitOrderParams, type CustomProvider, CustomSorobanServer, CustomStellarAccount, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DepositSimulationParams, type DetailedLock, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, EvmBaseSpokeProvider, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, EvmHubProvider, type EvmHubProviderConfig, type EvmHubProviderConstructorParams, type EvmInitializedConfig, EvmRawSpokeProvider, type EvmRawSpokeProviderConfig, type EvmReturnType, EvmSolverService, type EvmSpokeDepositParams, EvmSpokeProvider, type EvmSpokeProviderType, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, type ExecuteIntentAutoSwapError, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FeeTokenApproveParams, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, type GasEstimateType, type GetAddressType, type GetChainConfigType, type GetEstimateGasReturnType, type GetIntentSubmitTxExtraDataParams, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, HubService, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawSpokeProviderConfig, type IconRawTransaction, type IconReturnType, type IconSpokeDepositParams, IconSpokeProvider, type IconSpokeProviderType, IconSpokeService, type IconTransferToHubParams, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, InjectiveBaseSpokeProvider, type InjectiveGasEstimate, InjectiveRawSpokeProvider, type InjectiveRawSpokeProviderConfig, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentAutoSwapErrorData, type IntentAutoSwapResult, type IntentCancelFailedErrorData, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, IntentFilledEventAbi, type IntentFilledEventLog, type IntentPostExecutionFailedErrorData, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, type LimitOrderParams, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationServiceConstructorParams, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketConfigParams, MoneyMarketDataService, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketServiceConstructorParams, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, NearBaseSpokeProvider, NearRawSpokeProvider, type NearRawSpokeProviderConfig, type NearReturnType, NearSpokeProvider, type NearSpokeProviderType, type NearTransactionFailure, type NearTransactionResult, type NewbnUSDChainId, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeClaimAssetBalance, PartnerFeeClaimService, type PartnerFeeClaimServiceConfig, type PartnerFeeClaimServiceConstructorParams, type PartnerFeeClaimSwapParams, type PartnerFeeConfig, type PartnerFeePercentage, PartnerService, type PartnerServiceConfig, type PartnerServiceConstructorParams, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseNearRawTxReturnType, type PromiseNearTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, ProtocolIntentsAbi, type QueryMsg, type QueryResponse, type QuoteType, RAY, RAY_DECIMALS, type RateLimitConfig, type RawSpokeProvider, type RawSpokeProviderConfig, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResponseAddressType, type ResponseSigningType, type Result, type RewardInfoHumanized, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, type SetSwapPreferenceError, type SetSwapPreferenceParams, Sodax, type SodaxConfig, SolanaBaseSpokeProvider, type SolanaGasEstimate, SolanaRawSpokeProvider, type SolanaRawSpokeProviderConfig, type SolanaRawTransaction, type SolanaReturnType, type SolanaSpokeDepositParams, SolanaSpokeProvider, type SolanaSpokeProviderType, SolanaSpokeService, type SolanaTransferToHubParams, SolverApiService, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, type SonicAddressOrSpokeType, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicRawSpokeProviderConfig, type SonicSpokeDepositParams, SonicSpokeProvider, type SonicSpokeProviderType, SonicSpokeService, type SpokeDepositParams, type SpokeProvider, type SpokeProviderType, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StakeParams, type StakingAction, type StakingConfig, type StakingError, type StakingErrorCode, type StakingInfo, StakingLogic, type StakingParams, StakingService, type StakingServiceConstructorParams, type State, StellarBaseSpokeProvider, type StellarGasEstimate, StellarRawSpokeProvider, type StellarRawSpokeProviderConfig, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxExtraData, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawSpokeProviderConfig, type SuiRawTransaction, type SuiReturnType, type SuiSpokeDepositParams, SuiSpokeProvider, type SuiSpokeProviderType, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, SwapService, type SwapServiceConfig, type SwapServiceConstructorParams, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnknownIntentAutoSwapError, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakeSodaRequest, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserIntentsResponse, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type UserUnstakeInfo, VAULT_TOKEN_DECIMALS, type VaultReserves, type VerifyTxHashRawConfig, type VerifyTxHashRawConfigType, type VerifyTxHashRawEvmConfig, type VerifyTxHashRawNearConfig, type VerifyTxHashRawSolanaConfig, type VerifyTxHashRawStellarConfig, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitIntentAutoSwapError, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, constructRawSpokeProvider, convertTransactionInstructionToRaw, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubChainConfig, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, isAddressString, isBalnMigrateParams, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isCreateIntentAutoSwapError, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmRawSpokeProviderConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isHubSpokeProvider, isIconAddress, isIconRawSpokeProvider, isIconSpokeProvider, isIconSpokeProviderType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveRawSpokeProvider, isInjectiveSpokeProvider, isInjectiveSpokeProviderType, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketWithdrawUnknownError, isNearRawSpokeProvider, isNearRawSpokeProviderConfig, isNearSpokeProvider, isNearSpokeProviderType, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSetSwapPreferenceError, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaRawSpokeProviderConfig, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSolverErrorResponse, isSonicRawSpokeProvider, isSonicRawSpokeProviderConfig, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarRawSpokeProviderConfig, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isUnknownIntentAutoSwapError, isWaitIntentAutoSwapError, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizedToUsd, parseToStroops, parseTokenArrayFromJson, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, stakedSodaAbi, stakingRouterAbi, submitTransaction, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|
|
12159
|
+
export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type AssetEntry, type AutoSwapPreferences, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BitcoinBaseSpokeProvider, BitcoinRawSpokeProvider, type BitcoinSpokeDepositParams, BitcoinSpokeProvider, type BitcoinSpokeProviderType, BitcoinSpokeService, type BitcoinTransactionResult, type BitcoinTransferToHubParams, type BitcoinUTXO, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type BridgeServiceConstructorParams, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CallResponse, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentAutoSwapError, type CreateIntentParams, type CreateLimitOrderParams, type CustomProvider, CustomSorobanServer, CustomStellarAccount, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, type Default, type DepositSimulationParams, type DetailedLock, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, EvmBaseSpokeProvider, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, EvmHubProvider, type EvmHubProviderConfig, type EvmHubProviderConstructorParams, type EvmInitializedConfig, EvmRawSpokeProvider, type EvmRawSpokeProviderConfig, type EvmReturnType, EvmSolverService, type EvmSpokeDepositParams, EvmSpokeProvider, type EvmSpokeProviderType, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, type ExecuteIntentAutoSwapError, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FeeTokenApproveParams, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, type GasEstimateType, type GetAddressType, type GetChainConfigType, type GetEstimateGasReturnType, type GetIntentSubmitTxExtraDataParams, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, HubService, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawSpokeProviderConfig, type IconRawTransaction, type IconReturnType, type IconSpokeDepositParams, IconSpokeProvider, type IconSpokeProviderType, IconSpokeService, type IconTransferToHubParams, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, InjectiveBaseSpokeProvider, type InjectiveGasEstimate, InjectiveRawSpokeProvider, type InjectiveRawSpokeProviderConfig, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentAutoSwapErrorData, type IntentAutoSwapResult, type IntentCancelFailedErrorData, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, IntentFilledEventAbi, type IntentFilledEventLog, type IntentPostExecutionFailedErrorData, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, type LimitOrderParams, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationServiceConstructorParams, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketConfigParams, MoneyMarketDataService, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketServiceConstructorParams, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, NearBaseSpokeProvider, NearRawSpokeProvider, type NearRawSpokeProviderConfig, type NearReturnType, NearSpokeProvider, type NearSpokeProviderType, type NearTransactionFailure, type NearTransactionResult, type NewbnUSDChainId, type OnDemandPayload, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeClaimAssetBalance, PartnerFeeClaimService, type PartnerFeeClaimServiceConfig, type PartnerFeeClaimServiceConstructorParams, type PartnerFeeClaimSwapParams, type PartnerFeeConfig, type PartnerFeePercentage, PartnerService, type PartnerServiceConfig, type PartnerServiceConstructorParams, type Payload, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseNearRawTxReturnType, type PromiseNearTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, ProtocolIntentsAbi, type QueryMsg, type QueryResponse, type QuoteType, RAY, RAY_DECIMALS, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiConfig, RadfiProvider, type RadfiTradingWallet, type RadfiUtxo, type RadfiUtxoListResponse, type RadfiWalletBalance, type RateLimitConfig, type RawSpokeProvider, type RawSpokeProviderConfig, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResponseAddressType, type ResponseSigningType, type Result, type RewardInfoHumanized, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, type SetSwapPreferenceError, type SetSwapPreferenceParams, Sodax, type SodaxConfig, SolanaBaseSpokeProvider, type SolanaGasEstimate, SolanaRawSpokeProvider, type SolanaRawSpokeProviderConfig, type SolanaRawTransaction, type SolanaReturnType, type SolanaSpokeDepositParams, SolanaSpokeProvider, type SolanaSpokeProviderType, SolanaSpokeService, type SolanaTransferToHubParams, SolverApiService, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, type SonicAddressOrSpokeType, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicRawSpokeProviderConfig, type SonicSpokeDepositParams, SonicSpokeProvider, type SonicSpokeProviderType, SonicSpokeService, type SpokeDepositParams, type SpokeProvider, type SpokeProviderType, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StakeParams, type StakingAction, type StakingConfig, type StakingError, type StakingErrorCode, type StakingInfo, StakingLogic, type StakingParams, StakingService, type StakingServiceConstructorParams, type State, StellarBaseSpokeProvider, type StellarGasEstimate, StellarRawSpokeProvider, type StellarRawSpokeProviderConfig, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxExtraData, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawSpokeProviderConfig, type SuiRawTransaction, type SuiReturnType, type SuiSpokeDepositParams, SuiSpokeProvider, type SuiSpokeProviderType, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, SwapService, type SwapServiceConfig, type SwapServiceConstructorParams, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnknownIntentAutoSwapError, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakeSodaRequest, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserIntentsResponse, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type UserUnstakeInfo, VAULT_TOKEN_DECIMALS, type VaultReserves, type VerifyTxHashRawConfig, type VerifyTxHashRawConfigType, type VerifyTxHashRawEvmConfig, type VerifyTxHashRawNearConfig, type VerifyTxHashRawSolanaConfig, type VerifyTxHashRawStellarConfig, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitIntentAutoSwapError, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletMode, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, constructRawSpokeProvider, convertTransactionInstructionToRaw, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubChainConfig, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, isAddressString, isBalnMigrateParams, isBitcoinRawSpokeProvider, isBitcoinSpokeProvider, isBitcoinSpokeProviderType, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isCreateIntentAutoSwapError, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmRawSpokeProviderConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isHubSpokeProvider, isIconAddress, isIconRawSpokeProvider, isIconSpokeProvider, isIconSpokeProviderType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveRawSpokeProvider, isInjectiveSpokeProvider, isInjectiveSpokeProviderType, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketWithdrawUnknownError, isNearRawSpokeProvider, isNearRawSpokeProviderConfig, isNearSpokeProvider, isNearSpokeProviderType, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSetSwapPreferenceError, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaRawSpokeProviderConfig, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSolverErrorResponse, isSonicRawSpokeProvider, isSonicRawSpokeProviderConfig, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarRawSpokeProviderConfig, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isUnknownIntentAutoSwapError, isWaitIntentAutoSwapError, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizePsbtToBase64, normalizedToUsd, parseToStroops, parseTokenArrayFromJson, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, stakedSodaAbi, stakingRouterAbi, submitTransaction, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
|