permissionless 0.0.30 → 0.0.32

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 (118) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/_cjs/actions/bundler/estimateUserOperationGas.js +21 -15
  3. package/_cjs/actions/bundler/estimateUserOperationGas.js.map +1 -1
  4. package/_cjs/actions/bundler/sendUserOperation.js +14 -7
  5. package/_cjs/actions/bundler/sendUserOperation.js.map +1 -1
  6. package/_cjs/actions/index.js.map +1 -1
  7. package/_cjs/errors/account.js +311 -0
  8. package/_cjs/errors/account.js.map +1 -0
  9. package/_cjs/errors/bundler.js +61 -0
  10. package/_cjs/errors/bundler.js.map +1 -0
  11. package/_cjs/errors/estimateUserOperationGas.js +47 -0
  12. package/_cjs/errors/estimateUserOperationGas.js.map +1 -0
  13. package/_cjs/errors/gas.js +113 -0
  14. package/_cjs/errors/gas.js.map +1 -0
  15. package/_cjs/errors/index.js +35 -0
  16. package/_cjs/errors/index.js.map +1 -0
  17. package/_cjs/errors/paymaster.js +228 -0
  18. package/_cjs/errors/paymaster.js.map +1 -0
  19. package/_cjs/errors/sendUserOperation.js +47 -0
  20. package/_cjs/errors/sendUserOperation.js.map +1 -0
  21. package/_cjs/errors/utils.js +18 -0
  22. package/_cjs/errors/utils.js.map +1 -0
  23. package/_cjs/index.js +1 -0
  24. package/_cjs/index.js.map +1 -1
  25. package/_cjs/utils/errors/getBundlerError.js +124 -0
  26. package/_cjs/utils/errors/getBundlerError.js.map +1 -0
  27. package/_cjs/utils/errors/getEstimateUserOperationGasError.js +19 -0
  28. package/_cjs/utils/errors/getEstimateUserOperationGasError.js.map +1 -0
  29. package/_cjs/utils/errors/getSendUserOperationError.js +19 -0
  30. package/_cjs/utils/errors/getSendUserOperationError.js.map +1 -0
  31. package/_cjs/utils/getAddressFromInitCodeOrPaymasterAndData.js +15 -0
  32. package/_cjs/utils/getAddressFromInitCodeOrPaymasterAndData.js.map +1 -0
  33. package/_cjs/utils/index.js +5 -3
  34. package/_cjs/utils/index.js.map +1 -1
  35. package/_esm/actions/bundler/estimateUserOperationGas.js +22 -15
  36. package/_esm/actions/bundler/estimateUserOperationGas.js.map +1 -1
  37. package/_esm/actions/bundler/sendUserOperation.js +14 -7
  38. package/_esm/actions/bundler/sendUserOperation.js.map +1 -1
  39. package/_esm/actions/index.js.map +1 -1
  40. package/_esm/errors/account.js +298 -0
  41. package/_esm/errors/account.js.map +1 -0
  42. package/_esm/errors/bundler.js +56 -0
  43. package/_esm/errors/bundler.js.map +1 -0
  44. package/_esm/errors/estimateUserOperationGas.js +43 -0
  45. package/_esm/errors/estimateUserOperationGas.js.map +1 -0
  46. package/_esm/errors/gas.js +106 -0
  47. package/_esm/errors/gas.js.map +1 -0
  48. package/_esm/errors/index.js +8 -0
  49. package/_esm/errors/index.js.map +1 -0
  50. package/_esm/errors/paymaster.js +218 -0
  51. package/_esm/errors/paymaster.js.map +1 -0
  52. package/_esm/errors/sendUserOperation.js +44 -0
  53. package/_esm/errors/sendUserOperation.js.map +1 -0
  54. package/_esm/errors/utils.js +14 -0
  55. package/_esm/errors/utils.js.map +1 -0
  56. package/_esm/index.js +1 -0
  57. package/_esm/index.js.map +1 -1
  58. package/_esm/utils/errors/getBundlerError.js +121 -0
  59. package/_esm/utils/errors/getBundlerError.js.map +1 -0
  60. package/_esm/utils/errors/getEstimateUserOperationGasError.js +19 -0
  61. package/_esm/utils/errors/getEstimateUserOperationGasError.js.map +1 -0
  62. package/_esm/utils/errors/getSendUserOperationError.js +15 -0
  63. package/_esm/utils/errors/getSendUserOperationError.js.map +1 -0
  64. package/_esm/utils/getAddressFromInitCodeOrPaymasterAndData.js +11 -0
  65. package/_esm/utils/getAddressFromInitCodeOrPaymasterAndData.js.map +1 -0
  66. package/_esm/utils/index.js +3 -2
  67. package/_esm/utils/index.js.map +1 -1
  68. package/_types/actions/bundler/estimateUserOperationGas.d.ts +3 -1
  69. package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -1
  70. package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -1
  71. package/_types/actions/index.d.ts +2 -2
  72. package/_types/actions/index.d.ts.map +1 -1
  73. package/_types/errors/account.d.ts +121 -0
  74. package/_types/errors/account.d.ts.map +1 -0
  75. package/_types/errors/bundler.d.ts +24 -0
  76. package/_types/errors/bundler.d.ts.map +1 -0
  77. package/_types/errors/estimateUserOperationGas.d.ts +13 -0
  78. package/_types/errors/estimateUserOperationGas.d.ts.map +1 -0
  79. package/_types/errors/gas.d.ts +47 -0
  80. package/_types/errors/gas.d.ts.map +1 -0
  81. package/_types/errors/index.d.ts +8 -0
  82. package/_types/errors/index.d.ts.map +1 -0
  83. package/_types/errors/paymaster.d.ts +85 -0
  84. package/_types/errors/paymaster.d.ts.map +1 -0
  85. package/_types/errors/sendUserOperation.d.ts +13 -0
  86. package/_types/errors/sendUserOperation.d.ts.map +1 -0
  87. package/_types/errors/utils.d.ts +5 -0
  88. package/_types/errors/utils.d.ts.map +1 -0
  89. package/_types/index.d.ts +1 -0
  90. package/_types/index.d.ts.map +1 -1
  91. package/_types/utils/errors/getBundlerError.d.ts +11 -0
  92. package/_types/utils/errors/getBundlerError.d.ts.map +1 -0
  93. package/_types/utils/errors/getEstimateUserOperationGasError.d.ts +9 -0
  94. package/_types/utils/errors/getEstimateUserOperationGasError.d.ts.map +1 -0
  95. package/_types/utils/errors/getSendUserOperationError.d.ts +4 -0
  96. package/_types/utils/errors/getSendUserOperationError.d.ts.map +1 -0
  97. package/_types/utils/getAddressFromInitCodeOrPaymasterAndData.d.ts +3 -0
  98. package/_types/utils/getAddressFromInitCodeOrPaymasterAndData.d.ts.map +1 -0
  99. package/_types/utils/index.d.ts +3 -2
  100. package/_types/utils/index.d.ts.map +1 -1
  101. package/actions/bundler/estimateUserOperationGas.ts +33 -15
  102. package/actions/bundler/sendUserOperation.ts +26 -8
  103. package/actions/index.ts +3 -1
  104. package/errors/account.ts +345 -0
  105. package/errors/bundler.ts +62 -0
  106. package/errors/estimateUserOperationGas.ts +50 -0
  107. package/errors/gas.ts +120 -0
  108. package/errors/index.ts +118 -0
  109. package/errors/paymaster.ts +257 -0
  110. package/errors/sendUserOperation.ts +49 -0
  111. package/errors/utils.ts +19 -0
  112. package/index.ts +1 -0
  113. package/package.json +6 -1
  114. package/utils/errors/getBundlerError.ts +220 -0
  115. package/utils/errors/getEstimateUserOperationGasError.ts +37 -0
  116. package/utils/errors/getSendUserOperationError.ts +25 -0
  117. package/utils/getAddressFromInitCodeOrPaymasterAndData.ts +13 -0
  118. package/utils/index.ts +4 -2
@@ -1,8 +1,9 @@
1
1
  import { deepHexlify, transactionReceiptStatus } from "./deepHexlify.js";
2
2
  import { getAction } from "./getAction.js";
3
+ import { getAddressFromInitCodeOrPaymasterAndData } from "./getAddressFromInitCodeOrPaymasterAndData.js";
3
4
  import { getRequiredPrefund } from "./getRequiredPrefund.js";
4
5
  import { getUserOperationHash } from "./getUserOperationHash.js";
5
- import { isSmartAccountDeployed } from "./isSmartAccountDeployed";
6
+ import { isSmartAccountDeployed } from "./isSmartAccountDeployed.js";
6
7
  import { AccountOrClientNotFoundError, signUserOperationHashWithECDSA } from "./signUserOperationHashWithECDSA.js";
7
8
  import { walletClientToCustomSigner } from "./walletClientToCustomSigner.js";
8
9
  export function parseAccount(account) {
@@ -10,5 +11,5 @@ export function parseAccount(account) {
10
11
  return { address: account, type: "json-rpc" };
11
12
  return account;
12
13
  }
13
- export { transactionReceiptStatus, deepHexlify, getAction, getUserOperationHash, getRequiredPrefund, walletClientToCustomSigner, signUserOperationHashWithECDSA, AccountOrClientNotFoundError, isSmartAccountDeployed };
14
+ export { transactionReceiptStatus, deepHexlify, getAction, getUserOperationHash, getRequiredPrefund, walletClientToCustomSigner, signUserOperationHashWithECDSA, AccountOrClientNotFoundError, isSmartAccountDeployed, getAddressFromInitCodeOrPaymasterAndData };
14
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAEH,kBAAkB,EACrB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEH,oBAAoB,EACvB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EACH,4BAA4B,EAE5B,8BAA8B,EACjC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAE5E,MAAM,UAAU,YAAY,CAAC,OAA0B;IACnD,IAAI,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;IACjD,OAAO,OAAO,CAAA;AAClB,CAAC;AAED,OAAO,EACH,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,0BAA0B,EAG1B,8BAA8B,EAE9B,4BAA4B,EAC5B,sBAAsB,EACzB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,wCAAwC,EAAE,MAAM,+CAA+C,CAAA;AACxG,OAAO,EAEH,kBAAkB,EACrB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEH,oBAAoB,EACvB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EACH,4BAA4B,EAE5B,8BAA8B,EACjC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAE5E,MAAM,UAAU,YAAY,CAAC,OAA0B;IACnD,IAAI,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;IACjD,OAAO,OAAO,CAAA;AAClB,CAAC;AAED,OAAO,EACH,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,0BAA0B,EAG1B,8BAA8B,EAE9B,4BAA4B,EAC5B,sBAAsB,EACtB,wCAAwC,EAC3C,CAAA"}
@@ -1,8 +1,9 @@
1
- import type { Account, Address, Chain, Client, Transport } from "viem";
1
+ import { type Account, type Address, type Chain, type Client, type Transport } from "viem";
2
2
  import type { PartialBy } from "viem/types/utils";
3
3
  import type { BundlerRpcSchema, StateOverrides } from "../../types/bundler.js";
4
4
  import type { Prettify } from "../../types/index.js";
5
5
  import type { UserOperation } from "../../types/userOperation.js";
6
+ import { type GetEstimateUserOperationGasErrorReturnType } from "../../utils/errors/getEstimateUserOperationGasError.js";
6
7
  export type EstimateUserOperationGasParameters = {
7
8
  userOperation: PartialBy<UserOperation, "callGasLimit" | "preVerificationGas" | "verificationGasLimit">;
8
9
  entryPoint: Address;
@@ -12,6 +13,7 @@ export type EstimateUserOperationGasReturnType = {
12
13
  verificationGasLimit: bigint;
13
14
  callGasLimit: bigint;
14
15
  };
16
+ export type EstimateUserOperationErrorType = GetEstimateUserOperationGasErrorReturnType;
15
17
  /**
16
18
  * Estimates preVerificationGas, verificationGasLimit and callGasLimit for user operation
17
19
  *
@@ -1 +1 @@
1
- {"version":3,"file":"estimateUserOperationGas.d.ts","sourceRoot":"","sources":["../../../actions/bundler/estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,C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AA;AAE/D,MAAM,MAAM,kCAAkC,GAAG;IAC7C,aAAa,EAAE,SAAS,CACpB,aAAa,EACb,cAAc,GAAG,oBAAoB,GAAG,sBAAsB,CACjE,CAAA;IACD,UAAU,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,kCAAkC,GAAG;IAC7C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,8BAA8B,GACtC,0CAA0C,CAAA;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,qOAM3B,SAAS,kCAAkC,CAAC,mBACjC,cAAc,KAChC,QAAQ,SAAS,kCAAkC,CAAC,CA0BtD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/bundler/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,8BAA8B,CAAA;AAGrC,MAAM,MAAM,2BAA2B,GAAG;IACtC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,iBAAiB,qOAMpB,SAAS,2BAA2B,CAAC,KAC5C,QAAQ,IAAI,CAUd,CAAA"}
1
+ {"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/bundler/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,OAAO,EAEP,KAAK,EACL,MAAM,EACN,IAAI,EACJ,SAAS,EACZ,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,8BAA8B,CAAA;AAIrC,MAAM,MAAM,2BAA2B,GAAG;IACtC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,iBAAiB,qOAMpB,SAAS,2BAA2B,CAAC,KAC5C,QAAQ,IAAI,CAmBd,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType } from "./bundler/estimateUserOperationGas.js";
1
+ import type { EstimateUserOperationErrorType, EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType } from "./bundler/estimateUserOperationGas.js";
2
2
  import type { GetUserOperationByHashParameters } from "./bundler/getUserOperationByHash.js";
3
3
  import type { GetUserOperationByHashReturnType } from "./bundler/getUserOperationByHash.js";
4
4
  import type { GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType } from "./bundler/getUserOperationReceipt.js";
@@ -15,6 +15,6 @@ import { waitForUserOperationReceipt } from "./bundler/waitForUserOperationRecei
15
15
  import { type WaitForUserOperationReceiptParameters, WaitForUserOperationReceiptTimeoutError } from "./bundler/waitForUserOperationReceipt.js";
16
16
  import type { GetAccountNonceParams } from "./public/getAccountNonce.js";
17
17
  import { getAccountNonce } from "./public/getAccountNonce.js";
18
- export type { SendUserOperationParameters, EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType, GetUserOperationByHashParameters, GetUserOperationByHashReturnType, GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType, GetSenderAddressParams, GetAccountNonceParams, WaitForUserOperationReceiptParameters };
18
+ export type { SendUserOperationParameters, EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType, GetUserOperationByHashParameters, GetUserOperationByHashReturnType, GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType, GetSenderAddressParams, GetAccountNonceParams, WaitForUserOperationReceiptParameters, EstimateUserOperationErrorType };
19
19
  export { sendUserOperation, estimateUserOperationGas, supportedEntryPoints, chainId, getUserOperationByHash, getUserOperationReceipt, getSenderAddress, getAccountNonce, InvalidEntryPointError, waitForUserOperationReceipt, WaitForUserOperationReceiptTimeoutError };
20
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,kCAAkC,EAClC,kCAAkC,EACrC,MAAM,uCAAuC,CAAA;AAC9C,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAA;AAC3F,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAA;AAC3F,OAAO,KAAK,EACR,iCAAiC,EACjC,iCAAiC,EACpC,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAA;AAEjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EACH,sBAAsB,EACtB,gBAAgB,EACnB,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAA;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,o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,EAAE,MAAM,uCAAuC,CAAA;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAA;AACtF,OAAO,EACH,KAAK,qCAAqC,EAC1C,uCAAuC,EAC1C,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAE7D,YAAY,EACR,2BAA2B,EAC3B,kCAAkC,EAClC,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EACjC,iCAAiC,EACjC,sBAAsB,EACtB,qBAAqB,EACrB,qCAAqC,EACrC,8BAA8B,EACjC,CAAA;AAED,OAAO,EACH,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,OAAO,EACP,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,uCAAuC,EAC1C,CAAA"}
@@ -0,0 +1,121 @@
1
+ import { type Address, BaseError } from "viem";
2
+ export type SenderAlreadyDeployedErrorType = SenderAlreadyDeployedError & {
3
+ name: "SenderAlreadyDeployedError";
4
+ };
5
+ export declare class SenderAlreadyDeployedError extends BaseError {
6
+ static message: RegExp;
7
+ name: "SenderAlreadyDeployedError";
8
+ constructor({ cause, sender, docsPath }?: {
9
+ cause?: BaseError;
10
+ sender?: Address;
11
+ docsPath?: string;
12
+ });
13
+ }
14
+ export type InitCodeRevertedErrorType = InitCodeRevertedError & {
15
+ name: "InitCodeRevertedError";
16
+ };
17
+ export declare class InitCodeRevertedError extends BaseError {
18
+ static message: RegExp;
19
+ name: "InitCodeRevertedError";
20
+ constructor({ cause, docsPath }?: {
21
+ cause?: BaseError;
22
+ docsPath?: string;
23
+ });
24
+ }
25
+ export type SenderAddressMismatchErrorType = SenderAddressMismatchError & {
26
+ name: "SenderAddressMismatchError";
27
+ };
28
+ export declare class SenderAddressMismatchError extends BaseError {
29
+ static message: RegExp;
30
+ name: "SenderAddressMismatchError";
31
+ constructor({ cause, sender, docsPath }: {
32
+ cause?: BaseError;
33
+ sender: Address;
34
+ docsPath?: string;
35
+ });
36
+ }
37
+ export type InitCodeDidNotDeploySenderErrorType = InitCodeDidNotDeploySenderError & {
38
+ name: "InitCodeDidNotDeploySenderError";
39
+ };
40
+ export declare class InitCodeDidNotDeploySenderError extends BaseError {
41
+ static message: RegExp;
42
+ name: "InitCodeDidNotDeploySenderError";
43
+ constructor({ cause, sender, docsPath }: {
44
+ cause?: BaseError;
45
+ sender: Address;
46
+ docsPath?: string;
47
+ });
48
+ }
49
+ export type SenderNotDeployedErrorType = SenderNotDeployedError & {
50
+ name: "SenderNotDeployedError";
51
+ };
52
+ export declare class SenderNotDeployedError extends BaseError {
53
+ static message: RegExp;
54
+ name: "SenderNotDeployedError";
55
+ constructor({ cause, sender, docsPath }: {
56
+ cause?: BaseError;
57
+ sender: Address;
58
+ docsPath?: string;
59
+ });
60
+ }
61
+ export type SmartAccountInsufficientFundsErrorType = SmartAccountInsufficientFundsError & {
62
+ name: "SmartAccountInsufficientFundsError";
63
+ };
64
+ export declare class SmartAccountInsufficientFundsError extends BaseError {
65
+ static message: RegExp;
66
+ name: "SmartAccountInsufficientFundsError";
67
+ constructor({ cause, sender, docsPath }: {
68
+ cause?: BaseError;
69
+ sender: Address;
70
+ docsPath?: string;
71
+ });
72
+ }
73
+ export type SmartAccountSignatureValidityPeriodErrorType = SmartAccountSignatureValidityPeriodError & {
74
+ name: "SmartAccountSignatureValidityPeriodError";
75
+ };
76
+ export declare class SmartAccountSignatureValidityPeriodError extends BaseError {
77
+ static message: RegExp;
78
+ name: "SmartAccountSignatureValidityPeriodError";
79
+ constructor({ cause, docsPath }: {
80
+ cause?: BaseError;
81
+ docsPath?: string;
82
+ });
83
+ }
84
+ export type SmartAccountValidationRevertedErrorType = SmartAccountValidationRevertedError & {
85
+ name: "SmartAccountValidationRevertedError";
86
+ };
87
+ export declare class SmartAccountValidationRevertedError extends BaseError {
88
+ static message: RegExp;
89
+ name: "SmartAccountValidationRevertedError";
90
+ constructor({ cause, sender, docsPath }: {
91
+ cause?: BaseError;
92
+ sender: Address;
93
+ docsPath?: string;
94
+ });
95
+ }
96
+ export type InvalidSmartAccountSignatureErrorType = InvalidSmartAccountSignatureError & {
97
+ name: "InvalidSmartAccountSignatureError";
98
+ };
99
+ export declare class InvalidSmartAccountSignatureError extends BaseError {
100
+ static message: RegExp;
101
+ name: "InvalidSmartAccountSignatureError";
102
+ constructor({ cause, sender, docsPath }: {
103
+ cause?: BaseError;
104
+ sender: Address;
105
+ docsPath?: string;
106
+ });
107
+ }
108
+ export type InvalidSmartAccountNonceErrorType = InvalidSmartAccountNonceError & {
109
+ name: "InvalidSmartAccountNonceError";
110
+ };
111
+ export declare class InvalidSmartAccountNonceError extends BaseError {
112
+ static message: RegExp;
113
+ name: "InvalidSmartAccountNonceError";
114
+ constructor({ cause, sender, nonce, docsPath }: {
115
+ cause?: BaseError;
116
+ sender: Address;
117
+ docsPath?: string;
118
+ nonce: bigint;
119
+ });
120
+ }
121
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../errors/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE9C,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,GAAG;IACtE,IAAI,EAAE,4BAA4B,CAAA;CACrC,CAAA;AACD,qBAAa,0BAA2B,SAAQ,SAAS;IACrD,MAAM,CAAC,OAAO,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AAA;QACf,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAkBJ;AAED,MAAM,MAAM,qCAAqC,GAC7C,iCAAiC,GAAG;IAChC,IAAI,EAAE,mCAAmC,CAAA;CAC5C,CAAA;AACL,qBAAa,iCAAkC,SAAQ,SAAS;IAC5D,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,sCAA+C;gBAChD,EACR,KAAK,EACL,MAAM,EACN,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,MAAM,EAAE,OAAO,CAAA;QACf,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAkBJ;AAED,MAAM,MAAM,iCAAiC,GACzC,6BAA6B,GAAG;IAC5B,IAAI,EAAE,+BAA+B,CAAA;CACxC,CAAA;AACL,qBAAa,6BAA8B,SAAQ,SAAS;IACxD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,kCAA2C;gBAC5C,EACR,KAAK,EACL,MAAM,EACN,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,MAAM,EAAE,OAAO,CAAA;QACf,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;KAChB;CAoBJ"}
@@ -0,0 +1,24 @@
1
+ import { BaseError } from "viem";
2
+ export type InvalidBeneficiaryAddressErrorType = InvalidBeneficiaryAddressError & {
3
+ name: "InvalidBeneficiaryAddressError";
4
+ };
5
+ export declare class InvalidBeneficiaryAddressError extends BaseError {
6
+ static message: RegExp;
7
+ name: string;
8
+ constructor({ cause, docsPath }: {
9
+ cause?: BaseError;
10
+ docsPath?: string;
11
+ });
12
+ }
13
+ export type InvalidAggregatorErrorType = InvalidAggregatorError & {
14
+ name: "InvalidAggregatorError";
15
+ };
16
+ export declare class InvalidAggregatorError extends BaseError {
17
+ static message: RegExp;
18
+ name: string;
19
+ constructor({ cause, docsPath }: {
20
+ cause?: BaseError;
21
+ docsPath?: string;
22
+ });
23
+ }
24
+ //# sourceMappingURL=bundler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../errors/bundler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAEhC,MAAM,MAAM,kCAAkC,GAC1C,8BAA8B,GAAG;IAC7B,IAAI,EAAE,gCAAgC,CAAA;CACzC,CAAA;AACL,qBAAa,8BAA+B,SAAQ,SAAS;IACzD,MAAM,CAAC,OAAO,SAAY;IACjB,IAAI,SAAmC;gBACpC,EACR,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAgBJ;AAED,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,GAAG;IAC9D,IAAI,EAAE,wBAAwB,CAAA;CACjC,CAAA;AACD,qBAAa,sBAAuB,SAAQ,SAAS;IACjD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAA2B;gBAC5B,EACR,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAgBJ"}
@@ -0,0 +1,13 @@
1
+ import { BaseError } from "viem";
2
+ import type { EstimateUserOperationGasParameters } from "../actions/bundler/estimateUserOperationGas.js";
3
+ export type EstimateUserOperationGasErrorType = EstimateUserOperationGasError & {
4
+ name: "EstimateUserOperationGasError";
5
+ };
6
+ export declare class EstimateUserOperationGasError extends BaseError {
7
+ cause: BaseError;
8
+ name: string;
9
+ constructor(cause: BaseError, { userOperation, entryPoint, docsPath }: EstimateUserOperationGasParameters & {
10
+ docsPath?: string;
11
+ });
12
+ }
13
+ //# sourceMappingURL=estimateUserOperationGas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimateUserOperationGas.d.ts","sourceRoot":"","sources":["../../errors/estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAChC,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAA;AAGxG,MAAM,MAAM,iCAAiC,GACzC,6BAA6B,GAAG;IAC5B,IAAI,EAAE,+BAA+B,CAAA;CACxC,CAAA;AACL,qBAAa,6BAA8B,SAAQ,SAAS;IAC/C,KAAK,EAAE,SAAS,CAAA;IAEhB,IAAI,SAAkC;gBAG3C,KAAK,EAAE,SAAS,EAChB,EACI,aAAa,EACb,UAAU,EACV,QAAQ,EACX,EAAE,kCAAkC,GAAG;QACpC,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CA4BR"}
@@ -0,0 +1,47 @@
1
+ import { BaseError } from "viem";
2
+ export type VerificationGasLimitTooLowErrorType = VerificationGasLimitTooLowError & {
3
+ name: "VerificationGasLimitTooLowError";
4
+ };
5
+ export declare class VerificationGasLimitTooLowError extends BaseError {
6
+ static message: RegExp;
7
+ name: string;
8
+ constructor({ cause, verificationGasLimit, docsPath }: {
9
+ cause?: BaseError;
10
+ verificationGasLimit?: bigint;
11
+ docsPath?: string;
12
+ });
13
+ }
14
+ export type ActualGasCostTooHighErrorType = ActualGasCostTooHighError & {
15
+ name: "ActualGasCostTooHighError";
16
+ };
17
+ export declare class ActualGasCostTooHighError extends BaseError {
18
+ static message: RegExp;
19
+ name: string;
20
+ constructor({ cause, docsPath }: {
21
+ cause?: BaseError;
22
+ docsPath?: string;
23
+ });
24
+ }
25
+ export type GasValuesOverflowErrorType = GasValuesOverflowError & {
26
+ name: "GasValuesOverflowError";
27
+ };
28
+ export declare class GasValuesOverflowError extends BaseError {
29
+ static message: RegExp;
30
+ name: string;
31
+ constructor({ cause, docsPath }: {
32
+ cause?: BaseError;
33
+ docsPath?: string;
34
+ });
35
+ }
36
+ export type BundlerOutOfGasErrorType = BundlerOutOfGasError & {
37
+ name: "BundlerOutOfGasError";
38
+ };
39
+ export declare class BundlerOutOfGasError extends BaseError {
40
+ static message: RegExp;
41
+ name: string;
42
+ constructor({ cause, docsPath }: {
43
+ cause?: BaseError;
44
+ docsPath?: string;
45
+ });
46
+ }
47
+ //# sourceMappingURL=gas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gas.d.ts","sourceRoot":"","sources":["../../errors/gas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAEhC,MAAM,MAAM,mCAAmC,GAC3C,+BAA+B,GAAG;IAC9B,IAAI,EAAE,iCAAiC,CAAA;CAC1C,CAAA;AACL,qBAAa,+BAAgC,SAAQ,SAAS;IAC1D,MAAM,CAAC,OAAO,SAAY;IACjB,IAAI,SAAoC;gBACrC,EACR,KAAK,EACL,oBAAoB,EACpB,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;QAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAgBJ;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,GAAG;IACpE,IAAI,EAAE,2BAA2B,CAAA;CACpC,CAAA;AACD,qBAAa,yBAA0B,SAAQ,SAAS;IACpD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAA8B;gBAC/B,EACR,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAgBJ;AAED,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,GAAG;IAC9D,IAAI,EAAE,wBAAwB,CAAA;CACjC,CAAA;AACD,qBAAa,sBAAuB,SAAQ,SAAS;IACjD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAA2B;gBAC5B,EACR,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAYJ;AAED,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,GAAG;IAC1D,IAAI,EAAE,sBAAsB,CAAA;CAC/B,CAAA;AACD,qBAAa,oBAAqB,SAAQ,SAAS;IAC/C,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAAyB;gBAC1B,EACR,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAgBJ"}
@@ -0,0 +1,8 @@
1
+ import { InitCodeDidNotDeploySenderError, type InitCodeDidNotDeploySenderErrorType, InitCodeRevertedError, type InitCodeRevertedErrorType, InvalidSmartAccountNonceError, type InvalidSmartAccountNonceErrorType, InvalidSmartAccountSignatureError, type InvalidSmartAccountSignatureErrorType, SenderAddressMismatchError, type SenderAddressMismatchErrorType, SenderAlreadyDeployedError, type SenderAlreadyDeployedErrorType, SenderNotDeployedError, type SenderNotDeployedErrorType, SmartAccountInsufficientFundsError, type SmartAccountInsufficientFundsErrorType, SmartAccountSignatureValidityPeriodError, type SmartAccountSignatureValidityPeriodErrorType, SmartAccountValidationRevertedError, type SmartAccountValidationRevertedErrorType } from "./account.js";
2
+ import { EstimateUserOperationGasError, type EstimateUserOperationGasErrorType } from "./estimateUserOperationGas.js";
3
+ import { SendUserOperationError, type SendUserOperationErrorType } from "./sendUserOperation.js";
4
+ import { InvalidPaymasterAndDataError, type InvalidPaymasterAndDataErrorType, PaymasterDataRejectedError, type PaymasterDataRejectedErrorType, PaymasterDepositTooLowError, type PaymasterDepositTooLowErrorType, PaymasterNotDeployedError, type PaymasterNotDeployedErrorType, PaymasterPostOpRevertedError, type PaymasterPostOpRevertedErrorType, PaymasterValidationRevertedError, type PaymasterValidationRevertedErrorType, PaymasterValidityPeriodError, type PaymasterValidityPeriodErrorType } from "./paymaster.js";
5
+ import { InvalidAggregatorError, type InvalidAggregatorErrorType, InvalidBeneficiaryAddressError, type InvalidBeneficiaryAddressErrorType } from "./bundler.js";
6
+ import { ActualGasCostTooHighError, type ActualGasCostTooHighErrorType, BundlerOutOfGasError, type BundlerOutOfGasErrorType, GasValuesOverflowError, type GasValuesOverflowErrorType, VerificationGasLimitTooLowError, type VerificationGasLimitTooLowErrorType } from "./gas.js";
7
+ export { type InitCodeDidNotDeploySenderErrorType, type InitCodeRevertedErrorType, type InvalidSmartAccountNonceErrorType, type InvalidSmartAccountSignatureErrorType, type SenderAddressMismatchErrorType, type SenderAlreadyDeployedErrorType, type SenderNotDeployedErrorType, type SmartAccountInsufficientFundsErrorType, type SmartAccountSignatureValidityPeriodErrorType, type SmartAccountValidationRevertedErrorType, type InvalidPaymasterAndDataErrorType, type PaymasterDataRejectedErrorType, type PaymasterDepositTooLowErrorType, type PaymasterNotDeployedErrorType, type PaymasterPostOpRevertedErrorType, type PaymasterValidationRevertedErrorType, type PaymasterValidityPeriodErrorType, type InvalidAggregatorErrorType, type InvalidBeneficiaryAddressErrorType, type ActualGasCostTooHighErrorType, type BundlerOutOfGasErrorType, type GasValuesOverflowErrorType, type VerificationGasLimitTooLowErrorType, SenderAlreadyDeployedError, EstimateUserOperationGasError, InitCodeRevertedError, SenderAddressMismatchError, InitCodeDidNotDeploySenderError, SenderNotDeployedError, SmartAccountInsufficientFundsError, SmartAccountSignatureValidityPeriodError, SmartAccountValidationRevertedError, InvalidSmartAccountNonceError, PaymasterNotDeployedError, PaymasterDepositTooLowError, InvalidSmartAccountSignatureError, InvalidBeneficiaryAddressError, InvalidAggregatorError, InvalidPaymasterAndDataError, PaymasterDataRejectedError, PaymasterValidityPeriodError, PaymasterValidationRevertedError, VerificationGasLimitTooLowError, ActualGasCostTooHighError, GasValuesOverflowError, BundlerOutOfGasError, PaymasterPostOpRevertedError, SendUserOperationError, type EstimateUserOperationGasErrorType, type SendUserOperationErrorType };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"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AAK,qCAAqC,EAC1C,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,4CAA4C,EACjD,KAAK,uCAAuC,EAC5C,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EACzC,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,0BAA0B,EAC1B,6BAA6B,EAC7B,qBAAqB,EACrB,0BAA0B,EAC1B,+BAA+B,EAC/B,sBAAsB,EACtB,kCAAkC,EAClC,wCAAwC,EACxC,mCAAmC,EACnC,6BAA6B,EAC7B,yBAAyB,EACzB,2BAA2B,EAC3B,iCAAiC,EACjC,8BAA8B,EAC9B,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,EAC/B,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,EACtB,KAAK,iCAAiC,EACtC,KAAK,0BAA0B,EAClC,CAAA"}
@@ -0,0 +1,85 @@
1
+ import { BaseError, type Hex } from "viem";
2
+ export type PaymasterNotDeployedErrorType = PaymasterNotDeployedError & {
3
+ name: "PaymasterNotDeployedError";
4
+ };
5
+ export declare class PaymasterNotDeployedError extends BaseError {
6
+ static message: RegExp;
7
+ name: string;
8
+ constructor({ cause, paymasterAndData, docsPath }?: {
9
+ cause?: BaseError;
10
+ paymasterAndData?: Hex;
11
+ docsPath?: string;
12
+ });
13
+ }
14
+ export type PaymasterDepositTooLowErrorType = PaymasterDepositTooLowError & {
15
+ name: "PaymasterDepositTooLowError";
16
+ };
17
+ export declare class PaymasterDepositTooLowError extends BaseError {
18
+ static message: RegExp;
19
+ name: string;
20
+ constructor({ cause, paymasterAndData, docsPath }?: {
21
+ cause?: BaseError;
22
+ paymasterAndData?: Hex;
23
+ docsPath?: string;
24
+ });
25
+ }
26
+ export type PaymasterValidityPeriodErrorType = PaymasterValidityPeriodError & {
27
+ name: "PaymasterValidityPeriodError";
28
+ };
29
+ export declare class PaymasterValidityPeriodError extends BaseError {
30
+ static message: RegExp;
31
+ name: string;
32
+ constructor({ cause, paymasterAndData, docsPath }: {
33
+ cause?: BaseError;
34
+ paymasterAndData?: Hex;
35
+ docsPath?: string;
36
+ });
37
+ }
38
+ export type PaymasterValidationRevertedErrorType = PaymasterValidationRevertedError & {
39
+ name: "PaymasterValidationRevertedError";
40
+ };
41
+ export declare class PaymasterValidationRevertedError extends BaseError {
42
+ static message: RegExp;
43
+ name: string;
44
+ constructor({ cause, paymasterAndData, docsPath }: {
45
+ cause?: BaseError;
46
+ paymasterAndData?: Hex;
47
+ docsPath?: string;
48
+ });
49
+ }
50
+ export type PaymasterDataRejectedErrorType = PaymasterDataRejectedError & {
51
+ name: "PaymasterDataRejectedError";
52
+ };
53
+ export declare class PaymasterDataRejectedError extends BaseError {
54
+ static message: RegExp;
55
+ name: string;
56
+ constructor({ cause, paymasterAndData, docsPath }: {
57
+ cause?: BaseError;
58
+ paymasterAndData?: Hex;
59
+ docsPath?: string;
60
+ });
61
+ }
62
+ export type PaymasterPostOpRevertedErrorType = PaymasterPostOpRevertedError & {
63
+ name: "PaymasterPostOpRevertedError";
64
+ };
65
+ export declare class PaymasterPostOpRevertedError extends BaseError {
66
+ static message: RegExp;
67
+ name: string;
68
+ constructor({ cause, paymasterAndData, docsPath }: {
69
+ cause?: BaseError;
70
+ paymasterAndData?: Hex;
71
+ docsPath?: string;
72
+ });
73
+ }
74
+ export type InvalidPaymasterAndDataErrorType = InvalidPaymasterAndDataError & {
75
+ name: "InvalidPaymasterAndDataError";
76
+ };
77
+ export declare class InvalidPaymasterAndDataError extends BaseError {
78
+ static message: RegExp;
79
+ name: string;
80
+ constructor({ cause, docsPath }: {
81
+ cause?: BaseError;
82
+ docsPath?: string;
83
+ });
84
+ }
85
+ //# sourceMappingURL=paymaster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymaster.d.ts","sourceRoot":"","sources":["../../errors/paymaster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAA;AAG1C,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,GAAG;IACpE,IAAI,EAAE,2BAA2B,CAAA;CACpC,CAAA;AACD,qBAAa,yBAA0B,SAAQ,SAAS;IACpD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAA8B;gBAC/B,EACR,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACX,GAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,gBAAgB,CAAC,EAAE,GAAG,CAAA;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACf;CAoBT;AAED,MAAM,MAAM,+BAA+B,GAAG,2BAA2B,GAAG;IACxE,IAAI,EAAE,6BAA6B,CAAA;CACtC,CAAA;AACD,qBAAa,2BAA4B,SAAQ,SAAS;IACtD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAAgC;gBACjC,EACR,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACX,GAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,gBAAgB,CAAC,EAAE,GAAG,CAAA;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACf;CAqBT;AAED,MAAM,MAAM,gCAAgC,GAAG,4BAA4B,GAAG;IAC1E,IAAI,EAAE,8BAA8B,CAAA;CACvC,CAAA;AACD,qBAAa,4BAA6B,SAAQ,SAAS;IACvD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAAiC;gBAClC,EACR,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACX,EAAE;QACC,K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1E,IAAI,EAAE,8BAA8B,CAAA;CACvC,CAAA;AACD,qBAAa,4BAA6B,SAAQ,SAAS;IACvD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAAiC;gBAClC,EACR,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAgBJ"}
@@ -0,0 +1,13 @@
1
+ import { BaseError } from "viem";
2
+ import { type SendUserOperationParameters } from "../actions/bundler/sendUserOperation.js";
3
+ export type SendUserOperationErrorType = SendUserOperationError & {
4
+ name: "SendUserOperationError";
5
+ };
6
+ export declare class SendUserOperationError extends BaseError {
7
+ cause: BaseError;
8
+ name: string;
9
+ constructor(cause: BaseError, { userOperation, entryPoint, docsPath }: SendUserOperationParameters & {
10
+ docsPath?: string;
11
+ });
12
+ }
13
+ //# sourceMappingURL=sendUserOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../errors/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAChC,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,yCAAyC,CAAA;AAG1F,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,GAAG;IAC9D,IAAI,EAAE,wBAAwB,CAAA;CACjC,CAAA;AACD,qBAAa,sBAAuB,SAAQ,SAAS;IACxC,KAAK,EAAE,SAAS,CAAA;IAEhB,IAAI,SAA2B;gBAGpC,KAAK,EAAE,SAAS,EAChB,EACI,aAAa,EACb,UAAU,EACV,QAAQ,EACX,EAAE,2BAA2B,GAAG;QAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CA4BR"}
@@ -0,0 +1,5 @@
1
+ export type ErrorType<name extends string = "Error"> = Error & {
2
+ name: name;
3
+ };
4
+ export declare function prettyPrint(args: Record<string, bigint | number | string | undefined | false | unknown>): string;
5
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../errors/utils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,CAAC,IAAI,SAAS,MAAM,GAAG,OAAO,IAAI,KAAK,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAA;AAE7E,wBAAgB,WAAW,CACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,CAAC,UAe/E"}
package/_types/index.d.ts CHANGED
@@ -29,4 +29,5 @@ import type { GetUserOperationHashParams } from "./utils/getUserOperationHash.js
29
29
  import { getUserOperationHash } from "./utils/getUserOperationHash.js";
30
30
  export { getUserOperationHash, type GetUserOperationHashParams };
31
31
  export * from "./utils/index.js";
32
+ export * from "./errors/index.js";
32
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,kCAAkC,EAClC,kCAAkC,EACrC,MAAM,+CAA+C,CAAA;AACtD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAA;AACnG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAA;AACnG,OAAO,KAAK,EACR,iCAAiC,EACjC,iCAAiC,EACpC,MAAM,8CAA8C,CAAA;AACrD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAA;AAEzF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAEvE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAA;AACxF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oB,EAAE,KAAK,0BAA0B,EAAE,CAAA;AAChE,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { type Address, BaseError, type ExecutionRevertedErrorType, type UnknownNodeErrorType } from "viem";
2
+ import { type InitCodeDidNotDeploySenderErrorType, type InitCodeRevertedErrorType, type InvalidSmartAccountNonceErrorType, type SenderAddressMismatchErrorType, type SenderAlreadyDeployedErrorType, type SenderNotDeployedErrorType, type SmartAccountInsufficientFundsErrorType, type SmartAccountSignatureValidityPeriodErrorType, type SmartAccountValidationRevertedErrorType } from "../../errors/account";
3
+ import { type PaymasterDataRejectedErrorType, type PaymasterDepositTooLowErrorType, type PaymasterNotDeployedErrorType, type PaymasterValidationRevertedErrorType, type PaymasterValidityPeriodErrorType } from "../../errors/paymaster";
4
+ import type { UserOperation } from "../../types";
5
+ export type GetBundlerErrorParameters = {
6
+ userOperation: Partial<UserOperation>;
7
+ entryPoint: Address;
8
+ };
9
+ export type GetBundlerErrorReturnType = ExecutionRevertedErrorType | UnknownNodeErrorType | SenderAlreadyDeployedErrorType | InitCodeRevertedErrorType | SenderAddressMismatchErrorType | InitCodeDidNotDeploySenderErrorType | SenderNotDeployedErrorType | SmartAccountInsufficientFundsErrorType | SmartAccountSignatureValidityPeriodErrorType | SmartAccountValidationRevertedErrorType | InvalidSmartAccountNonceErrorType | PaymasterNotDeployedErrorType | PaymasterDepositTooLowErrorType | PaymasterValidityPeriodErrorType | PaymasterValidationRevertedErrorType | PaymasterDataRejectedErrorType;
10
+ export declare function getBundlerError(err: BaseError, args: GetBundlerErrorParameters): any;
11
+ //# sourceMappingURL=getBundlerError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBundlerError.d.ts","sourceRoot":"","sources":["../../../utils/errors/getBundlerError.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,SAAS,EAET,KAAK,0BAA0B,EAE/B,KAAK,oBAAoB,EAC5B,MAAM,MAAM,CAAA;AAEb,OAAO,EAEH,KAAK,mCAAmC,EAExC,KAAK,yBAAyB,EAE9B,KAAK,iCAAiC,EAEtC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EAEnC,KAAK,0BAA0B,EAE/B,KAAK,sCAAsC,EAE3C,KAAK,4CAA4C,EAEjD,KAAK,uCAAuC,EAC/C,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEH,KAAK,8BAA8B,EAEnC,KAAK,+BAA+B,EAEpC,KAAK,6BAA6B,EAElC,KAAK,oCAAoC,EAEzC,KAAK,gCAAgC,EACxC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,yBAAyB,GAAG;IACpC,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IACrC,UAAU,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAC/B,0BAA0B,GAC1B,oBAAoB,GACpB,8BAA8B,GAC9B,yBAAyB,GACzB,8BAA8B,GAC9B,mCAAmC,GACnC,0BAA0B,GAC1B,sCAAsC,GACtC,4CAA4C,GAC5C,uCAAuC,GACvC,iCAAiC,GACjC,6BAA6B,GAC7B,+BAA+B,GAC/B,gCAAgC,GAChC,oCAAoC,GACpC,8BAA8B,CAAA;AAEpC,wBAAgB,eAAe,CAC3B,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,yBAAyB,OAwJlC"}
@@ -0,0 +1,9 @@
1
+ import type { EstimateUserOperationGasParameters } from "../../actions/bundler/estimateUserOperationGas";
2
+ import { type EstimateUserOperationGasErrorType } from "../../errors/estimateUserOperationGas";
3
+ import { type ErrorType } from "../../errors/utils";
4
+ import { type GetBundlerErrorReturnType } from "./getBundlerError";
5
+ export type GetEstimateUserOperationGasErrorReturnType<cause = ErrorType> = Omit<EstimateUserOperationGasErrorType, "cause"> & {
6
+ cause: cause | GetBundlerErrorReturnType;
7
+ };
8
+ export declare function getEstimateUserOperationGasError<err extends ErrorType<string>>(error: err, args: EstimateUserOperationGasParameters): void;
9
+ //# sourceMappingURL=getEstimateUserOperationGasError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEstimateUserOperationGasError.d.ts","sourceRoot":"","sources":["../../../utils/errors/getEstimateUserOperationGasError.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAA;AACxG,OAAO,EAEH,KAAK,iCAAiC,EACzC,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAEH,KAAK,yBAAyB,EAEjC,MAAM,mBAAmB,CAAA;AAE1B,MAAM,MAAM,0CAA0C,CAAC,KAAK,GAAG,SAAS,IACpE,IAAI,CAAC,iCAAiC,EAAE,OAAO,CAAC,GAAG;IAC/C,KAAK,EAAE,KAAK,GAAG,yBAAyB,CAAA;CAC3C,CAAA;AAEL,wBAAgB,gCAAgC,CAAC,GAAG,SAAS,SAAS,CAAC,MAAM,CAAC,EAC1E,KAAK,EAAE,GAAG,EACV,IAAI,EAAE,kCAAkC,QAgB3C"}
@@ -0,0 +1,4 @@
1
+ import { BaseError } from "viem";
2
+ import type { SendUserOperationParameters } from "../../actions/bundler/sendUserOperation";
3
+ export declare function getSendUserOperationError(err: BaseError, args: SendUserOperationParameters): void;
4
+ //# sourceMappingURL=getSendUserOperationError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSendUserOperationError.d.ts","sourceRoot":"","sources":["../../../utils/errors/getSendUserOperationError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,MAAM,CAAA;AAClD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAA;AAO1F,wBAAgB,yBAAyB,CACrC,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,2BAA2B,QAcpC"}
@@ -0,0 +1,3 @@
1
+ import { type Address, type Hex } from "viem";
2
+ export declare function getAddressFromInitCodeOrPaymasterAndData(data: Hex): Address | undefined;
3
+ //# sourceMappingURL=getAddressFromInitCodeOrPaymasterAndData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAddressFromInitCodeOrPaymasterAndData.d.ts","sourceRoot":"","sources":["../../utils/getAddressFromInitCodeOrPaymasterAndData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,GAAG,EAAc,MAAM,MAAM,CAAA;AAEzD,wBAAgB,wCAAwC,CACpD,IAAI,EAAE,GAAG,GACV,OAAO,GAAG,SAAS,CAQrB"}
@@ -1,11 +1,12 @@
1
1
  import type { Account, Address } from "viem";
2
2
  import { deepHexlify, transactionReceiptStatus } from "./deepHexlify.js";
3
3
  import { getAction } from "./getAction.js";
4
+ import { getAddressFromInitCodeOrPaymasterAndData } from "./getAddressFromInitCodeOrPaymasterAndData.js";
4
5
  import { type GetRequiredPrefundReturnType, getRequiredPrefund } from "./getRequiredPrefund.js";
5
6
  import { type GetUserOperationHashParams, getUserOperationHash } from "./getUserOperationHash.js";
6
- import { isSmartAccountDeployed } from "./isSmartAccountDeployed";
7
+ import { isSmartAccountDeployed } from "./isSmartAccountDeployed.js";
7
8
  import { AccountOrClientNotFoundError, type SignUserOperationHashWithECDSAParams, signUserOperationHashWithECDSA } from "./signUserOperationHashWithECDSA.js";
8
9
  import { walletClientToCustomSigner } from "./walletClientToCustomSigner.js";
9
10
  export declare function parseAccount(account: Address | Account): Account;
10
- export { transactionReceiptStatus, deepHexlify, getAction, getUserOperationHash, getRequiredPrefund, walletClientToCustomSigner, type GetRequiredPrefundReturnType, type GetUserOperationHashParams, signUserOperationHashWithECDSA, type SignUserOperationHashWithECDSAParams, AccountOrClientNotFoundError, isSmartAccountDeployed };
11
+ export { transactionReceiptStatus, deepHexlify, getAction, getUserOperationHash, getRequiredPrefund, walletClientToCustomSigner, type GetRequiredPrefundReturnType, type GetUserOperationHashParams, signUserOperationHashWithECDSA, type SignUserOperationHashWithECDSAParams, AccountOrClientNotFoundError, isSmartAccountDeployed, getAddressFromInitCodeOrPaymasterAndData };
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EACH,KAAK,4BAA4B,EACjC,kBAAkB,EACrB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACH,KAAK,0BAA0B,EAC/B,oBAAoB,EACvB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EACH,4BAA4B,EAC5B,KAAK,oCAAoC,EACzC,8BAA8B,EACjC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAE5E,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAIhE;AAED,OAAO,EACH,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,0BAA0B,EAC1B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,8BAA8B,EAC9B,KAAK,oCAAoC,EACzC,4BAA4B,EAC5B,sBAAsB,EACzB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,wBAAwB,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