@fileverse-dev/formulajs 4.4.11-mod-87 → 4.4.11-mod-89

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
@@ -18458,14 +18458,18 @@ async function UNISWAP() {
18458
18458
  }
18459
18459
  }
18460
18460
 
18461
- function SMARTCONTRACT() {
18461
+ async function SMARTCONTRACT() {
18462
18462
  try {
18463
18463
  const args = argsToArray(arguments);
18464
18464
 
18465
- return {
18465
+ return new Promise((resolve) => {
18466
+ resolve( {
18466
18467
  callSignature: args,
18467
18468
  responseType: 'smart-contract'
18468
- }
18469
+ });
18470
+ })
18471
+
18472
+
18469
18473
  } catch (error) {
18470
18474
  return errorMessageHandler(error, 'SMARTCONTRACT')
18471
18475
  }
@@ -685,27 +685,27 @@ var Neynar_metadata = {
685
685
  var SMARTCONTRACT_metadata = {
686
686
  n: "SMARTCONTRACT",
687
687
  t: 20,
688
- d: "Pulls data from a given contract",
688
+ d: "Query smart contracts in cells.",
689
689
  r: "Call a read-only function on a given smart contract",
690
690
  p: [
691
691
  {
692
692
  name: "contractName",
693
693
  detail: "Name of the contract you want to pull data from",
694
- example: '"My Fileverse portal"',
694
+ example: '"USDC"',
695
695
  require: "m",
696
696
  type: "string"
697
697
  },
698
698
  {
699
699
  name: "functionName",
700
700
  detail: "Name of the function you want to call from the give contract",
701
- example: '"getCollaborators"',
701
+ example: '"balanceOf"',
702
702
  require: "m",
703
703
  type: "string"
704
704
  },
705
705
  {
706
706
  name: "...functionArgs",
707
707
  detail: "Optional arguments to pass to the contract function.",
708
- example: '1, "0xabc...", true',
708
+ example: '"0x50Aa3435E310d5a2d15a989Bc353ce7f5682E1d4"',
709
709
  require: "o",
710
710
  type: "any"
711
711
  }
package/lib/esm/index.mjs CHANGED
@@ -18456,14 +18456,18 @@ async function UNISWAP() {
18456
18456
  }
18457
18457
  }
18458
18458
 
18459
- function SMARTCONTRACT() {
18459
+ async function SMARTCONTRACT() {
18460
18460
  try {
18461
18461
  const args = argsToArray(arguments);
18462
18462
 
18463
- return {
18463
+ return new Promise((resolve) => {
18464
+ resolve( {
18464
18465
  callSignature: args,
18465
18466
  responseType: 'smart-contract'
18466
- }
18467
+ });
18468
+ })
18469
+
18470
+
18467
18471
  } catch (error) {
18468
18472
  return errorMessageHandler(error, 'SMARTCONTRACT')
18469
18473
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.11-mod-87",
3
+ "version": "4.4.11-mod-89",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {
@@ -3775,28 +3775,7 @@ export function SLOPE(known_y: any, known_x: any): number | Error;
3775
3775
  * @returns
3776
3776
  */
3777
3777
  export function SMALL(array: any, k: any): any;
3778
- export function SMARTCONTRACT(...args: any[]): {
3779
- message: string;
3780
- functionName: any;
3781
- type: string;
3782
- apiKeyName?: undefined;
3783
- reason?: undefined;
3784
- } | {
3785
- message: string;
3786
- functionName: any;
3787
- type: string;
3788
- apiKeyName: any;
3789
- reason?: undefined;
3790
- } | {
3791
- message: string;
3792
- functionName: any;
3793
- type: string;
3794
- reason: any;
3795
- apiKeyName?: undefined;
3796
- } | {
3797
- callSignature: any[];
3798
- responseType: string;
3799
- };
3778
+ export function SMARTCONTRACT(...args: any[]): Promise<any>;
3800
3779
  /**
3801
3780
  * Returns a sorted array of the elements in an array. The returned array is the same shape as the provided array argument.
3802
3781
  *
@@ -3775,28 +3775,7 @@ export function SLOPE(known_y: any, known_x: any): number | Error;
3775
3775
  * @returns
3776
3776
  */
3777
3777
  export function SMALL(array: any, k: any): any;
3778
- export function SMARTCONTRACT(...args: any[]): {
3779
- message: string;
3780
- functionName: any;
3781
- type: string;
3782
- apiKeyName?: undefined;
3783
- reason?: undefined;
3784
- } | {
3785
- message: string;
3786
- functionName: any;
3787
- type: string;
3788
- apiKeyName: any;
3789
- reason?: undefined;
3790
- } | {
3791
- message: string;
3792
- functionName: any;
3793
- type: string;
3794
- reason: any;
3795
- apiKeyName?: undefined;
3796
- } | {
3797
- callSignature: any[];
3798
- responseType: string;
3799
- };
3778
+ export function SMARTCONTRACT(...args: any[]): Promise<any>;
3800
3779
  /**
3801
3780
  * Returns a sorted array of the elements in an array. The returned array is the same shape as the provided array argument.
3802
3781
  *