@fileverse-dev/formulajs 4.4.11-mod-84-patch-1 → 4.4.11-mod-86
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 +3 -2
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +13 -12
- package/lib/esm/crypto-constants.mjs +0 -3
- package/lib/esm/index.mjs +13 -12
- package/package.json +1 -1
- package/types/cjs/index.d.cts +1 -0
- package/types/esm/index.d.mts +1 -0
package/lib/cjs/index.cjs
CHANGED
|
@@ -18468,20 +18468,21 @@ const smartContractSchema = arrayType(anyType())
|
|
|
18468
18468
|
|
|
18469
18469
|
function SMARTCONTRACT(){
|
|
18470
18470
|
try {
|
|
18471
|
-
|
|
18471
|
+
const [contractName, functionName, ...args] = argsToArray(arguments);
|
|
18472
18472
|
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
|
|
18477
|
-
|
|
18478
|
-
|
|
18473
|
+
validateParams(smartContractSchema, [
|
|
18474
|
+
contractName,
|
|
18475
|
+
functionName,
|
|
18476
|
+
...args
|
|
18477
|
+
]);
|
|
18479
18478
|
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
18479
|
+
|
|
18480
|
+
return {
|
|
18481
|
+
contractName,
|
|
18482
|
+
functionName,
|
|
18483
|
+
args,
|
|
18484
|
+
responseType: 'smart-contract'
|
|
18485
|
+
}
|
|
18485
18486
|
} catch (error) {
|
|
18486
18487
|
return errorMessageHandler(error, 'SMARTCONTRACT')
|
|
18487
18488
|
}
|
|
@@ -683,9 +683,6 @@ var Neynar_metadata = {
|
|
|
683
683
|
|
|
684
684
|
// src/crypto/smart-contract/metadata.js
|
|
685
685
|
var SMARTCONTRACT_metadata = {
|
|
686
|
-
LOGO: "https://gnosisscan.io/assets/generic/html/favicon-light.ico",
|
|
687
|
-
BRAND_COLOR: "#f6f7f6",
|
|
688
|
-
BRAND_SECONDARY_COLOR: "#133629",
|
|
689
686
|
n: "SMARTCONTRACT",
|
|
690
687
|
t: 20,
|
|
691
688
|
d: "Pulls data from a given contract",
|
package/lib/esm/index.mjs
CHANGED
|
@@ -18466,20 +18466,21 @@ const smartContractSchema = arrayType(anyType())
|
|
|
18466
18466
|
|
|
18467
18467
|
function SMARTCONTRACT(){
|
|
18468
18468
|
try {
|
|
18469
|
-
|
|
18469
|
+
const [contractName, functionName, ...args] = argsToArray(arguments);
|
|
18470
18470
|
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
|
|
18471
|
+
validateParams(smartContractSchema, [
|
|
18472
|
+
contractName,
|
|
18473
|
+
functionName,
|
|
18474
|
+
...args
|
|
18475
|
+
]);
|
|
18477
18476
|
|
|
18478
|
-
|
|
18479
|
-
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18477
|
+
|
|
18478
|
+
return {
|
|
18479
|
+
contractName,
|
|
18480
|
+
functionName,
|
|
18481
|
+
args,
|
|
18482
|
+
responseType: 'smart-contract'
|
|
18483
|
+
}
|
|
18483
18484
|
} catch (error) {
|
|
18484
18485
|
return errorMessageHandler(error, 'SMARTCONTRACT')
|
|
18485
18486
|
}
|
package/package.json
CHANGED
package/types/cjs/index.d.cts
CHANGED
|
@@ -3797,6 +3797,7 @@ export function SMARTCONTRACT(...args: any[]): {
|
|
|
3797
3797
|
contractName: any;
|
|
3798
3798
|
functionName: any;
|
|
3799
3799
|
args: any[];
|
|
3800
|
+
responseType: string;
|
|
3800
3801
|
};
|
|
3801
3802
|
/**
|
|
3802
3803
|
* Returns a sorted array of the elements in an array. The returned array is the same shape as the provided array argument.
|
package/types/esm/index.d.mts
CHANGED
|
@@ -3797,6 +3797,7 @@ export function SMARTCONTRACT(...args: any[]): {
|
|
|
3797
3797
|
contractName: any;
|
|
3798
3798
|
functionName: any;
|
|
3799
3799
|
args: any[];
|
|
3800
|
+
responseType: string;
|
|
3800
3801
|
};
|
|
3801
3802
|
/**
|
|
3802
3803
|
* Returns a sorted array of the elements in an array. The returned array is the same shape as the provided array argument.
|