@fileverse-dev/formulajs 4.4.11-mod-99-dune-sim-3 → 4.4.12-mod-0

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
@@ -18509,8 +18509,8 @@ async function TALLY() {
18509
18509
  }
18510
18510
 
18511
18511
  const duneSimParamsSchema = objectType({
18512
- address: stringType().nonempty(),
18513
- service: enumType(['activity']),
18512
+ wallet: stringType().nonempty(),
18513
+ type: enumType(['activity']),
18514
18514
  });
18515
18515
 
18516
18516
  function flattenObject(obj, parentKey = '', res = {}) {
@@ -18545,12 +18545,11 @@ function flattenObject(obj, parentKey = '', res = {}) {
18545
18545
 
18546
18546
  async function DUNESIM() {
18547
18547
  try {
18548
- const [service, address] = argsToArray(arguments);
18549
-
18550
- validateParams(duneSimParamsSchema, { address, service });
18548
+ const [type, wallet] = argsToArray(arguments);
18551
18549
 
18550
+ validateParams(duneSimParamsSchema, { wallet, type });
18551
+ const address = await fromEnsNameToAddress$1.validateAndGetAddress(wallet);
18552
18552
  const apiKey = window.localStorage.getItem(SERVICES_API_KEY.DuneSim);
18553
-
18554
18553
  const url = `https://api.sim.dune.com/v1/evm/activity/${address}`;
18555
18554
 
18556
18555
  const { URL: finalUrl, HEADERS } = getUrlAndHeaders({
@@ -887,16 +887,16 @@ var DUNESIM_metadata = {
887
887
  a: "Query Sim APIs for blockchain activity and ownership data.",
888
888
  p: [
889
889
  {
890
- name: "Service",
891
- detail: "Service to query from DuneSim. We support only `activity` service for now.",
890
+ name: "type",
891
+ detail: "Query type. We support only `activity` for now.",
892
892
  example: `"activity"`,
893
893
  require: "m",
894
894
  type: "string"
895
895
  },
896
896
  {
897
- name: "address",
897
+ name: "wallet",
898
898
  detail: "Wallet to get activity for",
899
- example: `"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"`,
899
+ example: `"vitalik.eth"`,
900
900
  require: "m",
901
901
  type: "string"
902
902
  }
package/lib/esm/index.mjs CHANGED
@@ -18507,8 +18507,8 @@ async function TALLY() {
18507
18507
  }
18508
18508
 
18509
18509
  const duneSimParamsSchema = objectType({
18510
- address: stringType().nonempty(),
18511
- service: enumType(['activity']),
18510
+ wallet: stringType().nonempty(),
18511
+ type: enumType(['activity']),
18512
18512
  });
18513
18513
 
18514
18514
  function flattenObject(obj, parentKey = '', res = {}) {
@@ -18543,12 +18543,11 @@ function flattenObject(obj, parentKey = '', res = {}) {
18543
18543
 
18544
18544
  async function DUNESIM() {
18545
18545
  try {
18546
- const [service, address] = argsToArray(arguments);
18547
-
18548
- validateParams(duneSimParamsSchema, { address, service });
18546
+ const [type, wallet] = argsToArray(arguments);
18549
18547
 
18548
+ validateParams(duneSimParamsSchema, { wallet, type });
18549
+ const address = await fromEnsNameToAddress$1.validateAndGetAddress(wallet);
18550
18550
  const apiKey = window.localStorage.getItem(SERVICES_API_KEY.DuneSim);
18551
-
18552
18551
  const url = `https://api.sim.dune.com/v1/evm/activity/${address}`;
18553
18552
 
18554
18553
  const { URL: finalUrl, HEADERS } = getUrlAndHeaders({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.11-mod-99-dune-sim-3",
3
+ "version": "4.4.12-mod-0",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {