tempo.ts 0.11.1 → 0.12.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.
Files changed (228) hide show
  1. package/CHANGELOG.md +61 -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 +2 -12
  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,10 +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/policy.js'
7
-
8
- export type { PolicyType } from '../../viem/Actions/policy.js'
9
7
 
10
8
  /**
11
9
  * Creates a new policy.
@@ -13,11 +11,11 @@ export type { PolicyType } from '../../viem/Actions/policy.js'
13
11
  * @example
14
12
  * ```ts
15
13
  * import { createConfig, http } from '@wagmi/core'
16
- * import { tempo } from 'tempo.ts/chains'
14
+ * import { tempo } from 'viem/chains'
17
15
  * import { Actions } from 'tempo.ts/wagmi'
18
16
  *
19
17
  * const config = createConfig({
20
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
18
+ * chains: [tempoTestnet],
21
19
  * transports: {
22
20
  * [tempo.id]: http(),
23
21
  * },
@@ -35,7 +33,7 @@ export type { PolicyType } from '../../viem/Actions/policy.js'
35
33
  export async function create<config extends Config>(
36
34
  config: config,
37
35
  parameters: create.Parameters<config>,
38
- ): Promise<viem_Actions.create.ReturnValue> {
36
+ ): Promise<Actions.policy.create.ReturnValue> {
39
37
  const { account, chainId, connector } = parameters
40
38
 
41
39
  const client = await getConnectorClient(config, {
@@ -45,20 +43,20 @@ export async function create<config extends Config>(
45
43
  connector,
46
44
  })
47
45
 
48
- return viem_Actions.create(client, parameters as never)
46
+ return Actions.policy.create(client, parameters as never)
49
47
  }
50
48
 
51
49
  export declare namespace create {
52
50
  export type Parameters<config extends Config> = ChainIdParameter<config> &
53
51
  ConnectorParameter &
54
52
  UnionOmit<
55
- viem_Actions.create.Parameters<config['chains'][number], Account>,
53
+ Actions.policy.create.Parameters<config['chains'][number], Account>,
56
54
  'chain' | 'admin'
57
55
  >
58
56
 
59
- export type ReturnValue = viem_Actions.create.ReturnValue
57
+ export type ReturnValue = Actions.policy.create.ReturnValue
60
58
 
61
- export type ErrorType = viem_Actions.create.ErrorType
59
+ export type ErrorType = Actions.policy.create.ErrorType
62
60
  }
63
61
 
64
62
  /**
@@ -70,11 +68,11 @@ export declare namespace create {
70
68
  * @example
71
69
  * ```ts
72
70
  * import { createConfig, http } from '@wagmi/core'
73
- * import { tempo } from 'tempo.ts/chains'
71
+ * import { tempo } from 'viem/chains'
74
72
  * import { Actions } from 'tempo.ts/wagmi'
75
73
  *
76
74
  * const config = createConfig({
77
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
75
+ * chains: [tempoTestnet],
78
76
  * transports: {
79
77
  * [tempo.id]: http(),
80
78
  * },
@@ -92,7 +90,7 @@ export declare namespace create {
92
90
  export async function createSync<config extends Config>(
93
91
  config: config,
94
92
  parameters: createSync.Parameters<config>,
95
- ): Promise<viem_Actions.createSync.ReturnValue> {
93
+ ): Promise<Actions.policy.createSync.ReturnValue> {
96
94
  const { account, chainId, connector } = parameters
97
95
 
98
96
  const client = await getConnectorClient(config, {
@@ -102,20 +100,20 @@ export async function createSync<config extends Config>(
102
100
  connector,
103
101
  })
104
102
 
105
- return viem_Actions.createSync(client, parameters as never)
103
+ return Actions.policy.createSync(client, parameters as never)
106
104
  }
107
105
 
108
106
  export declare namespace createSync {
109
107
  export type Parameters<config extends Config> = ChainIdParameter<config> &
110
108
  ConnectorParameter &
111
109
  UnionOmit<
112
- viem_Actions.createSync.Parameters<config['chains'][number], Account>,
110
+ Actions.policy.createSync.Parameters<config['chains'][number], Account>,
113
111
  'chain' | 'admin'
114
112
  >
115
113
 
116
- export type ReturnValue = viem_Actions.createSync.ReturnValue
114
+ export type ReturnValue = Actions.policy.createSync.ReturnValue
117
115
 
118
- export type ErrorType = viem_Actions.createSync.ErrorType
116
+ export type ErrorType = Actions.policy.createSync.ErrorType
119
117
  }
120
118
 
121
119
  /**
@@ -124,11 +122,11 @@ export declare namespace createSync {
124
122
  * @example
125
123
  * ```ts
126
124
  * import { createConfig, http } from '@wagmi/core'
127
- * import { tempo } from 'tempo.ts/chains'
125
+ * import { tempo } from 'viem/chains'
128
126
  * import { Actions } from 'tempo.ts/wagmi'
129
127
  *
130
128
  * const config = createConfig({
131
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
129
+ * chains: [tempoTestnet],
132
130
  * transports: {
133
131
  * [tempo.id]: http(),
134
132
  * },
@@ -147,7 +145,7 @@ export declare namespace createSync {
147
145
  export async function setAdmin<config extends Config>(
148
146
  config: config,
149
147
  parameters: setAdmin.Parameters<config>,
150
- ): Promise<viem_Actions.setAdmin.ReturnValue> {
148
+ ): Promise<Actions.policy.setAdmin.ReturnValue> {
151
149
  const { account, chainId, connector } = parameters
152
150
 
153
151
  const client = await getConnectorClient(config, {
@@ -157,20 +155,20 @@ export async function setAdmin<config extends Config>(
157
155
  connector,
158
156
  })
159
157
 
160
- return viem_Actions.setAdmin(client, parameters as never)
158
+ return Actions.policy.setAdmin(client, parameters as never)
161
159
  }
162
160
 
163
161
  export declare namespace setAdmin {
164
162
  export type Parameters<config extends Config> = ChainIdParameter<config> &
165
163
  ConnectorParameter &
166
164
  UnionOmit<
167
- viem_Actions.setAdmin.Parameters<config['chains'][number], Account>,
165
+ Actions.policy.setAdmin.Parameters<config['chains'][number], Account>,
168
166
  'chain'
169
167
  >
170
168
 
171
- export type ReturnValue = viem_Actions.setAdmin.ReturnValue
169
+ export type ReturnValue = Actions.policy.setAdmin.ReturnValue
172
170
 
173
- export type ErrorType = viem_Actions.setAdmin.ErrorType
171
+ export type ErrorType = Actions.policy.setAdmin.ErrorType
174
172
  }
175
173
 
176
174
  /**
@@ -182,11 +180,11 @@ export declare namespace setAdmin {
182
180
  * @example
183
181
  * ```ts
184
182
  * import { createConfig, http } from '@wagmi/core'
185
- * import { tempo } from 'tempo.ts/chains'
183
+ * import { tempo } from 'viem/chains'
186
184
  * import { Actions } from 'tempo.ts/wagmi'
187
185
  *
188
186
  * const config = createConfig({
189
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
187
+ * chains: [tempoTestnet],
190
188
  * transports: {
191
189
  * [tempo.id]: http(),
192
190
  * },
@@ -205,7 +203,7 @@ export declare namespace setAdmin {
205
203
  export async function setAdminSync<config extends Config>(
206
204
  config: config,
207
205
  parameters: setAdminSync.Parameters<config>,
208
- ): Promise<viem_Actions.setAdminSync.ReturnValue> {
206
+ ): Promise<Actions.policy.setAdminSync.ReturnValue> {
209
207
  const { account, chainId, connector } = parameters
210
208
 
211
209
  const client = await getConnectorClient(config, {
@@ -215,20 +213,20 @@ export async function setAdminSync<config extends Config>(
215
213
  connector,
216
214
  })
217
215
 
218
- return viem_Actions.setAdminSync(client, parameters as never)
216
+ return Actions.policy.setAdminSync(client, parameters as never)
219
217
  }
220
218
 
221
219
  export declare namespace setAdminSync {
222
220
  export type Parameters<config extends Config> = ChainIdParameter<config> &
223
221
  ConnectorParameter &
224
222
  UnionOmit<
225
- viem_Actions.setAdminSync.Parameters<config['chains'][number], Account>,
223
+ Actions.policy.setAdminSync.Parameters<config['chains'][number], Account>,
226
224
  'chain'
227
225
  >
228
226
 
229
- export type ReturnValue = viem_Actions.setAdminSync.ReturnValue
227
+ export type ReturnValue = Actions.policy.setAdminSync.ReturnValue
230
228
 
231
- export type ErrorType = viem_Actions.setAdminSync.ErrorType
229
+ export type ErrorType = Actions.policy.setAdminSync.ErrorType
232
230
  }
233
231
 
234
232
  /**
@@ -237,11 +235,11 @@ export declare namespace setAdminSync {
237
235
  * @example
238
236
  * ```ts
239
237
  * import { createConfig, http } from '@wagmi/core'
240
- * import { tempo } from 'tempo.ts/chains'
238
+ * import { tempo } from 'viem/chains'
241
239
  * import { Actions } from 'tempo.ts/wagmi'
242
240
  *
243
241
  * const config = createConfig({
244
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
242
+ * chains: [tempoTestnet],
245
243
  * transports: {
246
244
  * [tempo.id]: http(),
247
245
  * },
@@ -261,7 +259,7 @@ export declare namespace setAdminSync {
261
259
  export async function modifyWhitelist<config extends Config>(
262
260
  config: config,
263
261
  parameters: modifyWhitelist.Parameters<config>,
264
- ): Promise<viem_Actions.modifyWhitelist.ReturnValue> {
262
+ ): Promise<Actions.policy.modifyWhitelist.ReturnValue> {
265
263
  const { account, chainId, connector } = parameters
266
264
 
267
265
  const client = await getConnectorClient(config, {
@@ -271,23 +269,23 @@ export async function modifyWhitelist<config extends Config>(
271
269
  connector,
272
270
  })
273
271
 
274
- return viem_Actions.modifyWhitelist(client, parameters as never)
272
+ return Actions.policy.modifyWhitelist(client, parameters as never)
275
273
  }
276
274
 
277
275
  export declare namespace modifyWhitelist {
278
276
  export type Parameters<config extends Config> = ChainIdParameter<config> &
279
277
  ConnectorParameter &
280
278
  UnionOmit<
281
- viem_Actions.modifyWhitelist.Parameters<
279
+ Actions.policy.modifyWhitelist.Parameters<
282
280
  config['chains'][number],
283
281
  Account
284
282
  >,
285
283
  'chain'
286
284
  >
287
285
 
288
- export type ReturnValue = viem_Actions.modifyWhitelist.ReturnValue
286
+ export type ReturnValue = Actions.policy.modifyWhitelist.ReturnValue
289
287
 
290
- export type ErrorType = viem_Actions.modifyWhitelist.ErrorType
288
+ export type ErrorType = Actions.policy.modifyWhitelist.ErrorType
291
289
  }
292
290
 
293
291
  /**
@@ -299,11 +297,11 @@ export declare namespace modifyWhitelist {
299
297
  * @example
300
298
  * ```ts
301
299
  * import { createConfig, http } from '@wagmi/core'
302
- * import { tempo } from 'tempo.ts/chains'
300
+ * import { tempo } from 'viem/chains'
303
301
  * import { Actions } from 'tempo.ts/wagmi'
304
302
  *
305
303
  * const config = createConfig({
306
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
304
+ * chains: [tempoTestnet],
307
305
  * transports: {
308
306
  * [tempo.id]: http(),
309
307
  * },
@@ -323,7 +321,7 @@ export declare namespace modifyWhitelist {
323
321
  export async function modifyWhitelistSync<config extends Config>(
324
322
  config: config,
325
323
  parameters: modifyWhitelistSync.Parameters<config>,
326
- ): Promise<viem_Actions.modifyWhitelistSync.ReturnValue> {
324
+ ): Promise<Actions.policy.modifyWhitelistSync.ReturnValue> {
327
325
  const { account, chainId, connector } = parameters
328
326
 
329
327
  const client = await getConnectorClient(config, {
@@ -333,23 +331,23 @@ export async function modifyWhitelistSync<config extends Config>(
333
331
  connector,
334
332
  })
335
333
 
336
- return viem_Actions.modifyWhitelistSync(client, parameters as never)
334
+ return Actions.policy.modifyWhitelistSync(client, parameters as never)
337
335
  }
338
336
 
339
337
  export declare namespace modifyWhitelistSync {
340
338
  export type Parameters<config extends Config> = ChainIdParameter<config> &
341
339
  ConnectorParameter &
342
340
  UnionOmit<
343
- viem_Actions.modifyWhitelistSync.Parameters<
341
+ Actions.policy.modifyWhitelistSync.Parameters<
344
342
  config['chains'][number],
345
343
  Account
346
344
  >,
347
345
  'chain'
348
346
  >
349
347
 
350
- export type ReturnValue = viem_Actions.modifyWhitelistSync.ReturnValue
348
+ export type ReturnValue = Actions.policy.modifyWhitelistSync.ReturnValue
351
349
 
352
- export type ErrorType = viem_Actions.modifyWhitelistSync.ErrorType
350
+ export type ErrorType = Actions.policy.modifyWhitelistSync.ErrorType
353
351
  }
354
352
 
355
353
  /**
@@ -358,11 +356,11 @@ export declare namespace modifyWhitelistSync {
358
356
  * @example
359
357
  * ```ts
360
358
  * import { createConfig, http } from '@wagmi/core'
361
- * import { tempo } from 'tempo.ts/chains'
359
+ * import { tempo } from 'viem/chains'
362
360
  * import { Actions } from 'tempo.ts/wagmi'
363
361
  *
364
362
  * const config = createConfig({
365
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
363
+ * chains: [tempoTestnet],
366
364
  * transports: {
367
365
  * [tempo.id]: http(),
368
366
  * },
@@ -382,7 +380,7 @@ export declare namespace modifyWhitelistSync {
382
380
  export async function modifyBlacklist<config extends Config>(
383
381
  config: config,
384
382
  parameters: modifyBlacklist.Parameters<config>,
385
- ): Promise<viem_Actions.modifyBlacklist.ReturnValue> {
383
+ ): Promise<Actions.policy.modifyBlacklist.ReturnValue> {
386
384
  const { account, chainId, connector } = parameters
387
385
 
388
386
  const client = await getConnectorClient(config, {
@@ -392,23 +390,23 @@ export async function modifyBlacklist<config extends Config>(
392
390
  connector,
393
391
  })
394
392
 
395
- return viem_Actions.modifyBlacklist(client, parameters as never)
393
+ return Actions.policy.modifyBlacklist(client, parameters as never)
396
394
  }
397
395
 
398
396
  export declare namespace modifyBlacklist {
399
397
  export type Parameters<config extends Config> = ChainIdParameter<config> &
400
398
  ConnectorParameter &
401
399
  UnionOmit<
402
- viem_Actions.modifyBlacklist.Parameters<
400
+ Actions.policy.modifyBlacklist.Parameters<
403
401
  config['chains'][number],
404
402
  Account
405
403
  >,
406
404
  'chain'
407
405
  >
408
406
 
409
- export type ReturnValue = viem_Actions.modifyBlacklist.ReturnValue
407
+ export type ReturnValue = Actions.policy.modifyBlacklist.ReturnValue
410
408
 
411
- export type ErrorType = viem_Actions.modifyBlacklist.ErrorType
409
+ export type ErrorType = Actions.policy.modifyBlacklist.ErrorType
412
410
  }
413
411
 
414
412
  /**
@@ -420,11 +418,11 @@ export declare namespace modifyBlacklist {
420
418
  * @example
421
419
  * ```ts
422
420
  * import { createConfig, http } from '@wagmi/core'
423
- * import { tempo } from 'tempo.ts/chains'
421
+ * import { tempo } from 'viem/chains'
424
422
  * import { Actions } from 'tempo.ts/wagmi'
425
423
  *
426
424
  * const config = createConfig({
427
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
425
+ * chains: [tempoTestnet],
428
426
  * transports: {
429
427
  * [tempo.id]: http(),
430
428
  * },
@@ -444,7 +442,7 @@ export declare namespace modifyBlacklist {
444
442
  export async function modifyBlacklistSync<config extends Config>(
445
443
  config: config,
446
444
  parameters: modifyBlacklistSync.Parameters<config>,
447
- ): Promise<viem_Actions.modifyBlacklistSync.ReturnValue> {
445
+ ): Promise<Actions.policy.modifyBlacklistSync.ReturnValue> {
448
446
  const { account, chainId, connector } = parameters
449
447
 
450
448
  const client = await getConnectorClient(config, {
@@ -454,23 +452,23 @@ export async function modifyBlacklistSync<config extends Config>(
454
452
  connector,
455
453
  })
456
454
 
457
- return viem_Actions.modifyBlacklistSync(client, parameters as never)
455
+ return Actions.policy.modifyBlacklistSync(client, parameters as never)
458
456
  }
459
457
 
460
458
  export declare namespace modifyBlacklistSync {
461
459
  export type Parameters<config extends Config> = ChainIdParameter<config> &
462
460
  ConnectorParameter &
463
461
  UnionOmit<
464
- viem_Actions.modifyBlacklistSync.Parameters<
462
+ Actions.policy.modifyBlacklistSync.Parameters<
465
463
  config['chains'][number],
466
464
  Account
467
465
  >,
468
466
  'chain'
469
467
  >
470
468
 
471
- export type ReturnValue = viem_Actions.modifyBlacklistSync.ReturnValue
469
+ export type ReturnValue = Actions.policy.modifyBlacklistSync.ReturnValue
472
470
 
473
- export type ErrorType = viem_Actions.modifyBlacklistSync.ErrorType
471
+ export type ErrorType = Actions.policy.modifyBlacklistSync.ErrorType
474
472
  }
475
473
 
476
474
  /**
@@ -479,11 +477,11 @@ export declare namespace modifyBlacklistSync {
479
477
  * @example
480
478
  * ```ts
481
479
  * import { createConfig, http } from '@wagmi/core'
482
- * import { tempo } from 'tempo.ts/chains'
480
+ * import { tempo } from 'viem/chains'
483
481
  * import { Actions } from 'tempo.ts/wagmi'
484
482
  *
485
483
  * const config = createConfig({
486
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
484
+ * chains: [tempoTestnet],
487
485
  * transports: {
488
486
  * [tempo.id]: http(),
489
487
  * },
@@ -504,14 +502,14 @@ export function getData<config extends Config>(
504
502
  ): Promise<getData.ReturnValue> {
505
503
  const { chainId, ...rest } = parameters
506
504
  const client = config.getClient({ chainId })
507
- return viem_Actions.getData(client, rest)
505
+ return Actions.policy.getData(client, rest)
508
506
  }
509
507
 
510
508
  export namespace getData {
511
509
  export type Parameters<config extends Config> = ChainIdParameter<config> &
512
- viem_Actions.getData.Parameters
510
+ Actions.policy.getData.Parameters
513
511
 
514
- export type ReturnValue = viem_Actions.getData.ReturnValue
512
+ export type ReturnValue = Actions.policy.getData.ReturnValue
515
513
 
516
514
  export function queryKey<config extends Config>(
517
515
  parameters: Parameters<config>,
@@ -569,11 +567,11 @@ export namespace getData {
569
567
  * @example
570
568
  * ```ts
571
569
  * import { createConfig, http } from '@wagmi/core'
572
- * import { tempo } from 'tempo.ts/chains'
570
+ * import { tempo } from 'viem/chains'
573
571
  * import { Actions } from 'tempo.ts/wagmi'
574
572
  *
575
573
  * const config = createConfig({
576
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
574
+ * chains: [tempoTestnet],
577
575
  * transports: {
578
576
  * [tempo.id]: http(),
579
577
  * },
@@ -595,14 +593,14 @@ export function isAuthorized<config extends Config>(
595
593
  ): Promise<isAuthorized.ReturnValue> {
596
594
  const { chainId, ...rest } = parameters
597
595
  const client = config.getClient({ chainId })
598
- return viem_Actions.isAuthorized(client, rest)
596
+ return Actions.policy.isAuthorized(client, rest)
599
597
  }
600
598
 
601
599
  export namespace isAuthorized {
602
600
  export type Parameters<config extends Config> = ChainIdParameter<config> &
603
- viem_Actions.isAuthorized.Parameters
601
+ Actions.policy.isAuthorized.Parameters
604
602
 
605
- export type ReturnValue = viem_Actions.isAuthorized.ReturnValue
603
+ export type ReturnValue = Actions.policy.isAuthorized.ReturnValue
606
604
 
607
605
  export function queryKey<config extends Config>(
608
606
  parameters: Parameters<config>,
@@ -660,11 +658,11 @@ export namespace isAuthorized {
660
658
  * @example
661
659
  * ```ts
662
660
  * import { createConfig, http } from '@wagmi/core'
663
- * import { tempo } from 'tempo.ts/chains'
661
+ * import { tempo } from 'viem/chains'
664
662
  * import { Actions } from 'tempo.ts/wagmi'
665
663
  *
666
664
  * const config = createConfig({
667
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
665
+ * chains: [tempoTestnet],
668
666
  * transports: {
669
667
  * [tempo.id]: http(),
670
668
  * },
@@ -687,12 +685,12 @@ export function watchCreate<config extends Config>(
687
685
  ) {
688
686
  const { chainId, ...rest } = parameters
689
687
  const client = config.getClient({ chainId })
690
- return viem_Actions.watchCreate(client, rest)
688
+ return Actions.policy.watchCreate(client, rest)
691
689
  }
692
690
 
693
691
  export declare namespace watchCreate {
694
692
  export type Parameters<config extends Config> = ChainIdParameter<config> &
695
- viem_Actions.watchCreate.Parameters
693
+ Actions.policy.watchCreate.Parameters
696
694
  }
697
695
 
698
696
  /**
@@ -701,11 +699,11 @@ export declare namespace watchCreate {
701
699
  * @example
702
700
  * ```ts
703
701
  * import { createConfig, http } from '@wagmi/core'
704
- * import { tempo } from 'tempo.ts/chains'
702
+ * import { tempo } from 'viem/chains'
705
703
  * import { Actions } from 'tempo.ts/wagmi'
706
704
  *
707
705
  * const config = createConfig({
708
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
706
+ * chains: [tempoTestnet],
709
707
  * transports: {
710
708
  * [tempo.id]: http(),
711
709
  * },
@@ -728,12 +726,12 @@ export function watchAdminUpdated<config extends Config>(
728
726
  ) {
729
727
  const { chainId, ...rest } = parameters
730
728
  const client = config.getClient({ chainId })
731
- return viem_Actions.watchAdminUpdated(client, rest)
729
+ return Actions.policy.watchAdminUpdated(client, rest)
732
730
  }
733
731
 
734
732
  export declare namespace watchAdminUpdated {
735
733
  export type Parameters<config extends Config> = ChainIdParameter<config> &
736
- viem_Actions.watchAdminUpdated.Parameters
734
+ Actions.policy.watchAdminUpdated.Parameters
737
735
  }
738
736
 
739
737
  /**
@@ -742,11 +740,11 @@ export declare namespace watchAdminUpdated {
742
740
  * @example
743
741
  * ```ts
744
742
  * import { createConfig, http } from '@wagmi/core'
745
- * import { tempo } from 'tempo.ts/chains'
743
+ * import { tempo } from 'viem/chains'
746
744
  * import { Actions } from 'tempo.ts/wagmi'
747
745
  *
748
746
  * const config = createConfig({
749
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
747
+ * chains: [tempoTestnet],
750
748
  * transports: {
751
749
  * [tempo.id]: http(),
752
750
  * },
@@ -769,12 +767,12 @@ export function watchWhitelistUpdated<config extends Config>(
769
767
  ) {
770
768
  const { chainId, ...rest } = parameters
771
769
  const client = config.getClient({ chainId })
772
- return viem_Actions.watchWhitelistUpdated(client, rest)
770
+ return Actions.policy.watchWhitelistUpdated(client, rest)
773
771
  }
774
772
 
775
773
  export declare namespace watchWhitelistUpdated {
776
774
  export type Parameters<config extends Config> = ChainIdParameter<config> &
777
- viem_Actions.watchWhitelistUpdated.Parameters
775
+ Actions.policy.watchWhitelistUpdated.Parameters
778
776
  }
779
777
 
780
778
  /**
@@ -783,11 +781,11 @@ export declare namespace watchWhitelistUpdated {
783
781
  * @example
784
782
  * ```ts
785
783
  * import { createConfig, http } from '@wagmi/core'
786
- * import { tempo } from 'tempo.ts/chains'
784
+ * import { tempo } from 'viem/chains'
787
785
  * import { Actions } from 'tempo.ts/wagmi'
788
786
  *
789
787
  * const config = createConfig({
790
- * chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
788
+ * chains: [tempoTestnet],
791
789
  * transports: {
792
790
  * [tempo.id]: http(),
793
791
  * },
@@ -810,10 +808,10 @@ export function watchBlacklistUpdated<config extends Config>(
810
808
  ) {
811
809
  const { chainId, ...rest } = parameters
812
810
  const client = config.getClient({ chainId })
813
- return viem_Actions.watchBlacklistUpdated(client, rest)
811
+ return Actions.policy.watchBlacklistUpdated(client, rest)
814
812
  }
815
813
 
816
814
  export declare namespace watchBlacklistUpdated {
817
815
  export type Parameters<config extends Config> = ChainIdParameter<config> &
818
- viem_Actions.watchBlacklistUpdated.Parameters
816
+ Actions.policy.watchBlacklistUpdated.Parameters
819
817
  }