@fileverse-dev/formulajs 4.4.21-price-and-wallet-4 → 4.4.21-price-and-wallet-6
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/lib/cjs/index.cjs
CHANGED
|
@@ -19190,16 +19190,16 @@ async function PRICE() {
|
|
|
19190
19190
|
|
|
19191
19191
|
if(isAddress$1.isAddress(input1)) {
|
|
19192
19192
|
const tokenAddress = input1;
|
|
19193
|
-
url += `&token=${
|
|
19193
|
+
url += `&token=${tokenAddress}&chain=${input2}`;
|
|
19194
19194
|
if(input3){
|
|
19195
19195
|
url += `&time=${encodeURIComponent(input3)}`;
|
|
19196
19196
|
}
|
|
19197
19197
|
} else {
|
|
19198
|
-
const coin = input1;
|
|
19199
|
-
url += `&coin=${
|
|
19198
|
+
const coin = input1.replace(/\s+/g, "");
|
|
19199
|
+
url += `&coin=${coin}`;
|
|
19200
19200
|
if (input2) {
|
|
19201
19201
|
url += `&time=${encodeURIComponent(input2)}`;
|
|
19202
|
-
} else {
|
|
19202
|
+
} else if(coin.split(',') === 1) {
|
|
19203
19203
|
returnSingleValue = true;
|
|
19204
19204
|
}
|
|
19205
19205
|
}
|
|
@@ -19262,10 +19262,10 @@ const getResolvedAddresses = async (addresses) => {
|
|
|
19262
19262
|
|
|
19263
19263
|
async function WALLET() {
|
|
19264
19264
|
try {
|
|
19265
|
-
|
|
19265
|
+
let [addresses, chains, query, time] = argsToArray(arguments);
|
|
19266
19266
|
validateParams(walletParamsSchema, { addresses, chains, query, time });
|
|
19267
19267
|
|
|
19268
|
-
|
|
19268
|
+
addresses = addresses.replace(/\s+/g, "");
|
|
19269
19269
|
const baseUrl = window.useLocal ? 'http://localhost:3000' : 'https://onchain-proxy.fileverse.io';
|
|
19270
19270
|
|
|
19271
19271
|
const resolvedAddresses = await getResolvedAddresses(addresses);
|
|
@@ -19296,7 +19296,7 @@ async function WALLET() {
|
|
|
19296
19296
|
|
|
19297
19297
|
|
|
19298
19298
|
// WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "ethereum", "balance", "720,1,24").then(console.log)
|
|
19299
|
-
// WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045,
|
|
19299
|
+
// WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, 0x50Aa3435E310d5a2d15a989Bc353ce7f5682E1d4", "ethereum, base", "balance", "720").then(console.log)
|
|
19300
19300
|
// WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "ethereum", "balance").then(console.log)
|
|
19301
19301
|
|
|
19302
19302
|
// export {GNOSISPAY} from './gnosispay/gnosispay.js'
|
|
@@ -965,7 +965,7 @@ var WALLET_metadata = {
|
|
|
965
965
|
{
|
|
966
966
|
name: "addresses",
|
|
967
967
|
detail: "Comma separated addresses / ens",
|
|
968
|
-
example:
|
|
968
|
+
example: "vitalik.eth, 0xfA0253943c3FF0e43898cba5A7a0dA9D17C27995",
|
|
969
969
|
require: "m",
|
|
970
970
|
type: "string"
|
|
971
971
|
},
|
package/lib/esm/index.mjs
CHANGED
|
@@ -19188,16 +19188,16 @@ async function PRICE() {
|
|
|
19188
19188
|
|
|
19189
19189
|
if(isAddress$1.isAddress(input1)) {
|
|
19190
19190
|
const tokenAddress = input1;
|
|
19191
|
-
url += `&token=${
|
|
19191
|
+
url += `&token=${tokenAddress}&chain=${input2}`;
|
|
19192
19192
|
if(input3){
|
|
19193
19193
|
url += `&time=${encodeURIComponent(input3)}`;
|
|
19194
19194
|
}
|
|
19195
19195
|
} else {
|
|
19196
|
-
const coin = input1;
|
|
19197
|
-
url += `&coin=${
|
|
19196
|
+
const coin = input1.replace(/\s+/g, "");
|
|
19197
|
+
url += `&coin=${coin}`;
|
|
19198
19198
|
if (input2) {
|
|
19199
19199
|
url += `&time=${encodeURIComponent(input2)}`;
|
|
19200
|
-
} else {
|
|
19200
|
+
} else if(coin.split(',') === 1) {
|
|
19201
19201
|
returnSingleValue = true;
|
|
19202
19202
|
}
|
|
19203
19203
|
}
|
|
@@ -19260,10 +19260,10 @@ const getResolvedAddresses = async (addresses) => {
|
|
|
19260
19260
|
|
|
19261
19261
|
async function WALLET() {
|
|
19262
19262
|
try {
|
|
19263
|
-
|
|
19263
|
+
let [addresses, chains, query, time] = argsToArray(arguments);
|
|
19264
19264
|
validateParams(walletParamsSchema, { addresses, chains, query, time });
|
|
19265
19265
|
|
|
19266
|
-
|
|
19266
|
+
addresses = addresses.replace(/\s+/g, "");
|
|
19267
19267
|
const baseUrl = window.useLocal ? 'http://localhost:3000' : 'https://onchain-proxy.fileverse.io';
|
|
19268
19268
|
|
|
19269
19269
|
const resolvedAddresses = await getResolvedAddresses(addresses);
|
|
@@ -19294,7 +19294,7 @@ async function WALLET() {
|
|
|
19294
19294
|
|
|
19295
19295
|
|
|
19296
19296
|
// WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "ethereum", "balance", "720,1,24").then(console.log)
|
|
19297
|
-
// WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045,
|
|
19297
|
+
// WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, 0x50Aa3435E310d5a2d15a989Bc353ce7f5682E1d4", "ethereum, base", "balance", "720").then(console.log)
|
|
19298
19298
|
// WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "ethereum", "balance").then(console.log)
|
|
19299
19299
|
|
|
19300
19300
|
// export {GNOSISPAY} from './gnosispay/gnosispay.js'
|
package/package.json
CHANGED