@pepu-chain/sdk 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +565 -2
- package/dist/aa/kernel.cjs +40 -0
- package/dist/aa/kernel.cjs.map +1 -0
- package/dist/aa/kernel.d.cts +88 -0
- package/dist/aa/kernel.d.ts +88 -0
- package/dist/aa/kernel.js +11 -0
- package/dist/aa/kernel.js.map +1 -0
- package/dist/aa/react-direct.cjs +110 -0
- package/dist/aa/react-direct.cjs.map +1 -0
- package/dist/aa/react-direct.d.cts +42 -0
- package/dist/aa/react-direct.d.ts +42 -0
- package/dist/aa/react-direct.js +107 -0
- package/dist/aa/react-direct.js.map +1 -0
- package/dist/aa/react.cjs +151 -0
- package/dist/aa/react.cjs.map +1 -0
- package/dist/aa/react.d.cts +62 -0
- package/dist/aa/react.d.ts +62 -0
- package/dist/aa/react.js +147 -0
- package/dist/aa/react.js.map +1 -0
- package/dist/aa.cjs +84 -0
- package/dist/aa.cjs.map +1 -0
- package/dist/aa.d.cts +85 -0
- package/dist/aa.d.ts +85 -0
- package/dist/aa.js +11 -0
- package/dist/aa.js.map +1 -0
- package/dist/api-Dz4sCHH_.d.cts +654 -0
- package/dist/api-Dz4sCHH_.d.ts +654 -0
- package/dist/calls-BRPjKgjl.d.cts +70 -0
- package/dist/calls-z_EQOtFb.d.ts +70 -0
- package/dist/chains-DK13zGIp.d.cts +235 -0
- package/dist/chains-DK13zGIp.d.ts +235 -0
- package/dist/chunk-3XUGQODR.js +194 -0
- package/dist/chunk-3XUGQODR.js.map +1 -0
- package/dist/chunk-45KSZH26.cjs +145 -0
- package/dist/chunk-45KSZH26.cjs.map +1 -0
- package/dist/chunk-4GINFJO6.cjs +44 -0
- package/dist/chunk-4GINFJO6.cjs.map +1 -0
- package/dist/chunk-62M2LKQW.js +136 -0
- package/dist/chunk-62M2LKQW.js.map +1 -0
- package/dist/chunk-6DSZ4Z2N.js +498 -0
- package/dist/chunk-6DSZ4Z2N.js.map +1 -0
- package/dist/chunk-7MNJF2OB.cjs +72 -0
- package/dist/chunk-7MNJF2OB.cjs.map +1 -0
- package/dist/chunk-A5LP2UCS.cjs +2729 -0
- package/dist/chunk-A5LP2UCS.cjs.map +1 -0
- package/dist/chunk-AJS4UFQX.cjs +121 -0
- package/dist/chunk-AJS4UFQX.cjs.map +1 -0
- package/dist/chunk-C2XW44FI.cjs +200 -0
- package/dist/chunk-C2XW44FI.cjs.map +1 -0
- package/dist/chunk-C7IC36XS.cjs +13 -0
- package/dist/chunk-C7IC36XS.cjs.map +1 -0
- package/dist/chunk-D52PADVY.js +84 -0
- package/dist/chunk-D52PADVY.js.map +1 -0
- package/dist/chunk-DH6BFNVJ.cjs +272 -0
- package/dist/chunk-DH6BFNVJ.cjs.map +1 -0
- package/dist/chunk-DPCZJLB3.cjs +87 -0
- package/dist/chunk-DPCZJLB3.cjs.map +1 -0
- package/dist/chunk-EHBPIYY4.js +262 -0
- package/dist/chunk-EHBPIYY4.js.map +1 -0
- package/dist/chunk-ESMNAXUI.js +86 -0
- package/dist/chunk-ESMNAXUI.js.map +1 -0
- package/dist/chunk-ET3P6TX6.cjs +49 -0
- package/dist/chunk-ET3P6TX6.cjs.map +1 -0
- package/dist/chunk-FCXSP2YF.js +219 -0
- package/dist/chunk-FCXSP2YF.js.map +1 -0
- package/dist/chunk-IB2FSPMJ.js +66 -0
- package/dist/chunk-IB2FSPMJ.js.map +1 -0
- package/dist/chunk-IG7RSL2Y.cjs +178 -0
- package/dist/chunk-IG7RSL2Y.cjs.map +1 -0
- package/dist/chunk-IY3ALPUJ.js +2716 -0
- package/dist/chunk-IY3ALPUJ.js.map +1 -0
- package/dist/chunk-J3O2ZGG3.cjs +93 -0
- package/dist/chunk-J3O2ZGG3.cjs.map +1 -0
- package/dist/chunk-J6UXXHBE.js +37 -0
- package/dist/chunk-J6UXXHBE.js.map +1 -0
- package/dist/chunk-JLZ4LZ4Z.js +22 -0
- package/dist/chunk-JLZ4LZ4Z.js.map +1 -0
- package/dist/chunk-KIIFL4VM.js +274 -0
- package/dist/chunk-KIIFL4VM.js.map +1 -0
- package/dist/chunk-KVG3AYYR.js +99 -0
- package/dist/chunk-KVG3AYYR.js.map +1 -0
- package/dist/chunk-MBA4CLA5.js +45 -0
- package/dist/chunk-MBA4CLA5.js.map +1 -0
- package/dist/chunk-NE3QKDOB.cjs +24 -0
- package/dist/chunk-NE3QKDOB.cjs.map +1 -0
- package/dist/chunk-NVOPDXTA.cjs +95 -0
- package/dist/chunk-NVOPDXTA.cjs.map +1 -0
- package/dist/chunk-OH3QMAIB.js +11 -0
- package/dist/chunk-OH3QMAIB.js.map +1 -0
- package/dist/chunk-PHM3ZORG.cjs +110 -0
- package/dist/chunk-PHM3ZORG.cjs.map +1 -0
- package/dist/chunk-R5PXQNO3.cjs +209 -0
- package/dist/chunk-R5PXQNO3.cjs.map +1 -0
- package/dist/chunk-SLW7FRTL.cjs +285 -0
- package/dist/chunk-SLW7FRTL.cjs.map +1 -0
- package/dist/chunk-SVWRRALU.cjs +17 -0
- package/dist/chunk-SVWRRALU.cjs.map +1 -0
- package/dist/chunk-T43PQXJD.js +202 -0
- package/dist/chunk-T43PQXJD.js.map +1 -0
- package/dist/chunk-TIEAZYHF.cjs +225 -0
- package/dist/chunk-TIEAZYHF.cjs.map +1 -0
- package/dist/chunk-VBH3JLQ5.js +116 -0
- package/dist/chunk-VBH3JLQ5.js.map +1 -0
- package/dist/chunk-VF3D6KLQ.cjs +94 -0
- package/dist/chunk-VF3D6KLQ.cjs.map +1 -0
- package/dist/chunk-VTQIHMF3.js +82 -0
- package/dist/chunk-VTQIHMF3.js.map +1 -0
- package/dist/chunk-W3JN3YIW.js +15 -0
- package/dist/chunk-W3JN3YIW.js.map +1 -0
- package/dist/chunk-WANILJZQ.cjs +87 -0
- package/dist/chunk-WANILJZQ.cjs.map +1 -0
- package/dist/chunk-XC4IBCI2.js +86 -0
- package/dist/chunk-XC4IBCI2.js.map +1 -0
- package/dist/chunk-YKEWWQEJ.js +165 -0
- package/dist/chunk-YKEWWQEJ.js.map +1 -0
- package/dist/chunk-YQL7NISX.cjs +515 -0
- package/dist/chunk-YQL7NISX.cjs.map +1 -0
- package/dist/chunk-ZB6SVBK4.js +89 -0
- package/dist/chunk-ZB6SVBK4.js.map +1 -0
- package/dist/combo/react.cjs +235 -0
- package/dist/combo/react.cjs.map +1 -0
- package/dist/combo/react.d.cts +148 -0
- package/dist/combo/react.d.ts +148 -0
- package/dist/combo/react.js +230 -0
- package/dist/combo/react.js.map +1 -0
- package/dist/combo.cjs +262 -0
- package/dist/combo.cjs.map +1 -0
- package/dist/combo.d.cts +139 -0
- package/dist/combo.d.ts +139 -0
- package/dist/combo.js +249 -0
- package/dist/combo.js.map +1 -0
- package/dist/config-CHjz7ZjZ.d.cts +57 -0
- package/dist/config-COjhIZTh.d.ts +57 -0
- package/dist/doctor.cjs +354 -0
- package/dist/doctor.cjs.map +1 -0
- package/dist/doctor.d.cts +177 -0
- package/dist/doctor.d.ts +177 -0
- package/dist/doctor.js +345 -0
- package/dist/doctor.js.map +1 -0
- package/dist/erc7677-DOW58QBE.d.cts +111 -0
- package/dist/erc7677-DOW58QBE.d.ts +111 -0
- package/dist/errors-CgX1vNj7.d.cts +100 -0
- package/dist/errors-CgX1vNj7.d.ts +100 -0
- package/dist/index.cjs +802 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2398 -0
- package/dist/index.d.ts +2398 -0
- package/dist/index.js +559 -0
- package/dist/index.js.map +1 -0
- package/dist/paymaster/server.cjs +38 -0
- package/dist/paymaster/server.cjs.map +1 -0
- package/dist/paymaster/server.d.cts +57 -0
- package/dist/paymaster/server.d.ts +57 -0
- package/dist/paymaster/server.js +36 -0
- package/dist/paymaster/server.js.map +1 -0
- package/dist/paymaster.cjs +356 -0
- package/dist/paymaster.cjs.map +1 -0
- package/dist/paymaster.d.cts +1851 -0
- package/dist/paymaster.d.ts +1851 -0
- package/dist/paymaster.js +289 -0
- package/dist/paymaster.js.map +1 -0
- package/dist/privy/react.cjs +48 -0
- package/dist/privy/react.cjs.map +1 -0
- package/dist/privy/react.d.cts +194 -0
- package/dist/privy/react.d.ts +194 -0
- package/dist/privy/react.js +7 -0
- package/dist/privy/react.js.map +1 -0
- package/dist/privy/server.cjs +43 -0
- package/dist/privy/server.cjs.map +1 -0
- package/dist/privy/server.d.cts +192 -0
- package/dist/privy/server.d.ts +192 -0
- package/dist/privy/server.js +6 -0
- package/dist/privy/server.js.map +1 -0
- package/dist/privy/wagmi.d.ts +90 -0
- package/dist/privy/wagmi.js +55 -0
- package/dist/privy/wagmi.js.map +1 -0
- package/dist/privy.cjs +34 -0
- package/dist/privy.cjs.map +1 -0
- package/dist/privy.d.cts +4 -0
- package/dist/privy.d.ts +4 -0
- package/dist/privy.js +5 -0
- package/dist/privy.js.map +1 -0
- package/dist/react.cjs +72 -0
- package/dist/react.cjs.map +1 -0
- package/dist/react.d.cts +66 -0
- package/dist/react.d.ts +66 -0
- package/dist/react.js +68 -0
- package/dist/react.js.map +1 -0
- package/dist/requirements-C-QiJkL9.d.cts +134 -0
- package/dist/requirements-C-QiJkL9.d.ts +134 -0
- package/dist/scope-DBRkN7bR.d.cts +94 -0
- package/dist/scope-DBRkN7bR.d.ts +94 -0
- package/dist/server.cjs +59 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +208 -0
- package/dist/server.d.ts +208 -0
- package/dist/server.js +8 -0
- package/dist/server.js.map +1 -0
- package/dist/session/kernel.cjs +82 -0
- package/dist/session/kernel.cjs.map +1 -0
- package/dist/session/kernel.d.cts +131 -0
- package/dist/session/kernel.d.ts +131 -0
- package/dist/session/kernel.js +13 -0
- package/dist/session/kernel.js.map +1 -0
- package/dist/session/react.cjs +37 -0
- package/dist/session/react.cjs.map +1 -0
- package/dist/session/react.d.cts +119 -0
- package/dist/session/react.d.ts +119 -0
- package/dist/session/react.js +8 -0
- package/dist/session/react.js.map +1 -0
- package/dist/session/server.cjs +267 -0
- package/dist/session/server.cjs.map +1 -0
- package/dist/session/server.d.cts +151 -0
- package/dist/session/server.d.ts +151 -0
- package/dist/session/server.js +252 -0
- package/dist/session/server.js.map +1 -0
- package/dist/session.cjs +74 -0
- package/dist/session.cjs.map +1 -0
- package/dist/session.d.cts +3 -0
- package/dist/session.d.ts +3 -0
- package/dist/session.js +5 -0
- package/dist/session.js.map +1 -0
- package/dist/status-CmOsyPmO.d.cts +295 -0
- package/dist/status-DwkkOrGQ.d.ts +295 -0
- package/dist/store-CjmLgp9g.d.cts +64 -0
- package/dist/store-CjmLgp9g.d.ts +64 -0
- package/dist/types-BEEM7WdG.d.cts +25 -0
- package/dist/types-BEEM7WdG.d.ts +25 -0
- package/dist/types-BilBTDqK.d.cts +27 -0
- package/dist/types-BilBTDqK.d.ts +27 -0
- package/package.json +209 -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 };
|