@fileverse-dev/formulajs 4.4.11-mod-86-patch-2 → 4.4.11-mod-87
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 +16 -47
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +9 -26
- package/lib/esm/crypto-constants.mjs +1 -1
- package/lib/esm/index.mjs +9 -26
- package/package.json +1 -1
- package/types/cjs/index.d.cts +3 -5
- package/types/esm/index.d.mts +3 -5
package/lib/cjs/index.cjs
CHANGED
|
@@ -18458,34 +18458,17 @@ async function UNISWAP() {
|
|
|
18458
18458
|
}
|
|
18459
18459
|
}
|
|
18460
18460
|
|
|
18461
|
-
|
|
18462
|
-
|
|
18463
|
-
|
|
18464
|
-
{
|
|
18465
|
-
message: 'First two arguments must be strings: contractName and functionName',
|
|
18466
|
-
}
|
|
18467
|
-
);
|
|
18468
|
-
|
|
18469
|
-
async function SMARTCONTRACT(){
|
|
18470
|
-
try {
|
|
18471
|
-
const [contractName, functionName, ...args] = argsToArray(arguments);
|
|
18472
|
-
|
|
18473
|
-
validateParams(smartContractSchema, [
|
|
18474
|
-
contractName,
|
|
18475
|
-
functionName,
|
|
18476
|
-
...args
|
|
18477
|
-
]);
|
|
18478
|
-
|
|
18461
|
+
function SMARTCONTRACT() {
|
|
18462
|
+
try {
|
|
18463
|
+
const args = argsToArray(arguments);
|
|
18479
18464
|
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
args,
|
|
18484
|
-
responseType: 'smart-contract'
|
|
18485
|
-
}
|
|
18486
|
-
} catch (error) {
|
|
18487
|
-
return errorMessageHandler(error, 'SMARTCONTRACT')
|
|
18465
|
+
return {
|
|
18466
|
+
callSignature: args,
|
|
18467
|
+
responseType: 'smart-contract'
|
|
18488
18468
|
}
|
|
18469
|
+
} catch (error) {
|
|
18470
|
+
return errorMessageHandler(error, 'SMARTCONTRACT')
|
|
18471
|
+
}
|
|
18489
18472
|
}
|
|
18490
18473
|
|
|
18491
18474
|
async function FLVURL() {
|
package/lib/esm/index.mjs
CHANGED
|
@@ -18456,34 +18456,17 @@ async function UNISWAP() {
|
|
|
18456
18456
|
}
|
|
18457
18457
|
}
|
|
18458
18458
|
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18462
|
-
{
|
|
18463
|
-
message: 'First two arguments must be strings: contractName and functionName',
|
|
18464
|
-
}
|
|
18465
|
-
);
|
|
18466
|
-
|
|
18467
|
-
async function SMARTCONTRACT(){
|
|
18468
|
-
try {
|
|
18469
|
-
const [contractName, functionName, ...args] = argsToArray(arguments);
|
|
18470
|
-
|
|
18471
|
-
validateParams(smartContractSchema, [
|
|
18472
|
-
contractName,
|
|
18473
|
-
functionName,
|
|
18474
|
-
...args
|
|
18475
|
-
]);
|
|
18476
|
-
|
|
18459
|
+
function SMARTCONTRACT() {
|
|
18460
|
+
try {
|
|
18461
|
+
const args = argsToArray(arguments);
|
|
18477
18462
|
|
|
18478
|
-
|
|
18479
|
-
|
|
18480
|
-
|
|
18481
|
-
args,
|
|
18482
|
-
responseType: 'smart-contract'
|
|
18483
|
-
}
|
|
18484
|
-
} catch (error) {
|
|
18485
|
-
return errorMessageHandler(error, 'SMARTCONTRACT')
|
|
18463
|
+
return {
|
|
18464
|
+
callSignature: args,
|
|
18465
|
+
responseType: 'smart-contract'
|
|
18486
18466
|
}
|
|
18467
|
+
} catch (error) {
|
|
18468
|
+
return errorMessageHandler(error, 'SMARTCONTRACT')
|
|
18469
|
+
}
|
|
18487
18470
|
}
|
|
18488
18471
|
|
|
18489
18472
|
async function FLVURL() {
|
package/package.json
CHANGED
package/types/cjs/index.d.cts
CHANGED
|
@@ -3775,7 +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[]):
|
|
3778
|
+
export function SMARTCONTRACT(...args: any[]): {
|
|
3779
3779
|
message: string;
|
|
3780
3780
|
functionName: any;
|
|
3781
3781
|
type: string;
|
|
@@ -3794,11 +3794,9 @@ export function SMARTCONTRACT(...args: any[]): Promise<{
|
|
|
3794
3794
|
reason: any;
|
|
3795
3795
|
apiKeyName?: undefined;
|
|
3796
3796
|
} | {
|
|
3797
|
-
|
|
3798
|
-
functionName: any;
|
|
3799
|
-
args: any[];
|
|
3797
|
+
callSignature: any[];
|
|
3800
3798
|
responseType: string;
|
|
3801
|
-
}
|
|
3799
|
+
};
|
|
3802
3800
|
/**
|
|
3803
3801
|
* Returns a sorted array of the elements in an array. The returned array is the same shape as the provided array argument.
|
|
3804
3802
|
*
|
package/types/esm/index.d.mts
CHANGED
|
@@ -3775,7 +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[]):
|
|
3778
|
+
export function SMARTCONTRACT(...args: any[]): {
|
|
3779
3779
|
message: string;
|
|
3780
3780
|
functionName: any;
|
|
3781
3781
|
type: string;
|
|
@@ -3794,11 +3794,9 @@ export function SMARTCONTRACT(...args: any[]): Promise<{
|
|
|
3794
3794
|
reason: any;
|
|
3795
3795
|
apiKeyName?: undefined;
|
|
3796
3796
|
} | {
|
|
3797
|
-
|
|
3798
|
-
functionName: any;
|
|
3799
|
-
args: any[];
|
|
3797
|
+
callSignature: any[];
|
|
3800
3798
|
responseType: string;
|
|
3801
|
-
}
|
|
3799
|
+
};
|
|
3802
3800
|
/**
|
|
3803
3801
|
* Returns a sorted array of the elements in an array. The returned array is the same shape as the provided array argument.
|
|
3804
3802
|
*
|