@farcaster/frame-wagmi-connector 1.0.1 → 2.0.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/dist/index.d.ts +150 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const farcasterFrame: () => import("@wagmi/core").CreateConnector
|
|
|
21
21
|
} | {
|
|
22
22
|
Request: {
|
|
23
23
|
method: "eth_call";
|
|
24
|
-
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,
|
|
24
|
+
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];
|
|
25
25
|
};
|
|
26
26
|
ReturnType: import("ox/Hex").Hex;
|
|
27
27
|
} | {
|
|
@@ -39,7 +39,7 @@ export declare const farcasterFrame: () => import("@wagmi/core").CreateConnector
|
|
|
39
39
|
} | {
|
|
40
40
|
Request: {
|
|
41
41
|
method: "eth_estimateGas";
|
|
42
|
-
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,
|
|
42
|
+
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];
|
|
43
43
|
};
|
|
44
44
|
ReturnType: import("ox/Hex").Hex;
|
|
45
45
|
} | {
|
|
@@ -204,12 +204,45 @@ export declare const farcasterFrame: () => import("@wagmi/core").CreateConnector
|
|
|
204
204
|
params: [serializedTransaction: import("ox/Hex").Hex];
|
|
205
205
|
};
|
|
206
206
|
ReturnType: import("ox/Hex").Hex;
|
|
207
|
+
} | {
|
|
208
|
+
Request: {
|
|
209
|
+
method: "eth_sendRawTransactionSync";
|
|
210
|
+
params: [serializedTransaction: import("ox/Hex").Hex] | [serializedTransaction: import("ox/Hex").Hex, timeout: number];
|
|
211
|
+
};
|
|
212
|
+
ReturnType: import("ox/TransactionReceipt").Rpc;
|
|
207
213
|
} | {
|
|
208
214
|
Request: {
|
|
209
215
|
method: "eth_sendTransaction";
|
|
210
216
|
params: [transaction: import("ox/TransactionRequest").Rpc];
|
|
211
217
|
};
|
|
212
218
|
ReturnType: import("ox/Hex").Hex;
|
|
219
|
+
} | {
|
|
220
|
+
Request: {
|
|
221
|
+
method: "eth_simulateV1";
|
|
222
|
+
params: [{
|
|
223
|
+
blockStateCalls: readonly {
|
|
224
|
+
blockOverrides?: import("ox/BlockOverrides").Rpc | undefined;
|
|
225
|
+
calls?: readonly import("ox/TransactionRequest").Rpc[] | undefined;
|
|
226
|
+
stateOverrides?: import("ox/StateOverrides").Rpc | undefined;
|
|
227
|
+
}[];
|
|
228
|
+
returnFullTransactions?: boolean | undefined;
|
|
229
|
+
traceTransfers?: boolean | undefined;
|
|
230
|
+
validation?: boolean | undefined;
|
|
231
|
+
}, block: import("ox/Block").Number<import("ox/Hex").Hex> | import("ox/Block").Tag | import("ox/Block").Hash | import("ox/Block").Identifier];
|
|
232
|
+
};
|
|
233
|
+
ReturnType: readonly (import("ox/Block").Rpc & {
|
|
234
|
+
calls?: readonly {
|
|
235
|
+
error?: {
|
|
236
|
+
data?: import("ox/Hex").Hex | undefined;
|
|
237
|
+
code: number;
|
|
238
|
+
message: string;
|
|
239
|
+
} | undefined;
|
|
240
|
+
logs?: readonly import("ox/Log").Rpc[] | undefined;
|
|
241
|
+
gasUsed: import("ox/Hex").Hex;
|
|
242
|
+
returnData: import("ox/Hex").Hex;
|
|
243
|
+
status: import("ox/Hex").Hex;
|
|
244
|
+
}[] | undefined;
|
|
245
|
+
})[];
|
|
213
246
|
} | {
|
|
214
247
|
Request: {
|
|
215
248
|
method: "eth_signTransaction";
|
|
@@ -240,6 +273,12 @@ export declare const farcasterFrame: () => import("@wagmi/core").CreateConnector
|
|
|
240
273
|
params: [serializedTransaction: import("ox/Hex").Hex];
|
|
241
274
|
};
|
|
242
275
|
ReturnType: import("ox/Hex").Hex;
|
|
276
|
+
} | {
|
|
277
|
+
Request: {
|
|
278
|
+
method: "eth_sendRawTransactionSync";
|
|
279
|
+
params: [serializedTransaction: import("ox/Hex").Hex] | [serializedTransaction: import("ox/Hex").Hex, timeout: number];
|
|
280
|
+
};
|
|
281
|
+
ReturnType: import("ox/TransactionReceipt").Rpc;
|
|
243
282
|
} | {
|
|
244
283
|
Request: {
|
|
245
284
|
method: "eth_sendTransaction";
|
|
@@ -287,7 +326,12 @@ export declare const farcasterFrame: () => import("@wagmi/core").CreateConnector
|
|
|
287
326
|
params?: [string];
|
|
288
327
|
};
|
|
289
328
|
ReturnType: {
|
|
290
|
-
|
|
329
|
+
atomic: boolean;
|
|
330
|
+
capabilities?: {
|
|
331
|
+
[capability: string]: any;
|
|
332
|
+
} | undefined;
|
|
333
|
+
chainId: import("ox/Hex").Hex;
|
|
334
|
+
id: string;
|
|
291
335
|
receipts?: readonly {
|
|
292
336
|
logs: {
|
|
293
337
|
address: import("ox/Hex").Hex;
|
|
@@ -300,11 +344,13 @@ export declare const farcasterFrame: () => import("@wagmi/core").CreateConnector
|
|
|
300
344
|
gasUsed: import("ox/Hex").Hex;
|
|
301
345
|
transactionHash: import("ox/Hex").Hex;
|
|
302
346
|
}[] | undefined;
|
|
347
|
+
status: number;
|
|
348
|
+
version: string;
|
|
303
349
|
};
|
|
304
350
|
} | {
|
|
305
351
|
Request: {
|
|
306
352
|
method: "wallet_getCapabilities";
|
|
307
|
-
params?: [import("ox/Address").Address];
|
|
353
|
+
params?: readonly [] | readonly [import("ox/Address").Address | undefined] | readonly [import("ox/Address").Address | undefined, readonly import("ox/Hex").Hex[] | undefined] | undefined;
|
|
308
354
|
};
|
|
309
355
|
ReturnType: {
|
|
310
356
|
[x: `0x${string}`]: {
|
|
@@ -394,7 +440,11 @@ export declare const farcasterFrame: () => import("@wagmi/core").CreateConnector
|
|
|
394
440
|
Request: {
|
|
395
441
|
method: "wallet_sendCalls";
|
|
396
442
|
params: [{
|
|
443
|
+
atomicRequired: boolean;
|
|
397
444
|
calls: readonly {
|
|
445
|
+
capabilities?: {
|
|
446
|
+
[capability: string]: any;
|
|
447
|
+
} | undefined;
|
|
398
448
|
to?: import("ox/Address").Address | undefined;
|
|
399
449
|
data?: import("ox/Hex").Hex | undefined;
|
|
400
450
|
value?: import("ox/Hex").Hex | undefined;
|
|
@@ -403,11 +453,17 @@ export declare const farcasterFrame: () => import("@wagmi/core").CreateConnector
|
|
|
403
453
|
[capability: string]: any;
|
|
404
454
|
} | undefined;
|
|
405
455
|
chainId?: import("ox/Hex").Hex | undefined;
|
|
406
|
-
|
|
456
|
+
id?: string | undefined;
|
|
457
|
+
from?: import("ox/Address").Address | undefined;
|
|
407
458
|
version: string;
|
|
408
459
|
}];
|
|
409
460
|
};
|
|
410
|
-
ReturnType:
|
|
461
|
+
ReturnType: {
|
|
462
|
+
capabilities?: {
|
|
463
|
+
[capability: string]: any;
|
|
464
|
+
} | undefined;
|
|
465
|
+
id: string;
|
|
466
|
+
};
|
|
411
467
|
} | {
|
|
412
468
|
Request: {
|
|
413
469
|
method: "wallet_showCallsStatus";
|
|
@@ -437,7 +493,93 @@ export declare const farcasterFrame: () => import("@wagmi/core").CreateConnector
|
|
|
437
493
|
};
|
|
438
494
|
ReturnType: boolean;
|
|
439
495
|
}>;
|
|
440
|
-
|
|
441
|
-
|
|
496
|
+
eventNames?: (() => ("connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message")[]) | undefined;
|
|
497
|
+
listeners?: (<T extends "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">(event: T) => ((...args: import("eventemitter3").EventEmitter.ArgumentMap<{
|
|
498
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
499
|
+
chainChanged: (chainId: string) => void;
|
|
500
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
501
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
502
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
503
|
+
}>[Extract<T, "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">]) => void)[]) | undefined;
|
|
504
|
+
listenerCount?: ((event: "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message") => number) | undefined;
|
|
505
|
+
emit?: (<T extends "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">(event: T, ...args: import("eventemitter3").EventEmitter.ArgumentMap<{
|
|
506
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
507
|
+
chainChanged: (chainId: string) => void;
|
|
508
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
509
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
510
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
511
|
+
}>[Extract<T, "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">]) => boolean) | undefined;
|
|
512
|
+
on?: (<T extends "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">(event: T, fn: (...args: import("eventemitter3").EventEmitter.ArgumentMap<{
|
|
513
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
514
|
+
chainChanged: (chainId: string) => void;
|
|
515
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
516
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
517
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
518
|
+
}>[Extract<T, "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">]) => void, context?: any) => import("eventemitter3").EventEmitter<{
|
|
519
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
520
|
+
chainChanged: (chainId: string) => void;
|
|
521
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
522
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
523
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
524
|
+
}, any>) | undefined;
|
|
525
|
+
addListener?: (<T extends "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">(event: T, fn: (...args: import("eventemitter3").EventEmitter.ArgumentMap<{
|
|
526
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
527
|
+
chainChanged: (chainId: string) => void;
|
|
528
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
529
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
530
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
531
|
+
}>[Extract<T, "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">]) => void, context?: any) => import("eventemitter3").EventEmitter<{
|
|
532
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
533
|
+
chainChanged: (chainId: string) => void;
|
|
534
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
535
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
536
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
537
|
+
}, any>) | undefined;
|
|
538
|
+
once?: (<T extends "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">(event: T, fn: (...args: import("eventemitter3").EventEmitter.ArgumentMap<{
|
|
539
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
540
|
+
chainChanged: (chainId: string) => void;
|
|
541
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
542
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
543
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
544
|
+
}>[Extract<T, "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">]) => void, context?: any) => import("eventemitter3").EventEmitter<{
|
|
545
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
546
|
+
chainChanged: (chainId: string) => void;
|
|
547
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
548
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
549
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
550
|
+
}, any>) | undefined;
|
|
551
|
+
removeListener?: (<T extends "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">(event: T, fn?: ((...args: import("eventemitter3").EventEmitter.ArgumentMap<{
|
|
552
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
553
|
+
chainChanged: (chainId: string) => void;
|
|
554
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
555
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
556
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
557
|
+
}>[Extract<T, "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">]) => void) | undefined, context?: any, once?: boolean) => import("eventemitter3").EventEmitter<{
|
|
558
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
559
|
+
chainChanged: (chainId: string) => void;
|
|
560
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
561
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
562
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
563
|
+
}, any>) | undefined;
|
|
564
|
+
off?: (<T extends "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">(event: T, fn?: ((...args: import("eventemitter3").EventEmitter.ArgumentMap<{
|
|
565
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
566
|
+
chainChanged: (chainId: string) => void;
|
|
567
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
568
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
569
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
570
|
+
}>[Extract<T, "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message">]) => void) | undefined, context?: any, once?: boolean) => import("eventemitter3").EventEmitter<{
|
|
571
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
572
|
+
chainChanged: (chainId: string) => void;
|
|
573
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
574
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
575
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
576
|
+
}, any>) | undefined;
|
|
577
|
+
removeAllListeners?: ((event?: "connect" | "disconnect" | "accountsChanged" | "chainChanged" | "message" | undefined) => import("eventemitter3").EventEmitter<{
|
|
578
|
+
accountsChanged: (accounts: readonly import("ox/Address").Address[]) => void;
|
|
579
|
+
chainChanged: (chainId: string) => void;
|
|
580
|
+
connect: (connectInfo: import("ox/Provider").ConnectInfo) => void;
|
|
581
|
+
disconnect: (error: import("ox/Provider").ProviderRpcError) => void;
|
|
582
|
+
message: (message: import("ox/Provider").Message) => void;
|
|
583
|
+
}, any>) | undefined;
|
|
442
584
|
}, Record<string, unknown>, Record<string, unknown>>;
|
|
443
585
|
export default farcasterFrame;
|