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/amm.js'
7
7
 
8
8
  /**
9
9
  * Gets the reserves for a liquidity pool.
@@ -11,11 +11,11 @@ import * as viem_Actions from '../../viem/Actions/amm.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
  * },
@@ -37,14 +37,14 @@ export function getPool<config extends Config>(
37
37
  ) {
38
38
  const { chainId, ...rest } = parameters
39
39
  const client = config.getClient({ chainId })
40
- return viem_Actions.getPool(client, rest)
40
+ return Actions.amm.getPool(client, rest)
41
41
  }
42
42
 
43
43
  export namespace getPool {
44
44
  export type Parameters<config extends Config> = ChainIdParameter<config> &
45
- viem_Actions.getPool.Parameters
45
+ Actions.amm.getPool.Parameters
46
46
 
47
- export type ReturnValue = viem_Actions.getPool.ReturnValue
47
+ export type ReturnValue = Actions.amm.getPool.ReturnValue
48
48
 
49
49
  export function queryKey<config extends Config>(
50
50
  parameters: Parameters<config>,
@@ -102,11 +102,11 @@ export namespace getPool {
102
102
  * @example
103
103
  * ```ts
104
104
  * import { createConfig, http } from '@wagmi/core'
105
- * import { tempo } from 'tempo.ts/chains'
105
+ * import { tempo } from 'viem/chains'
106
106
  * import { Actions } from 'tempo.ts/wagmi'
107
107
  *
108
108
  * const config = createConfig({
109
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
109
+ * chains: [tempoTestnet],
110
110
  * transports: {
111
111
  * [tempo.id]: http(),
112
112
  * },
@@ -133,14 +133,14 @@ export function getLiquidityBalance<config extends Config>(
133
133
  ) {
134
134
  const { chainId, ...rest } = parameters
135
135
  const client = config.getClient({ chainId })
136
- return viem_Actions.getLiquidityBalance(client, rest)
136
+ return Actions.amm.getLiquidityBalance(client, rest)
137
137
  }
138
138
 
139
139
  export namespace getLiquidityBalance {
140
140
  export type Parameters<config extends Config> = ChainIdParameter<config> &
141
- viem_Actions.getLiquidityBalance.Parameters
141
+ Actions.amm.getLiquidityBalance.Parameters
142
142
 
143
- export type ReturnValue = viem_Actions.getLiquidityBalance.ReturnValue
143
+ export type ReturnValue = Actions.amm.getLiquidityBalance.ReturnValue
144
144
 
145
145
  export function queryKey<config extends Config>(
146
146
  parameters: Parameters<config>,
@@ -198,11 +198,11 @@ export namespace getLiquidityBalance {
198
198
  * @example
199
199
  * ```ts
200
200
  * import { createConfig, http } from '@wagmi/core'
201
- * import { tempo } from 'tempo.ts/chains'
201
+ * import { tempo } from 'viem/chains'
202
202
  * import { Actions } from 'tempo.ts/wagmi'
203
203
  *
204
204
  * const config = createConfig({
205
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
205
+ * chains: [tempoTestnet],
206
206
  * transports: {
207
207
  * [tempo.id]: http(),
208
208
  * },
@@ -223,7 +223,7 @@ export namespace getLiquidityBalance {
223
223
  export async function rebalanceSwap<config extends Config>(
224
224
  config: config,
225
225
  parameters: rebalanceSwap.Parameters<config>,
226
- ): Promise<viem_Actions.rebalanceSwap.ReturnValue> {
226
+ ): Promise<Actions.amm.rebalanceSwap.ReturnValue> {
227
227
  const { account, chainId, connector } = parameters
228
228
 
229
229
  const client = await getConnectorClient(config, {
@@ -233,18 +233,18 @@ export async function rebalanceSwap<config extends Config>(
233
233
  connector,
234
234
  })
235
235
 
236
- return viem_Actions.rebalanceSwap(client, parameters as never)
236
+ return Actions.amm.rebalanceSwap(client, parameters as never)
237
237
  }
238
238
 
239
239
  export declare namespace rebalanceSwap {
240
240
  export type Parameters<config extends Config> = ChainIdParameter<config> &
241
241
  ConnectorParameter &
242
242
  UnionOmit<
243
- viem_Actions.rebalanceSwap.Parameters<config['chains'][number], Account>,
243
+ Actions.amm.rebalanceSwap.Parameters<config['chains'][number], Account>,
244
244
  'chain'
245
245
  >
246
246
 
247
- export type ReturnValue = viem_Actions.rebalanceSwap.ReturnValue
247
+ export type ReturnValue = Actions.amm.rebalanceSwap.ReturnValue
248
248
  }
249
249
 
250
250
  /**
@@ -253,11 +253,11 @@ export declare namespace rebalanceSwap {
253
253
  * @example
254
254
  * ```ts
255
255
  * import { createConfig, http } from '@wagmi/core'
256
- * import { tempo } from 'tempo.ts/chains'
256
+ * import { tempo } from 'viem/chains'
257
257
  * import { Actions } from 'tempo.ts/wagmi'
258
258
  *
259
259
  * const config = createConfig({
260
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
260
+ * chains: [tempoTestnet],
261
261
  * transports: {
262
262
  * [tempo.id]: http(),
263
263
  * },
@@ -278,7 +278,7 @@ export declare namespace rebalanceSwap {
278
278
  export async function rebalanceSwapSync<config extends Config>(
279
279
  config: config,
280
280
  parameters: rebalanceSwapSync.Parameters<config>,
281
- ): Promise<viem_Actions.rebalanceSwapSync.ReturnValue> {
281
+ ): Promise<Actions.amm.rebalanceSwapSync.ReturnValue> {
282
282
  const { account, chainId, connector } = parameters
283
283
 
284
284
  const client = await getConnectorClient(config, {
@@ -288,21 +288,21 @@ export async function rebalanceSwapSync<config extends Config>(
288
288
  connector,
289
289
  })
290
290
 
291
- return viem_Actions.rebalanceSwapSync(client, parameters as never)
291
+ return Actions.amm.rebalanceSwapSync(client, parameters as never)
292
292
  }
293
293
 
294
294
  export declare namespace rebalanceSwapSync {
295
295
  export type Parameters<config extends Config> = ChainIdParameter<config> &
296
296
  ConnectorParameter &
297
297
  UnionOmit<
298
- viem_Actions.rebalanceSwapSync.Parameters<
298
+ Actions.amm.rebalanceSwapSync.Parameters<
299
299
  config['chains'][number],
300
300
  Account
301
301
  >,
302
302
  'chain'
303
303
  >
304
304
 
305
- export type ReturnValue = viem_Actions.rebalanceSwapSync.ReturnValue
305
+ export type ReturnValue = Actions.amm.rebalanceSwapSync.ReturnValue
306
306
  }
307
307
 
308
308
  /**
@@ -311,11 +311,11 @@ export declare namespace rebalanceSwapSync {
311
311
  * @example
312
312
  * ```ts
313
313
  * import { createConfig, http } from '@wagmi/core'
314
- * import { tempo } from 'tempo.ts/chains'
314
+ * import { tempo } from 'viem/chains'
315
315
  * import { Actions } from 'tempo.ts/wagmi'
316
316
  *
317
317
  * const config = createConfig({
318
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
318
+ * chains: [tempoTestnet],
319
319
  * transports: {
320
320
  * [tempo.id]: http(),
321
321
  * },
@@ -336,7 +336,7 @@ export declare namespace rebalanceSwapSync {
336
336
  export async function mint<config extends Config>(
337
337
  config: config,
338
338
  parameters: mint.Parameters<config>,
339
- ): Promise<viem_Actions.mint.ReturnValue> {
339
+ ): Promise<Actions.amm.mint.ReturnValue> {
340
340
  const { account, chainId, connector } = parameters
341
341
 
342
342
  const client = await getConnectorClient(config, {
@@ -346,18 +346,18 @@ export async function mint<config extends Config>(
346
346
  connector,
347
347
  })
348
348
 
349
- return viem_Actions.mint(client, parameters as never)
349
+ return Actions.amm.mint(client, parameters as never)
350
350
  }
351
351
 
352
352
  export declare namespace mint {
353
353
  export type Parameters<config extends Config> = ChainIdParameter<config> &
354
354
  ConnectorParameter &
355
355
  UnionOmit<
356
- viem_Actions.mint.Parameters<config['chains'][number], Account>,
356
+ Actions.amm.mint.Parameters<config['chains'][number], Account>,
357
357
  'chain'
358
358
  >
359
359
 
360
- export type ReturnValue = viem_Actions.mint.ReturnValue
360
+ export type ReturnValue = Actions.amm.mint.ReturnValue
361
361
  }
362
362
 
363
363
  /**
@@ -366,11 +366,11 @@ export declare namespace mint {
366
366
  * @example
367
367
  * ```ts
368
368
  * import { createConfig, http } from '@wagmi/core'
369
- * import { tempo } from 'tempo.ts/chains'
369
+ * import { tempo } from 'viem/chains'
370
370
  * import { Actions } from 'tempo.ts/wagmi'
371
371
  *
372
372
  * const config = createConfig({
373
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
373
+ * chains: [tempoTestnet],
374
374
  * transports: {
375
375
  * [tempo.id]: http(),
376
376
  * },
@@ -391,7 +391,7 @@ export declare namespace mint {
391
391
  export async function mintSync<config extends Config>(
392
392
  config: config,
393
393
  parameters: mintSync.Parameters<config>,
394
- ): Promise<viem_Actions.mintSync.ReturnValue> {
394
+ ): Promise<Actions.amm.mintSync.ReturnValue> {
395
395
  const { account, chainId, connector } = parameters
396
396
 
397
397
  const client = await getConnectorClient(config, {
@@ -401,18 +401,18 @@ export async function mintSync<config extends Config>(
401
401
  connector,
402
402
  })
403
403
 
404
- return viem_Actions.mintSync(client, parameters as never)
404
+ return Actions.amm.mintSync(client, parameters as never)
405
405
  }
406
406
 
407
407
  export declare namespace mintSync {
408
408
  export type Parameters<config extends Config> = ChainIdParameter<config> &
409
409
  ConnectorParameter &
410
410
  UnionOmit<
411
- viem_Actions.mintSync.Parameters<config['chains'][number], Account>,
411
+ Actions.amm.mintSync.Parameters<config['chains'][number], Account>,
412
412
  'chain'
413
413
  >
414
414
 
415
- export type ReturnValue = viem_Actions.mintSync.ReturnValue
415
+ export type ReturnValue = Actions.amm.mintSync.ReturnValue
416
416
  }
417
417
 
418
418
  /**
@@ -421,11 +421,11 @@ export declare namespace mintSync {
421
421
  * @example
422
422
  * ```ts
423
423
  * import { createConfig, http } from '@wagmi/core'
424
- * import { tempo } from 'tempo.ts/chains'
424
+ * import { tempo } from 'viem/chains'
425
425
  * import { Actions } from 'tempo.ts/wagmi'
426
426
  *
427
427
  * const config = createConfig({
428
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
428
+ * chains: [tempoTestnet],
429
429
  * transports: {
430
430
  * [tempo.id]: http(),
431
431
  * },
@@ -446,7 +446,7 @@ export declare namespace mintSync {
446
446
  export async function burn<config extends Config>(
447
447
  config: config,
448
448
  parameters: burn.Parameters<config>,
449
- ): Promise<viem_Actions.burn.ReturnValue> {
449
+ ): Promise<Actions.amm.burn.ReturnValue> {
450
450
  const { account, chainId, connector } = parameters
451
451
 
452
452
  const client = await getConnectorClient(config, {
@@ -456,18 +456,18 @@ export async function burn<config extends Config>(
456
456
  connector,
457
457
  })
458
458
 
459
- return viem_Actions.burn(client, parameters as never)
459
+ return Actions.amm.burn(client, parameters as never)
460
460
  }
461
461
 
462
462
  export declare namespace burn {
463
463
  export type Parameters<config extends Config> = ChainIdParameter<config> &
464
464
  ConnectorParameter &
465
465
  UnionOmit<
466
- viem_Actions.burn.Parameters<config['chains'][number], Account>,
466
+ Actions.amm.burn.Parameters<config['chains'][number], Account>,
467
467
  'chain'
468
468
  >
469
469
 
470
- export type ReturnValue = viem_Actions.burn.ReturnValue
470
+ export type ReturnValue = Actions.amm.burn.ReturnValue
471
471
  }
472
472
 
473
473
  /**
@@ -476,11 +476,11 @@ export declare namespace burn {
476
476
  * @example
477
477
  * ```ts
478
478
  * import { createConfig, http } from '@wagmi/core'
479
- * import { tempo } from 'tempo.ts/chains'
479
+ * import { tempo } from 'viem/chains'
480
480
  * import { Actions } from 'tempo.ts/wagmi'
481
481
  *
482
482
  * const config = createConfig({
483
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
483
+ * chains: [tempoTestnet],
484
484
  * transports: {
485
485
  * [tempo.id]: http(),
486
486
  * },
@@ -501,7 +501,7 @@ export declare namespace burn {
501
501
  export async function burnSync<config extends Config>(
502
502
  config: config,
503
503
  parameters: burnSync.Parameters<config>,
504
- ): Promise<viem_Actions.burnSync.ReturnValue> {
504
+ ): Promise<Actions.amm.burnSync.ReturnValue> {
505
505
  const { account, chainId, connector } = parameters
506
506
 
507
507
  const client = await getConnectorClient(config, {
@@ -511,18 +511,18 @@ export async function burnSync<config extends Config>(
511
511
  connector,
512
512
  })
513
513
 
514
- return viem_Actions.burnSync(client, parameters as never)
514
+ return Actions.amm.burnSync(client, parameters as never)
515
515
  }
516
516
 
517
517
  export declare namespace burnSync {
518
518
  export type Parameters<config extends Config> = ChainIdParameter<config> &
519
519
  ConnectorParameter &
520
520
  UnionOmit<
521
- viem_Actions.burnSync.Parameters<config['chains'][number], Account>,
521
+ Actions.amm.burnSync.Parameters<config['chains'][number], Account>,
522
522
  'chain'
523
523
  >
524
524
 
525
- export type ReturnValue = viem_Actions.burnSync.ReturnValue
525
+ export type ReturnValue = Actions.amm.burnSync.ReturnValue
526
526
  }
527
527
 
528
528
  /**
@@ -531,11 +531,11 @@ export declare namespace burnSync {
531
531
  * @example
532
532
  * ```ts
533
533
  * import { createConfig, http } from '@wagmi/core'
534
- * import { tempo } from 'tempo.ts/chains'
534
+ * import { tempo } from 'viem/chains'
535
535
  * import { Actions } from 'tempo.ts/wagmi'
536
536
  *
537
537
  * const config = createConfig({
538
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
538
+ * chains: [tempoTestnet],
539
539
  * transports: {
540
540
  * [tempo.id]: http(),
541
541
  * },
@@ -558,12 +558,12 @@ export function watchRebalanceSwap<config extends Config>(
558
558
  ) {
559
559
  const { chainId, ...rest } = parameters
560
560
  const client = config.getClient({ chainId })
561
- return viem_Actions.watchRebalanceSwap(client, rest)
561
+ return Actions.amm.watchRebalanceSwap(client, rest)
562
562
  }
563
563
 
564
564
  export declare namespace watchRebalanceSwap {
565
565
  export type Parameters<config extends Config> = ChainIdParameter<config> &
566
- viem_Actions.watchRebalanceSwap.Parameters
566
+ Actions.amm.watchRebalanceSwap.Parameters
567
567
  }
568
568
 
569
569
  /**
@@ -572,11 +572,11 @@ export declare namespace watchRebalanceSwap {
572
572
  * @example
573
573
  * ```ts
574
574
  * import { createConfig, http } from '@wagmi/core'
575
- * import { tempo } from 'tempo.ts/chains'
575
+ * import { tempo } from 'viem/chains'
576
576
  * import { Actions } from 'tempo.ts/wagmi'
577
577
  *
578
578
  * const config = createConfig({
579
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
579
+ * chains: [tempoTestnet],
580
580
  * transports: {
581
581
  * [tempo.id]: http(),
582
582
  * },
@@ -599,12 +599,12 @@ export function watchFeeSwap<config extends Config>(
599
599
  ) {
600
600
  const { chainId, ...rest } = parameters
601
601
  const client = config.getClient({ chainId })
602
- return viem_Actions.watchFeeSwap(client, rest)
602
+ return Actions.amm.watchFeeSwap(client, rest)
603
603
  }
604
604
 
605
605
  export declare namespace watchFeeSwap {
606
606
  export type Parameters<config extends Config> = ChainIdParameter<config> &
607
- viem_Actions.watchFeeSwap.Parameters
607
+ Actions.amm.watchFeeSwap.Parameters
608
608
  }
609
609
 
610
610
  /**
@@ -613,11 +613,11 @@ export declare namespace watchFeeSwap {
613
613
  * @example
614
614
  * ```ts
615
615
  * import { createConfig, http } from '@wagmi/core'
616
- * import { tempo } from 'tempo.ts/chains'
616
+ * import { tempo } from 'viem/chains'
617
617
  * import { Actions } from 'tempo.ts/wagmi'
618
618
  *
619
619
  * const config = createConfig({
620
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
620
+ * chains: [tempoTestnet],
621
621
  * transports: {
622
622
  * [tempo.id]: http(),
623
623
  * },
@@ -640,12 +640,12 @@ export function watchMint<config extends Config>(
640
640
  ) {
641
641
  const { chainId, ...rest } = parameters
642
642
  const client = config.getClient({ chainId })
643
- return viem_Actions.watchMint(client, rest)
643
+ return Actions.amm.watchMint(client, rest)
644
644
  }
645
645
 
646
646
  export declare namespace watchMint {
647
647
  export type Parameters<config extends Config> = ChainIdParameter<config> &
648
- viem_Actions.watchMint.Parameters
648
+ Actions.amm.watchMint.Parameters
649
649
  }
650
650
 
651
651
  /**
@@ -654,11 +654,11 @@ export declare namespace watchMint {
654
654
  * @example
655
655
  * ```ts
656
656
  * import { createConfig, http } from '@wagmi/core'
657
- * import { tempo } from 'tempo.ts/chains'
657
+ * import { tempo } from 'viem/chains'
658
658
  * import { Actions } from 'tempo.ts/wagmi'
659
659
  *
660
660
  * const config = createConfig({
661
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
661
+ * chains: [tempoTestnet],
662
662
  * transports: {
663
663
  * [tempo.id]: http(),
664
664
  * },
@@ -681,10 +681,10 @@ export function watchBurn<config extends Config>(
681
681
  ) {
682
682
  const { chainId, ...rest } = parameters
683
683
  const client = config.getClient({ chainId })
684
- return viem_Actions.watchBurn(client, rest)
684
+ return Actions.amm.watchBurn(client, rest)
685
685
  }
686
686
 
687
687
  export declare namespace watchBurn {
688
688
  export type Parameters<config extends Config> = ChainIdParameter<config> &
689
- viem_Actions.watchBurn.Parameters
689
+ Actions.amm.watchBurn.Parameters
690
690
  }
@@ -1,7 +1,7 @@
1
1
  import { connect } from '@wagmi/core'
2
- import { Tick } from 'tempo.ts/viem'
3
2
  import { Actions } from 'tempo.ts/wagmi'
4
3
  import { isAddress, parseUnits } from 'viem'
4
+ import { Tick } from 'viem/tempo'
5
5
  import { beforeAll, describe, expect, test } from 'vitest'
6
6
  import { addresses } from '../../../test/config.js'
7
7
  import { accounts } from '../../../test/viem/config.js'