@elizaos/plugin-tee 0.1.7 → 0.1.8
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/README.md +50 -42
- package/dist/{_esm-L4OBJJWB.js → _esm-FVHF6KDD.js} +5 -5
- package/dist/_esm-FVHF6KDD.js.map +1 -0
- package/dist/{ccip-MMGH6DXX.js → ccip-IAE5UWYX.js} +2 -2
- package/dist/{chunk-NTU6R7BC.js → chunk-KSHJJL6X.js} +18 -18
- package/dist/chunk-KSHJJL6X.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +118 -31
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
- package/dist/_esm-L4OBJJWB.js.map +0 -1
- package/dist/chunk-NTU6R7BC.js.map +0 -1
- /package/dist/{ccip-MMGH6DXX.js.map → ccip-IAE5UWYX.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// ../../node_modules/
|
|
1
|
+
// ../../node_modules/abitype/dist/esm/version.js
|
|
2
2
|
var version = "1.0.7";
|
|
3
3
|
|
|
4
|
-
// ../../node_modules/
|
|
4
|
+
// ../../node_modules/abitype/dist/esm/errors.js
|
|
5
5
|
var BaseError = class _BaseError extends Error {
|
|
6
6
|
constructor(shortMessage, args = {}) {
|
|
7
7
|
const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
|
|
@@ -54,7 +54,7 @@ var BaseError = class _BaseError extends Error {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
// ../../node_modules/
|
|
57
|
+
// ../../node_modules/abitype/dist/esm/regex.js
|
|
58
58
|
function execTyped(regex, string) {
|
|
59
59
|
const match = regex.exec(string);
|
|
60
60
|
return match?.groups;
|
|
@@ -63,7 +63,7 @@ var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
|
63
63
|
var integerRegex = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
64
64
|
var isTupleRegex = /^\(.+?\).*?$/;
|
|
65
65
|
|
|
66
|
-
// ../../node_modules/
|
|
66
|
+
// ../../node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
|
|
67
67
|
var tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
68
68
|
function formatAbiParameter(abiParameter) {
|
|
69
69
|
let type = abiParameter.type;
|
|
@@ -90,7 +90,7 @@ function formatAbiParameter(abiParameter) {
|
|
|
90
90
|
return type;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
// ../../node_modules/
|
|
93
|
+
// ../../node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
94
94
|
function formatAbiParameters(abiParameters) {
|
|
95
95
|
let params = "";
|
|
96
96
|
const length = abiParameters.length;
|
|
@@ -103,7 +103,7 @@ function formatAbiParameters(abiParameters) {
|
|
|
103
103
|
return params;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// ../../node_modules/
|
|
106
|
+
// ../../node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
|
|
107
107
|
function formatAbiItem(abiItem) {
|
|
108
108
|
if (abiItem.type === "function")
|
|
109
109
|
return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
|
|
@@ -118,7 +118,7 @@ function formatAbiItem(abiItem) {
|
|
|
118
118
|
return "receive() external payable";
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
// ../../node_modules/
|
|
121
|
+
// ../../node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
|
|
122
122
|
var errorSignatureRegex = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
123
123
|
function isErrorSignature(signature) {
|
|
124
124
|
return errorSignatureRegex.test(signature);
|
|
@@ -169,7 +169,7 @@ var functionModifiers = /* @__PURE__ */ new Set([
|
|
|
169
169
|
"storage"
|
|
170
170
|
]);
|
|
171
171
|
|
|
172
|
-
// ../../node_modules/
|
|
172
|
+
// ../../node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
|
|
173
173
|
var UnknownTypeError = class extends BaseError {
|
|
174
174
|
constructor({ type }) {
|
|
175
175
|
super("Unknown type.", {
|
|
@@ -199,7 +199,7 @@ var UnknownSolidityTypeError = class extends BaseError {
|
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
-
// ../../node_modules/
|
|
202
|
+
// ../../node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
|
|
203
203
|
var InvalidParameterError = class extends BaseError {
|
|
204
204
|
constructor({ param }) {
|
|
205
205
|
super("Invalid ABI parameter.", {
|
|
@@ -277,7 +277,7 @@ var InvalidAbiTypeParameterError = class extends BaseError {
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
|
|
280
|
-
// ../../node_modules/
|
|
280
|
+
// ../../node_modules/abitype/dist/esm/human-readable/errors/signature.js
|
|
281
281
|
var InvalidSignatureError = class extends BaseError {
|
|
282
282
|
constructor({ signature, type }) {
|
|
283
283
|
super(`Invalid ${type} signature.`, {
|
|
@@ -319,7 +319,7 @@ var InvalidStructSignatureError = class extends BaseError {
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
-
// ../../node_modules/
|
|
322
|
+
// ../../node_modules/abitype/dist/esm/human-readable/errors/struct.js
|
|
323
323
|
var CircularReferenceError = class extends BaseError {
|
|
324
324
|
constructor({ type }) {
|
|
325
325
|
super("Circular reference detected.", {
|
|
@@ -334,7 +334,7 @@ var CircularReferenceError = class extends BaseError {
|
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
// ../../node_modules/
|
|
337
|
+
// ../../node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
|
|
338
338
|
var InvalidParenthesisError = class extends BaseError {
|
|
339
339
|
constructor({ current, depth }) {
|
|
340
340
|
super("Unbalanced parentheses.", {
|
|
@@ -352,7 +352,7 @@ var InvalidParenthesisError = class extends BaseError {
|
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
354
|
|
|
355
|
-
// ../../node_modules/
|
|
355
|
+
// ../../node_modules/abitype/dist/esm/human-readable/runtime/cache.js
|
|
356
356
|
function getParameterCacheKey(param, type, structs) {
|
|
357
357
|
let structKey = "";
|
|
358
358
|
if (structs)
|
|
@@ -424,7 +424,7 @@ var parameterCache = /* @__PURE__ */ new Map([
|
|
|
424
424
|
]
|
|
425
425
|
]);
|
|
426
426
|
|
|
427
|
-
// ../../node_modules/
|
|
427
|
+
// ../../node_modules/abitype/dist/esm/human-readable/runtime/utils.js
|
|
428
428
|
function parseSignature(signature, structs = {}) {
|
|
429
429
|
if (isFunctionSignature(signature)) {
|
|
430
430
|
const match = execFunctionSignature(signature);
|
|
@@ -607,7 +607,7 @@ function isValidDataLocation(type, isArray) {
|
|
|
607
607
|
return isArray || type === "bytes" || type === "string" || type === "tuple";
|
|
608
608
|
}
|
|
609
609
|
|
|
610
|
-
// ../../node_modules/
|
|
610
|
+
// ../../node_modules/abitype/dist/esm/human-readable/runtime/structs.js
|
|
611
611
|
function parseStructs(signatures) {
|
|
612
612
|
const shallowStructs = {};
|
|
613
613
|
const signaturesLength = signatures.length;
|
|
@@ -677,7 +677,7 @@ function resolveStructs(abiParameters, structs, ancestors = /* @__PURE__ */ new
|
|
|
677
677
|
return components;
|
|
678
678
|
}
|
|
679
679
|
|
|
680
|
-
// ../../node_modules/
|
|
680
|
+
// ../../node_modules/abitype/dist/esm/human-readable/parseAbi.js
|
|
681
681
|
function parseAbi(signatures) {
|
|
682
682
|
const structs = parseStructs(signatures);
|
|
683
683
|
const abi = [];
|
|
@@ -3698,7 +3698,7 @@ async function call(client, args) {
|
|
|
3698
3698
|
return { data: response };
|
|
3699
3699
|
} catch (err) {
|
|
3700
3700
|
const data2 = getRevertErrorData(err);
|
|
3701
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
3701
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-IAE5UWYX.js");
|
|
3702
3702
|
if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
|
|
3703
3703
|
return { data: await offchainLookup2(client, { data: data2, to }) };
|
|
3704
3704
|
if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
|
|
@@ -4016,4 +4016,4 @@ export {
|
|
|
4016
4016
|
@noble/hashes/esm/utils.js:
|
|
4017
4017
|
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
4018
4018
|
*/
|
|
4019
|
-
//# sourceMappingURL=chunk-
|
|
4019
|
+
//# sourceMappingURL=chunk-KSHJJL6X.js.map
|