tempo.ts 0.1.5 → 0.2.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 (276) hide show
  1. package/README.md +33 -2
  2. package/dist/chains.d.ts +509 -115
  3. package/dist/chains.d.ts.map +1 -1
  4. package/dist/chains.js +18 -9
  5. package/dist/chains.js.map +1 -1
  6. package/dist/ox/Order.d.ts +92 -0
  7. package/dist/ox/Order.d.ts.map +1 -0
  8. package/dist/ox/Order.js +88 -0
  9. package/dist/ox/Order.js.map +1 -0
  10. package/dist/ox/OrdersFilters.d.ts +72 -0
  11. package/dist/ox/OrdersFilters.d.ts.map +1 -0
  12. package/dist/ox/OrdersFilters.js +100 -0
  13. package/dist/ox/OrdersFilters.js.map +1 -0
  14. package/dist/ox/Pagination.d.ts +128 -0
  15. package/dist/ox/Pagination.d.ts.map +1 -0
  16. package/dist/ox/Pagination.js +78 -0
  17. package/dist/ox/Pagination.js.map +1 -0
  18. package/dist/ox/PoolId.d.ts +18 -0
  19. package/dist/ox/PoolId.d.ts.map +1 -0
  20. package/dist/ox/PoolId.js +13 -0
  21. package/dist/ox/PoolId.js.map +1 -0
  22. package/dist/ox/RpcSchema.d.ts +32 -0
  23. package/dist/ox/RpcSchema.d.ts.map +1 -0
  24. package/dist/ox/RpcSchema.js +2 -0
  25. package/dist/ox/RpcSchema.js.map +1 -0
  26. package/dist/ox/SignatureEnvelope.d.ts +1 -1
  27. package/dist/ox/SignatureEnvelope.d.ts.map +1 -1
  28. package/dist/ox/SignatureEnvelope.js.map +1 -1
  29. package/dist/{viem → ox}/Tick.d.ts +4 -0
  30. package/dist/ox/Tick.d.ts.map +1 -0
  31. package/dist/ox/Tick.js.map +1 -0
  32. package/dist/ox/Transaction.d.ts.map +1 -1
  33. package/dist/ox/Transaction.js +2 -1
  34. package/dist/ox/Transaction.js.map +1 -1
  35. package/dist/ox/TransactionEnvelopeAA.d.ts +6 -6
  36. package/dist/ox/TransactionEnvelopeAA.d.ts.map +1 -1
  37. package/dist/ox/TransactionEnvelopeAA.js +4 -2
  38. package/dist/ox/TransactionEnvelopeAA.js.map +1 -1
  39. package/dist/ox/TransactionRequest.d.ts +4 -0
  40. package/dist/ox/TransactionRequest.d.ts.map +1 -1
  41. package/dist/ox/TransactionRequest.js.map +1 -1
  42. package/dist/ox/index.d.ts +6 -0
  43. package/dist/ox/index.d.ts.map +1 -1
  44. package/dist/ox/index.js +6 -0
  45. package/dist/ox/index.js.map +1 -1
  46. package/dist/prool/Instance.d.ts.map +1 -1
  47. package/dist/prool/Instance.js +20 -4
  48. package/dist/prool/Instance.js.map +1 -1
  49. package/dist/viem/Abis.d.ts +1469 -1082
  50. package/dist/viem/Abis.d.ts.map +1 -1
  51. package/dist/viem/Abis.js +932 -671
  52. package/dist/viem/Abis.js.map +1 -1
  53. package/dist/viem/Account.d.ts +150 -0
  54. package/dist/viem/Account.d.ts.map +1 -0
  55. package/dist/viem/Account.js +221 -0
  56. package/dist/viem/Account.js.map +1 -0
  57. package/dist/viem/Actions/amm.d.ts +80 -118
  58. package/dist/viem/Actions/amm.d.ts.map +1 -1
  59. package/dist/viem/Actions/amm.js +47 -116
  60. package/dist/viem/Actions/amm.js.map +1 -1
  61. package/dist/viem/Actions/dex.d.ts +889 -633
  62. package/dist/viem/Actions/dex.d.ts.map +1 -1
  63. package/dist/viem/Actions/dex.js +99 -0
  64. package/dist/viem/Actions/dex.js.map +1 -1
  65. package/dist/viem/Actions/fee.d.ts +3 -17
  66. package/dist/viem/Actions/fee.d.ts.map +1 -1
  67. package/dist/viem/Actions/fee.js.map +1 -1
  68. package/dist/viem/Actions/index.d.ts +1 -0
  69. package/dist/viem/Actions/index.d.ts.map +1 -1
  70. package/dist/viem/Actions/index.js +1 -0
  71. package/dist/viem/Actions/index.js.map +1 -1
  72. package/dist/viem/Actions/reward.d.ts +3236 -0
  73. package/dist/viem/Actions/reward.d.ts.map +1 -0
  74. package/dist/viem/Actions/reward.js +725 -0
  75. package/dist/viem/Actions/reward.js.map +1 -0
  76. package/dist/viem/Actions/token.d.ts +4295 -2646
  77. package/dist/viem/Actions/token.d.ts.map +1 -1
  78. package/dist/viem/Actions/token.js +214 -335
  79. package/dist/viem/Actions/token.js.map +1 -1
  80. package/dist/viem/Addresses.d.ts +1 -2
  81. package/dist/viem/Addresses.d.ts.map +1 -1
  82. package/dist/viem/Addresses.js +1 -2
  83. package/dist/viem/Addresses.js.map +1 -1
  84. package/dist/viem/Chain.d.ts +38 -12
  85. package/dist/viem/Chain.d.ts.map +1 -1
  86. package/dist/viem/Chain.js +27 -18
  87. package/dist/viem/Chain.js.map +1 -1
  88. package/dist/viem/Decorator.d.ts +959 -405
  89. package/dist/viem/Decorator.d.ts.map +1 -1
  90. package/dist/viem/Decorator.js +13 -5
  91. package/dist/viem/Decorator.js.map +1 -1
  92. package/dist/viem/Formatters.d.ts +8 -1
  93. package/dist/viem/Formatters.d.ts.map +1 -1
  94. package/dist/viem/Formatters.js +17 -0
  95. package/dist/viem/Formatters.js.map +1 -1
  96. package/dist/viem/P256.d.ts +2 -0
  97. package/dist/viem/P256.d.ts.map +1 -0
  98. package/dist/viem/P256.js +2 -0
  99. package/dist/viem/P256.js.map +1 -0
  100. package/dist/viem/Secp256k1.d.ts +2 -0
  101. package/dist/viem/Secp256k1.d.ts.map +1 -0
  102. package/dist/viem/Secp256k1.js +2 -0
  103. package/dist/viem/Secp256k1.js.map +1 -0
  104. package/dist/viem/TokenIds.d.ts +1 -2
  105. package/dist/viem/TokenIds.d.ts.map +1 -1
  106. package/dist/viem/TokenIds.js +1 -2
  107. package/dist/viem/TokenIds.js.map +1 -1
  108. package/dist/viem/Transaction.d.ts +1 -1
  109. package/dist/viem/Transaction.d.ts.map +1 -1
  110. package/dist/viem/Transaction.js +46 -5
  111. package/dist/viem/Transaction.js.map +1 -1
  112. package/dist/viem/WebAuthnP256.d.ts +79 -0
  113. package/dist/viem/WebAuthnP256.d.ts.map +1 -0
  114. package/dist/viem/WebAuthnP256.js +95 -0
  115. package/dist/viem/WebAuthnP256.js.map +1 -0
  116. package/dist/viem/WebCryptoP256.d.ts +2 -0
  117. package/dist/viem/WebCryptoP256.d.ts.map +1 -0
  118. package/dist/viem/WebCryptoP256.js +2 -0
  119. package/dist/viem/WebCryptoP256.js.map +1 -0
  120. package/dist/viem/index.d.ts +6 -3
  121. package/dist/viem/index.d.ts.map +1 -1
  122. package/dist/viem/index.js +6 -3
  123. package/dist/viem/index.js.map +1 -1
  124. package/dist/viem/internal/account.d.ts +24 -0
  125. package/dist/viem/internal/account.d.ts.map +1 -0
  126. package/dist/viem/internal/account.js +68 -0
  127. package/dist/viem/internal/account.js.map +1 -0
  128. package/dist/viem/internal/types.d.ts +10 -0
  129. package/dist/viem/internal/types.d.ts.map +1 -1
  130. package/dist/wagmi/Actions/amm.d.ts +428 -0
  131. package/dist/wagmi/Actions/amm.d.ts.map +1 -0
  132. package/dist/wagmi/Actions/amm.js +472 -0
  133. package/dist/wagmi/Actions/amm.js.map +1 -0
  134. package/dist/wagmi/Actions/dex.d.ts +908 -0
  135. package/dist/wagmi/Actions/dex.d.ts.map +1 -0
  136. package/dist/wagmi/Actions/dex.js +1023 -0
  137. package/dist/wagmi/Actions/dex.js.map +1 -0
  138. package/dist/wagmi/Actions/fee.d.ts +111 -0
  139. package/dist/wagmi/Actions/fee.d.ts.map +1 -0
  140. package/dist/wagmi/Actions/fee.js +126 -0
  141. package/dist/wagmi/Actions/fee.js.map +1 -0
  142. package/dist/wagmi/Actions/index.d.ts +6 -0
  143. package/dist/wagmi/Actions/index.d.ts.map +1 -0
  144. package/dist/wagmi/Actions/index.js +6 -0
  145. package/dist/wagmi/Actions/index.js.map +1 -0
  146. package/dist/wagmi/Actions/reward.d.ts +348 -0
  147. package/dist/wagmi/Actions/reward.d.ts.map +1 -0
  148. package/dist/wagmi/Actions/reward.js +388 -0
  149. package/dist/wagmi/Actions/reward.js.map +1 -0
  150. package/dist/wagmi/Actions/token.d.ts +1546 -0
  151. package/dist/wagmi/Actions/token.d.ts.map +1 -0
  152. package/dist/wagmi/Actions/token.js +1712 -0
  153. package/dist/wagmi/Actions/token.js.map +1 -0
  154. package/dist/wagmi/Connector.d.ts +73 -0
  155. package/dist/wagmi/Connector.d.ts.map +1 -0
  156. package/dist/wagmi/Connector.js +249 -0
  157. package/dist/wagmi/Connector.js.map +1 -0
  158. package/dist/wagmi/Hooks/amm.d.ts +421 -0
  159. package/dist/wagmi/Hooks/amm.d.ts.map +1 -0
  160. package/dist/wagmi/Hooks/amm.js +504 -0
  161. package/dist/wagmi/Hooks/amm.js.map +1 -0
  162. package/dist/wagmi/Hooks/dex.d.ts +816 -0
  163. package/dist/wagmi/Hooks/dex.d.ts.map +1 -0
  164. package/dist/wagmi/Hooks/dex.js +973 -0
  165. package/dist/wagmi/Hooks/dex.js.map +1 -0
  166. package/dist/wagmi/Hooks/fee.d.ts +97 -0
  167. package/dist/wagmi/Hooks/fee.d.ts.map +1 -0
  168. package/dist/wagmi/Hooks/fee.js +109 -0
  169. package/dist/wagmi/Hooks/fee.js.map +1 -0
  170. package/dist/wagmi/Hooks/index.d.ts +6 -0
  171. package/dist/wagmi/Hooks/index.d.ts.map +1 -0
  172. package/dist/wagmi/Hooks/index.js +6 -0
  173. package/dist/wagmi/Hooks/index.js.map +1 -0
  174. package/dist/wagmi/Hooks/reward.d.ts +307 -0
  175. package/dist/wagmi/Hooks/reward.d.ts.map +1 -0
  176. package/dist/wagmi/Hooks/reward.js +349 -0
  177. package/dist/wagmi/Hooks/reward.js.map +1 -0
  178. package/dist/wagmi/Hooks/token.d.ts +1388 -0
  179. package/dist/wagmi/Hooks/token.d.ts.map +1 -0
  180. package/dist/wagmi/Hooks/token.js +1657 -0
  181. package/dist/wagmi/Hooks/token.js.map +1 -0
  182. package/dist/wagmi/index.d.ts +4 -0
  183. package/dist/wagmi/index.d.ts.map +1 -0
  184. package/dist/wagmi/index.js +4 -0
  185. package/dist/wagmi/index.js.map +1 -0
  186. package/package.json +54 -10
  187. package/src/chains.ts +19 -9
  188. package/src/ox/Order.test.ts +78 -0
  189. package/src/ox/Order.ts +125 -0
  190. package/src/ox/OrdersFilters.test.ts +182 -0
  191. package/src/ox/OrdersFilters.ts +125 -0
  192. package/src/ox/Pagination.test.ts +162 -0
  193. package/src/ox/Pagination.ts +164 -0
  194. package/src/ox/PoolId.test.ts +33 -0
  195. package/src/ox/PoolId.ts +27 -0
  196. package/src/ox/RpcSchema.ts +35 -0
  197. package/src/ox/SignatureEnvelope.ts +3 -1
  198. package/src/{viem → ox}/Tick.test.ts +1 -1
  199. package/src/{viem → ox}/Tick.ts +5 -0
  200. package/src/ox/Transaction.test.ts +1 -1
  201. package/src/ox/Transaction.ts +2 -1
  202. package/src/ox/TransactionEnvelopeAA.test.ts +239 -96
  203. package/src/ox/TransactionEnvelopeAA.ts +9 -7
  204. package/src/ox/TransactionRequest.ts +4 -0
  205. package/src/ox/index.ts +6 -0
  206. package/src/prool/Instance.ts +51 -37
  207. package/src/prool/internal/chain.json +104 -52
  208. package/src/tsconfig.json +9 -0
  209. package/src/viem/Abis.ts +972 -710
  210. package/src/viem/Account.ts +279 -0
  211. package/src/viem/Actions/__snapshots__/dex.test.ts.snap +850 -0
  212. package/src/viem/Actions/amm.test.ts +98 -169
  213. package/src/viem/Actions/amm.ts +68 -155
  214. package/src/viem/Actions/dex.test.ts +563 -484
  215. package/src/viem/Actions/dex.ts +173 -0
  216. package/src/viem/Actions/fee.test.ts +23 -34
  217. package/src/viem/Actions/fee.ts +7 -0
  218. package/src/viem/Actions/index.ts +1 -0
  219. package/src/viem/Actions/policy.test.ts +19 -33
  220. package/src/viem/Actions/reward.test.ts +457 -0
  221. package/src/viem/Actions/reward.ts +999 -0
  222. package/src/viem/Actions/token.test.ts +453 -287
  223. package/src/viem/Actions/token.ts +452 -540
  224. package/src/viem/Addresses.ts +1 -2
  225. package/src/viem/Chain.ts +70 -20
  226. package/src/viem/Decorator.test.ts +2 -1
  227. package/src/viem/Decorator.ts +996 -421
  228. package/src/viem/Formatters.ts +31 -5
  229. package/src/viem/P256.ts +1 -0
  230. package/src/viem/Secp256k1.ts +1 -0
  231. package/src/viem/TokenIds.ts +1 -2
  232. package/src/viem/Transaction.ts +53 -7
  233. package/src/viem/WebAuthnP256.ts +140 -0
  234. package/src/viem/WebCryptoP256.ts +1 -0
  235. package/src/viem/e2e.test.ts +1126 -297
  236. package/src/viem/index.ts +6 -3
  237. package/src/viem/internal/account.ts +107 -0
  238. package/src/viem/internal/types.ts +9 -0
  239. package/src/wagmi/Actions/__snapshots__/dex.test.ts.snap +310 -0
  240. package/src/wagmi/Actions/amm.test.ts +198 -0
  241. package/src/wagmi/Actions/amm.ts +691 -0
  242. package/src/wagmi/Actions/dex.test.ts +1507 -0
  243. package/src/wagmi/Actions/dex.ts +1640 -0
  244. package/src/wagmi/Actions/fee.test.ts +63 -0
  245. package/src/wagmi/Actions/fee.ts +208 -0
  246. package/src/wagmi/Actions/index.ts +5 -0
  247. package/src/wagmi/Actions/reward.test.ts +210 -0
  248. package/src/wagmi/Actions/reward.ts +632 -0
  249. package/src/wagmi/Actions/token.test.ts +1308 -0
  250. package/src/wagmi/Actions/token.ts +2613 -0
  251. package/src/wagmi/Connector.test.ts +53 -0
  252. package/src/wagmi/Connector.ts +367 -0
  253. package/src/wagmi/Hooks/__snapshots__/dex.test.ts.snap +457 -0
  254. package/src/wagmi/Hooks/amm.test.ts +424 -0
  255. package/src/wagmi/Hooks/amm.ts +806 -0
  256. package/src/wagmi/Hooks/dex.test.ts +1017 -0
  257. package/src/wagmi/Hooks/dex.ts +1685 -0
  258. package/src/wagmi/Hooks/fee.test.ts +166 -0
  259. package/src/wagmi/Hooks/fee.ts +206 -0
  260. package/src/wagmi/Hooks/index.ts +5 -0
  261. package/src/wagmi/Hooks/reward.test.ts +219 -0
  262. package/src/wagmi/Hooks/reward.ts +672 -0
  263. package/src/wagmi/Hooks/token.test.ts +1670 -0
  264. package/src/wagmi/Hooks/token.ts +2906 -0
  265. package/src/wagmi/index.ts +3 -0
  266. package/src/wagmi/internal/types.ts +16 -0
  267. package/dist/viem/Client.d.ts +0 -27
  268. package/dist/viem/Client.d.ts.map +0 -1
  269. package/dist/viem/Client.js +0 -28
  270. package/dist/viem/Client.js.map +0 -1
  271. package/dist/viem/Tick.d.ts.map +0 -1
  272. package/dist/viem/Tick.js.map +0 -1
  273. package/src/viem/Client.bench-d.ts +0 -8
  274. package/src/viem/Client.test.ts +0 -178
  275. package/src/viem/Client.ts +0 -91
  276. /package/dist/{viem → ox}/Tick.js +0 -0
@@ -0,0 +1,1388 @@
1
+ import type { DefaultError } from '@tanstack/query-core';
2
+ import type { UseMutationResult } from '@tanstack/react-query';
3
+ import type { Config, ResolvedRegister } from '@wagmi/core';
4
+ import type { ConfigParameter, QueryParameter } from 'wagmi/internal';
5
+ import { type UseMutationParameters, type UseQueryReturnType } from 'wagmi/query';
6
+ import type { ExactPartial, UnionCompute } from '../../internal/types.js';
7
+ import * as Actions from '../Actions/token.js';
8
+ /**
9
+ * Hook for approving a spender to transfer TIP20 tokens.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * import { Hooks } from 'tempo.ts/wagmi'
14
+ *
15
+ * function App() {
16
+ * const { mutate, isPending } = Hooks.token.useApprove()
17
+ *
18
+ * return (
19
+ * <button
20
+ * onClick={() => mutate({ spender: '0x...', amount: 100n })}
21
+ * disabled={isPending}
22
+ * >
23
+ * Approve
24
+ * </button>
25
+ * )
26
+ * }
27
+ * ```
28
+ *
29
+ * @param parameters - Parameters.
30
+ * @returns Mutation result.
31
+ */
32
+ export declare function useApprove<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useApprove.Parameters<config, context>): useApprove.ReturnType<config, context>;
33
+ export declare namespace useApprove {
34
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
35
+ mutation?: UseMutationParameters<Actions.approve.ReturnValue, Actions.approve.ErrorType, Actions.approve.Parameters<config>, context> | undefined;
36
+ };
37
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.approve.ReturnValue, Actions.approve.ErrorType, Actions.approve.Parameters<config>, context>;
38
+ }
39
+ /**
40
+ * Hook for approving a spender to transfer TIP20 tokens.
41
+ *
42
+ * Note: This is a synchronous hook that waits for the transaction
43
+ * to be included on a block before returning a response.
44
+ *
45
+ * @example
46
+ * ```tsx
47
+ * import { Hooks } from 'tempo.ts/wagmi'
48
+ *
49
+ * function App() {
50
+ * const { mutate, isPending } = Hooks.token.useApproveSync()
51
+ *
52
+ * return (
53
+ * <button
54
+ * onClick={() => mutate({ spender: '0x...', amount: 100n })}
55
+ * disabled={isPending}
56
+ * >
57
+ * Approve
58
+ * </button>
59
+ * )
60
+ * }
61
+ * ```
62
+ *
63
+ * @param parameters - Parameters.
64
+ * @returns Mutation result.
65
+ */
66
+ export declare function useApproveSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useApproveSync.Parameters<config, context>): useApproveSync.ReturnType<config, context>;
67
+ export declare namespace useApproveSync {
68
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
69
+ mutation?: UseMutationParameters<Actions.approveSync.ReturnValue, Actions.approveSync.ErrorType, Actions.approveSync.Parameters<config>, context> | undefined;
70
+ };
71
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.approveSync.ReturnValue, Actions.approveSync.ErrorType, Actions.approveSync.Parameters<config>, context>;
72
+ }
73
+ /**
74
+ * Hook for burning TIP20 tokens from the caller's balance.
75
+ *
76
+ * @example
77
+ * ```tsx
78
+ * import { Hooks } from 'tempo.ts/wagmi'
79
+ *
80
+ * function App() {
81
+ * const { mutate, isPending } = Hooks.token.useBurn()
82
+ *
83
+ * return (
84
+ * <button
85
+ * onClick={() => mutate({ amount: 100n, token: '0x...' })}
86
+ * disabled={isPending}
87
+ * >
88
+ * Burn
89
+ * </button>
90
+ * )
91
+ * }
92
+ * ```
93
+ *
94
+ * @param parameters - Parameters.
95
+ * @returns Mutation result.
96
+ */
97
+ export declare function useBurn<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useBurn.Parameters<config, context>): useBurn.ReturnType<config, context>;
98
+ export declare namespace useBurn {
99
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
100
+ mutation?: UseMutationParameters<Actions.burn.ReturnValue, Actions.burn.ErrorType, Actions.burn.Parameters<config>, context> | undefined;
101
+ };
102
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.burn.ReturnValue, Actions.burn.ErrorType, Actions.burn.Parameters<config>, context>;
103
+ }
104
+ /**
105
+ * Hook for burning TIP20 tokens from the caller's balance.
106
+ *
107
+ * Note: This is a synchronous hook that waits for the transaction
108
+ * to be included on a block before returning a response.
109
+ *
110
+ * @example
111
+ * ```tsx
112
+ * import { Hooks } from 'tempo.ts/wagmi'
113
+ *
114
+ * function App() {
115
+ * const { mutate, isPending } = Hooks.token.useBurnSync()
116
+ *
117
+ * return (
118
+ * <button
119
+ * onClick={() => mutate({ amount: 100n, token: '0x...' })}
120
+ * disabled={isPending}
121
+ * >
122
+ * Burn
123
+ * </button>
124
+ * )
125
+ * }
126
+ * ```
127
+ *
128
+ * @param parameters - Parameters.
129
+ * @returns Mutation result.
130
+ */
131
+ export declare function useBurnSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useBurnSync.Parameters<config, context>): useBurnSync.ReturnType<config, context>;
132
+ export declare namespace useBurnSync {
133
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
134
+ mutation?: UseMutationParameters<Actions.burnSync.ReturnValue, Actions.burnSync.ErrorType, Actions.burnSync.Parameters<config>, context> | undefined;
135
+ };
136
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.burnSync.ReturnValue, Actions.burnSync.ErrorType, Actions.burnSync.Parameters<config>, context>;
137
+ }
138
+ /**
139
+ * Hook for burning TIP20 tokens from a blocked address.
140
+ *
141
+ * @example
142
+ * ```tsx
143
+ * import { Hooks } from 'tempo.ts/wagmi'
144
+ *
145
+ * function App() {
146
+ * const { mutate, isPending } = Hooks.token.useBurnBlocked()
147
+ *
148
+ * return (
149
+ * <button
150
+ * onClick={() => mutate({ from: '0x...', amount: 100n, token: '0x...' })}
151
+ * disabled={isPending}
152
+ * >
153
+ * Burn Blocked
154
+ * </button>
155
+ * )
156
+ * }
157
+ * ```
158
+ *
159
+ * @param parameters - Parameters.
160
+ * @returns Mutation result.
161
+ */
162
+ export declare function useBurnBlocked<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useBurnBlocked.Parameters<config, context>): useBurnBlocked.ReturnType<config, context>;
163
+ export declare namespace useBurnBlocked {
164
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
165
+ mutation?: UseMutationParameters<Actions.burnBlocked.ReturnValue, Actions.burnBlocked.ErrorType, Actions.burnBlocked.Parameters<config>, context> | undefined;
166
+ };
167
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.burnBlocked.ReturnValue, Actions.burnBlocked.ErrorType, Actions.burnBlocked.Parameters<config>, context>;
168
+ }
169
+ /**
170
+ * Hook for burning TIP20 tokens from a blocked address.
171
+ *
172
+ * Note: This is a synchronous hook that waits for the transaction
173
+ * to be included on a block before returning a response.
174
+ *
175
+ * @example
176
+ * ```tsx
177
+ * import { Hooks } from 'tempo.ts/wagmi'
178
+ *
179
+ * function App() {
180
+ * const { mutate, isPending } = Hooks.token.useBurnBlockedSync()
181
+ *
182
+ * return (
183
+ * <button
184
+ * onClick={() => mutate({ from: '0x...', amount: 100n, token: '0x...' })}
185
+ * disabled={isPending}
186
+ * >
187
+ * Burn Blocked
188
+ * </button>
189
+ * )
190
+ * }
191
+ * ```
192
+ *
193
+ * @param parameters - Parameters.
194
+ * @returns Mutation result.
195
+ */
196
+ export declare function useBurnBlockedSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useBurnBlockedSync.Parameters<config, context>): useBurnBlockedSync.ReturnType<config, context>;
197
+ export declare namespace useBurnBlockedSync {
198
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
199
+ mutation?: UseMutationParameters<Actions.burnBlockedSync.ReturnValue, Actions.burnBlockedSync.ErrorType, Actions.burnBlockedSync.Parameters<config>, context> | undefined;
200
+ };
201
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.burnBlockedSync.ReturnValue, Actions.burnBlockedSync.ErrorType, Actions.burnBlockedSync.Parameters<config>, context>;
202
+ }
203
+ /**
204
+ * Hook for changing the transfer policy ID for a TIP20 token.
205
+ *
206
+ * @example
207
+ * ```tsx
208
+ * import { Hooks } from 'tempo.ts/wagmi'
209
+ *
210
+ * function App() {
211
+ * const { mutate, isPending } = Hooks.token.useChangeTransferPolicy()
212
+ *
213
+ * return (
214
+ * <button
215
+ * onClick={() => mutate({ token: '0x...', policyId: 1n })}
216
+ * disabled={isPending}
217
+ * >
218
+ * Change Policy
219
+ * </button>
220
+ * )
221
+ * }
222
+ * ```
223
+ *
224
+ * @param parameters - Parameters.
225
+ * @returns Mutation result.
226
+ */
227
+ export declare function useChangeTransferPolicy<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useChangeTransferPolicy.Parameters<config, context>): useChangeTransferPolicy.ReturnType<config, context>;
228
+ export declare namespace useChangeTransferPolicy {
229
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
230
+ mutation?: UseMutationParameters<Actions.changeTransferPolicy.ReturnValue, Actions.changeTransferPolicy.ErrorType, Actions.changeTransferPolicy.Parameters<config>, context> | undefined;
231
+ };
232
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.changeTransferPolicy.ReturnValue, Actions.changeTransferPolicy.ErrorType, Actions.changeTransferPolicy.Parameters<config>, context>;
233
+ }
234
+ /**
235
+ * Hook for changing the transfer policy ID for a TIP20 token.
236
+ *
237
+ * Note: This is a synchronous hook that waits for the transaction
238
+ * to be included on a block before returning a response.
239
+ *
240
+ * @example
241
+ * ```tsx
242
+ * import { Hooks } from 'tempo.ts/wagmi'
243
+ *
244
+ * function App() {
245
+ * const { mutate, isPending } = Hooks.token.useChangeTransferPolicySync()
246
+ *
247
+ * return (
248
+ * <button
249
+ * onClick={() => mutate({ token: '0x...', policyId: 1n })}
250
+ * disabled={isPending}
251
+ * >
252
+ * Change Policy
253
+ * </button>
254
+ * )
255
+ * }
256
+ * ```
257
+ *
258
+ * @param parameters - Parameters.
259
+ * @returns Mutation result.
260
+ */
261
+ export declare function useChangeTransferPolicySync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useChangeTransferPolicySync.Parameters<config, context>): useChangeTransferPolicySync.ReturnType<config, context>;
262
+ export declare namespace useChangeTransferPolicySync {
263
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
264
+ mutation?: UseMutationParameters<Actions.changeTransferPolicySync.ReturnValue, Actions.changeTransferPolicySync.ErrorType, Actions.changeTransferPolicySync.Parameters<config>, context> | undefined;
265
+ };
266
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.changeTransferPolicySync.ReturnValue, Actions.changeTransferPolicySync.ErrorType, Actions.changeTransferPolicySync.Parameters<config>, context>;
267
+ }
268
+ /**
269
+ * Hook for creating a new TIP20 token.
270
+ *
271
+ * @example
272
+ * ```tsx
273
+ * import { Hooks } from 'tempo.ts/wagmi'
274
+ *
275
+ * function App() {
276
+ * const { mutate, isPending } = Hooks.token.useCreate()
277
+ *
278
+ * return (
279
+ * <button
280
+ * onClick={() => mutate({ name: 'My Token', symbol: 'MTK', currency: 'USD' })}
281
+ * disabled={isPending}
282
+ * >
283
+ * Create Token
284
+ * </button>
285
+ * )
286
+ * }
287
+ * ```
288
+ *
289
+ * @param parameters - Parameters.
290
+ * @returns Mutation result.
291
+ */
292
+ export declare function useCreate<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useCreate.Parameters<config, context>): useCreate.ReturnType<config, context>;
293
+ export declare namespace useCreate {
294
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
295
+ mutation?: UseMutationParameters<Actions.create.ReturnValue, Actions.create.ErrorType, Actions.create.Parameters<config>, context> | undefined;
296
+ };
297
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.create.ReturnValue, Actions.create.ErrorType, Actions.create.Parameters<config>, context>;
298
+ }
299
+ /**
300
+ * Hook for creating a new TIP20 token.
301
+ *
302
+ * Note: This is a synchronous hook that waits for the transaction
303
+ * to be included on a block before returning a response.
304
+ *
305
+ * @example
306
+ * ```tsx
307
+ * import { Hooks } from 'tempo.ts/wagmi'
308
+ *
309
+ * function App() {
310
+ * const { mutate, isPending } = Hooks.token.useCreateSync()
311
+ *
312
+ * return (
313
+ * <button
314
+ * onClick={() => mutate({ name: 'My Token', symbol: 'MTK', currency: 'USD' })}
315
+ * disabled={isPending}
316
+ * >
317
+ * Create Token
318
+ * </button>
319
+ * )
320
+ * }
321
+ * ```
322
+ *
323
+ * @param parameters - Parameters.
324
+ * @returns Mutation result.
325
+ */
326
+ export declare function useCreateSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useCreateSync.Parameters<config, context>): useCreateSync.ReturnType<config, context>;
327
+ export declare namespace useCreateSync {
328
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
329
+ mutation?: UseMutationParameters<Actions.createSync.ReturnValue, Actions.createSync.ErrorType, Actions.createSync.Parameters<config>, context> | undefined;
330
+ };
331
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.createSync.ReturnValue, Actions.createSync.ErrorType, Actions.createSync.Parameters<config>, context>;
332
+ }
333
+ /**
334
+ * Hook for updating the quote token for a TIP20 token.
335
+ *
336
+ * @example
337
+ * ```tsx
338
+ * import { Hooks } from 'tempo.ts/wagmi'
339
+ *
340
+ * function App() {
341
+ * const { mutate, isPending } = Hooks.token.useUpdateQuoteToken()
342
+ *
343
+ * return (
344
+ * <button
345
+ * onClick={() => mutate({ token: '0x...' })}
346
+ * disabled={isPending}
347
+ * >
348
+ * Update Quote Token
349
+ * </button>
350
+ * )
351
+ * }
352
+ * ```
353
+ *
354
+ * @param parameters - Parameters.
355
+ * @returns Mutation result.
356
+ */
357
+ export declare function useUpdateQuoteToken<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useUpdateQuoteToken.Parameters<config, context>): useUpdateQuoteToken.ReturnType<config, context>;
358
+ export declare namespace useUpdateQuoteToken {
359
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
360
+ mutation?: UseMutationParameters<Actions.updateQuoteToken.ReturnValue, Actions.updateQuoteToken.ErrorType, Actions.updateQuoteToken.Parameters<config>, context> | undefined;
361
+ };
362
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.updateQuoteToken.ReturnValue, Actions.updateQuoteToken.ErrorType, Actions.updateQuoteToken.Parameters<config>, context>;
363
+ }
364
+ /**
365
+ * Hook for updating the quote token for a TIP20 token.
366
+ *
367
+ * Note: This is a synchronous hook that waits for the transaction
368
+ * to be included on a block before returning a response.
369
+ *
370
+ * @example
371
+ * ```tsx
372
+ * import { Hooks } from 'tempo.ts/wagmi'
373
+ *
374
+ * function App() {
375
+ * const { mutate, isPending } = Hooks.token.useUpdateQuoteTokenSync()
376
+ *
377
+ * return (
378
+ * <button
379
+ * onClick={() => mutate({ token: '0x...' })}
380
+ * disabled={isPending}
381
+ * >
382
+ * Update Quote Token
383
+ * </button>
384
+ * )
385
+ * }
386
+ * ```
387
+ *
388
+ * @param parameters - Parameters.
389
+ * @returns Mutation result.
390
+ */
391
+ export declare function useUpdateQuoteTokenSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useUpdateQuoteTokenSync.Parameters<config, context>): useUpdateQuoteTokenSync.ReturnType<config, context>;
392
+ export declare namespace useUpdateQuoteTokenSync {
393
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
394
+ mutation?: UseMutationParameters<Actions.updateQuoteTokenSync.ReturnValue, Actions.updateQuoteTokenSync.ErrorType, Actions.updateQuoteTokenSync.Parameters<config>, context> | undefined;
395
+ };
396
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.updateQuoteTokenSync.ReturnValue, Actions.updateQuoteTokenSync.ErrorType, Actions.updateQuoteTokenSync.Parameters<config>, context>;
397
+ }
398
+ /**
399
+ * Hook for getting TIP20 token allowance.
400
+ *
401
+ * @example
402
+ * ```tsx
403
+ * import { Hooks } from 'tempo.ts/wagmi'
404
+ *
405
+ * function App() {
406
+ * const { data, isLoading } = Hooks.token.useGetAllowance({
407
+ * account: '0x...',
408
+ * spender: '0x...',
409
+ * })
410
+ *
411
+ * if (isLoading) return <div>Loading...</div>
412
+ * return <div>Allowance: {data?.toString()}</div>
413
+ * }
414
+ * ```
415
+ *
416
+ * @param parameters - Parameters.
417
+ * @returns Query result with token allowance.
418
+ */
419
+ export declare function useGetAllowance<config extends Config = ResolvedRegister['config'], selectData = Actions.getAllowance.ReturnValue>(parameters?: useGetAllowance.Parameters<config, selectData>): UseQueryReturnType<selectData, Error>;
420
+ export declare namespace useGetAllowance {
421
+ type Parameters<config extends Config = ResolvedRegister['config'], selectData = Actions.getAllowance.ReturnValue> = ConfigParameter<config> & QueryParameter<Actions.getAllowance.ReturnValue, DefaultError, selectData, Actions.getAllowance.QueryKey<config>> & ExactPartial<Omit<Actions.getAllowance.queryOptions.Parameters<config, selectData>, 'query'>>;
422
+ type ReturnValue<selectData = Actions.getAllowance.ReturnValue> = UseQueryReturnType<selectData, Error>;
423
+ }
424
+ /**
425
+ * Hook for getting TIP20 token balance for an address.
426
+ *
427
+ * @example
428
+ * ```tsx
429
+ * import { Hooks } from 'tempo.ts/wagmi'
430
+ *
431
+ * function App() {
432
+ * const { data, isLoading } = Hooks.token.useGetBalance({
433
+ * account: '0x...',
434
+ * })
435
+ *
436
+ * if (isLoading) return <div>Loading...</div>
437
+ * return <div>Balance: {data?.toString()}</div>
438
+ * }
439
+ * ```
440
+ *
441
+ * @param parameters - Parameters.
442
+ * @returns Query result with token balance.
443
+ */
444
+ export declare function useGetBalance<config extends Config = ResolvedRegister['config'], selectData = Actions.getBalance.ReturnValue>(parameters?: useGetBalance.Parameters<config, selectData>): UseQueryReturnType<selectData, Error>;
445
+ export declare namespace useGetBalance {
446
+ type Parameters<config extends Config = ResolvedRegister['config'], selectData = Actions.getBalance.ReturnValue> = ConfigParameter<config> & QueryParameter<Actions.getBalance.ReturnValue, DefaultError, selectData, Actions.getBalance.QueryKey<config>> & ExactPartial<Omit<Actions.getBalance.queryOptions.Parameters<config, selectData>, 'query'>>;
447
+ type ReturnValue<selectData = Actions.getBalance.ReturnValue> = UseQueryReturnType<selectData, Error>;
448
+ }
449
+ /**
450
+ * Hook for getting TIP20 token metadata.
451
+ *
452
+ * @example
453
+ * ```tsx
454
+ * import { Hooks } from 'tempo.ts/wagmi'
455
+ *
456
+ * function App() {
457
+ * const { data, isLoading } = Hooks.token.useGetMetadata({
458
+ * token: '0x...',
459
+ * })
460
+ *
461
+ * if (isLoading) return <div>Loading...</div>
462
+ * return <div>{data?.name} ({data?.symbol})</div>
463
+ * }
464
+ * ```
465
+ *
466
+ * @param parameters - Parameters.
467
+ * @returns Query result with token metadata.
468
+ */
469
+ export declare function useGetMetadata<config extends Config = ResolvedRegister['config'], selectData = Actions.getMetadata.ReturnValue>(parameters?: useGetMetadata.Parameters<config, selectData>): UseQueryReturnType<selectData, Error>;
470
+ export declare namespace useGetMetadata {
471
+ type Parameters<config extends Config = ResolvedRegister['config'], selectData = Actions.getMetadata.ReturnValue> = ConfigParameter<config> & QueryParameter<Actions.getMetadata.ReturnValue, DefaultError, selectData, Actions.getMetadata.QueryKey<config>> & ExactPartial<Omit<Actions.getMetadata.queryOptions.Parameters<config, selectData>, 'query'>>;
472
+ type ReturnValue<selectData = Actions.getMetadata.ReturnValue> = UseQueryReturnType<selectData, Error>;
473
+ }
474
+ /**
475
+ * Hook for getting the admin role for a specific role in a TIP20 token.
476
+ *
477
+ * @example
478
+ * ```tsx
479
+ * import { Hooks } from 'tempo.ts/wagmi'
480
+ *
481
+ * function App() {
482
+ * const { data, isLoading } = Hooks.token.useGetRoleAdmin({
483
+ * role: 'minter',
484
+ * token: '0x...',
485
+ * })
486
+ *
487
+ * if (isLoading) return <div>Loading...</div>
488
+ * return <div>Admin Role: {data}</div>
489
+ * }
490
+ * ```
491
+ *
492
+ * @param parameters - Parameters.
493
+ * @returns Query result with admin role hash.
494
+ */
495
+ export declare function useGetRoleAdmin<config extends Config = ResolvedRegister['config'], selectData = Actions.getRoleAdmin.ReturnValue>(parameters: useGetRoleAdmin.Parameters<config, selectData>): UseQueryReturnType<selectData, Error>;
496
+ export declare namespace useGetRoleAdmin {
497
+ type Parameters<config extends Config = ResolvedRegister['config'], selectData = Actions.getRoleAdmin.ReturnValue> = ConfigParameter<config> & QueryParameter<Actions.getRoleAdmin.ReturnValue, DefaultError, selectData, Actions.getRoleAdmin.QueryKey<config>> & ExactPartial<Omit<Actions.getRoleAdmin.queryOptions.Parameters<config, selectData>, 'query'>>;
498
+ type ReturnValue<selectData = Actions.getRoleAdmin.ReturnValue> = UseQueryReturnType<selectData, Error>;
499
+ }
500
+ /**
501
+ * Hook for granting roles for a TIP20 token.
502
+ *
503
+ * @example
504
+ * ```tsx
505
+ * import { Hooks } from 'tempo.ts/wagmi'
506
+ *
507
+ * function App() {
508
+ * const { mutate, isPending } = Hooks.token.useGrantRoles()
509
+ *
510
+ * return (
511
+ * <button
512
+ * onClick={() => mutate({ token: '0x...', to: '0x...', roles: ['issuer'] })}
513
+ * disabled={isPending}
514
+ * >
515
+ * Grant Roles
516
+ * </button>
517
+ * )
518
+ * }
519
+ * ```
520
+ *
521
+ * @param parameters - Parameters.
522
+ * @returns Mutation result.
523
+ */
524
+ export declare function useGrantRoles<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useGrantRoles.Parameters<config, context>): useGrantRoles.ReturnType<config, context>;
525
+ export declare namespace useGrantRoles {
526
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
527
+ mutation?: UseMutationParameters<Actions.grantRoles.ReturnValue, Actions.grantRoles.ErrorType, Actions.grantRoles.Parameters<config>, context> | undefined;
528
+ };
529
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.grantRoles.ReturnValue, Actions.grantRoles.ErrorType, Actions.grantRoles.Parameters<config>, context>;
530
+ }
531
+ /**
532
+ * Hook for granting roles for a TIP20 token.
533
+ *
534
+ * Note: This is a synchronous hook that waits for the transaction
535
+ * to be included on a block before returning a response.
536
+ *
537
+ * @example
538
+ * ```tsx
539
+ * import { Hooks } from 'tempo.ts/wagmi'
540
+ *
541
+ * function App() {
542
+ * const { mutate, isPending } = Hooks.token.useGrantRolesSync()
543
+ *
544
+ * return (
545
+ * <button
546
+ * onClick={() => mutate({ token: '0x...', to: '0x...', roles: ['issuer'] })}
547
+ * disabled={isPending}
548
+ * >
549
+ * Grant Roles
550
+ * </button>
551
+ * )
552
+ * }
553
+ * ```
554
+ *
555
+ * @param parameters - Parameters.
556
+ * @returns Mutation result.
557
+ */
558
+ export declare function useGrantRolesSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useGrantRolesSync.Parameters<config, context>): useGrantRolesSync.ReturnType<config, context>;
559
+ export declare namespace useGrantRolesSync {
560
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
561
+ mutation?: UseMutationParameters<Actions.grantRolesSync.ReturnValue, Actions.grantRolesSync.ErrorType, Actions.grantRolesSync.Parameters<config>, context> | undefined;
562
+ };
563
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.grantRolesSync.ReturnValue, Actions.grantRolesSync.ErrorType, Actions.grantRolesSync.Parameters<config>, context>;
564
+ }
565
+ /**
566
+ * Hook for checking if an account has a specific role for a TIP20 token.
567
+ *
568
+ * @example
569
+ * ```tsx
570
+ * import { Hooks } from 'tempo.ts/wagmi'
571
+ *
572
+ * function App() {
573
+ * const { data, isLoading } = Hooks.token.useHasRole({
574
+ * account: '0x...',
575
+ * role: 'issuer',
576
+ * token: '0x...',
577
+ * })
578
+ *
579
+ * if (isLoading) return <div>Loading...</div>
580
+ * return <div>Has Role: {data ? 'Yes' : 'No'}</div>
581
+ * }
582
+ * ```
583
+ *
584
+ * @param parameters - Parameters.
585
+ * @returns Query result with boolean indicating if account has role.
586
+ */
587
+ export declare function useHasRole<config extends Config = ResolvedRegister['config'], selectData = Actions.hasRole.ReturnValue>(parameters: useHasRole.Parameters<config, selectData>): UseQueryReturnType<selectData, Error>;
588
+ export declare namespace useHasRole {
589
+ type Parameters<config extends Config = ResolvedRegister['config'], selectData = Actions.hasRole.ReturnValue> = ConfigParameter<config> & QueryParameter<Actions.hasRole.ReturnValue, DefaultError, selectData, Actions.hasRole.QueryKey<config>> & ExactPartial<Omit<Actions.hasRole.queryOptions.Parameters<config, selectData>, 'query'>>;
590
+ type ReturnValue<selectData = Actions.hasRole.ReturnValue> = UseQueryReturnType<selectData, Error>;
591
+ }
592
+ /**
593
+ * Hook for minting TIP20 tokens to an address.
594
+ *
595
+ * @example
596
+ * ```tsx
597
+ * import { Hooks } from 'tempo.ts/wagmi'
598
+ *
599
+ * function App() {
600
+ * const { mutate, isPending } = Hooks.token.useMint()
601
+ *
602
+ * return (
603
+ * <button
604
+ * onClick={() => mutate({ to: '0x...', amount: 100n, token: '0x...' })}
605
+ * disabled={isPending}
606
+ * >
607
+ * Mint
608
+ * </button>
609
+ * )
610
+ * }
611
+ * ```
612
+ *
613
+ * @param parameters - Parameters.
614
+ * @returns Mutation result.
615
+ */
616
+ export declare function useMint<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useMint.Parameters<config, context>): useMint.ReturnType<config, context>;
617
+ export declare namespace useMint {
618
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
619
+ mutation?: UseMutationParameters<Actions.mint.ReturnValue, Actions.mint.ErrorType, Actions.mint.Parameters<config>, context> | undefined;
620
+ };
621
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.mint.ReturnValue, Actions.mint.ErrorType, Actions.mint.Parameters<config>, context>;
622
+ }
623
+ /**
624
+ * Hook for minting TIP20 tokens to an address.
625
+ *
626
+ * Note: This is a synchronous hook that waits for the transaction
627
+ * to be included on a block before returning a response.
628
+ *
629
+ * @example
630
+ * ```tsx
631
+ * import { Hooks } from 'tempo.ts/wagmi'
632
+ *
633
+ * function App() {
634
+ * const { mutate, isPending } = Hooks.token.useMintSync()
635
+ *
636
+ * return (
637
+ * <button
638
+ * onClick={() => mutate({ to: '0x...', amount: 100n, token: '0x...' })}
639
+ * disabled={isPending}
640
+ * >
641
+ * Mint
642
+ * </button>
643
+ * )
644
+ * }
645
+ * ```
646
+ *
647
+ * @param parameters - Parameters.
648
+ * @returns Mutation result.
649
+ */
650
+ export declare function useMintSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useMintSync.Parameters<config, context>): useMintSync.ReturnType<config, context>;
651
+ export declare namespace useMintSync {
652
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
653
+ mutation?: UseMutationParameters<Actions.mintSync.ReturnValue, Actions.mintSync.ErrorType, Actions.mintSync.Parameters<config>, context> | undefined;
654
+ };
655
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.mintSync.ReturnValue, Actions.mintSync.ErrorType, Actions.mintSync.Parameters<config>, context>;
656
+ }
657
+ /**
658
+ * Hook for pausing a TIP20 token.
659
+ *
660
+ * @example
661
+ * ```tsx
662
+ * import { Hooks } from 'tempo.ts/wagmi'
663
+ *
664
+ * function App() {
665
+ * const { mutate, isPending } = Hooks.token.usePause()
666
+ *
667
+ * return (
668
+ * <button
669
+ * onClick={() => mutate({ token: '0x...' })}
670
+ * disabled={isPending}
671
+ * >
672
+ * Pause
673
+ * </button>
674
+ * )
675
+ * }
676
+ * ```
677
+ *
678
+ * @param parameters - Parameters.
679
+ * @returns Mutation result.
680
+ */
681
+ export declare function usePause<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: usePause.Parameters<config, context>): usePause.ReturnType<config, context>;
682
+ export declare namespace usePause {
683
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
684
+ mutation?: UseMutationParameters<Actions.pause.ReturnValue, Actions.pause.ErrorType, Actions.pause.Parameters<config>, context> | undefined;
685
+ };
686
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.pause.ReturnValue, Actions.pause.ErrorType, Actions.pause.Parameters<config>, context>;
687
+ }
688
+ /**
689
+ * Hook for pausing a TIP20 token.
690
+ *
691
+ * Note: This is a synchronous hook that waits for the transaction
692
+ * to be included on a block before returning a response.
693
+ *
694
+ * @example
695
+ * ```tsx
696
+ * import { Hooks } from 'tempo.ts/wagmi'
697
+ *
698
+ * function App() {
699
+ * const { mutate, isPending } = Hooks.token.usePauseSync()
700
+ *
701
+ * return (
702
+ * <button
703
+ * onClick={() => mutate({ token: '0x...' })}
704
+ * disabled={isPending}
705
+ * >
706
+ * Pause
707
+ * </button>
708
+ * )
709
+ * }
710
+ * ```
711
+ *
712
+ * @param parameters - Parameters.
713
+ * @returns Mutation result.
714
+ */
715
+ export declare function usePauseSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: usePauseSync.Parameters<config, context>): usePauseSync.ReturnType<config, context>;
716
+ export declare namespace usePauseSync {
717
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
718
+ mutation?: UseMutationParameters<Actions.pauseSync.ReturnValue, Actions.pauseSync.ErrorType, Actions.pauseSync.Parameters<config>, context> | undefined;
719
+ };
720
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.pauseSync.ReturnValue, Actions.pauseSync.ErrorType, Actions.pauseSync.Parameters<config>, context>;
721
+ }
722
+ /**
723
+ * Hook for renouncing roles for a TIP20 token.
724
+ *
725
+ * @example
726
+ * ```tsx
727
+ * import { Hooks } from 'tempo.ts/wagmi'
728
+ *
729
+ * function App() {
730
+ * const { mutate, isPending } = Hooks.token.useRenounceRoles()
731
+ *
732
+ * return (
733
+ * <button
734
+ * onClick={() => mutate({ token: '0x...', roles: ['issuer'] })}
735
+ * disabled={isPending}
736
+ * >
737
+ * Renounce Roles
738
+ * </button>
739
+ * )
740
+ * }
741
+ * ```
742
+ *
743
+ * @param parameters - Parameters.
744
+ * @returns Mutation result.
745
+ */
746
+ export declare function useRenounceRoles<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useRenounceRoles.Parameters<config, context>): useRenounceRoles.ReturnType<config, context>;
747
+ export declare namespace useRenounceRoles {
748
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
749
+ mutation?: UseMutationParameters<Actions.renounceRoles.ReturnValue, Actions.renounceRoles.ErrorType, Actions.renounceRoles.Parameters<config>, context> | undefined;
750
+ };
751
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.renounceRoles.ReturnValue, Actions.renounceRoles.ErrorType, Actions.renounceRoles.Parameters<config>, context>;
752
+ }
753
+ /**
754
+ * Hook for renouncing roles for a TIP20 token.
755
+ *
756
+ * Note: This is a synchronous hook that waits for the transaction
757
+ * to be included on a block before returning a response.
758
+ *
759
+ * @example
760
+ * ```tsx
761
+ * import { Hooks } from 'tempo.ts/wagmi'
762
+ *
763
+ * function App() {
764
+ * const { mutate, isPending } = Hooks.token.useRenounceRolesSync()
765
+ *
766
+ * return (
767
+ * <button
768
+ * onClick={() => mutate({ token: '0x...', roles: ['issuer'] })}
769
+ * disabled={isPending}
770
+ * >
771
+ * Renounce Roles
772
+ * </button>
773
+ * )
774
+ * }
775
+ * ```
776
+ *
777
+ * @param parameters - Parameters.
778
+ * @returns Mutation result.
779
+ */
780
+ export declare function useRenounceRolesSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useRenounceRolesSync.Parameters<config, context>): useRenounceRolesSync.ReturnType<config, context>;
781
+ export declare namespace useRenounceRolesSync {
782
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
783
+ mutation?: UseMutationParameters<Actions.renounceRolesSync.ReturnValue, Actions.renounceRolesSync.ErrorType, Actions.renounceRolesSync.Parameters<config>, context> | undefined;
784
+ };
785
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.renounceRolesSync.ReturnValue, Actions.renounceRolesSync.ErrorType, Actions.renounceRolesSync.Parameters<config>, context>;
786
+ }
787
+ /**
788
+ * Hook for revoking roles for a TIP20 token.
789
+ *
790
+ * @example
791
+ * ```tsx
792
+ * import { Hooks } from 'tempo.ts/wagmi'
793
+ *
794
+ * function App() {
795
+ * const { mutate, isPending } = Hooks.token.useRevokeRoles()
796
+ *
797
+ * return (
798
+ * <button
799
+ * onClick={() => mutate({ token: '0x...', from: '0x...', roles: ['issuer'] })}
800
+ * disabled={isPending}
801
+ * >
802
+ * Revoke Roles
803
+ * </button>
804
+ * )
805
+ * }
806
+ * ```
807
+ *
808
+ * @param parameters - Parameters.
809
+ * @returns Mutation result.
810
+ */
811
+ export declare function useRevokeRoles<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useRevokeRoles.Parameters<config, context>): useRevokeRoles.ReturnType<config, context>;
812
+ export declare namespace useRevokeRoles {
813
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
814
+ mutation?: UseMutationParameters<Actions.revokeRoles.ReturnValue, Actions.revokeRoles.ErrorType, Actions.revokeRoles.Parameters<config>, context> | undefined;
815
+ };
816
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.revokeRoles.ReturnValue, Actions.revokeRoles.ErrorType, Actions.revokeRoles.Parameters<config>, context>;
817
+ }
818
+ /**
819
+ * Hook for revoking roles for a TIP20 token.
820
+ *
821
+ * Note: This is a synchronous hook that waits for the transaction
822
+ * to be included on a block before returning a response.
823
+ *
824
+ * @example
825
+ * ```tsx
826
+ * import { Hooks } from 'tempo.ts/wagmi'
827
+ *
828
+ * function App() {
829
+ * const { mutate, isPending } = Hooks.token.useRevokeRolesSync()
830
+ *
831
+ * return (
832
+ * <button
833
+ * onClick={() => mutate({ token: '0x...', from: '0x...', roles: ['issuer'] })}
834
+ * disabled={isPending}
835
+ * >
836
+ * Revoke Roles
837
+ * </button>
838
+ * )
839
+ * }
840
+ * ```
841
+ *
842
+ * @param parameters - Parameters.
843
+ * @returns Mutation result.
844
+ */
845
+ export declare function useRevokeRolesSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useRevokeRolesSync.Parameters<config, context>): useRevokeRolesSync.ReturnType<config, context>;
846
+ export declare namespace useRevokeRolesSync {
847
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
848
+ mutation?: UseMutationParameters<Actions.revokeRolesSync.ReturnValue, Actions.revokeRolesSync.ErrorType, Actions.revokeRolesSync.Parameters<config>, context> | undefined;
849
+ };
850
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.revokeRolesSync.ReturnValue, Actions.revokeRolesSync.ErrorType, Actions.revokeRolesSync.Parameters<config>, context>;
851
+ }
852
+ /**
853
+ * Hook for setting the admin role for a specific role in a TIP20 token.
854
+ *
855
+ * @example
856
+ * ```tsx
857
+ * import { Hooks } from 'tempo.ts/wagmi'
858
+ *
859
+ * function App() {
860
+ * const { mutate, isPending } = Hooks.token.useSetRoleAdmin()
861
+ *
862
+ * return (
863
+ * <button
864
+ * onClick={() => mutate({ token: '0x...', role: 'issuer', adminRole: 'pause' })}
865
+ * disabled={isPending}
866
+ * >
867
+ * Set Role Admin
868
+ * </button>
869
+ * )
870
+ * }
871
+ * ```
872
+ *
873
+ * @param parameters - Parameters.
874
+ * @returns Mutation result.
875
+ */
876
+ export declare function useSetRoleAdmin<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useSetRoleAdmin.Parameters<config, context>): useSetRoleAdmin.ReturnType<config, context>;
877
+ export declare namespace useSetRoleAdmin {
878
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
879
+ mutation?: UseMutationParameters<Actions.setRoleAdmin.ReturnValue, Actions.setRoleAdmin.ErrorType, Actions.setRoleAdmin.Parameters<config>, context> | undefined;
880
+ };
881
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.setRoleAdmin.ReturnValue, Actions.setRoleAdmin.ErrorType, Actions.setRoleAdmin.Parameters<config>, context>;
882
+ }
883
+ /**
884
+ * Hook for setting the admin role for a specific role in a TIP20 token.
885
+ *
886
+ * Note: This is a synchronous hook that waits for the transaction
887
+ * to be included on a block before returning a response.
888
+ *
889
+ * @example
890
+ * ```tsx
891
+ * import { Hooks } from 'tempo.ts/wagmi'
892
+ *
893
+ * function App() {
894
+ * const { mutate, isPending } = Hooks.token.useSetRoleAdminSync()
895
+ *
896
+ * return (
897
+ * <button
898
+ * onClick={() => mutate({ token: '0x...', role: 'issuer', adminRole: 'pause' })}
899
+ * disabled={isPending}
900
+ * >
901
+ * Set Role Admin
902
+ * </button>
903
+ * )
904
+ * }
905
+ * ```
906
+ *
907
+ * @param parameters - Parameters.
908
+ * @returns Mutation result.
909
+ */
910
+ export declare function useSetRoleAdminSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useSetRoleAdminSync.Parameters<config, context>): useSetRoleAdminSync.ReturnType<config, context>;
911
+ export declare namespace useSetRoleAdminSync {
912
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
913
+ mutation?: UseMutationParameters<Actions.setRoleAdminSync.ReturnValue, Actions.setRoleAdminSync.ErrorType, Actions.setRoleAdminSync.Parameters<config>, context> | undefined;
914
+ };
915
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.setRoleAdminSync.ReturnValue, Actions.setRoleAdminSync.ErrorType, Actions.setRoleAdminSync.Parameters<config>, context>;
916
+ }
917
+ /**
918
+ * Hook for setting the supply cap for a TIP20 token.
919
+ *
920
+ * @example
921
+ * ```tsx
922
+ * import { Hooks } from 'tempo.ts/wagmi'
923
+ *
924
+ * function App() {
925
+ * const { mutate, isPending } = Hooks.token.useSetSupplyCap()
926
+ *
927
+ * return (
928
+ * <button
929
+ * onClick={() => mutate({ token: '0x...', supplyCap: 1000000n })}
930
+ * disabled={isPending}
931
+ * >
932
+ * Set Supply Cap
933
+ * </button>
934
+ * )
935
+ * }
936
+ * ```
937
+ *
938
+ * @param parameters - Parameters.
939
+ * @returns Mutation result.
940
+ */
941
+ export declare function useSetSupplyCap<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useSetSupplyCap.Parameters<config, context>): useSetSupplyCap.ReturnType<config, context>;
942
+ export declare namespace useSetSupplyCap {
943
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
944
+ mutation?: UseMutationParameters<Actions.setSupplyCap.ReturnValue, Actions.setSupplyCap.ErrorType, Actions.setSupplyCap.Parameters<config>, context> | undefined;
945
+ };
946
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.setSupplyCap.ReturnValue, Actions.setSupplyCap.ErrorType, Actions.setSupplyCap.Parameters<config>, context>;
947
+ }
948
+ /**
949
+ * Hook for setting the supply cap for a TIP20 token.
950
+ *
951
+ * Note: This is a synchronous hook that waits for the transaction
952
+ * to be included on a block before returning a response.
953
+ *
954
+ * @example
955
+ * ```tsx
956
+ * import { Hooks } from 'tempo.ts/wagmi'
957
+ *
958
+ * function App() {
959
+ * const { mutate, isPending } = Hooks.token.useSetSupplyCapSync()
960
+ *
961
+ * return (
962
+ * <button
963
+ * onClick={() => mutate({ token: '0x...', supplyCap: 1000000n })}
964
+ * disabled={isPending}
965
+ * >
966
+ * Set Supply Cap
967
+ * </button>
968
+ * )
969
+ * }
970
+ * ```
971
+ *
972
+ * @param parameters - Parameters.
973
+ * @returns Mutation result.
974
+ */
975
+ export declare function useSetSupplyCapSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useSetSupplyCapSync.Parameters<config, context>): useSetSupplyCapSync.ReturnType<config, context>;
976
+ export declare namespace useSetSupplyCapSync {
977
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
978
+ mutation?: UseMutationParameters<Actions.setSupplyCapSync.ReturnValue, Actions.setSupplyCapSync.ErrorType, Actions.setSupplyCapSync.Parameters<config>, context> | undefined;
979
+ };
980
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.setSupplyCapSync.ReturnValue, Actions.setSupplyCapSync.ErrorType, Actions.setSupplyCapSync.Parameters<config>, context>;
981
+ }
982
+ /**
983
+ * Hook for transferring TIP20 tokens to another address.
984
+ *
985
+ * @example
986
+ * ```tsx
987
+ * import { Hooks } from 'tempo.ts/wagmi'
988
+ *
989
+ * function App() {
990
+ * const { mutate, isPending } = Hooks.token.useTransfer()
991
+ *
992
+ * return (
993
+ * <button
994
+ * onClick={() => mutate({ to: '0x...', amount: 100n })}
995
+ * disabled={isPending}
996
+ * >
997
+ * Transfer
998
+ * </button>
999
+ * )
1000
+ * }
1001
+ * ```
1002
+ *
1003
+ * @param parameters - Parameters.
1004
+ * @returns Mutation result.
1005
+ */
1006
+ export declare function useTransfer<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useTransfer.Parameters<config, context>): useTransfer.ReturnType<config, context>;
1007
+ export declare namespace useTransfer {
1008
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
1009
+ mutation?: UseMutationParameters<Actions.transfer.ReturnValue, Actions.transfer.ErrorType, Actions.transfer.Parameters<config>, context> | undefined;
1010
+ };
1011
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.transfer.ReturnValue, Actions.transfer.ErrorType, Actions.transfer.Parameters<config>, context>;
1012
+ }
1013
+ /**
1014
+ * Hook for transferring TIP20 tokens to another address.
1015
+ *
1016
+ * Note: This is a synchronous hook that waits for the transaction
1017
+ * to be included on a block before returning a response.
1018
+ *
1019
+ * @example
1020
+ * ```tsx
1021
+ * import { Hooks } from 'tempo.ts/wagmi'
1022
+ *
1023
+ * function App() {
1024
+ * const { mutate, isPending } = Hooks.token.useTransferSync()
1025
+ *
1026
+ * return (
1027
+ * <button
1028
+ * onClick={() => mutate({ to: '0x...', amount: 100n })}
1029
+ * disabled={isPending}
1030
+ * >
1031
+ * Transfer
1032
+ * </button>
1033
+ * )
1034
+ * }
1035
+ * ```
1036
+ *
1037
+ * @param parameters - Parameters.
1038
+ * @returns Mutation result.
1039
+ */
1040
+ export declare function useTransferSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useTransferSync.Parameters<config, context>): useTransferSync.ReturnType<config, context>;
1041
+ export declare namespace useTransferSync {
1042
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
1043
+ mutation?: UseMutationParameters<Actions.transferSync.ReturnValue, Actions.transferSync.ErrorType, Actions.transferSync.Parameters<config>, context> | undefined;
1044
+ };
1045
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.transferSync.ReturnValue, Actions.transferSync.ErrorType, Actions.transferSync.Parameters<config>, context>;
1046
+ }
1047
+ /**
1048
+ * Hook for unpausing a TIP20 token.
1049
+ *
1050
+ * @example
1051
+ * ```tsx
1052
+ * import { Hooks } from 'tempo.ts/wagmi'
1053
+ *
1054
+ * function App() {
1055
+ * const { mutate, isPending } = Hooks.token.useUnpause()
1056
+ *
1057
+ * return (
1058
+ * <button
1059
+ * onClick={() => mutate({ token: '0x...' })}
1060
+ * disabled={isPending}
1061
+ * >
1062
+ * Unpause
1063
+ * </button>
1064
+ * )
1065
+ * }
1066
+ * ```
1067
+ *
1068
+ * @param parameters - Parameters.
1069
+ * @returns Mutation result.
1070
+ */
1071
+ export declare function useUnpause<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useUnpause.Parameters<config, context>): useUnpause.ReturnType<config, context>;
1072
+ export declare namespace useUnpause {
1073
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
1074
+ mutation?: UseMutationParameters<Actions.unpause.ReturnValue, Actions.unpause.ErrorType, Actions.unpause.Parameters<config>, context> | undefined;
1075
+ };
1076
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.unpause.ReturnValue, Actions.unpause.ErrorType, Actions.unpause.Parameters<config>, context>;
1077
+ }
1078
+ /**
1079
+ * Hook for unpausing a TIP20 token.
1080
+ *
1081
+ * Note: This is a synchronous hook that waits for the transaction
1082
+ * to be included on a block before returning a response.
1083
+ *
1084
+ * @example
1085
+ * ```tsx
1086
+ * import { Hooks } from 'tempo.ts/wagmi'
1087
+ *
1088
+ * function App() {
1089
+ * const { mutate, isPending } = Hooks.token.useUnpauseSync()
1090
+ *
1091
+ * return (
1092
+ * <button
1093
+ * onClick={() => mutate({ token: '0x...' })}
1094
+ * disabled={isPending}
1095
+ * >
1096
+ * Unpause
1097
+ * </button>
1098
+ * )
1099
+ * }
1100
+ * ```
1101
+ *
1102
+ * @param parameters - Parameters.
1103
+ * @returns Mutation result.
1104
+ */
1105
+ export declare function useUnpauseSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: useUnpauseSync.Parameters<config, context>): useUnpauseSync.ReturnType<config, context>;
1106
+ export declare namespace useUnpauseSync {
1107
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
1108
+ mutation?: UseMutationParameters<Actions.unpauseSync.ReturnValue, Actions.unpauseSync.ErrorType, Actions.unpauseSync.Parameters<config>, context> | undefined;
1109
+ };
1110
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.unpauseSync.ReturnValue, Actions.unpauseSync.ErrorType, Actions.unpauseSync.Parameters<config>, context>;
1111
+ }
1112
+ /**
1113
+ * Hook for preparing the quote token update for a TIP20 token.
1114
+ *
1115
+ * @example
1116
+ * ```tsx
1117
+ * import { Hooks } from 'tempo.ts/wagmi'
1118
+ *
1119
+ * function App() {
1120
+ * const { mutate, isPending } = Hooks.token.usePrepareUpdateQuoteToken()
1121
+ *
1122
+ * return (
1123
+ * <button
1124
+ * onClick={() => mutate({ token: '0x...', quoteToken: '0x...' })}
1125
+ * disabled={isPending}
1126
+ * >
1127
+ * Prepare Update Quote Token
1128
+ * </button>
1129
+ * )
1130
+ * }
1131
+ * ```
1132
+ *
1133
+ * @param parameters - Parameters.
1134
+ * @returns Mutation result.
1135
+ */
1136
+ export declare function usePrepareUpdateQuoteToken<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: usePrepareUpdateQuoteToken.Parameters<config, context>): usePrepareUpdateQuoteToken.ReturnType<config, context>;
1137
+ export declare namespace usePrepareUpdateQuoteToken {
1138
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
1139
+ mutation?: UseMutationParameters<Actions.prepareUpdateQuoteToken.ReturnValue, Actions.prepareUpdateQuoteToken.ErrorType, Actions.prepareUpdateQuoteToken.Parameters<config>, context> | undefined;
1140
+ };
1141
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.prepareUpdateQuoteToken.ReturnValue, Actions.prepareUpdateQuoteToken.ErrorType, Actions.prepareUpdateQuoteToken.Parameters<config>, context>;
1142
+ }
1143
+ /**
1144
+ * Hook for preparing the quote token update for a TIP20 token.
1145
+ *
1146
+ * Note: This is a synchronous hook that waits for the transaction
1147
+ * to be included on a block before returning a response.
1148
+ *
1149
+ * @example
1150
+ * ```tsx
1151
+ * import { Hooks } from 'tempo.ts/wagmi'
1152
+ *
1153
+ * function App() {
1154
+ * const { mutate, isPending } = Hooks.token.usePrepareUpdateQuoteTokenSync()
1155
+ *
1156
+ * return (
1157
+ * <button
1158
+ * onClick={() => mutate({ token: '0x...', quoteToken: '0x...' })}
1159
+ * disabled={isPending}
1160
+ * >
1161
+ * Prepare Update Quote Token
1162
+ * </button>
1163
+ * )
1164
+ * }
1165
+ * ```
1166
+ *
1167
+ * @param parameters - Parameters.
1168
+ * @returns Mutation result.
1169
+ */
1170
+ export declare function usePrepareUpdateQuoteTokenSync<config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: usePrepareUpdateQuoteTokenSync.Parameters<config, context>): usePrepareUpdateQuoteTokenSync.ReturnType<config, context>;
1171
+ export declare namespace usePrepareUpdateQuoteTokenSync {
1172
+ type Parameters<config extends Config = Config, context = unknown> = ConfigParameter<config> & {
1173
+ mutation?: UseMutationParameters<Actions.prepareUpdateQuoteTokenSync.ReturnValue, Actions.prepareUpdateQuoteTokenSync.ErrorType, Actions.prepareUpdateQuoteTokenSync.Parameters<config>, context> | undefined;
1174
+ };
1175
+ type ReturnType<config extends Config = Config, context = unknown> = UseMutationResult<Actions.prepareUpdateQuoteTokenSync.ReturnValue, Actions.prepareUpdateQuoteTokenSync.ErrorType, Actions.prepareUpdateQuoteTokenSync.Parameters<config>, context>;
1176
+ }
1177
+ /**
1178
+ * Hook for watching TIP20 token role admin updates.
1179
+ *
1180
+ * @example
1181
+ * ```tsx
1182
+ * import { Hooks } from 'tempo.ts/wagmi'
1183
+ *
1184
+ * function App() {
1185
+ * Hooks.token.useWatchAdminRole({
1186
+ * onRoleAdminUpdated(args) {
1187
+ * console.log('Role admin updated:', args)
1188
+ * },
1189
+ * })
1190
+ *
1191
+ * return <div>Watching for role admin updates...</div>
1192
+ * }
1193
+ * ```
1194
+ *
1195
+ * @param parameters - Parameters.
1196
+ */
1197
+ export declare function useWatchAdminRole<config extends Config = ResolvedRegister['config']>(parameters?: useWatchAdminRole.Parameters<config>): void;
1198
+ export declare namespace useWatchAdminRole {
1199
+ type Parameters<config extends Config = Config> = UnionCompute<ExactPartial<Actions.watchAdminRole.Parameters<config>> & ConfigParameter<config> & {
1200
+ enabled?: boolean | undefined;
1201
+ }>;
1202
+ }
1203
+ /**
1204
+ * Hook for watching TIP20 token approval events.
1205
+ *
1206
+ * @example
1207
+ * ```tsx
1208
+ * import { Hooks } from 'tempo.ts/wagmi'
1209
+ *
1210
+ * function App() {
1211
+ * Hooks.token.useWatchApprove({
1212
+ * onApproval(args) {
1213
+ * console.log('Approval:', args)
1214
+ * },
1215
+ * })
1216
+ *
1217
+ * return <div>Watching for approvals...</div>
1218
+ * }
1219
+ * ```
1220
+ *
1221
+ * @param parameters - Parameters.
1222
+ */
1223
+ export declare function useWatchApprove<config extends Config = ResolvedRegister['config']>(parameters?: useWatchApprove.Parameters<config>): void;
1224
+ export declare namespace useWatchApprove {
1225
+ type Parameters<config extends Config = Config> = UnionCompute<ExactPartial<Actions.watchApprove.Parameters<config>> & ConfigParameter<config> & {
1226
+ enabled?: boolean | undefined;
1227
+ }>;
1228
+ }
1229
+ /**
1230
+ * Hook for watching TIP20 token burn events.
1231
+ *
1232
+ * @example
1233
+ * ```tsx
1234
+ * import { Hooks } from 'tempo.ts/wagmi'
1235
+ *
1236
+ * function App() {
1237
+ * Hooks.token.useWatchBurn({
1238
+ * onBurn(args) {
1239
+ * console.log('Burn:', args)
1240
+ * },
1241
+ * })
1242
+ *
1243
+ * return <div>Watching for burns...</div>
1244
+ * }
1245
+ * ```
1246
+ *
1247
+ * @param parameters - Parameters.
1248
+ */
1249
+ export declare function useWatchBurn<config extends Config = ResolvedRegister['config']>(parameters?: useWatchBurn.Parameters<config>): void;
1250
+ export declare namespace useWatchBurn {
1251
+ type Parameters<config extends Config = Config> = UnionCompute<ExactPartial<Actions.watchBurn.Parameters<config>> & ConfigParameter<config> & {
1252
+ enabled?: boolean | undefined;
1253
+ }>;
1254
+ }
1255
+ /**
1256
+ * Hook for watching new TIP20 tokens created.
1257
+ *
1258
+ * @example
1259
+ * ```tsx
1260
+ * import { Hooks } from 'tempo.ts/wagmi'
1261
+ *
1262
+ * function App() {
1263
+ * Hooks.token.useWatchCreate({
1264
+ * onTokenCreated(args) {
1265
+ * console.log('Token created:', args)
1266
+ * },
1267
+ * })
1268
+ *
1269
+ * return <div>Watching for token creations...</div>
1270
+ * }
1271
+ * ```
1272
+ *
1273
+ * @param parameters - Parameters.
1274
+ */
1275
+ export declare function useWatchCreate<config extends Config = ResolvedRegister['config']>(parameters?: useWatchCreate.Parameters<config>): void;
1276
+ export declare namespace useWatchCreate {
1277
+ type Parameters<config extends Config = Config> = UnionCompute<ExactPartial<Actions.watchCreate.Parameters<config>> & ConfigParameter<config> & {
1278
+ enabled?: boolean | undefined;
1279
+ }>;
1280
+ }
1281
+ /**
1282
+ * Hook for watching TIP20 token mint events.
1283
+ *
1284
+ * @example
1285
+ * ```tsx
1286
+ * import { Hooks } from 'tempo.ts/wagmi'
1287
+ *
1288
+ * function App() {
1289
+ * Hooks.token.useWatchMint({
1290
+ * onMint(args) {
1291
+ * console.log('Mint:', args)
1292
+ * },
1293
+ * })
1294
+ *
1295
+ * return <div>Watching for mints...</div>
1296
+ * }
1297
+ * ```
1298
+ *
1299
+ * @param parameters - Parameters.
1300
+ */
1301
+ export declare function useWatchMint<config extends Config = ResolvedRegister['config']>(parameters?: useWatchMint.Parameters<config>): void;
1302
+ export declare namespace useWatchMint {
1303
+ type Parameters<config extends Config = Config> = UnionCompute<ExactPartial<Actions.watchMint.Parameters<config>> & ConfigParameter<config> & {
1304
+ enabled?: boolean | undefined;
1305
+ }>;
1306
+ }
1307
+ /**
1308
+ * Hook for watching TIP20 token role membership updates.
1309
+ *
1310
+ * @example
1311
+ * ```tsx
1312
+ * import { Hooks } from 'tempo.ts/wagmi'
1313
+ *
1314
+ * function App() {
1315
+ * Hooks.token.useWatchRole({
1316
+ * onRoleUpdated(args) {
1317
+ * console.log('Role updated:', args)
1318
+ * },
1319
+ * })
1320
+ *
1321
+ * return <div>Watching for role updates...</div>
1322
+ * }
1323
+ * ```
1324
+ *
1325
+ * @param parameters - Parameters.
1326
+ */
1327
+ export declare function useWatchRole<config extends Config = ResolvedRegister['config']>(parameters?: useWatchRole.Parameters<config>): void;
1328
+ export declare namespace useWatchRole {
1329
+ type Parameters<config extends Config = Config> = UnionCompute<ExactPartial<Actions.watchRole.Parameters<config>> & ConfigParameter<config> & {
1330
+ enabled?: boolean | undefined;
1331
+ }>;
1332
+ }
1333
+ /**
1334
+ * Hook for watching TIP20 token transfer events.
1335
+ *
1336
+ * @example
1337
+ * ```tsx
1338
+ * import { Hooks } from 'tempo.ts/wagmi'
1339
+ *
1340
+ * function App() {
1341
+ * Hooks.token.useWatchTransfer({
1342
+ * onTransfer(args) {
1343
+ * console.log('Transfer:', args)
1344
+ * },
1345
+ * })
1346
+ *
1347
+ * return <div>Watching for transfers...</div>
1348
+ * }
1349
+ * ```
1350
+ *
1351
+ * @param parameters - Parameters.
1352
+ */
1353
+ export declare function useWatchTransfer<config extends Config = ResolvedRegister['config']>(parameters?: useWatchTransfer.Parameters<config>): void;
1354
+ export declare namespace useWatchTransfer {
1355
+ type Parameters<config extends Config = Config> = UnionCompute<ExactPartial<Actions.watchTransfer.Parameters<config>> & ConfigParameter<config> & {
1356
+ enabled?: boolean | undefined;
1357
+ }>;
1358
+ }
1359
+ /**
1360
+ * Hook for watching TIP20 token quote token update events.
1361
+ *
1362
+ * @example
1363
+ * ```tsx
1364
+ * import { Hooks } from 'tempo.ts/wagmi'
1365
+ *
1366
+ * function App() {
1367
+ * Hooks.token.useWatchUpdateQuoteToken({
1368
+ * onUpdateQuoteToken(args) {
1369
+ * if (args.completed)
1370
+ * console.log('quote token update completed:', args.newQuoteToken)
1371
+ * else
1372
+ * console.log('quote token update proposed:', args.newQuoteToken)
1373
+ * },
1374
+ * })
1375
+ *
1376
+ * return <div>Watching for quote token updates...</div>
1377
+ * }
1378
+ * ```
1379
+ *
1380
+ * @param parameters - Parameters.
1381
+ */
1382
+ export declare function useWatchUpdateQuoteToken<config extends Config = ResolvedRegister['config']>(parameters?: useWatchUpdateQuoteToken.Parameters<config>): void;
1383
+ export declare namespace useWatchUpdateQuoteToken {
1384
+ type Parameters<config extends Config = Config> = UnionCompute<ExactPartial<Actions.watchUpdateQuoteToken.Parameters<config>> & ConfigParameter<config> & {
1385
+ enabled?: boolean | undefined;
1386
+ }>;
1387
+ }
1388
+ //# sourceMappingURL=token.d.ts.map