tempo.ts 0.11.1 → 0.12.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.
Files changed (228) hide show
  1. package/CHANGELOG.md +67 -4
  2. package/README.md +3 -34
  3. package/dist/server/Handler.d.ts +14 -14
  4. package/dist/server/Handler.d.ts.map +1 -1
  5. package/dist/server/Handler.js +16 -17
  6. package/dist/server/Handler.js.map +1 -1
  7. package/dist/wagmi/Actions/amm.d.ts +51 -51
  8. package/dist/wagmi/Actions/amm.d.ts.map +1 -1
  9. package/dist/wagmi/Actions/amm.js +37 -37
  10. package/dist/wagmi/Actions/amm.js.map +1 -1
  11. package/dist/wagmi/Actions/dex.d.ts +129 -129
  12. package/dist/wagmi/Actions/dex.d.ts.map +1 -1
  13. package/dist/wagmi/Actions/dex.js +73 -73
  14. package/dist/wagmi/Actions/dex.js.map +1 -1
  15. package/dist/wagmi/Actions/faucet.d.ts +9 -9
  16. package/dist/wagmi/Actions/faucet.d.ts.map +1 -1
  17. package/dist/wagmi/Actions/faucet.js +7 -7
  18. package/dist/wagmi/Actions/faucet.js.map +1 -1
  19. package/dist/wagmi/Actions/fee.d.ts +17 -17
  20. package/dist/wagmi/Actions/fee.d.ts.map +1 -1
  21. package/dist/wagmi/Actions/fee.js +10 -10
  22. package/dist/wagmi/Actions/fee.js.map +1 -1
  23. package/dist/wagmi/Actions/nonce.d.ts +9 -79
  24. package/dist/wagmi/Actions/nonce.d.ts.map +1 -1
  25. package/dist/wagmi/Actions/nonce.js +7 -89
  26. package/dist/wagmi/Actions/nonce.js.map +1 -1
  27. package/dist/wagmi/Actions/policy.d.ts +69 -70
  28. package/dist/wagmi/Actions/policy.d.ts.map +1 -1
  29. package/dist/wagmi/Actions/policy.js +43 -43
  30. package/dist/wagmi/Actions/policy.js.map +1 -1
  31. package/dist/wagmi/Actions/reward.d.ts +51 -51
  32. package/dist/wagmi/Actions/reward.d.ts.map +1 -1
  33. package/dist/wagmi/Actions/reward.js +31 -31
  34. package/dist/wagmi/Actions/reward.js.map +1 -1
  35. package/dist/wagmi/Actions/token.d.ts +238 -238
  36. package/dist/wagmi/Actions/token.d.ts.map +1 -1
  37. package/dist/wagmi/Actions/token.js +136 -136
  38. package/dist/wagmi/Actions/token.js.map +1 -1
  39. package/dist/wagmi/Connector.d.ts +2 -1
  40. package/dist/wagmi/Connector.d.ts.map +1 -1
  41. package/dist/wagmi/Connector.js +83 -22
  42. package/dist/wagmi/Connector.js.map +1 -1
  43. package/dist/wagmi/Hooks/nonce.d.ts +1 -52
  44. package/dist/wagmi/Hooks/nonce.d.ts.map +1 -1
  45. package/dist/wagmi/Hooks/nonce.js +1 -70
  46. package/dist/wagmi/Hooks/nonce.js.map +1 -1
  47. package/dist/wagmi/Hooks/policy.d.ts +0 -1
  48. package/dist/wagmi/Hooks/policy.d.ts.map +1 -1
  49. package/dist/wagmi/Hooks/policy.js.map +1 -1
  50. package/dist/wagmi/KeyManager.d.ts +6 -3
  51. package/dist/wagmi/KeyManager.d.ts.map +1 -1
  52. package/dist/wagmi/KeyManager.js +9 -4
  53. package/dist/wagmi/KeyManager.js.map +1 -1
  54. package/package.json +3 -13
  55. package/src/server/Handler.test.ts +2 -2
  56. package/src/server/Handler.ts +16 -17
  57. package/src/wagmi/Actions/amm.ts +63 -63
  58. package/src/wagmi/Actions/dex.test.ts +1 -1
  59. package/src/wagmi/Actions/dex.ts +153 -153
  60. package/src/wagmi/Actions/faucet.ts +11 -11
  61. package/src/wagmi/Actions/fee.ts +20 -20
  62. package/src/wagmi/Actions/nonce.test.ts +1 -64
  63. package/src/wagmi/Actions/nonce.ts +10 -142
  64. package/src/wagmi/Actions/policy.ts +83 -85
  65. package/src/wagmi/Actions/reward.ts +64 -61
  66. package/src/wagmi/Actions/token.ts +287 -283
  67. package/src/wagmi/Connector.ts +105 -31
  68. package/src/wagmi/Hooks/dex.test.ts +1 -1
  69. package/src/wagmi/Hooks/fee.test.ts +0 -6
  70. package/src/wagmi/Hooks/nonce.test.ts +1 -66
  71. package/src/wagmi/Hooks/nonce.ts +1 -114
  72. package/src/wagmi/Hooks/policy.ts +0 -2
  73. package/src/wagmi/KeyManager.ts +18 -5
  74. package/dist/chains.d.ts +0 -73
  75. package/dist/chains.d.ts.map +0 -1
  76. package/dist/chains.js +0 -51
  77. package/dist/chains.js.map +0 -1
  78. package/dist/viem/Abis.d.ts +0 -2649
  79. package/dist/viem/Abis.d.ts.map +0 -1
  80. package/dist/viem/Abis.js +0 -1677
  81. package/dist/viem/Abis.js.map +0 -1
  82. package/dist/viem/Account.d.ts +0 -244
  83. package/dist/viem/Account.d.ts.map +0 -1
  84. package/dist/viem/Account.js +0 -382
  85. package/dist/viem/Account.js.map +0 -1
  86. package/dist/viem/Actions/account.d.ts +0 -40
  87. package/dist/viem/Actions/account.d.ts.map +0 -1
  88. package/dist/viem/Actions/account.js +0 -86
  89. package/dist/viem/Actions/account.js.map +0 -1
  90. package/dist/viem/Actions/amm.d.ts +0 -1991
  91. package/dist/viem/Actions/amm.d.ts.map +0 -1
  92. package/dist/viem/Actions/amm.js +0 -814
  93. package/dist/viem/Actions/amm.js.map +0 -1
  94. package/dist/viem/Actions/dex.d.ts +0 -3900
  95. package/dist/viem/Actions/dex.d.ts.map +0 -1
  96. package/dist/viem/Actions/dex.js +0 -1414
  97. package/dist/viem/Actions/dex.js.map +0 -1
  98. package/dist/viem/Actions/faucet.d.ts +0 -69
  99. package/dist/viem/Actions/faucet.d.ts.map +0 -1
  100. package/dist/viem/Actions/faucet.js +0 -73
  101. package/dist/viem/Actions/faucet.js.map +0 -1
  102. package/dist/viem/Actions/fee.d.ts +0 -360
  103. package/dist/viem/Actions/fee.d.ts.map +0 -1
  104. package/dist/viem/Actions/fee.js +0 -237
  105. package/dist/viem/Actions/fee.js.map +0 -1
  106. package/dist/viem/Actions/index.d.ts +0 -10
  107. package/dist/viem/Actions/index.d.ts.map +0 -1
  108. package/dist/viem/Actions/index.js +0 -10
  109. package/dist/viem/Actions/index.js.map +0 -1
  110. package/dist/viem/Actions/nonce.d.ts +0 -257
  111. package/dist/viem/Actions/nonce.d.ts.map +0 -1
  112. package/dist/viem/Actions/nonce.js +0 -228
  113. package/dist/viem/Actions/nonce.js.map +0 -1
  114. package/dist/viem/Actions/policy.d.ts +0 -1680
  115. package/dist/viem/Actions/policy.d.ts.map +0 -1
  116. package/dist/viem/Actions/policy.js +0 -875
  117. package/dist/viem/Actions/policy.js.map +0 -1
  118. package/dist/viem/Actions/reward.d.ts +0 -2422
  119. package/dist/viem/Actions/reward.d.ts.map +0 -1
  120. package/dist/viem/Actions/reward.js +0 -651
  121. package/dist/viem/Actions/reward.js.map +0 -1
  122. package/dist/viem/Actions/token.d.ts +0 -16007
  123. package/dist/viem/Actions/token.d.ts.map +0 -1
  124. package/dist/viem/Actions/token.js +0 -2936
  125. package/dist/viem/Actions/token.js.map +0 -1
  126. package/dist/viem/Addresses.d.ts +0 -9
  127. package/dist/viem/Addresses.d.ts.map +0 -1
  128. package/dist/viem/Addresses.js +0 -9
  129. package/dist/viem/Addresses.js.map +0 -1
  130. package/dist/viem/Chain.d.ts +0 -451
  131. package/dist/viem/Chain.d.ts.map +0 -1
  132. package/dist/viem/Chain.js +0 -96
  133. package/dist/viem/Chain.js.map +0 -1
  134. package/dist/viem/Decorator.d.ts +0 -2783
  135. package/dist/viem/Decorator.d.ts.map +0 -1
  136. package/dist/viem/Decorator.js +0 -137
  137. package/dist/viem/Decorator.js.map +0 -1
  138. package/dist/viem/Formatters.d.ts +0 -10
  139. package/dist/viem/Formatters.d.ts.map +0 -1
  140. package/dist/viem/Formatters.js +0 -104
  141. package/dist/viem/Formatters.js.map +0 -1
  142. package/dist/viem/P256.d.ts +0 -2
  143. package/dist/viem/P256.d.ts.map +0 -1
  144. package/dist/viem/P256.js +0 -2
  145. package/dist/viem/P256.js.map +0 -1
  146. package/dist/viem/Secp256k1.d.ts +0 -2
  147. package/dist/viem/Secp256k1.d.ts.map +0 -1
  148. package/dist/viem/Secp256k1.js +0 -2
  149. package/dist/viem/Secp256k1.js.map +0 -1
  150. package/dist/viem/Storage.d.ts +0 -24
  151. package/dist/viem/Storage.d.ts.map +0 -1
  152. package/dist/viem/Storage.js +0 -68
  153. package/dist/viem/Storage.js.map +0 -1
  154. package/dist/viem/TokenIds.d.ts +0 -2
  155. package/dist/viem/TokenIds.d.ts.map +0 -1
  156. package/dist/viem/TokenIds.js +0 -2
  157. package/dist/viem/TokenIds.js.map +0 -1
  158. package/dist/viem/Transaction.d.ts +0 -76
  159. package/dist/viem/Transaction.d.ts.map +0 -1
  160. package/dist/viem/Transaction.js +0 -176
  161. package/dist/viem/Transaction.js.map +0 -1
  162. package/dist/viem/Transport.d.ts +0 -33
  163. package/dist/viem/Transport.d.ts.map +0 -1
  164. package/dist/viem/Transport.js +0 -138
  165. package/dist/viem/Transport.js.map +0 -1
  166. package/dist/viem/WebAuthnP256.d.ts +0 -82
  167. package/dist/viem/WebAuthnP256.d.ts.map +0 -1
  168. package/dist/viem/WebAuthnP256.js +0 -97
  169. package/dist/viem/WebAuthnP256.js.map +0 -1
  170. package/dist/viem/WebCryptoP256.d.ts +0 -2
  171. package/dist/viem/WebCryptoP256.d.ts.map +0 -1
  172. package/dist/viem/WebCryptoP256.js +0 -2
  173. package/dist/viem/WebCryptoP256.js.map +0 -1
  174. package/dist/viem/index.d.ts +0 -26
  175. package/dist/viem/index.d.ts.map +0 -1
  176. package/dist/viem/index.js +0 -17
  177. package/dist/viem/index.js.map +0 -1
  178. package/dist/viem/internal/types.d.ts +0 -20
  179. package/dist/viem/internal/types.d.ts.map +0 -1
  180. package/dist/viem/internal/types.js +0 -2
  181. package/dist/viem/internal/types.js.map +0 -1
  182. package/dist/viem/internal/utils.d.ts +0 -14
  183. package/dist/viem/internal/utils.d.ts.map +0 -1
  184. package/dist/viem/internal/utils.js +0 -33
  185. package/dist/viem/internal/utils.js.map +0 -1
  186. package/src/chains.ts +0 -54
  187. package/src/viem/Abis.ts +0 -1688
  188. package/src/viem/Account.test.ts +0 -444
  189. package/src/viem/Account.ts +0 -601
  190. package/src/viem/Actions/account.test.ts +0 -414
  191. package/src/viem/Actions/account.ts +0 -106
  192. package/src/viem/Actions/amm.test.ts +0 -381
  193. package/src/viem/Actions/amm.ts +0 -1227
  194. package/src/viem/Actions/dex.test.ts +0 -1549
  195. package/src/viem/Actions/dex.ts +0 -2150
  196. package/src/viem/Actions/faucet.ts +0 -121
  197. package/src/viem/Actions/fee.test.ts +0 -259
  198. package/src/viem/Actions/fee.ts +0 -372
  199. package/src/viem/Actions/index.ts +0 -9
  200. package/src/viem/Actions/nonce.test.ts +0 -206
  201. package/src/viem/Actions/nonce.ts +0 -347
  202. package/src/viem/Actions/policy.test.ts +0 -534
  203. package/src/viem/Actions/policy.ts +0 -1335
  204. package/src/viem/Actions/reward.test.ts +0 -434
  205. package/src/viem/Actions/reward.ts +0 -944
  206. package/src/viem/Actions/token.test.ts +0 -3029
  207. package/src/viem/Actions/token.ts +0 -4458
  208. package/src/viem/Addresses.ts +0 -9
  209. package/src/viem/Chain.bench-d.ts +0 -12
  210. package/src/viem/Chain.test.ts +0 -168
  211. package/src/viem/Chain.ts +0 -157
  212. package/src/viem/Decorator.bench-d.ts +0 -11
  213. package/src/viem/Decorator.test.ts +0 -39
  214. package/src/viem/Decorator.ts +0 -3179
  215. package/src/viem/Formatters.ts +0 -164
  216. package/src/viem/P256.ts +0 -1
  217. package/src/viem/Secp256k1.ts +0 -1
  218. package/src/viem/Storage.ts +0 -110
  219. package/src/viem/TokenIds.ts +0 -1
  220. package/src/viem/Transaction.ts +0 -382
  221. package/src/viem/Transport.ts +0 -191
  222. package/src/viem/WebAuthnP256.ts +0 -146
  223. package/src/viem/WebCryptoP256.ts +0 -1
  224. package/src/viem/e2e.test.ts +0 -1602
  225. package/src/viem/index.ts +0 -30
  226. package/src/viem/internal/types.ts +0 -69
  227. package/src/viem/internal/utils.ts +0 -58
  228. package/src/wagmi/internal/types.ts +0 -16
@@ -2,8 +2,8 @@ import type * as Query from '@tanstack/query-core'
2
2
  import { type Config, getConnectorClient } from '@wagmi/core'
3
3
  import type { ChainIdParameter, ConnectorParameter } from '@wagmi/core/internal'
4
4
  import type { Account } from 'viem'
5
+ import { Actions } from 'viem/tempo'
5
6
  import type { RequiredBy, UnionOmit } from '../../internal/types.js'
6
- import * as viem_Actions from '../../viem/Actions/reward.js'
7
7
 
8
8
  /**
9
9
  * Claims accumulated rewards for a recipient.
@@ -11,11 +11,11 @@ import * as viem_Actions from '../../viem/Actions/reward.js'
11
11
  * @example
12
12
  * ```ts
13
13
  * import { createConfig, http } from '@wagmi/core'
14
- * import { tempo } from 'tempo.ts/chains'
14
+ * import { tempo } from 'viem/chains'
15
15
  * import { Actions } from 'tempo.ts/wagmi'
16
16
  *
17
17
  * const config = createConfig({
18
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
18
+ * chains: [tempoTestnet],
19
19
  * transports: {
20
20
  * [tempo.id]: http(),
21
21
  * },
@@ -33,7 +33,7 @@ import * as viem_Actions from '../../viem/Actions/reward.js'
33
33
  export async function claim<config extends Config>(
34
34
  config: config,
35
35
  parameters: claim.Parameters<config>,
36
- ): Promise<viem_Actions.claim.ReturnValue> {
36
+ ): Promise<Actions.reward.claim.ReturnValue> {
37
37
  const { account, chainId, connector } = parameters
38
38
 
39
39
  const client = await getConnectorClient(config, {
@@ -43,7 +43,7 @@ export async function claim<config extends Config>(
43
43
  connector,
44
44
  })
45
45
 
46
- return viem_Actions.claim(client, parameters as never)
46
+ return Actions.reward.claim(client, parameters as never)
47
47
  }
48
48
 
49
49
  export declare namespace claim {
@@ -51,13 +51,13 @@ export declare namespace claim {
51
51
  ChainIdParameter<config> &
52
52
  ConnectorParameter &
53
53
  UnionOmit<
54
- viem_Actions.claim.Parameters<config['chains'][number], Account>,
54
+ Actions.reward.claim.Parameters<config['chains'][number], Account>,
55
55
  'chain'
56
56
  >
57
57
 
58
- export type ReturnValue = viem_Actions.claim.ReturnValue
58
+ export type ReturnValue = Actions.reward.claim.ReturnValue
59
59
 
60
- export type ErrorType = viem_Actions.claim.ErrorType
60
+ export type ErrorType = Actions.reward.claim.ErrorType
61
61
  }
62
62
 
63
63
  /**
@@ -66,11 +66,11 @@ export declare namespace claim {
66
66
  * @example
67
67
  * ```ts
68
68
  * import { createConfig, http } from '@wagmi/core'
69
- * import { tempo } from 'tempo.ts/chains'
69
+ * import { tempo } from 'viem/chains'
70
70
  * import { Actions } from 'tempo.ts/wagmi'
71
71
  *
72
72
  * const config = createConfig({
73
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
73
+ * chains: [tempoTestnet],
74
74
  * transports: {
75
75
  * [tempo.id]: http(),
76
76
  * },
@@ -88,7 +88,7 @@ export declare namespace claim {
88
88
  export async function claimSync<config extends Config>(
89
89
  config: config,
90
90
  parameters: claimSync.Parameters<config>,
91
- ): Promise<viem_Actions.claimSync.ReturnValue> {
91
+ ): Promise<Actions.reward.claimSync.ReturnValue> {
92
92
  const { account, chainId, connector } = parameters
93
93
 
94
94
  const client = await getConnectorClient(config, {
@@ -98,7 +98,7 @@ export async function claimSync<config extends Config>(
98
98
  connector,
99
99
  })
100
100
 
101
- return viem_Actions.claimSync(client, parameters as never)
101
+ return Actions.reward.claimSync(client, parameters as never)
102
102
  }
103
103
 
104
104
  export declare namespace claimSync {
@@ -106,13 +106,13 @@ export declare namespace claimSync {
106
106
  ChainIdParameter<config> &
107
107
  ConnectorParameter &
108
108
  UnionOmit<
109
- viem_Actions.claimSync.Parameters<config['chains'][number], Account>,
109
+ Actions.reward.claimSync.Parameters<config['chains'][number], Account>,
110
110
  'chain'
111
111
  >
112
112
 
113
- export type ReturnValue = viem_Actions.claimSync.ReturnValue
113
+ export type ReturnValue = Actions.reward.claimSync.ReturnValue
114
114
 
115
- export type ErrorType = viem_Actions.claimSync.ErrorType
115
+ export type ErrorType = Actions.reward.claimSync.ErrorType
116
116
  }
117
117
 
118
118
  /**
@@ -121,11 +121,11 @@ export declare namespace claimSync {
121
121
  * @example
122
122
  * ```ts
123
123
  * import { createConfig, http } from '@wagmi/core'
124
- * import { tempo } from 'tempo.ts/chains'
124
+ * import { tempo } from 'viem/chains'
125
125
  * import { Actions } from 'tempo.ts/wagmi'
126
126
  *
127
127
  * const config = createConfig({
128
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
128
+ * chains: [tempoTestnet],
129
129
  * transports: {
130
130
  * [tempo.id]: http(),
131
131
  * },
@@ -146,14 +146,14 @@ export function getTotalPerSecond<config extends Config>(
146
146
  ) {
147
147
  const { chainId, ...rest } = parameters
148
148
  const client = config.getClient({ chainId })
149
- return viem_Actions.getTotalPerSecond(client, rest)
149
+ return Actions.reward.getTotalPerSecond(client, rest)
150
150
  }
151
151
 
152
152
  export namespace getTotalPerSecond {
153
153
  export type Parameters<config extends Config> = ChainIdParameter<config> &
154
- viem_Actions.getTotalPerSecond.Parameters
154
+ Actions.reward.getTotalPerSecond.Parameters
155
155
 
156
- export type ReturnValue = viem_Actions.getTotalPerSecond.ReturnValue
156
+ export type ReturnValue = Actions.reward.getTotalPerSecond.ReturnValue
157
157
 
158
158
  export function queryKey<config extends Config>(
159
159
  parameters: Parameters<config>,
@@ -211,11 +211,11 @@ export namespace getTotalPerSecond {
211
211
  * @example
212
212
  * ```ts
213
213
  * import { createConfig, http } from '@wagmi/core'
214
- * import { tempo } from 'tempo.ts/chains'
214
+ * import { tempo } from 'viem/chains'
215
215
  * import { Actions } from 'tempo.ts/wagmi'
216
216
  *
217
217
  * const config = createConfig({
218
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
218
+ * chains: [tempoTestnet],
219
219
  * transports: {
220
220
  * [tempo.id]: http(),
221
221
  * },
@@ -237,14 +237,14 @@ export function getUserRewardInfo<config extends Config>(
237
237
  ) {
238
238
  const { chainId, ...rest } = parameters
239
239
  const client = config.getClient({ chainId })
240
- return viem_Actions.getUserRewardInfo(client, rest)
240
+ return Actions.reward.getUserRewardInfo(client, rest)
241
241
  }
242
242
 
243
243
  export namespace getUserRewardInfo {
244
244
  export type Parameters<config extends Config> = ChainIdParameter<config> &
245
- viem_Actions.getUserRewardInfo.Parameters
245
+ Actions.reward.getUserRewardInfo.Parameters
246
246
 
247
- export type ReturnValue = viem_Actions.getUserRewardInfo.ReturnValue
247
+ export type ReturnValue = Actions.reward.getUserRewardInfo.ReturnValue
248
248
 
249
249
  export function queryKey<config extends Config>(
250
250
  parameters: Parameters<config>,
@@ -302,11 +302,11 @@ export namespace getUserRewardInfo {
302
302
  * @example
303
303
  * ```ts
304
304
  * import { createConfig, http } from '@wagmi/core'
305
- * import { tempo } from 'tempo.ts/chains'
305
+ * import { tempo } from 'viem/chains'
306
306
  * import { Actions } from 'tempo.ts/wagmi'
307
307
  *
308
308
  * const config = createConfig({
309
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
309
+ * chains: [tempoTestnet],
310
310
  * transports: {
311
311
  * [tempo.id]: http(),
312
312
  * },
@@ -325,7 +325,7 @@ export namespace getUserRewardInfo {
325
325
  export async function setRecipient<config extends Config>(
326
326
  config: config,
327
327
  parameters: setRecipient.Parameters<config>,
328
- ): Promise<viem_Actions.setRecipient.ReturnValue> {
328
+ ): Promise<Actions.reward.setRecipient.ReturnValue> {
329
329
  const { account, chainId, connector } = parameters
330
330
 
331
331
  const client = await getConnectorClient(config, {
@@ -335,7 +335,7 @@ export async function setRecipient<config extends Config>(
335
335
  connector,
336
336
  })
337
337
 
338
- return viem_Actions.setRecipient(client, parameters as never)
338
+ return Actions.reward.setRecipient(client, parameters as never)
339
339
  }
340
340
 
341
341
  export declare namespace setRecipient {
@@ -343,13 +343,16 @@ export declare namespace setRecipient {
343
343
  ChainIdParameter<config> &
344
344
  ConnectorParameter &
345
345
  UnionOmit<
346
- viem_Actions.setRecipient.Parameters<config['chains'][number], Account>,
346
+ Actions.reward.setRecipient.Parameters<
347
+ config['chains'][number],
348
+ Account
349
+ >,
347
350
  'chain'
348
351
  >
349
352
 
350
- export type ReturnValue = viem_Actions.setRecipient.ReturnValue
353
+ export type ReturnValue = Actions.reward.setRecipient.ReturnValue
351
354
 
352
- export type ErrorType = viem_Actions.setRecipient.ErrorType
355
+ export type ErrorType = Actions.reward.setRecipient.ErrorType
353
356
  }
354
357
 
355
358
  /**
@@ -358,11 +361,11 @@ export declare namespace setRecipient {
358
361
  * @example
359
362
  * ```ts
360
363
  * import { createConfig, http } from '@wagmi/core'
361
- * import { tempo } from 'tempo.ts/chains'
364
+ * import { tempo } from 'viem/chains'
362
365
  * import { Actions } from 'tempo.ts/wagmi'
363
366
  *
364
367
  * const config = createConfig({
365
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
368
+ * chains: [tempoTestnet],
366
369
  * transports: {
367
370
  * [tempo.id]: http(),
368
371
  * },
@@ -381,7 +384,7 @@ export declare namespace setRecipient {
381
384
  export async function setRecipientSync<config extends Config>(
382
385
  config: config,
383
386
  parameters: setRecipientSync.Parameters<config>,
384
- ): Promise<viem_Actions.setRecipientSync.ReturnValue> {
387
+ ): Promise<Actions.reward.setRecipientSync.ReturnValue> {
385
388
  const { account, chainId, connector } = parameters
386
389
 
387
390
  const client = await getConnectorClient(config, {
@@ -391,7 +394,7 @@ export async function setRecipientSync<config extends Config>(
391
394
  connector,
392
395
  })
393
396
 
394
- return viem_Actions.setRecipientSync(client, parameters as never)
397
+ return Actions.reward.setRecipientSync(client, parameters as never)
395
398
  }
396
399
 
397
400
  export declare namespace setRecipientSync {
@@ -399,16 +402,16 @@ export declare namespace setRecipientSync {
399
402
  ChainIdParameter<config> &
400
403
  ConnectorParameter &
401
404
  UnionOmit<
402
- viem_Actions.setRecipientSync.Parameters<
405
+ Actions.reward.setRecipientSync.Parameters<
403
406
  config['chains'][number],
404
407
  Account
405
408
  >,
406
409
  'chain'
407
410
  >
408
411
 
409
- export type ReturnValue = viem_Actions.setRecipientSync.ReturnValue
412
+ export type ReturnValue = Actions.reward.setRecipientSync.ReturnValue
410
413
 
411
- export type ErrorType = viem_Actions.setRecipientSync.ErrorType
414
+ export type ErrorType = Actions.reward.setRecipientSync.ErrorType
412
415
  }
413
416
 
414
417
  /**
@@ -417,11 +420,11 @@ export declare namespace setRecipientSync {
417
420
  * @example
418
421
  * ```ts
419
422
  * import { createConfig, http } from '@wagmi/core'
420
- * import { tempo } from 'tempo.ts/chains'
423
+ * import { tempo } from 'viem/chains'
421
424
  * import { Actions } from 'tempo.ts/wagmi'
422
425
  *
423
426
  * const config = createConfig({
424
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
427
+ * chains: [tempoTestnet],
425
428
  * transports: {
426
429
  * [tempo.id]: http(),
427
430
  * },
@@ -441,7 +444,7 @@ export declare namespace setRecipientSync {
441
444
  export async function start<config extends Config>(
442
445
  config: config,
443
446
  parameters: start.Parameters<config>,
444
- ): Promise<viem_Actions.start.ReturnValue> {
447
+ ): Promise<Actions.reward.start.ReturnValue> {
445
448
  const { account, chainId, connector } = parameters
446
449
 
447
450
  const client = await getConnectorClient(config, {
@@ -451,7 +454,7 @@ export async function start<config extends Config>(
451
454
  connector,
452
455
  })
453
456
 
454
- return viem_Actions.start(client, parameters as never)
457
+ return Actions.reward.start(client, parameters as never)
455
458
  }
456
459
 
457
460
  export declare namespace start {
@@ -459,13 +462,13 @@ export declare namespace start {
459
462
  ChainIdParameter<config> &
460
463
  ConnectorParameter &
461
464
  UnionOmit<
462
- viem_Actions.start.Parameters<config['chains'][number], Account>,
465
+ Actions.reward.start.Parameters<config['chains'][number], Account>,
463
466
  'chain'
464
467
  >
465
468
 
466
- export type ReturnValue = viem_Actions.start.ReturnValue
469
+ export type ReturnValue = Actions.reward.start.ReturnValue
467
470
 
468
- export type ErrorType = viem_Actions.start.ErrorType
471
+ export type ErrorType = Actions.reward.start.ErrorType
469
472
  }
470
473
 
471
474
  /**
@@ -474,11 +477,11 @@ export declare namespace start {
474
477
  * @example
475
478
  * ```ts
476
479
  * import { createConfig, http } from '@wagmi/core'
477
- * import { tempo } from 'tempo.ts/chains'
480
+ * import { tempo } from 'viem/chains'
478
481
  * import { Actions } from 'tempo.ts/wagmi'
479
482
  *
480
483
  * const config = createConfig({
481
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
484
+ * chains: [tempoTestnet],
482
485
  * transports: {
483
486
  * [tempo.id]: http(),
484
487
  * },
@@ -498,7 +501,7 @@ export declare namespace start {
498
501
  export async function startSync<config extends Config>(
499
502
  config: config,
500
503
  parameters: startSync.Parameters<config>,
501
- ): Promise<viem_Actions.startSync.ReturnValue> {
504
+ ): Promise<Actions.reward.startSync.ReturnValue> {
502
505
  const { account, chainId, connector } = parameters
503
506
 
504
507
  const client = await getConnectorClient(config, {
@@ -508,7 +511,7 @@ export async function startSync<config extends Config>(
508
511
  connector,
509
512
  })
510
513
 
511
- return viem_Actions.startSync(client, parameters as never)
514
+ return Actions.reward.startSync(client, parameters as never)
512
515
  }
513
516
 
514
517
  export declare namespace startSync {
@@ -516,13 +519,13 @@ export declare namespace startSync {
516
519
  ChainIdParameter<config> &
517
520
  ConnectorParameter &
518
521
  UnionOmit<
519
- viem_Actions.startSync.Parameters<config['chains'][number], Account>,
522
+ Actions.reward.startSync.Parameters<config['chains'][number], Account>,
520
523
  'chain'
521
524
  >
522
525
 
523
- export type ReturnValue = viem_Actions.startSync.ReturnValue
526
+ export type ReturnValue = Actions.reward.startSync.ReturnValue
524
527
 
525
- export type ErrorType = viem_Actions.startSync.ErrorType
528
+ export type ErrorType = Actions.reward.startSync.ErrorType
526
529
  }
527
530
 
528
531
  /**
@@ -531,11 +534,11 @@ export declare namespace startSync {
531
534
  * @example
532
535
  * ```ts
533
536
  * import { createConfig, http } from '@wagmi/core'
534
- * import { tempo } from 'tempo.ts/chains'
537
+ * import { tempo } from 'viem/chains'
535
538
  * import { Actions } from 'tempo.ts/wagmi'
536
539
  *
537
540
  * const config = createConfig({
538
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
541
+ * chains: [tempoTestnet],
539
542
  * transports: {
540
543
  * [tempo.id]: http(),
541
544
  * },
@@ -559,12 +562,12 @@ export function watchRewardScheduled<config extends Config>(
559
562
  ) {
560
563
  const { chainId, ...rest } = parameters
561
564
  const client = config.getClient({ chainId })
562
- return viem_Actions.watchRewardScheduled(client, rest)
565
+ return Actions.reward.watchRewardScheduled(client, rest)
563
566
  }
564
567
 
565
568
  export declare namespace watchRewardScheduled {
566
569
  export type Parameters<config extends Config> = ChainIdParameter<config> &
567
- viem_Actions.watchRewardScheduled.Parameters
570
+ Actions.reward.watchRewardScheduled.Parameters
568
571
  }
569
572
 
570
573
  /**
@@ -573,11 +576,11 @@ export declare namespace watchRewardScheduled {
573
576
  * @example
574
577
  * ```ts
575
578
  * import { createConfig, http } from '@wagmi/core'
576
- * import { tempo } from 'tempo.ts/chains'
579
+ * import { tempo } from 'viem/chains'
577
580
  * import { Actions } from 'tempo.ts/wagmi'
578
581
  *
579
582
  * const config = createConfig({
580
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
583
+ * chains: [tempoTestnet],
581
584
  * transports: {
582
585
  * [tempo.id]: http(),
583
586
  * },
@@ -601,10 +604,10 @@ export function watchRewardRecipientSet<config extends Config>(
601
604
  ) {
602
605
  const { chainId, ...rest } = parameters
603
606
  const client = config.getClient({ chainId })
604
- return viem_Actions.watchRewardRecipientSet(client, rest)
607
+ return Actions.reward.watchRewardRecipientSet(client, rest)
605
608
  }
606
609
 
607
610
  export declare namespace watchRewardRecipientSet {
608
611
  export type Parameters<config extends Config> = ChainIdParameter<config> &
609
- viem_Actions.watchRewardRecipientSet.Parameters
612
+ Actions.reward.watchRewardRecipientSet.Parameters
610
613
  }