@soroswap/sdk 0.0.1 → 0.1.1
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 +154 -105
- package/dist/auth/auth-manager.d.ts +1 -7
- package/dist/auth/auth-manager.d.ts.map +1 -1
- package/dist/auth/auth-manager.js +8 -9
- package/dist/auth/auth-manager.js.map +1 -1
- package/dist/cache/token-cache.d.ts +2 -2
- package/dist/cache/token-cache.d.ts.map +1 -1
- package/dist/cache/token-cache.js.map +1 -1
- package/dist/clients/http-client.d.ts +0 -15
- package/dist/clients/http-client.d.ts.map +1 -1
- package/dist/clients/http-client.js +9 -20
- package/dist/clients/http-client.js.map +1 -1
- package/dist/soroswap-sdk.d.ts +16 -28
- package/dist/soroswap-sdk.d.ts.map +1 -1
- package/dist/soroswap-sdk.js +15 -30
- package/dist/soroswap-sdk.js.map +1 -1
- package/dist/types/assets.d.ts +24 -0
- package/dist/types/assets.d.ts.map +1 -0
- package/dist/types/assets.js +3 -0
- package/dist/types/assets.js.map +1 -0
- package/dist/types/auth.d.ts +7 -5
- package/dist/types/auth.d.ts.map +1 -1
- package/dist/types/common.d.ts +10 -1
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +7 -1
- package/dist/types/common.js.map +1 -1
- package/dist/types/index.d.ts +4 -180
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -28
- package/dist/types/index.js.map +1 -1
- package/dist/types/pools.d.ts +60 -0
- package/dist/types/pools.d.ts.map +1 -0
- package/dist/types/pools.js +10 -0
- package/dist/types/pools.js.map +1 -0
- package/dist/types/price.d.ts +6 -0
- package/dist/types/price.d.ts.map +1 -0
- package/dist/types/price.js +3 -0
- package/dist/types/price.js.map +1 -0
- package/dist/types/quote.d.ts +9 -5
- package/dist/types/quote.d.ts.map +1 -1
- package/dist/types/send.d.ts +5 -0
- package/dist/types/send.d.ts.map +1 -0
- package/dist/types/send.js +3 -0
- package/dist/types/send.js.map +1 -0
- package/package.json +1 -1
package/dist/soroswap-sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AddLiquidityRequest, AssetList, AssetListInfo, BuildQuoteRequest, BuildQuoteResponse, LiquidityResponse, Pool, PriceData, QuoteRequest, QuoteResponse, RemoveLiquidityRequest, SoroswapSDKConfig, SupportedAssetLists, SupportedNetworks, UserPosition } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Main Soroswap SDK class
|
|
4
4
|
* Provides access to all Soroswap API functionality with automatic authentication
|
|
@@ -15,64 +15,52 @@ export declare class SoroswapSDK {
|
|
|
15
15
|
/**
|
|
16
16
|
* Get contract address for a specific network and contract name
|
|
17
17
|
*/
|
|
18
|
-
getContractAddress(network:
|
|
18
|
+
getContractAddress(network: SupportedNetworks, contractName: 'factory' | 'router' | 'aggregator'): Promise<{
|
|
19
|
+
address: string;
|
|
20
|
+
}>;
|
|
19
21
|
/**
|
|
20
22
|
* Get available protocols for trading
|
|
21
23
|
*/
|
|
22
|
-
getProtocols(network?:
|
|
24
|
+
getProtocols(network?: SupportedNetworks): Promise<string[]>;
|
|
23
25
|
/**
|
|
24
26
|
* Get quote for a swap
|
|
25
27
|
*/
|
|
26
|
-
quote(quoteRequest: QuoteRequest, network?:
|
|
28
|
+
quote(quoteRequest: QuoteRequest, network?: SupportedNetworks): Promise<QuoteResponse>;
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
30
|
+
* This builds the quote into an XDR transaction
|
|
29
31
|
*/
|
|
30
|
-
build(buildQuoteRequest:
|
|
32
|
+
build(buildQuoteRequest: BuildQuoteRequest, network?: SupportedNetworks): Promise<BuildQuoteResponse>;
|
|
31
33
|
/**
|
|
32
34
|
* Send signed transaction
|
|
33
35
|
*/
|
|
34
|
-
send(xdr: string,
|
|
36
|
+
send(xdr: string, launchtube?: boolean, network?: SupportedNetworks): Promise<any>;
|
|
35
37
|
/**
|
|
36
38
|
* Get pools for specific protocols
|
|
37
39
|
*/
|
|
38
|
-
getPools(network:
|
|
40
|
+
getPools(network: SupportedNetworks, protocols: string[], assetList?: SupportedAssetLists[]): Promise<Pool[]>;
|
|
39
41
|
/**
|
|
40
42
|
* Get pool for specific token pair
|
|
41
43
|
*/
|
|
42
|
-
getPoolByTokens(
|
|
44
|
+
getPoolByTokens(assetA: string, assetB: string, network: SupportedNetworks, protocols: string[]): Promise<Pool[]>;
|
|
43
45
|
/**
|
|
44
46
|
* Add liquidity to a pool
|
|
45
47
|
*/
|
|
46
|
-
addLiquidity(liquidityData:
|
|
47
|
-
xdr: string;
|
|
48
|
-
poolInfo: any;
|
|
49
|
-
}>;
|
|
48
|
+
addLiquidity(liquidityData: AddLiquidityRequest, network?: SupportedNetworks): Promise<LiquidityResponse>;
|
|
50
49
|
/**
|
|
51
50
|
* Remove liquidity from a pool
|
|
52
51
|
*/
|
|
53
|
-
removeLiquidity(liquidityData:
|
|
54
|
-
xdr: string;
|
|
55
|
-
poolInfo: any;
|
|
56
|
-
}>;
|
|
52
|
+
removeLiquidity(liquidityData: RemoveLiquidityRequest, network?: SupportedNetworks): Promise<LiquidityResponse>;
|
|
57
53
|
/**
|
|
58
54
|
* Get user liquidity positions
|
|
59
55
|
*/
|
|
60
|
-
getUserPositions(address: string, network?:
|
|
56
|
+
getUserPositions(address: string, network?: SupportedNetworks): Promise<UserPosition[]>;
|
|
61
57
|
/**
|
|
62
58
|
* Get asset lists metadata or specific asset list
|
|
63
59
|
*/
|
|
64
|
-
getAssetList(name?: SupportedAssetLists): Promise<
|
|
60
|
+
getAssetList(name?: SupportedAssetLists): Promise<AssetList[] | AssetListInfo[]>;
|
|
65
61
|
/**
|
|
66
62
|
* Get asset prices
|
|
67
63
|
*/
|
|
68
|
-
getPrice(assets: string | string[], network?:
|
|
69
|
-
/**
|
|
70
|
-
* Set default network for operations
|
|
71
|
-
*/
|
|
72
|
-
setDefaultNetwork(network: Network): void;
|
|
73
|
-
/**
|
|
74
|
-
* Get current default network
|
|
75
|
-
*/
|
|
76
|
-
getDefaultNetwork(): Network;
|
|
64
|
+
getPrice(assets: string | string[], network?: SupportedNetworks): Promise<PriceData[]>;
|
|
77
65
|
}
|
|
78
66
|
//# sourceMappingURL=soroswap-sdk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"soroswap-sdk.d.ts","sourceRoot":"","sources":["../src/soroswap-sdk.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"soroswap-sdk.d.ts","sourceRoot":"","sources":["../src/soroswap-sdk.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACb,MAAM,SAAS,CAAC;AAGjB;;;GAGG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,cAAc,CAAoB;gBAE9B,MAAM,EAAE,iBAAiB;IAsBrC;;OAEG;IACH,eAAe,IAAI,OAAO;IAI1B;;OAEG;IACG,kBAAkB,CACtB,OAAO,EAAE,iBAAiB,EAC1B,YAAY,EAAE,SAAS,GAAG,QAAQ,GAAG,YAAY,GAChD,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC;IAQ7B;;OAEG;IACG,YAAY,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAMlE;;OAEG;IACG,KAAK,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC;IAM5F;;OAEG;IACG,KAAK,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO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K = void 0;
|
|
4
4
|
const auth_manager_1 = require("./auth/auth-manager");
|
|
5
5
|
const http_client_1 = require("./clients/http-client");
|
|
6
|
+
const types_1 = require("./types");
|
|
6
7
|
/**
|
|
7
8
|
* Main Soroswap SDK class
|
|
8
9
|
* Provides access to all Soroswap API functionality with automatic authentication
|
|
9
10
|
*/
|
|
10
11
|
class SoroswapSDK {
|
|
11
12
|
constructor(config) {
|
|
12
|
-
this.defaultNetwork = config.defaultNetwork ||
|
|
13
|
+
this.defaultNetwork = config.defaultNetwork || types_1.SupportedNetworks.MAINNET;
|
|
13
14
|
// Initialize auth manager
|
|
14
15
|
this.authManager = new auth_manager_1.AuthManager({
|
|
15
16
|
email: config.email,
|
|
@@ -41,7 +42,7 @@ class SoroswapSDK {
|
|
|
41
42
|
* Get available protocols for trading
|
|
42
43
|
*/
|
|
43
44
|
async getProtocols(network) {
|
|
44
|
-
const params =
|
|
45
|
+
const params = { network: network || this.defaultNetwork };
|
|
45
46
|
const url = this.httpClient.buildUrlWithQuery('/protocols', params);
|
|
46
47
|
return this.httpClient.get(url);
|
|
47
48
|
}
|
|
@@ -49,25 +50,25 @@ class SoroswapSDK {
|
|
|
49
50
|
* Get quote for a swap
|
|
50
51
|
*/
|
|
51
52
|
async quote(quoteRequest, network) {
|
|
52
|
-
const params =
|
|
53
|
+
const params = { network: network || this.defaultNetwork };
|
|
53
54
|
const url = this.httpClient.buildUrlWithQuery('/quote', params);
|
|
54
55
|
return this.httpClient.post(url, quoteRequest);
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
+
* This builds the quote into an XDR transaction
|
|
58
59
|
*/
|
|
59
60
|
async build(buildQuoteRequest, network) {
|
|
60
|
-
const params =
|
|
61
|
+
const params = { network: network || this.defaultNetwork };
|
|
61
62
|
const url = this.httpClient.buildUrlWithQuery('/quote/build', params);
|
|
62
63
|
return this.httpClient.post(url, buildQuoteRequest);
|
|
63
64
|
}
|
|
64
65
|
/**
|
|
65
66
|
* Send signed transaction
|
|
66
67
|
*/
|
|
67
|
-
async send(xdr,
|
|
68
|
-
const params =
|
|
68
|
+
async send(xdr, launchtube = false, network) {
|
|
69
|
+
const params = { network: network || this.defaultNetwork };
|
|
69
70
|
const url = this.httpClient.buildUrlWithQuery('/send', params);
|
|
70
|
-
const sendData = { xdr,
|
|
71
|
+
const sendData = { xdr, launchtube };
|
|
71
72
|
return this.httpClient.post(url, sendData);
|
|
72
73
|
}
|
|
73
74
|
// ========================================
|
|
@@ -90,12 +91,12 @@ class SoroswapSDK {
|
|
|
90
91
|
/**
|
|
91
92
|
* Get pool for specific token pair
|
|
92
93
|
*/
|
|
93
|
-
async getPoolByTokens(
|
|
94
|
+
async getPoolByTokens(assetA, assetB, network, protocols) {
|
|
94
95
|
const params = {
|
|
95
96
|
network,
|
|
96
97
|
protocol: protocols
|
|
97
98
|
};
|
|
98
|
-
const url = this.httpClient.buildUrlWithQuery(`/pools/${
|
|
99
|
+
const url = this.httpClient.buildUrlWithQuery(`/pools/${assetA}/${assetB}`, params);
|
|
99
100
|
return this.httpClient.get(url);
|
|
100
101
|
}
|
|
101
102
|
// ========================================
|
|
@@ -105,7 +106,7 @@ class SoroswapSDK {
|
|
|
105
106
|
* Add liquidity to a pool
|
|
106
107
|
*/
|
|
107
108
|
async addLiquidity(liquidityData, network) {
|
|
108
|
-
const params =
|
|
109
|
+
const params = { network: network || this.defaultNetwork };
|
|
109
110
|
const url = this.httpClient.buildUrlWithQuery('/liquidity/add', params);
|
|
110
111
|
return this.httpClient.post(url, liquidityData);
|
|
111
112
|
}
|
|
@@ -113,7 +114,7 @@ class SoroswapSDK {
|
|
|
113
114
|
* Remove liquidity from a pool
|
|
114
115
|
*/
|
|
115
116
|
async removeLiquidity(liquidityData, network) {
|
|
116
|
-
const params =
|
|
117
|
+
const params = { network: network || this.defaultNetwork };
|
|
117
118
|
const url = this.httpClient.buildUrlWithQuery('/liquidity/remove', params);
|
|
118
119
|
return this.httpClient.post(url, liquidityData);
|
|
119
120
|
}
|
|
@@ -121,7 +122,7 @@ class SoroswapSDK {
|
|
|
121
122
|
* Get user liquidity positions
|
|
122
123
|
*/
|
|
123
124
|
async getUserPositions(address, network) {
|
|
124
|
-
const params =
|
|
125
|
+
const params = { network: network || this.defaultNetwork };
|
|
125
126
|
const url = this.httpClient.buildUrlWithQuery(`/liquidity/positions/${address}`, params);
|
|
126
127
|
return this.httpClient.get(url);
|
|
127
128
|
}
|
|
@@ -144,30 +145,14 @@ class SoroswapSDK {
|
|
|
144
145
|
/**
|
|
145
146
|
* Get asset prices
|
|
146
147
|
*/
|
|
147
|
-
async getPrice(assets, network
|
|
148
|
+
async getPrice(assets, network) {
|
|
148
149
|
const params = {
|
|
149
150
|
network: network || this.defaultNetwork,
|
|
150
151
|
asset: Array.isArray(assets) ? assets : [assets],
|
|
151
|
-
referenceCurrency
|
|
152
152
|
};
|
|
153
153
|
const url = this.httpClient.buildUrlWithQuery('/price', params);
|
|
154
154
|
return this.httpClient.get(url);
|
|
155
155
|
}
|
|
156
|
-
// ========================================
|
|
157
|
-
// Utility Methods
|
|
158
|
-
// ========================================
|
|
159
|
-
/**
|
|
160
|
-
* Set default network for operations
|
|
161
|
-
*/
|
|
162
|
-
setDefaultNetwork(network) {
|
|
163
|
-
this.defaultNetwork = network;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Get current default network
|
|
167
|
-
*/
|
|
168
|
-
getDefaultNetwork() {
|
|
169
|
-
return this.defaultNetwork;
|
|
170
|
-
}
|
|
171
156
|
}
|
|
172
157
|
exports.SoroswapSDK = SoroswapSDK;
|
|
173
158
|
//# sourceMappingURL=soroswap-sdk.js.map
|
package/dist/soroswap-sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"soroswap-sdk.js","sourceRoot":"","sources":["../src/soroswap-sdk.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAClD,uDAAmD;
|
|
1
|
+
{"version":3,"file":"soroswap-sdk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,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;SACjD,CAAC;QAEF,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAc,GAAG,CAAC,CAAC;IAC/C,CAAC;CACF;AA1MD,kCA0MC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface AssetInfo {
|
|
2
|
+
code: string;
|
|
3
|
+
issuer: string;
|
|
4
|
+
contract?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
org?: string;
|
|
7
|
+
domain?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
decimals?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface AssetList {
|
|
12
|
+
name: string;
|
|
13
|
+
provider?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
version?: string;
|
|
16
|
+
feedback?: string;
|
|
17
|
+
network?: string;
|
|
18
|
+
assets: AssetInfo[];
|
|
19
|
+
}
|
|
20
|
+
export interface AssetListInfo {
|
|
21
|
+
name: string;
|
|
22
|
+
url: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/types/assets.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../../src/types/assets.ts"],"names":[],"mappings":""}
|
package/dist/types/auth.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export interface AuthRegisterDto {
|
|
2
|
-
username: string;
|
|
3
|
-
password: string;
|
|
4
|
-
email: string;
|
|
5
|
-
}
|
|
6
1
|
export interface AuthLoginDto {
|
|
7
2
|
email: string;
|
|
8
3
|
password: string;
|
|
@@ -13,4 +8,11 @@ export interface AuthResponse {
|
|
|
13
8
|
access_token: string;
|
|
14
9
|
refresh_token: string;
|
|
15
10
|
}
|
|
11
|
+
export interface JWTData {
|
|
12
|
+
access_token: string;
|
|
13
|
+
refresh_token: string;
|
|
14
|
+
expires_at: number;
|
|
15
|
+
username: string;
|
|
16
|
+
role: string;
|
|
17
|
+
}
|
|
16
18
|
//# sourceMappingURL=auth.d.ts.map
|
package/dist/types/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,OAAO;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
package/dist/types/common.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare enum TradeType {
|
|
2
|
+
EXACT_IN = "EXACT_IN",
|
|
3
|
+
EXACT_OUT = "EXACT_OUT"
|
|
4
|
+
}
|
|
2
5
|
export declare enum SupportedAssetLists {
|
|
3
6
|
SOROSWAP = "https://raw.githubusercontent.com/soroswap/token-list/main/tokenList.json",
|
|
4
7
|
STELLAR_EXPERT = "https://api.stellar.expert/explorer/public/asset-list/top50",
|
|
@@ -21,4 +24,10 @@ export declare enum SupportedProtocols {
|
|
|
21
24
|
COMET = "comet",
|
|
22
25
|
SDEX = "sdex"
|
|
23
26
|
}
|
|
27
|
+
export interface SoroswapSDKConfig {
|
|
28
|
+
email: string;
|
|
29
|
+
password: string;
|
|
30
|
+
defaultNetwork?: SupportedNetworks;
|
|
31
|
+
timeout?: number;
|
|
32
|
+
}
|
|
24
33
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AACA,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAGD,oBAAY,mBAAmB;IAC7B,QAAQ,8EAA8E;IACtF,cAAc,gEAAgE;IAC9E,MAAM,qDAAqD;IAC3D,IAAI,0EAA0E;CAC/E;AAED,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,MAAM,WAAW;CAClB;AAED,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,kBAAkB;IAC5B,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/dist/types/common.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SupportedProtocols = exports.SupportedNetworks = exports.SupportedPlatforms = exports.SupportedAssetLists = void 0;
|
|
3
|
+
exports.SupportedProtocols = exports.SupportedNetworks = exports.SupportedPlatforms = exports.SupportedAssetLists = exports.TradeType = void 0;
|
|
4
|
+
// Trade types
|
|
5
|
+
var TradeType;
|
|
6
|
+
(function (TradeType) {
|
|
7
|
+
TradeType["EXACT_IN"] = "EXACT_IN";
|
|
8
|
+
TradeType["EXACT_OUT"] = "EXACT_OUT";
|
|
9
|
+
})(TradeType || (exports.TradeType = TradeType = {}));
|
|
4
10
|
// Asset list types
|
|
5
11
|
var SupportedAssetLists;
|
|
6
12
|
(function (SupportedAssetLists) {
|
package/dist/types/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":";;;AAAA,cAAc;AACd,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;AACzB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAED,mBAAmB;AACnB,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,6GAAsF,CAAA;IACtF,qGAA8E,CAAA;IAC9E,kFAA2D,CAAA;IAC3D,qGAA8E,CAAA;AAChF,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,+CAAyB,CAAA;IACzB,uCAAiB,CAAA;AACnB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;AACrB,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,mCAAa,CAAA;AACf,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,184 +1,8 @@
|
|
|
1
|
+
export * from './assets';
|
|
1
2
|
export * from './auth';
|
|
2
3
|
export * from './common';
|
|
4
|
+
export * from './pools';
|
|
5
|
+
export * from './price';
|
|
3
6
|
export * from './quote';
|
|
4
|
-
export
|
|
5
|
-
export type TradeType = 'EXACT_IN' | 'EXACT_OUT';
|
|
6
|
-
export declare enum SupportedAssetLists {
|
|
7
|
-
SOROSWAP = "https://raw.githubusercontent.com/soroswap/token-list/main/tokenList.json",
|
|
8
|
-
STELLAR_EXPERT = "https://api.stellar.expert/explorer/public/asset-list/top50",
|
|
9
|
-
LOBSTR = "https://lobstr.co/api/v1/sep/assets/curated.json",
|
|
10
|
-
AQUA = "https://amm-api.aqua.network/tokens/?format=json&pooled=true&size=200"
|
|
11
|
-
}
|
|
12
|
-
export declare enum SupportedPlatforms {
|
|
13
|
-
SDEX = "sdex",
|
|
14
|
-
AGGREGATOR = "aggregator",
|
|
15
|
-
ROUTER = "router"
|
|
16
|
-
}
|
|
17
|
-
export declare enum SupportedNetworks {
|
|
18
|
-
TESTNET = "testnet",
|
|
19
|
-
MAINNET = "mainnet"
|
|
20
|
-
}
|
|
21
|
-
export declare enum SupportedProtocols {
|
|
22
|
-
SOROSWAP = "soroswap",
|
|
23
|
-
PHOENIX = "phoenix",
|
|
24
|
-
AQUA = "aqua",
|
|
25
|
-
COMET = "comet",
|
|
26
|
-
SDEX = "sdex"
|
|
27
|
-
}
|
|
28
|
-
export interface AuthRegisterDto {
|
|
29
|
-
username: string;
|
|
30
|
-
password: string;
|
|
31
|
-
email: string;
|
|
32
|
-
}
|
|
33
|
-
export interface AuthLoginDto {
|
|
34
|
-
email: string;
|
|
35
|
-
password: string;
|
|
36
|
-
}
|
|
37
|
-
export interface AuthResponse {
|
|
38
|
-
username: string;
|
|
39
|
-
role: string;
|
|
40
|
-
access_token: string;
|
|
41
|
-
refresh_token: string;
|
|
42
|
-
}
|
|
43
|
-
export interface QuoteRequest {
|
|
44
|
-
assetIn: string;
|
|
45
|
-
assetOut: string;
|
|
46
|
-
amount: bigint;
|
|
47
|
-
tradeType: TradeType;
|
|
48
|
-
protocols: SupportedProtocols[];
|
|
49
|
-
parts?: number;
|
|
50
|
-
slippageTolerance?: string;
|
|
51
|
-
maxHops?: number;
|
|
52
|
-
assetList?: SupportedAssetLists[];
|
|
53
|
-
feeBps?: number;
|
|
54
|
-
}
|
|
55
|
-
export interface BuildQuoteDto {
|
|
56
|
-
quote: QuoteResponse;
|
|
57
|
-
referralId?: string;
|
|
58
|
-
from?: string;
|
|
59
|
-
to?: string;
|
|
60
|
-
}
|
|
61
|
-
export interface PriceImpact {
|
|
62
|
-
numerator: string;
|
|
63
|
-
denominator: string;
|
|
64
|
-
}
|
|
65
|
-
export interface TradeDistribution {
|
|
66
|
-
protocol_id: string;
|
|
67
|
-
path: string[];
|
|
68
|
-
parts: number;
|
|
69
|
-
is_exact_in: boolean;
|
|
70
|
-
}
|
|
71
|
-
export interface Trade {
|
|
72
|
-
amountIn: string;
|
|
73
|
-
amountOutMin: string;
|
|
74
|
-
expectedAmountOut: string;
|
|
75
|
-
distribution: TradeDistribution[];
|
|
76
|
-
}
|
|
77
|
-
export interface QuoteResponse {
|
|
78
|
-
assetIn: string;
|
|
79
|
-
assetOut: string;
|
|
80
|
-
tradeType: TradeType;
|
|
81
|
-
priceImpact: PriceImpact;
|
|
82
|
-
trade: Trade;
|
|
83
|
-
feeBps?: number;
|
|
84
|
-
feeAmount?: string;
|
|
85
|
-
xdr?: string;
|
|
86
|
-
}
|
|
87
|
-
export interface SendXdrDto {
|
|
88
|
-
xdr: string;
|
|
89
|
-
fee: number;
|
|
90
|
-
}
|
|
91
|
-
export interface SendResponse {
|
|
92
|
-
hash: string;
|
|
93
|
-
status: string;
|
|
94
|
-
}
|
|
95
|
-
export interface Pool {
|
|
96
|
-
protocol: string;
|
|
97
|
-
address: string;
|
|
98
|
-
tokenA: string;
|
|
99
|
-
tokenB: string;
|
|
100
|
-
reserveA: string;
|
|
101
|
-
reserveB: string;
|
|
102
|
-
ledger: number;
|
|
103
|
-
}
|
|
104
|
-
export interface Asset {
|
|
105
|
-
name: string;
|
|
106
|
-
contract: string;
|
|
107
|
-
code: string;
|
|
108
|
-
icon: string;
|
|
109
|
-
decimals: number;
|
|
110
|
-
issuer?: string;
|
|
111
|
-
}
|
|
112
|
-
export interface TokensByNetwork {
|
|
113
|
-
network: string;
|
|
114
|
-
assets: Asset[];
|
|
115
|
-
}
|
|
116
|
-
export interface AddLiquidityDto {
|
|
117
|
-
assetA: string;
|
|
118
|
-
assetB: string;
|
|
119
|
-
amountA: string;
|
|
120
|
-
amountB: string;
|
|
121
|
-
to: string;
|
|
122
|
-
slippageTolerance?: string;
|
|
123
|
-
}
|
|
124
|
-
export interface RemoveLiquidityDto {
|
|
125
|
-
assetA: string;
|
|
126
|
-
assetB: string;
|
|
127
|
-
liquidity: string;
|
|
128
|
-
amountA: string;
|
|
129
|
-
amountB: string;
|
|
130
|
-
to: string;
|
|
131
|
-
slippageTolerance?: string;
|
|
132
|
-
}
|
|
133
|
-
export interface UserPosition {
|
|
134
|
-
poolInfo: Pool;
|
|
135
|
-
userPosition: string;
|
|
136
|
-
}
|
|
137
|
-
export interface HealthStatus {
|
|
138
|
-
indexer: {
|
|
139
|
-
mainnet: string[];
|
|
140
|
-
testnet: string[];
|
|
141
|
-
};
|
|
142
|
-
reachable: boolean;
|
|
143
|
-
}
|
|
144
|
-
export interface HealthResponse {
|
|
145
|
-
status: HealthStatus;
|
|
146
|
-
}
|
|
147
|
-
export interface ContractResponse {
|
|
148
|
-
address: string;
|
|
149
|
-
}
|
|
150
|
-
export interface AssetListMetadata {
|
|
151
|
-
name: string;
|
|
152
|
-
url: string;
|
|
153
|
-
}
|
|
154
|
-
export interface AssetListDetail {
|
|
155
|
-
name: string;
|
|
156
|
-
provider: string;
|
|
157
|
-
description: string;
|
|
158
|
-
assets: Asset[];
|
|
159
|
-
}
|
|
160
|
-
export interface PriceData {
|
|
161
|
-
asset: string;
|
|
162
|
-
referenceCurrency: string;
|
|
163
|
-
price: string;
|
|
164
|
-
}
|
|
165
|
-
export interface SoroswapSDKConfig {
|
|
166
|
-
email: string;
|
|
167
|
-
password: string;
|
|
168
|
-
defaultNetwork?: Network;
|
|
169
|
-
timeout?: number;
|
|
170
|
-
}
|
|
171
|
-
export interface APIError {
|
|
172
|
-
message: string;
|
|
173
|
-
statusCode: number;
|
|
174
|
-
timestamp?: string;
|
|
175
|
-
path?: string;
|
|
176
|
-
}
|
|
177
|
-
export interface TokenData {
|
|
178
|
-
access_token: string;
|
|
179
|
-
refresh_token: string;
|
|
180
|
-
expires_at: number;
|
|
181
|
-
username: string;
|
|
182
|
-
role: string;
|
|
183
|
-
}
|
|
7
|
+
export * from './send';
|
|
184
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -14,35 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
17
|
+
__exportStar(require("./assets"), exports);
|
|
18
18
|
__exportStar(require("./auth"), exports);
|
|
19
19
|
__exportStar(require("./common"), exports);
|
|
20
|
+
__exportStar(require("./pools"), exports);
|
|
21
|
+
__exportStar(require("./price"), exports);
|
|
20
22
|
__exportStar(require("./quote"), exports);
|
|
21
|
-
|
|
22
|
-
var SupportedAssetLists;
|
|
23
|
-
(function (SupportedAssetLists) {
|
|
24
|
-
SupportedAssetLists["SOROSWAP"] = "https://raw.githubusercontent.com/soroswap/token-list/main/tokenList.json";
|
|
25
|
-
SupportedAssetLists["STELLAR_EXPERT"] = "https://api.stellar.expert/explorer/public/asset-list/top50";
|
|
26
|
-
SupportedAssetLists["LOBSTR"] = "https://lobstr.co/api/v1/sep/assets/curated.json";
|
|
27
|
-
SupportedAssetLists["AQUA"] = "https://amm-api.aqua.network/tokens/?format=json&pooled=true&size=200";
|
|
28
|
-
})(SupportedAssetLists || (exports.SupportedAssetLists = SupportedAssetLists = {}));
|
|
29
|
-
var SupportedPlatforms;
|
|
30
|
-
(function (SupportedPlatforms) {
|
|
31
|
-
SupportedPlatforms["SDEX"] = "sdex";
|
|
32
|
-
SupportedPlatforms["AGGREGATOR"] = "aggregator";
|
|
33
|
-
SupportedPlatforms["ROUTER"] = "router";
|
|
34
|
-
})(SupportedPlatforms || (exports.SupportedPlatforms = SupportedPlatforms = {}));
|
|
35
|
-
var SupportedNetworks;
|
|
36
|
-
(function (SupportedNetworks) {
|
|
37
|
-
SupportedNetworks["TESTNET"] = "testnet";
|
|
38
|
-
SupportedNetworks["MAINNET"] = "mainnet";
|
|
39
|
-
})(SupportedNetworks || (exports.SupportedNetworks = SupportedNetworks = {}));
|
|
40
|
-
var SupportedProtocols;
|
|
41
|
-
(function (SupportedProtocols) {
|
|
42
|
-
SupportedProtocols["SOROSWAP"] = "soroswap";
|
|
43
|
-
SupportedProtocols["PHOENIX"] = "phoenix";
|
|
44
|
-
SupportedProtocols["AQUA"] = "aqua";
|
|
45
|
-
SupportedProtocols["COMET"] = "comet";
|
|
46
|
-
SupportedProtocols["SDEX"] = "sdex";
|
|
47
|
-
})(SupportedProtocols || (exports.SupportedProtocols = SupportedProtocols = {}));
|
|
23
|
+
__exportStar(require("./send"), exports);
|
|
48
24
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB"}
|