@graphprotocol/graph-auth-kit 7.9.0 → 7.10.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/README.md CHANGED
@@ -302,3 +302,49 @@ export function LetMeSwitchChain() {
302
302
  - [`wagmi`](https://wagmi.sh/)
303
303
  - [`viem`](https://viem.sh/)
304
304
  - [Engineering Plan](https://www.notion.so/edgeandnode/Replace-Wallet-Connection-Library-0e4c5e1e015b428dbb52b1f627b712f0)
305
+
306
+ ## Durable Safe submissions
307
+
308
+ `SafeEthersSigner.withSubmissionCallbacks` returns a separate signer scoped to an application's
309
+ publication operation. Use it on the publication contract only, not on an approval contract:
310
+
311
+ ```ts
312
+ const publicationSigner = signer.withSubmissionCallbacks({
313
+ beforeSubmit: async (proposal) => {
314
+ await savePreparedProposal(proposal)
315
+ },
316
+ afterSubmit: async (proposal) => {
317
+ await confirmSubmittedProposal(proposal.safeTxHash)
318
+ },
319
+ })
320
+ const transaction = await publicationContract.connect(publicationSigner).publishNewSubgraph(/* arguments */)
321
+ ```
322
+
323
+ The wallet signs before `beforeSubmit`. The callback receives a serializable unsigned snapshot,
324
+ including the Safe address, decimal chain ID, proposal hash and complete transaction data (nonce
325
+ as a decimal string). Its successful completion must mean durable persistence. If it rejects,
326
+ nothing is submitted to Safe. The original shared signer remains unchanged.
327
+
328
+ After reconciling the saved attempt, retry an absent proposal with an available nonce using
329
+ `publicationSigner.sendPreparedTransaction(proposal)`. This requests a fresh signature but keeps
330
+ the original nonce, gas fields, calldata and hash; it does not select a new nonce or estimate gas.
331
+ Consumed nonces or mismatched hashes/Safes/chains fail before signing. SDK numeric nonce limits
332
+ are checked without rounding. Applications must validate stored data and determine retry eligibility.
333
+
334
+ `SafeSubmissionAcknowledgementError` means Safe accepted the proposal but `afterSubmit` failed.
335
+ Its `proposal` and `cause` permit recovery; it does not mean the proposal failed. Safe API failures
336
+ preserve `statusCode` and `data` (`SafeApiHttpError` is exported from the `/safe` entry point).
337
+ Network failures may have no HTTP status. Keep uncertain attempts and reconcile their exact hashes;
338
+ never infer execution failure from a browser exception. These optional callbacks do not change
339
+ polling settings. This release upgrades Safe API/Protocol/Types Kit to 5.0.3/8.0.7/4.0.1.
340
+
341
+ ## Live integration tests
342
+
343
+ Live RPC tests read `INFURA_KEY` from the test process environment. For local runs,
344
+ you can instead put it in the ignored repository-root `.env.test.local` file;
345
+ shell exports take precedence. Never commit credentials. Run the suite with
346
+ `pnpm --filter @graphprotocol/graph-auth-kit test` from the repository root.
347
+
348
+ The focused Safe submission, HTTP error, and polling tests mock external services.
349
+ They do not require an RPC key. The complete suite also calls live RPC, ENS and
350
+ Graph services, so passing the focused tests alone does not validate those integrations.
@@ -9,6 +9,7 @@ import { l1Mainnet, l1Testnet, l2Mainnet, l2Testnet } from "@graphprotocol/commo
9
9
  import { mainnet, sepolia, arbitrum, arbitrumSepolia } from "viem/chains";
10
10
  import { injected, coinbaseWallet, walletConnect } from "wagmi/connectors";
11
11
  import "@safe-global/protocol-kit";
12
+ import "@safe-global/api-kit";
12
13
  import { providers } from "ethers";
13
14
  const AUTH_STORAGE_KEY = "thegraph__authstate";
14
15
  const MULTISIG_AUTH_STORAGE_KEY = "multisig";
package/dist/client.d.ts CHANGED
@@ -819,10 +819,10 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
819
819
  gasUsed: bigint;
820
820
  }>;
821
821
  createBlockFilter: () => Promise<import('viem').CreateBlockFilterReturnType>;
822
- createContractEventFilter: <const abi extends import('abitype').Abi | readonly unknown[], eventName extends import('viem').ContractEventName<abi> | undefined, args extends import('viem').MaybeExtractEventArgsFromAbi<abi, eventName> | undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined>(args: import('viem').CreateContractEventFilterParameters<abi, eventName, args, strict, fromBlock, toBlock>) => Promise<import('viem').CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>;
823
- createEventFilter: <const abiEvent extends import('abitype').AbiEvent | undefined = undefined, const abiEvents extends readonly import('abitype').AbiEvent[] | readonly unknown[] | undefined = abiEvent extends import('abitype').AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, _EventName extends string | undefined = import('viem').MaybeAbiEventName<abiEvent>, _Args extends import('viem').MaybeExtractEventArgsFromAbi<abiEvents, _EventName> | undefined = undefined>(args?: import('viem').CreateEventFilterParameters<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args> | undefined) => Promise<import('viem').CreateEventFilterReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args>>;
822
+ createContractEventFilter: <const abi extends import('viem').Abi | readonly unknown[], eventName extends import('viem').ContractEventName<abi> | undefined, args extends import('viem').MaybeExtractEventArgsFromAbi<abi, eventName> | undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined>(args: import('viem').CreateContractEventFilterParameters<abi, eventName, args, strict, fromBlock, toBlock>) => Promise<import('viem').CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>;
823
+ createEventFilter: <const abiEvent extends import('viem').AbiEvent | undefined = undefined, const abiEvents extends readonly import('viem').AbiEvent[] | readonly unknown[] | undefined = abiEvent extends import('viem').AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, _EventName extends string | undefined = import('viem').MaybeAbiEventName<abiEvent>, _Args extends import('viem').MaybeExtractEventArgsFromAbi<abiEvents, _EventName> | undefined = undefined>(args?: import('viem').CreateEventFilterParameters<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args> | undefined) => Promise<import('viem').CreateEventFilterReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args>>;
824
824
  createPendingTransactionFilter: () => Promise<import('viem').CreatePendingTransactionFilterReturnType>;
825
- estimateContractGas: <chain extends import('viem').Chain | undefined, const abi extends import('abitype').Abi | readonly unknown[], functionName extends import('viem').ContractFunctionName<abi, "nonpayable" | "payable">, args extends import('viem').ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: import('viem').EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<import('viem').EstimateContractGasReturnType>;
825
+ estimateContractGas: <chain extends import('viem').Chain | undefined, const abi extends import('viem').Abi | readonly unknown[], functionName extends import('viem').ContractFunctionName<abi, "nonpayable" | "payable">, args extends import('viem').ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: import('viem').EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<import('viem').EstimateContractGasReturnType>;
826
826
  estimateGas: (args: import('viem').EstimateGasParameters<{
827
827
  graphCliName: string;
828
828
  caip2Id: `eip155:${string}` | `eip155:${number}` | `osmosis:${string}` | `osmosis:${number}` | `arweave:${string}` | `arweave:${number}` | `antelope:${string}` | `antelope:${number}` | `bip122:${string}` | `bip122:${number}` | `cosmos:${string}` | `cosmos:${number}` | `gear:${string}` | `gear:${number}` | `near:${string}` | `near:${number}` | `beacon:${string}` | `beacon:${number}` | `solana:${string}` | `solana:${number}` | `starknet:${string}` | `starknet:${number}` | `stellar:${string}` | `stellar:${number}`;
@@ -994,7 +994,7 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
994
994
  extraData: import('viem').Hex;
995
995
  gasLimit: bigint;
996
996
  gasUsed: bigint;
997
- miner: import('abitype').Address;
997
+ miner: import('viem').Address;
998
998
  mixHash: import('viem').Hash;
999
999
  parentBeaconBlockRoot?: `0x${string}` | undefined;
1000
1000
  parentHash: import('viem').Hash;
@@ -1010,10 +1010,10 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1010
1010
  withdrawals?: import('viem').Withdrawal[] | undefined | undefined;
1011
1011
  withdrawalsRoot?: `0x${string}` | undefined;
1012
1012
  transactions: includeTransactions extends true ? ({
1013
- from: import('abitype').Address;
1013
+ from: import('viem').Address;
1014
1014
  gas: bigint;
1015
1015
  nonce: number;
1016
- to: import('abitype').Address | null;
1016
+ to: import('viem').Address | null;
1017
1017
  type: "legacy";
1018
1018
  value: bigint;
1019
1019
  r: import('viem').Hex;
@@ -1035,10 +1035,10 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1035
1035
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
1036
1036
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
1037
1037
  } | {
1038
- from: import('abitype').Address;
1038
+ from: import('viem').Address;
1039
1039
  gas: bigint;
1040
1040
  nonce: number;
1041
- to: import('abitype').Address | null;
1041
+ to: import('viem').Address | null;
1042
1042
  type: "eip2930";
1043
1043
  value: bigint;
1044
1044
  r: import('viem').Hex;
@@ -1060,10 +1060,10 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1060
1060
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
1061
1061
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
1062
1062
  } | {
1063
- from: import('abitype').Address;
1063
+ from: import('viem').Address;
1064
1064
  gas: bigint;
1065
1065
  nonce: number;
1066
- to: import('abitype').Address | null;
1066
+ to: import('viem').Address | null;
1067
1067
  type: "eip1559";
1068
1068
  value: bigint;
1069
1069
  r: import('viem').Hex;
@@ -1085,10 +1085,10 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1085
1085
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
1086
1086
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
1087
1087
  } | {
1088
- from: import('abitype').Address;
1088
+ from: import('viem').Address;
1089
1089
  gas: bigint;
1090
1090
  nonce: number;
1091
- to: import('abitype').Address | null;
1091
+ to: import('viem').Address | null;
1092
1092
  type: "eip4844";
1093
1093
  value: bigint;
1094
1094
  r: import('viem').Hex;
@@ -1110,10 +1110,10 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1110
1110
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
1111
1111
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
1112
1112
  } | {
1113
- from: import('abitype').Address;
1113
+ from: import('viem').Address;
1114
1114
  gas: bigint;
1115
1115
  nonce: number;
1116
- to: import('abitype').Address | null;
1116
+ to: import('viem').Address | null;
1117
1117
  type: "eip7702";
1118
1118
  value: bigint;
1119
1119
  r: import('viem').Hex;
@@ -1141,7 +1141,7 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1141
1141
  getBytecode: (args: import('viem').GetBytecodeParameters) => Promise<import('viem').GetBytecodeReturnType>;
1142
1142
  getChainId: () => Promise<import('viem').GetChainIdReturnType>;
1143
1143
  getCode: (args: import('viem').GetBytecodeParameters) => Promise<import('viem').GetBytecodeReturnType>;
1144
- getContractEvents: <const abi extends import('abitype').Abi | readonly unknown[], eventName extends import('viem').ContractEventName<abi> | undefined = undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined>(args: import('viem').GetContractEventsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<import('viem').GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
1144
+ getContractEvents: <const abi extends import('viem').Abi | readonly unknown[], eventName extends import('viem').ContractEventName<abi> | undefined = undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined>(args: import('viem').GetContractEventsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<import('viem').GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
1145
1145
  getEip712Domain: (args: import('viem').GetEip712DomainParameters) => Promise<import('viem').GetEip712DomainReturnType>;
1146
1146
  getEnsAddress: (args: import('viem').GetEnsAddressParameters) => Promise<import('viem').GetEnsAddressReturnType>;
1147
1147
  getEnsAvatar: (args: import('viem').GetEnsAvatarParameters) => Promise<import('viem').GetEnsAvatarReturnType>;
@@ -1306,20 +1306,20 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1306
1306
  formatters?: undefined;
1307
1307
  serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
1308
1308
  }, chainOverride, type> | undefined) => Promise<import('viem').EstimateFeesPerGasReturnType<type>>;
1309
- getFilterChanges: <filterType extends import('viem').FilterType, const abi extends import('abitype').Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined>(args: import('viem').GetFilterChangesParameters<filterType, abi, eventName, strict, fromBlock, toBlock>) => Promise<import('viem').GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>;
1310
- getFilterLogs: <const abi extends import('abitype').Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined>(args: import('viem').GetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<import('viem').GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
1309
+ getFilterChanges: <filterType extends import('viem').FilterType, const abi extends import('viem').Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined>(args: import('viem').GetFilterChangesParameters<filterType, abi, eventName, strict, fromBlock, toBlock>) => Promise<import('viem').GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>;
1310
+ getFilterLogs: <const abi extends import('viem').Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined>(args: import('viem').GetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<import('viem').GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
1311
1311
  getGasPrice: () => Promise<import('viem').GetGasPriceReturnType>;
1312
- getLogs: <const abiEvent extends import('abitype').AbiEvent | undefined = undefined, const abiEvents extends readonly import('abitype').AbiEvent[] | readonly unknown[] | undefined = abiEvent extends import('abitype').AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined>(args?: import('viem').GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock> | undefined) => Promise<import('viem').GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>;
1312
+ getLogs: <const abiEvent extends import('viem').AbiEvent | undefined = undefined, const abiEvents extends readonly import('viem').AbiEvent[] | readonly unknown[] | undefined = abiEvent extends import('viem').AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined, toBlock extends import('viem').BlockNumber | import('viem').BlockTag | undefined = undefined>(args?: import('viem').GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock> | undefined) => Promise<import('viem').GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>;
1313
1313
  getProof: (args: import('viem').GetProofParameters) => Promise<import('viem').GetProofReturnType>;
1314
1314
  estimateMaxPriorityFeePerGas: <chainOverride extends import('viem').Chain | undefined = undefined>(args?: {
1315
1315
  chain?: chainOverride | null | undefined;
1316
1316
  } | undefined) => Promise<import('viem').EstimateMaxPriorityFeePerGasReturnType>;
1317
1317
  getStorageAt: (args: import('viem').GetStorageAtParameters) => Promise<import('viem').GetStorageAtReturnType>;
1318
1318
  getTransaction: <blockTag extends import('viem').BlockTag = "latest">(args: import('viem').GetTransactionParameters<blockTag>) => Promise<{
1319
- from: import('abitype').Address;
1319
+ from: import('viem').Address;
1320
1320
  gas: bigint;
1321
1321
  nonce: number;
1322
- to: import('abitype').Address | null;
1322
+ to: import('viem').Address | null;
1323
1323
  type: "legacy";
1324
1324
  value: bigint;
1325
1325
  r: import('viem').Hex;
@@ -1341,10 +1341,10 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1341
1341
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
1342
1342
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
1343
1343
  } | {
1344
- from: import('abitype').Address;
1344
+ from: import('viem').Address;
1345
1345
  gas: bigint;
1346
1346
  nonce: number;
1347
- to: import('abitype').Address | null;
1347
+ to: import('viem').Address | null;
1348
1348
  type: "eip2930";
1349
1349
  value: bigint;
1350
1350
  r: import('viem').Hex;
@@ -1366,10 +1366,10 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1366
1366
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
1367
1367
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
1368
1368
  } | {
1369
- from: import('abitype').Address;
1369
+ from: import('viem').Address;
1370
1370
  gas: bigint;
1371
1371
  nonce: number;
1372
- to: import('abitype').Address | null;
1372
+ to: import('viem').Address | null;
1373
1373
  type: "eip1559";
1374
1374
  value: bigint;
1375
1375
  r: import('viem').Hex;
@@ -1391,10 +1391,10 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1391
1391
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
1392
1392
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
1393
1393
  } | {
1394
- from: import('abitype').Address;
1394
+ from: import('viem').Address;
1395
1395
  gas: bigint;
1396
1396
  nonce: number;
1397
- to: import('abitype').Address | null;
1397
+ to: import('viem').Address | null;
1398
1398
  type: "eip4844";
1399
1399
  value: bigint;
1400
1400
  r: import('viem').Hex;
@@ -1416,10 +1416,10 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1416
1416
  blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
1417
1417
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
1418
1418
  } | {
1419
- from: import('abitype').Address;
1419
+ from: import('viem').Address;
1420
1420
  gas: bigint;
1421
1421
  nonce: number;
1422
- to: import('abitype').Address | null;
1422
+ to: import('viem').Address | null;
1423
1423
  type: "eip7702";
1424
1424
  value: bigint;
1425
1425
  r: import('viem').Hex;
@@ -1757,7 +1757,7 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
1757
1757
  fees?: import('viem').ChainFees<undefined> | undefined;
1758
1758
  formatters?: undefined;
1759
1759
  serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
1760
- }, chainOverride>, chainOverride extends import('viem').Chain | undefined = undefined, accountOverride extends import('viem').Account | import('abitype').Address | undefined = undefined>(args: import('viem').PrepareTransactionRequestParameters<{
1760
+ }, chainOverride>, chainOverride extends import('viem').Chain | undefined = undefined, accountOverride extends import('viem').Account | import('viem').Address | undefined = undefined>(args: import('viem').PrepareTransactionRequestParameters<{
1761
1761
  graphCliName: string;
1762
1762
  caip2Id: `eip155:${string}` | `eip155:${number}` | `osmosis:${string}` | `osmosis:${number}` | `arweave:${string}` | `arweave:${number}` | `antelope:${string}` | `antelope:${number}` | `bip122:${string}` | `bip122:${number}` | `cosmos:${string}` | `cosmos:${number}` | `gear:${string}` | `gear:${number}` | `near:${string}` | `near:${number}` | `beacon:${string}` | `beacon:${number}` | `solana:${string}` | `solana:${number}` | `starknet:${string}` | `starknet:${number}` | `stellar:${string}` | `stellar:${number}`;
1763
1763
  blockExplorers: {
@@ -2387,7 +2387,7 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
2387
2387
  chain?: undefined;
2388
2388
  } : never : never) & (import('viem').DeriveAccount<import('viem').Account | undefined, accountOverride> extends infer T_15 ? T_15 extends import('viem').DeriveAccount<import('viem').Account | undefined, accountOverride> ? T_15 extends import('viem').Account ? {
2389
2389
  account: T_15;
2390
- from: import('abitype').Address;
2390
+ from: import('viem').Address;
2391
2391
  } : {
2392
2392
  account?: undefined;
2393
2393
  from?: undefined;
@@ -6107,7 +6107,7 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
6107
6107
  chain?: undefined;
6108
6108
  } : never : never) & (import('viem').DeriveAccount<import('viem').Account | undefined, accountOverride> extends infer T_2 ? T_2 extends import('viem').DeriveAccount<import('viem').Account | undefined, accountOverride> ? T_2 extends import('viem').Account ? {
6109
6109
  account: T_2;
6110
- from: import('abitype').Address;
6110
+ from: import('viem').Address;
6111
6111
  } : {
6112
6112
  account?: undefined;
6113
6113
  from?: undefined;
@@ -9354,12 +9354,12 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
9354
9354
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? import('viem').TransactionRequestEIP7702 : never : never : never)>> & {
9355
9355
  chainId?: number | undefined;
9356
9356
  }, (request["parameters"] extends readonly import('viem').PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "gas" | "nonce" | "type" | "blobVersionedHashes" | "chainId" | "fees") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly import('viem').PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "gas" | "nonce" | "type" | "blobVersionedHashes" | "chainId" | "fees") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K]; } : never>;
9357
- readContract: <const abi extends import('abitype').Abi | readonly unknown[], functionName extends import('viem').ContractFunctionName<abi, "pure" | "view">, const args extends import('viem').ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: import('viem').ReadContractParameters<abi, functionName, args>) => Promise<import('viem').ReadContractReturnType<abi, functionName, args>>;
9357
+ readContract: <const abi extends import('viem').Abi | readonly unknown[], functionName extends import('viem').ContractFunctionName<abi, "pure" | "view">, const args extends import('viem').ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: import('viem').ReadContractParameters<abi, functionName, args>) => Promise<import('viem').ReadContractReturnType<abi, functionName, args>>;
9358
9358
  sendRawTransaction: (args: import('viem').SendRawTransactionParameters) => Promise<import('viem').SendRawTransactionReturnType>;
9359
9359
  simulate: <const calls extends readonly unknown[]>(args: import('viem').SimulateBlocksParameters<calls>) => Promise<import('viem').SimulateBlocksReturnType<calls>>;
9360
9360
  simulateBlocks: <const calls extends readonly unknown[]>(args: import('viem').SimulateBlocksParameters<calls>) => Promise<import('viem').SimulateBlocksReturnType<calls>>;
9361
9361
  simulateCalls: <const calls extends readonly unknown[]>(args: import('viem').SimulateCallsParameters<calls>) => Promise<import('viem').SimulateCallsReturnType<calls>>;
9362
- simulateContract: <const abi extends import('abitype').Abi | readonly unknown[], functionName extends import('viem').ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends import('viem').ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends import('viem').Chain | undefined, accountOverride extends import('viem').Account | import('abitype').Address | undefined = undefined>(args: import('viem').SimulateContractParameters<abi, functionName, args_1, {
9362
+ simulateContract: <const abi extends import('viem').Abi | readonly unknown[], functionName extends import('viem').ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends import('viem').ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends import('viem').Chain | undefined, accountOverride extends import('viem').Account | import('viem').Address | undefined = undefined>(args: import('viem').SimulateContractParameters<abi, functionName, args_1, {
9363
9363
  graphCliName: string;
9364
9364
  caip2Id: `eip155:${string}` | `eip155:${number}` | `osmosis:${string}` | `osmosis:${number}` | `arweave:${string}` | `arweave:${number}` | `antelope:${string}` | `antelope:${number}` | `bip122:${string}` | `bip122:${number}` | `cosmos:${string}` | `cosmos:${number}` | `gear:${string}` | `gear:${number}` | `near:${string}` | `near:${number}` | `beacon:${string}` | `beacon:${number}` | `solana:${string}` | `solana:${number}` | `starknet:${string}` | `starknet:${number}` | `stellar:${string}` | `stellar:${number}`;
9365
9365
  blockExplorers: {
@@ -9678,7 +9678,7 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
9678
9678
  blockNumber?: bigint | undefined | undefined;
9679
9679
  blockTag?: import('viem').BlockTag | undefined;
9680
9680
  nonce?: string | undefined | undefined;
9681
- address?: string | undefined;
9681
+ address?: `0x${string}` | undefined;
9682
9682
  domain?: string | undefined | undefined;
9683
9683
  scheme?: string | undefined | undefined;
9684
9684
  time?: Date | undefined;
@@ -10002,8 +10002,8 @@ export declare function buildPublicClient({ chain, infuraKey }: BuildPublicClien
10002
10002
  formatters?: undefined;
10003
10003
  serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
10004
10004
  }, includeTransactions, blockTag>) => import('viem').WatchBlocksReturnType;
10005
- watchContractEvent: <const abi extends import('abitype').Abi | readonly unknown[], eventName extends import('viem').ContractEventName<abi>, strict extends boolean | undefined = undefined>(args: import('viem').WatchContractEventParameters<abi, eventName, strict, HttpTransport>) => import('viem').WatchContractEventReturnType;
10006
- watchEvent: <const abiEvent extends import('abitype').AbiEvent | undefined = undefined, const abiEvents extends readonly import('abitype').AbiEvent[] | readonly unknown[] | undefined = abiEvent extends import('abitype').AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined>(args: import('viem').WatchEventParameters<abiEvent, abiEvents, strict, HttpTransport>) => import('viem').WatchEventReturnType;
10005
+ watchContractEvent: <const abi extends import('viem').Abi | readonly unknown[], eventName extends import('viem').ContractEventName<abi>, strict extends boolean | undefined = undefined>(args: import('viem').WatchContractEventParameters<abi, eventName, strict, HttpTransport>) => import('viem').WatchContractEventReturnType;
10006
+ watchEvent: <const abiEvent extends import('viem').AbiEvent | undefined = undefined, const abiEvents extends readonly import('viem').AbiEvent[] | readonly unknown[] | undefined = abiEvent extends import('viem').AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined>(args: import('viem').WatchEventParameters<abiEvent, abiEvents, strict, HttpTransport>) => import('viem').WatchEventReturnType;
10007
10007
  watchPendingTransactions: (args: import('viem').WatchPendingTransactionsParameters<HttpTransport>) => import('viem').WatchPendingTransactionsReturnType;
10008
10008
  extend: <const client extends {
10009
10009
  [x: string]: unknown;
@@ -11492,7 +11492,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11492
11492
  }, {
11493
11493
  Method: "eth_coinbase";
11494
11494
  Parameters?: undefined;
11495
- ReturnType: import('abitype').Address;
11495
+ ReturnType: import('viem').Address;
11496
11496
  }, {
11497
11497
  Method: "eth_estimateGas";
11498
11498
  Parameters: [transaction: import('viem').RpcTransactionRequest] | [transaction: import('viem').RpcTransactionRequest, block: import('viem').RpcBlockNumber | import('viem').BlockTag] | [transaction: import('viem').RpcTransactionRequest, block: import('viem').RpcBlockNumber | import('viem').BlockTag, stateOverride: import('viem').RpcStateOverride];
@@ -11507,7 +11507,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11507
11507
  ReturnType: import('viem').Quantity;
11508
11508
  }, {
11509
11509
  Method: "eth_getBalance";
11510
- Parameters: [address: import('abitype').Address, block: import('viem').RpcBlockNumber | import('viem').BlockTag | import('viem').RpcBlockIdentifier];
11510
+ Parameters: [address: import('viem').Address, block: import('viem').RpcBlockNumber | import('viem').BlockTag | import('viem').RpcBlockIdentifier];
11511
11511
  ReturnType: import('viem').Quantity;
11512
11512
  }, {
11513
11513
  Method: "eth_getBlockByHash";
@@ -11527,7 +11527,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11527
11527
  ReturnType: import('viem').Quantity;
11528
11528
  }, {
11529
11529
  Method: "eth_getCode";
11530
- Parameters: [address: import('abitype').Address, block: import('viem').RpcBlockNumber | import('viem').BlockTag | import('viem').RpcBlockIdentifier];
11530
+ Parameters: [address: import('viem').Address, block: import('viem').RpcBlockNumber | import('viem').BlockTag | import('viem').RpcBlockIdentifier];
11531
11531
  ReturnType: import('viem').Hex;
11532
11532
  }, {
11533
11533
  Method: "eth_getFilterChanges";
@@ -11540,7 +11540,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11540
11540
  }, {
11541
11541
  Method: "eth_getLogs";
11542
11542
  Parameters: [{
11543
- address?: import('abitype').Address | import('abitype').Address[] | undefined;
11543
+ address?: import('viem').Address | import('viem').Address[] | undefined;
11544
11544
  topics?: import('viem').LogTopic[] | undefined;
11545
11545
  } & ({
11546
11546
  fromBlock?: import('viem').RpcBlockNumber | import('viem').BlockTag | undefined;
@@ -11554,11 +11554,11 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11554
11554
  ReturnType: import('viem').RpcLog[];
11555
11555
  }, {
11556
11556
  Method: "eth_getProof";
11557
- Parameters: [address: import('abitype').Address, storageKeys: import('viem').Hash[], block: import('viem').RpcBlockNumber | import('viem').BlockTag];
11557
+ Parameters: [address: import('viem').Address, storageKeys: import('viem').Hash[], block: import('viem').RpcBlockNumber | import('viem').BlockTag];
11558
11558
  ReturnType: import('viem').RpcProof;
11559
11559
  }, {
11560
11560
  Method: "eth_getStorageAt";
11561
- Parameters: [address: import('abitype').Address, index: import('viem').Quantity, block: import('viem').RpcBlockNumber | import('viem').BlockTag | import('viem').RpcBlockIdentifier];
11561
+ Parameters: [address: import('viem').Address, index: import('viem').Quantity, block: import('viem').RpcBlockNumber | import('viem').BlockTag | import('viem').RpcBlockIdentifier];
11562
11562
  ReturnType: import('viem').Hex;
11563
11563
  }, {
11564
11564
  Method: "eth_getTransactionByBlockHashAndIndex";
@@ -11574,7 +11574,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11574
11574
  ReturnType: import('viem').RpcTransaction | null;
11575
11575
  }, {
11576
11576
  Method: "eth_getTransactionCount";
11577
- Parameters: [address: import('abitype').Address, block: import('viem').RpcBlockNumber | import('viem').BlockTag | import('viem').RpcBlockIdentifier];
11577
+ Parameters: [address: import('viem').Address, block: import('viem').RpcBlockNumber | import('viem').BlockTag | import('viem').RpcBlockIdentifier];
11578
11578
  ReturnType: import('viem').Quantity;
11579
11579
  }, {
11580
11580
  Method: "eth_getTransactionReceipt";
@@ -11609,7 +11609,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11609
11609
  Parameters: [filter: {
11610
11610
  fromBlock?: import('viem').RpcBlockNumber | import('viem').BlockTag | undefined;
11611
11611
  toBlock?: import('viem').RpcBlockNumber | import('viem').BlockTag | undefined;
11612
- address?: import('abitype').Address | import('abitype').Address[] | undefined;
11612
+ address?: import('viem').Address | import('viem').Address[] | undefined;
11613
11613
  topics?: import('viem').LogTopic[] | undefined;
11614
11614
  }];
11615
11615
  ReturnType: import('viem').Quantity;
@@ -11657,7 +11657,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11657
11657
  }, {
11658
11658
  Method: "eth_accounts";
11659
11659
  Parameters?: undefined;
11660
- ReturnType: import('abitype').Address[];
11660
+ ReturnType: import('viem').Address[];
11661
11661
  }, {
11662
11662
  Method: "eth_chainId";
11663
11663
  Parameters?: undefined;
@@ -11669,7 +11669,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11669
11669
  }, {
11670
11670
  Method: "eth_requestAccounts";
11671
11671
  Parameters?: undefined;
11672
- ReturnType: import('abitype').Address[];
11672
+ ReturnType: import('viem').Address[];
11673
11673
  }, {
11674
11674
  Method: "eth_sendTransaction";
11675
11675
  Parameters: [transaction: import('viem').RpcTransactionRequest];
@@ -11680,7 +11680,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11680
11680
  ReturnType: import('viem').Hash;
11681
11681
  }, {
11682
11682
  Method: "eth_sign";
11683
- Parameters: [address: import('abitype').Address, data: import('viem').Hex];
11683
+ Parameters: [address: import('viem').Address, data: import('viem').Hex];
11684
11684
  ReturnType: import('viem').Hex;
11685
11685
  }, {
11686
11686
  Method: "eth_signTransaction";
@@ -11688,7 +11688,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11688
11688
  ReturnType: import('viem').Hex;
11689
11689
  }, {
11690
11690
  Method: "eth_signTypedData_v4";
11691
- Parameters: [address: import('abitype').Address, message: string];
11691
+ Parameters: [address: import('viem').Address, message: string];
11692
11692
  ReturnType: import('viem').Hex;
11693
11693
  }, {
11694
11694
  Method: "eth_syncing";
@@ -11696,7 +11696,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11696
11696
  ReturnType: import('viem').NetworkSync | false;
11697
11697
  }, {
11698
11698
  Method: "personal_sign";
11699
- Parameters: [data: import('viem').Hex, address: import('abitype').Address];
11699
+ Parameters: [data: import('viem').Hex, address: import('viem').Address];
11700
11700
  ReturnType: import('viem').Hex;
11701
11701
  }, {
11702
11702
  Method: "wallet_addEthereumChain";
@@ -11712,21 +11712,21 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11712
11712
  }[];
11713
11713
  type: "create";
11714
11714
  } | {
11715
- address: import('abitype').Address;
11715
+ address: import('viem').Address;
11716
11716
  chainId?: number | undefined;
11717
11717
  type: "deployed";
11718
11718
  } | {
11719
- address: import('abitype').Address;
11719
+ address: import('viem').Address;
11720
11720
  chainId?: number | undefined;
11721
- factory: import('abitype').Address;
11721
+ factory: import('viem').Address;
11722
11722
  factoryData: import('viem').Hex;
11723
11723
  type: "undeployed";
11724
11724
  }>;
11725
11725
  version: string;
11726
11726
  }];
11727
11727
  ReturnType: {
11728
- address: import('abitype').Address;
11729
- factory?: import('abitype').Address | undefined;
11728
+ address: import('viem').Address;
11729
+ factory?: import('viem').Address | undefined;
11730
11730
  factoryData?: import('viem').Hex | undefined;
11731
11731
  };
11732
11732
  }, {
@@ -11737,7 +11737,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11737
11737
  }];
11738
11738
  ReturnType: {
11739
11739
  accounts: readonly {
11740
- address: import('abitype').Address;
11740
+ address: import('viem').Address;
11741
11741
  capabilities?: import('viem').Capabilities | undefined;
11742
11742
  }[];
11743
11743
  };
@@ -11755,7 +11755,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11755
11755
  ReturnType: import('viem').WalletGetCallsStatusReturnType;
11756
11756
  }, {
11757
11757
  Method: "wallet_getCapabilities";
11758
- Parameters?: readonly [] | readonly [import('abitype').Address | undefined] | readonly [import('abitype').Address | undefined, readonly import('viem').Hex[] | undefined] | undefined;
11758
+ Parameters?: readonly [] | readonly [import('viem').Address | undefined] | readonly [import('viem').Address | undefined, readonly import('viem').Hex[] | undefined] | undefined;
11759
11759
  ReturnType: import('viem').Prettify<import('viem').WalletCapabilitiesRecord>;
11760
11760
  }, {
11761
11761
  Method: "wallet_getPermissions";
@@ -11805,7 +11805,7 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11805
11805
  ReturnType: import('viem').Hex;
11806
11806
  }, {
11807
11807
  Method: "eth_estimateUserOperationGas";
11808
- Parameters: [userOperation: import('viem').RpcUserOperation, entrypoint: import('abitype').Address] | [userOperation: import('viem').RpcUserOperation, entrypoint: import('abitype').Address, stateOverrideSet: import('viem').RpcStateOverride];
11808
+ Parameters: [userOperation: import('viem').RpcUserOperation, entrypoint: import('viem').Address] | [userOperation: import('viem').RpcUserOperation, entrypoint: import('viem').Address, stateOverrideSet: import('viem').RpcStateOverride];
11809
11809
  ReturnType: import('viem').RpcEstimateUserOperationGasReturnType;
11810
11810
  }, {
11811
11811
  Method: "eth_getUserOperationByHash";
@@ -11817,19 +11817,19 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11817
11817
  ReturnType: import('viem').RpcUserOperationReceipt | null;
11818
11818
  }, {
11819
11819
  Method: "eth_sendUserOperation";
11820
- Parameters: [userOperation: import('viem').RpcUserOperation, entrypoint: import('abitype').Address];
11820
+ Parameters: [userOperation: import('viem').RpcUserOperation, entrypoint: import('viem').Address];
11821
11821
  ReturnType: import('viem').Hash;
11822
11822
  }, {
11823
11823
  Method: "eth_supportedEntryPoints";
11824
11824
  Parameters?: undefined;
11825
- ReturnType: readonly import('abitype').Address[];
11825
+ ReturnType: readonly import('viem').Address[];
11826
11826
  }, {
11827
11827
  Method: "pm_getPaymasterStubData";
11828
- Parameters?: [userOperation: import('viem').OneOf<import('viem').PartialBy<Pick<import('viem').RpcUserOperation<"0.6">, "callData" | "callGasLimit" | "initCode" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit">, "callGasLimit" | "initCode" | "maxFeePerGas" | "maxPriorityFeePerGas" | "preVerificationGas" | "verificationGasLimit"> | import('viem').PartialBy<Pick<import('viem').RpcUserOperation<"0.7">, "callData" | "callGasLimit" | "factory" | "factoryData" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit">, "callGasLimit" | "factory" | "factoryData" | "maxFeePerGas" | "maxPriorityFeePerGas" | "preVerificationGas" | "verificationGasLimit">>, entrypoint: import('abitype').Address, chainId: import('viem').Hex, context: unknown];
11828
+ Parameters?: [userOperation: import('viem').OneOf<import('viem').PartialBy<Pick<import('viem').RpcUserOperation<"0.6">, "callData" | "callGasLimit" | "initCode" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit">, "callGasLimit" | "initCode" | "maxFeePerGas" | "maxPriorityFeePerGas" | "preVerificationGas" | "verificationGasLimit"> | import('viem').PartialBy<Pick<import('viem').RpcUserOperation<"0.7">, "callData" | "callGasLimit" | "factory" | "factoryData" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit">, "callGasLimit" | "factory" | "factoryData" | "maxFeePerGas" | "maxPriorityFeePerGas" | "preVerificationGas" | "verificationGasLimit">>, entrypoint: import('viem').Address, chainId: import('viem').Hex, context: unknown];
11829
11829
  ReturnType: import('viem').OneOf<{
11830
11830
  paymasterAndData: import('viem').Hex;
11831
11831
  } | {
11832
- paymaster: import('abitype').Address;
11832
+ paymaster: import('viem').Address;
11833
11833
  paymasterData: import('viem').Hex;
11834
11834
  paymasterVerificationGasLimit: import('viem').Hex;
11835
11835
  paymasterPostOpGasLimit: import('viem').Hex;
@@ -11842,11 +11842,11 @@ export declare function buildClient({ chain, infuraKey }: BuildClientArgs): {
11842
11842
  };
11843
11843
  }, {
11844
11844
  Method: "pm_getPaymasterData";
11845
- Parameters?: [userOperation: Pick<import('viem').RpcUserOperation<"0.6">, "callData" | "callGasLimit" | "initCode" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit"> | Pick<import('viem').RpcUserOperation<"0.7">, "callData" | "callGasLimit" | "factory" | "factoryData" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit">, entrypoint: import('abitype').Address, chainId: import('viem').Hex, context: unknown];
11845
+ Parameters?: [userOperation: Pick<import('viem').RpcUserOperation<"0.6">, "callData" | "callGasLimit" | "initCode" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit"> | Pick<import('viem').RpcUserOperation<"0.7">, "callData" | "callGasLimit" | "factory" | "factoryData" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit">, entrypoint: import('viem').Address, chainId: import('viem').Hex, context: unknown];
11846
11846
  ReturnType: import('viem').OneOf<{
11847
11847
  paymasterAndData: import('viem').Hex;
11848
11848
  } | {
11849
- paymaster: import('abitype').Address;
11849
+ paymaster: import('viem').Address;
11850
11850
  paymasterData: import('viem').Hex;
11851
11851
  paymasterVerificationGasLimit: import('viem').Hex;
11852
11852
  paymasterPostOpGasLimit: import('viem').Hex;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,aAAa,EAAE,MAAM,MAAM,CAAA;AACjF,OAAO,EAAE,CAAC,EAAE,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAH9iW;AAED,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA"}
package/dist/ens/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { u, a, b, c } from "../useGraphAuthKitEnsNames-BOTbNQrR.js";
1
+ import { u, a, b, c } from "../useGraphAuthKitEnsNames-Bl3soyKU.js";
2
2
  export {
3
3
  u as useGraphAuthKitAvatar,
4
4
  a as useGraphAuthKitAvatars,
@@ -8,7 +8,7 @@ import { useMemo, useState, useEffect } from "react";
8
8
  import { encodeFunctionData, getAddress, isAddress } from "viem";
9
9
  import { useChainId, useConnectorClient, useAccount, useConfig, useAccountEffect, useWalletClient } from "wagmi";
10
10
  import { writeContractMutationOptions } from "wagmi/query";
11
- import { b as createSafe, c as createApiKit, K as useGraphAuthKitInnerContext, I as clientToProvider, w as GraphAuthKitConnector, M as MULTISIG_AUTH_STORAGE_KEY, N as MultisigSchema } from "./GraphAuthKitInner.context-DFDaC5w3.js";
11
+ import { b as createSafe, c as createApiKit, K as useGraphAuthKitInnerContext, I as clientToProvider, w as GraphAuthKitConnector, M as MULTISIG_AUTH_STORAGE_KEY, N as MultisigSchema } from "./GraphAuthKitInner.context-DLfbf-o4.js";
12
12
  import { VoidSigner } from "@ethersproject/abstract-signer";
13
13
  import "@safe-global/protocol-kit";
14
14
  import { OperationType } from "@safe-global/types-kit";
@@ -103,6 +103,21 @@ const mapReceipt = (receipt, safeTx) => {
103
103
  return receipt;
104
104
  };
105
105
  const sleep = (duration) => new Promise((resolve) => setTimeout(resolve, duration));
106
+ class SafeSubmissionAcknowledgementError extends Error {
107
+ constructor(proposal, cause) {
108
+ super("Safe accepted the proposal, but persisting its acknowledgement failed");
109
+ __publicField(this, "cause");
110
+ this.proposal = proposal;
111
+ this.name = "SafeSubmissionAcknowledgementError";
112
+ this.cause = cause;
113
+ }
114
+ }
115
+ function safeNonce(value) {
116
+ if (!/^\d+$/.test(String(value)) || !Number.isSafeInteger(Number(value))) {
117
+ throw new RangeError("Safe nonce exceeds the SDK supported integer range");
118
+ }
119
+ return Number(value);
120
+ }
106
121
  class SafeEthersSigner extends VoidSigner {
107
122
  constructor(safeAddress, provider, signerAddress, chainId, options) {
108
123
  super(safeAddress, provider);
@@ -110,6 +125,7 @@ class SafeEthersSigner extends VoidSigner {
110
125
  __publicField(this, "signerAddress");
111
126
  __publicField(this, "chainId");
112
127
  __publicField(this, "options");
128
+ __publicField(this, "submissionCallbacks", {});
113
129
  __publicField(this, "safe");
114
130
  __publicField(this, "apiKit");
115
131
  this.signerAddress = signerAddress;
@@ -150,14 +166,23 @@ class SafeEthersSigner extends VoidSigner {
150
166
  }
151
167
  return this.apiKit;
152
168
  }
169
+ /** Return a scoped signer; never change callbacks on the shared wallet signer. */
170
+ withSubmissionCallbacks(callbacks) {
171
+ const signer = new SafeEthersSigner(
172
+ this.safeAddress,
173
+ this.provider,
174
+ this.signerAddress,
175
+ this.chainId,
176
+ this.options
177
+ );
178
+ signer.submissionCallbacks = { ...callbacks };
179
+ signer.safe = this.safe;
180
+ signer.apiKit = this.apiKit;
181
+ return signer;
182
+ }
153
183
  async getNextNonce() {
154
- try {
155
- const apiKit = await this.getApiKitInstance();
156
- const nonce = await apiKit.getNextNonce(this.safeAddress);
157
- return parseInt(nonce, 10);
158
- } catch (error) {
159
- throw new Error(`Failed to get next nonce: ${error instanceof Error ? error.message : String(error)}`);
160
- }
184
+ const apiKit = await this.getApiKitInstance();
185
+ return safeNonce(await apiKit.getNextNonce(this.safeAddress));
161
186
  }
162
187
  async buildTransactionResponse(safeTxHash, safeTx) {
163
188
  const connectedSafe = await this.getSafeInstance();
@@ -226,17 +251,83 @@ class SafeEthersSigner extends VoidSigner {
226
251
  const estimateTx = await apiKit.estimateSafeTransaction(this.safeAddress, safeTransactionData);
227
252
  safeTransactionData.safeTxGas = estimateTx.safeTxGas;
228
253
  const connectedSafe = await this.getSafeInstance();
229
- const safeTransaction = await connectedSafe.createTransaction({ transactions: [safeTransactionData] });
254
+ const safeTransaction = await connectedSafe.createTransaction({
255
+ transactions: [safeTransactionData],
256
+ options: { nonce, safeTxGas: estimateTx.safeTxGas }
257
+ });
230
258
  const safeTxHash = await connectedSafe.getTransactionHash(safeTransaction);
231
- const senderSignature = await connectedSafe.signHash(safeTxHash);
232
- await apiKit.proposeTransaction({
259
+ return this.sendPreparedTransaction({
260
+ schemaVersion: 1,
233
261
  safeAddress: this.safeAddress,
234
- safeTransactionData: safeTransaction.data,
262
+ chainId: String(this.chainId),
235
263
  safeTxHash,
264
+ transaction: { ...safeTransaction.data, nonce: String(safeTransaction.data.nonce) }
265
+ });
266
+ }
267
+ /** Retry the exact proposal, without nonce selection, estimation, or metadata reconstruction. */
268
+ async sendPreparedTransaction(input) {
269
+ var _a, _b, _c, _d;
270
+ const proposal = Object.freeze({
271
+ schemaVersion: input.schemaVersion,
272
+ safeAddress: input.safeAddress,
273
+ chainId: input.chainId,
274
+ safeTxHash: input.safeTxHash,
275
+ transaction: Object.freeze({
276
+ to: input.transaction.to,
277
+ value: input.transaction.value,
278
+ data: input.transaction.data,
279
+ operation: input.transaction.operation,
280
+ safeTxGas: input.transaction.safeTxGas,
281
+ baseGas: input.transaction.baseGas,
282
+ gasPrice: input.transaction.gasPrice,
283
+ gasToken: input.transaction.gasToken,
284
+ refundReceiver: input.transaction.refundReceiver,
285
+ nonce: input.transaction.nonce
286
+ })
287
+ });
288
+ if (proposal.schemaVersion !== 1 || proposal.safeAddress.toLowerCase() !== this.safeAddress.toLowerCase() || proposal.chainId !== String(this.chainId) || !utils.isHexString(proposal.safeTxHash, 32)) {
289
+ throw new Error("Prepared Safe proposal does not match the connected Safe and chain");
290
+ }
291
+ const connectedSafe = await this.getSafeInstance();
292
+ if ((await connectedSafe.getChainId()).toString() !== proposal.chainId) {
293
+ throw new Error("Connected wallet chain changed before Safe submission");
294
+ }
295
+ const data = { ...proposal.transaction, nonce: safeNonce(proposal.transaction.nonce) };
296
+ const safeTransaction = await connectedSafe.createTransaction({
297
+ transactions: [{ to: data.to, value: data.value, data: data.data, operation: data.operation }],
298
+ options: {
299
+ nonce: data.nonce,
300
+ safeTxGas: data.safeTxGas,
301
+ baseGas: data.baseGas,
302
+ gasPrice: data.gasPrice,
303
+ gasToken: data.gasToken,
304
+ refundReceiver: data.refundReceiver
305
+ }
306
+ });
307
+ const hash = await connectedSafe.getTransactionHash(safeTransaction);
308
+ if (hash.toLowerCase() !== proposal.safeTxHash.toLowerCase()) {
309
+ throw new Error("Prepared Safe proposal hash does not match its transaction data");
310
+ }
311
+ if (BigNumber.from(await connectedSafe.getNonce()).gt(data.nonce)) {
312
+ throw new Error("Prepared Safe proposal nonce has been consumed; reconcile before retrying");
313
+ }
314
+ const senderSignature = await connectedSafe.signHash(hash);
315
+ const response = await this.buildTransactionResponse(hash, data);
316
+ const apiKit = await this.getApiKitInstance();
317
+ await ((_b = (_a = this.submissionCallbacks).beforeSubmit) == null ? void 0 : _b.call(_a, proposal));
318
+ await apiKit.proposeTransaction({
319
+ safeAddress: this.safeAddress,
320
+ safeTransactionData: data,
321
+ safeTxHash: hash,
236
322
  senderAddress: this.signerAddress,
237
323
  senderSignature: senderSignature.data
238
324
  });
239
- return this.buildTransactionResponse(safeTxHash, safeTransaction.data);
325
+ try {
326
+ await ((_d = (_c = this.submissionCallbacks).afterSubmit) == null ? void 0 : _d.call(_c, proposal));
327
+ } catch (error) {
328
+ throw new SafeSubmissionAcknowledgementError(proposal, error);
329
+ }
330
+ return response;
240
331
  }
241
332
  }
242
333
  function safeViemActions(safeAddress, chainId, safeApiKey) {
@@ -502,14 +593,15 @@ function useGraphAuthKitWriteContract(parameters = {}) {
502
593
  };
503
594
  }
504
595
  export {
505
- SafeEthersSigner as S,
506
- useGraphAuthKitAccount as a,
507
- useGraphAuthKitConnector as b,
508
- useClientToEthersSigner as c,
509
- useAuthAccount as d,
510
- useGraphAuthKitAccountEffect as e,
511
- useGraphAuthKitWalletClient as f,
512
- useGraphAuthKitWriteContract as g,
596
+ SafeSubmissionAcknowledgementError as S,
597
+ SafeEthersSigner as a,
598
+ useGraphAuthKitAccount as b,
599
+ useGraphAuthKitConnector as c,
600
+ useClientToEthersSigner as d,
601
+ useAuthAccount as e,
602
+ useGraphAuthKitAccountEffect as f,
603
+ useGraphAuthKitWalletClient as g,
604
+ useGraphAuthKitWriteContract as h,
513
605
  mapReceipt as m,
514
606
  useMultisigInfo as u
515
607
  };
package/dist/index.js CHANGED
@@ -1,13 +1,14 @@
1
1
  "use client";
2
- import { m, A, k, B, D, w, G, L, n, o, p, M, O, v, R, u, a, S, q, r, s, t, l, g, j, x, I, J, c, b, f, h, E, C, F, H, e, i, y, d, z } from "./GraphAuthKitInner.context-DFDaC5w3.js";
3
- import { G as G2, a as a2, M as M2, b as b2, d as d2, u as u2 } from "./utils-CHmOZz26.js";
4
- import { a as useGraphAuthKitAccount, b as useGraphAuthKitConnector } from "./hooks-DeU86P4k.js";
5
- import { S as S2, m as m2, d as d3, c as c2, e as e2, f as f2, g as g2, u as u3 } from "./hooks-DeU86P4k.js";
6
- import { g as g3, u as u4, w as w2 } from "./useWaitForSafeTransaction-DqUJ6JOu.js";
2
+ import { m, A, k, B, D, w, G, L, n, o, p, M, O, v, R, u, a, S, q, r, s, t, l, g, j, x, I, J, c, b, f, h, E, C, F, H, e, i, y, d, z } from "./GraphAuthKitInner.context-DLfbf-o4.js";
3
+ import { G as G2, a as a2, M as M2, b as b2, d as d2, u as u2 } from "./utils-Cjhggvka.js";
4
+ import { b as useGraphAuthKitAccount, c as useGraphAuthKitConnector } from "./hooks-N_8StIGc.js";
5
+ import { a as a3, S as S2, m as m2, e as e2, d as d3, f as f2, g as g2, h as h2, u as u3 } from "./hooks-N_8StIGc.js";
6
+ import { g as g3, u as u4, w as w2 } from "./useWaitForSafeTransaction-CxGjZhJy.js";
7
+ import { HttpError } from "@safe-global/api-kit";
7
8
  import { jsx, jsxs } from "react/jsx-runtime";
8
9
  import { Alert, ExperimentalButton } from "@graphprotocol/gds";
9
10
  import { useConfig, useSwitchChain } from "wagmi";
10
- import { u as u5, a as a3, b as b3, c as c3 } from "./useGraphAuthKitEnsNames-BOTbNQrR.js";
11
+ import { u as u5, a as a4, b as b3, c as c2 } from "./useGraphAuthKitEnsNames-Bl3soyKU.js";
11
12
  function Connected({ children }) {
12
13
  const account = useGraphAuthKitAccount();
13
14
  const connector = useGraphAuthKitConnector();
@@ -92,7 +93,9 @@ export {
92
93
  v as OptionalSafeApiKey,
93
94
  R as RequiredInfuraKey,
94
95
  u as RequiredWalletConnectProjectId,
95
- S2 as SafeEthersSigner,
96
+ HttpError as SafeApiHttpError,
97
+ a3 as SafeEthersSigner,
98
+ S2 as SafeSubmissionAcknowledgementError,
96
99
  a as SafeSupportedNetworkNames,
97
100
  S as SafeSupportedNetworks,
98
101
  q as SupportedClientChainId,
@@ -123,18 +126,18 @@ export {
123
126
  d as isValidSafe,
124
127
  z as mapChainIdToChain,
125
128
  m2 as mapReceipt,
126
- d3 as useAuthAccount,
127
- c2 as useClientToEthersSigner,
129
+ e2 as useAuthAccount,
130
+ d3 as useClientToEthersSigner,
128
131
  u2 as useGraphAuthKit,
129
132
  useGraphAuthKitAccount,
130
- e2 as useGraphAuthKitAccountEffect,
133
+ f2 as useGraphAuthKitAccountEffect,
131
134
  u5 as useGraphAuthKitAvatar,
132
- a3 as useGraphAuthKitAvatars,
135
+ a4 as useGraphAuthKitAvatars,
133
136
  useGraphAuthKitConnector,
134
137
  b3 as useGraphAuthKitEnsName,
135
- c3 as useGraphAuthKitEnsNames,
136
- f2 as useGraphAuthKitWalletClient,
137
- g2 as useGraphAuthKitWriteContract,
138
+ c2 as useGraphAuthKitEnsNames,
139
+ g2 as useGraphAuthKitWalletClient,
140
+ h2 as useGraphAuthKitWriteContract,
138
141
  u3 as useMultisigInfo,
139
142
  u4 as useWaitForSafeTransaction,
140
143
  w2 as waitForSafeTransation
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/inner/hooks.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAyB,KAAK,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAI/E;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,IAAI,SAAS,wBAAwB,EAAE,CA8C9E;AAED,wBAAgB,yBAAyB,IAAI,SAAS,wBAAwB,EAAE,CAsC/E"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/inner/hooks.tsx"],"names":[],"mappings":"AASA,OAAO,EAAyB,KAAK,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAI/E;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,IAAI,SAAS,wBAAwB,EAAE,CA8C9E;AAED,wBAAgB,yBAAyB,IAAI,SAAS,wBAAwB,EAAE,CAsC/E"}
@@ -10,6 +10,27 @@ export declare const mapReceipt: (receipt: providers.TransactionReceipt, safeTx:
10
10
  export interface SafeTransactionResponse extends TransactionResponse {
11
11
  operation: OperationType;
12
12
  }
13
+ /** Serializable unsigned snapshot. Signatures deliberately never reach persistence callbacks. */
14
+ export interface PreparedSafeTransaction {
15
+ schemaVersion: 1;
16
+ safeAddress: string;
17
+ chainId: string;
18
+ safeTxHash: string;
19
+ transaction: Omit<SafeTransactionData, 'nonce'> & {
20
+ nonce: string;
21
+ };
22
+ }
23
+ export interface SafeSubmissionCallbacks {
24
+ /** Must durably save the proposal before resolving. Rejection prevents submission. */
25
+ beforeSubmit?: (proposal: PreparedSafeTransaction) => Promise<void>;
26
+ /** Safe accepted the proposal; failure here does not mean submission failed. */
27
+ afterSubmit?: (proposal: PreparedSafeTransaction) => Promise<void>;
28
+ }
29
+ export declare class SafeSubmissionAcknowledgementError extends Error {
30
+ readonly proposal: PreparedSafeTransaction;
31
+ readonly cause: unknown;
32
+ constructor(proposal: PreparedSafeTransaction, cause: unknown);
33
+ }
13
34
  export interface SafeEthersSignerOptions {
14
35
  /** Delay between Safe status requests in milliseconds (5,000–2,147,483,647). Defaults to 5,000. */
15
36
  pollingDelay?: number;
@@ -20,6 +41,7 @@ export declare class SafeEthersSigner extends VoidSigner {
20
41
  readonly signerAddress: string;
21
42
  readonly chainId: SafeSupportedNetworks;
22
43
  readonly options?: SafeEthersSignerOptions;
44
+ private submissionCallbacks;
23
45
  safe?: Safe;
24
46
  apiKit?: SafeApiKit;
25
47
  constructor(safeAddress: string, provider: providers.Web3Provider, signerAddress: string, chainId: SafeSupportedNetworks, options?: SafeEthersSignerOptions);
@@ -27,6 +49,8 @@ export declare class SafeEthersSigner extends VoidSigner {
27
49
  getSafeInstance(): Promise<Safe>;
28
50
  createApiKitInstance(): Promise<SafeApiKit>;
29
51
  getApiKitInstance(): Promise<SafeApiKit>;
52
+ /** Return a scoped signer; never change callbacks on the shared wallet signer. */
53
+ withSubmissionCallbacks(callbacks: SafeSubmissionCallbacks): SafeEthersSigner;
30
54
  getNextNonce(): Promise<number>;
31
55
  buildTransactionResponse(safeTxHash: string, safeTx: SafeTransactionData): Promise<SafeTransactionResponse>;
32
56
  /**
@@ -36,5 +60,7 @@ export declare class SafeEthersSigner extends VoidSigner {
36
60
  * @returns A promise that resolves to a SafeTransactionReponse, that contains all the information of the transaction.
37
61
  */
38
62
  sendTransaction(transaction: Deferrable<TransactionRequest>): Promise<SafeTransactionResponse>;
63
+ /** Retry the exact proposal, without nonce selection, estimation, or metadata reconstruction. */
64
+ sendPreparedTransaction(input: PreparedSafeTransaction): Promise<SafeTransactionResponse>;
39
65
  }
40
66
  //# sourceMappingURL=SafeEthersSigner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SafeEthersSigner.d.ts","sourceRoot":"","sources":["../../src/safe/SafeEthersSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AACnH,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAA;AAClD,OAAO,IAA8B,MAAM,2BAA2B,CAAA;AACtE,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAmC,MAAM,wBAAwB,CAAA;AACjH,OAAO,EAAa,KAAK,SAAS,EAAS,MAAM,QAAQ,CAAA;AAEzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAgGxD,eAAO,MAAM,UAAU,GAAI,SAAS,SAAS,CAAC,kBAAkB,EAAE,QAAQ,mBAAmB,uBAK5F,CAAA;AAID,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,SAAS,EAAE,aAAa,CAAA;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,mGAAmG;IACnG,YAAY,CAAC,E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AAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,uBAAuB,CAAA;IAC1C,OAAO,CAAC,mBAAmB,CAA8B;IACzD,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,UAAU,CAAA;gBAGjB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,SAAS,CAAC,YAAY,EAChC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,qBAAqB,EAC9B,OAAO,CAAC,EAAE,uBAAuB;IAiB7B,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAcnC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAOtC,oBAAoB;IAId,iBAAiB;IAOvB,kFAAkF;IAClF,uBAAuB,CAAC,SAAS,EAAE,uBAAuB,GAAG,gBAAgB;IAcvE,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAM/B,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAqCjH;;;;;OAKG;IACY,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAkD7G,iGAAiG;IAC3F,uBAAuB,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAuEhG"}
@@ -2,4 +2,5 @@ export * from './constants';
2
2
  export * from './SafeEthersSigner';
3
3
  export * from './useWaitForSafeTransaction';
4
4
  export * from './utils';
5
+ export { HttpError as SafeApiHttpError } from '@safe-global/api-kit';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/safe/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/safe/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,SAAS,CAAA;AAEvB,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1,9 +1,12 @@
1
- import { A, a, S, c, b, f, e, i, d } from "../GraphAuthKitInner.context-DFDaC5w3.js";
2
- import { S as S2, m } from "../hooks-DeU86P4k.js";
3
- import { g, u, w } from "../useWaitForSafeTransaction-DqUJ6JOu.js";
1
+ import { A, a, S, c, b, f, e, i, d } from "../GraphAuthKitInner.context-DLfbf-o4.js";
2
+ import { a as a2, S as S2, m } from "../hooks-N_8StIGc.js";
3
+ import { g, u, w } from "../useWaitForSafeTransaction-CxGjZhJy.js";
4
+ import { HttpError } from "@safe-global/api-kit";
4
5
  export {
5
6
  A as ApiKitUrlMap,
6
- S2 as SafeEthersSigner,
7
+ HttpError as SafeApiHttpError,
8
+ a2 as SafeEthersSigner,
9
+ S2 as SafeSubmissionAcknowledgementError,
7
10
  a as SafeSupportedNetworkNames,
8
11
  S as SafeSupportedNetworks,
9
12
  c as createApiKit,
@@ -1,4 +1,4 @@
1
- import { M, b, d } from "../utils-CHmOZz26.js";
1
+ import { M, b, d } from "../utils-Cjhggvka.js";
2
2
  export {
3
3
  M as MockGraphAuthKitProvider,
4
4
  b as buildMockProviderState,
@@ -16,13 +16,13 @@ declare const BuildMockProviderStateArgs: z.ZodUnion<readonly [z.ZodObject<{
16
16
  type: z.ZodLiteral<"generated">;
17
17
  }, z.core.$strip>, z.ZodObject<{
18
18
  type: z.ZodLiteral<"provided">;
19
- address: z.ZodCustom<string, string>;
19
+ address: z.ZodCustom<`0x${string}`, `0x${string}`>;
20
20
  chain: z.ZodDefault<z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<11155111>, z.ZodLiteral<42161>, z.ZodLiteral<421614>]>>>>;
21
21
  connector: z.ZodUnion<readonly [z.ZodObject<{
22
22
  type: z.ZodUnion<readonly [z.ZodLiteral<"injected">, z.ZodLiteral<"coinbaseWallet">, z.ZodLiteral<"walletConnect">]>;
23
23
  }, z.core.$strip>, z.ZodObject<{
24
24
  type: z.ZodLiteral<"multisig">;
25
- eoa: z.ZodCustom<string, string>;
25
+ eoa: z.ZodCustom<`0x${string}`, `0x${string}`>;
26
26
  network: z.ZodDefault<z.ZodOptional<z.ZodReadonly<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<11155111>, z.ZodLiteral<42161>]>>>>;
27
27
  }, z.core.$strip>]>;
28
28
  }, z.core.$strip>]>;
@@ -2,8 +2,8 @@
2
2
  import { createIdenticon } from "@graphprotocol/gds";
3
3
  import { getEnsAvatarQueryKey, getEnsNameQueryKey } from "@wagmi/core/query";
4
4
  import { useQuery } from "wagmi/query";
5
- import { K as useGraphAuthKitInnerContext, y as isSupportedChainId, o as L2Chain, n as L1ChainTestnet, p as L2ChainTestnet, L as L1Chain } from "./GraphAuthKitInner.context-DFDaC5w3.js";
6
- import { a as useGraphAuthKitAccount } from "./hooks-DeU86P4k.js";
5
+ import { K as useGraphAuthKitInnerContext, y as isSupportedChainId, o as L2Chain, n as L1ChainTestnet, p as L2ChainTestnet, L as L1Chain } from "./GraphAuthKitInner.context-DLfbf-o4.js";
6
+ import { b as useGraphAuthKitAccount } from "./hooks-N_8StIGc.js";
7
7
  import { useChainId } from "wagmi";
8
8
  function useGraphAuthKitAvatar(args = {}) {
9
9
  const innerCtx = useGraphAuthKitInnerContext();
@@ -1,7 +1,7 @@
1
1
  import { useQuery } from "@tanstack/react-query";
2
2
  import { useConfig } from "wagmi";
3
- import { u as useMultisigInfo } from "./hooks-DeU86P4k.js";
4
- import { c as createApiKit } from "./GraphAuthKitInner.context-DFDaC5w3.js";
3
+ import { u as useMultisigInfo } from "./hooks-N_8StIGc.js";
4
+ import { c as createApiKit } from "./GraphAuthKitInner.context-DLfbf-o4.js";
5
5
  async function getSafeTransaction(safeTxHash, network, safeApiKey) {
6
6
  const apiKit = await createApiKit(network, safeApiKey);
7
7
  const txDetails = await apiKit.getTransaction(safeTxHash);
@@ -3,13 +3,14 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
4
4
  import { useConfig, WagmiProvider, useDisconnect, createConfig, createStorage, cookieStorage, cookieToInitialState } from "wagmi";
5
5
  import { injected, walletConnect, coinbaseWallet, mock } from "wagmi/connectors";
6
- import { K as useGraphAuthKitInnerContext, w as GraphAuthKitConnector, o as L2Chain, a as SafeSupportedNetworkNames, j as buildPublicClient, L as L1Chain, n as L1ChainTestnet, d as isValidSafe, S as SafeSupportedNetworks, P as GraphAuthKitInnerContextProvider, p as L2ChainTestnet, m as AUTH_STORAGE_KEY, x as chainIsSupportedChain, D as DefChain, l as buildClient, Q as GraphAuthKitInnerContext, T as defInnerState, R as RequiredInfuraKey, O as OptionalGatewayApiKey, q as SupportedClientChainId } from "./GraphAuthKitInner.context-DFDaC5w3.js";
6
+ import { K as useGraphAuthKitInnerContext, w as GraphAuthKitConnector, o as L2Chain, a as SafeSupportedNetworkNames, j as buildPublicClient, L as L1Chain, n as L1ChainTestnet, d as isValidSafe, S as SafeSupportedNetworks, P as GraphAuthKitInnerContextProvider, p as L2ChainTestnet, m as AUTH_STORAGE_KEY, x as chainIsSupportedChain, D as DefChain, l as buildClient, Q as GraphAuthKitInnerContext, T as defInnerState, R as RequiredInfuraKey, O as OptionalGatewayApiKey, q as SupportedClientChainId } from "./GraphAuthKitInner.context-DLfbf-o4.js";
7
7
  import { useState, useReducer, useId, useEffect, createContext, useContext } from "react";
8
8
  import { Icon, ExperimentalModal, ExperimentalButton, Alert, Link, ExperimentalLoadingIndicator, ExperimentalSelect, ExperimentalInput, Divider, List } from "@graphprotocol/gds";
9
9
  import { addrShortener } from "@graphprotocol/common";
10
- import { isAddress } from "viem";
10
+ import { getAddress, isAddress } from "viem";
11
11
  import { NetworkIcon } from "@graphprotocol/go";
12
12
  import { z } from "zod";
13
+ import "@safe-global/api-kit";
13
14
  import { buildEnsResolver } from "@graphprotocol/ens";
14
15
  import { generatePrivateKey, privateKeyToAccount } from "viem/accounts";
15
16
  function usePrimaryConnectOptions() {
@@ -64,11 +65,11 @@ function useMultisigConnectOptions() {
64
65
  installed: curr.type === injected.type,
65
66
  Image: correctConnectOptionIcon(curr),
66
67
  async onConnect() {
67
- var _a, _b;
68
+ var _a;
68
69
  void ctx._connectMultisig({
69
70
  connector: curr,
70
- address: ((_a = ctx._enteredMultisigInfo) == null ? void 0 : _a.address) || "0x",
71
- network: ((_b = ctx._enteredMultisigInfo) == null ? void 0 : _b.network) || L2Chain.id
71
+ address: getAddress(ctx._enteredMultisigInfo.address),
72
+ network: ((_a = ctx._enteredMultisigInfo) == null ? void 0 : _a.network) || L2Chain.id
72
73
  });
73
74
  }
74
75
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-auth-kit",
3
3
  "private": false,
4
- "version": "7.9.0",
4
+ "version": "7.10.0",
5
5
  "description": "Wallet authentication connect kit in The Graph suite of applications",
6
6
  "author": "Edge & Node",
7
7
  "license": "UNLICENSED",
@@ -38,9 +38,9 @@
38
38
  "dependencies": {
39
39
  "@ensdomains/ensjs": "^4.0.2",
40
40
  "@ethersproject/abstract-signer": "^5.8.0",
41
- "@safe-global/api-kit": "^4.0.0",
42
- "@safe-global/protocol-kit": "^6.1.1",
43
- "@safe-global/types-kit": "^3.0.0",
41
+ "@safe-global/api-kit": "^5.0.3",
42
+ "@safe-global/protocol-kit": "^8.0.7",
43
+ "@safe-global/types-kit": "^4.0.1",
44
44
  "@wagmi/core": "^2.21.1",
45
45
  "tailwindcss": "^3.4.17",
46
46
  "zod": "^4.1.11"
@@ -54,10 +54,10 @@
54
54
  "theme-ui": ">=0.16",
55
55
  "viem": "^2.37",
56
56
  "wagmi": "^2.17",
57
+ "@graphprotocol/common": "^7.0.4",
57
58
  "@graphprotocol/ens": "^2.3.1",
58
- "@graphprotocol/go": "^10.5.4",
59
59
  "@graphprotocol/gds": "^6.9.3",
60
- "@graphprotocol/common": "^7.0.4"
60
+ "@graphprotocol/go": "^10.5.4"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@emotion/react": "^11.14",
@@ -74,12 +74,12 @@
74
74
  "ts-node": "^10.9.2",
75
75
  "viem": "^2.37.8",
76
76
  "wagmi": "^2.17.2",
77
+ "@graphprotocol/common": "^7.0.4",
77
78
  "@graphprotocol/ens": "^2.3.1",
78
- "@graphprotocol/go": "^10.5.4",
79
79
  "@graphprotocol/gds": "^6.9.3",
80
- "@graphprotocol/common": "^7.0.4",
81
- "@graphprotocol/test-utils": "^2.1.0",
82
- "@graphprotocol/jsx": "^1.1.0"
80
+ "@graphprotocol/go": "^10.5.4",
81
+ "@graphprotocol/jsx": "^1.1.0",
82
+ "@graphprotocol/test-utils": "^2.1.0"
83
83
  },
84
84
  "scripts": {
85
85
  "build": "vite build",