Skip to content

Commit 65281dd

Browse files
committed
fix 0.0.9
1 parent 3a97be9 commit 65281dd

12 files changed

+263
-185
lines changed
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WTCZT7WPNW"></script>
1010
<script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-WTCZT7WPNW');</script>
11-
<script type="module" crossorigin src="/vue-web3-auth/assets/index-3dd76fe1.js"></script>
11+
<script type="module" crossorigin src="/vue-web3-auth/assets/index-4fc41726.js"></script>
1212
<link rel="stylesheet" href="/vue-web3-auth/assets/index-702c97b5.css">
1313
</head>
1414
<body>

dist/vue-web3-auth.d.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type { FetchFeeDataResult } from '@wagmi/core';
77
import type { FetchTokenResult } from '@wagmi/core';
88
import type { Plugin as Plugin_2 } from 'vue';
99
import type { ThemeCtrlState } from '@web3modal/core';
10+
import type { Transaction } from 'viem';
1011
import type { TransactionReceipt } from 'viem';
1112
import type { Unit } from '@wagmi/core';
1213

@@ -114,8 +115,17 @@ declare type FetchToken = {
114115

115116
export declare function fetchToken(data: FetchToken): Promise<FetchTokenResult>;
116117

118+
declare type FetchTransaction = {
119+
chainId?: number;
120+
hash: `0x${string}`;
121+
};
122+
123+
export declare function fetchTransaction(data: FetchTransaction): Promise<Transaction>;
124+
117125
export declare function getAvailableChains(): Chain[];
118126

127+
export declare function init(): void;
128+
119129
export declare function multicall(params: MulticallArgs): Promise<unknown[]>;
120130

121131
export declare const multicallABI: ({
@@ -199,10 +209,36 @@ export declare function readContract(data: ReadContract): Promise<unknown[]>;
199209

200210
export declare function selectChain(): Promise<void>;
201211

212+
declare type SendTransaction = {
213+
chainId?: number;
214+
to: string;
215+
account?: `0x${string}`;
216+
gas?: bigint;
217+
gasPrice?: bigint;
218+
maxFeePerGas?: bigint;
219+
maxPriorityFeePerGas?: bigint;
220+
nonce?: number;
221+
value?: bigint;
222+
confirmations?: number;
223+
};
224+
225+
export declare function sendTransaction(data: SendTransaction): Promise<TransactionReceipt>;
226+
202227
export declare function shortAddressFilter(value?: string): string;
203228

229+
export declare function signMessage(message: string): Promise<`0x${string}`>;
230+
204231
export declare function switchChain(newChain: Chain): Promise<void>;
205232

233+
declare type WatchContractEvent = {
234+
chainId?: number;
235+
address: `0x${string}` | `0x${string}`[];
236+
abi: any;
237+
eventName: string;
238+
};
239+
240+
export declare function watchContractEvent(data: WatchContractEvent, callback: (log: any) => void): () => void;
241+
206242
declare type WriteContract = {
207243
chainId?: number;
208244
address: `0x${string}`;

0 commit comments

Comments
 (0)