@aspan/sdk 0.5.2 → 0.5.3
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/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
- package/src/index.ts +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -2844,13 +2844,13 @@ declare const BSC_ADDRESSES: {
|
|
|
2844
2844
|
readonly WBNB: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
|
2845
2845
|
};
|
|
2846
2846
|
declare const PHAROS_ADDRESSES: {
|
|
2847
|
-
readonly diamond: "
|
|
2848
|
-
readonly
|
|
2849
|
-
readonly
|
|
2850
|
-
readonly
|
|
2851
|
-
readonly mockLST: "
|
|
2852
|
-
readonly mockPriceFeed: "
|
|
2853
|
-
readonly mockExchangeRate: "
|
|
2847
|
+
readonly diamond: "0x58C39161187ae1C0776Ad94Dd16EcA8A2a7f544d";
|
|
2848
|
+
readonly satUSD: "0x7eDf43250e1C8CDFb6D1FdB5995922732992F59D";
|
|
2849
|
+
readonly xPHS: "0x36b436D143DC6fEF3Aa4b3BffdE118A9CD74db58";
|
|
2850
|
+
readonly sSatUSD: "0x4f10C5DD2CCDEb8e0c075363060C08f47652DcbD";
|
|
2851
|
+
readonly mockLST: "0x905548C4Ad100daE91ACb75e4f3B6f1E34544EB0";
|
|
2852
|
+
readonly mockPriceFeed: "0xeD33b085de75BbcF8cA27af1feD4A6910A462328";
|
|
2853
|
+
readonly mockExchangeRate: "0xdB608124e56bb62036aD53c70eeda042B9121B39";
|
|
2854
2854
|
};
|
|
2855
2855
|
/**
|
|
2856
2856
|
* Format a bigint amount to human-readable string with decimals
|
package/dist/index.d.ts
CHANGED
|
@@ -2844,13 +2844,13 @@ declare const BSC_ADDRESSES: {
|
|
|
2844
2844
|
readonly WBNB: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
|
2845
2845
|
};
|
|
2846
2846
|
declare const PHAROS_ADDRESSES: {
|
|
2847
|
-
readonly diamond: "
|
|
2848
|
-
readonly
|
|
2849
|
-
readonly
|
|
2850
|
-
readonly
|
|
2851
|
-
readonly mockLST: "
|
|
2852
|
-
readonly mockPriceFeed: "
|
|
2853
|
-
readonly mockExchangeRate: "
|
|
2847
|
+
readonly diamond: "0x58C39161187ae1C0776Ad94Dd16EcA8A2a7f544d";
|
|
2848
|
+
readonly satUSD: "0x7eDf43250e1C8CDFb6D1FdB5995922732992F59D";
|
|
2849
|
+
readonly xPHS: "0x36b436D143DC6fEF3Aa4b3BffdE118A9CD74db58";
|
|
2850
|
+
readonly sSatUSD: "0x4f10C5DD2CCDEb8e0c075363060C08f47652DcbD";
|
|
2851
|
+
readonly mockLST: "0x905548C4Ad100daE91ACb75e4f3B6f1E34544EB0";
|
|
2852
|
+
readonly mockPriceFeed: "0xeD33b085de75BbcF8cA27af1feD4A6910A462328";
|
|
2853
|
+
readonly mockExchangeRate: "0xdB608124e56bb62036aD53c70eeda042B9121B39";
|
|
2854
2854
|
};
|
|
2855
2855
|
/**
|
|
2856
2856
|
* Format a bigint amount to human-readable string with decimals
|
package/dist/index.js
CHANGED
|
@@ -3071,13 +3071,13 @@ var BSC_ADDRESSES = {
|
|
|
3071
3071
|
WBNB: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
|
|
3072
3072
|
};
|
|
3073
3073
|
var PHAROS_ADDRESSES = {
|
|
3074
|
-
diamond: "
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
mockLST: "
|
|
3079
|
-
mockPriceFeed: "
|
|
3080
|
-
mockExchangeRate: "
|
|
3074
|
+
diamond: "0x58C39161187ae1C0776Ad94Dd16EcA8A2a7f544d",
|
|
3075
|
+
satUSD: "0x7eDf43250e1C8CDFb6D1FdB5995922732992F59D",
|
|
3076
|
+
xPHS: "0x36b436D143DC6fEF3Aa4b3BffdE118A9CD74db58",
|
|
3077
|
+
sSatUSD: "0x4f10C5DD2CCDEb8e0c075363060C08f47652DcbD",
|
|
3078
|
+
mockLST: "0x905548C4Ad100daE91ACb75e4f3B6f1E34544EB0",
|
|
3079
|
+
mockPriceFeed: "0xeD33b085de75BbcF8cA27af1feD4A6910A462328",
|
|
3080
|
+
mockExchangeRate: "0xdB608124e56bb62036aD53c70eeda042B9121B39"
|
|
3081
3081
|
};
|
|
3082
3082
|
function formatAmount(amount, decimals = 4) {
|
|
3083
3083
|
const divisor = 10n ** BigInt(18 - decimals);
|
package/dist/index.mjs
CHANGED
|
@@ -3018,13 +3018,13 @@ var BSC_ADDRESSES = {
|
|
|
3018
3018
|
WBNB: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
|
|
3019
3019
|
};
|
|
3020
3020
|
var PHAROS_ADDRESSES = {
|
|
3021
|
-
diamond: "
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
mockLST: "
|
|
3026
|
-
mockPriceFeed: "
|
|
3027
|
-
mockExchangeRate: "
|
|
3021
|
+
diamond: "0x58C39161187ae1C0776Ad94Dd16EcA8A2a7f544d",
|
|
3022
|
+
satUSD: "0x7eDf43250e1C8CDFb6D1FdB5995922732992F59D",
|
|
3023
|
+
xPHS: "0x36b436D143DC6fEF3Aa4b3BffdE118A9CD74db58",
|
|
3024
|
+
sSatUSD: "0x4f10C5DD2CCDEb8e0c075363060C08f47652DcbD",
|
|
3025
|
+
mockLST: "0x905548C4Ad100daE91ACb75e4f3B6f1E34544EB0",
|
|
3026
|
+
mockPriceFeed: "0xeD33b085de75BbcF8cA27af1feD4A6910A462328",
|
|
3027
|
+
mockExchangeRate: "0xdB608124e56bb62036aD53c70eeda042B9121B39"
|
|
3028
3028
|
};
|
|
3029
3029
|
function formatAmount(amount, decimals = 4) {
|
|
3030
3030
|
const divisor = 10n ** BigInt(18 - decimals);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -134,13 +134,13 @@ export const BSC_ADDRESSES = {
|
|
|
134
134
|
} as const;
|
|
135
135
|
|
|
136
136
|
export const PHAROS_ADDRESSES = {
|
|
137
|
-
diamond: "
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
mockLST: "
|
|
142
|
-
mockPriceFeed: "
|
|
143
|
-
mockExchangeRate: "
|
|
137
|
+
diamond: "0x58C39161187ae1C0776Ad94Dd16EcA8A2a7f544d" as const,
|
|
138
|
+
satUSD: "0x7eDf43250e1C8CDFb6D1FdB5995922732992F59D" as const,
|
|
139
|
+
xPHS: "0x36b436D143DC6fEF3Aa4b3BffdE118A9CD74db58" as const,
|
|
140
|
+
sSatUSD: "0x4f10C5DD2CCDEb8e0c075363060C08f47652DcbD" as const,
|
|
141
|
+
mockLST: "0x905548C4Ad100daE91ACb75e4f3B6f1E34544EB0" as const,
|
|
142
|
+
mockPriceFeed: "0xeD33b085de75BbcF8cA27af1feD4A6910A462328" as const,
|
|
143
|
+
mockExchangeRate: "0xdB608124e56bb62036aD53c70eeda042B9121B39" as const,
|
|
144
144
|
} as const;
|
|
145
145
|
|
|
146
146
|
// ============ Utility Functions ============
|