@wagmi/core 3.0.2 → 3.1.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/esm/exports/internal.js.map +1 -1
- package/dist/esm/exports/query.js +1 -1
- package/dist/esm/exports/query.js.map +1 -1
- package/dist/esm/exports/tempo.js +9 -0
- package/dist/esm/exports/tempo.js.map +1 -0
- package/dist/esm/tempo/Actions/amm.js +469 -0
- package/dist/esm/tempo/Actions/amm.js.map +1 -0
- package/dist/esm/tempo/Actions/dex.js +983 -0
- package/dist/esm/tempo/Actions/dex.js.map +1 -0
- package/dist/esm/tempo/Actions/faucet.js +64 -0
- package/dist/esm/tempo/Actions/faucet.js.map +1 -0
- package/dist/esm/tempo/Actions/fee.js +160 -0
- package/dist/esm/tempo/Actions/fee.js.map +1 -0
- package/dist/esm/tempo/Actions/index.js +11 -0
- package/dist/esm/tempo/Actions/index.js.map +1 -0
- package/dist/esm/tempo/Actions/nonce.js +176 -0
- package/dist/esm/tempo/Actions/nonce.js.map +1 -0
- package/dist/esm/tempo/Actions/policy.js +532 -0
- package/dist/esm/tempo/Actions/policy.js.map +1 -0
- package/dist/esm/tempo/Actions/reward.js +384 -0
- package/dist/esm/tempo/Actions/reward.js.map +1 -0
- package/dist/esm/tempo/Actions/token.js +1717 -0
- package/dist/esm/tempo/Actions/token.js.map +1 -0
- package/dist/esm/tempo/Actions/utils.js +2 -0
- package/dist/esm/tempo/Actions/utils.js.map +1 -0
- package/dist/esm/tempo/Connectors.js +534 -0
- package/dist/esm/tempo/Connectors.js.map +1 -0
- package/dist/esm/tempo/KeyManager.js +106 -0
- package/dist/esm/tempo/KeyManager.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/exports/internal.d.ts +1 -1
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/exports/query.d.ts +1 -1
- package/dist/types/exports/query.d.ts.map +1 -1
- package/dist/types/exports/tempo.d.ts +5 -0
- package/dist/types/exports/tempo.d.ts.map +1 -0
- package/dist/types/tempo/Actions/amm.d.ts +418 -0
- package/dist/types/tempo/Actions/amm.d.ts.map +1 -0
- package/dist/types/tempo/Actions/dex.d.ts +858 -0
- package/dist/types/tempo/Actions/dex.d.ts.map +1 -0
- package/dist/types/tempo/Actions/faucet.d.ts +70 -0
- package/dist/types/tempo/Actions/faucet.d.ts.map +1 -0
- package/dist/types/tempo/Actions/fee.d.ts +141 -0
- package/dist/types/tempo/Actions/fee.d.ts.map +1 -0
- package/dist/types/tempo/Actions/index.d.ts +10 -0
- package/dist/types/tempo/Actions/index.d.ts.map +1 -0
- package/dist/types/tempo/Actions/nonce.d.ts +150 -0
- package/dist/types/tempo/Actions/nonce.d.ts.map +1 -0
- package/dist/types/tempo/Actions/policy.d.ts +478 -0
- package/dist/types/tempo/Actions/policy.d.ts.map +1 -0
- package/dist/types/tempo/Actions/reward.d.ts +340 -0
- package/dist/types/tempo/Actions/reward.d.ts.map +1 -0
- package/dist/types/tempo/Actions/token.d.ts +1531 -0
- package/dist/types/tempo/Actions/token.d.ts.map +1 -0
- package/dist/types/tempo/Actions/utils.d.ts +9 -0
- package/dist/types/tempo/Actions/utils.d.ts.map +1 -0
- package/dist/types/tempo/Connectors.d.ts +99 -0
- package/dist/types/tempo/Connectors.d.ts.map +1 -0
- package/dist/types/tempo/KeyManager.d.ts +71 -0
- package/dist/types/tempo/KeyManager.d.ts.map +1 -0
- package/dist/types/types/utils.d.ts +16 -0
- package/dist/types/types/utils.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +14 -2
- package/src/exports/internal.ts +3 -0
- package/src/exports/query.ts +4 -1
- package/src/exports/tempo.ts +14 -0
- package/src/tempo/Actions/amm.ts +719 -0
- package/src/tempo/Actions/dex.ts +1571 -0
- package/src/tempo/Actions/faucet.ts +95 -0
- package/src/tempo/Actions/fee.ts +259 -0
- package/src/tempo/Actions/index.ts +10 -0
- package/src/tempo/Actions/nonce.ts +283 -0
- package/src/tempo/Actions/policy.ts +827 -0
- package/src/tempo/Actions/reward.ts +621 -0
- package/src/tempo/Actions/token.ts +2598 -0
- package/src/tempo/Actions/utils.ts +26 -0
- package/src/tempo/Connectors.ts +762 -0
- package/src/tempo/KeyManager.ts +176 -0
- package/src/types/utils.ts +19 -0
- package/src/version.ts +1 -1
- package/tempo/package.json +5 -0
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import type { Account, BaseErrorType } from 'viem';
|
|
2
|
+
import { Actions } from 'viem/tempo';
|
|
3
|
+
import type { Config } from '../../createConfig.js';
|
|
4
|
+
import type { ChainIdParameter, ConnectorParameter } from '../../types/properties.js';
|
|
5
|
+
import type { UnionLooseOmit } from '../../types/utils.js';
|
|
6
|
+
import type { QueryOptions, QueryParameter } from './utils.js';
|
|
7
|
+
/**
|
|
8
|
+
* Claims accumulated rewards for a recipient.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
13
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
14
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
15
|
+
*
|
|
16
|
+
* const config = createConfig({
|
|
17
|
+
* chains: [tempoTestnet],
|
|
18
|
+
* transports: {
|
|
19
|
+
* [tempo.id]: http(),
|
|
20
|
+
* },
|
|
21
|
+
* })
|
|
22
|
+
*
|
|
23
|
+
* const hash = await Actions.reward.claim(config, {
|
|
24
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
25
|
+
* })
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @param config - Config.
|
|
29
|
+
* @param parameters - Parameters.
|
|
30
|
+
* @returns The transaction hash.
|
|
31
|
+
*/
|
|
32
|
+
export declare function claim<config extends Config>(config: config, parameters: claim.Parameters<config>): Promise<Actions.reward.claim.ReturnValue>;
|
|
33
|
+
export declare namespace claim {
|
|
34
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.reward.claim.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
35
|
+
type ReturnValue = Actions.reward.claim.ReturnValue;
|
|
36
|
+
type ErrorType = BaseErrorType;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Claims accumulated rewards for a recipient and waits for confirmation.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
44
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
45
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
46
|
+
*
|
|
47
|
+
* const config = createConfig({
|
|
48
|
+
* chains: [tempoTestnet],
|
|
49
|
+
* transports: {
|
|
50
|
+
* [tempo.id]: http(),
|
|
51
|
+
* },
|
|
52
|
+
* })
|
|
53
|
+
*
|
|
54
|
+
* const result = await Actions.reward.claimSync(config, {
|
|
55
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
56
|
+
* })
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param config - Config.
|
|
60
|
+
* @param parameters - Parameters.
|
|
61
|
+
* @returns The transaction receipt.
|
|
62
|
+
*/
|
|
63
|
+
export declare function claimSync<config extends Config>(config: config, parameters: claimSync.Parameters<config>): Promise<Actions.reward.claimSync.ReturnValue>;
|
|
64
|
+
export declare namespace claimSync {
|
|
65
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.reward.claimSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
66
|
+
type ReturnValue = Actions.reward.claimSync.ReturnValue;
|
|
67
|
+
type ErrorType = BaseErrorType;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Gets the total reward per second rate for all active streams.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
75
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
76
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
77
|
+
*
|
|
78
|
+
* const config = createConfig({
|
|
79
|
+
* chains: [tempoTestnet],
|
|
80
|
+
* transports: {
|
|
81
|
+
* [tempo.id]: http(),
|
|
82
|
+
* },
|
|
83
|
+
* })
|
|
84
|
+
*
|
|
85
|
+
* const rate = await Actions.reward.getTotalPerSecond(config, {
|
|
86
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
87
|
+
* })
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* @param config - Config.
|
|
91
|
+
* @param parameters - Parameters.
|
|
92
|
+
* @returns The total reward per second (scaled by 1e18).
|
|
93
|
+
*/
|
|
94
|
+
export declare function getTotalPerSecond<config extends Config>(config: config, parameters: getTotalPerSecond.Parameters<config>): Promise<getTotalPerSecond.ReturnValue>;
|
|
95
|
+
export declare namespace getTotalPerSecond {
|
|
96
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.reward.getTotalPerSecond.Parameters;
|
|
97
|
+
type ReturnValue = Actions.reward.getTotalPerSecond.ReturnValue;
|
|
98
|
+
type ErrorType = BaseErrorType;
|
|
99
|
+
function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getTotalPerSecond", Parameters<config>];
|
|
100
|
+
type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
|
|
101
|
+
function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
|
|
102
|
+
namespace queryOptions {
|
|
103
|
+
type Parameters<config extends Config, selectData = getTotalPerSecond.ReturnValue> = getTotalPerSecond.Parameters<config> & QueryParameter<getTotalPerSecond.ReturnValue, getTotalPerSecond.ErrorType, selectData, getTotalPerSecond.QueryKey<config>>;
|
|
104
|
+
type ReturnValue<config extends Config, selectData = getTotalPerSecond.ReturnValue> = QueryOptions<getTotalPerSecond.ReturnValue, getTotalPerSecond.ErrorType, selectData, getTotalPerSecond.QueryKey<config>>;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Gets the reward information for a specific account.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```ts
|
|
112
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
113
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
114
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
115
|
+
*
|
|
116
|
+
* const config = createConfig({
|
|
117
|
+
* chains: [tempoTestnet],
|
|
118
|
+
* transports: {
|
|
119
|
+
* [tempo.id]: http(),
|
|
120
|
+
* },
|
|
121
|
+
* })
|
|
122
|
+
*
|
|
123
|
+
* const info = await Actions.reward.getUserRewardInfo(config, {
|
|
124
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
125
|
+
* account: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
|
126
|
+
* })
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @param config - Config.
|
|
130
|
+
* @param parameters - Parameters.
|
|
131
|
+
* @returns The user's reward information (recipient, rewardPerToken, rewardBalance).
|
|
132
|
+
*/
|
|
133
|
+
export declare function getUserRewardInfo<config extends Config>(config: config, parameters: getUserRewardInfo.Parameters<config>): Promise<getUserRewardInfo.ReturnValue>;
|
|
134
|
+
export declare namespace getUserRewardInfo {
|
|
135
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.reward.getUserRewardInfo.Parameters;
|
|
136
|
+
type ReturnValue = Actions.reward.getUserRewardInfo.ReturnValue;
|
|
137
|
+
type ErrorType = BaseErrorType;
|
|
138
|
+
function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getUserRewardInfo", Parameters<config>];
|
|
139
|
+
type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
|
|
140
|
+
function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
|
|
141
|
+
namespace queryOptions {
|
|
142
|
+
type Parameters<config extends Config, selectData = getUserRewardInfo.ReturnValue> = getUserRewardInfo.Parameters<config> & QueryParameter<getUserRewardInfo.ReturnValue, getUserRewardInfo.ErrorType, selectData, getUserRewardInfo.QueryKey<config>>;
|
|
143
|
+
type ReturnValue<config extends Config, selectData = getUserRewardInfo.ReturnValue> = QueryOptions<getUserRewardInfo.ReturnValue, getUserRewardInfo.ErrorType, selectData, getUserRewardInfo.QueryKey<config>>;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Sets or changes the reward recipient for a token holder.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```ts
|
|
151
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
152
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
153
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
154
|
+
*
|
|
155
|
+
* const config = createConfig({
|
|
156
|
+
* chains: [tempoTestnet],
|
|
157
|
+
* transports: {
|
|
158
|
+
* [tempo.id]: http(),
|
|
159
|
+
* },
|
|
160
|
+
* })
|
|
161
|
+
*
|
|
162
|
+
* const hash = await Actions.reward.setRecipient(config, {
|
|
163
|
+
* recipient: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
|
164
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
165
|
+
* })
|
|
166
|
+
* ```
|
|
167
|
+
*
|
|
168
|
+
* @param config - Config.
|
|
169
|
+
* @param parameters - Parameters.
|
|
170
|
+
* @returns The transaction hash.
|
|
171
|
+
*/
|
|
172
|
+
export declare function setRecipient<config extends Config>(config: config, parameters: setRecipient.Parameters<config>): Promise<Actions.reward.setRecipient.ReturnValue>;
|
|
173
|
+
export declare namespace setRecipient {
|
|
174
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.reward.setRecipient.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
175
|
+
type ReturnValue = Actions.reward.setRecipient.ReturnValue;
|
|
176
|
+
type ErrorType = BaseErrorType;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Sets or changes the reward recipient for a token holder and waits for confirmation.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```ts
|
|
183
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
184
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
185
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
186
|
+
*
|
|
187
|
+
* const config = createConfig({
|
|
188
|
+
* chains: [tempoTestnet],
|
|
189
|
+
* transports: {
|
|
190
|
+
* [tempo.id]: http(),
|
|
191
|
+
* },
|
|
192
|
+
* })
|
|
193
|
+
*
|
|
194
|
+
* const result = await Actions.reward.setRecipientSync(config, {
|
|
195
|
+
* recipient: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
|
196
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
197
|
+
* })
|
|
198
|
+
* ```
|
|
199
|
+
*
|
|
200
|
+
* @param config - Config.
|
|
201
|
+
* @param parameters - Parameters.
|
|
202
|
+
* @returns The transaction receipt and event data.
|
|
203
|
+
*/
|
|
204
|
+
export declare function setRecipientSync<config extends Config>(config: config, parameters: setRecipientSync.Parameters<config>): Promise<Actions.reward.setRecipientSync.ReturnValue>;
|
|
205
|
+
export declare namespace setRecipientSync {
|
|
206
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.reward.setRecipientSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
207
|
+
type ReturnValue = Actions.reward.setRecipientSync.ReturnValue;
|
|
208
|
+
type ErrorType = BaseErrorType;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Starts a new reward stream that distributes tokens to opted-in holders.
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* ```ts
|
|
215
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
216
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
217
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
218
|
+
*
|
|
219
|
+
* const config = createConfig({
|
|
220
|
+
* chains: [tempoTestnet],
|
|
221
|
+
* transports: {
|
|
222
|
+
* [tempo.id]: http(),
|
|
223
|
+
* },
|
|
224
|
+
* })
|
|
225
|
+
*
|
|
226
|
+
* const hash = await Actions.reward.start(config, {
|
|
227
|
+
* amount: 100000000000000000000n,
|
|
228
|
+
* seconds: 86400,
|
|
229
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
230
|
+
* })
|
|
231
|
+
* ```
|
|
232
|
+
*
|
|
233
|
+
* @param config - Config.
|
|
234
|
+
* @param parameters - Parameters.
|
|
235
|
+
* @returns The transaction hash.
|
|
236
|
+
*/
|
|
237
|
+
export declare function start<config extends Config>(config: config, parameters: start.Parameters<config>): Promise<Actions.reward.start.ReturnValue>;
|
|
238
|
+
export declare namespace start {
|
|
239
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.reward.start.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
240
|
+
type ReturnValue = Actions.reward.start.ReturnValue;
|
|
241
|
+
type ErrorType = BaseErrorType;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Starts a new reward stream that distributes tokens to opted-in holders and waits for confirmation.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```ts
|
|
248
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
249
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
250
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
251
|
+
*
|
|
252
|
+
* const config = createConfig({
|
|
253
|
+
* chains: [tempoTestnet],
|
|
254
|
+
* transports: {
|
|
255
|
+
* [tempo.id]: http(),
|
|
256
|
+
* },
|
|
257
|
+
* })
|
|
258
|
+
*
|
|
259
|
+
* const result = await Actions.reward.startSync(config, {
|
|
260
|
+
* amount: 100000000000000000000n,
|
|
261
|
+
* seconds: 86400,
|
|
262
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
263
|
+
* })
|
|
264
|
+
* ```
|
|
265
|
+
*
|
|
266
|
+
* @param config - Config.
|
|
267
|
+
* @param parameters - Parameters.
|
|
268
|
+
* @returns The transaction receipt and event data.
|
|
269
|
+
*/
|
|
270
|
+
export declare function startSync<config extends Config>(config: config, parameters: startSync.Parameters<config>): Promise<Actions.reward.startSync.ReturnValue>;
|
|
271
|
+
export declare namespace startSync {
|
|
272
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.reward.startSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
273
|
+
type ReturnValue = Actions.reward.startSync.ReturnValue;
|
|
274
|
+
type ErrorType = BaseErrorType;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Watches for reward scheduled events.
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* ```ts
|
|
281
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
282
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
283
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
284
|
+
*
|
|
285
|
+
* const config = createConfig({
|
|
286
|
+
* chains: [tempoTestnet],
|
|
287
|
+
* transports: {
|
|
288
|
+
* [tempo.id]: http(),
|
|
289
|
+
* },
|
|
290
|
+
* })
|
|
291
|
+
*
|
|
292
|
+
* const unwatch = Actions.reward.watchRewardScheduled(config, {
|
|
293
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
294
|
+
* onRewardScheduled: (args, log) => {
|
|
295
|
+
* console.log('Reward scheduled:', args)
|
|
296
|
+
* },
|
|
297
|
+
* })
|
|
298
|
+
* ```
|
|
299
|
+
*
|
|
300
|
+
* @param config - Config.
|
|
301
|
+
* @param parameters - Parameters.
|
|
302
|
+
* @returns A function to unsubscribe from the event.
|
|
303
|
+
*/
|
|
304
|
+
export declare function watchRewardScheduled<config extends Config>(config: config, parameters: watchRewardScheduled.Parameters<config>): import("viem").WatchContractEventReturnType;
|
|
305
|
+
export declare namespace watchRewardScheduled {
|
|
306
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.reward.watchRewardScheduled.Parameters;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Watches for reward recipient set events.
|
|
310
|
+
*
|
|
311
|
+
* @example
|
|
312
|
+
* ```ts
|
|
313
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
314
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
315
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
316
|
+
*
|
|
317
|
+
* const config = createConfig({
|
|
318
|
+
* chains: [tempoTestnet],
|
|
319
|
+
* transports: {
|
|
320
|
+
* [tempo.id]: http(),
|
|
321
|
+
* },
|
|
322
|
+
* })
|
|
323
|
+
*
|
|
324
|
+
* const unwatch = Actions.reward.watchRewardRecipientSet(config, {
|
|
325
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
326
|
+
* onRewardRecipientSet: (args, log) => {
|
|
327
|
+
* console.log('Reward recipient set:', args)
|
|
328
|
+
* },
|
|
329
|
+
* })
|
|
330
|
+
* ```
|
|
331
|
+
*
|
|
332
|
+
* @param config - Config.
|
|
333
|
+
* @param parameters - Parameters.
|
|
334
|
+
* @returns A function to unsubscribe from the event.
|
|
335
|
+
*/
|
|
336
|
+
export declare function watchRewardRecipientSet<config extends Config>(config: config, parameters: watchRewardRecipientSet.Parameters<config>): import("viem").WatchContractEventReturnType;
|
|
337
|
+
export declare namespace watchRewardRecipientSet {
|
|
338
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.reward.watchRewardRecipientSet.Parameters;
|
|
339
|
+
}
|
|
340
|
+
//# sourceMappingURL=reward.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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