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
|
@@ -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/reward.js'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Claims accumulated rewards for a recipient.
|
|
@@ -11,11 +11,11 @@ import * as viem_Actions from '../../viem/Actions/reward.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
|
* },
|
|
@@ -33,7 +33,7 @@ import * as viem_Actions from '../../viem/Actions/reward.js'
|
|
|
33
33
|
export async function claim<config extends Config>(
|
|
34
34
|
config: config,
|
|
35
35
|
parameters: claim.Parameters<config>,
|
|
36
|
-
): Promise<
|
|
36
|
+
): Promise<Actions.reward.claim.ReturnValue> {
|
|
37
37
|
const { account, chainId, connector } = parameters
|
|
38
38
|
|
|
39
39
|
const client = await getConnectorClient(config, {
|
|
@@ -43,7 +43,7 @@ export async function claim<config extends Config>(
|
|
|
43
43
|
connector,
|
|
44
44
|
})
|
|
45
45
|
|
|
46
|
-
return
|
|
46
|
+
return Actions.reward.claim(client, parameters as never)
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export declare namespace claim {
|
|
@@ -51,13 +51,13 @@ export declare namespace claim {
|
|
|
51
51
|
ChainIdParameter<config> &
|
|
52
52
|
ConnectorParameter &
|
|
53
53
|
UnionOmit<
|
|
54
|
-
|
|
54
|
+
Actions.reward.claim.Parameters<config['chains'][number], Account>,
|
|
55
55
|
'chain'
|
|
56
56
|
>
|
|
57
57
|
|
|
58
|
-
export type ReturnValue =
|
|
58
|
+
export type ReturnValue = Actions.reward.claim.ReturnValue
|
|
59
59
|
|
|
60
|
-
export type ErrorType =
|
|
60
|
+
export type ErrorType = Actions.reward.claim.ErrorType
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
/**
|
|
@@ -66,11 +66,11 @@ export declare namespace claim {
|
|
|
66
66
|
* @example
|
|
67
67
|
* ```ts
|
|
68
68
|
* import { createConfig, http } from '@wagmi/core'
|
|
69
|
-
* import { tempo } from '
|
|
69
|
+
* import { tempo } from 'viem/chains'
|
|
70
70
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
71
71
|
*
|
|
72
72
|
* const config = createConfig({
|
|
73
|
-
* chains: [
|
|
73
|
+
* chains: [tempoTestnet],
|
|
74
74
|
* transports: {
|
|
75
75
|
* [tempo.id]: http(),
|
|
76
76
|
* },
|
|
@@ -88,7 +88,7 @@ export declare namespace claim {
|
|
|
88
88
|
export async function claimSync<config extends Config>(
|
|
89
89
|
config: config,
|
|
90
90
|
parameters: claimSync.Parameters<config>,
|
|
91
|
-
): Promise<
|
|
91
|
+
): Promise<Actions.reward.claimSync.ReturnValue> {
|
|
92
92
|
const { account, chainId, connector } = parameters
|
|
93
93
|
|
|
94
94
|
const client = await getConnectorClient(config, {
|
|
@@ -98,7 +98,7 @@ export async function claimSync<config extends Config>(
|
|
|
98
98
|
connector,
|
|
99
99
|
})
|
|
100
100
|
|
|
101
|
-
return
|
|
101
|
+
return Actions.reward.claimSync(client, parameters as never)
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export declare namespace claimSync {
|
|
@@ -106,13 +106,13 @@ export declare namespace claimSync {
|
|
|
106
106
|
ChainIdParameter<config> &
|
|
107
107
|
ConnectorParameter &
|
|
108
108
|
UnionOmit<
|
|
109
|
-
|
|
109
|
+
Actions.reward.claimSync.Parameters<config['chains'][number], Account>,
|
|
110
110
|
'chain'
|
|
111
111
|
>
|
|
112
112
|
|
|
113
|
-
export type ReturnValue =
|
|
113
|
+
export type ReturnValue = Actions.reward.claimSync.ReturnValue
|
|
114
114
|
|
|
115
|
-
export type ErrorType =
|
|
115
|
+
export type ErrorType = Actions.reward.claimSync.ErrorType
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
/**
|
|
@@ -121,11 +121,11 @@ export declare namespace claimSync {
|
|
|
121
121
|
* @example
|
|
122
122
|
* ```ts
|
|
123
123
|
* import { createConfig, http } from '@wagmi/core'
|
|
124
|
-
* import { tempo } from '
|
|
124
|
+
* import { tempo } from 'viem/chains'
|
|
125
125
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
126
126
|
*
|
|
127
127
|
* const config = createConfig({
|
|
128
|
-
* chains: [
|
|
128
|
+
* chains: [tempoTestnet],
|
|
129
129
|
* transports: {
|
|
130
130
|
* [tempo.id]: http(),
|
|
131
131
|
* },
|
|
@@ -146,14 +146,14 @@ export function getTotalPerSecond<config extends Config>(
|
|
|
146
146
|
) {
|
|
147
147
|
const { chainId, ...rest } = parameters
|
|
148
148
|
const client = config.getClient({ chainId })
|
|
149
|
-
return
|
|
149
|
+
return Actions.reward.getTotalPerSecond(client, rest)
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
export namespace getTotalPerSecond {
|
|
153
153
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
154
|
-
|
|
154
|
+
Actions.reward.getTotalPerSecond.Parameters
|
|
155
155
|
|
|
156
|
-
export type ReturnValue =
|
|
156
|
+
export type ReturnValue = Actions.reward.getTotalPerSecond.ReturnValue
|
|
157
157
|
|
|
158
158
|
export function queryKey<config extends Config>(
|
|
159
159
|
parameters: Parameters<config>,
|
|
@@ -211,11 +211,11 @@ export namespace getTotalPerSecond {
|
|
|
211
211
|
* @example
|
|
212
212
|
* ```ts
|
|
213
213
|
* import { createConfig, http } from '@wagmi/core'
|
|
214
|
-
* import { tempo } from '
|
|
214
|
+
* import { tempo } from 'viem/chains'
|
|
215
215
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
216
216
|
*
|
|
217
217
|
* const config = createConfig({
|
|
218
|
-
* chains: [
|
|
218
|
+
* chains: [tempoTestnet],
|
|
219
219
|
* transports: {
|
|
220
220
|
* [tempo.id]: http(),
|
|
221
221
|
* },
|
|
@@ -237,14 +237,14 @@ export function getUserRewardInfo<config extends Config>(
|
|
|
237
237
|
) {
|
|
238
238
|
const { chainId, ...rest } = parameters
|
|
239
239
|
const client = config.getClient({ chainId })
|
|
240
|
-
return
|
|
240
|
+
return Actions.reward.getUserRewardInfo(client, rest)
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
export namespace getUserRewardInfo {
|
|
244
244
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
245
|
-
|
|
245
|
+
Actions.reward.getUserRewardInfo.Parameters
|
|
246
246
|
|
|
247
|
-
export type ReturnValue =
|
|
247
|
+
export type ReturnValue = Actions.reward.getUserRewardInfo.ReturnValue
|
|
248
248
|
|
|
249
249
|
export function queryKey<config extends Config>(
|
|
250
250
|
parameters: Parameters<config>,
|
|
@@ -302,11 +302,11 @@ export namespace getUserRewardInfo {
|
|
|
302
302
|
* @example
|
|
303
303
|
* ```ts
|
|
304
304
|
* import { createConfig, http } from '@wagmi/core'
|
|
305
|
-
* import { tempo } from '
|
|
305
|
+
* import { tempo } from 'viem/chains'
|
|
306
306
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
307
307
|
*
|
|
308
308
|
* const config = createConfig({
|
|
309
|
-
* chains: [
|
|
309
|
+
* chains: [tempoTestnet],
|
|
310
310
|
* transports: {
|
|
311
311
|
* [tempo.id]: http(),
|
|
312
312
|
* },
|
|
@@ -325,7 +325,7 @@ export namespace getUserRewardInfo {
|
|
|
325
325
|
export async function setRecipient<config extends Config>(
|
|
326
326
|
config: config,
|
|
327
327
|
parameters: setRecipient.Parameters<config>,
|
|
328
|
-
): Promise<
|
|
328
|
+
): Promise<Actions.reward.setRecipient.ReturnValue> {
|
|
329
329
|
const { account, chainId, connector } = parameters
|
|
330
330
|
|
|
331
331
|
const client = await getConnectorClient(config, {
|
|
@@ -335,7 +335,7 @@ export async function setRecipient<config extends Config>(
|
|
|
335
335
|
connector,
|
|
336
336
|
})
|
|
337
337
|
|
|
338
|
-
return
|
|
338
|
+
return Actions.reward.setRecipient(client, parameters as never)
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
export declare namespace setRecipient {
|
|
@@ -343,13 +343,16 @@ export declare namespace setRecipient {
|
|
|
343
343
|
ChainIdParameter<config> &
|
|
344
344
|
ConnectorParameter &
|
|
345
345
|
UnionOmit<
|
|
346
|
-
|
|
346
|
+
Actions.reward.setRecipient.Parameters<
|
|
347
|
+
config['chains'][number],
|
|
348
|
+
Account
|
|
349
|
+
>,
|
|
347
350
|
'chain'
|
|
348
351
|
>
|
|
349
352
|
|
|
350
|
-
export type ReturnValue =
|
|
353
|
+
export type ReturnValue = Actions.reward.setRecipient.ReturnValue
|
|
351
354
|
|
|
352
|
-
export type ErrorType =
|
|
355
|
+
export type ErrorType = Actions.reward.setRecipient.ErrorType
|
|
353
356
|
}
|
|
354
357
|
|
|
355
358
|
/**
|
|
@@ -358,11 +361,11 @@ export declare namespace setRecipient {
|
|
|
358
361
|
* @example
|
|
359
362
|
* ```ts
|
|
360
363
|
* import { createConfig, http } from '@wagmi/core'
|
|
361
|
-
* import { tempo } from '
|
|
364
|
+
* import { tempo } from 'viem/chains'
|
|
362
365
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
363
366
|
*
|
|
364
367
|
* const config = createConfig({
|
|
365
|
-
* chains: [
|
|
368
|
+
* chains: [tempoTestnet],
|
|
366
369
|
* transports: {
|
|
367
370
|
* [tempo.id]: http(),
|
|
368
371
|
* },
|
|
@@ -381,7 +384,7 @@ export declare namespace setRecipient {
|
|
|
381
384
|
export async function setRecipientSync<config extends Config>(
|
|
382
385
|
config: config,
|
|
383
386
|
parameters: setRecipientSync.Parameters<config>,
|
|
384
|
-
): Promise<
|
|
387
|
+
): Promise<Actions.reward.setRecipientSync.ReturnValue> {
|
|
385
388
|
const { account, chainId, connector } = parameters
|
|
386
389
|
|
|
387
390
|
const client = await getConnectorClient(config, {
|
|
@@ -391,7 +394,7 @@ export async function setRecipientSync<config extends Config>(
|
|
|
391
394
|
connector,
|
|
392
395
|
})
|
|
393
396
|
|
|
394
|
-
return
|
|
397
|
+
return Actions.reward.setRecipientSync(client, parameters as never)
|
|
395
398
|
}
|
|
396
399
|
|
|
397
400
|
export declare namespace setRecipientSync {
|
|
@@ -399,16 +402,16 @@ export declare namespace setRecipientSync {
|
|
|
399
402
|
ChainIdParameter<config> &
|
|
400
403
|
ConnectorParameter &
|
|
401
404
|
UnionOmit<
|
|
402
|
-
|
|
405
|
+
Actions.reward.setRecipientSync.Parameters<
|
|
403
406
|
config['chains'][number],
|
|
404
407
|
Account
|
|
405
408
|
>,
|
|
406
409
|
'chain'
|
|
407
410
|
>
|
|
408
411
|
|
|
409
|
-
export type ReturnValue =
|
|
412
|
+
export type ReturnValue = Actions.reward.setRecipientSync.ReturnValue
|
|
410
413
|
|
|
411
|
-
export type ErrorType =
|
|
414
|
+
export type ErrorType = Actions.reward.setRecipientSync.ErrorType
|
|
412
415
|
}
|
|
413
416
|
|
|
414
417
|
/**
|
|
@@ -417,11 +420,11 @@ export declare namespace setRecipientSync {
|
|
|
417
420
|
* @example
|
|
418
421
|
* ```ts
|
|
419
422
|
* import { createConfig, http } from '@wagmi/core'
|
|
420
|
-
* import { tempo } from '
|
|
423
|
+
* import { tempo } from 'viem/chains'
|
|
421
424
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
422
425
|
*
|
|
423
426
|
* const config = createConfig({
|
|
424
|
-
* chains: [
|
|
427
|
+
* chains: [tempoTestnet],
|
|
425
428
|
* transports: {
|
|
426
429
|
* [tempo.id]: http(),
|
|
427
430
|
* },
|
|
@@ -441,7 +444,7 @@ export declare namespace setRecipientSync {
|
|
|
441
444
|
export async function start<config extends Config>(
|
|
442
445
|
config: config,
|
|
443
446
|
parameters: start.Parameters<config>,
|
|
444
|
-
): Promise<
|
|
447
|
+
): Promise<Actions.reward.start.ReturnValue> {
|
|
445
448
|
const { account, chainId, connector } = parameters
|
|
446
449
|
|
|
447
450
|
const client = await getConnectorClient(config, {
|
|
@@ -451,7 +454,7 @@ export async function start<config extends Config>(
|
|
|
451
454
|
connector,
|
|
452
455
|
})
|
|
453
456
|
|
|
454
|
-
return
|
|
457
|
+
return Actions.reward.start(client, parameters as never)
|
|
455
458
|
}
|
|
456
459
|
|
|
457
460
|
export declare namespace start {
|
|
@@ -459,13 +462,13 @@ export declare namespace start {
|
|
|
459
462
|
ChainIdParameter<config> &
|
|
460
463
|
ConnectorParameter &
|
|
461
464
|
UnionOmit<
|
|
462
|
-
|
|
465
|
+
Actions.reward.start.Parameters<config['chains'][number], Account>,
|
|
463
466
|
'chain'
|
|
464
467
|
>
|
|
465
468
|
|
|
466
|
-
export type ReturnValue =
|
|
469
|
+
export type ReturnValue = Actions.reward.start.ReturnValue
|
|
467
470
|
|
|
468
|
-
export type ErrorType =
|
|
471
|
+
export type ErrorType = Actions.reward.start.ErrorType
|
|
469
472
|
}
|
|
470
473
|
|
|
471
474
|
/**
|
|
@@ -474,11 +477,11 @@ export declare namespace start {
|
|
|
474
477
|
* @example
|
|
475
478
|
* ```ts
|
|
476
479
|
* import { createConfig, http } from '@wagmi/core'
|
|
477
|
-
* import { tempo } from '
|
|
480
|
+
* import { tempo } from 'viem/chains'
|
|
478
481
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
479
482
|
*
|
|
480
483
|
* const config = createConfig({
|
|
481
|
-
* chains: [
|
|
484
|
+
* chains: [tempoTestnet],
|
|
482
485
|
* transports: {
|
|
483
486
|
* [tempo.id]: http(),
|
|
484
487
|
* },
|
|
@@ -498,7 +501,7 @@ export declare namespace start {
|
|
|
498
501
|
export async function startSync<config extends Config>(
|
|
499
502
|
config: config,
|
|
500
503
|
parameters: startSync.Parameters<config>,
|
|
501
|
-
): Promise<
|
|
504
|
+
): Promise<Actions.reward.startSync.ReturnValue> {
|
|
502
505
|
const { account, chainId, connector } = parameters
|
|
503
506
|
|
|
504
507
|
const client = await getConnectorClient(config, {
|
|
@@ -508,7 +511,7 @@ export async function startSync<config extends Config>(
|
|
|
508
511
|
connector,
|
|
509
512
|
})
|
|
510
513
|
|
|
511
|
-
return
|
|
514
|
+
return Actions.reward.startSync(client, parameters as never)
|
|
512
515
|
}
|
|
513
516
|
|
|
514
517
|
export declare namespace startSync {
|
|
@@ -516,13 +519,13 @@ export declare namespace startSync {
|
|
|
516
519
|
ChainIdParameter<config> &
|
|
517
520
|
ConnectorParameter &
|
|
518
521
|
UnionOmit<
|
|
519
|
-
|
|
522
|
+
Actions.reward.startSync.Parameters<config['chains'][number], Account>,
|
|
520
523
|
'chain'
|
|
521
524
|
>
|
|
522
525
|
|
|
523
|
-
export type ReturnValue =
|
|
526
|
+
export type ReturnValue = Actions.reward.startSync.ReturnValue
|
|
524
527
|
|
|
525
|
-
export type ErrorType =
|
|
528
|
+
export type ErrorType = Actions.reward.startSync.ErrorType
|
|
526
529
|
}
|
|
527
530
|
|
|
528
531
|
/**
|
|
@@ -531,11 +534,11 @@ export declare namespace startSync {
|
|
|
531
534
|
* @example
|
|
532
535
|
* ```ts
|
|
533
536
|
* import { createConfig, http } from '@wagmi/core'
|
|
534
|
-
* import { tempo } from '
|
|
537
|
+
* import { tempo } from 'viem/chains'
|
|
535
538
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
536
539
|
*
|
|
537
540
|
* const config = createConfig({
|
|
538
|
-
* chains: [
|
|
541
|
+
* chains: [tempoTestnet],
|
|
539
542
|
* transports: {
|
|
540
543
|
* [tempo.id]: http(),
|
|
541
544
|
* },
|
|
@@ -559,12 +562,12 @@ export function watchRewardScheduled<config extends Config>(
|
|
|
559
562
|
) {
|
|
560
563
|
const { chainId, ...rest } = parameters
|
|
561
564
|
const client = config.getClient({ chainId })
|
|
562
|
-
return
|
|
565
|
+
return Actions.reward.watchRewardScheduled(client, rest)
|
|
563
566
|
}
|
|
564
567
|
|
|
565
568
|
export declare namespace watchRewardScheduled {
|
|
566
569
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
567
|
-
|
|
570
|
+
Actions.reward.watchRewardScheduled.Parameters
|
|
568
571
|
}
|
|
569
572
|
|
|
570
573
|
/**
|
|
@@ -573,11 +576,11 @@ export declare namespace watchRewardScheduled {
|
|
|
573
576
|
* @example
|
|
574
577
|
* ```ts
|
|
575
578
|
* import { createConfig, http } from '@wagmi/core'
|
|
576
|
-
* import { tempo } from '
|
|
579
|
+
* import { tempo } from 'viem/chains'
|
|
577
580
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
578
581
|
*
|
|
579
582
|
* const config = createConfig({
|
|
580
|
-
* chains: [
|
|
583
|
+
* chains: [tempoTestnet],
|
|
581
584
|
* transports: {
|
|
582
585
|
* [tempo.id]: http(),
|
|
583
586
|
* },
|
|
@@ -601,10 +604,10 @@ export function watchRewardRecipientSet<config extends Config>(
|
|
|
601
604
|
) {
|
|
602
605
|
const { chainId, ...rest } = parameters
|
|
603
606
|
const client = config.getClient({ chainId })
|
|
604
|
-
return
|
|
607
|
+
return Actions.reward.watchRewardRecipientSet(client, rest)
|
|
605
608
|
}
|
|
606
609
|
|
|
607
610
|
export declare namespace watchRewardRecipientSet {
|
|
608
611
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
609
|
-
|
|
612
|
+
Actions.reward.watchRewardRecipientSet.Parameters
|
|
610
613
|
}
|