@fileverse-dev/formulajs 4.4.11-mod-87 → 4.4.11-mod-88
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 +36 -16
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +7 -3
- package/lib/esm/index.mjs +7 -3
- package/package.json +1 -1
- package/types/cjs/index.d.cts +1 -22
- package/types/esm/index.d.mts +1 -22
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
|
}
|
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
package/types/cjs/index.d.cts
CHANGED
|
@@ -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
|
*
|
package/types/esm/index.d.mts
CHANGED
|
@@ -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
|
*
|