@seljs/env 1.3.0-beta.24 → 1.3.0-beta.27
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/dist/builtins.cjs +24 -0
- package/dist/builtins.mjs +24 -0
- package/package.json +3 -3
package/dist/builtins.cjs
CHANGED
|
@@ -217,6 +217,30 @@ const CEL_BUILTIN_FUNCTIONS = [
|
|
|
217
217
|
returns: "sol_int",
|
|
218
218
|
receiverType: "sol_address"
|
|
219
219
|
},
|
|
220
|
+
{
|
|
221
|
+
name: "sum",
|
|
222
|
+
signature: "list<sol_int>.sum(): sol_int",
|
|
223
|
+
description: "Returns the sum of all elements. An empty list sums to 0.",
|
|
224
|
+
params: [],
|
|
225
|
+
returns: "sol_int",
|
|
226
|
+
receiverType: "list<sol_int>"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: "min",
|
|
230
|
+
signature: "list<sol_int>.min(): sol_int",
|
|
231
|
+
description: "Returns the smallest element. Throws when the list is empty.",
|
|
232
|
+
params: [],
|
|
233
|
+
returns: "sol_int",
|
|
234
|
+
receiverType: "list<sol_int>"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: "max",
|
|
238
|
+
signature: "list<sol_int>.max(): sol_int",
|
|
239
|
+
description: "Returns the largest element. Throws when the list is empty.",
|
|
240
|
+
params: [],
|
|
241
|
+
returns: "sol_int",
|
|
242
|
+
receiverType: "list<sol_int>"
|
|
243
|
+
},
|
|
220
244
|
{
|
|
221
245
|
name: "isZeroAddress",
|
|
222
246
|
signature: "isZeroAddress(sol_address|string): bool",
|
package/dist/builtins.mjs
CHANGED
|
@@ -217,6 +217,30 @@ const CEL_BUILTIN_FUNCTIONS = [
|
|
|
217
217
|
returns: "sol_int",
|
|
218
218
|
receiverType: "sol_address"
|
|
219
219
|
},
|
|
220
|
+
{
|
|
221
|
+
name: "sum",
|
|
222
|
+
signature: "list<sol_int>.sum(): sol_int",
|
|
223
|
+
description: "Returns the sum of all elements. An empty list sums to 0.",
|
|
224
|
+
params: [],
|
|
225
|
+
returns: "sol_int",
|
|
226
|
+
receiverType: "list<sol_int>"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
name: "min",
|
|
230
|
+
signature: "list<sol_int>.min(): sol_int",
|
|
231
|
+
description: "Returns the smallest element. Throws when the list is empty.",
|
|
232
|
+
params: [],
|
|
233
|
+
returns: "sol_int",
|
|
234
|
+
receiverType: "list<sol_int>"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: "max",
|
|
238
|
+
signature: "list<sol_int>.max(): sol_int",
|
|
239
|
+
description: "Returns the largest element. Throws when the list is empty.",
|
|
240
|
+
params: [],
|
|
241
|
+
returns: "sol_int",
|
|
242
|
+
receiverType: "list<sol_int>"
|
|
243
|
+
},
|
|
220
244
|
{
|
|
221
245
|
name: "isZeroAddress",
|
|
222
246
|
signature: "isZeroAddress(sol_address|string): bool",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seljs/env",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.27",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/abinnovision/seljs"
|
|
6
6
|
},
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@seljs/common": "1.3.0-beta.
|
|
51
|
+
"@seljs/common": "1.3.0-beta.27",
|
|
52
52
|
"@seljs/schema": "1.2.0",
|
|
53
|
-
"@seljs/types": "1.3.0-beta.
|
|
53
|
+
"@seljs/types": "1.3.0-beta.27",
|
|
54
54
|
"abitype": "^1.2.3",
|
|
55
55
|
"viem": "^2.47.6"
|
|
56
56
|
},
|