@fileverse-dev/formulajs 4.4.11-mod-38 → 4.4.11-mod-39
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/browser/formula.js +246 -270
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +26 -65
- package/lib/esm/crypto-constants.mjs +2 -2
- package/lib/esm/index.mjs +26 -65
- package/package.json +1 -1
- package/types/cjs/index.d.cts +13 -7
- package/types/esm/index.d.mts +13 -7
package/lib/cjs/index.cjs
CHANGED
|
@@ -13243,7 +13243,7 @@ if (scanKey === SERVICE_API_KEY.Gnosisscan) chainId = 'gnosis';
|
|
|
13243
13243
|
}
|
|
13244
13244
|
}
|
|
13245
13245
|
|
|
13246
|
-
async function FIREFLY() {
|
|
13246
|
+
async function FIREFLY(platform, contentType, identifier, start = 0, end = 10) {
|
|
13247
13247
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Firefly);
|
|
13248
13248
|
if (!API_KEY) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13249
13249
|
|
|
@@ -13262,9 +13262,6 @@ async function FIREFLY() {
|
|
|
13262
13262
|
}
|
|
13263
13263
|
};
|
|
13264
13264
|
|
|
13265
|
-
|
|
13266
|
-
const [platform, contentType, identifier, start = 0, end = 10] = argsToArray(arguments);
|
|
13267
|
-
|
|
13268
13265
|
const platformType = typeMap[platform]?.[contentType];
|
|
13269
13266
|
if (!platformType) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.INVALID_TYPE}`;
|
|
13270
13267
|
|
|
@@ -13308,7 +13305,7 @@ async function FIREFLY() {
|
|
|
13308
13305
|
|
|
13309
13306
|
|
|
13310
13307
|
|
|
13311
|
-
async function BLOCKSCOUT() {
|
|
13308
|
+
async function BLOCKSCOUT(address, type, chain, startTimestamp, endTimestamp, page, offset) {
|
|
13312
13309
|
if (!chain) {
|
|
13313
13310
|
chain = 'ethereum';
|
|
13314
13311
|
}
|
|
@@ -13317,8 +13314,6 @@ async function BLOCKSCOUT() {
|
|
|
13317
13314
|
return 'TYPE_MISSING'
|
|
13318
13315
|
}
|
|
13319
13316
|
|
|
13320
|
-
let [address, type, chain, startTimestamp, endTimestamp, page, offset] = argsToArray(arguments);
|
|
13321
|
-
|
|
13322
13317
|
if (!startTimestamp) {
|
|
13323
13318
|
const currentTimestamp = Date.now();
|
|
13324
13319
|
startTimestamp = currentTimestamp - 30 * 24 * 60 * 60 * 1000;
|
|
@@ -13396,8 +13391,8 @@ let [address, type, chain, startTimestamp, endTimestamp, page, offset] = argsToA
|
|
|
13396
13391
|
}
|
|
13397
13392
|
}
|
|
13398
13393
|
|
|
13399
|
-
async function BASESCAN() {
|
|
13400
|
-
const [type, chain, address, startDate, endDate, page, limit] =
|
|
13394
|
+
async function BASESCAN(...args) {
|
|
13395
|
+
const [type, chain, address, startDate, endDate, page, limit] = args;
|
|
13401
13396
|
return handleScanRequest({
|
|
13402
13397
|
scanKey: SERVICE_API_KEY.Basescan,
|
|
13403
13398
|
baseUrl: 'https://api.basescan.org/api',
|
|
@@ -13410,8 +13405,8 @@ async function BASESCAN() {
|
|
|
13410
13405
|
offset:limit
|
|
13411
13406
|
});
|
|
13412
13407
|
}
|
|
13413
|
-
async function GNOSISSCAN() {
|
|
13414
|
-
const [type, chain, address, startDate, endDate, page, limit] =
|
|
13408
|
+
async function GNOSISSCAN(...args) {
|
|
13409
|
+
const [type, chain, address, startDate, endDate, page, limit] = args;
|
|
13415
13410
|
return handleScanRequest({
|
|
13416
13411
|
scanKey: SERVICE_API_KEY.Gnosisscan,
|
|
13417
13412
|
baseUrl: 'https://api.gnosisscan.io/api',
|
|
@@ -13426,18 +13421,16 @@ async function GNOSISSCAN() {
|
|
|
13426
13421
|
}
|
|
13427
13422
|
|
|
13428
13423
|
async function NEYNAR(
|
|
13429
|
-
|
|
13430
|
-
) {
|
|
13431
|
-
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
|
|
13432
|
-
if (!API_KEY) return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13433
|
-
|
|
13434
|
-
const [
|
|
13435
|
-
fid,
|
|
13424
|
+
fid,
|
|
13436
13425
|
viewerFid,
|
|
13437
13426
|
sortType,
|
|
13438
13427
|
limit,
|
|
13439
13428
|
cursor
|
|
13440
|
-
|
|
13429
|
+
) {
|
|
13430
|
+
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
|
|
13431
|
+
if (!API_KEY) return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13432
|
+
|
|
13433
|
+
|
|
13441
13434
|
const url = new URL('https://api.neynar.com/v2/farcaster/followers');
|
|
13442
13435
|
url.searchParams.set('fid', fid.toString());
|
|
13443
13436
|
url.searchParams.set('sort_type', sortType);
|
|
@@ -13468,22 +13461,18 @@ const [
|
|
|
13468
13461
|
return ERROR_MESSAGES_FLAG.DEFAULT;
|
|
13469
13462
|
}
|
|
13470
13463
|
}
|
|
13471
|
-
async function GNOSISPAY(
|
|
13472
|
-
|
|
13473
|
-
|
|
13464
|
+
async function GNOSISPAY({
|
|
13465
|
+
cardId,
|
|
13466
|
+
startDate,
|
|
13467
|
+
endDate,
|
|
13468
|
+
limit = 20,
|
|
13469
|
+
offset = 0,
|
|
13470
|
+
}) {
|
|
13474
13471
|
const apiKeyKey = SERVICE_API_KEY.GnosisPay;
|
|
13475
13472
|
const API_KEY = window.localStorage.getItem(apiKeyKey);
|
|
13476
13473
|
if (!API_KEY) return `${apiKeyKey}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13477
13474
|
if (!cardId) return `${apiKeyKey}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13478
13475
|
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
const [ cardId,
|
|
13482
|
-
startDate,
|
|
13483
|
-
endDate,
|
|
13484
|
-
limit = 20,
|
|
13485
|
-
offset = 0] = argsToArray(arguments);
|
|
13486
|
-
|
|
13487
13476
|
const url = new URL(`https://api.gnosispay.com/cards/${cardId}/transactions`);
|
|
13488
13477
|
url.searchParams.set('limit', limit.toString());
|
|
13489
13478
|
url.searchParams.set('offset', offset.toString());
|
|
@@ -13532,8 +13521,8 @@ async function GNOSISPAY(
|
|
|
13532
13521
|
|
|
13533
13522
|
|
|
13534
13523
|
|
|
13535
|
-
async function ETHERSCAN() {
|
|
13536
|
-
const [type, chain, address, startDate, endDate, page, limit] =
|
|
13524
|
+
async function ETHERSCAN(...args) {
|
|
13525
|
+
const [type, chain, address, startDate, endDate, page, limit] = args;
|
|
13537
13526
|
return handleScanRequest({
|
|
13538
13527
|
scanKey: SERVICE_API_KEY.Etherscan,
|
|
13539
13528
|
baseUrl: 'https://api.etherscan.io/v2/api',
|
|
@@ -13548,7 +13537,7 @@ async function ETHERSCAN() {
|
|
|
13548
13537
|
}
|
|
13549
13538
|
|
|
13550
13539
|
|
|
13551
|
-
async function COINGECKO() {
|
|
13540
|
+
async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
13552
13541
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Coingecko);
|
|
13553
13542
|
if (!API_KEY) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13554
13543
|
|
|
@@ -13558,7 +13547,6 @@ async function COINGECKO() {
|
|
|
13558
13547
|
};
|
|
13559
13548
|
|
|
13560
13549
|
let url = '';
|
|
13561
|
-
const [category, param1, param2, page = 1, perPage = 2 ] = argsToArray(arguments);
|
|
13562
13550
|
const lowerCategory = (category || '').toLowerCase();
|
|
13563
13551
|
|
|
13564
13552
|
switch (lowerCategory) {
|
|
@@ -13664,11 +13652,7 @@ async function COINGECKO() {
|
|
|
13664
13652
|
|
|
13665
13653
|
|
|
13666
13654
|
|
|
13667
|
-
async function EOA(
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
const [
|
|
13655
|
+
async function EOA(
|
|
13672
13656
|
addresses,
|
|
13673
13657
|
category,
|
|
13674
13658
|
chains,
|
|
@@ -13676,29 +13660,11 @@ async function EOA() {
|
|
|
13676
13660
|
endTime,
|
|
13677
13661
|
page = 1,
|
|
13678
13662
|
offset = 10,
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
const someError = anyError(addresses, category, chains, startTime, endTime, page, offset);
|
|
13682
|
-
|
|
13683
|
-
if (someError) {
|
|
13684
|
-
return someError
|
|
13685
|
-
}
|
|
13686
|
-
|
|
13687
|
-
|
|
13663
|
+
) {
|
|
13688
13664
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
13689
13665
|
if (!API_KEY) return `${SERVICE_API_KEY.Etherscan}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13690
13666
|
|
|
13691
|
-
|
|
13692
|
-
|
|
13693
|
-
let INPUTS;
|
|
13694
|
-
|
|
13695
|
-
if(typeof addresses === 'string'){
|
|
13696
|
-
INPUTS = addresses.split(",").map(a => a.trim()).filter(Boolean);
|
|
13697
|
-
} else if (typeof addresses === 'object'){
|
|
13698
|
-
INPUTS = addresses;
|
|
13699
|
-
}
|
|
13700
|
-
|
|
13701
|
-
|
|
13667
|
+
const INPUTS = addresses.split(",").map(a => a.trim()).filter(Boolean);
|
|
13702
13668
|
const CHAINS = chains.split(",").map(c => c.trim()).filter(Boolean);
|
|
13703
13669
|
const out = [];
|
|
13704
13670
|
|
|
@@ -13810,12 +13776,7 @@ async function FLVURL(token, vs_currencies) {
|
|
|
13810
13776
|
});
|
|
13811
13777
|
}
|
|
13812
13778
|
|
|
13813
|
-
async function SAFE() {
|
|
13814
|
-
|
|
13815
|
-
|
|
13816
|
-
|
|
13817
|
-
|
|
13818
|
-
let [address, utility, chain, limit, offset] = argsToArray(arguments);
|
|
13779
|
+
async function SAFE(address, utility, chain, limit, offset) {
|
|
13819
13780
|
|
|
13820
13781
|
if (typeof limit !== 'number' || limit < 0) return 'INVALID_LIMIT';
|
|
13821
13782
|
if (typeof offset !== 'number' || offset < 0) return 'INVALID_OFFSET';
|
|
@@ -345,8 +345,8 @@ var FUNCTION_LOCALE = [
|
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
347
|
name: "address",
|
|
348
|
-
detail: "Wallet address to query",
|
|
349
|
-
example: `"
|
|
348
|
+
detail: "Wallet address / Ens name to query",
|
|
349
|
+
example: `"vitalik.eth"`,
|
|
350
350
|
require: "o",
|
|
351
351
|
type: "string"
|
|
352
352
|
},
|
package/lib/esm/index.mjs
CHANGED
|
@@ -13241,7 +13241,7 @@ if (scanKey === SERVICE_API_KEY.Gnosisscan) chainId = 'gnosis';
|
|
|
13241
13241
|
}
|
|
13242
13242
|
}
|
|
13243
13243
|
|
|
13244
|
-
async function FIREFLY() {
|
|
13244
|
+
async function FIREFLY(platform, contentType, identifier, start = 0, end = 10) {
|
|
13245
13245
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Firefly);
|
|
13246
13246
|
if (!API_KEY) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13247
13247
|
|
|
@@ -13260,9 +13260,6 @@ async function FIREFLY() {
|
|
|
13260
13260
|
}
|
|
13261
13261
|
};
|
|
13262
13262
|
|
|
13263
|
-
|
|
13264
|
-
const [platform, contentType, identifier, start = 0, end = 10] = argsToArray(arguments);
|
|
13265
|
-
|
|
13266
13263
|
const platformType = typeMap[platform]?.[contentType];
|
|
13267
13264
|
if (!platformType) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.INVALID_TYPE}`;
|
|
13268
13265
|
|
|
@@ -13306,7 +13303,7 @@ async function FIREFLY() {
|
|
|
13306
13303
|
|
|
13307
13304
|
|
|
13308
13305
|
|
|
13309
|
-
async function BLOCKSCOUT() {
|
|
13306
|
+
async function BLOCKSCOUT(address, type, chain, startTimestamp, endTimestamp, page, offset) {
|
|
13310
13307
|
if (!chain) {
|
|
13311
13308
|
chain = 'ethereum';
|
|
13312
13309
|
}
|
|
@@ -13315,8 +13312,6 @@ async function BLOCKSCOUT() {
|
|
|
13315
13312
|
return 'TYPE_MISSING'
|
|
13316
13313
|
}
|
|
13317
13314
|
|
|
13318
|
-
let [address, type, chain, startTimestamp, endTimestamp, page, offset] = argsToArray(arguments);
|
|
13319
|
-
|
|
13320
13315
|
if (!startTimestamp) {
|
|
13321
13316
|
const currentTimestamp = Date.now();
|
|
13322
13317
|
startTimestamp = currentTimestamp - 30 * 24 * 60 * 60 * 1000;
|
|
@@ -13394,8 +13389,8 @@ let [address, type, chain, startTimestamp, endTimestamp, page, offset] = argsToA
|
|
|
13394
13389
|
}
|
|
13395
13390
|
}
|
|
13396
13391
|
|
|
13397
|
-
async function BASESCAN() {
|
|
13398
|
-
const [type, chain, address, startDate, endDate, page, limit] =
|
|
13392
|
+
async function BASESCAN(...args) {
|
|
13393
|
+
const [type, chain, address, startDate, endDate, page, limit] = args;
|
|
13399
13394
|
return handleScanRequest({
|
|
13400
13395
|
scanKey: SERVICE_API_KEY.Basescan,
|
|
13401
13396
|
baseUrl: 'https://api.basescan.org/api',
|
|
@@ -13408,8 +13403,8 @@ async function BASESCAN() {
|
|
|
13408
13403
|
offset:limit
|
|
13409
13404
|
});
|
|
13410
13405
|
}
|
|
13411
|
-
async function GNOSISSCAN() {
|
|
13412
|
-
const [type, chain, address, startDate, endDate, page, limit] =
|
|
13406
|
+
async function GNOSISSCAN(...args) {
|
|
13407
|
+
const [type, chain, address, startDate, endDate, page, limit] = args;
|
|
13413
13408
|
return handleScanRequest({
|
|
13414
13409
|
scanKey: SERVICE_API_KEY.Gnosisscan,
|
|
13415
13410
|
baseUrl: 'https://api.gnosisscan.io/api',
|
|
@@ -13424,18 +13419,16 @@ async function GNOSISSCAN() {
|
|
|
13424
13419
|
}
|
|
13425
13420
|
|
|
13426
13421
|
async function NEYNAR(
|
|
13427
|
-
|
|
13428
|
-
) {
|
|
13429
|
-
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
|
|
13430
|
-
if (!API_KEY) return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13431
|
-
|
|
13432
|
-
const [
|
|
13433
|
-
fid,
|
|
13422
|
+
fid,
|
|
13434
13423
|
viewerFid,
|
|
13435
13424
|
sortType,
|
|
13436
13425
|
limit,
|
|
13437
13426
|
cursor
|
|
13438
|
-
|
|
13427
|
+
) {
|
|
13428
|
+
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
|
|
13429
|
+
if (!API_KEY) return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13430
|
+
|
|
13431
|
+
|
|
13439
13432
|
const url = new URL('https://api.neynar.com/v2/farcaster/followers');
|
|
13440
13433
|
url.searchParams.set('fid', fid.toString());
|
|
13441
13434
|
url.searchParams.set('sort_type', sortType);
|
|
@@ -13466,22 +13459,18 @@ const [
|
|
|
13466
13459
|
return ERROR_MESSAGES_FLAG.DEFAULT;
|
|
13467
13460
|
}
|
|
13468
13461
|
}
|
|
13469
|
-
async function GNOSISPAY(
|
|
13470
|
-
|
|
13471
|
-
|
|
13462
|
+
async function GNOSISPAY({
|
|
13463
|
+
cardId,
|
|
13464
|
+
startDate,
|
|
13465
|
+
endDate,
|
|
13466
|
+
limit = 20,
|
|
13467
|
+
offset = 0,
|
|
13468
|
+
}) {
|
|
13472
13469
|
const apiKeyKey = SERVICE_API_KEY.GnosisPay;
|
|
13473
13470
|
const API_KEY = window.localStorage.getItem(apiKeyKey);
|
|
13474
13471
|
if (!API_KEY) return `${apiKeyKey}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13475
13472
|
if (!cardId) return `${apiKeyKey}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13476
13473
|
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
const [ cardId,
|
|
13480
|
-
startDate,
|
|
13481
|
-
endDate,
|
|
13482
|
-
limit = 20,
|
|
13483
|
-
offset = 0] = argsToArray(arguments);
|
|
13484
|
-
|
|
13485
13474
|
const url = new URL(`https://api.gnosispay.com/cards/${cardId}/transactions`);
|
|
13486
13475
|
url.searchParams.set('limit', limit.toString());
|
|
13487
13476
|
url.searchParams.set('offset', offset.toString());
|
|
@@ -13530,8 +13519,8 @@ async function GNOSISPAY(
|
|
|
13530
13519
|
|
|
13531
13520
|
|
|
13532
13521
|
|
|
13533
|
-
async function ETHERSCAN() {
|
|
13534
|
-
const [type, chain, address, startDate, endDate, page, limit] =
|
|
13522
|
+
async function ETHERSCAN(...args) {
|
|
13523
|
+
const [type, chain, address, startDate, endDate, page, limit] = args;
|
|
13535
13524
|
return handleScanRequest({
|
|
13536
13525
|
scanKey: SERVICE_API_KEY.Etherscan,
|
|
13537
13526
|
baseUrl: 'https://api.etherscan.io/v2/api',
|
|
@@ -13546,7 +13535,7 @@ async function ETHERSCAN() {
|
|
|
13546
13535
|
}
|
|
13547
13536
|
|
|
13548
13537
|
|
|
13549
|
-
async function COINGECKO() {
|
|
13538
|
+
async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
13550
13539
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Coingecko);
|
|
13551
13540
|
if (!API_KEY) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13552
13541
|
|
|
@@ -13556,7 +13545,6 @@ async function COINGECKO() {
|
|
|
13556
13545
|
};
|
|
13557
13546
|
|
|
13558
13547
|
let url = '';
|
|
13559
|
-
const [category, param1, param2, page = 1, perPage = 2 ] = argsToArray(arguments);
|
|
13560
13548
|
const lowerCategory = (category || '').toLowerCase();
|
|
13561
13549
|
|
|
13562
13550
|
switch (lowerCategory) {
|
|
@@ -13662,11 +13650,7 @@ async function COINGECKO() {
|
|
|
13662
13650
|
|
|
13663
13651
|
|
|
13664
13652
|
|
|
13665
|
-
async function EOA(
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
const [
|
|
13653
|
+
async function EOA(
|
|
13670
13654
|
addresses,
|
|
13671
13655
|
category,
|
|
13672
13656
|
chains,
|
|
@@ -13674,29 +13658,11 @@ async function EOA() {
|
|
|
13674
13658
|
endTime,
|
|
13675
13659
|
page = 1,
|
|
13676
13660
|
offset = 10,
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
const someError = anyError(addresses, category, chains, startTime, endTime, page, offset);
|
|
13680
|
-
|
|
13681
|
-
if (someError) {
|
|
13682
|
-
return someError
|
|
13683
|
-
}
|
|
13684
|
-
|
|
13685
|
-
|
|
13661
|
+
) {
|
|
13686
13662
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
13687
13663
|
if (!API_KEY) return `${SERVICE_API_KEY.Etherscan}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13688
13664
|
|
|
13689
|
-
|
|
13690
|
-
|
|
13691
|
-
let INPUTS;
|
|
13692
|
-
|
|
13693
|
-
if(typeof addresses === 'string'){
|
|
13694
|
-
INPUTS = addresses.split(",").map(a => a.trim()).filter(Boolean);
|
|
13695
|
-
} else if (typeof addresses === 'object'){
|
|
13696
|
-
INPUTS = addresses;
|
|
13697
|
-
}
|
|
13698
|
-
|
|
13699
|
-
|
|
13665
|
+
const INPUTS = addresses.split(",").map(a => a.trim()).filter(Boolean);
|
|
13700
13666
|
const CHAINS = chains.split(",").map(c => c.trim()).filter(Boolean);
|
|
13701
13667
|
const out = [];
|
|
13702
13668
|
|
|
@@ -13808,12 +13774,7 @@ async function FLVURL(token, vs_currencies) {
|
|
|
13808
13774
|
});
|
|
13809
13775
|
}
|
|
13810
13776
|
|
|
13811
|
-
async function SAFE() {
|
|
13812
|
-
|
|
13813
|
-
|
|
13814
|
-
|
|
13815
|
-
|
|
13816
|
-
let [address, utility, chain, limit, offset] = argsToArray(arguments);
|
|
13777
|
+
async function SAFE(address, utility, chain, limit, offset) {
|
|
13817
13778
|
|
|
13818
13779
|
if (typeof limit !== 'number' || limit < 0) return 'INVALID_LIMIT';
|
|
13819
13780
|
if (typeof offset !== 'number' || offset < 0) return 'INVALID_OFFSET';
|
package/package.json
CHANGED
package/types/cjs/index.d.cts
CHANGED
|
@@ -420,7 +420,7 @@ export function BITRSHIFT(number: any, shift_amount: any): number | Error;
|
|
|
420
420
|
* @returns
|
|
421
421
|
*/
|
|
422
422
|
export function BITXOR(number1: any, number2: any): number | Error;
|
|
423
|
-
export function BLOCKSCOUT(
|
|
423
|
+
export function BLOCKSCOUT(address: any, type: any, chain: any, startTimestamp: any, endTimestamp: any, page: any, offset: any): Promise<any>;
|
|
424
424
|
/**
|
|
425
425
|
* Rounds a number to the nearest integer or to the nearest multiple of significance.
|
|
426
426
|
*
|
|
@@ -626,7 +626,7 @@ export function CLEAN(text: any): any;
|
|
|
626
626
|
* @returns
|
|
627
627
|
*/
|
|
628
628
|
export function CODE(text: any): any;
|
|
629
|
-
export function COINGECKO(
|
|
629
|
+
export function COINGECKO(category: any, param1: any, param2: any, page?: number, perPage?: number): Promise<string | {}[]>;
|
|
630
630
|
/**
|
|
631
631
|
* Returns the column number of a reference.
|
|
632
632
|
*
|
|
@@ -1296,7 +1296,7 @@ export function EDATE(start_date: any, months: any): any;
|
|
|
1296
1296
|
* @returns
|
|
1297
1297
|
*/
|
|
1298
1298
|
export function EFFECT(nominal_rate: any, npery: any): number | Error;
|
|
1299
|
-
export function EOA(
|
|
1299
|
+
export function EOA(addresses: any, category: any, chains: any, startTime: any, endTime: any, page?: number, offset?: number): Promise<any>;
|
|
1300
1300
|
/**
|
|
1301
1301
|
* Returns the serial number of the last day of the month before or after a specified number of months.
|
|
1302
1302
|
*
|
|
@@ -1529,7 +1529,7 @@ export namespace FINV { }
|
|
|
1529
1529
|
* @returns
|
|
1530
1530
|
*/
|
|
1531
1531
|
export function FINVRT(probability: any, deg_freedom1: any, deg_freedom2: any, ...args: any[]): any;
|
|
1532
|
-
export function FIREFLY(
|
|
1532
|
+
export function FIREFLY(platform: any, contentType: any, identifier: any, start?: number, end?: number): Promise<any>;
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Returns the Fisher transformation.
|
|
1535
1535
|
*
|
|
@@ -1791,7 +1791,13 @@ export function GEOMEAN(...args: any[]): any;
|
|
|
1791
1791
|
* @returns
|
|
1792
1792
|
*/
|
|
1793
1793
|
export function GESTEP(number: any, step: any): any;
|
|
1794
|
-
export function GNOSISPAY(
|
|
1794
|
+
export function GNOSISPAY({ cardId, startDate, endDate, limit, offset, }: {
|
|
1795
|
+
cardId: any;
|
|
1796
|
+
startDate: any;
|
|
1797
|
+
endDate: any;
|
|
1798
|
+
limit?: number;
|
|
1799
|
+
offset?: number;
|
|
1800
|
+
}): Promise<string | {
|
|
1795
1801
|
createdAt: any;
|
|
1796
1802
|
clearedAt: any;
|
|
1797
1803
|
country: any;
|
|
@@ -2835,7 +2841,7 @@ export function NETWORKDAYSINTL(start_date: any, end_date: any, weekend: any, ho
|
|
|
2835
2841
|
* @returns
|
|
2836
2842
|
*/
|
|
2837
2843
|
export function NETWORKDAYS_INTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
|
|
2838
|
-
export function NEYNAR(
|
|
2844
|
+
export function NEYNAR(fid: any, viewerFid: any, sortType: any, limit: any, cursor: any): Promise<any>;
|
|
2839
2845
|
/**
|
|
2840
2846
|
* Returns the annual nominal interest rate.
|
|
2841
2847
|
*
|
|
@@ -3547,7 +3553,7 @@ export function RRI(nper: any, pv: any, fv: any): number | Error;
|
|
|
3547
3553
|
* @returns
|
|
3548
3554
|
*/
|
|
3549
3555
|
export function RSQ(known_y: any, known_x: any): number | Error;
|
|
3550
|
-
export function SAFE(
|
|
3556
|
+
export function SAFE(address: any, utility: any, chain: any, limit: any, offset: any): Promise<any>;
|
|
3551
3557
|
/**
|
|
3552
3558
|
* Finds one text value within another (not case-sensitive)
|
|
3553
3559
|
*
|
package/types/esm/index.d.mts
CHANGED
|
@@ -420,7 +420,7 @@ export function BITRSHIFT(number: any, shift_amount: any): number | Error;
|
|
|
420
420
|
* @returns
|
|
421
421
|
*/
|
|
422
422
|
export function BITXOR(number1: any, number2: any): number | Error;
|
|
423
|
-
export function BLOCKSCOUT(
|
|
423
|
+
export function BLOCKSCOUT(address: any, type: any, chain: any, startTimestamp: any, endTimestamp: any, page: any, offset: any): Promise<any>;
|
|
424
424
|
/**
|
|
425
425
|
* Rounds a number to the nearest integer or to the nearest multiple of significance.
|
|
426
426
|
*
|
|
@@ -626,7 +626,7 @@ export function CLEAN(text: any): any;
|
|
|
626
626
|
* @returns
|
|
627
627
|
*/
|
|
628
628
|
export function CODE(text: any): any;
|
|
629
|
-
export function COINGECKO(
|
|
629
|
+
export function COINGECKO(category: any, param1: any, param2: any, page?: number, perPage?: number): Promise<string | {}[]>;
|
|
630
630
|
/**
|
|
631
631
|
* Returns the column number of a reference.
|
|
632
632
|
*
|
|
@@ -1296,7 +1296,7 @@ export function EDATE(start_date: any, months: any): any;
|
|
|
1296
1296
|
* @returns
|
|
1297
1297
|
*/
|
|
1298
1298
|
export function EFFECT(nominal_rate: any, npery: any): number | Error;
|
|
1299
|
-
export function EOA(
|
|
1299
|
+
export function EOA(addresses: any, category: any, chains: any, startTime: any, endTime: any, page?: number, offset?: number): Promise<any>;
|
|
1300
1300
|
/**
|
|
1301
1301
|
* Returns the serial number of the last day of the month before or after a specified number of months.
|
|
1302
1302
|
*
|
|
@@ -1529,7 +1529,7 @@ export namespace FINV { }
|
|
|
1529
1529
|
* @returns
|
|
1530
1530
|
*/
|
|
1531
1531
|
export function FINVRT(probability: any, deg_freedom1: any, deg_freedom2: any, ...args: any[]): any;
|
|
1532
|
-
export function FIREFLY(
|
|
1532
|
+
export function FIREFLY(platform: any, contentType: any, identifier: any, start?: number, end?: number): Promise<any>;
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Returns the Fisher transformation.
|
|
1535
1535
|
*
|
|
@@ -1791,7 +1791,13 @@ export function GEOMEAN(...args: any[]): any;
|
|
|
1791
1791
|
* @returns
|
|
1792
1792
|
*/
|
|
1793
1793
|
export function GESTEP(number: any, step: any): any;
|
|
1794
|
-
export function GNOSISPAY(
|
|
1794
|
+
export function GNOSISPAY({ cardId, startDate, endDate, limit, offset, }: {
|
|
1795
|
+
cardId: any;
|
|
1796
|
+
startDate: any;
|
|
1797
|
+
endDate: any;
|
|
1798
|
+
limit?: number;
|
|
1799
|
+
offset?: number;
|
|
1800
|
+
}): Promise<string | {
|
|
1795
1801
|
createdAt: any;
|
|
1796
1802
|
clearedAt: any;
|
|
1797
1803
|
country: any;
|
|
@@ -2835,7 +2841,7 @@ export function NETWORKDAYSINTL(start_date: any, end_date: any, weekend: any, ho
|
|
|
2835
2841
|
* @returns
|
|
2836
2842
|
*/
|
|
2837
2843
|
export function NETWORKDAYS_INTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
|
|
2838
|
-
export function NEYNAR(
|
|
2844
|
+
export function NEYNAR(fid: any, viewerFid: any, sortType: any, limit: any, cursor: any): Promise<any>;
|
|
2839
2845
|
/**
|
|
2840
2846
|
* Returns the annual nominal interest rate.
|
|
2841
2847
|
*
|
|
@@ -3547,7 +3553,7 @@ export function RRI(nper: any, pv: any, fv: any): number | Error;
|
|
|
3547
3553
|
* @returns
|
|
3548
3554
|
*/
|
|
3549
3555
|
export function RSQ(known_y: any, known_x: any): number | Error;
|
|
3550
|
-
export function SAFE(
|
|
3556
|
+
export function SAFE(address: any, utility: any, chain: any, limit: any, offset: any): Promise<any>;
|
|
3551
3557
|
/**
|
|
3552
3558
|
* Finds one text value within another (not case-sensitive)
|
|
3553
3559
|
*
|