tempo.ts 0.11.1 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -4
- package/README.md +3 -34
- package/dist/server/Handler.d.ts +14 -14
- package/dist/server/Handler.d.ts.map +1 -1
- package/dist/server/Handler.js +16 -17
- package/dist/server/Handler.js.map +1 -1
- package/dist/wagmi/Actions/amm.d.ts +51 -51
- package/dist/wagmi/Actions/amm.d.ts.map +1 -1
- package/dist/wagmi/Actions/amm.js +37 -37
- package/dist/wagmi/Actions/amm.js.map +1 -1
- package/dist/wagmi/Actions/dex.d.ts +129 -129
- package/dist/wagmi/Actions/dex.d.ts.map +1 -1
- package/dist/wagmi/Actions/dex.js +73 -73
- package/dist/wagmi/Actions/dex.js.map +1 -1
- package/dist/wagmi/Actions/faucet.d.ts +9 -9
- package/dist/wagmi/Actions/faucet.d.ts.map +1 -1
- package/dist/wagmi/Actions/faucet.js +7 -7
- package/dist/wagmi/Actions/faucet.js.map +1 -1
- package/dist/wagmi/Actions/fee.d.ts +17 -17
- package/dist/wagmi/Actions/fee.d.ts.map +1 -1
- package/dist/wagmi/Actions/fee.js +10 -10
- package/dist/wagmi/Actions/fee.js.map +1 -1
- package/dist/wagmi/Actions/nonce.d.ts +9 -79
- package/dist/wagmi/Actions/nonce.d.ts.map +1 -1
- package/dist/wagmi/Actions/nonce.js +7 -89
- package/dist/wagmi/Actions/nonce.js.map +1 -1
- package/dist/wagmi/Actions/policy.d.ts +69 -70
- package/dist/wagmi/Actions/policy.d.ts.map +1 -1
- package/dist/wagmi/Actions/policy.js +43 -43
- package/dist/wagmi/Actions/policy.js.map +1 -1
- package/dist/wagmi/Actions/reward.d.ts +51 -51
- package/dist/wagmi/Actions/reward.d.ts.map +1 -1
- package/dist/wagmi/Actions/reward.js +31 -31
- package/dist/wagmi/Actions/reward.js.map +1 -1
- package/dist/wagmi/Actions/token.d.ts +238 -238
- package/dist/wagmi/Actions/token.d.ts.map +1 -1
- package/dist/wagmi/Actions/token.js +136 -136
- package/dist/wagmi/Actions/token.js.map +1 -1
- package/dist/wagmi/Connector.d.ts +2 -1
- package/dist/wagmi/Connector.d.ts.map +1 -1
- package/dist/wagmi/Connector.js +83 -22
- package/dist/wagmi/Connector.js.map +1 -1
- package/dist/wagmi/Hooks/nonce.d.ts +1 -52
- package/dist/wagmi/Hooks/nonce.d.ts.map +1 -1
- package/dist/wagmi/Hooks/nonce.js +1 -70
- package/dist/wagmi/Hooks/nonce.js.map +1 -1
- package/dist/wagmi/Hooks/policy.d.ts +0 -1
- package/dist/wagmi/Hooks/policy.d.ts.map +1 -1
- package/dist/wagmi/Hooks/policy.js.map +1 -1
- package/dist/wagmi/KeyManager.d.ts +6 -3
- package/dist/wagmi/KeyManager.d.ts.map +1 -1
- package/dist/wagmi/KeyManager.js +9 -4
- package/dist/wagmi/KeyManager.js.map +1 -1
- package/package.json +3 -13
- package/src/server/Handler.test.ts +2 -2
- package/src/server/Handler.ts +16 -17
- package/src/wagmi/Actions/amm.ts +63 -63
- package/src/wagmi/Actions/dex.test.ts +1 -1
- package/src/wagmi/Actions/dex.ts +153 -153
- package/src/wagmi/Actions/faucet.ts +11 -11
- package/src/wagmi/Actions/fee.ts +20 -20
- package/src/wagmi/Actions/nonce.test.ts +1 -64
- package/src/wagmi/Actions/nonce.ts +10 -142
- package/src/wagmi/Actions/policy.ts +83 -85
- package/src/wagmi/Actions/reward.ts +64 -61
- package/src/wagmi/Actions/token.ts +287 -283
- package/src/wagmi/Connector.ts +105 -31
- package/src/wagmi/Hooks/dex.test.ts +1 -1
- package/src/wagmi/Hooks/fee.test.ts +0 -6
- package/src/wagmi/Hooks/nonce.test.ts +1 -66
- package/src/wagmi/Hooks/nonce.ts +1 -114
- package/src/wagmi/Hooks/policy.ts +0 -2
- package/src/wagmi/KeyManager.ts +18 -5
- package/dist/chains.d.ts +0 -73
- package/dist/chains.d.ts.map +0 -1
- package/dist/chains.js +0 -51
- package/dist/chains.js.map +0 -1
- package/dist/viem/Abis.d.ts +0 -2649
- package/dist/viem/Abis.d.ts.map +0 -1
- package/dist/viem/Abis.js +0 -1677
- package/dist/viem/Abis.js.map +0 -1
- package/dist/viem/Account.d.ts +0 -244
- package/dist/viem/Account.d.ts.map +0 -1
- package/dist/viem/Account.js +0 -382
- package/dist/viem/Account.js.map +0 -1
- package/dist/viem/Actions/account.d.ts +0 -40
- package/dist/viem/Actions/account.d.ts.map +0 -1
- package/dist/viem/Actions/account.js +0 -86
- package/dist/viem/Actions/account.js.map +0 -1
- package/dist/viem/Actions/amm.d.ts +0 -1991
- package/dist/viem/Actions/amm.d.ts.map +0 -1
- package/dist/viem/Actions/amm.js +0 -814
- package/dist/viem/Actions/amm.js.map +0 -1
- package/dist/viem/Actions/dex.d.ts +0 -3900
- package/dist/viem/Actions/dex.d.ts.map +0 -1
- package/dist/viem/Actions/dex.js +0 -1414
- package/dist/viem/Actions/dex.js.map +0 -1
- package/dist/viem/Actions/faucet.d.ts +0 -69
- package/dist/viem/Actions/faucet.d.ts.map +0 -1
- package/dist/viem/Actions/faucet.js +0 -73
- package/dist/viem/Actions/faucet.js.map +0 -1
- package/dist/viem/Actions/fee.d.ts +0 -360
- package/dist/viem/Actions/fee.d.ts.map +0 -1
- package/dist/viem/Actions/fee.js +0 -237
- package/dist/viem/Actions/fee.js.map +0 -1
- package/dist/viem/Actions/index.d.ts +0 -10
- package/dist/viem/Actions/index.d.ts.map +0 -1
- package/dist/viem/Actions/index.js +0 -10
- package/dist/viem/Actions/index.js.map +0 -1
- package/dist/viem/Actions/nonce.d.ts +0 -257
- package/dist/viem/Actions/nonce.d.ts.map +0 -1
- package/dist/viem/Actions/nonce.js +0 -228
- package/dist/viem/Actions/nonce.js.map +0 -1
- package/dist/viem/Actions/policy.d.ts +0 -1680
- package/dist/viem/Actions/policy.d.ts.map +0 -1
- package/dist/viem/Actions/policy.js +0 -875
- package/dist/viem/Actions/policy.js.map +0 -1
- package/dist/viem/Actions/reward.d.ts +0 -2422
- package/dist/viem/Actions/reward.d.ts.map +0 -1
- package/dist/viem/Actions/reward.js +0 -651
- package/dist/viem/Actions/reward.js.map +0 -1
- package/dist/viem/Actions/token.d.ts +0 -16007
- package/dist/viem/Actions/token.d.ts.map +0 -1
- package/dist/viem/Actions/token.js +0 -2936
- package/dist/viem/Actions/token.js.map +0 -1
- package/dist/viem/Addresses.d.ts +0 -9
- package/dist/viem/Addresses.d.ts.map +0 -1
- package/dist/viem/Addresses.js +0 -9
- package/dist/viem/Addresses.js.map +0 -1
- package/dist/viem/Chain.d.ts +0 -451
- package/dist/viem/Chain.d.ts.map +0 -1
- package/dist/viem/Chain.js +0 -96
- package/dist/viem/Chain.js.map +0 -1
- package/dist/viem/Decorator.d.ts +0 -2783
- package/dist/viem/Decorator.d.ts.map +0 -1
- package/dist/viem/Decorator.js +0 -137
- package/dist/viem/Decorator.js.map +0 -1
- package/dist/viem/Formatters.d.ts +0 -10
- package/dist/viem/Formatters.d.ts.map +0 -1
- package/dist/viem/Formatters.js +0 -104
- package/dist/viem/Formatters.js.map +0 -1
- package/dist/viem/P256.d.ts +0 -2
- package/dist/viem/P256.d.ts.map +0 -1
- package/dist/viem/P256.js +0 -2
- package/dist/viem/P256.js.map +0 -1
- package/dist/viem/Secp256k1.d.ts +0 -2
- package/dist/viem/Secp256k1.d.ts.map +0 -1
- package/dist/viem/Secp256k1.js +0 -2
- package/dist/viem/Secp256k1.js.map +0 -1
- package/dist/viem/Storage.d.ts +0 -24
- package/dist/viem/Storage.d.ts.map +0 -1
- package/dist/viem/Storage.js +0 -68
- package/dist/viem/Storage.js.map +0 -1
- package/dist/viem/TokenIds.d.ts +0 -2
- package/dist/viem/TokenIds.d.ts.map +0 -1
- package/dist/viem/TokenIds.js +0 -2
- package/dist/viem/TokenIds.js.map +0 -1
- package/dist/viem/Transaction.d.ts +0 -76
- package/dist/viem/Transaction.d.ts.map +0 -1
- package/dist/viem/Transaction.js +0 -176
- package/dist/viem/Transaction.js.map +0 -1
- package/dist/viem/Transport.d.ts +0 -33
- package/dist/viem/Transport.d.ts.map +0 -1
- package/dist/viem/Transport.js +0 -138
- package/dist/viem/Transport.js.map +0 -1
- package/dist/viem/WebAuthnP256.d.ts +0 -82
- package/dist/viem/WebAuthnP256.d.ts.map +0 -1
- package/dist/viem/WebAuthnP256.js +0 -97
- package/dist/viem/WebAuthnP256.js.map +0 -1
- package/dist/viem/WebCryptoP256.d.ts +0 -2
- package/dist/viem/WebCryptoP256.d.ts.map +0 -1
- package/dist/viem/WebCryptoP256.js +0 -2
- package/dist/viem/WebCryptoP256.js.map +0 -1
- package/dist/viem/index.d.ts +0 -26
- package/dist/viem/index.d.ts.map +0 -1
- package/dist/viem/index.js +0 -17
- package/dist/viem/index.js.map +0 -1
- package/dist/viem/internal/types.d.ts +0 -20
- package/dist/viem/internal/types.d.ts.map +0 -1
- package/dist/viem/internal/types.js +0 -2
- package/dist/viem/internal/types.js.map +0 -1
- package/dist/viem/internal/utils.d.ts +0 -14
- package/dist/viem/internal/utils.d.ts.map +0 -1
- package/dist/viem/internal/utils.js +0 -33
- package/dist/viem/internal/utils.js.map +0 -1
- package/src/chains.ts +0 -54
- package/src/viem/Abis.ts +0 -1688
- package/src/viem/Account.test.ts +0 -444
- package/src/viem/Account.ts +0 -601
- package/src/viem/Actions/account.test.ts +0 -414
- package/src/viem/Actions/account.ts +0 -106
- package/src/viem/Actions/amm.test.ts +0 -381
- package/src/viem/Actions/amm.ts +0 -1227
- package/src/viem/Actions/dex.test.ts +0 -1549
- package/src/viem/Actions/dex.ts +0 -2150
- package/src/viem/Actions/faucet.ts +0 -121
- package/src/viem/Actions/fee.test.ts +0 -259
- package/src/viem/Actions/fee.ts +0 -372
- package/src/viem/Actions/index.ts +0 -9
- package/src/viem/Actions/nonce.test.ts +0 -206
- package/src/viem/Actions/nonce.ts +0 -347
- package/src/viem/Actions/policy.test.ts +0 -534
- package/src/viem/Actions/policy.ts +0 -1335
- package/src/viem/Actions/reward.test.ts +0 -434
- package/src/viem/Actions/reward.ts +0 -944
- package/src/viem/Actions/token.test.ts +0 -3029
- package/src/viem/Actions/token.ts +0 -4458
- package/src/viem/Addresses.ts +0 -9
- package/src/viem/Chain.bench-d.ts +0 -12
- package/src/viem/Chain.test.ts +0 -168
- package/src/viem/Chain.ts +0 -157
- package/src/viem/Decorator.bench-d.ts +0 -11
- package/src/viem/Decorator.test.ts +0 -39
- package/src/viem/Decorator.ts +0 -3179
- package/src/viem/Formatters.ts +0 -164
- package/src/viem/P256.ts +0 -1
- package/src/viem/Secp256k1.ts +0 -1
- package/src/viem/Storage.ts +0 -110
- package/src/viem/TokenIds.ts +0 -1
- package/src/viem/Transaction.ts +0 -382
- package/src/viem/Transport.ts +0 -191
- package/src/viem/WebAuthnP256.ts +0 -146
- package/src/viem/WebCryptoP256.ts +0 -1
- package/src/viem/e2e.test.ts +0 -1602
- package/src/viem/index.ts +0 -30
- package/src/viem/internal/types.ts +0 -69
- package/src/viem/internal/utils.ts +0 -58
- package/src/wagmi/internal/types.ts +0 -16
package/src/wagmi/Actions/amm.ts
CHANGED
|
@@ -2,8 +2,8 @@ import type * as Query from '@tanstack/query-core'
|
|
|
2
2
|
import { type Config, getConnectorClient } from '@wagmi/core'
|
|
3
3
|
import type { ChainIdParameter, ConnectorParameter } from '@wagmi/core/internal'
|
|
4
4
|
import type { Account } from 'viem'
|
|
5
|
+
import { Actions } from 'viem/tempo'
|
|
5
6
|
import type { RequiredBy, UnionOmit } from '../../internal/types.js'
|
|
6
|
-
import * as viem_Actions from '../../viem/Actions/amm.js'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Gets the reserves for a liquidity pool.
|
|
@@ -11,11 +11,11 @@ import * as viem_Actions from '../../viem/Actions/amm.js'
|
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
13
|
* import { createConfig, http } from '@wagmi/core'
|
|
14
|
-
* import { tempo } from '
|
|
14
|
+
* import { tempo } from 'viem/chains'
|
|
15
15
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
16
16
|
*
|
|
17
17
|
* const config = createConfig({
|
|
18
|
-
* chains: [
|
|
18
|
+
* chains: [tempoTestnet],
|
|
19
19
|
* transports: {
|
|
20
20
|
* [tempo.id]: http(),
|
|
21
21
|
* },
|
|
@@ -37,14 +37,14 @@ export function getPool<config extends Config>(
|
|
|
37
37
|
) {
|
|
38
38
|
const { chainId, ...rest } = parameters
|
|
39
39
|
const client = config.getClient({ chainId })
|
|
40
|
-
return
|
|
40
|
+
return Actions.amm.getPool(client, rest)
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export namespace getPool {
|
|
44
44
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
45
|
-
|
|
45
|
+
Actions.amm.getPool.Parameters
|
|
46
46
|
|
|
47
|
-
export type ReturnValue =
|
|
47
|
+
export type ReturnValue = Actions.amm.getPool.ReturnValue
|
|
48
48
|
|
|
49
49
|
export function queryKey<config extends Config>(
|
|
50
50
|
parameters: Parameters<config>,
|
|
@@ -102,11 +102,11 @@ export namespace getPool {
|
|
|
102
102
|
* @example
|
|
103
103
|
* ```ts
|
|
104
104
|
* import { createConfig, http } from '@wagmi/core'
|
|
105
|
-
* import { tempo } from '
|
|
105
|
+
* import { tempo } from 'viem/chains'
|
|
106
106
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
107
107
|
*
|
|
108
108
|
* const config = createConfig({
|
|
109
|
-
* chains: [
|
|
109
|
+
* chains: [tempoTestnet],
|
|
110
110
|
* transports: {
|
|
111
111
|
* [tempo.id]: http(),
|
|
112
112
|
* },
|
|
@@ -133,14 +133,14 @@ export function getLiquidityBalance<config extends Config>(
|
|
|
133
133
|
) {
|
|
134
134
|
const { chainId, ...rest } = parameters
|
|
135
135
|
const client = config.getClient({ chainId })
|
|
136
|
-
return
|
|
136
|
+
return Actions.amm.getLiquidityBalance(client, rest)
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export namespace getLiquidityBalance {
|
|
140
140
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
141
|
-
|
|
141
|
+
Actions.amm.getLiquidityBalance.Parameters
|
|
142
142
|
|
|
143
|
-
export type ReturnValue =
|
|
143
|
+
export type ReturnValue = Actions.amm.getLiquidityBalance.ReturnValue
|
|
144
144
|
|
|
145
145
|
export function queryKey<config extends Config>(
|
|
146
146
|
parameters: Parameters<config>,
|
|
@@ -198,11 +198,11 @@ export namespace getLiquidityBalance {
|
|
|
198
198
|
* @example
|
|
199
199
|
* ```ts
|
|
200
200
|
* import { createConfig, http } from '@wagmi/core'
|
|
201
|
-
* import { tempo } from '
|
|
201
|
+
* import { tempo } from 'viem/chains'
|
|
202
202
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
203
203
|
*
|
|
204
204
|
* const config = createConfig({
|
|
205
|
-
* chains: [
|
|
205
|
+
* chains: [tempoTestnet],
|
|
206
206
|
* transports: {
|
|
207
207
|
* [tempo.id]: http(),
|
|
208
208
|
* },
|
|
@@ -223,7 +223,7 @@ export namespace getLiquidityBalance {
|
|
|
223
223
|
export async function rebalanceSwap<config extends Config>(
|
|
224
224
|
config: config,
|
|
225
225
|
parameters: rebalanceSwap.Parameters<config>,
|
|
226
|
-
): Promise<
|
|
226
|
+
): Promise<Actions.amm.rebalanceSwap.ReturnValue> {
|
|
227
227
|
const { account, chainId, connector } = parameters
|
|
228
228
|
|
|
229
229
|
const client = await getConnectorClient(config, {
|
|
@@ -233,18 +233,18 @@ export async function rebalanceSwap<config extends Config>(
|
|
|
233
233
|
connector,
|
|
234
234
|
})
|
|
235
235
|
|
|
236
|
-
return
|
|
236
|
+
return Actions.amm.rebalanceSwap(client, parameters as never)
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
export declare namespace rebalanceSwap {
|
|
240
240
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
241
241
|
ConnectorParameter &
|
|
242
242
|
UnionOmit<
|
|
243
|
-
|
|
243
|
+
Actions.amm.rebalanceSwap.Parameters<config['chains'][number], Account>,
|
|
244
244
|
'chain'
|
|
245
245
|
>
|
|
246
246
|
|
|
247
|
-
export type ReturnValue =
|
|
247
|
+
export type ReturnValue = Actions.amm.rebalanceSwap.ReturnValue
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
/**
|
|
@@ -253,11 +253,11 @@ export declare namespace rebalanceSwap {
|
|
|
253
253
|
* @example
|
|
254
254
|
* ```ts
|
|
255
255
|
* import { createConfig, http } from '@wagmi/core'
|
|
256
|
-
* import { tempo } from '
|
|
256
|
+
* import { tempo } from 'viem/chains'
|
|
257
257
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
258
258
|
*
|
|
259
259
|
* const config = createConfig({
|
|
260
|
-
* chains: [
|
|
260
|
+
* chains: [tempoTestnet],
|
|
261
261
|
* transports: {
|
|
262
262
|
* [tempo.id]: http(),
|
|
263
263
|
* },
|
|
@@ -278,7 +278,7 @@ export declare namespace rebalanceSwap {
|
|
|
278
278
|
export async function rebalanceSwapSync<config extends Config>(
|
|
279
279
|
config: config,
|
|
280
280
|
parameters: rebalanceSwapSync.Parameters<config>,
|
|
281
|
-
): Promise<
|
|
281
|
+
): Promise<Actions.amm.rebalanceSwapSync.ReturnValue> {
|
|
282
282
|
const { account, chainId, connector } = parameters
|
|
283
283
|
|
|
284
284
|
const client = await getConnectorClient(config, {
|
|
@@ -288,21 +288,21 @@ export async function rebalanceSwapSync<config extends Config>(
|
|
|
288
288
|
connector,
|
|
289
289
|
})
|
|
290
290
|
|
|
291
|
-
return
|
|
291
|
+
return Actions.amm.rebalanceSwapSync(client, parameters as never)
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
export declare namespace rebalanceSwapSync {
|
|
295
295
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
296
296
|
ConnectorParameter &
|
|
297
297
|
UnionOmit<
|
|
298
|
-
|
|
298
|
+
Actions.amm.rebalanceSwapSync.Parameters<
|
|
299
299
|
config['chains'][number],
|
|
300
300
|
Account
|
|
301
301
|
>,
|
|
302
302
|
'chain'
|
|
303
303
|
>
|
|
304
304
|
|
|
305
|
-
export type ReturnValue =
|
|
305
|
+
export type ReturnValue = Actions.amm.rebalanceSwapSync.ReturnValue
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
/**
|
|
@@ -311,11 +311,11 @@ export declare namespace rebalanceSwapSync {
|
|
|
311
311
|
* @example
|
|
312
312
|
* ```ts
|
|
313
313
|
* import { createConfig, http } from '@wagmi/core'
|
|
314
|
-
* import { tempo } from '
|
|
314
|
+
* import { tempo } from 'viem/chains'
|
|
315
315
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
316
316
|
*
|
|
317
317
|
* const config = createConfig({
|
|
318
|
-
* chains: [
|
|
318
|
+
* chains: [tempoTestnet],
|
|
319
319
|
* transports: {
|
|
320
320
|
* [tempo.id]: http(),
|
|
321
321
|
* },
|
|
@@ -336,7 +336,7 @@ export declare namespace rebalanceSwapSync {
|
|
|
336
336
|
export async function mint<config extends Config>(
|
|
337
337
|
config: config,
|
|
338
338
|
parameters: mint.Parameters<config>,
|
|
339
|
-
): Promise<
|
|
339
|
+
): Promise<Actions.amm.mint.ReturnValue> {
|
|
340
340
|
const { account, chainId, connector } = parameters
|
|
341
341
|
|
|
342
342
|
const client = await getConnectorClient(config, {
|
|
@@ -346,18 +346,18 @@ export async function mint<config extends Config>(
|
|
|
346
346
|
connector,
|
|
347
347
|
})
|
|
348
348
|
|
|
349
|
-
return
|
|
349
|
+
return Actions.amm.mint(client, parameters as never)
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
export declare namespace mint {
|
|
353
353
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
354
354
|
ConnectorParameter &
|
|
355
355
|
UnionOmit<
|
|
356
|
-
|
|
356
|
+
Actions.amm.mint.Parameters<config['chains'][number], Account>,
|
|
357
357
|
'chain'
|
|
358
358
|
>
|
|
359
359
|
|
|
360
|
-
export type ReturnValue =
|
|
360
|
+
export type ReturnValue = Actions.amm.mint.ReturnValue
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
/**
|
|
@@ -366,11 +366,11 @@ export declare namespace mint {
|
|
|
366
366
|
* @example
|
|
367
367
|
* ```ts
|
|
368
368
|
* import { createConfig, http } from '@wagmi/core'
|
|
369
|
-
* import { tempo } from '
|
|
369
|
+
* import { tempo } from 'viem/chains'
|
|
370
370
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
371
371
|
*
|
|
372
372
|
* const config = createConfig({
|
|
373
|
-
* chains: [
|
|
373
|
+
* chains: [tempoTestnet],
|
|
374
374
|
* transports: {
|
|
375
375
|
* [tempo.id]: http(),
|
|
376
376
|
* },
|
|
@@ -391,7 +391,7 @@ export declare namespace mint {
|
|
|
391
391
|
export async function mintSync<config extends Config>(
|
|
392
392
|
config: config,
|
|
393
393
|
parameters: mintSync.Parameters<config>,
|
|
394
|
-
): Promise<
|
|
394
|
+
): Promise<Actions.amm.mintSync.ReturnValue> {
|
|
395
395
|
const { account, chainId, connector } = parameters
|
|
396
396
|
|
|
397
397
|
const client = await getConnectorClient(config, {
|
|
@@ -401,18 +401,18 @@ export async function mintSync<config extends Config>(
|
|
|
401
401
|
connector,
|
|
402
402
|
})
|
|
403
403
|
|
|
404
|
-
return
|
|
404
|
+
return Actions.amm.mintSync(client, parameters as never)
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
export declare namespace mintSync {
|
|
408
408
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
409
409
|
ConnectorParameter &
|
|
410
410
|
UnionOmit<
|
|
411
|
-
|
|
411
|
+
Actions.amm.mintSync.Parameters<config['chains'][number], Account>,
|
|
412
412
|
'chain'
|
|
413
413
|
>
|
|
414
414
|
|
|
415
|
-
export type ReturnValue =
|
|
415
|
+
export type ReturnValue = Actions.amm.mintSync.ReturnValue
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
/**
|
|
@@ -421,11 +421,11 @@ export declare namespace mintSync {
|
|
|
421
421
|
* @example
|
|
422
422
|
* ```ts
|
|
423
423
|
* import { createConfig, http } from '@wagmi/core'
|
|
424
|
-
* import { tempo } from '
|
|
424
|
+
* import { tempo } from 'viem/chains'
|
|
425
425
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
426
426
|
*
|
|
427
427
|
* const config = createConfig({
|
|
428
|
-
* chains: [
|
|
428
|
+
* chains: [tempoTestnet],
|
|
429
429
|
* transports: {
|
|
430
430
|
* [tempo.id]: http(),
|
|
431
431
|
* },
|
|
@@ -446,7 +446,7 @@ export declare namespace mintSync {
|
|
|
446
446
|
export async function burn<config extends Config>(
|
|
447
447
|
config: config,
|
|
448
448
|
parameters: burn.Parameters<config>,
|
|
449
|
-
): Promise<
|
|
449
|
+
): Promise<Actions.amm.burn.ReturnValue> {
|
|
450
450
|
const { account, chainId, connector } = parameters
|
|
451
451
|
|
|
452
452
|
const client = await getConnectorClient(config, {
|
|
@@ -456,18 +456,18 @@ export async function burn<config extends Config>(
|
|
|
456
456
|
connector,
|
|
457
457
|
})
|
|
458
458
|
|
|
459
|
-
return
|
|
459
|
+
return Actions.amm.burn(client, parameters as never)
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
export declare namespace burn {
|
|
463
463
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
464
464
|
ConnectorParameter &
|
|
465
465
|
UnionOmit<
|
|
466
|
-
|
|
466
|
+
Actions.amm.burn.Parameters<config['chains'][number], Account>,
|
|
467
467
|
'chain'
|
|
468
468
|
>
|
|
469
469
|
|
|
470
|
-
export type ReturnValue =
|
|
470
|
+
export type ReturnValue = Actions.amm.burn.ReturnValue
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
/**
|
|
@@ -476,11 +476,11 @@ export declare namespace burn {
|
|
|
476
476
|
* @example
|
|
477
477
|
* ```ts
|
|
478
478
|
* import { createConfig, http } from '@wagmi/core'
|
|
479
|
-
* import { tempo } from '
|
|
479
|
+
* import { tempo } from 'viem/chains'
|
|
480
480
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
481
481
|
*
|
|
482
482
|
* const config = createConfig({
|
|
483
|
-
* chains: [
|
|
483
|
+
* chains: [tempoTestnet],
|
|
484
484
|
* transports: {
|
|
485
485
|
* [tempo.id]: http(),
|
|
486
486
|
* },
|
|
@@ -501,7 +501,7 @@ export declare namespace burn {
|
|
|
501
501
|
export async function burnSync<config extends Config>(
|
|
502
502
|
config: config,
|
|
503
503
|
parameters: burnSync.Parameters<config>,
|
|
504
|
-
): Promise<
|
|
504
|
+
): Promise<Actions.amm.burnSync.ReturnValue> {
|
|
505
505
|
const { account, chainId, connector } = parameters
|
|
506
506
|
|
|
507
507
|
const client = await getConnectorClient(config, {
|
|
@@ -511,18 +511,18 @@ export async function burnSync<config extends Config>(
|
|
|
511
511
|
connector,
|
|
512
512
|
})
|
|
513
513
|
|
|
514
|
-
return
|
|
514
|
+
return Actions.amm.burnSync(client, parameters as never)
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
export declare namespace burnSync {
|
|
518
518
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
519
519
|
ConnectorParameter &
|
|
520
520
|
UnionOmit<
|
|
521
|
-
|
|
521
|
+
Actions.amm.burnSync.Parameters<config['chains'][number], Account>,
|
|
522
522
|
'chain'
|
|
523
523
|
>
|
|
524
524
|
|
|
525
|
-
export type ReturnValue =
|
|
525
|
+
export type ReturnValue = Actions.amm.burnSync.ReturnValue
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
/**
|
|
@@ -531,11 +531,11 @@ export declare namespace burnSync {
|
|
|
531
531
|
* @example
|
|
532
532
|
* ```ts
|
|
533
533
|
* import { createConfig, http } from '@wagmi/core'
|
|
534
|
-
* import { tempo } from '
|
|
534
|
+
* import { tempo } from 'viem/chains'
|
|
535
535
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
536
536
|
*
|
|
537
537
|
* const config = createConfig({
|
|
538
|
-
* chains: [
|
|
538
|
+
* chains: [tempoTestnet],
|
|
539
539
|
* transports: {
|
|
540
540
|
* [tempo.id]: http(),
|
|
541
541
|
* },
|
|
@@ -558,12 +558,12 @@ export function watchRebalanceSwap<config extends Config>(
|
|
|
558
558
|
) {
|
|
559
559
|
const { chainId, ...rest } = parameters
|
|
560
560
|
const client = config.getClient({ chainId })
|
|
561
|
-
return
|
|
561
|
+
return Actions.amm.watchRebalanceSwap(client, rest)
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
export declare namespace watchRebalanceSwap {
|
|
565
565
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
566
|
-
|
|
566
|
+
Actions.amm.watchRebalanceSwap.Parameters
|
|
567
567
|
}
|
|
568
568
|
|
|
569
569
|
/**
|
|
@@ -572,11 +572,11 @@ export declare namespace watchRebalanceSwap {
|
|
|
572
572
|
* @example
|
|
573
573
|
* ```ts
|
|
574
574
|
* import { createConfig, http } from '@wagmi/core'
|
|
575
|
-
* import { tempo } from '
|
|
575
|
+
* import { tempo } from 'viem/chains'
|
|
576
576
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
577
577
|
*
|
|
578
578
|
* const config = createConfig({
|
|
579
|
-
* chains: [
|
|
579
|
+
* chains: [tempoTestnet],
|
|
580
580
|
* transports: {
|
|
581
581
|
* [tempo.id]: http(),
|
|
582
582
|
* },
|
|
@@ -599,12 +599,12 @@ export function watchFeeSwap<config extends Config>(
|
|
|
599
599
|
) {
|
|
600
600
|
const { chainId, ...rest } = parameters
|
|
601
601
|
const client = config.getClient({ chainId })
|
|
602
|
-
return
|
|
602
|
+
return Actions.amm.watchFeeSwap(client, rest)
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
export declare namespace watchFeeSwap {
|
|
606
606
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
607
|
-
|
|
607
|
+
Actions.amm.watchFeeSwap.Parameters
|
|
608
608
|
}
|
|
609
609
|
|
|
610
610
|
/**
|
|
@@ -613,11 +613,11 @@ export declare namespace watchFeeSwap {
|
|
|
613
613
|
* @example
|
|
614
614
|
* ```ts
|
|
615
615
|
* import { createConfig, http } from '@wagmi/core'
|
|
616
|
-
* import { tempo } from '
|
|
616
|
+
* import { tempo } from 'viem/chains'
|
|
617
617
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
618
618
|
*
|
|
619
619
|
* const config = createConfig({
|
|
620
|
-
* chains: [
|
|
620
|
+
* chains: [tempoTestnet],
|
|
621
621
|
* transports: {
|
|
622
622
|
* [tempo.id]: http(),
|
|
623
623
|
* },
|
|
@@ -640,12 +640,12 @@ export function watchMint<config extends Config>(
|
|
|
640
640
|
) {
|
|
641
641
|
const { chainId, ...rest } = parameters
|
|
642
642
|
const client = config.getClient({ chainId })
|
|
643
|
-
return
|
|
643
|
+
return Actions.amm.watchMint(client, rest)
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
export declare namespace watchMint {
|
|
647
647
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
648
|
-
|
|
648
|
+
Actions.amm.watchMint.Parameters
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
/**
|
|
@@ -654,11 +654,11 @@ export declare namespace watchMint {
|
|
|
654
654
|
* @example
|
|
655
655
|
* ```ts
|
|
656
656
|
* import { createConfig, http } from '@wagmi/core'
|
|
657
|
-
* import { tempo } from '
|
|
657
|
+
* import { tempo } from 'viem/chains'
|
|
658
658
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
659
659
|
*
|
|
660
660
|
* const config = createConfig({
|
|
661
|
-
* chains: [
|
|
661
|
+
* chains: [tempoTestnet],
|
|
662
662
|
* transports: {
|
|
663
663
|
* [tempo.id]: http(),
|
|
664
664
|
* },
|
|
@@ -681,10 +681,10 @@ export function watchBurn<config extends Config>(
|
|
|
681
681
|
) {
|
|
682
682
|
const { chainId, ...rest } = parameters
|
|
683
683
|
const client = config.getClient({ chainId })
|
|
684
|
-
return
|
|
684
|
+
return Actions.amm.watchBurn(client, rest)
|
|
685
685
|
}
|
|
686
686
|
|
|
687
687
|
export declare namespace watchBurn {
|
|
688
688
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
689
|
-
|
|
689
|
+
Actions.amm.watchBurn.Parameters
|
|
690
690
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { connect } from '@wagmi/core'
|
|
2
|
-
import { Tick } from 'tempo.ts/viem'
|
|
3
2
|
import { Actions } from 'tempo.ts/wagmi'
|
|
4
3
|
import { isAddress, parseUnits } from 'viem'
|
|
4
|
+
import { Tick } from 'viem/tempo'
|
|
5
5
|
import { beforeAll, describe, expect, test } from 'vitest'
|
|
6
6
|
import { addresses } from '../../../test/config.js'
|
|
7
7
|
import { accounts } from '../../../test/viem/config.js'
|