@fileverse-dev/formulajs 4.4.31-circles-patch-3 → 4.4.31-circles-patch-5
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
|
@@ -29763,16 +29763,16 @@ class CirclesData {
|
|
|
29763
29763
|
}
|
|
29764
29764
|
|
|
29765
29765
|
const circlesParamsSchema = objectType({
|
|
29766
|
-
address: stringType().nonempty(),
|
|
29767
29766
|
functionName: enumType(['trust', 'profile', 'transactions', 'balances']),
|
|
29767
|
+
address: stringType().nonempty(),
|
|
29768
29768
|
entries: numberType().int().nonnegative().default(10)
|
|
29769
29769
|
});
|
|
29770
29770
|
|
|
29771
29771
|
async function CIRCLES() {
|
|
29772
29772
|
try {
|
|
29773
|
-
const [
|
|
29773
|
+
const [functionName, address, entries] = argsToArray(arguments);
|
|
29774
29774
|
|
|
29775
|
-
validateParams(circlesParamsSchema, {
|
|
29775
|
+
validateParams(circlesParamsSchema, { functionName, address, entries });
|
|
29776
29776
|
|
|
29777
29777
|
const resolved = await fromEnsNameToAddress$1.validateAndGetAddress(address);
|
|
29778
29778
|
const dataClient = new CirclesData('https://rpc.aboutcircles.com');
|
|
@@ -29797,8 +29797,7 @@ async function CIRCLES() {
|
|
|
29797
29797
|
|
|
29798
29798
|
case 'profile': {
|
|
29799
29799
|
const res = await dataClient.getAvatarInfo(resolved);
|
|
29800
|
-
|
|
29801
|
-
return flat
|
|
29800
|
+
return [res]
|
|
29802
29801
|
}
|
|
29803
29802
|
|
|
29804
29803
|
case 'balances': {
|
|
@@ -1017,18 +1017,18 @@ var CIRCLES_metadata = {
|
|
|
1017
1017
|
d: "Query the list of transactions performed by a Circles address, with optional pagination.",
|
|
1018
1018
|
a: "Query the list of transactions performed by a Circles address, with optional pagination.",
|
|
1019
1019
|
p: [
|
|
1020
|
-
{
|
|
1021
|
-
name: "address",
|
|
1022
|
-
detail: "The address to query, in hexadecimal format.",
|
|
1023
|
-
example: `"0xe9A6378d8FD4983C2999DB0735f258397E8C2253"`,
|
|
1024
|
-
require: "m"
|
|
1025
|
-
},
|
|
1026
1020
|
{
|
|
1027
1021
|
name: "functionName",
|
|
1028
1022
|
detail: "The function name to query, supported values: 'trust', 'profile', 'transactions', 'balances'.",
|
|
1029
1023
|
example: `"trust"`,
|
|
1030
1024
|
require: "m"
|
|
1031
1025
|
},
|
|
1026
|
+
{
|
|
1027
|
+
name: "address",
|
|
1028
|
+
detail: "The address to query, in hexadecimal format.",
|
|
1029
|
+
example: `"0xe9A6378d8FD4983C2999DB0735f258397E8C2253"`,
|
|
1030
|
+
require: "m"
|
|
1031
|
+
},
|
|
1032
1032
|
{
|
|
1033
1033
|
name: "entries",
|
|
1034
1034
|
detail: "The number of entries to return. Default is 10.",
|
package/lib/esm/index.mjs
CHANGED
|
@@ -29761,16 +29761,16 @@ class CirclesData {
|
|
|
29761
29761
|
}
|
|
29762
29762
|
|
|
29763
29763
|
const circlesParamsSchema = objectType({
|
|
29764
|
-
address: stringType().nonempty(),
|
|
29765
29764
|
functionName: enumType(['trust', 'profile', 'transactions', 'balances']),
|
|
29765
|
+
address: stringType().nonempty(),
|
|
29766
29766
|
entries: numberType().int().nonnegative().default(10)
|
|
29767
29767
|
});
|
|
29768
29768
|
|
|
29769
29769
|
async function CIRCLES() {
|
|
29770
29770
|
try {
|
|
29771
|
-
const [
|
|
29771
|
+
const [functionName, address, entries] = argsToArray(arguments);
|
|
29772
29772
|
|
|
29773
|
-
validateParams(circlesParamsSchema, {
|
|
29773
|
+
validateParams(circlesParamsSchema, { functionName, address, entries });
|
|
29774
29774
|
|
|
29775
29775
|
const resolved = await fromEnsNameToAddress$1.validateAndGetAddress(address);
|
|
29776
29776
|
const dataClient = new CirclesData('https://rpc.aboutcircles.com');
|
|
@@ -29795,8 +29795,7 @@ async function CIRCLES() {
|
|
|
29795
29795
|
|
|
29796
29796
|
case 'profile': {
|
|
29797
29797
|
const res = await dataClient.getAvatarInfo(resolved);
|
|
29798
|
-
|
|
29799
|
-
return flat
|
|
29798
|
+
return [res]
|
|
29800
29799
|
}
|
|
29801
29800
|
|
|
29802
29801
|
case 'balances': {
|
package/package.json
CHANGED