@elizaos/plugin-tee 2.0.0-alpha.3 → 2.0.0-alpha.4

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.
Files changed (45) hide show
  1. package/dist/index.js +9 -7
  2. package/dist/index.js.map +6 -6
  3. package/dist/node/actions/index.d.ts +2 -0
  4. package/dist/node/actions/index.d.ts.map +1 -0
  5. package/dist/node/actions/index.js +1 -0
  6. package/dist/node/actions/remoteAttestation.d.ts +3 -0
  7. package/dist/node/actions/remoteAttestation.d.ts.map +1 -0
  8. package/dist/node/actions/remoteAttestation.js +115 -0
  9. package/dist/node/index.d.ts +10 -0
  10. package/dist/node/index.d.ts.map +1 -0
  11. package/dist/node/index.js +34 -0
  12. package/dist/node/providers/base.d.ts +8 -0
  13. package/dist/node/providers/base.d.ts.map +1 -0
  14. package/dist/node/providers/base.js +4 -0
  15. package/dist/node/providers/deriveKey.d.ts +24 -0
  16. package/dist/node/providers/deriveKey.d.ts.map +1 -0
  17. package/dist/node/providers/deriveKey.js +143 -0
  18. package/dist/node/providers/index.d.ts +4 -0
  19. package/dist/node/providers/index.d.ts.map +1 -0
  20. package/dist/node/providers/index.js +3 -0
  21. package/dist/node/providers/remoteAttestation.d.ts +10 -0
  22. package/dist/node/providers/remoteAttestation.d.ts.map +1 -0
  23. package/dist/node/providers/remoteAttestation.js +73 -0
  24. package/dist/node/services/index.d.ts +2 -0
  25. package/dist/node/services/index.d.ts.map +1 -0
  26. package/dist/node/services/index.js +1 -0
  27. package/dist/node/services/tee.d.ts +24 -0
  28. package/dist/node/services/tee.d.ts.map +1 -0
  29. package/dist/node/services/tee.js +42 -0
  30. package/dist/node/types/index.d.ts +58 -0
  31. package/dist/node/types/index.d.ts.map +1 -0
  32. package/dist/node/types/index.js +35 -0
  33. package/dist/node/utils/index.d.ts +9 -0
  34. package/dist/node/utils/index.d.ts.map +1 -0
  35. package/dist/node/utils/index.js +61 -0
  36. package/dist/node/vendors/index.d.ts +5 -0
  37. package/dist/node/vendors/index.d.ts.map +1 -0
  38. package/dist/node/vendors/index.js +14 -0
  39. package/dist/node/vendors/phala.d.ts +10 -0
  40. package/dist/node/vendors/phala.d.ts.map +1 -0
  41. package/dist/node/vendors/phala.js +18 -0
  42. package/dist/node/vendors/types.d.ts +13 -0
  43. package/dist/node/vendors/types.d.ts.map +1 -0
  44. package/dist/node/vendors/types.js +3 -0
  45. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -26085,7 +26085,7 @@ import crypto2 from "node:crypto";
26085
26085
  import { logger as logger2 } from "@elizaos/core";
26086
26086
  import { TappdClient as TappdClient2 } from "@phala/dstack-sdk";
26087
26087
 
26088
- // ../../../node_modules/.bun/@solana+web3.js@1.98.2+055dd6a88bf4f9f6/node_modules/@solana/web3.js/lib/index.cjs.js
26088
+ // ../../../node_modules/.bun/@solana+web3.js@1.98.4+055dd6a88bf4f9f6/node_modules/@solana/web3.js/lib/index.cjs.js
26089
26089
  var buffer = __require("buffer");
26090
26090
  var ed25519 = require_ed25519();
26091
26091
  var BN = require_bn();
@@ -28366,7 +28366,8 @@ var ConfirmedTransactionMetaResult = superstruct.type({
28366
28366
  preTokenBalances: superstruct.optional(superstruct.nullable(superstruct.array(TokenBalanceResult))),
28367
28367
  postTokenBalances: superstruct.optional(superstruct.nullable(superstruct.array(TokenBalanceResult))),
28368
28368
  loadedAddresses: superstruct.optional(LoadedAddressesResult),
28369
- computeUnitsConsumed: superstruct.optional(superstruct.number())
28369
+ computeUnitsConsumed: superstruct.optional(superstruct.number()),
28370
+ costUnits: superstruct.optional(superstruct.number())
28370
28371
  });
28371
28372
  var ParsedConfirmedTransactionMetaResult = superstruct.type({
28372
28373
  err: TransactionErrorResult,
@@ -28381,7 +28382,8 @@ var ParsedConfirmedTransactionMetaResult = superstruct.type({
28381
28382
  preTokenBalances: superstruct.optional(superstruct.nullable(superstruct.array(TokenBalanceResult))),
28382
28383
  postTokenBalances: superstruct.optional(superstruct.nullable(superstruct.array(TokenBalanceResult))),
28383
28384
  loadedAddresses: superstruct.optional(LoadedAddressesResult),
28384
- computeUnitsConsumed: superstruct.optional(superstruct.number())
28385
+ computeUnitsConsumed: superstruct.optional(superstruct.number()),
28386
+ costUnits: superstruct.optional(superstruct.number())
28385
28387
  });
28386
28388
  var TransactionVersionStruct = superstruct.union([superstruct.literal(0), superstruct.literal("legacy")]);
28387
28389
  var RewardsResult = superstruct.type({
@@ -31155,9 +31157,9 @@ var teePlugin = {
31155
31157
  name: "tee",
31156
31158
  description: "TEE integration plugin for secure key management and remote attestation",
31157
31159
  config: {
31158
- TEE_MODE: process.env.TEE_MODE,
31159
- TEE_VENDOR: process.env.TEE_VENDOR,
31160
- WALLET_SECRET_SALT: process.env.WALLET_SECRET_SALT
31160
+ TEE_MODE: process.env.TEE_MODE ?? null,
31161
+ TEE_VENDOR: process.env.TEE_VENDOR ?? null,
31162
+ WALLET_SECRET_SALT: process.env.WALLET_SECRET_SALT ?? null
31161
31163
  },
31162
31164
  async init(config, runtime) {
31163
31165
  const vendorName = config.TEE_VENDOR ?? runtime.getSetting("TEE_VENDOR") ?? TeeVendorNames.PHALA;
@@ -31202,4 +31204,4 @@ export {
31202
31204
  DeriveKeyProvider
31203
31205
  };
31204
31206
 
31205
- //# debugId=9B4045FD037ECD4A64756E2164756E21
31207
+ //# debugId=30DCBC2D39DEBAD464756E2164756E21