@farcaster/frame-wagmi-connector 0.0.18 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present Merkle Manufactory Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,16 +1,14 @@
1
- # Frame Wagmi Connector
1
+ # @farcaster/frame-wagmi-connector
2
2
 
3
- A [Wagmi connector](https://wagmi.sh/) for interacting with wallets in Farcaster Frames.
3
+ A [Wagmi connector](https://wagmi.sh/) for interacting with wallets in Mini Apps.
4
4
 
5
5
 
6
- ## Install
6
+ ## Installation
7
7
 
8
8
  [Install and setup wagmi](https://wagmi.sh/react/getting-started#manual-installation).
9
9
 
10
- Install the connector:
11
-
12
- ```
13
- npm install wagmi @farcaster/frame-wagmi-connector
10
+ ```bash
11
+ pnpm add @farcaster/frame-wagmi-connector
14
12
  ```
15
13
 
16
14
  ## Usage
@@ -20,7 +20,7 @@ export declare function farcasterFrame(): import("@wagmi/core").CreateConnectorF
20
20
  } | {
21
21
  Request: {
22
22
  method: "eth_call";
23
- params: [transaction: import("ox/TransactionRequest").Rpc] | [transaction: import("ox/TransactionRequest").Rpc, block: import("ox/Block").Number<import("ox/Hex").Hex> | import("ox/Block").Tag | import("ox/Block").Hash | import("ox/Block").Identifier] | [transaction: import("ox/TransactionRequest").Rpc, block: import("ox/Block").Number<import("ox/Hex").Hex> | import("ox/Block").Tag | import("ox/Block").Hash | import("ox/Block").Identifier, stateOverride: unknown];
23
+ params: [transaction: import("ox/TransactionRequest").Rpc] | [transaction: import("ox/TransactionRequest").Rpc, block: import("ox/Block").Number<import("ox/Hex").Hex> | import("ox/Block").Tag | import("ox/Block").Hash | import("ox/Block").Identifier] | [transaction: import("ox/TransactionRequest").Rpc, block: import("ox/Block").Number<import("ox/Hex").Hex> | import("ox/Block").Tag | import("ox/Block").Hash | import("ox/Block").Identifier, stateOverrides: import("ox/StateOverrides").Rpc];
24
24
  };
25
25
  ReturnType: import("ox/Hex").Hex;
26
26
  } | {
@@ -38,7 +38,7 @@ export declare function farcasterFrame(): import("@wagmi/core").CreateConnectorF
38
38
  } | {
39
39
  Request: {
40
40
  method: "eth_estimateGas";
41
- params: [transaction: import("ox/TransactionRequest").Rpc] | [transaction: import("ox/TransactionRequest").Rpc, block: import("ox/Block").Number<import("ox/Hex").Hex> | import("ox/Block").Tag | import("ox/Block").Hash | import("ox/Block").Identifier] | [transaction: import("ox/TransactionRequest").Rpc, block: import("ox/Block").Number<import("ox/Hex").Hex> | import("ox/Block").Tag | import("ox/Block").Hash | import("ox/Block").Identifier, stateOverride: unknown];
41
+ params: [transaction: import("ox/TransactionRequest").Rpc] | [transaction: import("ox/TransactionRequest").Rpc, block: import("ox/Block").Number<import("ox/Hex").Hex> | import("ox/Block").Tag | import("ox/Block").Hash | import("ox/Block").Identifier] | [transaction: import("ox/TransactionRequest").Rpc, block: import("ox/Block").Number<import("ox/Hex").Hex> | import("ox/Block").Tag | import("ox/Block").Hash | import("ox/Block").Identifier, stateOverrides: import("ox/StateOverrides").Rpc];
42
42
  };
43
43
  ReturnType: import("ox/Hex").Hex;
44
44
  } | {
@@ -209,6 +209,33 @@ export declare function farcasterFrame(): import("@wagmi/core").CreateConnectorF
209
209
  params: [transaction: import("ox/TransactionRequest").Rpc];
210
210
  };
211
211
  ReturnType: import("ox/Hex").Hex;
212
+ } | {
213
+ Request: {
214
+ method: "eth_simulateV1";
215
+ params: [{
216
+ blockStateCalls: readonly {
217
+ blockOverrides?: import("ox/BlockOverrides").Rpc | undefined;
218
+ calls?: readonly import("ox/TransactionRequest").Rpc[] | undefined;
219
+ stateOverrides?: import("ox/StateOverrides").Rpc | undefined;
220
+ }[];
221
+ returnFullTransactions?: boolean | undefined;
222
+ traceTransfers?: boolean | undefined;
223
+ validation?: boolean | undefined;
224
+ }, block: import("ox/Block").Number<import("ox/Hex").Hex> | import("ox/Block").Tag | import("ox/Block").Hash | import("ox/Block").Identifier];
225
+ };
226
+ ReturnType: readonly (import("ox/Block").Rpc & {
227
+ calls?: readonly {
228
+ error?: {
229
+ data?: import("ox/Hex").Hex | undefined;
230
+ code: number;
231
+ message: string;
232
+ } | undefined;
233
+ logs?: readonly import("ox/Log").Rpc[] | undefined;
234
+ gasUsed: import("ox/Hex").Hex;
235
+ returnData: import("ox/Hex").Hex;
236
+ status: import("ox/Hex").Hex;
237
+ }[] | undefined;
238
+ })[];
212
239
  } | {
213
240
  Request: {
214
241
  method: "eth_signTransaction";