@fileverse-dev/formulajs 4.4.11-mod-30 → 4.4.11-mod-33
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
|
@@ -13788,6 +13788,14 @@ async function SAFE(address, utility, chain, limit, offset) {
|
|
|
13788
13788
|
if (!apiKey) return `${SERVICE_API_KEY.Safe}_MISSING`;
|
|
13789
13789
|
if (!chainIdentifier) return 'CHAIN IS NOT SUPPORTED';
|
|
13790
13790
|
|
|
13791
|
+
if(!isAddress(address)){
|
|
13792
|
+
address = await fromEnsNameToAddress(address);
|
|
13793
|
+
}
|
|
13794
|
+
|
|
13795
|
+
if(!address){
|
|
13796
|
+
return `${address}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`
|
|
13797
|
+
}
|
|
13798
|
+
|
|
13791
13799
|
const url = `https://api.safe.global/tx-service/${chainIdentifier}/api/v2/safes/${address}/multisig-transactions?limit=${limit}&offset=${offset}`;
|
|
13792
13800
|
try {
|
|
13793
13801
|
const response = await fetch(url,
|
|
@@ -48,8 +48,8 @@ var FUNCTION_LOCALE = [
|
|
|
48
48
|
BRAND_SECONDARY_COLOR: "#855dcd",
|
|
49
49
|
n: "FIREFLY",
|
|
50
50
|
t: 20,
|
|
51
|
-
d: "Fetches content from Farcaster or Lens
|
|
52
|
-
a: "Retrieves posts, replies, or channels from Farcaster and Lens
|
|
51
|
+
d: "Fetches content from Farcaster or Lens.",
|
|
52
|
+
a: "Retrieves posts, replies, or channels from Farcaster and Lens by usernames, IDs, or hashes.",
|
|
53
53
|
p: [
|
|
54
54
|
{
|
|
55
55
|
name: "platform",
|
|
@@ -137,7 +137,7 @@ var FUNCTION_LOCALE = [
|
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
API_KEY: SERVICE_API_KEY.Basescan,
|
|
140
|
-
LOGO: "https://
|
|
140
|
+
LOGO: "https://2064089921-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevP3L0cUvP9xmRefuzCm%2Fuploads%2F2K1pvFsE7JAfcI3LAxYl%2Fbase-logo-in-blue.webp?alt=media&token=32c80439-dbdc-432a-b199-220e012efc3c",
|
|
141
141
|
BRAND_COLOR: "#f1f5ff",
|
|
142
142
|
BRAND_SECONDARY_COLOR: "#2752ff",
|
|
143
143
|
n: "BASESCAN",
|
|
@@ -321,7 +321,7 @@ var FUNCTION_LOCALE = [
|
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
API_KEY: SERVICE_API_KEY.Etherscan,
|
|
324
|
-
LOGO: "https://
|
|
324
|
+
LOGO: "https://etherscan.io/images/favicon3.ico",
|
|
325
325
|
BRAND_COLOR: "#F6F7F8",
|
|
326
326
|
BRAND_SECONDARY_COLOR: "#21325B",
|
|
327
327
|
n: "ETHERSCAN",
|
|
@@ -434,7 +434,7 @@ var FUNCTION_LOCALE = [
|
|
|
434
434
|
n: "COINGECKO",
|
|
435
435
|
t: 20,
|
|
436
436
|
API_KEY: SERVICE_API_KEY.Coingecko,
|
|
437
|
-
d: "Query crypto prices, ecosystem market data, stablecoins, or derivatives from CoinGecko.
|
|
437
|
+
d: "Query crypto prices, ecosystem market data, stablecoins, or derivatives from CoinGecko.",
|
|
438
438
|
a: 'Supports querying: "price" for specific tokens "market" for ecosystem categories (ETH, BASE, SOL, GNOSIS, HYPERLIQUID, BITCOIN, PUMP)\n- "stablecoins" for stablecoin categories like "crypto-backed-stablecoin"\n- "derivatives" globally or per exchange.\nPagination is supported for all except single-exchange derivatives.',
|
|
439
439
|
p: [
|
|
440
440
|
{
|
package/lib/esm/index.mjs
CHANGED
|
@@ -13786,6 +13786,14 @@ async function SAFE(address, utility, chain, limit, offset) {
|
|
|
13786
13786
|
if (!apiKey) return `${SERVICE_API_KEY.Safe}_MISSING`;
|
|
13787
13787
|
if (!chainIdentifier) return 'CHAIN IS NOT SUPPORTED';
|
|
13788
13788
|
|
|
13789
|
+
if(!isAddress(address)){
|
|
13790
|
+
address = await fromEnsNameToAddress(address);
|
|
13791
|
+
}
|
|
13792
|
+
|
|
13793
|
+
if(!address){
|
|
13794
|
+
return `${address}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`
|
|
13795
|
+
}
|
|
13796
|
+
|
|
13789
13797
|
const url = `https://api.safe.global/tx-service/${chainIdentifier}/api/v2/safes/${address}/multisig-transactions?limit=${limit}&offset=${offset}`;
|
|
13790
13798
|
try {
|
|
13791
13799
|
const response = await fetch(url,
|