@fileverse-dev/formulajs 4.4.11-mod-41-patch-2 → 4.4.11-mod-43
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 +540 -469
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +73 -41
- package/lib/esm/crypto-constants.mjs +2 -15
- package/lib/esm/index.mjs +73 -41
- package/package.json +1 -1
- package/types/cjs/index.d.cts +6 -6
- package/types/esm/index.d.mts +6 -6
package/lib/cjs/index.cjs
CHANGED
|
@@ -13215,7 +13215,26 @@ if (scanKey === SERVICE_API_KEY.Gnosisscan) chainId = 'gnosis';
|
|
|
13215
13215
|
}
|
|
13216
13216
|
}
|
|
13217
13217
|
|
|
13218
|
-
|
|
13218
|
+
const fromUsernameToFid = async (username) => {
|
|
13219
|
+
if(!username) return null
|
|
13220
|
+
const url = `https://api.neynar.com/v2/farcaster/user/search/`;
|
|
13221
|
+
const res = await fetch(url, {
|
|
13222
|
+
query: {
|
|
13223
|
+
q: username
|
|
13224
|
+
},
|
|
13225
|
+
headers: {
|
|
13226
|
+
'x-api-key': API_KEY,
|
|
13227
|
+
'x-neynar-experimental': 'false'
|
|
13228
|
+
}
|
|
13229
|
+
});
|
|
13230
|
+
const json = await res.json();
|
|
13231
|
+
const users = json.result && json.result.users;
|
|
13232
|
+
const user = users.find(user => user.username === username);
|
|
13233
|
+
return user && user.fid || null;
|
|
13234
|
+
};
|
|
13235
|
+
|
|
13236
|
+
async function FIREFLY() {
|
|
13237
|
+
const [platform, contentType, identifier, start = 0, end = 10] = argsToArray(arguments);
|
|
13219
13238
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Firefly);
|
|
13220
13239
|
if (!API_KEY) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13221
13240
|
|
|
@@ -13277,7 +13296,8 @@ async function FIREFLY(platform, contentType, identifier, start = 0, end = 10) {
|
|
|
13277
13296
|
|
|
13278
13297
|
|
|
13279
13298
|
|
|
13280
|
-
async function BLOCKSCOUT(
|
|
13299
|
+
async function BLOCKSCOUT() {
|
|
13300
|
+
let [address, type, chain, startTimestamp, endTimestamp, page, offset] = argsToArray(arguments);
|
|
13281
13301
|
if (!chain) {
|
|
13282
13302
|
chain = 'ethereum';
|
|
13283
13303
|
}
|
|
@@ -13362,8 +13382,8 @@ async function BLOCKSCOUT(address, type, chain, startTimestamp, endTimestamp, pa
|
|
|
13362
13382
|
return 'ERROR IN FETCHING'
|
|
13363
13383
|
}
|
|
13364
13384
|
}
|
|
13365
|
-
async function GNOSIS(
|
|
13366
|
-
const [type, chain, address, startDate, endDate, page, limit] =
|
|
13385
|
+
async function GNOSIS() {
|
|
13386
|
+
const [type, chain, address, startDate, endDate, page, limit] = argsToArray(arguments);
|
|
13367
13387
|
return handleScanRequest({
|
|
13368
13388
|
scanKey: SERVICE_API_KEY.Gnosisscan,
|
|
13369
13389
|
baseUrl: 'https://api.gnosisscan.io/api',
|
|
@@ -13378,25 +13398,27 @@ async function GNOSIS(...args) {
|
|
|
13378
13398
|
}
|
|
13379
13399
|
|
|
13380
13400
|
async function NEYNAR(
|
|
13381
|
-
fid,
|
|
13382
|
-
viewerFid,
|
|
13383
|
-
sortType,
|
|
13384
|
-
limit,
|
|
13385
|
-
cursor
|
|
13386
13401
|
) {
|
|
13402
|
+
const [
|
|
13403
|
+
username
|
|
13404
|
+
] = argsToArray(arguments);
|
|
13387
13405
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
|
|
13388
13406
|
if (!API_KEY) return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13389
13407
|
|
|
13408
|
+
if(!username){
|
|
13409
|
+
return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13410
|
+
}
|
|
13390
13411
|
|
|
13391
|
-
const
|
|
13392
|
-
|
|
13393
|
-
|
|
13394
|
-
|
|
13395
|
-
|
|
13396
|
-
|
|
13412
|
+
const fid = await fromUsernameToFid(username);
|
|
13413
|
+
|
|
13414
|
+
if(!fid){
|
|
13415
|
+
return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13416
|
+
}
|
|
13417
|
+
|
|
13418
|
+
const url = `https://api.neynar.com/v2/farcaster/followers?fid=${fid}`;
|
|
13397
13419
|
|
|
13398
13420
|
try {
|
|
13399
|
-
const response = await fetch(url
|
|
13421
|
+
const response = await fetch(url, {
|
|
13400
13422
|
headers: {
|
|
13401
13423
|
'x-api-key': API_KEY,
|
|
13402
13424
|
'x-neynar-experimental': 'false'
|
|
@@ -13494,7 +13516,7 @@ async function ETHERSCAN(...args) {
|
|
|
13494
13516
|
}
|
|
13495
13517
|
|
|
13496
13518
|
|
|
13497
|
-
async function COINGECKO(category, param1, param2
|
|
13519
|
+
async function COINGECKO(category, param1, param2) {
|
|
13498
13520
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Coingecko);
|
|
13499
13521
|
if (!API_KEY) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13500
13522
|
|
|
@@ -13535,7 +13557,7 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13535
13557
|
const categoryVal = ecosystemMap[key] || '';
|
|
13536
13558
|
const trend = param2 ? `&price_change_percentage=${param2}` : '';
|
|
13537
13559
|
|
|
13538
|
-
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page
|
|
13560
|
+
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page=1&per_page=100`;
|
|
13539
13561
|
if (key && !categoryVal) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13540
13562
|
if (categoryVal) url += `&category=${categoryVal}`;
|
|
13541
13563
|
if (trend) url += trend;
|
|
@@ -13548,7 +13570,7 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13548
13570
|
: param1.toLowerCase();
|
|
13549
13571
|
|
|
13550
13572
|
const trend = param2 ? `&price_change_percentage=${param2}` : '';
|
|
13551
|
-
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=${category}&order=market_cap_desc&page
|
|
13573
|
+
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=${category}&order=market_cap_desc&page=1&per_page=100${trend}`;
|
|
13552
13574
|
break;
|
|
13553
13575
|
}
|
|
13554
13576
|
|
|
@@ -13563,7 +13585,7 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13563
13585
|
}
|
|
13564
13586
|
|
|
13565
13587
|
default:
|
|
13566
|
-
return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.
|
|
13588
|
+
return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13567
13589
|
}
|
|
13568
13590
|
|
|
13569
13591
|
try {
|
|
@@ -13619,16 +13641,19 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13619
13641
|
|
|
13620
13642
|
|
|
13621
13643
|
async function EOA(
|
|
13622
|
-
|
|
13644
|
+
) {
|
|
13645
|
+
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
13646
|
+
if (!API_KEY) return `${SERVICE_API_KEY.Etherscan}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13647
|
+
|
|
13648
|
+
let [
|
|
13649
|
+
addresses,
|
|
13623
13650
|
category,
|
|
13624
13651
|
chains,
|
|
13625
13652
|
startTime,
|
|
13626
13653
|
endTime,
|
|
13627
13654
|
page = 1,
|
|
13628
13655
|
offset = 10,
|
|
13629
|
-
)
|
|
13630
|
-
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
13631
|
-
if (!API_KEY) return `${SERVICE_API_KEY.Etherscan}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13656
|
+
] = argsToArray(arguments);
|
|
13632
13657
|
|
|
13633
13658
|
const INPUTS = addresses.split(",").map(a => a.trim()).filter(Boolean);
|
|
13634
13659
|
const CHAINS = chains.split(",").map(c => c.trim()).filter(Boolean);
|
|
@@ -13742,7 +13767,9 @@ async function FLVURL(token, vs_currencies) {
|
|
|
13742
13767
|
});
|
|
13743
13768
|
}
|
|
13744
13769
|
|
|
13745
|
-
async function SAFE(
|
|
13770
|
+
async function SAFE() {
|
|
13771
|
+
|
|
13772
|
+
let [address, utility, chain, limit, offset] = argsToArray(arguments);
|
|
13746
13773
|
|
|
13747
13774
|
if (typeof limit !== 'number' || limit < 0) return 'INVALID_LIMIT';
|
|
13748
13775
|
if (typeof offset !== 'number' || offset < 0) return 'INVALID_OFFSET';
|
|
@@ -13786,27 +13813,32 @@ async function SAFE(address, utility, chain, limit, offset) {
|
|
|
13786
13813
|
|
|
13787
13814
|
function POLYMARKET() {
|
|
13788
13815
|
return "Coming Soon"
|
|
13789
|
-
}
|
|
13790
|
-
|
|
13791
|
-
|
|
13816
|
+
}
|
|
13817
|
+
|
|
13818
|
+
|
|
13819
|
+
function PRIVACYPOOL() {
|
|
13792
13820
|
return "Coming Soon"
|
|
13793
|
-
}
|
|
13794
|
-
|
|
13795
|
-
|
|
13821
|
+
}
|
|
13822
|
+
|
|
13823
|
+
|
|
13824
|
+
function ROTKI() {
|
|
13796
13825
|
return "Coming Soon"
|
|
13797
|
-
}
|
|
13798
|
-
|
|
13799
|
-
|
|
13826
|
+
}
|
|
13827
|
+
|
|
13828
|
+
|
|
13829
|
+
function MEERKAT() {
|
|
13800
13830
|
return "Coming Soon"
|
|
13801
|
-
}
|
|
13802
|
-
|
|
13803
|
-
|
|
13831
|
+
}
|
|
13832
|
+
|
|
13833
|
+
|
|
13834
|
+
function ARTEMIS() {
|
|
13804
13835
|
return "Coming Soon"
|
|
13805
|
-
}
|
|
13806
|
-
|
|
13807
|
-
|
|
13836
|
+
}
|
|
13837
|
+
|
|
13838
|
+
|
|
13839
|
+
function TALLY() {
|
|
13808
13840
|
return "Coming Soon"
|
|
13809
|
-
}
|
|
13841
|
+
}
|
|
13810
13842
|
|
|
13811
13843
|
const utils = { errors, symbols, date };
|
|
13812
13844
|
|
|
@@ -458,22 +458,9 @@ If "derivatives": exchange name (e.g., "binance_futures").`,
|
|
|
458
458
|
},
|
|
459
459
|
{
|
|
460
460
|
name: "param2",
|
|
461
|
-
detail: `
|
|
462
|
-
For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d).`,
|
|
461
|
+
detail: `If "market" and "stablecoins" then eg. "1h", "24h", "7d".`,
|
|
463
462
|
example: `"1h,24h,7d"`,
|
|
464
463
|
require: "o"
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
name: "page",
|
|
468
|
-
detail: 'Page number for pagination (applies to "market", "stablecoins", and global "derivatives").',
|
|
469
|
-
example: `1`,
|
|
470
|
-
require: "o"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
name: "per_page",
|
|
474
|
-
detail: 'Number of items per page (applies to "market", "stablecoins", and global "derivatives").',
|
|
475
|
-
example: `2`,
|
|
476
|
-
require: "o"
|
|
477
464
|
}
|
|
478
465
|
]
|
|
479
466
|
},
|
|
@@ -936,7 +923,7 @@ For "market" and "stablecoins": comma-separated price trend keys (e.g. 1h,24h,7d
|
|
|
936
923
|
p: []
|
|
937
924
|
},
|
|
938
925
|
{
|
|
939
|
-
LOGO: "https://
|
|
926
|
+
LOGO: "https://www.tally.xyz/favicon.ico",
|
|
940
927
|
n: "TALLY",
|
|
941
928
|
t: 20,
|
|
942
929
|
d: "Fetch data from Tally.(Comming soon)",
|
package/lib/esm/index.mjs
CHANGED
|
@@ -13213,7 +13213,26 @@ if (scanKey === SERVICE_API_KEY.Gnosisscan) chainId = 'gnosis';
|
|
|
13213
13213
|
}
|
|
13214
13214
|
}
|
|
13215
13215
|
|
|
13216
|
-
|
|
13216
|
+
const fromUsernameToFid = async (username) => {
|
|
13217
|
+
if(!username) return null
|
|
13218
|
+
const url = `https://api.neynar.com/v2/farcaster/user/search/`;
|
|
13219
|
+
const res = await fetch(url, {
|
|
13220
|
+
query: {
|
|
13221
|
+
q: username
|
|
13222
|
+
},
|
|
13223
|
+
headers: {
|
|
13224
|
+
'x-api-key': API_KEY,
|
|
13225
|
+
'x-neynar-experimental': 'false'
|
|
13226
|
+
}
|
|
13227
|
+
});
|
|
13228
|
+
const json = await res.json();
|
|
13229
|
+
const users = json.result && json.result.users;
|
|
13230
|
+
const user = users.find(user => user.username === username);
|
|
13231
|
+
return user && user.fid || null;
|
|
13232
|
+
};
|
|
13233
|
+
|
|
13234
|
+
async function FIREFLY() {
|
|
13235
|
+
const [platform, contentType, identifier, start = 0, end = 10] = argsToArray(arguments);
|
|
13217
13236
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Firefly);
|
|
13218
13237
|
if (!API_KEY) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13219
13238
|
|
|
@@ -13275,7 +13294,8 @@ async function FIREFLY(platform, contentType, identifier, start = 0, end = 10) {
|
|
|
13275
13294
|
|
|
13276
13295
|
|
|
13277
13296
|
|
|
13278
|
-
async function BLOCKSCOUT(
|
|
13297
|
+
async function BLOCKSCOUT() {
|
|
13298
|
+
let [address, type, chain, startTimestamp, endTimestamp, page, offset] = argsToArray(arguments);
|
|
13279
13299
|
if (!chain) {
|
|
13280
13300
|
chain = 'ethereum';
|
|
13281
13301
|
}
|
|
@@ -13360,8 +13380,8 @@ async function BLOCKSCOUT(address, type, chain, startTimestamp, endTimestamp, pa
|
|
|
13360
13380
|
return 'ERROR IN FETCHING'
|
|
13361
13381
|
}
|
|
13362
13382
|
}
|
|
13363
|
-
async function GNOSIS(
|
|
13364
|
-
const [type, chain, address, startDate, endDate, page, limit] =
|
|
13383
|
+
async function GNOSIS() {
|
|
13384
|
+
const [type, chain, address, startDate, endDate, page, limit] = argsToArray(arguments);
|
|
13365
13385
|
return handleScanRequest({
|
|
13366
13386
|
scanKey: SERVICE_API_KEY.Gnosisscan,
|
|
13367
13387
|
baseUrl: 'https://api.gnosisscan.io/api',
|
|
@@ -13376,25 +13396,27 @@ async function GNOSIS(...args) {
|
|
|
13376
13396
|
}
|
|
13377
13397
|
|
|
13378
13398
|
async function NEYNAR(
|
|
13379
|
-
fid,
|
|
13380
|
-
viewerFid,
|
|
13381
|
-
sortType,
|
|
13382
|
-
limit,
|
|
13383
|
-
cursor
|
|
13384
13399
|
) {
|
|
13400
|
+
const [
|
|
13401
|
+
username
|
|
13402
|
+
] = argsToArray(arguments);
|
|
13385
13403
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
|
|
13386
13404
|
if (!API_KEY) return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13387
13405
|
|
|
13406
|
+
if(!username){
|
|
13407
|
+
return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13408
|
+
}
|
|
13388
13409
|
|
|
13389
|
-
const
|
|
13390
|
-
|
|
13391
|
-
|
|
13392
|
-
|
|
13393
|
-
|
|
13394
|
-
|
|
13410
|
+
const fid = await fromUsernameToFid(username);
|
|
13411
|
+
|
|
13412
|
+
if(!fid){
|
|
13413
|
+
return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13414
|
+
}
|
|
13415
|
+
|
|
13416
|
+
const url = `https://api.neynar.com/v2/farcaster/followers?fid=${fid}`;
|
|
13395
13417
|
|
|
13396
13418
|
try {
|
|
13397
|
-
const response = await fetch(url
|
|
13419
|
+
const response = await fetch(url, {
|
|
13398
13420
|
headers: {
|
|
13399
13421
|
'x-api-key': API_KEY,
|
|
13400
13422
|
'x-neynar-experimental': 'false'
|
|
@@ -13492,7 +13514,7 @@ async function ETHERSCAN(...args) {
|
|
|
13492
13514
|
}
|
|
13493
13515
|
|
|
13494
13516
|
|
|
13495
|
-
async function COINGECKO(category, param1, param2
|
|
13517
|
+
async function COINGECKO(category, param1, param2) {
|
|
13496
13518
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Coingecko);
|
|
13497
13519
|
if (!API_KEY) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13498
13520
|
|
|
@@ -13533,7 +13555,7 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13533
13555
|
const categoryVal = ecosystemMap[key] || '';
|
|
13534
13556
|
const trend = param2 ? `&price_change_percentage=${param2}` : '';
|
|
13535
13557
|
|
|
13536
|
-
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page
|
|
13558
|
+
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&include_tokens=top&page=1&per_page=100`;
|
|
13537
13559
|
if (key && !categoryVal) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13538
13560
|
if (categoryVal) url += `&category=${categoryVal}`;
|
|
13539
13561
|
if (trend) url += trend;
|
|
@@ -13546,7 +13568,7 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13546
13568
|
: param1.toLowerCase();
|
|
13547
13569
|
|
|
13548
13570
|
const trend = param2 ? `&price_change_percentage=${param2}` : '';
|
|
13549
|
-
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=${category}&order=market_cap_desc&page
|
|
13571
|
+
url = `https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&category=${category}&order=market_cap_desc&page=1&per_page=100${trend}`;
|
|
13550
13572
|
break;
|
|
13551
13573
|
}
|
|
13552
13574
|
|
|
@@ -13561,7 +13583,7 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13561
13583
|
}
|
|
13562
13584
|
|
|
13563
13585
|
default:
|
|
13564
|
-
return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.
|
|
13586
|
+
return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
|
|
13565
13587
|
}
|
|
13566
13588
|
|
|
13567
13589
|
try {
|
|
@@ -13617,16 +13639,19 @@ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
|
|
|
13617
13639
|
|
|
13618
13640
|
|
|
13619
13641
|
async function EOA(
|
|
13620
|
-
|
|
13642
|
+
) {
|
|
13643
|
+
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
13644
|
+
if (!API_KEY) return `${SERVICE_API_KEY.Etherscan}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13645
|
+
|
|
13646
|
+
let [
|
|
13647
|
+
addresses,
|
|
13621
13648
|
category,
|
|
13622
13649
|
chains,
|
|
13623
13650
|
startTime,
|
|
13624
13651
|
endTime,
|
|
13625
13652
|
page = 1,
|
|
13626
13653
|
offset = 10,
|
|
13627
|
-
)
|
|
13628
|
-
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
13629
|
-
if (!API_KEY) return `${SERVICE_API_KEY.Etherscan}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
|
|
13654
|
+
] = argsToArray(arguments);
|
|
13630
13655
|
|
|
13631
13656
|
const INPUTS = addresses.split(",").map(a => a.trim()).filter(Boolean);
|
|
13632
13657
|
const CHAINS = chains.split(",").map(c => c.trim()).filter(Boolean);
|
|
@@ -13740,7 +13765,9 @@ async function FLVURL(token, vs_currencies) {
|
|
|
13740
13765
|
});
|
|
13741
13766
|
}
|
|
13742
13767
|
|
|
13743
|
-
async function SAFE(
|
|
13768
|
+
async function SAFE() {
|
|
13769
|
+
|
|
13770
|
+
let [address, utility, chain, limit, offset] = argsToArray(arguments);
|
|
13744
13771
|
|
|
13745
13772
|
if (typeof limit !== 'number' || limit < 0) return 'INVALID_LIMIT';
|
|
13746
13773
|
if (typeof offset !== 'number' || offset < 0) return 'INVALID_OFFSET';
|
|
@@ -13784,27 +13811,32 @@ async function SAFE(address, utility, chain, limit, offset) {
|
|
|
13784
13811
|
|
|
13785
13812
|
function POLYMARKET() {
|
|
13786
13813
|
return "Coming Soon"
|
|
13787
|
-
}
|
|
13788
|
-
|
|
13789
|
-
|
|
13814
|
+
}
|
|
13815
|
+
|
|
13816
|
+
|
|
13817
|
+
function PRIVACYPOOL() {
|
|
13790
13818
|
return "Coming Soon"
|
|
13791
|
-
}
|
|
13792
|
-
|
|
13793
|
-
|
|
13819
|
+
}
|
|
13820
|
+
|
|
13821
|
+
|
|
13822
|
+
function ROTKI() {
|
|
13794
13823
|
return "Coming Soon"
|
|
13795
|
-
}
|
|
13796
|
-
|
|
13797
|
-
|
|
13824
|
+
}
|
|
13825
|
+
|
|
13826
|
+
|
|
13827
|
+
function MEERKAT() {
|
|
13798
13828
|
return "Coming Soon"
|
|
13799
|
-
}
|
|
13800
|
-
|
|
13801
|
-
|
|
13829
|
+
}
|
|
13830
|
+
|
|
13831
|
+
|
|
13832
|
+
function ARTEMIS() {
|
|
13802
13833
|
return "Coming Soon"
|
|
13803
|
-
}
|
|
13804
|
-
|
|
13805
|
-
|
|
13834
|
+
}
|
|
13835
|
+
|
|
13836
|
+
|
|
13837
|
+
function TALLY() {
|
|
13806
13838
|
return "Coming Soon"
|
|
13807
|
-
}
|
|
13839
|
+
}
|
|
13808
13840
|
|
|
13809
13841
|
const utils = { errors, symbols, date };
|
|
13810
13842
|
|
package/package.json
CHANGED
package/types/cjs/index.d.cts
CHANGED
|
@@ -409,7 +409,7 @@ export function BITRSHIFT(number: any, shift_amount: any): number | Error;
|
|
|
409
409
|
* @returns
|
|
410
410
|
*/
|
|
411
411
|
export function BITXOR(number1: any, number2: any): number | Error;
|
|
412
|
-
export function BLOCKSCOUT(
|
|
412
|
+
export function BLOCKSCOUT(...args: any[]): Promise<any>;
|
|
413
413
|
/**
|
|
414
414
|
* Rounds a number to the nearest integer or to the nearest multiple of significance.
|
|
415
415
|
*
|
|
@@ -615,7 +615,7 @@ export function CLEAN(text: any): any;
|
|
|
615
615
|
* @returns
|
|
616
616
|
*/
|
|
617
617
|
export function CODE(text: any): any;
|
|
618
|
-
export function COINGECKO(category: any, param1: any, param2: any
|
|
618
|
+
export function COINGECKO(category: any, param1: any, param2: any): Promise<string | {}[]>;
|
|
619
619
|
/**
|
|
620
620
|
* Returns the column number of a reference.
|
|
621
621
|
*
|
|
@@ -1285,7 +1285,7 @@ export function EDATE(start_date: any, months: any): any;
|
|
|
1285
1285
|
* @returns
|
|
1286
1286
|
*/
|
|
1287
1287
|
export function EFFECT(nominal_rate: any, npery: any): number | Error;
|
|
1288
|
-
export function EOA(
|
|
1288
|
+
export function EOA(...args: any[]): Promise<any>;
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Returns the serial number of the last day of the month before or after a specified number of months.
|
|
1291
1291
|
*
|
|
@@ -1518,7 +1518,7 @@ export namespace FINV { }
|
|
|
1518
1518
|
* @returns
|
|
1519
1519
|
*/
|
|
1520
1520
|
export function FINVRT(probability: any, deg_freedom1: any, deg_freedom2: any, ...args: any[]): any;
|
|
1521
|
-
export function FIREFLY(
|
|
1521
|
+
export function FIREFLY(...args: any[]): Promise<any>;
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Returns the Fisher transformation.
|
|
1524
1524
|
*
|
|
@@ -2831,7 +2831,7 @@ export function NETWORKDAYSINTL(start_date: any, end_date: any, weekend: any, ho
|
|
|
2831
2831
|
* @returns
|
|
2832
2832
|
*/
|
|
2833
2833
|
export function NETWORKDAYS_INTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
|
|
2834
|
-
export function NEYNAR(
|
|
2834
|
+
export function NEYNAR(...args: any[]): Promise<any>;
|
|
2835
2835
|
/**
|
|
2836
2836
|
* Returns the annual nominal interest rate.
|
|
2837
2837
|
*
|
|
@@ -3546,7 +3546,7 @@ export function RRI(nper: any, pv: any, fv: any): number | Error;
|
|
|
3546
3546
|
* @returns
|
|
3547
3547
|
*/
|
|
3548
3548
|
export function RSQ(known_y: any, known_x: any): number | Error;
|
|
3549
|
-
export function SAFE(
|
|
3549
|
+
export function SAFE(...args: any[]): Promise<any>;
|
|
3550
3550
|
/**
|
|
3551
3551
|
* Finds one text value within another (not case-sensitive)
|
|
3552
3552
|
*
|
package/types/esm/index.d.mts
CHANGED
|
@@ -409,7 +409,7 @@ export function BITRSHIFT(number: any, shift_amount: any): number | Error;
|
|
|
409
409
|
* @returns
|
|
410
410
|
*/
|
|
411
411
|
export function BITXOR(number1: any, number2: any): number | Error;
|
|
412
|
-
export function BLOCKSCOUT(
|
|
412
|
+
export function BLOCKSCOUT(...args: any[]): Promise<any>;
|
|
413
413
|
/**
|
|
414
414
|
* Rounds a number to the nearest integer or to the nearest multiple of significance.
|
|
415
415
|
*
|
|
@@ -615,7 +615,7 @@ export function CLEAN(text: any): any;
|
|
|
615
615
|
* @returns
|
|
616
616
|
*/
|
|
617
617
|
export function CODE(text: any): any;
|
|
618
|
-
export function COINGECKO(category: any, param1: any, param2: any
|
|
618
|
+
export function COINGECKO(category: any, param1: any, param2: any): Promise<string | {}[]>;
|
|
619
619
|
/**
|
|
620
620
|
* Returns the column number of a reference.
|
|
621
621
|
*
|
|
@@ -1285,7 +1285,7 @@ export function EDATE(start_date: any, months: any): any;
|
|
|
1285
1285
|
* @returns
|
|
1286
1286
|
*/
|
|
1287
1287
|
export function EFFECT(nominal_rate: any, npery: any): number | Error;
|
|
1288
|
-
export function EOA(
|
|
1288
|
+
export function EOA(...args: any[]): Promise<any>;
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Returns the serial number of the last day of the month before or after a specified number of months.
|
|
1291
1291
|
*
|
|
@@ -1518,7 +1518,7 @@ export namespace FINV { }
|
|
|
1518
1518
|
* @returns
|
|
1519
1519
|
*/
|
|
1520
1520
|
export function FINVRT(probability: any, deg_freedom1: any, deg_freedom2: any, ...args: any[]): any;
|
|
1521
|
-
export function FIREFLY(
|
|
1521
|
+
export function FIREFLY(...args: any[]): Promise<any>;
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Returns the Fisher transformation.
|
|
1524
1524
|
*
|
|
@@ -2831,7 +2831,7 @@ export function NETWORKDAYSINTL(start_date: any, end_date: any, weekend: any, ho
|
|
|
2831
2831
|
* @returns
|
|
2832
2832
|
*/
|
|
2833
2833
|
export function NETWORKDAYS_INTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
|
|
2834
|
-
export function NEYNAR(
|
|
2834
|
+
export function NEYNAR(...args: any[]): Promise<any>;
|
|
2835
2835
|
/**
|
|
2836
2836
|
* Returns the annual nominal interest rate.
|
|
2837
2837
|
*
|
|
@@ -3546,7 +3546,7 @@ export function RRI(nper: any, pv: any, fv: any): number | Error;
|
|
|
3546
3546
|
* @returns
|
|
3547
3547
|
*/
|
|
3548
3548
|
export function RSQ(known_y: any, known_x: any): number | Error;
|
|
3549
|
-
export function SAFE(
|
|
3549
|
+
export function SAFE(...args: any[]): Promise<any>;
|
|
3550
3550
|
/**
|
|
3551
3551
|
* Finds one text value within another (not case-sensitive)
|
|
3552
3552
|
*
|