@sodax/sdk 0.0.1-rc.3 → 0.0.1-rc.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +164 -11
- package/dist/index.cjs +16884 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +9780 -0
- package/dist/index.d.ts +9779 -9
- package/dist/index.mjs +16633 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +31 -32
- package/dist/abis/asset-manager.abi.d.ts +0 -418
- package/dist/abis/asset-manager.abi.d.ts.map +0 -1
- package/dist/abis/asset-manager.abi.js +0 -542
- package/dist/abis/asset-manager.abi.js.map +0 -1
- package/dist/abis/connection.abi.d.ts +0 -72
- package/dist/abis/connection.abi.d.ts.map +0 -1
- package/dist/abis/connection.abi.js +0 -92
- package/dist/abis/connection.abi.js.map +0 -1
- package/dist/abis/erc20.abi.d.ts +0 -236
- package/dist/abis/erc20.abi.d.ts.map +0 -1
- package/dist/abis/erc20.abi.js +0 -311
- package/dist/abis/erc20.abi.js.map +0 -1
- package/dist/abis/index.d.ts +0 -10
- package/dist/abis/index.d.ts.map +0 -1
- package/dist/abis/index.js +0 -10
- package/dist/abis/index.js.map +0 -1
- package/dist/abis/intents.abi.d.ts +0 -901
- package/dist/abis/intents.abi.d.ts.map +0 -1
- package/dist/abis/intents.abi.js +0 -1158
- package/dist/abis/intents.abi.js.map +0 -1
- package/dist/abis/pool.abi.d.ts +0 -626
- package/dist/abis/pool.abi.d.ts.map +0 -1
- package/dist/abis/pool.abi.js +0 -812
- package/dist/abis/pool.abi.js.map +0 -1
- package/dist/abis/spokeAssetManager.abi.d.ts +0 -169
- package/dist/abis/spokeAssetManager.abi.d.ts.map +0 -1
- package/dist/abis/spokeAssetManager.abi.js +0 -217
- package/dist/abis/spokeAssetManager.abi.js.map +0 -1
- package/dist/abis/uiPoolData.abi.d.ts +0 -369
- package/dist/abis/uiPoolData.abi.d.ts.map +0 -1
- package/dist/abis/uiPoolData.abi.js +0 -476
- package/dist/abis/uiPoolData.abi.js.map +0 -1
- package/dist/abis/vaultToken.abi.d.ts +0 -816
- package/dist/abis/vaultToken.abi.d.ts.map +0 -1
- package/dist/abis/vaultToken.abi.js +0 -1062
- package/dist/abis/vaultToken.abi.js.map +0 -1
- package/dist/abis/walletFactory.abi.d.ts +0 -20
- package/dist/abis/walletFactory.abi.d.ts.map +0 -1
- package/dist/abis/walletFactory.abi.js +0 -27
- package/dist/abis/walletFactory.abi.js.map +0 -1
- package/dist/constants.d.ts +0 -550
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -1154
- package/dist/constants.js.map +0 -1
- package/dist/constants.test.d.ts +0 -2
- package/dist/constants.test.d.ts.map +0 -1
- package/dist/constants.test.js +0 -129
- package/dist/constants.test.js.map +0 -1
- package/dist/entities/Providers.d.ts +0 -54
- package/dist/entities/Providers.d.ts.map +0 -1
- package/dist/entities/Providers.js +0 -51
- package/dist/entities/Providers.js.map +0 -1
- package/dist/entities/Sodax.d.ts +0 -23
- package/dist/entities/Sodax.d.ts.map +0 -1
- package/dist/entities/Sodax.js +0 -29
- package/dist/entities/Sodax.js.map +0 -1
- package/dist/entities/Sodax.test.d.ts +0 -2
- package/dist/entities/Sodax.test.d.ts.map +0 -1
- package/dist/entities/Sodax.test.js +0 -392
- package/dist/entities/Sodax.test.js.map +0 -1
- package/dist/entities/cosmos/CW20Token.d.ts +0 -39
- package/dist/entities/cosmos/CW20Token.d.ts.map +0 -1
- package/dist/entities/cosmos/CW20Token.js +0 -65
- package/dist/entities/cosmos/CW20Token.js.map +0 -1
- package/dist/entities/cosmos/CWSpokeProvider.d.ts +0 -92
- package/dist/entities/cosmos/CWSpokeProvider.d.ts.map +0 -1
- package/dist/entities/cosmos/CWSpokeProvider.js +0 -143
- package/dist/entities/cosmos/CWSpokeProvider.js.map +0 -1
- package/dist/entities/cosmos/CosmosWalletProvider.d.ts +0 -28
- package/dist/entities/cosmos/CosmosWalletProvider.d.ts.map +0 -1
- package/dist/entities/cosmos/CosmosWalletProvider.js +0 -102
- package/dist/entities/cosmos/CosmosWalletProvider.js.map +0 -1
- package/dist/entities/cosmos/InjectiveWalletProvider.d.ts +0 -25
- package/dist/entities/cosmos/InjectiveWalletProvider.d.ts.map +0 -1
- package/dist/entities/cosmos/InjectiveWalletProvider.js +0 -76
- package/dist/entities/cosmos/InjectiveWalletProvider.js.map +0 -1
- package/dist/entities/icon/HanaWalletConnector.d.ts +0 -36
- package/dist/entities/icon/HanaWalletConnector.d.ts.map +0 -1
- package/dist/entities/icon/HanaWalletConnector.js +0 -92
- package/dist/entities/icon/HanaWalletConnector.js.map +0 -1
- package/dist/entities/icon/IconSpokeProvider.d.ts +0 -10
- package/dist/entities/icon/IconSpokeProvider.d.ts.map +0 -1
- package/dist/entities/icon/IconSpokeProvider.js +0 -12
- package/dist/entities/icon/IconSpokeProvider.js.map +0 -1
- package/dist/entities/icon/index.d.ts +0 -4
- package/dist/entities/icon/index.d.ts.map +0 -1
- package/dist/entities/icon/index.js +0 -4
- package/dist/entities/icon/index.js.map +0 -1
- package/dist/entities/icon/utils.d.ts +0 -3
- package/dist/entities/icon/utils.d.ts.map +0 -1
- package/dist/entities/icon/utils.js +0 -4
- package/dist/entities/icon/utils.js.map +0 -1
- package/dist/entities/index.d.ts +0 -7
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -7
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/solana/Configs.d.ts +0 -10
- package/dist/entities/solana/Configs.d.ts.map +0 -1
- package/dist/entities/solana/Configs.js +0 -50
- package/dist/entities/solana/Configs.js.map +0 -1
- package/dist/entities/solana/SolanaSpokeProvider.d.ts +0 -9
- package/dist/entities/solana/SolanaSpokeProvider.d.ts.map +0 -1
- package/dist/entities/solana/SolanaSpokeProvider.js +0 -9
- package/dist/entities/solana/SolanaSpokeProvider.js.map +0 -1
- package/dist/entities/solana/SolanaWalletProvider.d.ts +0 -20
- package/dist/entities/solana/SolanaWalletProvider.d.ts.map +0 -1
- package/dist/entities/solana/SolanaWalletProvider.js +0 -53
- package/dist/entities/solana/SolanaWalletProvider.js.map +0 -1
- package/dist/entities/solana/index.d.ts +0 -4
- package/dist/entities/solana/index.d.ts.map +0 -1
- package/dist/entities/solana/index.js +0 -4
- package/dist/entities/solana/index.js.map +0 -1
- package/dist/entities/solana/pda/pda.d.ts +0 -45
- package/dist/entities/solana/pda/pda.d.ts.map +0 -1
- package/dist/entities/solana/pda/pda.js +0 -44
- package/dist/entities/solana/pda/pda.js.map +0 -1
- package/dist/entities/solana/types/asset_manager.d.ts +0 -919
- package/dist/entities/solana/types/asset_manager.d.ts.map +0 -1
- package/dist/entities/solana/types/asset_manager.js +0 -2
- package/dist/entities/solana/types/asset_manager.js.map +0 -1
- package/dist/entities/solana/types/connection.d.ts +0 -446
- package/dist/entities/solana/types/connection.d.ts.map +0 -1
- package/dist/entities/solana/types/connection.js +0 -2
- package/dist/entities/solana/types/connection.js.map +0 -1
- package/dist/entities/solana/types/rate_limit_contract.d.ts +0 -348
- package/dist/entities/solana/types/rate_limit_contract.d.ts.map +0 -1
- package/dist/entities/solana/types/rate_limit_contract.js +0 -2
- package/dist/entities/solana/types/rate_limit_contract.js.map +0 -1
- package/dist/entities/solana/utils/utils.d.ts +0 -6
- package/dist/entities/solana/utils/utils.d.ts.map +0 -1
- package/dist/entities/solana/utils/utils.js +0 -18
- package/dist/entities/solana/utils/utils.js.map +0 -1
- package/dist/entities/stellar/StellarSpokeProvider.d.ts +0 -17
- package/dist/entities/stellar/StellarSpokeProvider.d.ts.map +0 -1
- package/dist/entities/stellar/StellarSpokeProvider.js +0 -125
- package/dist/entities/stellar/StellarSpokeProvider.js.map +0 -1
- package/dist/entities/sui/SuiSpokeProvider.d.ts +0 -35
- package/dist/entities/sui/SuiSpokeProvider.d.ts.map +0 -1
- package/dist/entities/sui/SuiSpokeProvider.js +0 -145
- package/dist/entities/sui/SuiSpokeProvider.js.map +0 -1
- package/dist/errors.d.ts +0 -2
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -2
- package/dist/errors.js.map +0 -1
- package/dist/guards.d.ts +0 -25
- package/dist/guards.d.ts.map +0 -1
- package/dist/guards.js +0 -110
- package/dist/guards.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -10
- package/dist/index.js.map +0 -1
- package/dist/services/hub/EvmAssetManagerService.d.ts +0 -61
- package/dist/services/hub/EvmAssetManagerService.d.ts.map +0 -1
- package/dist/services/hub/EvmAssetManagerService.js +0 -103
- package/dist/services/hub/EvmAssetManagerService.js.map +0 -1
- package/dist/services/hub/EvmVaultTokenService.d.ts +0 -81
- package/dist/services/hub/EvmVaultTokenService.d.ts.map +0 -1
- package/dist/services/hub/EvmVaultTokenService.js +0 -161
- package/dist/services/hub/EvmVaultTokenService.js.map +0 -1
- package/dist/services/hub/EvmWalletAbstraction.d.ts +0 -9
- package/dist/services/hub/EvmWalletAbstraction.d.ts.map +0 -1
- package/dist/services/hub/EvmWalletAbstraction.js +0 -14
- package/dist/services/hub/EvmWalletAbstraction.js.map +0 -1
- package/dist/services/hub/index.d.ts +0 -4
- package/dist/services/hub/index.d.ts.map +0 -1
- package/dist/services/hub/index.js +0 -4
- package/dist/services/hub/index.js.map +0 -1
- package/dist/services/index.d.ts +0 -7
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/index.js +0 -7
- package/dist/services/index.js.map +0 -1
- package/dist/services/intentRelay/IntentRelayApiService.d.ts +0 -112
- package/dist/services/intentRelay/IntentRelayApiService.d.ts.map +0 -1
- package/dist/services/intentRelay/IntentRelayApiService.js +0 -160
- package/dist/services/intentRelay/IntentRelayApiService.js.map +0 -1
- package/dist/services/intentRelay/IntentRelayApiService.test.d.ts +0 -2
- package/dist/services/intentRelay/IntentRelayApiService.test.d.ts.map +0 -1
- package/dist/services/intentRelay/IntentRelayApiService.test.js +0 -134
- package/dist/services/intentRelay/IntentRelayApiService.test.js.map +0 -1
- package/dist/services/intentRelay/index.d.ts +0 -2
- package/dist/services/intentRelay/index.d.ts.map +0 -1
- package/dist/services/intentRelay/index.js +0 -2
- package/dist/services/intentRelay/index.js.map +0 -1
- package/dist/services/moneyMarket/MoneyMarketService.d.ts +0 -323
- package/dist/services/moneyMarket/MoneyMarketService.d.ts.map +0 -1
- package/dist/services/moneyMarket/MoneyMarketService.js +0 -612
- package/dist/services/moneyMarket/MoneyMarketService.js.map +0 -1
- package/dist/services/moneyMarket/MoneyMarketService.test.d.ts +0 -2
- package/dist/services/moneyMarket/MoneyMarketService.test.d.ts.map +0 -1
- package/dist/services/moneyMarket/MoneyMarketService.test.js +0 -262
- package/dist/services/moneyMarket/MoneyMarketService.test.js.map +0 -1
- package/dist/services/moneyMarket/index.d.ts +0 -2
- package/dist/services/moneyMarket/index.d.ts.map +0 -1
- package/dist/services/moneyMarket/index.js +0 -2
- package/dist/services/moneyMarket/index.js.map +0 -1
- package/dist/services/shared/Erc20Service.d.ts +0 -42
- package/dist/services/shared/Erc20Service.d.ts.map +0 -1
- package/dist/services/shared/Erc20Service.js +0 -108
- package/dist/services/shared/Erc20Service.js.map +0 -1
- package/dist/services/shared/index.d.ts +0 -2
- package/dist/services/shared/index.d.ts.map +0 -1
- package/dist/services/shared/index.js +0 -2
- package/dist/services/shared/index.js.map +0 -1
- package/dist/services/solver/EvmSolverService.d.ts +0 -125
- package/dist/services/solver/EvmSolverService.d.ts.map +0 -1
- package/dist/services/solver/EvmSolverService.js +0 -166
- package/dist/services/solver/EvmSolverService.js.map +0 -1
- package/dist/services/solver/SolverApiService.d.ts +0 -40
- package/dist/services/solver/SolverApiService.d.ts.map +0 -1
- package/dist/services/solver/SolverApiService.js +0 -157
- package/dist/services/solver/SolverApiService.js.map +0 -1
- package/dist/services/solver/SolverApiService.test.d.ts +0 -2
- package/dist/services/solver/SolverApiService.test.d.ts.map +0 -1
- package/dist/services/solver/SolverApiService.test.js +0 -181
- package/dist/services/solver/SolverApiService.test.js.map +0 -1
- package/dist/services/solver/SolverService.d.ts +0 -196
- package/dist/services/solver/SolverService.d.ts.map +0 -1
- package/dist/services/solver/SolverService.js +0 -329
- package/dist/services/solver/SolverService.js.map +0 -1
- package/dist/services/solver/SolverService.test.d.ts +0 -2
- package/dist/services/solver/SolverService.test.d.ts.map +0 -1
- package/dist/services/solver/SolverService.test.js +0 -439
- package/dist/services/solver/SolverService.test.js.map +0 -1
- package/dist/services/solver/index.d.ts +0 -3
- package/dist/services/solver/index.d.ts.map +0 -1
- package/dist/services/solver/index.js +0 -3
- package/dist/services/solver/index.js.map +0 -1
- package/dist/services/spoke/CWSpokeService.d.ts +0 -67
- package/dist/services/spoke/CWSpokeService.d.ts.map +0 -1
- package/dist/services/spoke/CWSpokeService.js +0 -75
- package/dist/services/spoke/CWSpokeService.js.map +0 -1
- package/dist/services/spoke/EvmSpokeService.d.ts +0 -62
- package/dist/services/spoke/EvmSpokeService.d.ts.map +0 -1
- package/dist/services/spoke/EvmSpokeService.js +0 -120
- package/dist/services/spoke/EvmSpokeService.js.map +0 -1
- package/dist/services/spoke/IconSpokeService.d.ts +0 -56
- package/dist/services/spoke/IconSpokeService.d.ts.map +0 -1
- package/dist/services/spoke/IconSpokeService.js +0 -124
- package/dist/services/spoke/IconSpokeService.js.map +0 -1
- package/dist/services/spoke/SolanaSpokeService.d.ts +0 -46
- package/dist/services/spoke/SolanaSpokeService.d.ts.map +0 -1
- package/dist/services/spoke/SolanaSpokeService.js +0 -170
- package/dist/services/spoke/SolanaSpokeService.js.map +0 -1
- package/dist/services/spoke/SpokeService.d.ts +0 -34
- package/dist/services/spoke/SpokeService.d.ts.map +0 -1
- package/dist/services/spoke/SpokeService.js +0 -102
- package/dist/services/spoke/SpokeService.js.map +0 -1
- package/dist/services/spoke/StellarSpokeService.d.ts +0 -35
- package/dist/services/spoke/StellarSpokeService.d.ts.map +0 -1
- package/dist/services/spoke/StellarSpokeService.js +0 -39
- package/dist/services/spoke/StellarSpokeService.js.map +0 -1
- package/dist/services/spoke/SuiSpokeService.d.ts +0 -69
- package/dist/services/spoke/SuiSpokeService.d.ts.map +0 -1
- package/dist/services/spoke/SuiSpokeService.js +0 -74
- package/dist/services/spoke/SuiSpokeService.js.map +0 -1
- package/dist/services/spoke/index.d.ts +0 -3
- package/dist/services/spoke/index.d.ts.map +0 -1
- package/dist/services/spoke/index.js +0 -3
- package/dist/services/spoke/index.js.map +0 -1
- package/dist/tests/services/hub/EvmAssetManagerService.test.d.ts +0 -2
- package/dist/tests/services/hub/EvmAssetManagerService.test.d.ts.map +0 -1
- package/dist/tests/services/hub/EvmAssetManagerService.test.js +0 -138
- package/dist/tests/services/hub/EvmAssetManagerService.test.js.map +0 -1
- package/dist/tests/services/hub/EvmMoneyMarketService.test.d.ts +0 -2
- package/dist/tests/services/hub/EvmMoneyMarketService.test.d.ts.map +0 -1
- package/dist/tests/services/hub/EvmMoneyMarketService.test.js +0 -121
- package/dist/tests/services/hub/EvmMoneyMarketService.test.js.map +0 -1
- package/dist/tests/services/hub/EvmVaultTokenService.test.d.ts +0 -2
- package/dist/tests/services/hub/EvmVaultTokenService.test.d.ts.map +0 -1
- package/dist/tests/services/hub/EvmVaultTokenService.test.js +0 -98
- package/dist/tests/services/hub/EvmVaultTokenService.test.js.map +0 -1
- package/dist/tests/services/spoke/EvmSpokeService.test.d.ts +0 -2
- package/dist/tests/services/spoke/EvmSpokeService.test.d.ts.map +0 -1
- package/dist/tests/services/spoke/EvmSpokeService.test.js +0 -198
- package/dist/tests/services/spoke/EvmSpokeService.test.js.map +0 -1
- package/dist/types.d.ts +0 -352
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -30
- package/dist/types.js.map +0 -1
- package/dist/utils/evm-utils.d.ts +0 -10
- package/dist/utils/evm-utils.d.ts.map +0 -1
- package/dist/utils/evm-utils.js +0 -15
- package/dist/utils/evm-utils.js.map +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -3
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/shared-utils.d.ts +0 -20
- package/dist/utils/shared-utils.d.ts.map +0 -1
- package/dist/utils/shared-utils.js +0 -69
- package/dist/utils/shared-utils.js.map +0 -1
- package/dist/utils/shared-utils.test.d.ts +0 -2
- package/dist/utils/shared-utils.test.d.ts.map +0 -1
- package/dist/utils/shared-utils.test.js +0 -63
- package/dist/utils/shared-utils.test.js.map +0 -1
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
|
2
|
-
import { submitTransaction, getTransactionPackets, getPacket, } from './IntentRelayApiService.js';
|
|
3
|
-
// Mock global fetch
|
|
4
|
-
const mockFetch = vi.fn();
|
|
5
|
-
global.fetch = mockFetch;
|
|
6
|
-
describe('IntentRelayApiService', () => {
|
|
7
|
-
const apiUrl = 'https://api.example.com/relay';
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
vi.resetAllMocks();
|
|
10
|
-
});
|
|
11
|
-
afterEach(() => {
|
|
12
|
-
vi.restoreAllMocks();
|
|
13
|
-
});
|
|
14
|
-
describe('submitTransaction', () => {
|
|
15
|
-
it('should call postRequest with submit action', async () => {
|
|
16
|
-
// Arrange
|
|
17
|
-
const mockResponse = {
|
|
18
|
-
success: true,
|
|
19
|
-
message: 'Transaction submitted',
|
|
20
|
-
};
|
|
21
|
-
mockFetch.mockResolvedValueOnce({
|
|
22
|
-
json: () => Promise.resolve(mockResponse),
|
|
23
|
-
});
|
|
24
|
-
const payload = {
|
|
25
|
-
action: 'submit',
|
|
26
|
-
params: {
|
|
27
|
-
chain_id: '1',
|
|
28
|
-
tx_hash: '0x123',
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
// Act
|
|
32
|
-
const result = await submitTransaction(payload, apiUrl);
|
|
33
|
-
// Assert
|
|
34
|
-
expect(mockFetch).toHaveBeenCalledTimes(1);
|
|
35
|
-
expect(result).toEqual(mockResponse);
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
it('should call postRequest with submit action and get failed response', async () => {
|
|
39
|
-
// Arrange
|
|
40
|
-
const mockResponse = {
|
|
41
|
-
success: false,
|
|
42
|
-
message: 'Invalid input parameters. must contain source_chain_id and tx_hash',
|
|
43
|
-
};
|
|
44
|
-
mockFetch.mockResolvedValueOnce({
|
|
45
|
-
json: () => Promise.resolve(mockResponse),
|
|
46
|
-
});
|
|
47
|
-
const payload = {
|
|
48
|
-
action: 'submit',
|
|
49
|
-
params: {
|
|
50
|
-
chain_id: '1',
|
|
51
|
-
tx_hash: '0x123',
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
// Act
|
|
55
|
-
const result = await submitTransaction(payload, apiUrl);
|
|
56
|
-
// Assert
|
|
57
|
-
expect(mockFetch).toHaveBeenCalledTimes(1);
|
|
58
|
-
expect(result).toEqual(mockResponse);
|
|
59
|
-
});
|
|
60
|
-
describe('getTransactionPackets', () => {
|
|
61
|
-
it('should call postRequest with get_transaction_packets action', async () => {
|
|
62
|
-
// Arrange
|
|
63
|
-
const mockResponse = {
|
|
64
|
-
success: true,
|
|
65
|
-
data: [
|
|
66
|
-
{
|
|
67
|
-
src_chain_id: 1,
|
|
68
|
-
src_tx_hash: '0x123',
|
|
69
|
-
src_address: '0xabc',
|
|
70
|
-
status: 'executed',
|
|
71
|
-
dst_chain_id: 2,
|
|
72
|
-
conn_sn: 1,
|
|
73
|
-
dst_address: '0xdef',
|
|
74
|
-
dst_tx_hash: '0x456',
|
|
75
|
-
signatures: ['sig1', 'sig2'],
|
|
76
|
-
payload: 'data',
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
};
|
|
80
|
-
mockFetch.mockResolvedValueOnce({
|
|
81
|
-
json: () => Promise.resolve(mockResponse),
|
|
82
|
-
});
|
|
83
|
-
const payload = {
|
|
84
|
-
action: 'get_transaction_packets',
|
|
85
|
-
params: {
|
|
86
|
-
chain_id: '1',
|
|
87
|
-
tx_hash: '0x123',
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
// Act
|
|
91
|
-
const result = await getTransactionPackets(payload, apiUrl);
|
|
92
|
-
// Assert
|
|
93
|
-
expect(mockFetch).toHaveBeenCalledTimes(1);
|
|
94
|
-
expect(result).toEqual(mockResponse);
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
describe('getPacket', () => {
|
|
98
|
-
it('should call postRequest with get_packet action', async () => {
|
|
99
|
-
// Arrange
|
|
100
|
-
const mockResponse = {
|
|
101
|
-
success: true,
|
|
102
|
-
data: {
|
|
103
|
-
src_chain_id: 1,
|
|
104
|
-
src_tx_hash: '0x123',
|
|
105
|
-
src_address: '0xabc',
|
|
106
|
-
status: 'executed',
|
|
107
|
-
dst_chain_id: 2,
|
|
108
|
-
conn_sn: 1,
|
|
109
|
-
dst_address: '0xdef',
|
|
110
|
-
dst_tx_hash: '0x456',
|
|
111
|
-
signatures: ['sig1', 'sig2'],
|
|
112
|
-
payload: 'data',
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
mockFetch.mockResolvedValueOnce({
|
|
116
|
-
json: () => Promise.resolve(mockResponse),
|
|
117
|
-
});
|
|
118
|
-
const payload = {
|
|
119
|
-
action: 'get_packet',
|
|
120
|
-
params: {
|
|
121
|
-
chain_id: '1',
|
|
122
|
-
tx_hash: '0x123',
|
|
123
|
-
conn_sn: '1',
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
// Act
|
|
127
|
-
const result = await getPacket(payload, apiUrl);
|
|
128
|
-
// Assert
|
|
129
|
-
expect(mockFetch).toHaveBeenCalledTimes(1);
|
|
130
|
-
expect(result).toEqual(mockResponse);
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
//# sourceMappingURL=IntentRelayApiService.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntentRelayApiService.test.js","sourceRoot":"","sources":["../../../src/services/intentRelay/IntentRelayApiService.test.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EAAE,GAAG;oBACb,OAAO,EAAE,OAAO;oBAChB,OAAO,EAAE,GAAG;iBACb;aACF,CAAC;YAEF,MAAM;YACN,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAEhD,SAAS;YACT,MAAM,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAC3C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/intentRelay/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/intentRelay/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
import { type Address, type Hex } from 'viem';
|
|
2
|
-
import type { EvmHubProvider, SpokeProvider } from '../../entities/index.js';
|
|
3
|
-
import { type RelayErrorCode } from '../../index.js';
|
|
4
|
-
import type { EvmContractCall, HttpUrl, MoneyMarketConfigParams, Result, TxReturnType } from '../../types.js';
|
|
5
|
-
import type { EvmRawTransactionReceipt } from '@sodax/types';
|
|
6
|
-
import { type SpokeChainId, type Token } from '@sodax/types';
|
|
7
|
-
export type AggregatedReserveData = {
|
|
8
|
-
underlyingAsset: Address;
|
|
9
|
-
name: string;
|
|
10
|
-
symbol: string;
|
|
11
|
-
decimals: bigint;
|
|
12
|
-
baseLTVasCollateral: bigint;
|
|
13
|
-
reserveLiquidationThreshold: bigint;
|
|
14
|
-
reserveLiquidationBonus: bigint;
|
|
15
|
-
reserveFactor: bigint;
|
|
16
|
-
usageAsCollateralEnabled: boolean;
|
|
17
|
-
borrowingEnabled: boolean;
|
|
18
|
-
isActive: boolean;
|
|
19
|
-
isFrozen: boolean;
|
|
20
|
-
liquidityIndex: bigint;
|
|
21
|
-
variableBorrowIndex: bigint;
|
|
22
|
-
liquidityRate: bigint;
|
|
23
|
-
variableBorrowRate: bigint;
|
|
24
|
-
lastUpdateTimestamp: number;
|
|
25
|
-
aTokenAddress: Address;
|
|
26
|
-
variableDebtTokenAddress: Address;
|
|
27
|
-
interestRateStrategyAddress: Address;
|
|
28
|
-
availableLiquidity: bigint;
|
|
29
|
-
totalScaledVariableDebt: bigint;
|
|
30
|
-
priceInMarketReferenceCurrency: bigint;
|
|
31
|
-
priceOracle: Address;
|
|
32
|
-
variableRateSlope1: bigint;
|
|
33
|
-
variableRateSlope2: bigint;
|
|
34
|
-
baseVariableBorrowRate: bigint;
|
|
35
|
-
optimalUsageRatio: bigint;
|
|
36
|
-
isPaused: boolean;
|
|
37
|
-
isSiloedBorrowing: boolean;
|
|
38
|
-
accruedToTreasury: bigint;
|
|
39
|
-
unbacked: bigint;
|
|
40
|
-
isolationModeTotalDebt: bigint;
|
|
41
|
-
flashLoanEnabled: boolean;
|
|
42
|
-
debtCeiling: bigint;
|
|
43
|
-
debtCeilingDecimals: bigint;
|
|
44
|
-
borrowCap: bigint;
|
|
45
|
-
supplyCap: bigint;
|
|
46
|
-
borrowableInIsolation: boolean;
|
|
47
|
-
virtualAccActive: boolean;
|
|
48
|
-
virtualUnderlyingBalance: bigint;
|
|
49
|
-
};
|
|
50
|
-
export type BaseCurrencyInfo = {
|
|
51
|
-
marketReferenceCurrencyUnit: bigint;
|
|
52
|
-
marketReferenceCurrencyPriceInUsd: bigint;
|
|
53
|
-
networkBaseTokenPriceInUsd: bigint;
|
|
54
|
-
networkBaseTokenPriceDecimals: number;
|
|
55
|
-
};
|
|
56
|
-
export type UserReserveData = {
|
|
57
|
-
underlyingAsset: string;
|
|
58
|
-
scaledATokenBalance: bigint;
|
|
59
|
-
usageAsCollateralEnabledOnUser: boolean;
|
|
60
|
-
scaledVariableDebt: bigint;
|
|
61
|
-
};
|
|
62
|
-
export type MoneyMarketEncodeSupplyParams = {
|
|
63
|
-
asset: Address;
|
|
64
|
-
amount: bigint;
|
|
65
|
-
onBehalfOf: Address;
|
|
66
|
-
referralCode: number;
|
|
67
|
-
};
|
|
68
|
-
export type MoneyMarketEncodeWithdrawParams = {
|
|
69
|
-
asset: Address;
|
|
70
|
-
amount: bigint;
|
|
71
|
-
to: Address;
|
|
72
|
-
};
|
|
73
|
-
export type MoneyMarketEncodeBorrowParams = {
|
|
74
|
-
asset: Address;
|
|
75
|
-
amount: bigint;
|
|
76
|
-
interestRateMode: bigint;
|
|
77
|
-
referralCode: number;
|
|
78
|
-
onBehalfOf: Address;
|
|
79
|
-
};
|
|
80
|
-
export type MoneyMarketEncodeRepayParams = {
|
|
81
|
-
asset: Address;
|
|
82
|
-
amount: bigint;
|
|
83
|
-
interestRateMode: bigint;
|
|
84
|
-
onBehalfOf: Address;
|
|
85
|
-
};
|
|
86
|
-
export type MoneyMarketEncodeRepayWithATokensParams = {
|
|
87
|
-
asset: Address;
|
|
88
|
-
amount: bigint;
|
|
89
|
-
interestRateMode: bigint;
|
|
90
|
-
};
|
|
91
|
-
export type MoneyMarketSupplyParams = {
|
|
92
|
-
token: string;
|
|
93
|
-
amount: bigint;
|
|
94
|
-
};
|
|
95
|
-
export type MoneyMarketBorrowParams = {
|
|
96
|
-
token: string;
|
|
97
|
-
amount: bigint;
|
|
98
|
-
};
|
|
99
|
-
export type MoneyMarketWithdrawParams = {
|
|
100
|
-
token: string;
|
|
101
|
-
amount: bigint;
|
|
102
|
-
};
|
|
103
|
-
export type MoneyMarketRepayParams = {
|
|
104
|
-
token: string;
|
|
105
|
-
amount: bigint;
|
|
106
|
-
};
|
|
107
|
-
export type MoneyMarketErrorCode = RelayErrorCode | 'UNKNOWN' | 'SUPPLY_FAILED' | 'BORROW_FAILED' | 'WITHDRAW_FAILED' | 'REPAY_FAILED';
|
|
108
|
-
export type MoneyMarketError = {
|
|
109
|
-
code: MoneyMarketErrorCode;
|
|
110
|
-
error: unknown;
|
|
111
|
-
};
|
|
112
|
-
export declare class MoneyMarketService {
|
|
113
|
-
private readonly config;
|
|
114
|
-
private readonly hubProvider;
|
|
115
|
-
constructor(config: MoneyMarketConfigParams | undefined, hubProvider: EvmHubProvider, relayerApiEndpoint?: HttpUrl);
|
|
116
|
-
/**
|
|
117
|
-
* Check whether assetManager contract is allowed to move the given payload amount
|
|
118
|
-
* @param {MoneyMarketRepayParams | MoneyMarketSupplyParams} params - Money market params
|
|
119
|
-
* @param {SpokeProvider} spokeProvider - The spoke provider
|
|
120
|
-
* @return {Promise<Result<boolean>>} - valid = true, invalid = false
|
|
121
|
-
*/
|
|
122
|
-
isAllowanceValid<S extends SpokeProvider>(params: MoneyMarketRepayParams | MoneyMarketSupplyParams, spokeProvider: S): Promise<Result<boolean>>;
|
|
123
|
-
/**
|
|
124
|
-
* Approve ERC20 amount spending
|
|
125
|
-
* @param token - ERC20 token address
|
|
126
|
-
* @param amount - Amount to approve
|
|
127
|
-
* @param spender - Spender address
|
|
128
|
-
* @param spokeProvider - Spoke provider
|
|
129
|
-
*/
|
|
130
|
-
approve<S extends SpokeProvider>(token: Address, amount: bigint, spender: Address, spokeProvider: S): Promise<Result<EvmRawTransactionReceipt>>;
|
|
131
|
-
/**
|
|
132
|
-
* Supply tokens to the money market pool and submit the intent to the Solver API
|
|
133
|
-
* @param params - The parameters for the supply transaction.
|
|
134
|
-
* @param spokeProvider - The spoke provider.
|
|
135
|
-
* @param timeout - The timeout in milliseconds for the transaction. Default is 20 seconds.
|
|
136
|
-
* @returns [spokeTxHash, hubTxHash]
|
|
137
|
-
*/
|
|
138
|
-
supplyAndSubmit<S extends SpokeProvider>(params: MoneyMarketSupplyParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
|
|
139
|
-
/**
|
|
140
|
-
* Supply tokens to the money market pool
|
|
141
|
-
* NOTE: This method does not submit the intent to the Solver API
|
|
142
|
-
* @param params - The parameters for the supply transaction.
|
|
143
|
-
* @param spokeProvider - The spoke provider.
|
|
144
|
-
* @param raw - Whether to return the raw transaction data.
|
|
145
|
-
* @returns The transaction result.
|
|
146
|
-
*/
|
|
147
|
-
supply<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketSupplyParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError>>;
|
|
148
|
-
/**
|
|
149
|
-
* Borrow tokens from the money market pool and submit the intent to the Solver API
|
|
150
|
-
* @param params - The parameters for the borrow transaction.
|
|
151
|
-
* @param spokeProvider - The spoke provider.
|
|
152
|
-
* @param timeout - The timeout in milliseconds for the transaction. Default is 20 seconds.
|
|
153
|
-
* @returns [spokeTxHash, hubTxHash]
|
|
154
|
-
*/
|
|
155
|
-
borrowAndSubmit<S extends SpokeProvider>(params: MoneyMarketSupplyParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
|
|
156
|
-
/**
|
|
157
|
-
* Borrow tokens from the money market pool
|
|
158
|
-
* NOTE: This method does not submit the intent to the Solver API
|
|
159
|
-
* @param params - The parameters for the borrow transaction.
|
|
160
|
-
* @param spokeProvider - The spoke provider.
|
|
161
|
-
* @param raw - Whether to return the raw transaction data.
|
|
162
|
-
* @returns The transaction result (raw transaction data or transaction hash).
|
|
163
|
-
*/
|
|
164
|
-
borrow<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketBorrowParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>;
|
|
165
|
-
/**
|
|
166
|
-
* Withdraw tokens from the money market pool and submit the intent to the Solver API
|
|
167
|
-
* @param params - The parameters for the withdraw transaction.
|
|
168
|
-
* @param spokeProvider - The spoke provider.
|
|
169
|
-
* @param timeout - The timeout in milliseconds for the transaction. Default is 20 seconds.
|
|
170
|
-
* @returns [spokeTxHash, hubTxHash]
|
|
171
|
-
*/
|
|
172
|
-
withdrawAndSubmit<S extends SpokeProvider>(params: MoneyMarketWithdrawParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
|
|
173
|
-
/**
|
|
174
|
-
* Withdraw tokens from the money market pool
|
|
175
|
-
* NOTE: This method does not submit the intent to the Solver API
|
|
176
|
-
* @param params - The parameters for the withdraw transaction.
|
|
177
|
-
* @param spokeProvider - The spoke provider.
|
|
178
|
-
* @param raw - Whether to return the raw transaction data.
|
|
179
|
-
* @returns The transaction result (raw transaction data or transaction hash).
|
|
180
|
-
*/
|
|
181
|
-
withdraw<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketWithdrawParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>;
|
|
182
|
-
/**
|
|
183
|
-
* Repay tokens to the money market pool and submit the intent to the Solver API
|
|
184
|
-
* @param params - The parameters for the repay transaction.
|
|
185
|
-
* @param spokeProvider - The spoke provider.
|
|
186
|
-
* @param timeout - The timeout in milliseconds for the transaction. Default is 20 seconds.
|
|
187
|
-
* @returns [spokeTxHash, hubTxHash]
|
|
188
|
-
*/
|
|
189
|
-
repayAndSubmit<S extends SpokeProvider>(params: MoneyMarketRepayParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
|
|
190
|
-
/**
|
|
191
|
-
* Repay tokens to the money market pool
|
|
192
|
-
* NOTE: This method does not submit the intent to the Solver API
|
|
193
|
-
* @param params - The parameters for the repay transaction.
|
|
194
|
-
* @param spokeProvider - The spoke provider.
|
|
195
|
-
* @param raw - Whether to return the raw transaction data.
|
|
196
|
-
* @returns The transaction result (raw transaction data or transaction hash).
|
|
197
|
-
*/
|
|
198
|
-
repay<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketRepayParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>;
|
|
199
|
-
/**
|
|
200
|
-
* Deposit tokens to the spoke chain and supply to the money market pool
|
|
201
|
-
* @param token - The address of the token on spoke chain
|
|
202
|
-
* @param to The user wallet address on the hub chain
|
|
203
|
-
* @param amount The amount to deposit
|
|
204
|
-
* @param spokeChainId The chain ID of the spoke chain
|
|
205
|
-
* @returns The transaction result (raw transaction data or transaction hash).
|
|
206
|
-
*/
|
|
207
|
-
supplyData(token: string, to: Address, amount: bigint, spokeChainId: SpokeChainId): Hex;
|
|
208
|
-
/**
|
|
209
|
-
* Borrow tokens from the money market pool
|
|
210
|
-
* @param from The user wallet address on the hub chain
|
|
211
|
-
* @param to The user wallet address on the spoke chain
|
|
212
|
-
* @param token The address of the token to borrow
|
|
213
|
-
* @param amount The amount to borrow in hub chain decimals
|
|
214
|
-
* @param spokeChainId The chain ID of the spoke chain
|
|
215
|
-
* @returns Transaction object
|
|
216
|
-
*/
|
|
217
|
-
borrowData(from: Address, to: Address | Hex, token: string, amount: bigint, spokeChainId: SpokeChainId): Hex;
|
|
218
|
-
/**
|
|
219
|
-
* Withdraw tokens from the money market pool
|
|
220
|
-
* @param from The user wallet address on the hub chain
|
|
221
|
-
* @param to The user wallet address on the spoke chain
|
|
222
|
-
* @param token The address of the token to borrow
|
|
223
|
-
* @param amount The amount to borrow in hub chain decimals
|
|
224
|
-
* @param spokeChainId The chain ID of the spoke chain
|
|
225
|
-
* @returns Transaction object
|
|
226
|
-
*/
|
|
227
|
-
withdrawData(from: Address, to: Address, token: string, amount: bigint, spokeChainId: SpokeChainId): Hex;
|
|
228
|
-
/**
|
|
229
|
-
* Repay tokens to the money market pool
|
|
230
|
-
* @param token The address of the token to repay
|
|
231
|
-
* @param to The user wallet address on the hub chain
|
|
232
|
-
* @param amount The amount to repay
|
|
233
|
-
* @param spokeChainId The chain ID of the spoke chain
|
|
234
|
-
* @param moneyMarketConfig The money market config
|
|
235
|
-
* @returns Transaction object
|
|
236
|
-
*/
|
|
237
|
-
repayData(token: string, to: Address, amount: bigint, spokeChainId: SpokeChainId): Hex;
|
|
238
|
-
/**
|
|
239
|
-
* Get the list of all reserves in the pool
|
|
240
|
-
* @param uiPoolDataProvider - The address of the UI Pool Data Provider
|
|
241
|
-
* @param poolAddressesProvider - The address of the Pool Addresses Provider
|
|
242
|
-
* @returns Array of reserve addresses
|
|
243
|
-
*/
|
|
244
|
-
getReservesList(uiPoolDataProvider: Address, poolAddressesProvider: Address): Promise<readonly Address[]>;
|
|
245
|
-
/**
|
|
246
|
-
* Get detailed data for all reserves in the pool
|
|
247
|
-
* @param uiPoolDataProvider - The address of the UI Pool Data Provider
|
|
248
|
-
* @param poolAddressesProvider - The address of the Pool Addresses Provider
|
|
249
|
-
* @returns Tuple containing array of reserve data and base currency info
|
|
250
|
-
*/
|
|
251
|
-
getReservesData(uiPoolDataProvider: Address, poolAddressesProvider: Address): Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>;
|
|
252
|
-
/**
|
|
253
|
-
* Get user-specific reserve data
|
|
254
|
-
* @param userAddress Address of the user
|
|
255
|
-
* @param uiPoolDataProvider - The address of the UI Pool Data Provider
|
|
256
|
-
* @param poolAddressesProvider - The address of the Pool Addresses Provider
|
|
257
|
-
* @returns Tuple containing array of user reserve data and eMode category ID
|
|
258
|
-
*/
|
|
259
|
-
getUserReservesData(userAddress: Address, uiPoolDataProvider: Address, poolAddressesProvider: Address): Promise<readonly [readonly UserReserveData[], number]>;
|
|
260
|
-
/**
|
|
261
|
-
* Encodes a supply transaction for a money market pool.
|
|
262
|
-
* @param {MoneyMarketEncodeWithdrawParams} params - The parameters for the supply transaction.
|
|
263
|
-
* @param {Address} lendingPool - The address of the lending pool contract.
|
|
264
|
-
* @returns {EvmContractCall} The encoded contract call.
|
|
265
|
-
*/
|
|
266
|
-
static encodeSupply(params: MoneyMarketEncodeSupplyParams, lendingPool: Address): EvmContractCall;
|
|
267
|
-
/**
|
|
268
|
-
* Encodes a withdraw transaction from a pool.
|
|
269
|
-
* @param {MoneyMarketEncodeWithdrawParams} params - The parameters for the withdraw transaction.
|
|
270
|
-
* @param {Address} params.asset - The address of the asset to withdraw.
|
|
271
|
-
* @param {bigint} params.amount - The amount of the asset to withdraw.
|
|
272
|
-
* @param {Address} params.to - The address that will receive the withdrawn assets.
|
|
273
|
-
* @param {Address} lendingPool - The address of the lending pool contract.
|
|
274
|
-
* @returns {EvmContractCall} The encoded contract call.
|
|
275
|
-
*/
|
|
276
|
-
static encodeWithdraw(params: MoneyMarketEncodeWithdrawParams, lendingPool: Address): EvmContractCall;
|
|
277
|
-
/**
|
|
278
|
-
* Encodes a borrow transaction from a pool.
|
|
279
|
-
* @param {MoneyMarketEncodeBorrowParams} params - The parameters for the borrow transaction.
|
|
280
|
-
* @param {Address} lendingPool - The address of the lending pool contract.
|
|
281
|
-
* @returns {EvmContractCall} The encoded contract call.
|
|
282
|
-
*/
|
|
283
|
-
static encodeBorrow(params: MoneyMarketEncodeBorrowParams, lendingPool: Address): EvmContractCall;
|
|
284
|
-
/**
|
|
285
|
-
* Encodes a repay transaction for a pool.
|
|
286
|
-
* @param {MoneyMarketEncodeRepayParams} params - The parameters for the repay transaction.
|
|
287
|
-
* @param {Address} params.asset - The address of the borrowed asset to repay.
|
|
288
|
-
* @param {bigint} params.amount - The amount to repay. Use type(uint256).max to repay the entire debt.
|
|
289
|
-
* @param {number} params.interestRateMode - The interest rate mode (2 for Variable).
|
|
290
|
-
* @param {Address} params.onBehalfOf - The address of the user who will get their debt reduced/removed.
|
|
291
|
-
* @param {Address} lendingPool - The address of the lending pool contract.
|
|
292
|
-
* @returns {EvmContractCall} The encoded contract call.
|
|
293
|
-
*/
|
|
294
|
-
static encodeRepay(params: MoneyMarketEncodeRepayParams, lendingPool: Address): EvmContractCall;
|
|
295
|
-
/**
|
|
296
|
-
* Encodes a repayWithATokens transaction for a pool.
|
|
297
|
-
* @param {MoneyMarketEncodeRepayWithATokensParams} params - The parameters for the repayWithATokens transaction.
|
|
298
|
-
* @param {Address} lendingPool - The address of the lending pool contract.
|
|
299
|
-
* @returns {EvmContractCall} The encoded contract call.
|
|
300
|
-
*/
|
|
301
|
-
static encodeRepayWithATokens(params: MoneyMarketEncodeRepayWithATokensParams, lendingPool: Address): EvmContractCall;
|
|
302
|
-
/**
|
|
303
|
-
* Encodes a setUserUseReserveAsCollateral transaction.
|
|
304
|
-
* @param asset - The address of the underlying asset to be used as collateral.
|
|
305
|
-
* @param useAsCollateral - True to enable the asset as collateral, false to disable.
|
|
306
|
-
* @param lendingPool - The address of lending pool contract
|
|
307
|
-
* @returns The encoded contract call.
|
|
308
|
-
*/
|
|
309
|
-
static encodeSetUserUseReserveAsCollateral(asset: Address, useAsCollateral: boolean, lendingPool: Address): EvmContractCall;
|
|
310
|
-
/**
|
|
311
|
-
* Get the list of all supported money market tokens (supply / borrow tokens) for a given spoke chain ID
|
|
312
|
-
* @param chainId The chain ID
|
|
313
|
-
* @returns Array of supported tokens
|
|
314
|
-
*/
|
|
315
|
-
getSupportedTokens(chainId: SpokeChainId): readonly Token[];
|
|
316
|
-
/**
|
|
317
|
-
* Get the list of all supported money market reserves (supply / borrow reserves)
|
|
318
|
-
* NOTE: reserve addresses are on the hub chain and can be of type vault, erc20, etc.
|
|
319
|
-
* @returns Array of supported reserves
|
|
320
|
-
*/
|
|
321
|
-
getSupportedReserves(): readonly Address[];
|
|
322
|
-
}
|
|
323
|
-
//# sourceMappingURL=MoneyMarketService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyMarketService.d.ts","sourceRoot":"","sources":["../../../src/services/moneyMarket/MoneyMarketService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,GAAG,EAAsB,MAAM,MAAM,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAYL,KAAK,cAAc,EAIpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,K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