@xswap-link/sdk 0.0.8 → 0.0.9
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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/package.json +1 -1
- package/src/models/Prices.ts +9 -0
- package/src/models/index.ts +1 -0
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -153,6 +153,15 @@ type ReferralInfo = {
|
|
|
153
153
|
ipAddress: string;
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
+
type Prices = {
|
|
157
|
+
blockchainId: string;
|
|
158
|
+
updatedAt: Date;
|
|
159
|
+
prices: TokenPrice;
|
|
160
|
+
};
|
|
161
|
+
type TokenPrice = {
|
|
162
|
+
[tokenAddress: string]: string;
|
|
163
|
+
};
|
|
164
|
+
|
|
156
165
|
declare const DEFAULT_API_URL = "https://xswap.link/api";
|
|
157
166
|
declare const DEFAULT_DB_ERROR = "No data for provided parameters";
|
|
158
167
|
declare const DEFAULT_ECOSYSTEM = Ecosystem.EVM;
|
|
@@ -358,4 +367,4 @@ declare const generateApproveTxData: (tokenAddress: string, spender: string, amo
|
|
|
358
367
|
data: string;
|
|
359
368
|
};
|
|
360
369
|
|
|
361
|
-
export { type AddReferralPayload, type ApiOverrides, type BridgeToken, type Chain, type CoinTypeAddress, type CollectFees, type ContractCall, DEFAULT_API_URL, DEFAULT_DB_ERROR, DEFAULT_ECOSYSTEM, DEFAULT_GAS_LIMIT_MULTIPLIER, DEFAULT_NATIVE_FEE_MULTIPLIER_PERCENTAGE, ERC20Abi, Ecosystem, Environment, type GetRoutePayload, type Protocol, type Referral, type ReferralInfo, type Route, type Token, Web3Environment, XSwapCallType, type XSwapFee, type XSwapFees, XSwapRouterAbi, generateApproveTxData, getBridgeTokens, getChainData, getChains, getRoute, getTokens, safeBigNumberFrom };
|
|
370
|
+
export { type AddReferralPayload, type ApiOverrides, type BridgeToken, type Chain, type CoinTypeAddress, type CollectFees, type ContractCall, DEFAULT_API_URL, DEFAULT_DB_ERROR, DEFAULT_ECOSYSTEM, DEFAULT_GAS_LIMIT_MULTIPLIER, DEFAULT_NATIVE_FEE_MULTIPLIER_PERCENTAGE, ERC20Abi, Ecosystem, Environment, type GetRoutePayload, type Prices, type Protocol, type Referral, type ReferralInfo, type Route, type Token, type TokenPrice, Web3Environment, XSwapCallType, type XSwapFee, type XSwapFees, XSwapRouterAbi, generateApproveTxData, getBridgeTokens, getChainData, getChains, getRoute, getTokens, safeBigNumberFrom };
|
package/dist/index.d.ts
CHANGED
|
@@ -153,6 +153,15 @@ type ReferralInfo = {
|
|
|
153
153
|
ipAddress: string;
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
+
type Prices = {
|
|
157
|
+
blockchainId: string;
|
|
158
|
+
updatedAt: Date;
|
|
159
|
+
prices: TokenPrice;
|
|
160
|
+
};
|
|
161
|
+
type TokenPrice = {
|
|
162
|
+
[tokenAddress: string]: string;
|
|
163
|
+
};
|
|
164
|
+
|
|
156
165
|
declare const DEFAULT_API_URL = "https://xswap.link/api";
|
|
157
166
|
declare const DEFAULT_DB_ERROR = "No data for provided parameters";
|
|
158
167
|
declare const DEFAULT_ECOSYSTEM = Ecosystem.EVM;
|
|
@@ -358,4 +367,4 @@ declare const generateApproveTxData: (tokenAddress: string, spender: string, amo
|
|
|
358
367
|
data: string;
|
|
359
368
|
};
|
|
360
369
|
|
|
361
|
-
export { type AddReferralPayload, type ApiOverrides, type BridgeToken, type Chain, type CoinTypeAddress, type CollectFees, type ContractCall, DEFAULT_API_URL, DEFAULT_DB_ERROR, DEFAULT_ECOSYSTEM, DEFAULT_GAS_LIMIT_MULTIPLIER, DEFAULT_NATIVE_FEE_MULTIPLIER_PERCENTAGE, ERC20Abi, Ecosystem, Environment, type GetRoutePayload, type Protocol, type Referral, type ReferralInfo, type Route, type Token, Web3Environment, XSwapCallType, type XSwapFee, type XSwapFees, XSwapRouterAbi, generateApproveTxData, getBridgeTokens, getChainData, getChains, getRoute, getTokens, safeBigNumberFrom };
|
|
370
|
+
export { type AddReferralPayload, type ApiOverrides, type BridgeToken, type Chain, type CoinTypeAddress, type CollectFees, type ContractCall, DEFAULT_API_URL, DEFAULT_DB_ERROR, DEFAULT_ECOSYSTEM, DEFAULT_GAS_LIMIT_MULTIPLIER, DEFAULT_NATIVE_FEE_MULTIPLIER_PERCENTAGE, ERC20Abi, Ecosystem, Environment, type GetRoutePayload, type Prices, type Protocol, type Referral, type ReferralInfo, type Route, type Token, type TokenPrice, Web3Environment, XSwapCallType, type XSwapFee, type XSwapFees, XSwapRouterAbi, generateApproveTxData, getBridgeTokens, getChainData, getChains, getRoute, getTokens, safeBigNumberFrom };
|
package/package.json
CHANGED
package/src/models/index.ts
CHANGED