tempo.ts 0.4.1 → 0.4.3

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 (56) hide show
  1. package/README.md +9 -1
  2. package/dist/viem/Abis.d.ts +0 -4
  3. package/dist/viem/Abis.d.ts.map +1 -1
  4. package/dist/viem/Abis.js +0 -1
  5. package/dist/viem/Abis.js.map +1 -1
  6. package/dist/viem/Actions/fee.d.ts +0 -4
  7. package/dist/viem/Actions/fee.d.ts.map +1 -1
  8. package/dist/viem/Chain.d.ts.map +1 -1
  9. package/dist/viem/Chain.js +5 -1
  10. package/dist/viem/Chain.js.map +1 -1
  11. package/dist/viem/Formatters.d.ts.map +1 -1
  12. package/dist/viem/Formatters.js +19 -3
  13. package/dist/viem/Formatters.js.map +1 -1
  14. package/dist/viem/internal/account.d.ts +1 -4
  15. package/dist/viem/internal/account.d.ts.map +1 -1
  16. package/dist/viem/internal/account.js +4 -3
  17. package/dist/viem/internal/account.js.map +1 -1
  18. package/dist/viem/internal/types.d.ts +1 -1
  19. package/dist/viem/internal/types.d.ts.map +1 -1
  20. package/dist/wagmi/Actions/amm.d.ts +7 -7
  21. package/dist/wagmi/Actions/amm.d.ts.map +1 -1
  22. package/dist/wagmi/Actions/amm.js.map +1 -1
  23. package/dist/wagmi/Actions/dex.d.ts +15 -15
  24. package/dist/wagmi/Actions/dex.d.ts.map +1 -1
  25. package/dist/wagmi/Actions/dex.js.map +1 -1
  26. package/dist/wagmi/Actions/fee.d.ts +3 -3
  27. package/dist/wagmi/Actions/fee.d.ts.map +1 -1
  28. package/dist/wagmi/Actions/fee.js.map +1 -1
  29. package/dist/wagmi/Actions/reward.d.ts +9 -9
  30. package/dist/wagmi/Actions/reward.d.ts.map +1 -1
  31. package/dist/wagmi/Actions/reward.js.map +1 -1
  32. package/dist/wagmi/Actions/token.d.ts +38 -38
  33. package/dist/wagmi/Actions/token.d.ts.map +1 -1
  34. package/dist/wagmi/Actions/token.js.map +1 -1
  35. package/dist/wagmi/Hooks/amm.js.map +1 -1
  36. package/dist/wagmi/Hooks/dex.js.map +1 -1
  37. package/dist/wagmi/Hooks/fee.js.map +1 -1
  38. package/dist/wagmi/Hooks/reward.js.map +1 -1
  39. package/dist/wagmi/Hooks/token.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/viem/Abis.ts +0 -1
  42. package/src/viem/Chain.ts +6 -1
  43. package/src/viem/Formatters.ts +22 -3
  44. package/src/viem/e2e.test.ts +19 -19
  45. package/src/viem/internal/account.ts +5 -11
  46. package/src/viem/internal/types.ts +2 -1
  47. package/src/wagmi/Actions/amm.ts +34 -25
  48. package/src/wagmi/Actions/dex.ts +71 -61
  49. package/src/wagmi/Actions/fee.ts +14 -11
  50. package/src/wagmi/Actions/reward.ts +42 -36
  51. package/src/wagmi/Actions/token.ts +189 -162
  52. package/src/wagmi/Hooks/amm.ts +12 -12
  53. package/src/wagmi/Hooks/dex.ts +28 -28
  54. package/src/wagmi/Hooks/fee.ts +4 -4
  55. package/src/wagmi/Hooks/reward.ts +16 -16
  56. package/src/wagmi/Hooks/token.ts +64 -64
@@ -49,10 +49,10 @@ export function useApprove<
49
49
  return useMutation({
50
50
  ...mutation,
51
51
  async mutationFn(variables) {
52
- return Actions.approve(config, variables)
52
+ return Actions.approve(config, variables as never)
53
53
  },
54
54
  mutationKey: ['approve'],
55
- })
55
+ }) as never
56
56
  }
57
57
 
58
58
  export declare namespace useApprove {
@@ -119,10 +119,10 @@ export function useApproveSync<
119
119
  return useMutation({
120
120
  ...mutation,
121
121
  async mutationFn(variables) {
122
- return Actions.approveSync(config, variables)
122
+ return Actions.approveSync(config, variables as never)
123
123
  },
124
124
  mutationKey: ['approveSync'],
125
- })
125
+ }) as never
126
126
  }
127
127
 
128
128
  export declare namespace useApproveSync {
@@ -186,10 +186,10 @@ export function useBurn<
186
186
  return useMutation({
187
187
  ...mutation,
188
188
  async mutationFn(variables) {
189
- return Actions.burn(config, variables)
189
+ return Actions.burn(config, variables as never)
190
190
  },
191
191
  mutationKey: ['burn'],
192
- })
192
+ }) as never
193
193
  }
194
194
 
195
195
  export declare namespace useBurn {
@@ -256,10 +256,10 @@ export function useBurnSync<
256
256
  return useMutation({
257
257
  ...mutation,
258
258
  async mutationFn(variables) {
259
- return Actions.burnSync(config, variables)
259
+ return Actions.burnSync(config, variables as never)
260
260
  },
261
261
  mutationKey: ['burnSync'],
262
- })
262
+ }) as never
263
263
  }
264
264
 
265
265
  export declare namespace useBurnSync {
@@ -323,10 +323,10 @@ export function useBurnBlocked<
323
323
  return useMutation({
324
324
  ...mutation,
325
325
  async mutationFn(variables) {
326
- return Actions.burnBlocked(config, variables)
326
+ return Actions.burnBlocked(config, variables as never)
327
327
  },
328
328
  mutationKey: ['burnBlocked'],
329
- })
329
+ }) as never
330
330
  }
331
331
 
332
332
  export declare namespace useBurnBlocked {
@@ -393,10 +393,10 @@ export function useBurnBlockedSync<
393
393
  return useMutation({
394
394
  ...mutation,
395
395
  async mutationFn(variables) {
396
- return Actions.burnBlockedSync(config, variables)
396
+ return Actions.burnBlockedSync(config, variables as never)
397
397
  },
398
398
  mutationKey: ['burnBlockedSync'],
399
- })
399
+ }) as never
400
400
  }
401
401
 
402
402
  export declare namespace useBurnBlockedSync {
@@ -460,10 +460,10 @@ export function useChangeTransferPolicy<
460
460
  return useMutation({
461
461
  ...mutation,
462
462
  async mutationFn(variables) {
463
- return Actions.changeTransferPolicy(config, variables)
463
+ return Actions.changeTransferPolicy(config, variables as never)
464
464
  },
465
465
  mutationKey: ['changeTransferPolicy'],
466
- })
466
+ }) as never
467
467
  }
468
468
 
469
469
  export declare namespace useChangeTransferPolicy {
@@ -530,10 +530,10 @@ export function useChangeTransferPolicySync<
530
530
  return useMutation({
531
531
  ...mutation,
532
532
  async mutationFn(variables) {
533
- return Actions.changeTransferPolicySync(config, variables)
533
+ return Actions.changeTransferPolicySync(config, variables as never)
534
534
  },
535
535
  mutationKey: ['changeTransferPolicySync'],
536
- })
536
+ }) as never
537
537
  }
538
538
 
539
539
  export declare namespace useChangeTransferPolicySync {
@@ -597,10 +597,10 @@ export function useCreate<
597
597
  return useMutation({
598
598
  ...mutation,
599
599
  async mutationFn(variables) {
600
- return Actions.create(config, variables)
600
+ return Actions.create(config, variables as never)
601
601
  },
602
602
  mutationKey: ['create'],
603
- })
603
+ }) as never
604
604
  }
605
605
 
606
606
  export declare namespace useCreate {
@@ -667,10 +667,10 @@ export function useCreateSync<
667
667
  return useMutation({
668
668
  ...mutation,
669
669
  async mutationFn(variables) {
670
- return Actions.createSync(config, variables)
670
+ return Actions.createSync(config, variables as never)
671
671
  },
672
672
  mutationKey: ['createSync'],
673
- })
673
+ }) as never
674
674
  }
675
675
 
676
676
  export declare namespace useCreateSync {
@@ -734,10 +734,10 @@ export function useUpdateQuoteToken<
734
734
  return useMutation({
735
735
  ...mutation,
736
736
  async mutationFn(variables) {
737
- return Actions.updateQuoteToken(config, variables)
737
+ return Actions.updateQuoteToken(config, variables as never)
738
738
  },
739
739
  mutationKey: ['updateQuoteToken'],
740
- })
740
+ }) as never
741
741
  }
742
742
 
743
743
  export declare namespace useUpdateQuoteToken {
@@ -804,10 +804,10 @@ export function useUpdateQuoteTokenSync<
804
804
  return useMutation({
805
805
  ...mutation,
806
806
  async mutationFn(variables) {
807
- return Actions.updateQuoteTokenSync(config, variables)
807
+ return Actions.updateQuoteTokenSync(config, variables as never)
808
808
  },
809
809
  mutationKey: ['updateQuoteTokenSync'],
810
- })
810
+ }) as never
811
811
  }
812
812
 
813
813
  export declare namespace useUpdateQuoteTokenSync {
@@ -1117,10 +1117,10 @@ export function useGrantRoles<
1117
1117
  return useMutation({
1118
1118
  ...mutation,
1119
1119
  async mutationFn(variables) {
1120
- return Actions.grantRoles(config, variables)
1120
+ return Actions.grantRoles(config, variables as never)
1121
1121
  },
1122
1122
  mutationKey: ['grantRoles'],
1123
- })
1123
+ }) as never
1124
1124
  }
1125
1125
 
1126
1126
  export declare namespace useGrantRoles {
@@ -1187,10 +1187,10 @@ export function useGrantRolesSync<
1187
1187
  return useMutation({
1188
1188
  ...mutation,
1189
1189
  async mutationFn(variables) {
1190
- return Actions.grantRolesSync(config, variables)
1190
+ return Actions.grantRolesSync(config, variables as never)
1191
1191
  },
1192
1192
  mutationKey: ['grantRolesSync'],
1193
- })
1193
+ }) as never
1194
1194
  }
1195
1195
 
1196
1196
  export declare namespace useGrantRolesSync {
@@ -1314,10 +1314,10 @@ export function useMint<
1314
1314
  return useMutation({
1315
1315
  ...mutation,
1316
1316
  async mutationFn(variables) {
1317
- return Actions.mint(config, variables)
1317
+ return Actions.mint(config, variables as never)
1318
1318
  },
1319
1319
  mutationKey: ['mint'],
1320
- })
1320
+ }) as never
1321
1321
  }
1322
1322
 
1323
1323
  export declare namespace useMint {
@@ -1384,10 +1384,10 @@ export function useMintSync<
1384
1384
  return useMutation({
1385
1385
  ...mutation,
1386
1386
  async mutationFn(variables) {
1387
- return Actions.mintSync(config, variables)
1387
+ return Actions.mintSync(config, variables as never)
1388
1388
  },
1389
1389
  mutationKey: ['mintSync'],
1390
- })
1390
+ }) as never
1391
1391
  }
1392
1392
 
1393
1393
  export declare namespace useMintSync {
@@ -1451,10 +1451,10 @@ export function usePause<
1451
1451
  return useMutation({
1452
1452
  ...mutation,
1453
1453
  async mutationFn(variables) {
1454
- return Actions.pause(config, variables)
1454
+ return Actions.pause(config, variables as never)
1455
1455
  },
1456
1456
  mutationKey: ['pause'],
1457
- })
1457
+ }) as never
1458
1458
  }
1459
1459
 
1460
1460
  export declare namespace usePause {
@@ -1521,10 +1521,10 @@ export function usePauseSync<
1521
1521
  return useMutation({
1522
1522
  ...mutation,
1523
1523
  async mutationFn(variables) {
1524
- return Actions.pauseSync(config, variables)
1524
+ return Actions.pauseSync(config, variables as never)
1525
1525
  },
1526
1526
  mutationKey: ['pauseSync'],
1527
- })
1527
+ }) as never
1528
1528
  }
1529
1529
 
1530
1530
  export declare namespace usePauseSync {
@@ -1588,10 +1588,10 @@ export function useRenounceRoles<
1588
1588
  return useMutation({
1589
1589
  ...mutation,
1590
1590
  async mutationFn(variables) {
1591
- return Actions.renounceRoles(config, variables)
1591
+ return Actions.renounceRoles(config, variables as never)
1592
1592
  },
1593
1593
  mutationKey: ['renounceRoles'],
1594
- })
1594
+ }) as never
1595
1595
  }
1596
1596
 
1597
1597
  export declare namespace useRenounceRoles {
@@ -1658,10 +1658,10 @@ export function useRenounceRolesSync<
1658
1658
  return useMutation({
1659
1659
  ...mutation,
1660
1660
  async mutationFn(variables) {
1661
- return Actions.renounceRolesSync(config, variables)
1661
+ return Actions.renounceRolesSync(config, variables as never)
1662
1662
  },
1663
1663
  mutationKey: ['renounceRolesSync'],
1664
- })
1664
+ }) as never
1665
1665
  }
1666
1666
 
1667
1667
  export declare namespace useRenounceRolesSync {
@@ -1725,10 +1725,10 @@ export function useRevokeRoles<
1725
1725
  return useMutation({
1726
1726
  ...mutation,
1727
1727
  async mutationFn(variables) {
1728
- return Actions.revokeRoles(config, variables)
1728
+ return Actions.revokeRoles(config, variables as never)
1729
1729
  },
1730
1730
  mutationKey: ['revokeRoles'],
1731
- })
1731
+ }) as never
1732
1732
  }
1733
1733
 
1734
1734
  export declare namespace useRevokeRoles {
@@ -1795,10 +1795,10 @@ export function useRevokeRolesSync<
1795
1795
  return useMutation({
1796
1796
  ...mutation,
1797
1797
  async mutationFn(variables) {
1798
- return Actions.revokeRolesSync(config, variables)
1798
+ return Actions.revokeRolesSync(config, variables as never)
1799
1799
  },
1800
1800
  mutationKey: ['revokeRolesSync'],
1801
- })
1801
+ }) as never
1802
1802
  }
1803
1803
 
1804
1804
  export declare namespace useRevokeRolesSync {
@@ -1862,10 +1862,10 @@ export function useSetRoleAdmin<
1862
1862
  return useMutation({
1863
1863
  ...mutation,
1864
1864
  async mutationFn(variables) {
1865
- return Actions.setRoleAdmin(config, variables)
1865
+ return Actions.setRoleAdmin(config, variables as never)
1866
1866
  },
1867
1867
  mutationKey: ['setRoleAdmin'],
1868
- })
1868
+ }) as never
1869
1869
  }
1870
1870
 
1871
1871
  export declare namespace useSetRoleAdmin {
@@ -1932,10 +1932,10 @@ export function useSetRoleAdminSync<
1932
1932
  return useMutation({
1933
1933
  ...mutation,
1934
1934
  async mutationFn(variables) {
1935
- return Actions.setRoleAdminSync(config, variables)
1935
+ return Actions.setRoleAdminSync(config, variables as never)
1936
1936
  },
1937
1937
  mutationKey: ['setRoleAdminSync'],
1938
- })
1938
+ }) as never
1939
1939
  }
1940
1940
 
1941
1941
  export declare namespace useSetRoleAdminSync {
@@ -1999,10 +1999,10 @@ export function useSetSupplyCap<
1999
1999
  return useMutation({
2000
2000
  ...mutation,
2001
2001
  async mutationFn(variables) {
2002
- return Actions.setSupplyCap(config, variables)
2002
+ return Actions.setSupplyCap(config, variables as never)
2003
2003
  },
2004
2004
  mutationKey: ['setSupplyCap'],
2005
- })
2005
+ }) as never
2006
2006
  }
2007
2007
 
2008
2008
  export declare namespace useSetSupplyCap {
@@ -2069,10 +2069,10 @@ export function useSetSupplyCapSync<
2069
2069
  return useMutation({
2070
2070
  ...mutation,
2071
2071
  async mutationFn(variables) {
2072
- return Actions.setSupplyCapSync(config, variables)
2072
+ return Actions.setSupplyCapSync(config, variables as never)
2073
2073
  },
2074
2074
  mutationKey: ['setSupplyCapSync'],
2075
- })
2075
+ }) as never
2076
2076
  }
2077
2077
 
2078
2078
  export declare namespace useSetSupplyCapSync {
@@ -2136,10 +2136,10 @@ export function useTransfer<
2136
2136
  return useMutation({
2137
2137
  ...mutation,
2138
2138
  async mutationFn(variables) {
2139
- return Actions.transfer(config, variables)
2139
+ return Actions.transfer(config, variables as never)
2140
2140
  },
2141
2141
  mutationKey: ['transfer'],
2142
- })
2142
+ }) as never
2143
2143
  }
2144
2144
 
2145
2145
  export declare namespace useTransfer {
@@ -2206,10 +2206,10 @@ export function useTransferSync<
2206
2206
  return useMutation({
2207
2207
  ...mutation,
2208
2208
  async mutationFn(variables) {
2209
- return Actions.transferSync(config, variables)
2209
+ return Actions.transferSync(config, variables as never)
2210
2210
  },
2211
2211
  mutationKey: ['transferSync'],
2212
- })
2212
+ }) as never
2213
2213
  }
2214
2214
 
2215
2215
  export declare namespace useTransferSync {
@@ -2273,10 +2273,10 @@ export function useUnpause<
2273
2273
  return useMutation({
2274
2274
  ...mutation,
2275
2275
  async mutationFn(variables) {
2276
- return Actions.unpause(config, variables)
2276
+ return Actions.unpause(config, variables as never)
2277
2277
  },
2278
2278
  mutationKey: ['unpause'],
2279
- })
2279
+ }) as never
2280
2280
  }
2281
2281
 
2282
2282
  export declare namespace useUnpause {
@@ -2343,10 +2343,10 @@ export function useUnpauseSync<
2343
2343
  return useMutation({
2344
2344
  ...mutation,
2345
2345
  async mutationFn(variables) {
2346
- return Actions.unpauseSync(config, variables)
2346
+ return Actions.unpauseSync(config, variables as never)
2347
2347
  },
2348
2348
  mutationKey: ['unpauseSync'],
2349
- })
2349
+ }) as never
2350
2350
  }
2351
2351
 
2352
2352
  export declare namespace useUnpauseSync {
@@ -2410,10 +2410,10 @@ export function usePrepareUpdateQuoteToken<
2410
2410
  return useMutation({
2411
2411
  ...mutation,
2412
2412
  async mutationFn(variables) {
2413
- return Actions.prepareUpdateQuoteToken(config, variables)
2413
+ return Actions.prepareUpdateQuoteToken(config, variables as never)
2414
2414
  },
2415
2415
  mutationKey: ['prepareUpdateQuoteToken'],
2416
- })
2416
+ }) as never
2417
2417
  }
2418
2418
 
2419
2419
  export declare namespace usePrepareUpdateQuoteToken {
@@ -2480,10 +2480,10 @@ export function usePrepareUpdateQuoteTokenSync<
2480
2480
  return useMutation({
2481
2481
  ...mutation,
2482
2482
  async mutationFn(variables) {
2483
- return Actions.prepareUpdateQuoteTokenSync(config, variables)
2483
+ return Actions.prepareUpdateQuoteTokenSync(config, variables as never)
2484
2484
  },
2485
2485
  mutationKey: ['prepareUpdateQuoteTokenSync'],
2486
- })
2486
+ }) as never
2487
2487
  }
2488
2488
 
2489
2489
  export declare namespace usePrepareUpdateQuoteTokenSync {