@pepu-chain/sdk 0.0.0-stage → 0.2.1

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 (244) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +590 -2
  3. package/dist/aa/kernel.cjs +41 -0
  4. package/dist/aa/kernel.cjs.map +1 -0
  5. package/dist/aa/kernel.d.cts +88 -0
  6. package/dist/aa/kernel.d.ts +88 -0
  7. package/dist/aa/kernel.guard.js +15 -0
  8. package/dist/aa/kernel.js +11 -0
  9. package/dist/aa/kernel.js.map +1 -0
  10. package/dist/aa/react-direct.cjs +111 -0
  11. package/dist/aa/react-direct.cjs.map +1 -0
  12. package/dist/aa/react-direct.d.cts +42 -0
  13. package/dist/aa/react-direct.d.ts +42 -0
  14. package/dist/aa/react-direct.guard.js +15 -0
  15. package/dist/aa/react-direct.js +107 -0
  16. package/dist/aa/react-direct.js.map +1 -0
  17. package/dist/aa/react.cjs +152 -0
  18. package/dist/aa/react.cjs.map +1 -0
  19. package/dist/aa/react.d.cts +62 -0
  20. package/dist/aa/react.d.ts +62 -0
  21. package/dist/aa/react.guard.js +15 -0
  22. package/dist/aa/react.js +147 -0
  23. package/dist/aa/react.js.map +1 -0
  24. package/dist/aa.cjs +84 -0
  25. package/dist/aa.cjs.map +1 -0
  26. package/dist/aa.d.cts +85 -0
  27. package/dist/aa.d.ts +85 -0
  28. package/dist/aa.js +11 -0
  29. package/dist/aa.js.map +1 -0
  30. package/dist/api-Dz4sCHH_.d.cts +654 -0
  31. package/dist/api-Dz4sCHH_.d.ts +654 -0
  32. package/dist/calls-BRPjKgjl.d.cts +70 -0
  33. package/dist/calls-z_EQOtFb.d.ts +70 -0
  34. package/dist/chains-DK13zGIp.d.cts +235 -0
  35. package/dist/chains-DK13zGIp.d.ts +235 -0
  36. package/dist/chunk-3XUGQODR.js +194 -0
  37. package/dist/chunk-3XUGQODR.js.map +1 -0
  38. package/dist/chunk-45KSZH26.cjs +145 -0
  39. package/dist/chunk-45KSZH26.cjs.map +1 -0
  40. package/dist/chunk-4GINFJO6.cjs +44 -0
  41. package/dist/chunk-4GINFJO6.cjs.map +1 -0
  42. package/dist/chunk-62M2LKQW.js +136 -0
  43. package/dist/chunk-62M2LKQW.js.map +1 -0
  44. package/dist/chunk-6DSZ4Z2N.js +498 -0
  45. package/dist/chunk-6DSZ4Z2N.js.map +1 -0
  46. package/dist/chunk-7MNJF2OB.cjs +72 -0
  47. package/dist/chunk-7MNJF2OB.cjs.map +1 -0
  48. package/dist/chunk-7PVR7QSE.js +45 -0
  49. package/dist/chunk-7PVR7QSE.js.map +1 -0
  50. package/dist/chunk-A5LP2UCS.cjs +2729 -0
  51. package/dist/chunk-A5LP2UCS.cjs.map +1 -0
  52. package/dist/chunk-AJS4UFQX.cjs +121 -0
  53. package/dist/chunk-AJS4UFQX.cjs.map +1 -0
  54. package/dist/chunk-BGALSKAF.cjs +315 -0
  55. package/dist/chunk-BGALSKAF.cjs.map +1 -0
  56. package/dist/chunk-C2XW44FI.cjs +200 -0
  57. package/dist/chunk-C2XW44FI.cjs.map +1 -0
  58. package/dist/chunk-C7IC36XS.cjs +13 -0
  59. package/dist/chunk-C7IC36XS.cjs.map +1 -0
  60. package/dist/chunk-D52PADVY.js +84 -0
  61. package/dist/chunk-D52PADVY.js.map +1 -0
  62. package/dist/chunk-DH6BFNVJ.cjs +272 -0
  63. package/dist/chunk-DH6BFNVJ.cjs.map +1 -0
  64. package/dist/chunk-DPCZJLB3.cjs +87 -0
  65. package/dist/chunk-DPCZJLB3.cjs.map +1 -0
  66. package/dist/chunk-EHBPIYY4.js +262 -0
  67. package/dist/chunk-EHBPIYY4.js.map +1 -0
  68. package/dist/chunk-ESMNAXUI.js +86 -0
  69. package/dist/chunk-ESMNAXUI.js.map +1 -0
  70. package/dist/chunk-F2R473FR.js +304 -0
  71. package/dist/chunk-F2R473FR.js.map +1 -0
  72. package/dist/chunk-IB2FSPMJ.js +66 -0
  73. package/dist/chunk-IB2FSPMJ.js.map +1 -0
  74. package/dist/chunk-IG7RSL2Y.cjs +178 -0
  75. package/dist/chunk-IG7RSL2Y.cjs.map +1 -0
  76. package/dist/chunk-IY3ALPUJ.js +2716 -0
  77. package/dist/chunk-IY3ALPUJ.js.map +1 -0
  78. package/dist/chunk-J3O2ZGG3.cjs +93 -0
  79. package/dist/chunk-J3O2ZGG3.cjs.map +1 -0
  80. package/dist/chunk-J6UXXHBE.js +37 -0
  81. package/dist/chunk-J6UXXHBE.js.map +1 -0
  82. package/dist/chunk-JLZ4LZ4Z.js +22 -0
  83. package/dist/chunk-JLZ4LZ4Z.js.map +1 -0
  84. package/dist/chunk-K7JSQPZO.cjs +231 -0
  85. package/dist/chunk-K7JSQPZO.cjs.map +1 -0
  86. package/dist/chunk-KJYNF5KH.js +224 -0
  87. package/dist/chunk-KJYNF5KH.js.map +1 -0
  88. package/dist/chunk-KVG3AYYR.js +99 -0
  89. package/dist/chunk-KVG3AYYR.js.map +1 -0
  90. package/dist/chunk-NE3QKDOB.cjs +24 -0
  91. package/dist/chunk-NE3QKDOB.cjs.map +1 -0
  92. package/dist/chunk-NVOPDXTA.cjs +95 -0
  93. package/dist/chunk-NVOPDXTA.cjs.map +1 -0
  94. package/dist/chunk-OH3QMAIB.js +11 -0
  95. package/dist/chunk-OH3QMAIB.js.map +1 -0
  96. package/dist/chunk-PHM3ZORG.cjs +110 -0
  97. package/dist/chunk-PHM3ZORG.cjs.map +1 -0
  98. package/dist/chunk-R5PXQNO3.cjs +209 -0
  99. package/dist/chunk-R5PXQNO3.cjs.map +1 -0
  100. package/dist/chunk-RCMKPJZO.cjs +49 -0
  101. package/dist/chunk-RCMKPJZO.cjs.map +1 -0
  102. package/dist/chunk-SVWRRALU.cjs +17 -0
  103. package/dist/chunk-SVWRRALU.cjs.map +1 -0
  104. package/dist/chunk-T43PQXJD.js +202 -0
  105. package/dist/chunk-T43PQXJD.js.map +1 -0
  106. package/dist/chunk-VBH3JLQ5.js +116 -0
  107. package/dist/chunk-VBH3JLQ5.js.map +1 -0
  108. package/dist/chunk-VF3D6KLQ.cjs +94 -0
  109. package/dist/chunk-VF3D6KLQ.cjs.map +1 -0
  110. package/dist/chunk-VTQIHMF3.js +82 -0
  111. package/dist/chunk-VTQIHMF3.js.map +1 -0
  112. package/dist/chunk-W3JN3YIW.js +15 -0
  113. package/dist/chunk-W3JN3YIW.js.map +1 -0
  114. package/dist/chunk-WANILJZQ.cjs +87 -0
  115. package/dist/chunk-WANILJZQ.cjs.map +1 -0
  116. package/dist/chunk-XC4IBCI2.js +86 -0
  117. package/dist/chunk-XC4IBCI2.js.map +1 -0
  118. package/dist/chunk-YKEWWQEJ.js +165 -0
  119. package/dist/chunk-YKEWWQEJ.js.map +1 -0
  120. package/dist/chunk-YQL7NISX.cjs +515 -0
  121. package/dist/chunk-YQL7NISX.cjs.map +1 -0
  122. package/dist/chunk-ZB6SVBK4.js +89 -0
  123. package/dist/chunk-ZB6SVBK4.js.map +1 -0
  124. package/dist/combo/react.cjs +236 -0
  125. package/dist/combo/react.cjs.map +1 -0
  126. package/dist/combo/react.d.cts +148 -0
  127. package/dist/combo/react.d.ts +148 -0
  128. package/dist/combo/react.guard.js +15 -0
  129. package/dist/combo/react.js +230 -0
  130. package/dist/combo/react.js.map +1 -0
  131. package/dist/combo.cjs +263 -0
  132. package/dist/combo.cjs.map +1 -0
  133. package/dist/combo.d.cts +139 -0
  134. package/dist/combo.d.ts +139 -0
  135. package/dist/combo.guard.js +15 -0
  136. package/dist/combo.js +249 -0
  137. package/dist/combo.js.map +1 -0
  138. package/dist/config-CHjz7ZjZ.d.cts +57 -0
  139. package/dist/config-COjhIZTh.d.ts +57 -0
  140. package/dist/doctor.cjs +354 -0
  141. package/dist/doctor.cjs.map +1 -0
  142. package/dist/doctor.d.cts +177 -0
  143. package/dist/doctor.d.ts +177 -0
  144. package/dist/doctor.js +345 -0
  145. package/dist/doctor.js.map +1 -0
  146. package/dist/erc7677-DOW58QBE.d.cts +111 -0
  147. package/dist/erc7677-DOW58QBE.d.ts +111 -0
  148. package/dist/errors-CgX1vNj7.d.cts +100 -0
  149. package/dist/errors-CgX1vNj7.d.ts +100 -0
  150. package/dist/index.cjs +806 -0
  151. package/dist/index.cjs.map +1 -0
  152. package/dist/index.d.cts +2398 -0
  153. package/dist/index.d.ts +2398 -0
  154. package/dist/index.js +559 -0
  155. package/dist/index.js.map +1 -0
  156. package/dist/paymaster/server.cjs +38 -0
  157. package/dist/paymaster/server.cjs.map +1 -0
  158. package/dist/paymaster/server.d.cts +57 -0
  159. package/dist/paymaster/server.d.ts +57 -0
  160. package/dist/paymaster/server.js +36 -0
  161. package/dist/paymaster/server.js.map +1 -0
  162. package/dist/paymaster.cjs +356 -0
  163. package/dist/paymaster.cjs.map +1 -0
  164. package/dist/paymaster.d.cts +1851 -0
  165. package/dist/paymaster.d.ts +1851 -0
  166. package/dist/paymaster.js +289 -0
  167. package/dist/paymaster.js.map +1 -0
  168. package/dist/privy/react.cjs +49 -0
  169. package/dist/privy/react.cjs.map +1 -0
  170. package/dist/privy/react.d.cts +194 -0
  171. package/dist/privy/react.d.ts +194 -0
  172. package/dist/privy/react.guard.js +15 -0
  173. package/dist/privy/react.js +7 -0
  174. package/dist/privy/react.js.map +1 -0
  175. package/dist/privy/server.cjs +44 -0
  176. package/dist/privy/server.cjs.map +1 -0
  177. package/dist/privy/server.d.cts +192 -0
  178. package/dist/privy/server.d.ts +192 -0
  179. package/dist/privy/server.guard.js +15 -0
  180. package/dist/privy/server.js +6 -0
  181. package/dist/privy/server.js.map +1 -0
  182. package/dist/privy/wagmi.d.ts +90 -0
  183. package/dist/privy/wagmi.guard.js +15 -0
  184. package/dist/privy/wagmi.js +55 -0
  185. package/dist/privy/wagmi.js.map +1 -0
  186. package/dist/privy.cjs +34 -0
  187. package/dist/privy.cjs.map +1 -0
  188. package/dist/privy.d.cts +4 -0
  189. package/dist/privy.d.ts +4 -0
  190. package/dist/privy.js +5 -0
  191. package/dist/privy.js.map +1 -0
  192. package/dist/react.cjs +73 -0
  193. package/dist/react.cjs.map +1 -0
  194. package/dist/react.d.cts +66 -0
  195. package/dist/react.d.ts +66 -0
  196. package/dist/react.guard.js +15 -0
  197. package/dist/react.js +68 -0
  198. package/dist/react.js.map +1 -0
  199. package/dist/requirements-C-QiJkL9.d.cts +134 -0
  200. package/dist/requirements-C-QiJkL9.d.ts +134 -0
  201. package/dist/scope-DBRkN7bR.d.cts +94 -0
  202. package/dist/scope-DBRkN7bR.d.ts +94 -0
  203. package/dist/server.cjs +59 -0
  204. package/dist/server.cjs.map +1 -0
  205. package/dist/server.d.cts +208 -0
  206. package/dist/server.d.ts +208 -0
  207. package/dist/server.js +8 -0
  208. package/dist/server.js.map +1 -0
  209. package/dist/session/kernel.cjs +83 -0
  210. package/dist/session/kernel.cjs.map +1 -0
  211. package/dist/session/kernel.d.cts +131 -0
  212. package/dist/session/kernel.d.ts +131 -0
  213. package/dist/session/kernel.guard.js +15 -0
  214. package/dist/session/kernel.js +13 -0
  215. package/dist/session/kernel.js.map +1 -0
  216. package/dist/session/react.cjs +38 -0
  217. package/dist/session/react.cjs.map +1 -0
  218. package/dist/session/react.d.cts +119 -0
  219. package/dist/session/react.d.ts +119 -0
  220. package/dist/session/react.guard.js +15 -0
  221. package/dist/session/react.js +8 -0
  222. package/dist/session/react.js.map +1 -0
  223. package/dist/session/server.cjs +268 -0
  224. package/dist/session/server.cjs.map +1 -0
  225. package/dist/session/server.d.cts +151 -0
  226. package/dist/session/server.d.ts +151 -0
  227. package/dist/session/server.guard.js +15 -0
  228. package/dist/session/server.js +252 -0
  229. package/dist/session/server.js.map +1 -0
  230. package/dist/session.cjs +74 -0
  231. package/dist/session.cjs.map +1 -0
  232. package/dist/session.d.cts +3 -0
  233. package/dist/session.d.ts +3 -0
  234. package/dist/session.js +5 -0
  235. package/dist/session.js.map +1 -0
  236. package/dist/status-Dx9zAFo9.d.ts +327 -0
  237. package/dist/status-wgTM26V7.d.cts +327 -0
  238. package/dist/store-CjmLgp9g.d.cts +64 -0
  239. package/dist/store-CjmLgp9g.d.ts +64 -0
  240. package/dist/types-BEEM7WdG.d.cts +25 -0
  241. package/dist/types-BEEM7WdG.d.ts +25 -0
  242. package/dist/types-BilBTDqK.d.cts +27 -0
  243. package/dist/types-BilBTDqK.d.ts +27 -0
  244. package/package.json +245 -3
@@ -0,0 +1,70 @@
1
+ import { Address, Hex, TransactionReceipt } from 'viem';
2
+ import { C as Call } from './types-BilBTDqK.cjs';
3
+
4
+ /** A call in the exact `{ to, value, data }` shape smart-account clients take. */
5
+ interface EncodedCall {
6
+ to: Address;
7
+ value: bigint;
8
+ data: Hex;
9
+ }
10
+ /**
11
+ * Normalize {@link Call}s: encode `abi`/`functionName`/`args` into `data`,
12
+ * default `value` to 0 and `data` to `0x`. Throws a PepuError for an empty
13
+ * list or an ambiguous call.
14
+ *
15
+ * @example
16
+ * normalizeCalls([{ to, abi: tapScoreAbi, functionName: "tap" }]);
17
+ */
18
+ declare function normalizeCalls(calls: readonly Call[]): EncodedCall[];
19
+ /**
20
+ * Read who paid and how much from a bundle transaction receipt's
21
+ * `UserOperationEvent` (EntryPoint v0.7). Returns `null` when the receipt has
22
+ * no event for `sender`.
23
+ *
24
+ * @example
25
+ * const paid = userOpEventFromReceipt(receipt, smartAccountAddress);
26
+ */
27
+ declare function userOpEventFromReceipt(receipt: Pick<TransactionReceipt, "logs">, sender: Address): {
28
+ userOpHash: Hex;
29
+ paymaster: Address | null;
30
+ actualGasCost: bigint;
31
+ success: boolean;
32
+ } | null;
33
+ /** One UserOperationEvent from a bundle receipt. */
34
+ interface UserOpEvent {
35
+ sender: Address;
36
+ userOpHash: Hex;
37
+ nonce: bigint;
38
+ /** The paymaster the EntryPoint charged, or `null` when the account paid for itself. */
39
+ paymaster: Address | null;
40
+ actualGasCost: bigint;
41
+ actualGasUsed: bigint;
42
+ success: boolean;
43
+ }
44
+ /**
45
+ * Every `UserOperationEvent` in a receipt, without knowing the sender. A
46
+ * bundle can carry several operations; use this to inspect them all (for
47
+ * example when you only have a transaction hash). Pure.
48
+ *
49
+ * @example
50
+ * const events = userOpEventsFromReceipt(receipt);
51
+ * events.map((e) => [e.sender, e.success]);
52
+ */
53
+ declare function userOpEventsFromReceipt(receipt: Pick<TransactionReceipt, "logs">): UserOpEvent[];
54
+ /**
55
+ * The ERC-7579 `execute(bytes32 mode, bytes executionCalldata)` callData a
56
+ * Kernel v3 account puts in a UserOperation. One call uses single mode
57
+ * (callType 0x00, packed `target ++ value ++ data`); several use batch mode
58
+ * (callType 0x01, ABI-encoded `Execution[]`). Pure: needs no live account. It
59
+ * is the same bytes `account.encodeCalls(calls)` returns for a Kernel v3.1
60
+ * account (`toPepuKernelAccount`, `@pepu-chain/sdk/aa/kernel`).
61
+ *
62
+ * Calls take either raw `data` or `abi` + `functionName` (+ `args`), like
63
+ * `sendSponsored`. Throws a PepuError for an empty list or ambiguous call.
64
+ *
65
+ * @example
66
+ * const callData = encodeKernelExecute([{ to: tapScore, abi: tapScoreAbi, functionName: "tap" }]);
67
+ */
68
+ declare function encodeKernelExecute(calls: readonly Call[]): Hex;
69
+
70
+ export { type EncodedCall as E, type UserOpEvent as U, userOpEventsFromReceipt as a, encodeKernelExecute as e, normalizeCalls as n, userOpEventFromReceipt as u };
@@ -0,0 +1,70 @@
1
+ import { Address, Hex, TransactionReceipt } from 'viem';
2
+ import { C as Call } from './types-BilBTDqK.js';
3
+
4
+ /** A call in the exact `{ to, value, data }` shape smart-account clients take. */
5
+ interface EncodedCall {
6
+ to: Address;
7
+ value: bigint;
8
+ data: Hex;
9
+ }
10
+ /**
11
+ * Normalize {@link Call}s: encode `abi`/`functionName`/`args` into `data`,
12
+ * default `value` to 0 and `data` to `0x`. Throws a PepuError for an empty
13
+ * list or an ambiguous call.
14
+ *
15
+ * @example
16
+ * normalizeCalls([{ to, abi: tapScoreAbi, functionName: "tap" }]);
17
+ */
18
+ declare function normalizeCalls(calls: readonly Call[]): EncodedCall[];
19
+ /**
20
+ * Read who paid and how much from a bundle transaction receipt's
21
+ * `UserOperationEvent` (EntryPoint v0.7). Returns `null` when the receipt has
22
+ * no event for `sender`.
23
+ *
24
+ * @example
25
+ * const paid = userOpEventFromReceipt(receipt, smartAccountAddress);
26
+ */
27
+ declare function userOpEventFromReceipt(receipt: Pick<TransactionReceipt, "logs">, sender: Address): {
28
+ userOpHash: Hex;
29
+ paymaster: Address | null;
30
+ actualGasCost: bigint;
31
+ success: boolean;
32
+ } | null;
33
+ /** One UserOperationEvent from a bundle receipt. */
34
+ interface UserOpEvent {
35
+ sender: Address;
36
+ userOpHash: Hex;
37
+ nonce: bigint;
38
+ /** The paymaster the EntryPoint charged, or `null` when the account paid for itself. */
39
+ paymaster: Address | null;
40
+ actualGasCost: bigint;
41
+ actualGasUsed: bigint;
42
+ success: boolean;
43
+ }
44
+ /**
45
+ * Every `UserOperationEvent` in a receipt, without knowing the sender. A
46
+ * bundle can carry several operations; use this to inspect them all (for
47
+ * example when you only have a transaction hash). Pure.
48
+ *
49
+ * @example
50
+ * const events = userOpEventsFromReceipt(receipt);
51
+ * events.map((e) => [e.sender, e.success]);
52
+ */
53
+ declare function userOpEventsFromReceipt(receipt: Pick<TransactionReceipt, "logs">): UserOpEvent[];
54
+ /**
55
+ * The ERC-7579 `execute(bytes32 mode, bytes executionCalldata)` callData a
56
+ * Kernel v3 account puts in a UserOperation. One call uses single mode
57
+ * (callType 0x00, packed `target ++ value ++ data`); several use batch mode
58
+ * (callType 0x01, ABI-encoded `Execution[]`). Pure: needs no live account. It
59
+ * is the same bytes `account.encodeCalls(calls)` returns for a Kernel v3.1
60
+ * account (`toPepuKernelAccount`, `@pepu-chain/sdk/aa/kernel`).
61
+ *
62
+ * Calls take either raw `data` or `abi` + `functionName` (+ `args`), like
63
+ * `sendSponsored`. Throws a PepuError for an empty list or ambiguous call.
64
+ *
65
+ * @example
66
+ * const callData = encodeKernelExecute([{ to: tapScore, abi: tapScoreAbi, functionName: "tap" }]);
67
+ */
68
+ declare function encodeKernelExecute(calls: readonly Call[]): Hex;
69
+
70
+ export { type EncodedCall as E, type UserOpEvent as U, userOpEventsFromReceipt as a, encodeKernelExecute as e, normalizeCalls as n, userOpEventFromReceipt as u };
@@ -0,0 +1,235 @@
1
+ import * as viem from 'viem';
2
+
3
+ /**
4
+ * Pepe Unchained V2 — mainnet.
5
+ *
6
+ * Arbitrum Orbit / Nitro chain (ArbOS 51), hosted by Conduit, settling to
7
+ * Ethereum L1 via AnyTrust. Verified against the live RPC endpoint.
8
+ */
9
+ declare const pepuMainnet: {
10
+ blockExplorers: {
11
+ readonly default: {
12
+ readonly name: "PepuScan";
13
+ readonly url: "https://pepuscan.com";
14
+ readonly apiUrl: "https://pepuscan.com/api";
15
+ };
16
+ };
17
+ blockTime?: number | undefined | undefined;
18
+ contracts: {
19
+ readonly multicall3: {
20
+ readonly address: "0x9CE19273Ae9c24437DFF512E8DFCAed4E4B001bd";
21
+ readonly blockCreated: 10521048;
22
+ };
23
+ };
24
+ ensTlds?: readonly string[] | undefined;
25
+ id: 97741;
26
+ name: "Pepe Unchained V2";
27
+ nativeCurrency: {
28
+ readonly name: "Pepe Unchained";
29
+ readonly symbol: "PEPU";
30
+ readonly decimals: 18;
31
+ };
32
+ experimental_preconfirmationTime?: number | undefined | undefined;
33
+ rpcUrls: {
34
+ readonly default: {
35
+ readonly http: readonly ["https://rpc-pepu-v2-mainnet-0.t.conduit.xyz"];
36
+ };
37
+ };
38
+ sourceId?: number | undefined | undefined;
39
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
40
+ testnet: false;
41
+ custom?: Record<string, unknown> | undefined;
42
+ extendSchema?: Record<string, unknown> | undefined;
43
+ fees?: viem.ChainFees<undefined> | undefined;
44
+ formatters?: undefined;
45
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
46
+ client: viem.Client;
47
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
48
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
49
+ client: viem.Client;
50
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
51
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
52
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
53
+ }] | undefined;
54
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
55
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
56
+ };
57
+ /**
58
+ * Pepe Unchained V2 — testnet.
59
+ *
60
+ * Same stack as mainnet; used for development and faucet-funded testing.
61
+ */
62
+ declare const pepuTestnet: {
63
+ blockExplorers?: {
64
+ [key: string]: {
65
+ name: string;
66
+ url: string;
67
+ apiUrl?: string | undefined;
68
+ };
69
+ default: {
70
+ name: string;
71
+ url: string;
72
+ apiUrl?: string | undefined;
73
+ };
74
+ } | undefined | undefined;
75
+ blockTime?: number | undefined | undefined;
76
+ contracts?: {
77
+ [x: string]: viem.ChainContract | {
78
+ [sourceId: number]: viem.ChainContract | undefined;
79
+ } | undefined;
80
+ ensRegistry?: viem.ChainContract | undefined;
81
+ ensUniversalResolver?: viem.ChainContract | undefined;
82
+ multicall3?: viem.ChainContract | undefined;
83
+ erc6492Verifier?: viem.ChainContract | undefined;
84
+ } | undefined;
85
+ ensTlds?: readonly string[] | undefined;
86
+ id: 97740;
87
+ name: "Pepe Unchained V2 Testnet";
88
+ nativeCurrency: {
89
+ readonly name: "Pepe Unchained";
90
+ readonly symbol: "PEPU";
91
+ readonly decimals: 18;
92
+ };
93
+ experimental_preconfirmationTime?: number | undefined | undefined;
94
+ rpcUrls: {
95
+ readonly default: {
96
+ readonly http: readonly ["https://rpc-pepu-v2-testnet-vn4qxxp9og.t.conduit.xyz"];
97
+ };
98
+ };
99
+ sourceId?: number | undefined | undefined;
100
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
101
+ testnet: true;
102
+ custom?: Record<string, unknown> | undefined;
103
+ extendSchema?: Record<string, unknown> | undefined;
104
+ fees?: viem.ChainFees<undefined> | undefined;
105
+ formatters?: undefined;
106
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
107
+ client: viem.Client;
108
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
109
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
110
+ client: viem.Client;
111
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
112
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
113
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
114
+ }] | undefined;
115
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
116
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
117
+ };
118
+ /** All Pepe Unchained V2 chain definitions, mainnet first. */
119
+ declare const pepuChains: readonly [{
120
+ blockExplorers: {
121
+ readonly default: {
122
+ readonly name: "PepuScan";
123
+ readonly url: "https://pepuscan.com";
124
+ readonly apiUrl: "https://pepuscan.com/api";
125
+ };
126
+ };
127
+ blockTime?: number | undefined | undefined;
128
+ contracts: {
129
+ readonly multicall3: {
130
+ readonly address: "0x9CE19273Ae9c24437DFF512E8DFCAed4E4B001bd";
131
+ readonly blockCreated: 10521048;
132
+ };
133
+ };
134
+ ensTlds?: readonly string[] | undefined;
135
+ id: 97741;
136
+ name: "Pepe Unchained V2";
137
+ nativeCurrency: {
138
+ readonly name: "Pepe Unchained";
139
+ readonly symbol: "PEPU";
140
+ readonly decimals: 18;
141
+ };
142
+ experimental_preconfirmationTime?: number | undefined | undefined;
143
+ rpcUrls: {
144
+ readonly default: {
145
+ readonly http: readonly ["https://rpc-pepu-v2-mainnet-0.t.conduit.xyz"];
146
+ };
147
+ };
148
+ sourceId?: number | undefined | undefined;
149
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
150
+ testnet: false;
151
+ custom?: Record<string, unknown> | undefined;
152
+ extendSchema?: Record<string, unknown> | undefined;
153
+ fees?: viem.ChainFees<undefined> | undefined;
154
+ formatters?: undefined;
155
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
156
+ client: viem.Client;
157
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
158
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
159
+ client: viem.Client;
160
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
161
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
162
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
163
+ }] | undefined;
164
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
165
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
166
+ }, {
167
+ blockExplorers?: {
168
+ [key: string]: {
169
+ name: string;
170
+ url: string;
171
+ apiUrl?: string | undefined;
172
+ };
173
+ default: {
174
+ name: string;
175
+ url: string;
176
+ apiUrl?: string | undefined;
177
+ };
178
+ } | undefined | undefined;
179
+ blockTime?: number | undefined | undefined;
180
+ contracts?: {
181
+ [x: string]: viem.ChainContract | {
182
+ [sourceId: number]: viem.ChainContract | undefined;
183
+ } | undefined;
184
+ ensRegistry?: viem.ChainContract | undefined;
185
+ ensUniversalResolver?: viem.ChainContract | undefined;
186
+ multicall3?: viem.ChainContract | undefined;
187
+ erc6492Verifier?: viem.ChainContract | undefined;
188
+ } | undefined;
189
+ ensTlds?: readonly string[] | undefined;
190
+ id: 97740;
191
+ name: "Pepe Unchained V2 Testnet";
192
+ nativeCurrency: {
193
+ readonly name: "Pepe Unchained";
194
+ readonly symbol: "PEPU";
195
+ readonly decimals: 18;
196
+ };
197
+ experimental_preconfirmationTime?: number | undefined | undefined;
198
+ rpcUrls: {
199
+ readonly default: {
200
+ readonly http: readonly ["https://rpc-pepu-v2-testnet-vn4qxxp9og.t.conduit.xyz"];
201
+ };
202
+ };
203
+ sourceId?: number | undefined | undefined;
204
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
205
+ testnet: true;
206
+ custom?: Record<string, unknown> | undefined;
207
+ extendSchema?: Record<string, unknown> | undefined;
208
+ fees?: viem.ChainFees<undefined> | undefined;
209
+ formatters?: undefined;
210
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
211
+ client: viem.Client;
212
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
213
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
214
+ client: viem.Client;
215
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
216
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
217
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
218
+ }] | undefined;
219
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
220
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
221
+ }];
222
+ /** Union type of the two Pepe Unchained V2 chain definitions. */
223
+ type PepuChain = (typeof pepuChains)[number];
224
+ /** The chain ids this package knows about — {@link pepuMainnet}'s and {@link pepuTestnet}'s. */
225
+ type PepuChainId = PepuChain["id"];
226
+ /**
227
+ * Type guard: is `chainId` one of PEPU's chain ids (mainnet `97741` or
228
+ * testnet `97740`)? Narrows `number` to {@link PepuChainId}, so a caller can
229
+ * use it to guard which chain-specific helper (`getContract`,
230
+ * `explorerUrl`, etc.) is safe to call without re-deriving the id list by
231
+ * hand each time.
232
+ */
233
+ declare function isPepuChain(chainId: number): chainId is PepuChainId;
234
+
235
+ export { type PepuChain as P, type PepuChainId as a, pepuMainnet as b, pepuTestnet as c, isPepuChain as i, pepuChains as p };
@@ -0,0 +1,235 @@
1
+ import * as viem from 'viem';
2
+
3
+ /**
4
+ * Pepe Unchained V2 — mainnet.
5
+ *
6
+ * Arbitrum Orbit / Nitro chain (ArbOS 51), hosted by Conduit, settling to
7
+ * Ethereum L1 via AnyTrust. Verified against the live RPC endpoint.
8
+ */
9
+ declare const pepuMainnet: {
10
+ blockExplorers: {
11
+ readonly default: {
12
+ readonly name: "PepuScan";
13
+ readonly url: "https://pepuscan.com";
14
+ readonly apiUrl: "https://pepuscan.com/api";
15
+ };
16
+ };
17
+ blockTime?: number | undefined | undefined;
18
+ contracts: {
19
+ readonly multicall3: {
20
+ readonly address: "0x9CE19273Ae9c24437DFF512E8DFCAed4E4B001bd";
21
+ readonly blockCreated: 10521048;
22
+ };
23
+ };
24
+ ensTlds?: readonly string[] | undefined;
25
+ id: 97741;
26
+ name: "Pepe Unchained V2";
27
+ nativeCurrency: {
28
+ readonly name: "Pepe Unchained";
29
+ readonly symbol: "PEPU";
30
+ readonly decimals: 18;
31
+ };
32
+ experimental_preconfirmationTime?: number | undefined | undefined;
33
+ rpcUrls: {
34
+ readonly default: {
35
+ readonly http: readonly ["https://rpc-pepu-v2-mainnet-0.t.conduit.xyz"];
36
+ };
37
+ };
38
+ sourceId?: number | undefined | undefined;
39
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
40
+ testnet: false;
41
+ custom?: Record<string, unknown> | undefined;
42
+ extendSchema?: Record<string, unknown> | undefined;
43
+ fees?: viem.ChainFees<undefined> | undefined;
44
+ formatters?: undefined;
45
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
46
+ client: viem.Client;
47
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
48
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
49
+ client: viem.Client;
50
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
51
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
52
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
53
+ }] | undefined;
54
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
55
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
56
+ };
57
+ /**
58
+ * Pepe Unchained V2 — testnet.
59
+ *
60
+ * Same stack as mainnet; used for development and faucet-funded testing.
61
+ */
62
+ declare const pepuTestnet: {
63
+ blockExplorers?: {
64
+ [key: string]: {
65
+ name: string;
66
+ url: string;
67
+ apiUrl?: string | undefined;
68
+ };
69
+ default: {
70
+ name: string;
71
+ url: string;
72
+ apiUrl?: string | undefined;
73
+ };
74
+ } | undefined | undefined;
75
+ blockTime?: number | undefined | undefined;
76
+ contracts?: {
77
+ [x: string]: viem.ChainContract | {
78
+ [sourceId: number]: viem.ChainContract | undefined;
79
+ } | undefined;
80
+ ensRegistry?: viem.ChainContract | undefined;
81
+ ensUniversalResolver?: viem.ChainContract | undefined;
82
+ multicall3?: viem.ChainContract | undefined;
83
+ erc6492Verifier?: viem.ChainContract | undefined;
84
+ } | undefined;
85
+ ensTlds?: readonly string[] | undefined;
86
+ id: 97740;
87
+ name: "Pepe Unchained V2 Testnet";
88
+ nativeCurrency: {
89
+ readonly name: "Pepe Unchained";
90
+ readonly symbol: "PEPU";
91
+ readonly decimals: 18;
92
+ };
93
+ experimental_preconfirmationTime?: number | undefined | undefined;
94
+ rpcUrls: {
95
+ readonly default: {
96
+ readonly http: readonly ["https://rpc-pepu-v2-testnet-vn4qxxp9og.t.conduit.xyz"];
97
+ };
98
+ };
99
+ sourceId?: number | undefined | undefined;
100
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
101
+ testnet: true;
102
+ custom?: Record<string, unknown> | undefined;
103
+ extendSchema?: Record<string, unknown> | undefined;
104
+ fees?: viem.ChainFees<undefined> | undefined;
105
+ formatters?: undefined;
106
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
107
+ client: viem.Client;
108
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
109
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
110
+ client: viem.Client;
111
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
112
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
113
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
114
+ }] | undefined;
115
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
116
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
117
+ };
118
+ /** All Pepe Unchained V2 chain definitions, mainnet first. */
119
+ declare const pepuChains: readonly [{
120
+ blockExplorers: {
121
+ readonly default: {
122
+ readonly name: "PepuScan";
123
+ readonly url: "https://pepuscan.com";
124
+ readonly apiUrl: "https://pepuscan.com/api";
125
+ };
126
+ };
127
+ blockTime?: number | undefined | undefined;
128
+ contracts: {
129
+ readonly multicall3: {
130
+ readonly address: "0x9CE19273Ae9c24437DFF512E8DFCAed4E4B001bd";
131
+ readonly blockCreated: 10521048;
132
+ };
133
+ };
134
+ ensTlds?: readonly string[] | undefined;
135
+ id: 97741;
136
+ name: "Pepe Unchained V2";
137
+ nativeCurrency: {
138
+ readonly name: "Pepe Unchained";
139
+ readonly symbol: "PEPU";
140
+ readonly decimals: 18;
141
+ };
142
+ experimental_preconfirmationTime?: number | undefined | undefined;
143
+ rpcUrls: {
144
+ readonly default: {
145
+ readonly http: readonly ["https://rpc-pepu-v2-mainnet-0.t.conduit.xyz"];
146
+ };
147
+ };
148
+ sourceId?: number | undefined | undefined;
149
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
150
+ testnet: false;
151
+ custom?: Record<string, unknown> | undefined;
152
+ extendSchema?: Record<string, unknown> | undefined;
153
+ fees?: viem.ChainFees<undefined> | undefined;
154
+ formatters?: undefined;
155
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
156
+ client: viem.Client;
157
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
158
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
159
+ client: viem.Client;
160
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
161
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
162
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
163
+ }] | undefined;
164
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
165
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
166
+ }, {
167
+ blockExplorers?: {
168
+ [key: string]: {
169
+ name: string;
170
+ url: string;
171
+ apiUrl?: string | undefined;
172
+ };
173
+ default: {
174
+ name: string;
175
+ url: string;
176
+ apiUrl?: string | undefined;
177
+ };
178
+ } | undefined | undefined;
179
+ blockTime?: number | undefined | undefined;
180
+ contracts?: {
181
+ [x: string]: viem.ChainContract | {
182
+ [sourceId: number]: viem.ChainContract | undefined;
183
+ } | undefined;
184
+ ensRegistry?: viem.ChainContract | undefined;
185
+ ensUniversalResolver?: viem.ChainContract | undefined;
186
+ multicall3?: viem.ChainContract | undefined;
187
+ erc6492Verifier?: viem.ChainContract | undefined;
188
+ } | undefined;
189
+ ensTlds?: readonly string[] | undefined;
190
+ id: 97740;
191
+ name: "Pepe Unchained V2 Testnet";
192
+ nativeCurrency: {
193
+ readonly name: "Pepe Unchained";
194
+ readonly symbol: "PEPU";
195
+ readonly decimals: 18;
196
+ };
197
+ experimental_preconfirmationTime?: number | undefined | undefined;
198
+ rpcUrls: {
199
+ readonly default: {
200
+ readonly http: readonly ["https://rpc-pepu-v2-testnet-vn4qxxp9og.t.conduit.xyz"];
201
+ };
202
+ };
203
+ sourceId?: number | undefined | undefined;
204
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
205
+ testnet: true;
206
+ custom?: Record<string, unknown> | undefined;
207
+ extendSchema?: Record<string, unknown> | undefined;
208
+ fees?: viem.ChainFees<undefined> | undefined;
209
+ formatters?: undefined;
210
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
211
+ client: viem.Client;
212
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
213
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
214
+ client: viem.Client;
215
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
216
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
217
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
218
+ }] | undefined;
219
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
220
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
221
+ }];
222
+ /** Union type of the two Pepe Unchained V2 chain definitions. */
223
+ type PepuChain = (typeof pepuChains)[number];
224
+ /** The chain ids this package knows about — {@link pepuMainnet}'s and {@link pepuTestnet}'s. */
225
+ type PepuChainId = PepuChain["id"];
226
+ /**
227
+ * Type guard: is `chainId` one of PEPU's chain ids (mainnet `97741` or
228
+ * testnet `97740`)? Narrows `number` to {@link PepuChainId}, so a caller can
229
+ * use it to guard which chain-specific helper (`getContract`,
230
+ * `explorerUrl`, etc.) is safe to call without re-deriving the id list by
231
+ * hand each time.
232
+ */
233
+ declare function isPepuChain(chainId: number): chainId is PepuChainId;
234
+
235
+ export { type PepuChain as P, type PepuChainId as a, pepuMainnet as b, pepuTestnet as c, isPepuChain as i, pepuChains as p };