tempo.ts 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/viem/Abis.d.ts +103 -35
- package/dist/viem/Abis.d.ts.map +1 -1
- package/dist/viem/Abis.js +78 -27
- package/dist/viem/Abis.js.map +1 -1
- package/dist/viem/Actions/amm.d.ts +24 -42
- package/dist/viem/Actions/amm.d.ts.map +1 -1
- package/dist/viem/Actions/dex.d.ts +314 -66
- package/dist/viem/Actions/dex.d.ts.map +1 -1
- package/dist/viem/Actions/dex.js +10 -9
- package/dist/viem/Actions/dex.js.map +1 -1
- package/dist/viem/Actions/reward.d.ts +15 -3
- package/dist/viem/Actions/reward.d.ts.map +1 -1
- package/dist/viem/Actions/token.d.ts +75 -15
- package/dist/viem/Actions/token.d.ts.map +1 -1
- package/dist/viem/Chain.d.ts.map +1 -1
- package/dist/viem/Chain.js +15 -2
- package/dist/viem/Chain.js.map +1 -1
- package/dist/viem/Decorator.d.ts +2 -2
- package/dist/viem/Decorator.d.ts.map +1 -1
- package/dist/viem/Decorator.js +1 -1
- package/dist/viem/Decorator.js.map +1 -1
- package/dist/wagmi/Actions/dex.d.ts +8 -8
- package/dist/wagmi/Actions/dex.d.ts.map +1 -1
- package/dist/wagmi/Actions/dex.js +9 -9
- package/dist/wagmi/Actions/dex.js.map +1 -1
- package/dist/wagmi/Connector.d.ts +2 -0
- package/dist/wagmi/Connector.d.ts.map +1 -1
- package/dist/wagmi/Connector.js +2 -0
- package/dist/wagmi/Connector.js.map +1 -1
- package/dist/wagmi/Hooks/dex.d.ts +4 -4
- package/dist/wagmi/Hooks/dex.d.ts.map +1 -1
- package/dist/wagmi/Hooks/dex.js +2 -2
- package/dist/wagmi/Hooks/dex.js.map +1 -1
- package/package.json +1 -1
- package/src/ox/TransactionEnvelopeAA.test.ts +42 -50
- package/src/prool/internal/chain.json +84 -80
- package/src/viem/Abis.ts +79 -27
- package/src/viem/Actions/dex.test.ts +12 -12
- package/src/viem/Actions/dex.ts +18 -14
- package/src/viem/Chain.ts +26 -3
- package/src/viem/Decorator.ts +6 -6
- package/src/viem/e2e.test.ts +6 -6
- package/src/wagmi/Actions/dex.test.ts +12 -12
- package/src/wagmi/Actions/dex.ts +15 -15
- package/src/wagmi/Connector.ts +4 -0
- package/src/wagmi/Hooks/dex.ts +8 -8
package/src/wagmi/Hooks/dex.ts
CHANGED
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
getOrder,
|
|
27
27
|
getOrderbook,
|
|
28
28
|
getOrders,
|
|
29
|
-
getPriceLevel,
|
|
30
29
|
getSellQuote,
|
|
30
|
+
getTickLevel,
|
|
31
31
|
place,
|
|
32
32
|
placeFlip,
|
|
33
33
|
placeFlipSync,
|
|
@@ -808,14 +808,14 @@ export declare namespace useOrderbook {
|
|
|
808
808
|
*/
|
|
809
809
|
export function usePriceLevel<
|
|
810
810
|
config extends Config = ResolvedRegister['config'],
|
|
811
|
-
selectData =
|
|
811
|
+
selectData = getTickLevel.ReturnValue,
|
|
812
812
|
>(parameters: usePriceLevel.Parameters<config, selectData>) {
|
|
813
813
|
const { query = {} } = parameters
|
|
814
814
|
|
|
815
815
|
const config = useConfig(parameters)
|
|
816
816
|
const chainId = useChainId({ config })
|
|
817
817
|
|
|
818
|
-
const options =
|
|
818
|
+
const options = getTickLevel.queryOptions(config, {
|
|
819
819
|
...parameters,
|
|
820
820
|
chainId: parameters.chainId ?? chainId,
|
|
821
821
|
query: undefined,
|
|
@@ -833,17 +833,17 @@ export function usePriceLevel<
|
|
|
833
833
|
export declare namespace usePriceLevel {
|
|
834
834
|
export type Parameters<
|
|
835
835
|
config extends Config = ResolvedRegister['config'],
|
|
836
|
-
selectData =
|
|
836
|
+
selectData = getTickLevel.ReturnValue,
|
|
837
837
|
> = ConfigParameter<config> &
|
|
838
838
|
QueryParameter<
|
|
839
|
-
|
|
839
|
+
getTickLevel.ReturnValue,
|
|
840
840
|
DefaultError,
|
|
841
841
|
selectData,
|
|
842
|
-
|
|
842
|
+
getTickLevel.QueryKey<config>
|
|
843
843
|
> &
|
|
844
|
-
Omit<
|
|
844
|
+
Omit<getTickLevel.queryOptions.Parameters<config, selectData>, 'query'>
|
|
845
845
|
|
|
846
|
-
export type ReturnValue<selectData =
|
|
846
|
+
export type ReturnValue<selectData = getTickLevel.ReturnValue> =
|
|
847
847
|
UseQueryReturnType<selectData, Error>
|
|
848
848
|
}
|
|
849
849
|
|