@permissionless/wagmi 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +102 -0
- package/_cjs/hooks/useWaitForTransactionReceipt.js +6 -7
- package/_cjs/hooks/useWaitForTransactionReceipt.js.map +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/observe.js +2 -2
- package/_cjs/utils/observe.js.map +1 -1
- package/_esm/index.js.map +1 -1
- package/_types/context.d.ts +0 -1
- package/_types/context.d.ts.map +1 -1
- package/_types/hooks/useSendTransaction.d.ts +1 -15
- package/_types/hooks/useSendTransaction.d.ts.map +1 -1
- package/_types/hooks/useWaitForTransactionReceipt.d.ts +14 -23
- package/_types/hooks/useWaitForTransactionReceipt.d.ts.map +1 -1
- package/_types/index.d.ts +2 -2
- package/_types/index.d.ts.map +1 -1
- package/index.ts +10 -2
- package/package.json +8 -2
package/CHANGELOG.md
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
showOutline: false
|
|
3
|
+
content:
|
|
4
|
+
width: 100%
|
|
5
|
+
description: Build with ERC-4337 smart accounts, bundlers, paymasters, and user operations
|
|
6
|
+
title: permissionless.js
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<h1 className='vocs_HomePage_title'>@permissionless/wagmi</h1>
|
|
10
|
+
Enable gas sponsorship and transaction batching for your app with just a couple lines of cod.
|
|
11
|
+
<br />
|
|
12
|
+
<br />
|
|
13
|
+
permissionless/wagmi is a TypeScript library built on top of permissionless.js
|
|
14
|
+
and wagmi for quickly enabling support for EIP-5792 features on your app,
|
|
15
|
+
including gas sponsorship and transaction batching, with just a couple lines of
|
|
16
|
+
code. We built @permissionless/wagmi to allow app developers to support the
|
|
17
|
+
features of new smart accounts such as Coinbase Smart Wallet without any of the
|
|
18
|
+
complexity.
|
|
19
|
+
|
|
20
|
+
<article className="vocs_Content max-w-4xl mt-[-80px] mx-auto">
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
|
|
24
|
+
# Overview
|
|
25
|
+
|
|
26
|
+
```tsx [main.tsx]
|
|
27
|
+
import { PermissionlessProvider } from "@permissionless/wagmi"; // [!code ++] // [!code focus]
|
|
28
|
+
|
|
29
|
+
function Main() {
|
|
30
|
+
return (
|
|
31
|
+
<WagmiProvider config={config}>
|
|
32
|
+
<QueryClientProvider client={queryClient}>
|
|
33
|
+
<PermissionlessProvider // [!code ++] // [!code focus]
|
|
34
|
+
capabilities={capabilities} // [!code ++] // [!code focus]
|
|
35
|
+
>
|
|
36
|
+
// [!code ++] // [!code focus]
|
|
37
|
+
{/** ... */}
|
|
38
|
+
</PermissionlessProvider>{" "}
|
|
39
|
+
// [!code ++] // [!code focus]
|
|
40
|
+
</QueryClientProvider>
|
|
41
|
+
</WagmiProvider>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```tsx [app.tsx]
|
|
47
|
+
import { useSendTransaction, useWaitForTransactionReceipt } from "wagmi" // [!code --] // [!code focus]
|
|
48
|
+
import { // [!code ++] // [!code focus]
|
|
49
|
+
useSendTransaction, // [!code ++] // [!code focus]
|
|
50
|
+
useWaitForTransactionReceipt // [!code ++] // [!code focus]
|
|
51
|
+
} from "@permissionless/wagmi" // [!code ++] // [!code focus]
|
|
52
|
+
|
|
53
|
+
function App() {
|
|
54
|
+
const {
|
|
55
|
+
sendTransaction, // [!code focus]
|
|
56
|
+
data: transactionReference,
|
|
57
|
+
isPending
|
|
58
|
+
} = useSendTransaction() // [!code focus]
|
|
59
|
+
|
|
60
|
+
const { data: receipt, isPending: isReceiptPending } = // [!code focus]
|
|
61
|
+
useWaitForTransactionReceipt({ // [!code focus]
|
|
62
|
+
hash: "0x1234" // [!code --] // [!code focus]
|
|
63
|
+
id: transactionReference // [!code ++] // [!code focus]
|
|
64
|
+
}) // [!code focus]
|
|
65
|
+
|
|
66
|
+
const sendTransactionCallback = useCallback(async () => {
|
|
67
|
+
console.log("Sending transaction...")
|
|
68
|
+
sendTransaction({ // [!code focus]
|
|
69
|
+
to: "0xd8da6bf26964af9d7eed9e03e53415d37aa96045", // [!code focus]
|
|
70
|
+
data: "0x1234" // [!code focus]
|
|
71
|
+
}) // [!code focus]
|
|
72
|
+
}, [sendTransaction])
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
And that's it!
|
|
78
|
+
|
|
79
|
+
# Features
|
|
80
|
+
|
|
81
|
+
- **ERC-7677 Paymaster service**: Makes it easier to interact with an external
|
|
82
|
+
smart account that offers support.
|
|
83
|
+
- **Sending multiple transactions**: Makes it easier to send multiple
|
|
84
|
+
transactions from an external smart account.
|
|
85
|
+
- **Built on & for wagmi**: `@permissionless/wagmi` is designed to be a thin
|
|
86
|
+
wrapper around wagmi, maintaining the same style and overall feel wagmi
|
|
87
|
+
provides.
|
|
88
|
+
- and a lot more coming soon...
|
|
89
|
+
|
|
90
|
+
# Source Code
|
|
91
|
+
|
|
92
|
+
The source code for `@permissionless/wagmi` is available on
|
|
93
|
+
[GitHub](https://github.com/pimlicolabs/permissionless.js)
|
|
94
|
+
|
|
95
|
+
`@permissionless/wagmi` is distributed under an MIT License.
|
|
96
|
+
|
|
97
|
+
We welcome contributions from the community. If you would like to contribute,
|
|
98
|
+
please open an issue or a pull request.
|
|
99
|
+
|
|
100
|
+
Feel free to ask any questions in our [Telegram group](https://t.me/pimlicoHQ)
|
|
101
|
+
|
|
102
|
+
</article>
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.waitForTransactionReceiptQueryKey = waitForTransactionReceiptQueryKey;
|
|
5
|
+
exports.filterQueryOptions = filterQueryOptions;
|
|
6
|
+
exports.getCallsStatusQueryKey = getCallsStatusQueryKey;
|
|
7
|
+
exports.waitForCallsStatus = waitForCallsStatus;
|
|
8
|
+
exports.waitForTransactionReceiptQueryOptions = waitForTransactionReceiptQueryOptions;
|
|
9
|
+
exports.useWaitForTransactionReceipt = useWaitForTransactionReceipt;
|
|
5
10
|
const core_1 = require("@wagmi/core");
|
|
6
11
|
const core_2 = require("@wagmi/core");
|
|
7
12
|
const viem_1 = require("viem");
|
|
@@ -16,16 +21,13 @@ function waitForTransactionReceiptQueryKey(options = {}) {
|
|
|
16
21
|
const { ...rest } = options;
|
|
17
22
|
return ["waitForTransactionReceipt", filterQueryOptions(rest)];
|
|
18
23
|
}
|
|
19
|
-
exports.waitForTransactionReceiptQueryKey = waitForTransactionReceiptQueryKey;
|
|
20
24
|
function filterQueryOptions(options) {
|
|
21
25
|
const { _defaulted, behavior, gcTime, initialData, initialDataUpdatedAt, maxPages, meta, networkMode, queryFn, queryHash, queryKey, queryKeyHashFn, retry, retryDelay, structuralSharing, getPreviousPageParam, getNextPageParam, initialPageParam, _optimisticResults, enabled, notifyOnChangeProps, placeholderData, refetchInterval, refetchIntervalInBackground, refetchOnMount, refetchOnReconnect, refetchOnWindowFocus, retryOnMount, select, staleTime, suspense, throwOnError, config, connector, query, ...rest } = options;
|
|
22
26
|
return rest;
|
|
23
27
|
}
|
|
24
|
-
exports.filterQueryOptions = filterQueryOptions;
|
|
25
28
|
function getCallsStatusQueryKey(options) {
|
|
26
29
|
return ["callsStatus", filterQueryOptions(options)];
|
|
27
30
|
}
|
|
28
|
-
exports.getCallsStatusQueryKey = getCallsStatusQueryKey;
|
|
29
31
|
async function waitForCallsStatus(config, parameters) {
|
|
30
32
|
const { timeout = 0, id, pollingInterval, retryCount = 6, confirmations = 1 } = parameters;
|
|
31
33
|
const client = await (0, core_1.getConnectorClient)(config, {});
|
|
@@ -114,7 +116,6 @@ async function waitForCallsStatus(config, parameters) {
|
|
|
114
116
|
});
|
|
115
117
|
});
|
|
116
118
|
}
|
|
117
|
-
exports.waitForCallsStatus = waitForCallsStatus;
|
|
118
119
|
function waitForTransactionReceiptQueryOptions(config, options) {
|
|
119
120
|
return {
|
|
120
121
|
async queryFn({ queryKey }) {
|
|
@@ -146,7 +147,6 @@ function waitForTransactionReceiptQueryOptions(config, options) {
|
|
|
146
147
|
}
|
|
147
148
|
};
|
|
148
149
|
}
|
|
149
|
-
exports.waitForTransactionReceiptQueryOptions = waitForTransactionReceiptQueryOptions;
|
|
150
150
|
function useWaitForTransactionReceipt(parameters = {}) {
|
|
151
151
|
const { query = {} } = parameters;
|
|
152
152
|
const { capabilities } = (0, useAvailableCapabilities_1.useAvailableCapabilities)();
|
|
@@ -164,5 +164,4 @@ function useWaitForTransactionReceipt(parameters = {}) {
|
|
|
164
164
|
enabled
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
exports.useWaitForTransactionReceipt = useWaitForTransactionReceipt;
|
|
168
167
|
//# sourceMappingURL=useWaitForTransactionReceipt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWaitForTransactionReceipt.js","sourceRoot":"","sources":["../../hooks/useWaitForTransactionReceipt.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA
|
|
1
|
+
{"version":3,"file":"useWaitForTransactionReceipt.js","sourceRoot":"","sources":["../../hooks/useWaitForTransactionReceipt.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;;AAwDZ,8EAcC;AAED,gDAuBC;AA2CD,wDAIC;AAED,gDAwKC;AAED,sFAkDC;AAmCD,oEA+BC;AAvaD,sCAOoB;AACpB,sCAAwD;AAQxD,+BAQa;AACb,0CAAsE;AACtE,oDAI0B;AAC1B,sCAAsC;AACtC,iCAA6C;AAC7C,uCAMoB;AACpB,8CAA0C;AAC1C,yEAAqE;AAQrE,SAAgB,iCAAiC,CAI7C,UAMI,EAAE;IAEN,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAA;IAC3B,OAAO,CAAC,2BAA2B,EAAE,kBAAkB,C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CAAC,CAAA;YACF,OAAO,MAAM,CAAA;QACjB,CAAC;QACD,QAAQ,EAAE,iCAAiC,CAAC,OAAO,CAAC;QACpD,KAAK,CAAC,YAAY,EAAE,KAAK;YACrB,IAAI,KAAK,YAAY,iCAA0B;gBAAE,OAAO,KAAK,CAAA;YAC7D,OAAO,YAAY,GAAG,CAAC,CAAA;QAC3B,CAAC;KAMJ,CAAA;AACL,CAAC;AAmCD,SAAgB,4BAA4B,CAMxC,aAII,EAAE;IAEN,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,UAAU,CAAA;IACjC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,mDAAwB,GAAE,CAAA;IAEnD,MAAM,MAAM,GAAG,IAAA,iBAAS,EAAC,UAAU,CAAC,CAAA;IACpC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,EAAE,MAAM,EAAE,CAAC,CAAA;IAEtC,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAA;IAEjE,MAAM,OAAO,GAAG,qCAAqC,CAAC,MAAM,EAAE;QAC1D,GAAG,UAAU;QACb,OAAO,EAAE,UAAU,CAAC,OAAO,IAAI,OAAO;QACtC,YAAY;KACf,CAAC,CAAA;IAEF,OAAO,IAAA,gBAAQ,EAAC;QACZ,GAAG,KAAK;QACR,GAAG,OAAO;QACV,OAAO;KACV,CAAwE,CAAA;AAC7E,CAAC"}
|
package/_cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,qCAGkB;AAFd,iHAAA,sBAAsB,OAAA;AAI1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,qCAGkB;AAFd,iHAAA,sBAAsB,OAAA;AAI1B,iEAImC;AAH/B,wHAAA,kBAAkB,OAAA;AAItB,qFAI6C;AAHzC,4IAAA,4BAA4B,OAAA"}
|
package/_cjs/utils/observe.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.cleanupCache = exports.listenersCache = void 0;
|
|
4
|
+
exports.observe = observe;
|
|
4
5
|
exports.listenersCache = new Map();
|
|
5
6
|
exports.cleanupCache = new Map();
|
|
6
7
|
let callbackCount = 0;
|
|
@@ -39,5 +40,4 @@ function observe(observerId, callbacks, fn) {
|
|
|
39
40
|
exports.cleanupCache.set(observerId, cleanup);
|
|
40
41
|
return unwatch;
|
|
41
42
|
}
|
|
42
|
-
exports.observe = observe;
|
|
43
43
|
//# sourceMappingURL=observe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observe.js","sourceRoot":"","sources":["../../utils/observe.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"observe.js","sourceRoot":"","sources":["../../utils/observe.ts"],"names":[],"mappings":";;;AA6BA,0BA8CC;AAjEY,QAAA,cAAc,GAAiB,IAAI,GAAG,EAGhD,CAAA;AAEU,QAAA,YAAY,GAAiB,IAAI,GAAG,EAAsB,CAAA;AAOvE,IAAI,aAAa,GAAG,CAAC,CAAA;AAOrB,SAAgB,OAAO,CACnB,UAAkB,EAClB,SAAoB,EACpB,EAA2B;IAE3B,MAAM,UAAU,GAAG,EAAE,aAAa,CAAA;IAElC,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,sBAAc,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA;IAE/D,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;QAChC,sBAAc,CAAC,GAAG,CACd,UAAU,EACV,SAAS,CAAC,MAAM,CAAC,CAAC,EAAO,EAAE,EAAE,CAAC,EAAE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sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EAEzB,MAAM,WAAW,CAAA;AAElB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EAEzB,MAAM,WAAW,CAAA;AAElB,OAAO,EACH,kBAAkB,EAGrB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACH,4BAA4B,EAG/B,MAAM,sCAAsC,CAAA"}
|
package/_types/context.d.ts
CHANGED
package/_types/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,MAAM,CAAA;AAEzE,eAAO,MAAM,qBAAqB;kBAChB,yBAAyB,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC;EAGrF,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACtC,YAAY,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC,CAAA;CACtF,CAAA;AAED,eAAO,MAAM,sBAAsB,eACnB,KAAK,CAAC,iBAAiB,CAAC,2BAA2B,CAAC;kBAVlD,yBAAyB,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC;GAiBtF,CAAA"}
|
|
@@ -16,19 +16,5 @@ export type ConfigParameter<config extends Config = Config> = {
|
|
|
16
16
|
export type UseSendTransactionParameters<config extends Config = ResolvedRegister["config"], context = unknown> = Prettify<ConfigParameter<config> & {
|
|
17
17
|
mutation?: UseMutationParameters<SendTransactionData, SendTransactionErrorType | SendCallsErrorType, SendTransactionVariables<config, config["chains"][number]["id"]>, context> | undefined;
|
|
18
18
|
}>;
|
|
19
|
-
export declare const useSendTransaction: <config extends Config = Config, context = unknown>(parameters?:
|
|
20
|
-
config?: Config | config | undefined;
|
|
21
|
-
mutation?: {
|
|
22
|
-
meta?: Record<string, unknown> | undefined;
|
|
23
|
-
onMutate?: ((variables: SendTransactionVariables<config, config["chains"][number]["id"]> extends infer T ? { [key in keyof T]: SendTransactionVariables<config, config["chains"][number]["id"]>[key]; } : never) => context | Promise<context | undefined> | undefined) | undefined;
|
|
24
|
-
onSuccess?: ((data: string, variables: SendTransactionVariables<config, config["chains"][number]["id"]> extends infer T ? { [key in keyof T]: SendTransactionVariables<config, config["chains"][number]["id"]>[key]; } : never, context: context) => unknown) | undefined;
|
|
25
|
-
onError?: ((error: import("viem").ChainDisconnectedErrorType | import("viem/_types/utils/promise/createBatchScheduler").CreateBatchSchedulerErrorType | import("viem").HttpRequestErrorType | import("viem").InternalRpcErrorType | import("viem").InvalidInputRpcErrorType | import("viem").InvalidParamsRpcErrorType | import("viem").InvalidRequestRpcErrorType | import("viem/_types/errors/utils").ErrorType | import("viem").JsonRpcVersionUnsupportedErrorType | import("viem").LimitExceededRpcErrorType | import("viem").MethodNotFoundRpcErrorType | import("viem").MethodNotSupportedRpcErrorType | import("viem").ParseRpcErrorType | import("viem").ProviderDisconnectedErrorType | import("viem").ResourceNotFoundRpcErrorType | import("viem").ResourceUnavailableRpcErrorType | import("viem").RpcErrorType | import("viem").RpcRequestErrorType | import("viem/_types/errors/rpc").SwitchChainErrorType | import("viem").TimeoutErrorType | import("viem").TransactionRejectedRpcErrorType | import("viem").UnauthorizedProviderErrorType | import("viem").UnknownRpcErrorType | import("viem").UnsupportedProviderMethodErrorType | import("viem").UserRejectedRequestErrorType | import("viem").WebSocketRequestErrorType | import("viem").WithRetryErrorType | import("viem/accounts").ParseAccountErrorType | import("viem/utils").GetTransactionErrorReturnType<import("viem").ChainDisconnectedErrorType | import("viem/_types/utils/promise/createBatchScheduler").CreateBatchSchedulerErrorType | import("viem").HttpRequestErrorType | import("viem").InternalRpcErrorType | import("viem").InvalidInputRpcErrorType | import("viem").InvalidParamsRpcErrorType | import("viem").InvalidRequestRpcErrorType | import("viem/_types/errors/utils").ErrorType | import("viem").JsonRpcVersionUnsupportedErrorType | import("viem").LimitExceededRpcErrorType | import("viem").MethodNotFoundRpcErrorType | import("viem").MethodNotSupportedRpcErrorType | import("viem").ParseRpcErrorType | import("viem").ProviderDisconnectedErrorType | import("viem").ResourceNotFoundRpcErrorType | import("viem").ResourceUnavailableRpcErrorType | import("viem").RpcErrorType | import("viem").RpcRequestErrorType | import("viem/_types/errors/rpc").SwitchChainErrorType | import("viem").TimeoutErrorType | import("viem").TransactionRejectedRpcErrorType | import("viem").UnauthorizedProviderErrorType | import("viem").UnknownRpcErrorType | import("viem").UnsupportedProviderMethodErrorType | import("viem").UserRejectedRequestErrorType | import("viem").WebSocketRequestErrorType | import("viem").WithRetryErrorType | import("viem/accounts").ParseAccountErrorType | import("viem/_types/errors/account").AccountNotFoundErrorType | import("viem/_types/errors/account").AccountTypeNotSupportedErrorType | import("viem").ChainNotFoundErrorType | import("viem").ChainMismatchErrorType | import("viem").InvalidAddressErrorType | import("viem").FeeConflictErrorType | import("viem").FeeCapTooHighErrorType | import("viem").TipAboveFeeCapErrorType | import("viem").SizeOverflowErrorType | import("viem").IsHexErrorType | import("viem").BlockNotFoundErrorType | import("viem").IntegerOutOfRangeErrorType | import("viem").SizeExceedsPaddingSizeErrorType | import("viem").ConcatHexErrorType | import("viem/_types/errors/cursor").PositionOutOfBoundsErrorType | import("viem/_types/errors/cursor").NegativeOffsetError | import("viem/_types/errors/cursor").NegativeOffsetErrorType | import("viem/_types/errors/cursor").RecursiveReadLimitExceededErrorType | import("viem").RecoverAddressErrorType | import("viem").EstimateGasErrorType | import("viem").BaseFeeScalarErrorType | import("viem").Eip1559FeesNotSupportedErrorType>, variables: SendTransactionVariables<config, config["chains"][number]["id"]> extends infer T ? { [key in keyof T]: SendTransactionVariables<config, config["chains"][number]["id"]>[key]; } : never, context: context | undefined) => unknown) | undefined;
|
|
26
|
-
onSettled?: ((data: string | undefined, error: import("viem").ChainDisconnectedErrorType | import("viem/_types/utils/promise/createBatchScheduler").CreateBatchSchedulerErrorType | import("viem").HttpRequestErrorType | import("viem").InternalRpcErrorType | import("viem").InvalidInputRpcErrorType | import("viem").InvalidParamsRpcErrorType | import("viem").InvalidRequestRpcErrorType | import("viem/_types/errors/utils").ErrorType | import("viem").JsonRpcVersionUnsupportedErrorType | import("viem").LimitExceededRpcErrorType | import("viem").MethodNotFoundRpcErrorType | import("viem").MethodNotSupportedRpcErrorType | import("viem").ParseRpcErrorType | import("viem").ProviderDisconnectedErrorType | import("viem").ResourceNotFoundRpcErrorType | import("viem").ResourceUnavailableRpcErrorType | import("viem").RpcErrorType | import("viem").RpcRequestErrorType | import("viem/_types/errors/rpc").SwitchChainErrorType | import("viem").TimeoutErrorType | import("viem").TransactionRejectedRpcErrorType | import("viem").UnauthorizedProviderErrorType | import("viem").UnknownRpcErrorType | import("viem").UnsupportedProviderMethodErrorType | import("viem").UserRejectedRequestErrorType | import("viem").WebSocketRequestErrorType | import("viem").WithRetryErrorType | import("viem/accounts").ParseAccountErrorType | import("viem/utils").GetTransactionErrorReturnType<import("viem").ChainDisconnectedErrorType | import("viem/_types/utils/promise/createBatchScheduler").CreateBatchSchedulerErrorType | import("viem").HttpRequestErrorType | import("viem").InternalRpcErrorType | import("viem").InvalidInputRpcErrorType | import("viem").InvalidParamsRpcErrorType | import("viem").InvalidRequestRpcErrorType | import("viem/_types/errors/utils").ErrorType | import("viem").JsonRpcVersionUnsupportedErrorType | import("viem").LimitExceededRpcErrorType | import("viem").MethodNotFoundRpcErrorType | import("viem").MethodNotSupportedRpcErrorType | import("viem").ParseRpcErrorType | import("viem").ProviderDisconnectedErrorType | import("viem").ResourceNotFoundRpcErrorType | import("viem").ResourceUnavailableRpcErrorType | import("viem").RpcErrorType | import("viem").RpcRequestErrorType | import("viem/_types/errors/rpc").SwitchChainErrorType | import("viem").TimeoutErrorType | import("viem").TransactionRejectedRpcErrorType | import("viem").UnauthorizedProviderErrorType | import("viem").UnknownRpcErrorType | import("viem").UnsupportedProviderMethodErrorType | import("viem").UserRejectedRequestErrorType | import("viem").WebSocketRequestErrorType | import("viem").WithRetryErrorType | import("viem/accounts").ParseAccountErrorType | import("viem/_types/errors/account").AccountNotFoundErrorType | import("viem/_types/errors/account").AccountTypeNotSupportedErrorType | import("viem").ChainNotFoundErrorType | import("viem").ChainMismatchErrorType | import("viem").InvalidAddressErrorType | import("viem").FeeConflictErrorType | import("viem").FeeCapTooHighErrorType | import("viem").TipAboveFeeCapErrorType | import("viem").SizeOverflowErrorType | import("viem").IsHexErrorType | import("viem").BlockNotFoundErrorType | import("viem").IntegerOutOfRangeErrorType | import("viem").SizeExceedsPaddingSizeErrorType | import("viem").ConcatHexErrorType | import("viem/_types/errors/cursor").PositionOutOfBoundsErrorType | import("viem/_types/errors/cursor").NegativeOffsetError | import("viem/_types/errors/cursor").NegativeOffsetErrorType | import("viem/_types/errors/cursor").RecursiveReadLimitExceededErrorType | import("viem").RecoverAddressErrorType | import("viem").EstimateGasErrorType | import("viem").BaseFeeScalarErrorType | import("viem").Eip1559FeesNotSupportedErrorType> | null, variables: SendTransactionVariables<config, config["chains"][number]["id"]> extends infer T ? { [key in keyof T]: SendTransactionVariables<config, config["chains"][number]["id"]>[key]; } : never, context: context | undefined) => unknown) | undefined;
|
|
27
|
-
retry?: import("@tanstack/query-core/build/legacy/hydration-BZ2M_xzi").bo<import("viem").ChainDisconnectedErrorType | import("viem/_types/utils/promise/createBatchScheduler").CreateBatchSchedulerErrorType | import("viem").HttpRequestErrorType | import("viem").InternalRpcErrorType | import("viem").InvalidInputRpcErrorType | import("viem").InvalidParamsRpcErrorType | import("viem").InvalidRequestRpcErrorType | import("viem/_types/errors/utils").ErrorType | import("viem").JsonRpcVersionUnsupportedErrorType | import("viem").LimitExceededRpcErrorType | import("viem").MethodNotFoundRpcErrorType | import("viem").MethodNotSupportedRpcErrorType | import("viem").ParseRpcErrorType | import("viem").ProviderDisconnectedErrorType | import("viem").ResourceNotFoundRpcErrorType | import("viem").ResourceUnavailableRpcErrorType | import("viem").RpcErrorType | import("viem").RpcRequestErrorType | import("viem/_types/errors/rpc").SwitchChainErrorType | import("viem").TimeoutErrorType | import("viem").TransactionRejectedRpcErrorType | import("viem").UnauthorizedProviderErrorType | import("viem").UnknownRpcErrorType | import("viem").UnsupportedProviderMethodErrorType | import("viem").UserRejectedRequestErrorType | import("viem").WebSocketRequestErrorType | import("viem").WithRetryErrorType | import("viem/accounts").ParseAccountErrorType | import("viem/utils").GetTransactionErrorReturnType<import("viem").ChainDisconnectedErrorType | import("viem/_types/utils/promise/createBatchScheduler").CreateBatchSchedulerErrorType | import("viem").HttpRequestErrorType | import("viem").InternalRpcErrorType | import("viem").InvalidInputRpcErrorType | import("viem").InvalidParamsRpcErrorType | import("viem").InvalidRequestRpcErrorType | import("viem/_types/errors/utils").ErrorType | import("viem").JsonRpcVersionUnsupportedErrorType | import("viem").LimitExceededRpcErrorType | import("viem").MethodNotFoundRpcErrorType | import("viem").MethodNotSupportedRpcErrorType | import("viem").ParseRpcErrorType | import("viem").ProviderDisconnectedErrorType | import("viem").ResourceNotFoundRpcErrorType | import("viem").ResourceUnavailableRpcErrorType | import("viem").RpcErrorType | import("viem").RpcRequestErrorType | import("viem/_types/errors/rpc").SwitchChainErrorType | import("viem").TimeoutErrorType | import("viem").TransactionRejectedRpcErrorType | import("viem").UnauthorizedProviderErrorType | import("viem").UnknownRpcErrorType | import("viem").UnsupportedProviderMethodErrorType | import("viem").UserRejectedRequestErrorType | import("viem").WebSocketRequestErrorType | import("viem").WithRetryErrorType | import("viem/accounts").ParseAccountErrorType | import("viem/_types/errors/account").AccountNotFoundErrorType | import("viem/_types/errors/account").AccountTypeNotSupportedErrorType | import("viem").ChainNotFoundErrorType | import("viem").ChainMismatchErrorType | import("viem").InvalidAddressErrorType | import("viem").FeeConflictErrorType | import("viem").FeeCapTooHighErrorType | import("viem").TipAboveFeeCapErrorType | import("viem").SizeOverflowErrorType | import("viem").IsHexErrorType | import("viem").BlockNotFoundErrorType | import("viem").IntegerOutOfRangeErrorType | import("viem").SizeExceedsPaddingSizeErrorType | import("viem").ConcatHexErrorType | import("viem/_types/errors/cursor").PositionOutOfBoundsErrorType | import("viem/_types/errors/cursor").NegativeOffsetError | import("viem/_types/errors/cursor").NegativeOffsetErrorType | import("viem/_types/errors/cursor").RecursiveReadLimitExceededErrorType | import("viem").RecoverAddressErrorType | import("viem").EstimateGasErrorType | import("viem").BaseFeeScalarErrorType | import("viem").Eip1559FeesNotSupportedErrorType>> | undefined;
|
|
28
|
-
retryDelay?: import("@tanstack/query-core/build/legacy/hydration-BZ2M_xzi").bp<import("viem").ChainDisconnectedErrorType | import("viem/_types/utils/promise/createBatchScheduler").CreateBatchSchedulerErrorType | import("viem").HttpRequestErrorType | import("viem").InternalRpcErrorType | import("viem").InvalidInputRpcErrorType | import("viem").InvalidParamsRpcErrorType | import("viem").InvalidRequestRpcErrorType | import("viem/_types/errors/utils").ErrorType | import("viem").JsonRpcVersionUnsupportedErrorType | import("viem").LimitExceededRpcErrorType | import("viem").MethodNotFoundRpcErrorType | import("viem").MethodNotSupportedRpcErrorType | import("viem").ParseRpcErrorType | import("viem").ProviderDisconnectedErrorType | import("viem").ResourceNotFoundRpcErrorType | import("viem").ResourceUnavailableRpcErrorType | import("viem").RpcErrorType | import("viem").RpcRequestErrorType | import("viem/_types/errors/rpc").SwitchChainErrorType | import("viem").TimeoutErrorType | import("viem").TransactionRejectedRpcErrorType | import("viem").UnauthorizedProviderErrorType | import("viem").UnknownRpcErrorType | import("viem").UnsupportedProviderMethodErrorType | import("viem").UserRejectedRequestErrorType | import("viem").WebSocketRequestErrorType | import("viem").WithRetryErrorType | import("viem/accounts").ParseAccountErrorType | import("viem/utils").GetTransactionErrorReturnType<import("viem").ChainDisconnectedErrorType | import("viem/_types/utils/promise/createBatchScheduler").CreateBatchSchedulerErrorType | import("viem").HttpRequestErrorType | import("viem").InternalRpcErrorType | import("viem").InvalidInputRpcErrorType | import("viem").InvalidParamsRpcErrorType | import("viem").InvalidRequestRpcErrorType | import("viem/_types/errors/utils").ErrorType | import("viem").JsonRpcVersionUnsupportedErrorType | import("viem").LimitExceededRpcErrorType | import("viem").MethodNotFoundRpcErrorType | import("viem").MethodNotSupportedRpcErrorType | import("viem").ParseRpcErrorType | import("viem").ProviderDisconnectedErrorType | import("viem").ResourceNotFoundRpcErrorType | import("viem").ResourceUnavailableRpcErrorType | import("viem").RpcErrorType | import("viem").RpcRequestErrorType | import("viem/_types/errors/rpc").SwitchChainErrorType | import("viem").TimeoutErrorType | import("viem").TransactionRejectedRpcErrorType | import("viem").UnauthorizedProviderErrorType | import("viem").UnknownRpcErrorType | import("viem").UnsupportedProviderMethodErrorType | import("viem").UserRejectedRequestErrorType | import("viem").WebSocketRequestErrorType | import("viem").WithRetryErrorType | import("viem/accounts").ParseAccountErrorType | import("viem/_types/errors/account").AccountNotFoundErrorType | import("viem/_types/errors/account").AccountTypeNotSupportedErrorType | import("viem").ChainNotFoundErrorType | import("viem").ChainMismatchErrorType | import("viem").InvalidAddressErrorType | import("viem").FeeConflictErrorType | import("viem").FeeCapTooHighErrorType | import("viem").TipAboveFeeCapErrorType | import("viem").SizeOverflowErrorType | import("viem").IsHexErrorType | import("viem").BlockNotFoundErrorType | import("viem").IntegerOutOfRangeErrorType | import("viem").SizeExceedsPaddingSizeErrorType | import("viem").ConcatHexErrorType | import("viem/_types/errors/cursor").PositionOutOfBoundsErrorType | import("viem/_types/errors/cursor").NegativeOffsetError | import("viem/_types/errors/cursor").NegativeOffsetErrorType | import("viem/_types/errors/cursor").RecursiveReadLimitExceededErrorType | import("viem").RecoverAddressErrorType | import("viem").EstimateGasErrorType | import("viem").BaseFeeScalarErrorType | import("viem").Eip1559FeesNotSupportedErrorType>> | undefined;
|
|
29
|
-
networkMode?: import("@tanstack/react-query").NetworkMode | undefined;
|
|
30
|
-
gcTime?: number | undefined;
|
|
31
|
-
scope?: import("@tanstack/react-query").MutationScope | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
}) => UseSendTransactionReturnType<config, context>;
|
|
19
|
+
export declare const useSendTransaction: <config extends Config = Config, context = unknown>(parameters?: UseSendTransactionParameters<config, context>) => UseSendTransactionReturnType<config, context>;
|
|
34
20
|
//# sourceMappingURL=useSendTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSendTransaction.d.ts","sourceRoot":"","sources":["../../hooks/useSendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,aAAa,EAGrB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EACR,QAAQ,EACR,wBAAwB,EAG3B,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,gBAAgB,EAAa,MAAM,OAAO,CAAA;AACrE,OAAO,KAAK,EACR,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,aAAa,CAAA;AA4BpB,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAA;AAExC,MAAM,MAAM,qBAAqB,CAAC,MAAM,SAAS,MAAM,EAAE,OAAO,GAAG,OAAO,IAAI,CAC1E,OAAO,SAAS,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAE9C,SAAS,EAAE,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC,EACpD,OAAO,CAAC,EACF,QAAQ,CACJ,aAAa,CACT,mBAAmB,EACnB,wBAAwB,GAAG,kBAAkB,EAC7C,QAAQ,CAAC,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACnD,OAAO,CACV,CACJ,GACD,SAAS,KACd,IAAI,CAAA;AAET,MAAM,MAAM,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AkB,GAC3B,MAAM,SAAS,MAAM,WACrB,OAAO,yBAEK,4BAA4B,CAAC,MAAM,EAAE,OAAO,CAAC,KAC1D,4BAA4B,CAAC,MAAM,EAAE,OAAO,CAsB9C,CAAA"}
|
|
@@ -14,14 +14,11 @@ export declare function waitForTransactionReceiptQueryKey<config extends Config,
|
|
|
14
14
|
scopeKey?: string | undefined;
|
|
15
15
|
pollingInterval?: number | undefined;
|
|
16
16
|
chainId?: config["chains"][number]["id"] | (chainId extends config["chains"][number]["id"] ? chainId : undefined) | undefined;
|
|
17
|
-
retryDelay?:
|
|
18
|
-
count: number;
|
|
19
|
-
error: Error;
|
|
20
|
-
}) => number) | undefined;
|
|
17
|
+
retryDelay?: import("viem/_types/utils/promise/withRetry").WithRetryParameters["delay"] | undefined;
|
|
21
18
|
confirmations?: number | undefined;
|
|
22
|
-
retryCount?:
|
|
19
|
+
retryCount?: import("viem/_types/utils/promise/withRetry").WithRetryParameters["retryCount"] | undefined;
|
|
23
20
|
timeout?: number | undefined;
|
|
24
|
-
id?: string
|
|
21
|
+
id?: string;
|
|
25
22
|
capabilities?: WalletSendCallsParameters<WalletCapabilities>[number]["capabilities"];
|
|
26
23
|
}];
|
|
27
24
|
export declare function filterQueryOptions<type extends Record<string, unknown>>(options: type): type;
|
|
@@ -48,21 +45,18 @@ export declare function waitForTransactionReceiptQueryOptions<config extends Con
|
|
|
48
45
|
scopeKey?: string | undefined;
|
|
49
46
|
pollingInterval?: number | undefined;
|
|
50
47
|
chainId?: config["chains"][number]["id"] | (chainId extends config["chains"][number]["id"] ? chainId : undefined) | undefined;
|
|
51
|
-
retryDelay?:
|
|
52
|
-
count: number;
|
|
53
|
-
error: Error;
|
|
54
|
-
}) => number) | undefined;
|
|
48
|
+
retryDelay?: import("viem/_types/utils/promise/withRetry").WithRetryParameters["delay"] | undefined;
|
|
55
49
|
confirmations?: number | undefined;
|
|
56
|
-
retryCount?:
|
|
50
|
+
retryCount?: import("viem/_types/utils/promise/withRetry").WithRetryParameters["retryCount"] | undefined;
|
|
57
51
|
timeout?: number | undefined;
|
|
58
|
-
id?: string
|
|
59
|
-
capabilities?: WalletCapabilities
|
|
52
|
+
id?: string;
|
|
53
|
+
capabilities?: WalletSendCallsParameters<WalletCapabilities>[number]["capabilities"];
|
|
60
54
|
}];
|
|
61
55
|
signal: AbortSignal;
|
|
62
|
-
meta:
|
|
56
|
+
meta: import("@tanstack/react-query").QueryMeta | undefined;
|
|
63
57
|
pageParam?: unknown;
|
|
64
58
|
direction?: unknown;
|
|
65
|
-
}) => Promise<(import("@wagmi/core").SelectChains<config, config["chains"][number]["id"]> extends infer
|
|
59
|
+
}) => Promise<(import("@wagmi/core").SelectChains<config, config["chains"][number]["id"]> extends infer T_1 extends readonly import("viem").Chain[] ? { [key_1 in keyof T_1]: import("viem").ExtractChainFormatterReturnType<import("@wagmi/core/dist/types/types/utils").IsNarrowable<import("@wagmi/core").SelectChains<config, config["chains"][number]["id"]>[key_1], import("viem").Chain> extends true ? import("@wagmi/core").SelectChains<config, config["chains"][number]["id"]>[key_1] : undefined, "transactionReceipt", import("viem").TransactionReceipt> & {
|
|
66
60
|
chainId: import("@wagmi/core").SelectChains<config, config["chains"][number]["id"]>[key_1]["id"];
|
|
67
61
|
}; } : never)[number] extends infer T ? { [key in keyof T]: (import("@wagmi/core").SelectChains<config, config["chains"][number]["id"]> extends infer T_1 extends readonly import("viem").Chain[] ? { [key_1 in keyof T_1]: import("viem").ExtractChainFormatterReturnType<import("@wagmi/core/dist/types/types/utils").IsNarrowable<import("@wagmi/core").SelectChains<config, config["chains"][number]["id"]>[key_1], import("viem").Chain> extends true ? import("@wagmi/core").SelectChains<config, config["chains"][number]["id"]>[key_1] : undefined, "transactionReceipt", import("viem").TransactionReceipt> & {
|
|
68
62
|
chainId: import("@wagmi/core").SelectChains<config, config["chains"][number]["id"]>[key_1]["id"];
|
|
@@ -70,16 +64,13 @@ export declare function waitForTransactionReceiptQueryOptions<config extends Con
|
|
|
70
64
|
readonly queryKey: readonly ["waitForTransactionReceipt", {
|
|
71
65
|
scopeKey?: string | undefined;
|
|
72
66
|
pollingInterval?: number | undefined;
|
|
73
|
-
chainId?: config["chains"][number]["id"] | (config["chains"][number]["id"] extends infer
|
|
74
|
-
retryDelay?:
|
|
75
|
-
count: number;
|
|
76
|
-
error: Error;
|
|
77
|
-
}) => number) | undefined;
|
|
67
|
+
chainId?: config["chains"][number]["id"] | (config["chains"][number]["id"] extends infer T ? T extends config["chains"][number]["id"] ? T extends config["chains"][number]["id"] ? T : undefined : never : never) | undefined;
|
|
68
|
+
retryDelay?: import("viem/_types/utils/promise/withRetry").WithRetryParameters["delay"] | undefined;
|
|
78
69
|
confirmations?: number | undefined;
|
|
79
|
-
retryCount?:
|
|
70
|
+
retryCount?: import("viem/_types/utils/promise/withRetry").WithRetryParameters["retryCount"] | undefined;
|
|
80
71
|
timeout?: number | undefined;
|
|
81
|
-
id?: string
|
|
82
|
-
capabilities?: WalletCapabilities
|
|
72
|
+
id?: string;
|
|
73
|
+
capabilities?: WalletSendCallsParameters<WalletCapabilities>[number]["capabilities"];
|
|
83
74
|
}];
|
|
84
75
|
readonly retry: (failureCount: number, error: import("viem").ChainDisconnectedErrorType | import("viem/_types/utils/promise/createBatchScheduler").CreateBatchSchedulerErrorType | import("viem").HttpRequestErrorType | import("viem").InternalRpcErrorType | import("viem").InvalidInputRpcErrorType | import("viem").InvalidParamsRpcErrorType | import("viem").InvalidRequestRpcErrorType | import("viem/_types/errors/utils").ErrorType | import("viem").JsonRpcVersionUnsupportedErrorType | import("viem").LimitExceededRpcErrorType | import("viem").MethodNotFoundRpcErrorType | import("viem").MethodNotSupportedRpcErrorType | import("viem").ParseRpcErrorType | import("viem").ProviderDisconnectedErrorType | import("viem").ResourceNotFoundRpcErrorType | import("viem").ResourceUnavailableRpcErrorType | import("viem").RpcErrorType | import("viem").RpcRequestErrorType | import("viem/_types/errors/rpc").SwitchChainErrorType | import("viem").TimeoutErrorType | import("viem").TransactionRejectedRpcErrorType | import("viem").UnauthorizedProviderErrorType | import("viem").UnknownRpcErrorType | import("viem").UnsupportedProviderMethodErrorType | import("viem").UserRejectedRequestErrorType | import("viem").WebSocketRequestErrorType | import("viem").WithRetryErrorType | import("viem").BlockNotFoundErrorType | import("viem").IntegerOutOfRangeErrorType | import("viem").SizeExceedsPaddingSizeErrorType | import("viem/_types/utils/observe").ObserveErrorType | import("viem").TransactionReceiptNotFoundErrorType | import("viem/_types/utils/poll").PollErrorType) => boolean;
|
|
85
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWaitForTransactionReceipt.d.ts","sourceRoot":"","sources":["../../hooks/useWaitForTransactionReceipt.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACR,YAAY,EACZ,QAAQ,EAEX,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACH,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAG3C,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EACR,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EAC5B,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,EAEH,KAAK,QAAQ,EAEb,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAGjC,MAAM,MAAM,CAAA;AAEb,OAAO,EAEH,KAAK,wBAAwB,EAEhC,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EAE5C,MAAM,aAAa,CAAA;AAGpB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D,MAAM,MAAM,iCAAiC,CACzC,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,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gCAAgC,CAAC,MAAM,EAAE,OAAO,CAAC,EACjD,MAAM,GAAG,YAAY,CACxB,GAAG;IACA,EAAE,CAAC,EAAE,MAAM,CAAA;CACd,GAAG,eAAe,CAAC,MAAM,CAAC,GACvB,cAAc,CACV,oCAAoC,CAAC,MAAM,EAAE,OAAO,CAAC,EACrD,kCAAkC,EAClC,UAAU,EACV,iCAAiC,CAAC,MAAM,EAAE,OAAO,CAAC,CACrD,CACR,CAAA;AAED,wBAAgB,4BAA4B,CACxC,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,OAAO,SACH,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EACnE,UAAU,GAAG,6BAA6B,CAAC,MAAM,EAAE,OAAO,CAAC,EAE3D,UAAU,GAAE,sCAAsC,CAC9C,MAAM,EACN,OAAO,EACP,UAAU,CACR,GACP,sCAAsC,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAoBrE"}
|
package/_types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PermissionlessProvider, type PermissionlessProviderProps } from "./context";
|
|
2
|
-
export { useSendTransaction } from "./hooks/useSendTransaction";
|
|
3
|
-
export { useWaitForTransactionReceipt } from "./hooks/useWaitForTransactionReceipt";
|
|
2
|
+
export { useSendTransaction, type UseSendTransactionParameters, type UseSendTransactionReturnType } from "./hooks/useSendTransaction";
|
|
3
|
+
export { useWaitForTransactionReceipt, type UseWaitForTransactionReceiptParameters, type UseWaitForTransactionReceiptReturnType } from "./hooks/useWaitForTransactionReceipt";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/_types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EACtB,KAAK,2BAA2B,EACnC,MAAM,WAAW,CAAA;AAElB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EACtB,KAAK,2BAA2B,EACnC,MAAM,WAAW,CAAA;AAElB,OAAO,EACH,kBAAkB,EAClB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACpC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACH,4BAA4B,EAC5B,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC9C,MAAM,sCAAsC,CAAA"}
|
package/index.ts
CHANGED
|
@@ -3,5 +3,13 @@ export {
|
|
|
3
3
|
type PermissionlessProviderProps
|
|
4
4
|
} from "./context"
|
|
5
5
|
|
|
6
|
-
export {
|
|
7
|
-
|
|
6
|
+
export {
|
|
7
|
+
useSendTransaction,
|
|
8
|
+
type UseSendTransactionParameters,
|
|
9
|
+
type UseSendTransactionReturnType
|
|
10
|
+
} from "./hooks/useSendTransaction"
|
|
11
|
+
export {
|
|
12
|
+
useWaitForTransactionReceipt,
|
|
13
|
+
type UseWaitForTransactionReceiptParameters,
|
|
14
|
+
type UseWaitForTransactionReceiptReturnType
|
|
15
|
+
} from "./hooks/useWaitForTransactionReceipt"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@permissionless/wagmi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"author": "Pimlico",
|
|
5
5
|
"homepage": "https://docs.pimlico.io/permissionless/wagmi",
|
|
6
6
|
"repository": "github:pimlicolabs/permissionless.js",
|
|
@@ -11,7 +11,13 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"sideEffects": false,
|
|
13
13
|
"description": "A utility library for working with ERC-4337",
|
|
14
|
-
"keywords": [
|
|
14
|
+
"keywords": [
|
|
15
|
+
"ethereum",
|
|
16
|
+
"erc-4337",
|
|
17
|
+
"eip-4337",
|
|
18
|
+
"paymaster",
|
|
19
|
+
"bundler"
|
|
20
|
+
],
|
|
15
21
|
"license": "MIT",
|
|
16
22
|
"exports": {
|
|
17
23
|
".": {
|