permissionless 0.2.5 → 0.2.6

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 (107) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/_cjs/accounts/biconomy/toBiconomySmartAccount.js +1 -2
  3. package/_cjs/accounts/biconomy/toBiconomySmartAccount.js.map +1 -1
  4. package/_cjs/accounts/kernel/toEcdsaKernelSmartAccount.js +2 -2
  5. package/_cjs/accounts/kernel/toEcdsaKernelSmartAccount.js.map +1 -1
  6. package/_cjs/accounts/kernel/utils/signMessage.js +1 -2
  7. package/_cjs/accounts/kernel/utils/signMessage.js.map +1 -1
  8. package/_cjs/accounts/kernel/utils/signTypedData.js +1 -2
  9. package/_cjs/accounts/kernel/utils/signTypedData.js.map +1 -1
  10. package/_cjs/accounts/light/toLightSmartAccount.js +1 -2
  11. package/_cjs/accounts/light/toLightSmartAccount.js.map +1 -1
  12. package/_cjs/accounts/safe/toSafeSmartAccount.js +1 -2
  13. package/_cjs/accounts/safe/toSafeSmartAccount.js.map +1 -1
  14. package/_cjs/accounts/simple/toSimpleSmartAccount.js +1 -2
  15. package/_cjs/accounts/simple/toSimpleSmartAccount.js.map +1 -1
  16. package/_cjs/accounts/trust/toTrustSmartAccount.js +2 -2
  17. package/_cjs/accounts/trust/toTrustSmartAccount.js.map +1 -1
  18. package/_cjs/actions/erc7579/accountId.js +1 -2
  19. package/_cjs/actions/erc7579/accountId.js.map +1 -1
  20. package/_cjs/actions/erc7579/installModule.js +1 -2
  21. package/_cjs/actions/erc7579/installModule.js.map +1 -1
  22. package/_cjs/actions/erc7579/installModules.js +1 -2
  23. package/_cjs/actions/erc7579/installModules.js.map +1 -1
  24. package/_cjs/actions/erc7579/isModuleInstalled.js +1 -2
  25. package/_cjs/actions/erc7579/isModuleInstalled.js.map +1 -1
  26. package/_cjs/actions/erc7579/supportsExecutionMode.js +2 -3
  27. package/_cjs/actions/erc7579/supportsExecutionMode.js.map +1 -1
  28. package/_cjs/actions/erc7579/supportsModule.js +2 -3
  29. package/_cjs/actions/erc7579/supportsModule.js.map +1 -1
  30. package/_cjs/actions/erc7579/uninstallModule.js +1 -2
  31. package/_cjs/actions/erc7579/uninstallModule.js.map +1 -1
  32. package/_cjs/actions/erc7579/uninstallModules.js +1 -2
  33. package/_cjs/actions/erc7579/uninstallModules.js.map +1 -1
  34. package/_cjs/actions/erc7579.js +2 -2
  35. package/_cjs/actions/erc7579.js.map +1 -1
  36. package/_cjs/actions/smartAccount/sendTransaction.js +1 -2
  37. package/_cjs/actions/smartAccount/sendTransaction.js.map +1 -1
  38. package/_cjs/actions/smartAccount/signMessage.js +1 -2
  39. package/_cjs/actions/smartAccount/signMessage.js.map +1 -1
  40. package/_cjs/actions/smartAccount/signTypedData.js +1 -2
  41. package/_cjs/actions/smartAccount/signTypedData.js.map +1 -1
  42. package/_cjs/actions/smartAccount/writeContract.js +1 -2
  43. package/_cjs/actions/smartAccount/writeContract.js.map +1 -1
  44. package/_cjs/clients/createSmartAccountClient.js +26 -10
  45. package/_cjs/clients/createSmartAccountClient.js.map +1 -1
  46. package/_cjs/clients/decorators/smartAccount.js +1 -2
  47. package/_cjs/clients/decorators/smartAccount.js.map +1 -1
  48. package/_cjs/clients/pimlico.js +1 -2
  49. package/_cjs/clients/pimlico.js.map +1 -1
  50. package/_cjs/experimental/pimlico/index.js +6 -0
  51. package/_cjs/experimental/pimlico/index.js.map +1 -0
  52. package/_cjs/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js +126 -0
  53. package/_cjs/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js.map +1 -0
  54. package/_cjs/utils/decodeNonce.js +1 -2
  55. package/_cjs/utils/decodeNonce.js.map +1 -1
  56. package/_cjs/utils/deepHexlify.js +2 -2
  57. package/_cjs/utils/deepHexlify.js.map +1 -1
  58. package/_cjs/utils/encode7579Calls.js +1 -2
  59. package/_cjs/utils/encode7579Calls.js.map +1 -1
  60. package/_cjs/utils/encodeInstallModule.js +1 -2
  61. package/_cjs/utils/encodeInstallModule.js.map +1 -1
  62. package/_cjs/utils/encodeNonce.js +1 -2
  63. package/_cjs/utils/encodeNonce.js.map +1 -1
  64. package/_cjs/utils/encodeUninstallModule.js +1 -2
  65. package/_cjs/utils/encodeUninstallModule.js.map +1 -1
  66. package/_cjs/utils/getAddressFromInitCodeOrPaymasterAndData.js +1 -2
  67. package/_cjs/utils/getAddressFromInitCodeOrPaymasterAndData.js.map +1 -1
  68. package/_cjs/utils/getPackedUserOperation.js +9 -9
  69. package/_cjs/utils/getPackedUserOperation.js.map +1 -1
  70. package/_cjs/utils/toOwner.js +1 -2
  71. package/_cjs/utils/toOwner.js.map +1 -1
  72. package/_esm/clients/createSmartAccountClient.js +26 -9
  73. package/_esm/clients/createSmartAccountClient.js.map +1 -1
  74. package/_esm/experimental/pimlico/index.js +3 -0
  75. package/_esm/experimental/pimlico/index.js.map +1 -0
  76. package/_esm/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js +144 -0
  77. package/_esm/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js.map +1 -0
  78. package/_types/accounts/kernel/utils/encodeCallData.d.ts.map +1 -1
  79. package/_types/accounts/kernel/utils/getNonceKey.d.ts.map +1 -1
  80. package/_types/accounts/kernel/utils/isKernelV2.d.ts.map +1 -1
  81. package/_types/actions/erc7579.d.ts +1 -249
  82. package/_types/actions/erc7579.d.ts.map +1 -1
  83. package/_types/actions/pimlico/getTokenQuotes.d.ts.map +1 -1
  84. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -1
  85. package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -1
  86. package/_types/actions/pimlico/sendCompressedUserOperation.d.ts.map +1 -1
  87. package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -1
  88. package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts.map +1 -1
  89. package/_types/actions/public/getAccountNonce.d.ts.map +1 -1
  90. package/_types/actions/public/getSenderAddress.d.ts.map +1 -1
  91. package/_types/clients/createSmartAccountClient.d.ts +4 -2
  92. package/_types/clients/createSmartAccountClient.d.ts.map +1 -1
  93. package/_types/clients/decorators/pimlico.d.ts.map +1 -1
  94. package/_types/clients/decorators/smartAccount.d.ts +16 -471
  95. package/_types/clients/decorators/smartAccount.d.ts.map +1 -1
  96. package/_types/experimental/pimlico/index.d.ts +3 -0
  97. package/_types/experimental/pimlico/index.d.ts.map +1 -0
  98. package/_types/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.d.ts +4 -0
  99. package/_types/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.d.ts.map +1 -0
  100. package/_types/utils/getPackedUserOperation.d.ts.map +1 -1
  101. package/_types/utils/getRequiredPrefund.d.ts.map +1 -1
  102. package/_types/utils/isSmartAccountDeployed.d.ts.map +1 -1
  103. package/clients/createSmartAccountClient.ts +53 -22
  104. package/experimental/pimlico/index.ts +2 -0
  105. package/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.test.ts +195 -0
  106. package/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.ts +270 -0
  107. package/package.json +7 -13
@@ -1 +1 @@
1
- {"version":3,"file":"getUserOperationStatus.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACnE,OAAO,KAAK,EACR,gBAAgB,EAChB,0BAA0B,EAC7B,MAAM,qBAAqB,CAAA;AAE5B,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,sBAAsB,WACvB,OACJ,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,gBAAgB,CACnB,YACS,gCAAgC,KAC3C,QAAQ,gCAAgC,CAK1C,CAAA"}
1
+ {"version":3,"file":"getUserOperationStatus.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACnE,OAAO,KAAK,EACR,gBAAgB,EAChB,0BAA0B,EAC7B,MAAM,qBAAqB,CAAA;AAE5B,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,sBAAsB,WACvB,MAAM,CACV,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,gBAAgB,CACnB,YACS,gCAAgC,KAC3C,OAAO,CAAC,gCAAgC,CAK1C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"sendCompressedUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/sendCompressedUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,IAAI,EACJ,GAAG,EACH,SAAS,EACZ,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAE3D,MAAM,MAAM,qCAAqC,GAAG;IAChD,uBAAuB,EAAE,GAAG,CAAA;IAC5B,eAAe,EAAE,OAAO,CAAA;IACxB,iBAAiB,EAAE,OAAO,CAAA;CAC7B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,2BAA2B,WAC5B,OACJ,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,gBAAgB,CACnB,QACK,qCAAqC,KAC5C,QAAQ,IAAI,CAOd,CAAA"}
1
+ {"version":3,"file":"sendCompressedUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/sendCompressedUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,IAAI,EACJ,GAAG,EACH,SAAS,EACZ,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAE3D,MAAM,MAAM,qCAAqC,GAAG;IAChD,uBAAuB,EAAE,GAAG,CAAA;IAC5B,eAAe,EAAE,OAAO,CAAA;IACxB,iBAAiB,EAAE,OAAO,CAAA;CAC7B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,2BAA2B,WAC5B,MAAM,CACV,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,gBAAgB,CACnB,QACK,qCAAqC,KAC5C,OAAO,CAAC,IAAI,CAOd,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"sponsorUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/sponsorUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,GAAG,EACH,KAAK,EACL,SAAS,EACT,SAAS,EACZ,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAG3D,MAAM,MAAM,qCAAqC,CAC7C,iBAAiB,SAAS,KAAK,GAAG,KAAK,IACvC;IACA,aAAa,EAAE,KAAK,CACd,CAAC,iBAAiB,SAAS,KAAK,GAC1B,SAAS,CACL,aAAa,CAAC,KAAK,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IAC5B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,OAAO,CAAA;IAClB,6BAA6B,EAAE,MAAM,CAAA;IACrC,uBAAuB,EAAE,MAAM,CAAA;IAC/B,aAAa,EAAE,GAAG,CAAA;CACrB,GACD,KAAK,CAAC,CACjB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAC7B,iBAAiB,SAAS,KAAK,GAAG,KAAK,0BAE/B,MAAM,CACV,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,gBAAgB,CAAC,iBAAiB,CAAC,CACtC,QACK,qCAAqC,CAAC,iBAAiB,CAAC,KAC/D,OAAO,CAAC,8BAA8B,CAAC,iBAAiB,CAAC,CAuD3D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"validateSponsorshipPolicies.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/validateSponsorshipPolicies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAG3D,MAAM,MAAM,qCAAqC,GAAG;IAChD,aAAa,EAAE,aAAa,CAAA;IAC5B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,oBAAoB,EAAE,MAAM,EAAE,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACtC,mBAAmB,EAAE,MAAM,CAAA;IAC3B,IAAI,EAAE;QACF,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;QACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAC7B,CAAA;CACJ,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,2BAA2B,WAC5B,OACJ,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,gBAAgB,CACnB,QACK,qCAAqC,KAC5C,QAAQ,2BAA2B,EAAE,CASvC,CAAA"}
1
+ {"version":3,"file":"validateSponsorshipPolicies.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/validateSponsorshipPolicies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAG3D,MAAM,MAAM,qCAAqC,GAAG;IAChD,aAAa,EAAE,aAAa,CAAA;IAC5B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,oBAAoB,EAAE,MAAM,EAAE,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACtC,mBAAmB,EAAE,MAAM,CAAA;IAC3B,IAAI,EAAE;QACF,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;QACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAC7B,CAAA;CACJ,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,2BAA2B,WAC5B,MAAM,CACV,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,gBAAgB,CACnB,QACK,qCAAqC,KAC5C,OAAO,CAAC,2BAA2B,EAAE,CASvC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAccountNonce.d.ts","sourceRoot":"","sources":["../../../actions/public/getAccountNonce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAI3C,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,eAAe,WAChB,MAAM,QACR,qBAAqB,KAC5B,QAAQ,MAAM,CAmChB,CAAA"}
1
+ {"version":3,"file":"getAccountNonce.d.ts","sourceRoot":"","sources":["../../../actions/public/getAccountNonce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAI3C,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,eAAe,WAChB,MAAM,QACR,qBAAqB,KAC5B,OAAO,CAAC,MAAM,CAmChB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getSenderAddress.d.ts","sourceRoot":"","sources":["../../../actions/public/getSenderAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,MAAM,EAGX,KAAK,GAAG,EAER,KAAK,KAAK,EACV,KAAK,QAAQ,EAKhB,MAAM,MAAM,CAAA;AAKb,MAAM,MAAM,sBAAsB,GAAG,KAAK,CACpC;IACI,QAAQ,EAAE,GAAG,CAAA;IACb,iBAAiB,EAAE,OAAO,CAAA;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAA;IACf,WAAW,CAAC,EAAE,KAAK,CAAA;CACtB,GACD;IACI,iBAAiB,EAAE,OAAO,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,GAAG,CAAA;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAA;CACnB,CACN,CAAA;AAED,qBAAa,sBAAuB,SAAQ,SAAS;IACxC,IAAI,SAA2B;gBAE5B,EACR,KAAK,EACL,iBAAiB,EACpB,GAAE;QAAE,KAAK,CAAC,EAAE,SAAS,CAAC;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAO;CAU7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,gBAAgB,WACjB,MAAM,QACR,SAAS,sBAAsB,CAAC,KACvC,QAAQ,OAAO,CAiLjB,CAAA"}
1
+ {"version":3,"file":"getSenderAddress.d.ts","sourceRoot":"","sources":["../../../actions/public/getSenderAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,MAAM,EAGX,KAAK,GAAG,EAER,KAAK,KAAK,EACV,KAAK,QAAQ,EAKhB,MAAM,MAAM,CAAA;AAKb,MAAM,MAAM,sBAAsB,GAAG,KAAK,CACpC;IACI,QAAQ,EAAE,GAAG,CAAA;IACb,iBAAiB,EAAE,OAAO,CAAA;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAA;IACf,WAAW,CAAC,EAAE,KAAK,CAAA;CACtB,GACD;IACI,iBAAiB,EAAE,OAAO,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,GAAG,CAAA;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAA;CACnB,CACN,CAAA;AAED,qBAAa,sBAAuB,SAAQ,SAAS;IACxC,IAAI,SAA2B;gBAE5B,EACR,KAAK,EACL,iBAAiB,EACpB,GAAE;QAAE,KAAK,CAAC,EAAE,SAAS,CAAC;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAO;CAU7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,gBAAgB,WACjB,MAAM,QACR,QAAQ,CAAC,sBAAsB,CAAC,KACvC,OAAO,CAAC,OAAO,CAiLjB,CAAA"}
@@ -1,5 +1,5 @@
1
- import type { BundlerRpcSchema, Chain, Client, ClientConfig, EstimateFeesPerGasReturnType, Prettify, RpcSchema, Transport } from "viem";
2
- import { type BundlerActions, type BundlerClientConfig, type PaymasterActions, type SmartAccount, type UserOperationRequest } from "viem/account-abstraction";
1
+ import { type BundlerRpcSchema, type Chain, type Client, type ClientConfig, type EstimateFeesPerGasReturnType, type Prettify, type RpcSchema, type Transport } from "viem";
2
+ import { type BundlerActions, type BundlerClientConfig, type PaymasterActions, type SmartAccount, type UserOperationRequest, type prepareUserOperation as viemPrepareUserOperation } from "viem/account-abstraction";
3
3
  import { type SmartAccountActions } from "./decorators/smartAccount";
4
4
  /**
5
5
  * TODO:
@@ -33,6 +33,8 @@ export type SmartAccountClientConfig<transport extends Transport = Transport, ch
33
33
  bundlerClient: Client;
34
34
  userOperation: UserOperationRequest;
35
35
  }) => Promise<EstimateFeesPerGasReturnType<"eip1559">>) | undefined;
36
+ /** Prepare User Operation configuration. */
37
+ prepareUserOperation?: typeof viemPrepareUserOperation | undefined;
36
38
  } | undefined;
37
39
  };
38
40
  export declare function createSmartAccountClient<transport extends Transport, chain extends Chain | undefined = undefined, account extends SmartAccount | undefined = undefined, client extends Client | undefined = undefined, rpcSchema extends RpcSchema | undefined = undefined>(parameters: SmartAccountClientConfig<transport, chain, account, client, rpcSchema>): SmartAccountClient<transport, chain, account, client, rpcSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"createSmartAccountClient.d.ts","sourceRoot":"","sources":["../../clients/createSmartAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,gBAAgB,EAChB,KAAK,EACL,MAAM,EACN,YAAY,EACZ,4BAA4B,EAC5B,QAAQ,EACR,SAAS,EACT,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AM,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,EAC7C,SAAS,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,EAEnD,UAAU,EAAE,wBAAwB,CAChC,SAAS,EACT,KAAK,EACL,OAAO,EACP,MAAM,EACN,SAAS,CACZ,GACF,kBAAkB,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAA"}
1
+ {"version":3,"file":"createSmartAccountClient.d.ts","sourceRoot":"","sources":["../../clients/createSmartAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,4BAA4B,EACjC,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AACb,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EAErB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EAEzB,KAAK,oBAAoB,IAAI,wBAAwB,EACxD,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACH,KAAK,mBAAmB,EAE3B,MAAM,2BAA2B,CAAA;AAElC;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAC1B,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,OAAO,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EACnE,MAAM,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,EACtD,SAAS,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,IACnD,QAAQ,CACR,MAAM,CACF,SAAS,EACT,KAAK,SAAS,KAAK,GACb,KAAK,GACL,MAAM,SAAS,MAAM,CAAC,GAAG,EAAE,MAAM,KAAK,CAAC,GACrC,KAAK,GACL,SAAS,EACjB,OAAO,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chain | undefined = Chain | undef
242
242
  */
243
243
  writeContract: <const TAbi extends Abi | readonly unknown[], TFunctionName extends ContractFunctionName<TAbi, "nonpayable" | "payable"> = ContractFunctionName<TAbi, "nonpayable" | "payable">, TArgs extends ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName> = ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName>, TChainOverride extends Chain | undefined = undefined>(args: WriteContractParameters<TAbi, TFunctionName, TArgs, TChain, TSmartAccount, TChainOverride>) => ReturnType<typeof writeContract<TChain, TSmartAccount, TAbi, TFunctionName, TArgs, TChainOverride>>;
244
244
  };
245
- export declare function smartAccountActions(): <TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends (object & {
245
+ export declare function smartAccountActions(): <TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount | undefined = (object & {
246
246
  client: Client;
247
247
  entryPoint: {
248
248
  abi: Abi;
249
- address: `0x${string}`;
249
+ address: import("viem").Address;
250
250
  version: import("viem/account-abstraction").EntryPointVersion;
251
251
  };
252
252
  extend?: object | undefined;
253
- getAddress: () => Promise<`0x${string}`>;
253
+ getAddress: () => Promise<import("viem").Address>;
254
254
  encodeCalls: (calls: readonly {
255
- to: `0x${string}`;
256
- data?: `0x${string}` | undefined;
255
+ to: import("viem").Hex;
256
+ data?: import("viem").Hex | undefined;
257
257
  value?: bigint | undefined;
258
- }[]) => Promise<`0x${string}`>;
258
+ }[]) => Promise<import("viem").Hex>;
259
259
  getFactoryArgs: () => Promise<{
260
- factory?: `0x${string}` | undefined;
261
- factoryData?: `0x${string}` | undefined;
260
+ factory?: import("viem").Address | undefined;
261
+ factoryData?: import("viem").Hex | undefined;
262
262
  }>;
263
263
  getNonce?: ((parameters?: {
264
264
  key?: bigint | undefined;
265
265
  } | undefined) => Promise<bigint>) | undefined;
266
- getStubSignature: () => Promise<`0x${string}`>;
266
+ getStubSignature: () => Promise<import("viem").Hex>;
267
267
  nonceKeyManager?: import("viem").NonceManager | undefined;
268
268
  sign?: ((parameters: {
269
- hash: `0x${string}`;
270
- }) => Promise<`0x${string}`>) | undefined;
269
+ hash: Hash;
270
+ }) => Promise<import("viem").Hex>) | undefined;
271
271
  signMessage: (parameters: {
272
272
  message: import("viem").SignableMessage;
273
- }) => Promise<`0x${string}`>;
274
- signTypedData: <const typedData extends Record<string, unknown> | {
275
- [x: string]: readonly import("viem").TypedDataParameter[];
276
- [x: `string[${string}]`]: undefined;
277
- [x: `function[${string}]`]: undefined;
278
- [x: `address[${string}]`]: undefined;
279
- [x: `bool[${string}]`]: undefined;
280
- [x: `bytes[${string}]`]: undefined;
281
- [x: `bytes2[${string}]`]: undefined;
282
- [x: `bytes3[${string}]`]: undefined;
283
- [x: `bytes1[${string}]`]: undefined;
284
- [x: `bytes22[${string}]`]: undefined;
285
- [x: `bytes6[${string}]`]: undefined;
286
- [x: `bytes4[${string}]`]: undefined;
287
- [x: `bytes5[${string}]`]: undefined;
288
- [x: `bytes7[${string}]`]: undefined;
289
- [x: `bytes8[${string}]`]: undefined;
290
- [x: `bytes9[${string}]`]: undefined;
291
- [x: `bytes10[${string}]`]: undefined;
292
- [x: `bytes11[${string}]`]: undefined;
293
- [x: `bytes12[${string}]`]: undefined;
294
- [x: `bytes13[${string}]`]: undefined;
295
- [x: `bytes14[${string}]`]: undefined;
296
- [x: `bytes15[${string}]`]: undefined;
297
- [x: `bytes16[${string}]`]: undefined;
298
- [x: `bytes17[${string}]`]: undefined;
299
- [x: `bytes18[${string}]`]: undefined;
300
- [x: `bytes19[${string}]`]: undefined;
301
- [x: `bytes20[${string}]`]: undefined;
302
- [x: `bytes21[${string}]`]: undefined;
303
- [x: `bytes23[${string}]`]: undefined;
304
- [x: `bytes24[${string}]`]: undefined;
305
- [x: `bytes25[${string}]`]: undefined;
306
- [x: `bytes26[${string}]`]: undefined;
307
- [x: `bytes27[${string}]`]: undefined;
308
- [x: `bytes28[${string}]`]: undefined;
309
- [x: `bytes29[${string}]`]: undefined;
310
- [x: `bytes30[${string}]`]: undefined;
311
- [x: `bytes31[${string}]`]: undefined;
312
- [x: `bytes32[${string}]`]: undefined;
313
- [x: `int[${string}]`]: undefined;
314
- [x: `int40[${string}]`]: undefined;
315
- [x: `int8[${string}]`]: undefined;
316
- [x: `int16[${string}]`]: undefined;
317
- [x: `int24[${string}]`]: undefined;
318
- [x: `int32[${string}]`]: undefined;
319
- [x: `int48[${string}]`]: undefined;
320
- [x: `int56[${string}]`]: undefined;
321
- [x: `int64[${string}]`]: undefined;
322
- [x: `int72[${string}]`]: undefined;
323
- [x: `int80[${string}]`]: undefined;
324
- [x: `int88[${string}]`]: undefined;
325
- [x: `int96[${string}]`]: undefined;
326
- [x: `int104[${string}]`]: undefined;
327
- [x: `int112[${string}]`]: undefined;
328
- [x: `int120[${string}]`]: undefined;
329
- [x: `int128[${string}]`]: undefined;
330
- [x: `int136[${string}]`]: undefined;
331
- [x: `int144[${string}]`]: undefined;
332
- [x: `int152[${string}]`]: undefined;
333
- [x: `int160[${string}]`]: undefined;
334
- [x: `int168[${string}]`]: undefined;
335
- [x: `int176[${string}]`]: undefined;
336
- [x: `int184[${string}]`]: undefined;
337
- [x: `int192[${string}]`]: undefined;
338
- [x: `int200[${string}]`]: undefined;
339
- [x: `int208[${string}]`]: undefined;
340
- [x: `int216[${string}]`]: undefined;
341
- [x: `int224[${string}]`]: undefined;
342
- [x: `int232[${string}]`]: undefined;
343
- [x: `int240[${string}]`]: undefined;
344
- [x: `int248[${string}]`]: undefined;
345
- [x: `int256[${string}]`]: undefined;
346
- [x: `uint[${string}]`]: undefined;
347
- [x: `uint40[${string}]`]: undefined;
348
- [x: `uint8[${string}]`]: undefined;
349
- [x: `uint16[${string}]`]: undefined;
350
- [x: `uint24[${string}]`]: undefined;
351
- [x: `uint32[${string}]`]: undefined;
352
- [x: `uint48[${string}]`]: undefined;
353
- [x: `uint56[${string}]`]: undefined;
354
- [x: `uint64[${string}]`]: undefined;
355
- [x: `uint72[${string}]`]: undefined;
356
- [x: `uint80[${string}]`]: undefined;
357
- [x: `uint88[${string}]`]: undefined;
358
- [x: `uint96[${string}]`]: undefined;
359
- [x: `uint104[${string}]`]: undefined;
360
- [x: `uint112[${string}]`]: undefined;
361
- [x: `uint120[${string}]`]: undefined;
362
- [x: `uint128[${string}]`]: undefined;
363
- [x: `uint136[${string}]`]: undefined;
364
- [x: `uint144[${string}]`]: undefined;
365
- [x: `uint152[${string}]`]: undefined;
366
- [x: `uint160[${string}]`]: undefined;
367
- [x: `uint168[${string}]`]: undefined;
368
- [x: `uint176[${string}]`]: undefined;
369
- [x: `uint184[${string}]`]: undefined;
370
- [x: `uint192[${string}]`]: undefined;
371
- [x: `uint200[${string}]`]: undefined;
372
- [x: `uint208[${string}]`]: undefined;
373
- [x: `uint216[${string}]`]: undefined;
374
- [x: `uint224[${string}]`]: undefined;
375
- [x: `uint232[${string}]`]: undefined;
376
- [x: `uint240[${string}]`]: undefined;
377
- [x: `uint248[${string}]`]: undefined;
378
- [x: `uint256[${string}]`]: undefined;
379
- string?: undefined;
380
- address?: undefined;
381
- bool?: undefined;
382
- bytes?: undefined;
383
- bytes2?: undefined;
384
- bytes3?: undefined;
385
- bytes1?: undefined;
386
- bytes22?: undefined;
387
- bytes6?: undefined;
388
- bytes4?: undefined;
389
- bytes5?: undefined;
390
- bytes7?: undefined;
391
- bytes8?: undefined;
392
- bytes9?: undefined;
393
- bytes10?: undefined;
394
- bytes11?: undefined;
395
- bytes12?: undefined;
396
- bytes13?: undefined;
397
- bytes14?: undefined;
398
- bytes15?: undefined;
399
- bytes16?: undefined;
400
- bytes17?: undefined;
401
- bytes18?: undefined;
402
- bytes19?: undefined;
403
- bytes20?: undefined;
404
- bytes21?: undefined;
405
- bytes23?: undefined;
406
- bytes24?: undefined;
407
- bytes25?: undefined;
408
- bytes26?: undefined;
409
- bytes27?: undefined;
410
- bytes28?: undefined;
411
- bytes29?: undefined;
412
- bytes30?: undefined;
413
- bytes31?: undefined;
414
- bytes32?: undefined;
415
- int40?: undefined;
416
- int8?: undefined;
417
- int16?: undefined;
418
- int24?: undefined;
419
- int32?: undefined;
420
- int48?: undefined;
421
- int56?: undefined;
422
- int64?: undefined;
423
- int72?: undefined;
424
- int80?: undefined;
425
- int88?: undefined;
426
- int96?: undefined;
427
- int104?: undefined;
428
- int112?: undefined;
429
- int120?: undefined;
430
- int128?: undefined;
431
- int136?: undefined;
432
- int144?: undefined;
433
- int152?: undefined;
434
- int160?: undefined;
435
- int168?: undefined;
436
- int176?: undefined;
437
- int184?: undefined;
438
- int192?: undefined;
439
- int200?: undefined;
440
- int208?: undefined;
441
- int216?: undefined;
442
- int224?: undefined;
443
- int232?: undefined;
444
- int240?: undefined;
445
- int248?: undefined;
446
- int256?: undefined;
447
- uint40?: undefined;
448
- uint8?: undefined;
449
- uint16?: undefined;
450
- uint24?: undefined;
451
- uint32?: undefined;
452
- uint48?: undefined;
453
- uint56?: undefined;
454
- uint64?: undefined;
455
- uint72?: undefined;
456
- uint80?: undefined;
457
- uint88?: undefined;
458
- uint96?: undefined;
459
- uint104?: undefined;
460
- uint112?: undefined;
461
- uint120?: undefined;
462
- uint128?: undefined;
463
- uint136?: undefined;
464
- uint144?: undefined;
465
- uint152?: undefined;
466
- uint160?: undefined;
467
- uint168?: undefined;
468
- uint176?: undefined;
469
- uint184?: undefined;
470
- uint192?: undefined;
471
- uint200?: undefined;
472
- uint208?: undefined;
473
- uint216?: undefined;
474
- uint224?: undefined;
475
- uint232?: undefined;
476
- uint240?: undefined;
477
- uint248?: undefined;
478
- uint256?: undefined;
479
- }, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
273
+ }) => Promise<import("viem").Hex>;
274
+ signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<import("viem").Hex>;
480
275
  signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
481
276
  chainId?: number | undefined;
482
- }) => Promise<`0x${string}`>;
277
+ }) => Promise<import("viem").Hex>;
483
278
  userOperation?: {
484
279
  estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation").EstimateUserOperationGasReturnType> | undefined>) | undefined;
485
280
  } | undefined;
486
281
  } & {
487
- address: `0x${string}`;
488
- getNonce: (parameters?: {
489
- key?: bigint | undefined;
490
- } | undefined) => Promise<bigint>;
491
- isDeployed: () => Promise<boolean>;
492
- type: "smart";
493
- }) | undefined = (object & {
494
- client: Client;
495
- entryPoint: {
496
- abi: Abi;
497
- address: `0x${string}`;
498
- version: import("viem/account-abstraction").EntryPointVersion;
499
- };
500
- extend?: object | undefined;
501
- getAddress: () => Promise<`0x${string}`>;
502
- encodeCalls: (calls: readonly {
503
- to: `0x${string}`;
504
- data?: `0x${string}` | undefined;
505
- value?: bigint | undefined;
506
- }[]) => Promise<`0x${string}`>;
507
- getFactoryArgs: () => Promise<{
508
- factory?: `0x${string}` | undefined;
509
- factoryData?: `0x${string}` | undefined;
510
- }>;
511
- getNonce?: ((parameters?: {
512
- key?: bigint | undefined;
513
- } | undefined) => Promise<bigint>) | undefined;
514
- getStubSignature: () => Promise<`0x${string}`>;
515
- nonceKeyManager?: import("viem").NonceManager | undefined;
516
- sign?: ((parameters: {
517
- hash: `0x${string}`;
518
- }) => Promise<`0x${string}`>) | undefined;
519
- signMessage: (parameters: {
520
- message: import("viem").SignableMessage;
521
- }) => Promise<`0x${string}`>;
522
- signTypedData: <const typedData extends Record<string, unknown> | {
523
- [x: string]: readonly import("viem").TypedDataParameter[];
524
- [x: `string[${string}]`]: undefined;
525
- [x: `function[${string}]`]: undefined;
526
- [x: `address[${string}]`]: undefined;
527
- [x: `bool[${string}]`]: undefined;
528
- [x: `bytes[${string}]`]: undefined;
529
- [x: `bytes2[${string}]`]: undefined;
530
- [x: `bytes3[${string}]`]: undefined;
531
- [x: `bytes1[${string}]`]: undefined;
532
- [x: `bytes22[${string}]`]: undefined;
533
- [x: `bytes6[${string}]`]: undefined;
534
- [x: `bytes4[${string}]`]: undefined;
535
- [x: `bytes5[${string}]`]: undefined;
536
- [x: `bytes7[${string}]`]: undefined;
537
- [x: `bytes8[${string}]`]: undefined;
538
- [x: `bytes9[${string}]`]: undefined;
539
- [x: `bytes10[${string}]`]: undefined;
540
- [x: `bytes11[${string}]`]: undefined;
541
- [x: `bytes12[${string}]`]: undefined;
542
- [x: `bytes13[${string}]`]: undefined;
543
- [x: `bytes14[${string}]`]: undefined;
544
- [x: `bytes15[${string}]`]: undefined;
545
- [x: `bytes16[${string}]`]: undefined;
546
- [x: `bytes17[${string}]`]: undefined;
547
- [x: `bytes18[${string}]`]: undefined;
548
- [x: `bytes19[${string}]`]: undefined;
549
- [x: `bytes20[${string}]`]: undefined;
550
- [x: `bytes21[${string}]`]: undefined;
551
- [x: `bytes23[${string}]`]: undefined;
552
- [x: `bytes24[${string}]`]: undefined;
553
- [x: `bytes25[${string}]`]: undefined;
554
- [x: `bytes26[${string}]`]: undefined;
555
- [x: `bytes27[${string}]`]: undefined;
556
- [x: `bytes28[${string}]`]: undefined;
557
- [x: `bytes29[${string}]`]: undefined;
558
- [x: `bytes30[${string}]`]: undefined;
559
- [x: `bytes31[${string}]`]: undefined;
560
- [x: `bytes32[${string}]`]: undefined;
561
- [x: `int[${string}]`]: undefined;
562
- [x: `int40[${string}]`]: undefined;
563
- [x: `int8[${string}]`]: undefined;
564
- [x: `int16[${string}]`]: undefined;
565
- [x: `int24[${string}]`]: undefined;
566
- [x: `int32[${string}]`]: undefined;
567
- [x: `int48[${string}]`]: undefined;
568
- [x: `int56[${string}]`]: undefined;
569
- [x: `int64[${string}]`]: undefined;
570
- [x: `int72[${string}]`]: undefined;
571
- [x: `int80[${string}]`]: undefined;
572
- [x: `int88[${string}]`]: undefined;
573
- [x: `int96[${string}]`]: undefined;
574
- [x: `int104[${string}]`]: undefined;
575
- [x: `int112[${string}]`]: undefined;
576
- [x: `int120[${string}]`]: undefined;
577
- [x: `int128[${string}]`]: undefined;
578
- [x: `int136[${string}]`]: undefined;
579
- [x: `int144[${string}]`]: undefined;
580
- [x: `int152[${string}]`]: undefined;
581
- [x: `int160[${string}]`]: undefined;
582
- [x: `int168[${string}]`]: undefined;
583
- [x: `int176[${string}]`]: undefined;
584
- [x: `int184[${string}]`]: undefined;
585
- [x: `int192[${string}]`]: undefined;
586
- [x: `int200[${string}]`]: undefined;
587
- [x: `int208[${string}]`]: undefined;
588
- [x: `int216[${string}]`]: undefined;
589
- [x: `int224[${string}]`]: undefined;
590
- [x: `int232[${string}]`]: undefined;
591
- [x: `int240[${string}]`]: undefined;
592
- [x: `int248[${string}]`]: undefined;
593
- [x: `int256[${string}]`]: undefined;
594
- [x: `uint[${string}]`]: undefined;
595
- [x: `uint40[${string}]`]: undefined;
596
- [x: `uint8[${string}]`]: undefined;
597
- [x: `uint16[${string}]`]: undefined;
598
- [x: `uint24[${string}]`]: undefined;
599
- [x: `uint32[${string}]`]: undefined;
600
- [x: `uint48[${string}]`]: undefined;
601
- [x: `uint56[${string}]`]: undefined;
602
- [x: `uint64[${string}]`]: undefined;
603
- [x: `uint72[${string}]`]: undefined;
604
- [x: `uint80[${string}]`]: undefined;
605
- [x: `uint88[${string}]`]: undefined;
606
- [x: `uint96[${string}]`]: undefined;
607
- [x: `uint104[${string}]`]: undefined;
608
- [x: `uint112[${string}]`]: undefined;
609
- [x: `uint120[${string}]`]: undefined;
610
- [x: `uint128[${string}]`]: undefined;
611
- [x: `uint136[${string}]`]: undefined;
612
- [x: `uint144[${string}]`]: undefined;
613
- [x: `uint152[${string}]`]: undefined;
614
- [x: `uint160[${string}]`]: undefined;
615
- [x: `uint168[${string}]`]: undefined;
616
- [x: `uint176[${string}]`]: undefined;
617
- [x: `uint184[${string}]`]: undefined;
618
- [x: `uint192[${string}]`]: undefined;
619
- [x: `uint200[${string}]`]: undefined;
620
- [x: `uint208[${string}]`]: undefined;
621
- [x: `uint216[${string}]`]: undefined;
622
- [x: `uint224[${string}]`]: undefined;
623
- [x: `uint232[${string}]`]: undefined;
624
- [x: `uint240[${string}]`]: undefined;
625
- [x: `uint248[${string}]`]: undefined;
626
- [x: `uint256[${string}]`]: undefined;
627
- string?: undefined;
628
- address?: undefined;
629
- bool?: undefined;
630
- bytes?: undefined;
631
- bytes2?: undefined;
632
- bytes3?: undefined;
633
- bytes1?: undefined;
634
- bytes22?: undefined;
635
- bytes6?: undefined;
636
- bytes4?: undefined;
637
- bytes5?: undefined;
638
- bytes7?: undefined;
639
- bytes8?: undefined;
640
- bytes9?: undefined;
641
- bytes10?: undefined;
642
- bytes11?: undefined;
643
- bytes12?: undefined;
644
- bytes13?: undefined;
645
- bytes14?: undefined;
646
- bytes15?: undefined;
647
- bytes16?: undefined;
648
- bytes17?: undefined;
649
- bytes18?: undefined;
650
- bytes19?: undefined;
651
- bytes20?: undefined;
652
- bytes21?: undefined;
653
- bytes23?: undefined;
654
- bytes24?: undefined;
655
- bytes25?: undefined;
656
- bytes26?: undefined;
657
- bytes27?: undefined;
658
- bytes28?: undefined;
659
- bytes29?: undefined;
660
- bytes30?: undefined;
661
- bytes31?: undefined;
662
- bytes32?: undefined;
663
- int40?: undefined;
664
- int8?: undefined;
665
- int16?: undefined;
666
- int24?: undefined;
667
- int32?: undefined;
668
- int48?: undefined;
669
- int56?: undefined;
670
- int64?: undefined;
671
- int72?: undefined;
672
- int80?: undefined;
673
- int88?: undefined;
674
- int96?: undefined;
675
- int104?: undefined;
676
- int112?: undefined;
677
- int120?: undefined;
678
- int128?: undefined;
679
- int136?: undefined;
680
- int144?: undefined;
681
- int152?: undefined;
682
- int160?: undefined;
683
- int168?: undefined;
684
- int176?: undefined;
685
- int184?: undefined;
686
- int192?: undefined;
687
- int200?: undefined;
688
- int208?: undefined;
689
- int216?: undefined;
690
- int224?: undefined;
691
- int232?: undefined;
692
- int240?: undefined;
693
- int248?: undefined;
694
- int256?: undefined;
695
- uint40?: undefined;
696
- uint8?: undefined;
697
- uint16?: undefined;
698
- uint24?: undefined;
699
- uint32?: undefined;
700
- uint48?: undefined;
701
- uint56?: undefined;
702
- uint64?: undefined;
703
- uint72?: undefined;
704
- uint80?: undefined;
705
- uint88?: undefined;
706
- uint96?: undefined;
707
- uint104?: undefined;
708
- uint112?: undefined;
709
- uint120?: undefined;
710
- uint128?: undefined;
711
- uint136?: undefined;
712
- uint144?: undefined;
713
- uint152?: undefined;
714
- uint160?: undefined;
715
- uint168?: undefined;
716
- uint176?: undefined;
717
- uint184?: undefined;
718
- uint192?: undefined;
719
- uint200?: undefined;
720
- uint208?: undefined;
721
- uint216?: undefined;
722
- uint224?: undefined;
723
- uint232?: undefined;
724
- uint240?: undefined;
725
- uint248?: undefined;
726
- uint256?: undefined;
727
- }, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
728
- signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
729
- chainId?: number | undefined;
730
- }) => Promise<`0x${string}`>;
731
- userOperation?: {
732
- estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation").EstimateUserOperationGasReturnType> | undefined>) | undefined;
733
- } | undefined;
734
- } & {
735
- address: `0x${string}`;
736
- getNonce: (parameters?: {
737
- key?: bigint | undefined;
738
- } | undefined) => Promise<bigint>;
282
+ address: import("viem").Address;
283
+ getNonce: NonNullable<import("viem/account-abstraction").SmartAccountImplementation["getNonce"]>;
739
284
  isDeployed: () => Promise<boolean>;
740
285
  type: "smart";
741
286
  }) | undefined>(client: Client<Transport, TChain, TSmartAccount>) => SmartAccountActions<TChain, TSmartAccount>;
@@ -1 +1 @@
1
- {"version":3,"file":"smartAccount.d.ts","sourceRoot":"","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,GAAG,GAAG,SAAS,OAAO,EAAE,EAC3C,aAAa,SAAS,oBAAoB,CACtC,IAAI,EACJ,YAAY,GAAG,SAAS,CAC3B,GAAG,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC,EACxD,KAAK,SAAS,oBAAoB,CAC9B,IAAI,EACJ,YAAY,GAAG,SAAS,EACxB,aAAa,CAChB,GAAG,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,EAAE,aAAa,CAAC,EACvE,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EAEpD,IAAI,EAAE,uBAAuB,CACzB,IAAI,EACJ,aAAa,EACb,KAAK,EACL,MAAM,EACN,aAAa,EACb,cAAc,CACjB,KACA,UAAU,CACX,OAAO,aAAa,CAChB,MAAM,EACN,aAAa,EACb,IAAI,EACJ,aAAa,EACb,KAAK,EACL,cAAc,CACjB,CACJ,CAAA;CACJ,CAAA;AAED,wBAAgB,mBAAmB,KAE3B,MAAM,SAAS,KAAK,GAAG,SAAS,sBAChC,aAAa,SAAS,YAAY,GAAG,SAAS;;;;;;;;;;;;;;;eAzP7C,CAAC;mBAA0C,CAAC;;2BAOrC,CAAC;WACD,CAAhB;;;;;;;;;;;;eA6C0B,CAAC;;;mBAOe,CAAA;;;;;;;wBAiM1B,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,KACjD,mBAAmB,CAAC,MAAM,EAAE,aAAa,CAAC,CAMhD"}
@@ -0,0 +1,3 @@
1
+ import { prepareUserOperationForErc20Paymaster } from "./utils/prepareUserOperationForErc20Paymaster";
2
+ export { prepareUserOperationForErc20Paymaster };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../experimental/pimlico/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,+CAA+C,CAAA;AACrG,OAAO,EAAE,qCAAqC,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type Chain, type Client, type Transport } from "viem";
2
+ import { type PrepareUserOperationParameters, type PrepareUserOperationRequest, type PrepareUserOperationReturnType, type SmartAccount } from "viem/account-abstraction";
3
+ export declare const prepareUserOperationForErc20Paymaster: (pimlicoClient: Client) => <account extends SmartAccount | undefined, const calls extends readonly unknown[], const request extends PrepareUserOperationRequest<account, accountOverride, calls>, accountOverride extends SmartAccount | undefined = undefined>(client: Client<Transport, Chain | undefined, account>, parameters_: PrepareUserOperationParameters<account, accountOverride, calls, request>) => Promise<PrepareUserOperationReturnType<account, accountOverride, calls, request>>;
4
+ //# sourceMappingURL=prepareUserOperationForErc20Paymaster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareUserOperationForErc20Paymaster.d.ts","sourceRoot":"","sources":["../../../../experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,SAAS,EAKjB,MAAM,MAAM,CAAA;AACb,OAAO,EAEH,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,YAAY,EAKpB,MAAM,0BAA0B,CAAA;AAMjC,eAAO,MAAM,qCAAqC,kBAC9B,MAAM,MAElB,OAAO,SAAS,YAAY,GAAG,SAAS,QAClC,KAAK,SAAS,SAAS,OAAO,EAAE,QAChC,OAAO,SAAS,2BAA2B,CAC7C,OAAO,EACP,eAAe,EACf,KAAK,CACR,EACD,eAAe,SAAS,YAAY,GAAG,SAAS,sBAExC,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,OAAO,CAAC,eACxC,8BAA8B,CACvC,OAAO,EACP,eAAe,EACf,KAAK,EACL,OAAO,CACV,KACF,OAAO,CACN,8BAA8B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,CAAC,CA8N3E,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getPackedUserOperation.d.ts","sourceRoot":"","sources":["../../utils/getPackedUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAyC,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EACR,mBAAmB,EACnB,aAAa,EAChB,MAAM,0BAA0B,CAAA;AAEjC,wBAAgB,WAAW,CAAC,qBAAqB,EAAE,aAAa,CAAC,KAAK,CAAC,iBAOtE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,GAAG;;;;;;EAW3C;AAED,wBAAgB,mBAAmB,CAC/B,qBAAqB,EAAE,aAAa,CAAC,KAAK,CAAC,iBAQ9C;AAED,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,GAAG;;;EAK3D;AAED,wBAAgB,YAAY,CAAC,qBAAqB,EAAE,aAAa,CAAC,KAAK,CAAC,iBAOvE;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG;;;EAK7C;AAED,wBAAgB,mBAAmB,CAC/B,qBAAqB,EAAE,aAAa,CAAC,KAAK,CAAC,iBAyB9C;AAED,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,GAAG;;;;;;;;;;EAe3D;AAED,eAAO,MAAM,sBAAsB,kBAChB,cAAc,KAAK,CAAC,KACpC,mBAYF,CAAA"}
1
+ {"version":3,"file":"getPackedUserOperation.d.ts","sourceRoot":"","sources":["../../utils/getPackedUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAyC,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EACR,mBAAmB,EACnB,aAAa,EAChB,MAAM,0BAA0B,CAAA;AAEjC,wBAAgB,WAAW,CAAC,qBAAqB,EAAE,aAAa,CAAC,KAAK,CAAC,iBAOtE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,GAAG;;;;;;EAW3C;AAED,wBAAgB,mBAAmB,CAC/B,qBAAqB,EAAE,aAAa,CAAC,KAAK,CA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