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/token.js'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Approves a spender to transfer TIP20 tokens on behalf of the caller.
|
|
@@ -11,11 +11,11 @@ import * as viem_Actions from '../../viem/Actions/token.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
|
* },
|
|
@@ -34,7 +34,7 @@ import * as viem_Actions from '../../viem/Actions/token.js'
|
|
|
34
34
|
export async function approve<config extends Config>(
|
|
35
35
|
config: config,
|
|
36
36
|
parameters: approve.Parameters<config>,
|
|
37
|
-
): Promise<
|
|
37
|
+
): Promise<Actions.token.approve.ReturnValue> {
|
|
38
38
|
const { account, chainId, connector } = parameters
|
|
39
39
|
|
|
40
40
|
const client = await getConnectorClient(config, {
|
|
@@ -44,20 +44,20 @@ export async function approve<config extends Config>(
|
|
|
44
44
|
connector,
|
|
45
45
|
})
|
|
46
46
|
|
|
47
|
-
return
|
|
47
|
+
return Actions.token.approve(client, parameters as never)
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export declare namespace approve {
|
|
51
51
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
52
52
|
ConnectorParameter &
|
|
53
53
|
UnionOmit<
|
|
54
|
-
|
|
54
|
+
Actions.token.approve.Parameters<config['chains'][number], Account>,
|
|
55
55
|
'chain'
|
|
56
56
|
>
|
|
57
57
|
|
|
58
|
-
export type ReturnValue =
|
|
58
|
+
export type ReturnValue = Actions.token.approve.ReturnValue
|
|
59
59
|
|
|
60
|
-
export type ErrorType =
|
|
60
|
+
export type ErrorType = Actions.token.approve.ErrorType
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
/**
|
|
@@ -69,11 +69,11 @@ export declare namespace approve {
|
|
|
69
69
|
* @example
|
|
70
70
|
* ```ts
|
|
71
71
|
* import { createConfig, http } from '@wagmi/core'
|
|
72
|
-
* import { tempo } from '
|
|
72
|
+
* import { tempo } from 'viem/chains'
|
|
73
73
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
74
74
|
*
|
|
75
75
|
* const config = createConfig({
|
|
76
|
-
* chains: [
|
|
76
|
+
* chains: [tempoTestnet],
|
|
77
77
|
* transports: {
|
|
78
78
|
* [tempo.id]: http(),
|
|
79
79
|
* },
|
|
@@ -92,7 +92,7 @@ export declare namespace approve {
|
|
|
92
92
|
export async function approveSync<config extends Config>(
|
|
93
93
|
config: config,
|
|
94
94
|
parameters: approveSync.Parameters<config>,
|
|
95
|
-
): Promise<
|
|
95
|
+
): Promise<Actions.token.approveSync.ReturnValue> {
|
|
96
96
|
const { account, chainId, connector } = parameters
|
|
97
97
|
|
|
98
98
|
const client = await getConnectorClient(config, {
|
|
@@ -102,20 +102,20 @@ export async function approveSync<config extends Config>(
|
|
|
102
102
|
connector,
|
|
103
103
|
})
|
|
104
104
|
|
|
105
|
-
return
|
|
105
|
+
return Actions.token.approveSync(client, parameters as never)
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
export declare namespace approveSync {
|
|
109
109
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
110
110
|
ConnectorParameter &
|
|
111
111
|
UnionOmit<
|
|
112
|
-
|
|
112
|
+
Actions.token.approveSync.Parameters<config['chains'][number], Account>,
|
|
113
113
|
'chain'
|
|
114
114
|
>
|
|
115
115
|
|
|
116
|
-
export type ReturnValue =
|
|
116
|
+
export type ReturnValue = Actions.token.approveSync.ReturnValue
|
|
117
117
|
|
|
118
|
-
export type ErrorType =
|
|
118
|
+
export type ErrorType = Actions.token.approveSync.ErrorType
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
/**
|
|
@@ -124,11 +124,11 @@ export declare namespace approveSync {
|
|
|
124
124
|
* @example
|
|
125
125
|
* ```ts
|
|
126
126
|
* import { createConfig, http } from '@wagmi/core'
|
|
127
|
-
* import { tempo } from '
|
|
127
|
+
* import { tempo } from 'viem/chains'
|
|
128
128
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
129
129
|
*
|
|
130
130
|
* const config = createConfig({
|
|
131
|
-
* chains: [
|
|
131
|
+
* chains: [tempoTestnet],
|
|
132
132
|
* transports: {
|
|
133
133
|
* [tempo.id]: http(),
|
|
134
134
|
* },
|
|
@@ -147,7 +147,7 @@ export declare namespace approveSync {
|
|
|
147
147
|
export async function burn<config extends Config>(
|
|
148
148
|
config: config,
|
|
149
149
|
parameters: burn.Parameters<config>,
|
|
150
|
-
): Promise<
|
|
150
|
+
): Promise<Actions.token.burn.ReturnValue> {
|
|
151
151
|
const { account, chainId, connector } = parameters
|
|
152
152
|
|
|
153
153
|
const client = await getConnectorClient(config, {
|
|
@@ -157,20 +157,20 @@ export async function burn<config extends Config>(
|
|
|
157
157
|
connector,
|
|
158
158
|
})
|
|
159
159
|
|
|
160
|
-
return
|
|
160
|
+
return Actions.token.burn(client, parameters as never)
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
export declare namespace burn {
|
|
164
164
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
165
165
|
ConnectorParameter &
|
|
166
166
|
UnionOmit<
|
|
167
|
-
|
|
167
|
+
Actions.token.burn.Parameters<config['chains'][number], Account>,
|
|
168
168
|
'chain'
|
|
169
169
|
>
|
|
170
170
|
|
|
171
|
-
export type ReturnValue =
|
|
171
|
+
export type ReturnValue = Actions.token.burn.ReturnValue
|
|
172
172
|
|
|
173
|
-
export type ErrorType =
|
|
173
|
+
export type ErrorType = Actions.token.burn.ErrorType
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
/**
|
|
@@ -179,11 +179,11 @@ export declare namespace burn {
|
|
|
179
179
|
* @example
|
|
180
180
|
* ```ts
|
|
181
181
|
* import { createConfig, http } from '@wagmi/core'
|
|
182
|
-
* import { tempo } from '
|
|
182
|
+
* import { tempo } from 'viem/chains'
|
|
183
183
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
184
184
|
*
|
|
185
185
|
* const config = createConfig({
|
|
186
|
-
* chains: [
|
|
186
|
+
* chains: [tempoTestnet],
|
|
187
187
|
* transports: {
|
|
188
188
|
* [tempo.id]: http(),
|
|
189
189
|
* },
|
|
@@ -203,7 +203,7 @@ export declare namespace burn {
|
|
|
203
203
|
export async function burnBlocked<config extends Config>(
|
|
204
204
|
config: config,
|
|
205
205
|
parameters: burnBlocked.Parameters<config>,
|
|
206
|
-
): Promise<
|
|
206
|
+
): Promise<Actions.token.burnBlocked.ReturnValue> {
|
|
207
207
|
const { account, chainId, connector } = parameters
|
|
208
208
|
|
|
209
209
|
const client = await getConnectorClient(config, {
|
|
@@ -213,20 +213,20 @@ export async function burnBlocked<config extends Config>(
|
|
|
213
213
|
connector,
|
|
214
214
|
})
|
|
215
215
|
|
|
216
|
-
return await
|
|
216
|
+
return await Actions.token.burnBlocked(client, parameters as never)
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
export declare namespace burnBlocked {
|
|
220
220
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
221
221
|
ConnectorParameter &
|
|
222
222
|
UnionOmit<
|
|
223
|
-
|
|
223
|
+
Actions.token.burnBlocked.Parameters<config['chains'][number], Account>,
|
|
224
224
|
'chain'
|
|
225
225
|
>
|
|
226
226
|
|
|
227
|
-
export type ReturnValue =
|
|
227
|
+
export type ReturnValue = Actions.token.burnBlocked.ReturnValue
|
|
228
228
|
|
|
229
|
-
export type ErrorType =
|
|
229
|
+
export type ErrorType = Actions.token.burnBlocked.ErrorType
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
/**
|
|
@@ -238,11 +238,11 @@ export declare namespace burnBlocked {
|
|
|
238
238
|
* @example
|
|
239
239
|
* ```ts
|
|
240
240
|
* import { createConfig, http } from '@wagmi/core'
|
|
241
|
-
* import { tempo } from '
|
|
241
|
+
* import { tempo } from 'viem/chains'
|
|
242
242
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
243
243
|
*
|
|
244
244
|
* const config = createConfig({
|
|
245
|
-
* chains: [
|
|
245
|
+
* chains: [tempoTestnet],
|
|
246
246
|
* transports: {
|
|
247
247
|
* [tempo.id]: http(),
|
|
248
248
|
* },
|
|
@@ -262,7 +262,7 @@ export declare namespace burnBlocked {
|
|
|
262
262
|
export async function burnBlockedSync<config extends Config>(
|
|
263
263
|
config: config,
|
|
264
264
|
parameters: burnBlockedSync.Parameters<config>,
|
|
265
|
-
): Promise<
|
|
265
|
+
): Promise<Actions.token.burnBlockedSync.ReturnValue> {
|
|
266
266
|
const { account, chainId, connector } = parameters
|
|
267
267
|
|
|
268
268
|
const client = await getConnectorClient(config, {
|
|
@@ -272,23 +272,23 @@ export async function burnBlockedSync<config extends Config>(
|
|
|
272
272
|
connector,
|
|
273
273
|
})
|
|
274
274
|
|
|
275
|
-
return
|
|
275
|
+
return Actions.token.burnBlockedSync(client, parameters as never)
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
export declare namespace burnBlockedSync {
|
|
279
279
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
280
280
|
ConnectorParameter &
|
|
281
281
|
UnionOmit<
|
|
282
|
-
|
|
282
|
+
Actions.token.burnBlockedSync.Parameters<
|
|
283
283
|
config['chains'][number],
|
|
284
284
|
Account
|
|
285
285
|
>,
|
|
286
286
|
'chain'
|
|
287
287
|
>
|
|
288
288
|
|
|
289
|
-
export type ReturnValue =
|
|
289
|
+
export type ReturnValue = Actions.token.burnBlockedSync.ReturnValue
|
|
290
290
|
|
|
291
|
-
export type ErrorType =
|
|
291
|
+
export type ErrorType = Actions.token.burnBlockedSync.ErrorType
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
/**
|
|
@@ -300,11 +300,11 @@ export declare namespace burnBlockedSync {
|
|
|
300
300
|
* @example
|
|
301
301
|
* ```ts
|
|
302
302
|
* import { createConfig, http } from '@wagmi/core'
|
|
303
|
-
* import { tempo } from '
|
|
303
|
+
* import { tempo } from 'viem/chains'
|
|
304
304
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
305
305
|
*
|
|
306
306
|
* const config = createConfig({
|
|
307
|
-
* chains: [
|
|
307
|
+
* chains: [tempoTestnet],
|
|
308
308
|
* transports: {
|
|
309
309
|
* [tempo.id]: http(),
|
|
310
310
|
* },
|
|
@@ -323,7 +323,7 @@ export declare namespace burnBlockedSync {
|
|
|
323
323
|
export async function burnSync<config extends Config>(
|
|
324
324
|
config: config,
|
|
325
325
|
parameters: burnSync.Parameters<config>,
|
|
326
|
-
): Promise<
|
|
326
|
+
): Promise<Actions.token.burnSync.ReturnValue> {
|
|
327
327
|
const { account, chainId, connector } = parameters
|
|
328
328
|
|
|
329
329
|
const client = await getConnectorClient(config, {
|
|
@@ -333,20 +333,20 @@ export async function burnSync<config extends Config>(
|
|
|
333
333
|
connector,
|
|
334
334
|
})
|
|
335
335
|
|
|
336
|
-
return
|
|
336
|
+
return Actions.token.burnSync(client, parameters as never)
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
export declare namespace burnSync {
|
|
340
340
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
341
341
|
ConnectorParameter &
|
|
342
342
|
UnionOmit<
|
|
343
|
-
|
|
343
|
+
Actions.token.burnSync.Parameters<config['chains'][number], Account>,
|
|
344
344
|
'chain'
|
|
345
345
|
>
|
|
346
346
|
|
|
347
|
-
export type ReturnValue =
|
|
347
|
+
export type ReturnValue = Actions.token.burnSync.ReturnValue
|
|
348
348
|
|
|
349
|
-
export type ErrorType =
|
|
349
|
+
export type ErrorType = Actions.token.burnSync.ErrorType
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
/**
|
|
@@ -355,11 +355,11 @@ export declare namespace burnSync {
|
|
|
355
355
|
* @example
|
|
356
356
|
* ```ts
|
|
357
357
|
* import { createConfig, http } from '@wagmi/core'
|
|
358
|
-
* import { tempo } from '
|
|
358
|
+
* import { tempo } from 'viem/chains'
|
|
359
359
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
360
360
|
*
|
|
361
361
|
* const config = createConfig({
|
|
362
|
-
* chains: [
|
|
362
|
+
* chains: [tempoTestnet],
|
|
363
363
|
* transports: {
|
|
364
364
|
* [tempo.id]: http(),
|
|
365
365
|
* },
|
|
@@ -378,7 +378,7 @@ export declare namespace burnSync {
|
|
|
378
378
|
export async function changeTransferPolicy<config extends Config>(
|
|
379
379
|
config: config,
|
|
380
380
|
parameters: changeTransferPolicy.Parameters<config>,
|
|
381
|
-
): Promise<
|
|
381
|
+
): Promise<Actions.token.changeTransferPolicy.ReturnValue> {
|
|
382
382
|
const { account, chainId, connector } = parameters
|
|
383
383
|
|
|
384
384
|
const client = await getConnectorClient(config, {
|
|
@@ -388,23 +388,23 @@ export async function changeTransferPolicy<config extends Config>(
|
|
|
388
388
|
connector,
|
|
389
389
|
})
|
|
390
390
|
|
|
391
|
-
return
|
|
391
|
+
return Actions.token.changeTransferPolicy(client, parameters as never)
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
export declare namespace changeTransferPolicy {
|
|
395
395
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
396
396
|
ConnectorParameter &
|
|
397
397
|
UnionOmit<
|
|
398
|
-
|
|
398
|
+
Actions.token.changeTransferPolicy.Parameters<
|
|
399
399
|
config['chains'][number],
|
|
400
400
|
Account
|
|
401
401
|
>,
|
|
402
402
|
'chain'
|
|
403
403
|
>
|
|
404
404
|
|
|
405
|
-
export type ReturnValue =
|
|
405
|
+
export type ReturnValue = Actions.token.changeTransferPolicy.ReturnValue
|
|
406
406
|
|
|
407
|
-
export type ErrorType =
|
|
407
|
+
export type ErrorType = Actions.token.changeTransferPolicy.ErrorType
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
/**
|
|
@@ -416,11 +416,11 @@ export declare namespace changeTransferPolicy {
|
|
|
416
416
|
* @example
|
|
417
417
|
* ```ts
|
|
418
418
|
* import { createConfig, http } from '@wagmi/core'
|
|
419
|
-
* import { tempo } from '
|
|
419
|
+
* import { tempo } from 'viem/chains'
|
|
420
420
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
421
421
|
*
|
|
422
422
|
* const config = createConfig({
|
|
423
|
-
* chains: [
|
|
423
|
+
* chains: [tempoTestnet],
|
|
424
424
|
* transports: {
|
|
425
425
|
* [tempo.id]: http(),
|
|
426
426
|
* },
|
|
@@ -439,7 +439,7 @@ export declare namespace changeTransferPolicy {
|
|
|
439
439
|
export async function changeTransferPolicySync<config extends Config>(
|
|
440
440
|
config: config,
|
|
441
441
|
parameters: changeTransferPolicySync.Parameters<config>,
|
|
442
|
-
): Promise<
|
|
442
|
+
): Promise<Actions.token.changeTransferPolicySync.ReturnValue> {
|
|
443
443
|
const { account, chainId, connector } = parameters
|
|
444
444
|
|
|
445
445
|
const client = await getConnectorClient(config, {
|
|
@@ -449,23 +449,23 @@ export async function changeTransferPolicySync<config extends Config>(
|
|
|
449
449
|
connector,
|
|
450
450
|
})
|
|
451
451
|
|
|
452
|
-
return
|
|
452
|
+
return Actions.token.changeTransferPolicySync(client, parameters as never)
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
export declare namespace changeTransferPolicySync {
|
|
456
456
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
457
457
|
ConnectorParameter &
|
|
458
458
|
UnionOmit<
|
|
459
|
-
|
|
459
|
+
Actions.token.changeTransferPolicySync.Parameters<
|
|
460
460
|
config['chains'][number],
|
|
461
461
|
Account
|
|
462
462
|
>,
|
|
463
463
|
'chain'
|
|
464
464
|
>
|
|
465
465
|
|
|
466
|
-
export type ReturnValue =
|
|
466
|
+
export type ReturnValue = Actions.token.changeTransferPolicySync.ReturnValue
|
|
467
467
|
|
|
468
|
-
export type ErrorType =
|
|
468
|
+
export type ErrorType = Actions.token.changeTransferPolicySync.ErrorType
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
/**
|
|
@@ -474,11 +474,11 @@ export declare namespace changeTransferPolicySync {
|
|
|
474
474
|
* @example
|
|
475
475
|
* ```ts
|
|
476
476
|
* import { createConfig, http } from '@wagmi/core'
|
|
477
|
-
* import { tempo } from '
|
|
477
|
+
* import { tempo } from 'viem/chains'
|
|
478
478
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
479
479
|
*
|
|
480
480
|
* const config = createConfig({
|
|
481
|
-
* chains: [
|
|
481
|
+
* chains: [tempoTestnet],
|
|
482
482
|
* transports: {
|
|
483
483
|
* [tempo.id]: http(),
|
|
484
484
|
* },
|
|
@@ -498,7 +498,7 @@ export declare namespace changeTransferPolicySync {
|
|
|
498
498
|
export async function create<config extends Config>(
|
|
499
499
|
config: config,
|
|
500
500
|
parameters: create.Parameters<config>,
|
|
501
|
-
): Promise<
|
|
501
|
+
): Promise<Actions.token.create.ReturnValue> {
|
|
502
502
|
const { account, chainId, connector } = parameters
|
|
503
503
|
|
|
504
504
|
const client = await getConnectorClient(config, {
|
|
@@ -508,20 +508,20 @@ export async function create<config extends Config>(
|
|
|
508
508
|
connector,
|
|
509
509
|
})
|
|
510
510
|
|
|
511
|
-
return
|
|
511
|
+
return Actions.token.create(client, parameters as never)
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
export declare namespace create {
|
|
515
515
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
516
516
|
ConnectorParameter &
|
|
517
517
|
UnionOmit<
|
|
518
|
-
|
|
518
|
+
Actions.token.create.Parameters<config['chains'][number], Account>,
|
|
519
519
|
'chain'
|
|
520
520
|
>
|
|
521
521
|
|
|
522
|
-
export type ReturnValue =
|
|
522
|
+
export type ReturnValue = Actions.token.create.ReturnValue
|
|
523
523
|
|
|
524
|
-
export type ErrorType =
|
|
524
|
+
export type ErrorType = Actions.token.create.ErrorType
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
/**
|
|
@@ -533,11 +533,11 @@ export declare namespace create {
|
|
|
533
533
|
* @example
|
|
534
534
|
* ```ts
|
|
535
535
|
* import { createConfig, http } from '@wagmi/core'
|
|
536
|
-
* import { tempo } from '
|
|
536
|
+
* import { tempo } from 'viem/chains'
|
|
537
537
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
538
538
|
*
|
|
539
539
|
* const config = createConfig({
|
|
540
|
-
* chains: [
|
|
540
|
+
* chains: [tempoTestnet],
|
|
541
541
|
* transports: {
|
|
542
542
|
* [tempo.id]: http(),
|
|
543
543
|
* },
|
|
@@ -557,7 +557,7 @@ export declare namespace create {
|
|
|
557
557
|
export async function createSync<config extends Config>(
|
|
558
558
|
config: config,
|
|
559
559
|
parameters: createSync.Parameters<config>,
|
|
560
|
-
): Promise<
|
|
560
|
+
): Promise<Actions.token.createSync.ReturnValue> {
|
|
561
561
|
const { account, chainId, connector } = parameters
|
|
562
562
|
|
|
563
563
|
const client = await getConnectorClient(config, {
|
|
@@ -567,20 +567,20 @@ export async function createSync<config extends Config>(
|
|
|
567
567
|
connector,
|
|
568
568
|
})
|
|
569
569
|
|
|
570
|
-
return
|
|
570
|
+
return Actions.token.createSync(client, parameters as never)
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
export declare namespace createSync {
|
|
574
574
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
575
575
|
ConnectorParameter &
|
|
576
576
|
UnionOmit<
|
|
577
|
-
|
|
577
|
+
Actions.token.createSync.Parameters<config['chains'][number], Account>,
|
|
578
578
|
'chain'
|
|
579
579
|
>
|
|
580
580
|
|
|
581
|
-
export type ReturnValue =
|
|
581
|
+
export type ReturnValue = Actions.token.createSync.ReturnValue
|
|
582
582
|
|
|
583
|
-
export type ErrorType =
|
|
583
|
+
export type ErrorType = Actions.token.createSync.ErrorType
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
/**
|
|
@@ -589,11 +589,11 @@ export declare namespace createSync {
|
|
|
589
589
|
* @example
|
|
590
590
|
* ```ts
|
|
591
591
|
* import { createConfig, http } from '@wagmi/core'
|
|
592
|
-
* import { tempo } from '
|
|
592
|
+
* import { tempo } from 'viem/chains'
|
|
593
593
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
594
594
|
*
|
|
595
595
|
* const config = createConfig({
|
|
596
|
-
* chains: [
|
|
596
|
+
* chains: [tempoTestnet],
|
|
597
597
|
* transports: {
|
|
598
598
|
* [tempo.id]: http(),
|
|
599
599
|
* },
|
|
@@ -611,7 +611,7 @@ export declare namespace createSync {
|
|
|
611
611
|
export async function updateQuoteToken<config extends Config>(
|
|
612
612
|
config: config,
|
|
613
613
|
parameters: updateQuoteToken.Parameters<config>,
|
|
614
|
-
): Promise<
|
|
614
|
+
): Promise<Actions.token.updateQuoteToken.ReturnValue> {
|
|
615
615
|
const { account, chainId, connector } = parameters
|
|
616
616
|
|
|
617
617
|
const client = await getConnectorClient(config, {
|
|
@@ -621,23 +621,23 @@ export async function updateQuoteToken<config extends Config>(
|
|
|
621
621
|
connector,
|
|
622
622
|
})
|
|
623
623
|
|
|
624
|
-
return
|
|
624
|
+
return Actions.token.updateQuoteToken(client, parameters as never)
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
export declare namespace updateQuoteToken {
|
|
628
628
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
629
629
|
ConnectorParameter &
|
|
630
630
|
UnionOmit<
|
|
631
|
-
|
|
631
|
+
Actions.token.updateQuoteToken.Parameters<
|
|
632
632
|
config['chains'][number],
|
|
633
633
|
Account
|
|
634
634
|
>,
|
|
635
635
|
'chain'
|
|
636
636
|
>
|
|
637
637
|
|
|
638
|
-
export type ReturnValue =
|
|
638
|
+
export type ReturnValue = Actions.token.updateQuoteToken.ReturnValue
|
|
639
639
|
|
|
640
|
-
export type ErrorType =
|
|
640
|
+
export type ErrorType = Actions.token.updateQuoteToken.ErrorType
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
/**
|
|
@@ -649,11 +649,11 @@ export declare namespace updateQuoteToken {
|
|
|
649
649
|
* @example
|
|
650
650
|
* ```ts
|
|
651
651
|
* import { createConfig, http } from '@wagmi/core'
|
|
652
|
-
* import { tempo } from '
|
|
652
|
+
* import { tempo } from 'viem/chains'
|
|
653
653
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
654
654
|
*
|
|
655
655
|
* const config = createConfig({
|
|
656
|
-
* chains: [
|
|
656
|
+
* chains: [tempoTestnet],
|
|
657
657
|
* transports: {
|
|
658
658
|
* [tempo.id]: http(),
|
|
659
659
|
* },
|
|
@@ -671,7 +671,7 @@ export declare namespace updateQuoteToken {
|
|
|
671
671
|
export async function updateQuoteTokenSync<config extends Config>(
|
|
672
672
|
config: config,
|
|
673
673
|
parameters: updateQuoteTokenSync.Parameters<config>,
|
|
674
|
-
): Promise<
|
|
674
|
+
): Promise<Actions.token.updateQuoteTokenSync.ReturnValue> {
|
|
675
675
|
const { account, chainId, connector } = parameters
|
|
676
676
|
|
|
677
677
|
const client = await getConnectorClient(config, {
|
|
@@ -681,23 +681,23 @@ export async function updateQuoteTokenSync<config extends Config>(
|
|
|
681
681
|
connector,
|
|
682
682
|
})
|
|
683
683
|
|
|
684
|
-
return
|
|
684
|
+
return Actions.token.updateQuoteTokenSync(client, parameters as never)
|
|
685
685
|
}
|
|
686
686
|
|
|
687
687
|
export declare namespace updateQuoteTokenSync {
|
|
688
688
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
689
689
|
ConnectorParameter &
|
|
690
690
|
UnionOmit<
|
|
691
|
-
|
|
691
|
+
Actions.token.updateQuoteTokenSync.Parameters<
|
|
692
692
|
config['chains'][number],
|
|
693
693
|
Account
|
|
694
694
|
>,
|
|
695
695
|
'chain'
|
|
696
696
|
>
|
|
697
697
|
|
|
698
|
-
export type ReturnValue =
|
|
698
|
+
export type ReturnValue = Actions.token.updateQuoteTokenSync.ReturnValue
|
|
699
699
|
|
|
700
|
-
export type ErrorType =
|
|
700
|
+
export type ErrorType = Actions.token.updateQuoteTokenSync.ErrorType
|
|
701
701
|
}
|
|
702
702
|
|
|
703
703
|
/**
|
|
@@ -706,11 +706,11 @@ export declare namespace updateQuoteTokenSync {
|
|
|
706
706
|
* @example
|
|
707
707
|
* ```ts
|
|
708
708
|
* import { createConfig, http } from '@wagmi/core'
|
|
709
|
-
* import { tempo } from '
|
|
709
|
+
* import { tempo } from 'viem/chains'
|
|
710
710
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
711
711
|
*
|
|
712
712
|
* const config = createConfig({
|
|
713
|
-
* chains: [
|
|
713
|
+
* chains: [tempoTestnet],
|
|
714
714
|
* transports: {
|
|
715
715
|
* [tempo.id]: http(),
|
|
716
716
|
* },
|
|
@@ -732,14 +732,14 @@ export function getAllowance<config extends Config>(
|
|
|
732
732
|
) {
|
|
733
733
|
const { chainId, ...rest } = parameters
|
|
734
734
|
const client = config.getClient({ chainId })
|
|
735
|
-
return
|
|
735
|
+
return Actions.token.getAllowance(client, rest)
|
|
736
736
|
}
|
|
737
737
|
|
|
738
738
|
export namespace getAllowance {
|
|
739
739
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
740
|
-
|
|
740
|
+
Actions.token.getAllowance.Parameters
|
|
741
741
|
|
|
742
|
-
export type ReturnValue =
|
|
742
|
+
export type ReturnValue = Actions.token.getAllowance.ReturnValue
|
|
743
743
|
|
|
744
744
|
export function queryKey<config extends Config>(
|
|
745
745
|
parameters: Parameters<config>,
|
|
@@ -797,11 +797,11 @@ export namespace getAllowance {
|
|
|
797
797
|
* @example
|
|
798
798
|
* ```ts
|
|
799
799
|
* import { createConfig, http } from '@wagmi/core'
|
|
800
|
-
* import { tempo } from '
|
|
800
|
+
* import { tempo } from 'viem/chains'
|
|
801
801
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
802
802
|
*
|
|
803
803
|
* const config = createConfig({
|
|
804
|
-
* chains: [
|
|
804
|
+
* chains: [tempoTestnet],
|
|
805
805
|
* transports: {
|
|
806
806
|
* [tempo.id]: http(),
|
|
807
807
|
* },
|
|
@@ -822,14 +822,14 @@ export function getBalance<config extends Config>(
|
|
|
822
822
|
) {
|
|
823
823
|
const { chainId, ...rest } = parameters
|
|
824
824
|
const client = config.getClient({ chainId })
|
|
825
|
-
return
|
|
825
|
+
return Actions.token.getBalance(client, rest as never)
|
|
826
826
|
}
|
|
827
827
|
|
|
828
828
|
export namespace getBalance {
|
|
829
829
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
830
|
-
|
|
830
|
+
Actions.token.getBalance.Parameters
|
|
831
831
|
|
|
832
|
-
export type ReturnValue =
|
|
832
|
+
export type ReturnValue = Actions.token.getBalance.ReturnValue
|
|
833
833
|
|
|
834
834
|
export function queryKey<config extends Config>(
|
|
835
835
|
parameters: Parameters<config>,
|
|
@@ -887,11 +887,11 @@ export namespace getBalance {
|
|
|
887
887
|
* @example
|
|
888
888
|
* ```ts
|
|
889
889
|
* import { createConfig, http } from '@wagmi/core'
|
|
890
|
-
* import { tempo } from '
|
|
890
|
+
* import { tempo } from 'viem/chains'
|
|
891
891
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
892
892
|
*
|
|
893
893
|
* const config = createConfig({
|
|
894
|
-
* chains: [
|
|
894
|
+
* chains: [tempoTestnet],
|
|
895
895
|
* transports: {
|
|
896
896
|
* [tempo.id]: http(),
|
|
897
897
|
* },
|
|
@@ -912,14 +912,14 @@ export function getMetadata<config extends Config>(
|
|
|
912
912
|
) {
|
|
913
913
|
const { chainId, ...rest } = parameters
|
|
914
914
|
const client = config.getClient({ chainId })
|
|
915
|
-
return
|
|
915
|
+
return Actions.token.getMetadata(client, rest)
|
|
916
916
|
}
|
|
917
917
|
|
|
918
918
|
export namespace getMetadata {
|
|
919
919
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
920
|
-
|
|
920
|
+
Actions.token.getMetadata.Parameters
|
|
921
921
|
|
|
922
|
-
export type ReturnValue =
|
|
922
|
+
export type ReturnValue = Actions.token.getMetadata.ReturnValue
|
|
923
923
|
|
|
924
924
|
export function queryKey<config extends Config>(
|
|
925
925
|
parameters: Parameters<config>,
|
|
@@ -977,11 +977,11 @@ export namespace getMetadata {
|
|
|
977
977
|
* @example
|
|
978
978
|
* ```ts
|
|
979
979
|
* import { createConfig, http } from '@wagmi/core'
|
|
980
|
-
* import { tempo } from '
|
|
980
|
+
* import { tempo } from 'viem/chains'
|
|
981
981
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
982
982
|
*
|
|
983
983
|
* const config = createConfig({
|
|
984
|
-
* chains: [
|
|
984
|
+
* chains: [tempoTestnet],
|
|
985
985
|
* transports: {
|
|
986
986
|
* [tempo.id]: http(),
|
|
987
987
|
* },
|
|
@@ -1003,14 +1003,14 @@ export function getRoleAdmin<config extends Config>(
|
|
|
1003
1003
|
) {
|
|
1004
1004
|
const { chainId, ...rest } = parameters
|
|
1005
1005
|
const client = config.getClient({ chainId })
|
|
1006
|
-
return
|
|
1006
|
+
return Actions.token.getRoleAdmin(client, rest)
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
1009
|
export namespace getRoleAdmin {
|
|
1010
1010
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1011
|
-
|
|
1011
|
+
Actions.token.getRoleAdmin.Parameters
|
|
1012
1012
|
|
|
1013
|
-
export type ReturnValue =
|
|
1013
|
+
export type ReturnValue = Actions.token.getRoleAdmin.ReturnValue
|
|
1014
1014
|
|
|
1015
1015
|
export function queryKey<config extends Config>(
|
|
1016
1016
|
parameters: Parameters<config>,
|
|
@@ -1068,11 +1068,11 @@ export namespace getRoleAdmin {
|
|
|
1068
1068
|
* @example
|
|
1069
1069
|
* ```ts
|
|
1070
1070
|
* import { createConfig, http } from '@wagmi/core'
|
|
1071
|
-
* import { tempo } from '
|
|
1071
|
+
* import { tempo } from 'viem/chains'
|
|
1072
1072
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1073
1073
|
*
|
|
1074
1074
|
* const config = createConfig({
|
|
1075
|
-
* chains: [
|
|
1075
|
+
* chains: [tempoTestnet],
|
|
1076
1076
|
* transports: {
|
|
1077
1077
|
* [tempo.id]: http(),
|
|
1078
1078
|
* },
|
|
@@ -1092,7 +1092,7 @@ export namespace getRoleAdmin {
|
|
|
1092
1092
|
export async function grantRoles<config extends Config>(
|
|
1093
1093
|
config: config,
|
|
1094
1094
|
parameters: grantRoles.Parameters<config>,
|
|
1095
|
-
): Promise<
|
|
1095
|
+
): Promise<Actions.token.grantRoles.ReturnValue> {
|
|
1096
1096
|
const { account, chainId, connector } = parameters
|
|
1097
1097
|
|
|
1098
1098
|
const client = await getConnectorClient(config, {
|
|
@@ -1102,20 +1102,20 @@ export async function grantRoles<config extends Config>(
|
|
|
1102
1102
|
connector,
|
|
1103
1103
|
})
|
|
1104
1104
|
|
|
1105
|
-
return
|
|
1105
|
+
return Actions.token.grantRoles(client, parameters as never)
|
|
1106
1106
|
}
|
|
1107
1107
|
|
|
1108
1108
|
export declare namespace grantRoles {
|
|
1109
1109
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1110
1110
|
ConnectorParameter &
|
|
1111
1111
|
UnionOmit<
|
|
1112
|
-
|
|
1112
|
+
Actions.token.grantRoles.Parameters<config['chains'][number], Account>,
|
|
1113
1113
|
'chain'
|
|
1114
1114
|
>
|
|
1115
1115
|
|
|
1116
|
-
export type ReturnValue =
|
|
1116
|
+
export type ReturnValue = Actions.token.grantRoles.ReturnValue
|
|
1117
1117
|
|
|
1118
|
-
export type ErrorType =
|
|
1118
|
+
export type ErrorType = Actions.token.grantRoles.ErrorType
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
1121
|
/**
|
|
@@ -1127,11 +1127,11 @@ export declare namespace grantRoles {
|
|
|
1127
1127
|
* @example
|
|
1128
1128
|
* ```ts
|
|
1129
1129
|
* import { createConfig, http } from '@wagmi/core'
|
|
1130
|
-
* import { tempo } from '
|
|
1130
|
+
* import { tempo } from 'viem/chains'
|
|
1131
1131
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1132
1132
|
*
|
|
1133
1133
|
* const config = createConfig({
|
|
1134
|
-
* chains: [
|
|
1134
|
+
* chains: [tempoTestnet],
|
|
1135
1135
|
* transports: {
|
|
1136
1136
|
* [tempo.id]: http(),
|
|
1137
1137
|
* },
|
|
@@ -1151,7 +1151,7 @@ export declare namespace grantRoles {
|
|
|
1151
1151
|
export async function grantRolesSync<config extends Config>(
|
|
1152
1152
|
config: config,
|
|
1153
1153
|
parameters: grantRolesSync.Parameters<config>,
|
|
1154
|
-
): Promise<
|
|
1154
|
+
): Promise<Actions.token.grantRolesSync.ReturnValue> {
|
|
1155
1155
|
const { account, chainId, connector } = parameters
|
|
1156
1156
|
|
|
1157
1157
|
const client = await getConnectorClient(config, {
|
|
@@ -1161,20 +1161,23 @@ export async function grantRolesSync<config extends Config>(
|
|
|
1161
1161
|
connector,
|
|
1162
1162
|
})
|
|
1163
1163
|
|
|
1164
|
-
return
|
|
1164
|
+
return Actions.token.grantRolesSync(client, parameters as never)
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
1167
|
export declare namespace grantRolesSync {
|
|
1168
1168
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1169
1169
|
ConnectorParameter &
|
|
1170
1170
|
UnionOmit<
|
|
1171
|
-
|
|
1171
|
+
Actions.token.grantRolesSync.Parameters<
|
|
1172
|
+
config['chains'][number],
|
|
1173
|
+
Account
|
|
1174
|
+
>,
|
|
1172
1175
|
'chain'
|
|
1173
1176
|
>
|
|
1174
1177
|
|
|
1175
|
-
export type ReturnValue =
|
|
1178
|
+
export type ReturnValue = Actions.token.grantRolesSync.ReturnValue
|
|
1176
1179
|
|
|
1177
|
-
export type ErrorType =
|
|
1180
|
+
export type ErrorType = Actions.token.grantRolesSync.ErrorType
|
|
1178
1181
|
}
|
|
1179
1182
|
|
|
1180
1183
|
/**
|
|
@@ -1183,11 +1186,11 @@ export declare namespace grantRolesSync {
|
|
|
1183
1186
|
* @example
|
|
1184
1187
|
* ```ts
|
|
1185
1188
|
* import { createConfig, http } from '@wagmi/core'
|
|
1186
|
-
* import { tempo } from '
|
|
1189
|
+
* import { tempo } from 'viem/chains'
|
|
1187
1190
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1188
1191
|
*
|
|
1189
1192
|
* const config = createConfig({
|
|
1190
|
-
* chains: [
|
|
1193
|
+
* chains: [tempoTestnet],
|
|
1191
1194
|
* transports: {
|
|
1192
1195
|
* [tempo.id]: http(),
|
|
1193
1196
|
* },
|
|
@@ -1210,14 +1213,14 @@ export function hasRole<config extends Config>(
|
|
|
1210
1213
|
) {
|
|
1211
1214
|
const { chainId, ...rest } = parameters
|
|
1212
1215
|
const client = config.getClient({ chainId })
|
|
1213
|
-
return
|
|
1216
|
+
return Actions.token.hasRole(client, rest)
|
|
1214
1217
|
}
|
|
1215
1218
|
|
|
1216
1219
|
export namespace hasRole {
|
|
1217
1220
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1218
|
-
|
|
1221
|
+
Actions.token.hasRole.Parameters
|
|
1219
1222
|
|
|
1220
|
-
export type ReturnValue =
|
|
1223
|
+
export type ReturnValue = Actions.token.hasRole.ReturnValue
|
|
1221
1224
|
|
|
1222
1225
|
export function queryKey<config extends Config>(
|
|
1223
1226
|
parameters: Parameters<config>,
|
|
@@ -1275,11 +1278,11 @@ export namespace hasRole {
|
|
|
1275
1278
|
* @example
|
|
1276
1279
|
* ```ts
|
|
1277
1280
|
* import { createConfig, http } from '@wagmi/core'
|
|
1278
|
-
* import { tempo } from '
|
|
1281
|
+
* import { tempo } from 'viem/chains'
|
|
1279
1282
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1280
1283
|
*
|
|
1281
1284
|
* const config = createConfig({
|
|
1282
|
-
* chains: [
|
|
1285
|
+
* chains: [tempoTestnet],
|
|
1283
1286
|
* transports: {
|
|
1284
1287
|
* [tempo.id]: http(),
|
|
1285
1288
|
* },
|
|
@@ -1299,7 +1302,7 @@ export namespace hasRole {
|
|
|
1299
1302
|
export async function mint<config extends Config>(
|
|
1300
1303
|
config: config,
|
|
1301
1304
|
parameters: mint.Parameters<config>,
|
|
1302
|
-
): Promise<
|
|
1305
|
+
): Promise<Actions.token.mint.ReturnValue> {
|
|
1303
1306
|
const { account, chainId, connector } = parameters
|
|
1304
1307
|
|
|
1305
1308
|
const client = await getConnectorClient(config, {
|
|
@@ -1309,20 +1312,20 @@ export async function mint<config extends Config>(
|
|
|
1309
1312
|
connector,
|
|
1310
1313
|
})
|
|
1311
1314
|
|
|
1312
|
-
return
|
|
1315
|
+
return Actions.token.mint(client, parameters as never)
|
|
1313
1316
|
}
|
|
1314
1317
|
|
|
1315
1318
|
export declare namespace mint {
|
|
1316
1319
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1317
1320
|
ConnectorParameter &
|
|
1318
1321
|
UnionOmit<
|
|
1319
|
-
|
|
1322
|
+
Actions.token.mint.Parameters<config['chains'][number], Account>,
|
|
1320
1323
|
'chain'
|
|
1321
1324
|
>
|
|
1322
1325
|
|
|
1323
|
-
export type ReturnValue =
|
|
1326
|
+
export type ReturnValue = Actions.token.mint.ReturnValue
|
|
1324
1327
|
|
|
1325
|
-
export type ErrorType =
|
|
1328
|
+
export type ErrorType = Actions.token.mint.ErrorType
|
|
1326
1329
|
}
|
|
1327
1330
|
|
|
1328
1331
|
/**
|
|
@@ -1334,11 +1337,11 @@ export declare namespace mint {
|
|
|
1334
1337
|
* @example
|
|
1335
1338
|
* ```ts
|
|
1336
1339
|
* import { createConfig, http } from '@wagmi/core'
|
|
1337
|
-
* import { tempo } from '
|
|
1340
|
+
* import { tempo } from 'viem/chains'
|
|
1338
1341
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1339
1342
|
*
|
|
1340
1343
|
* const config = createConfig({
|
|
1341
|
-
* chains: [
|
|
1344
|
+
* chains: [tempoTestnet],
|
|
1342
1345
|
* transports: {
|
|
1343
1346
|
* [tempo.id]: http(),
|
|
1344
1347
|
* },
|
|
@@ -1358,7 +1361,7 @@ export declare namespace mint {
|
|
|
1358
1361
|
export async function mintSync<config extends Config>(
|
|
1359
1362
|
config: config,
|
|
1360
1363
|
parameters: mintSync.Parameters<config>,
|
|
1361
|
-
): Promise<
|
|
1364
|
+
): Promise<Actions.token.mintSync.ReturnValue> {
|
|
1362
1365
|
const { account, chainId, connector } = parameters
|
|
1363
1366
|
|
|
1364
1367
|
const client = await getConnectorClient(config, {
|
|
@@ -1368,20 +1371,20 @@ export async function mintSync<config extends Config>(
|
|
|
1368
1371
|
connector,
|
|
1369
1372
|
})
|
|
1370
1373
|
|
|
1371
|
-
return
|
|
1374
|
+
return Actions.token.mintSync(client, parameters as never)
|
|
1372
1375
|
}
|
|
1373
1376
|
|
|
1374
1377
|
export declare namespace mintSync {
|
|
1375
1378
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1376
1379
|
ConnectorParameter &
|
|
1377
1380
|
UnionOmit<
|
|
1378
|
-
|
|
1381
|
+
Actions.token.mintSync.Parameters<config['chains'][number], Account>,
|
|
1379
1382
|
'chain'
|
|
1380
1383
|
>
|
|
1381
1384
|
|
|
1382
|
-
export type ReturnValue =
|
|
1385
|
+
export type ReturnValue = Actions.token.mintSync.ReturnValue
|
|
1383
1386
|
|
|
1384
|
-
export type ErrorType =
|
|
1387
|
+
export type ErrorType = Actions.token.mintSync.ErrorType
|
|
1385
1388
|
}
|
|
1386
1389
|
|
|
1387
1390
|
/**
|
|
@@ -1390,11 +1393,11 @@ export declare namespace mintSync {
|
|
|
1390
1393
|
* @example
|
|
1391
1394
|
* ```ts
|
|
1392
1395
|
* import { createConfig, http } from '@wagmi/core'
|
|
1393
|
-
* import { tempo } from '
|
|
1396
|
+
* import { tempo } from 'viem/chains'
|
|
1394
1397
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1395
1398
|
*
|
|
1396
1399
|
* const config = createConfig({
|
|
1397
|
-
* chains: [
|
|
1400
|
+
* chains: [tempoTestnet],
|
|
1398
1401
|
* transports: {
|
|
1399
1402
|
* [tempo.id]: http(),
|
|
1400
1403
|
* },
|
|
@@ -1412,7 +1415,7 @@ export declare namespace mintSync {
|
|
|
1412
1415
|
export async function pause<config extends Config>(
|
|
1413
1416
|
config: config,
|
|
1414
1417
|
parameters: pause.Parameters<config>,
|
|
1415
|
-
): Promise<
|
|
1418
|
+
): Promise<Actions.token.pause.ReturnValue> {
|
|
1416
1419
|
const { account, chainId, connector } = parameters
|
|
1417
1420
|
|
|
1418
1421
|
const client = await getConnectorClient(config, {
|
|
@@ -1422,20 +1425,20 @@ export async function pause<config extends Config>(
|
|
|
1422
1425
|
connector,
|
|
1423
1426
|
})
|
|
1424
1427
|
|
|
1425
|
-
return
|
|
1428
|
+
return Actions.token.pause(client, parameters as never)
|
|
1426
1429
|
}
|
|
1427
1430
|
|
|
1428
1431
|
export declare namespace pause {
|
|
1429
1432
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1430
1433
|
ConnectorParameter &
|
|
1431
1434
|
UnionOmit<
|
|
1432
|
-
|
|
1435
|
+
Actions.token.pause.Parameters<config['chains'][number], Account>,
|
|
1433
1436
|
'chain'
|
|
1434
1437
|
>
|
|
1435
1438
|
|
|
1436
|
-
export type ReturnValue =
|
|
1439
|
+
export type ReturnValue = Actions.token.pause.ReturnValue
|
|
1437
1440
|
|
|
1438
|
-
export type ErrorType =
|
|
1441
|
+
export type ErrorType = Actions.token.pause.ErrorType
|
|
1439
1442
|
}
|
|
1440
1443
|
|
|
1441
1444
|
/**
|
|
@@ -1447,11 +1450,11 @@ export declare namespace pause {
|
|
|
1447
1450
|
* @example
|
|
1448
1451
|
* ```ts
|
|
1449
1452
|
* import { createConfig, http } from '@wagmi/core'
|
|
1450
|
-
* import { tempo } from '
|
|
1453
|
+
* import { tempo } from 'viem/chains'
|
|
1451
1454
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1452
1455
|
*
|
|
1453
1456
|
* const config = createConfig({
|
|
1454
|
-
* chains: [
|
|
1457
|
+
* chains: [tempoTestnet],
|
|
1455
1458
|
* transports: {
|
|
1456
1459
|
* [tempo.id]: http(),
|
|
1457
1460
|
* },
|
|
@@ -1469,7 +1472,7 @@ export declare namespace pause {
|
|
|
1469
1472
|
export async function pauseSync<config extends Config>(
|
|
1470
1473
|
config: config,
|
|
1471
1474
|
parameters: pauseSync.Parameters<config>,
|
|
1472
|
-
): Promise<
|
|
1475
|
+
): Promise<Actions.token.pauseSync.ReturnValue> {
|
|
1473
1476
|
const { account, chainId, connector } = parameters
|
|
1474
1477
|
|
|
1475
1478
|
const client = await getConnectorClient(config, {
|
|
@@ -1479,20 +1482,20 @@ export async function pauseSync<config extends Config>(
|
|
|
1479
1482
|
connector,
|
|
1480
1483
|
})
|
|
1481
1484
|
|
|
1482
|
-
return
|
|
1485
|
+
return Actions.token.pauseSync(client, parameters as never)
|
|
1483
1486
|
}
|
|
1484
1487
|
|
|
1485
1488
|
export declare namespace pauseSync {
|
|
1486
1489
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1487
1490
|
ConnectorParameter &
|
|
1488
1491
|
UnionOmit<
|
|
1489
|
-
|
|
1492
|
+
Actions.token.pauseSync.Parameters<config['chains'][number], Account>,
|
|
1490
1493
|
'chain'
|
|
1491
1494
|
>
|
|
1492
1495
|
|
|
1493
|
-
export type ReturnValue =
|
|
1496
|
+
export type ReturnValue = Actions.token.pauseSync.ReturnValue
|
|
1494
1497
|
|
|
1495
|
-
export type ErrorType =
|
|
1498
|
+
export type ErrorType = Actions.token.pauseSync.ErrorType
|
|
1496
1499
|
}
|
|
1497
1500
|
|
|
1498
1501
|
/**
|
|
@@ -1501,11 +1504,11 @@ export declare namespace pauseSync {
|
|
|
1501
1504
|
* @example
|
|
1502
1505
|
* ```ts
|
|
1503
1506
|
* import { createConfig, http } from '@wagmi/core'
|
|
1504
|
-
* import { tempo } from '
|
|
1507
|
+
* import { tempo } from 'viem/chains'
|
|
1505
1508
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1506
1509
|
*
|
|
1507
1510
|
* const config = createConfig({
|
|
1508
|
-
* chains: [
|
|
1511
|
+
* chains: [tempoTestnet],
|
|
1509
1512
|
* transports: {
|
|
1510
1513
|
* [tempo.id]: http(),
|
|
1511
1514
|
* },
|
|
@@ -1524,7 +1527,7 @@ export declare namespace pauseSync {
|
|
|
1524
1527
|
export async function renounceRoles<config extends Config>(
|
|
1525
1528
|
config: config,
|
|
1526
1529
|
parameters: renounceRoles.Parameters<config>,
|
|
1527
|
-
): Promise<
|
|
1530
|
+
): Promise<Actions.token.renounceRoles.ReturnValue> {
|
|
1528
1531
|
const { account, chainId, connector } = parameters
|
|
1529
1532
|
|
|
1530
1533
|
const client = await getConnectorClient(config, {
|
|
@@ -1534,20 +1537,20 @@ export async function renounceRoles<config extends Config>(
|
|
|
1534
1537
|
connector,
|
|
1535
1538
|
})
|
|
1536
1539
|
|
|
1537
|
-
return
|
|
1540
|
+
return Actions.token.renounceRoles(client, parameters as never)
|
|
1538
1541
|
}
|
|
1539
1542
|
|
|
1540
1543
|
export declare namespace renounceRoles {
|
|
1541
1544
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1542
1545
|
ConnectorParameter &
|
|
1543
1546
|
UnionOmit<
|
|
1544
|
-
|
|
1547
|
+
Actions.token.renounceRoles.Parameters<config['chains'][number], Account>,
|
|
1545
1548
|
'chain'
|
|
1546
1549
|
>
|
|
1547
1550
|
|
|
1548
|
-
export type ReturnValue =
|
|
1551
|
+
export type ReturnValue = Actions.token.renounceRoles.ReturnValue
|
|
1549
1552
|
|
|
1550
|
-
export type ErrorType =
|
|
1553
|
+
export type ErrorType = Actions.token.renounceRoles.ErrorType
|
|
1551
1554
|
}
|
|
1552
1555
|
|
|
1553
1556
|
/**
|
|
@@ -1559,11 +1562,11 @@ export declare namespace renounceRoles {
|
|
|
1559
1562
|
* @example
|
|
1560
1563
|
* ```ts
|
|
1561
1564
|
* import { createConfig, http } from '@wagmi/core'
|
|
1562
|
-
* import { tempo } from '
|
|
1565
|
+
* import { tempo } from 'viem/chains'
|
|
1563
1566
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1564
1567
|
*
|
|
1565
1568
|
* const config = createConfig({
|
|
1566
|
-
* chains: [
|
|
1569
|
+
* chains: [tempoTestnet],
|
|
1567
1570
|
* transports: {
|
|
1568
1571
|
* [tempo.id]: http(),
|
|
1569
1572
|
* },
|
|
@@ -1582,7 +1585,7 @@ export declare namespace renounceRoles {
|
|
|
1582
1585
|
export async function renounceRolesSync<config extends Config>(
|
|
1583
1586
|
config: config,
|
|
1584
1587
|
parameters: renounceRolesSync.Parameters<config>,
|
|
1585
|
-
): Promise<
|
|
1588
|
+
): Promise<Actions.token.renounceRolesSync.ReturnValue> {
|
|
1586
1589
|
const { account, chainId, connector } = parameters
|
|
1587
1590
|
|
|
1588
1591
|
const client = await getConnectorClient(config, {
|
|
@@ -1592,23 +1595,23 @@ export async function renounceRolesSync<config extends Config>(
|
|
|
1592
1595
|
connector,
|
|
1593
1596
|
})
|
|
1594
1597
|
|
|
1595
|
-
return
|
|
1598
|
+
return Actions.token.renounceRolesSync(client, parameters as never)
|
|
1596
1599
|
}
|
|
1597
1600
|
|
|
1598
1601
|
export declare namespace renounceRolesSync {
|
|
1599
1602
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1600
1603
|
ConnectorParameter &
|
|
1601
1604
|
UnionOmit<
|
|
1602
|
-
|
|
1605
|
+
Actions.token.renounceRolesSync.Parameters<
|
|
1603
1606
|
config['chains'][number],
|
|
1604
1607
|
Account
|
|
1605
1608
|
>,
|
|
1606
1609
|
'chain'
|
|
1607
1610
|
>
|
|
1608
1611
|
|
|
1609
|
-
export type ReturnValue =
|
|
1612
|
+
export type ReturnValue = Actions.token.renounceRolesSync.ReturnValue
|
|
1610
1613
|
|
|
1611
|
-
export type ErrorType =
|
|
1614
|
+
export type ErrorType = Actions.token.renounceRolesSync.ErrorType
|
|
1612
1615
|
}
|
|
1613
1616
|
|
|
1614
1617
|
/**
|
|
@@ -1617,11 +1620,11 @@ export declare namespace renounceRolesSync {
|
|
|
1617
1620
|
* @example
|
|
1618
1621
|
* ```ts
|
|
1619
1622
|
* import { createConfig, http } from '@wagmi/core'
|
|
1620
|
-
* import { tempo } from '
|
|
1623
|
+
* import { tempo } from 'viem/chains'
|
|
1621
1624
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1622
1625
|
*
|
|
1623
1626
|
* const config = createConfig({
|
|
1624
|
-
* chains: [
|
|
1627
|
+
* chains: [tempoTestnet],
|
|
1625
1628
|
* transports: {
|
|
1626
1629
|
* [tempo.id]: http(),
|
|
1627
1630
|
* },
|
|
@@ -1641,7 +1644,7 @@ export declare namespace renounceRolesSync {
|
|
|
1641
1644
|
export async function revokeRoles<config extends Config>(
|
|
1642
1645
|
config: config,
|
|
1643
1646
|
parameters: revokeRoles.Parameters<config>,
|
|
1644
|
-
): Promise<
|
|
1647
|
+
): Promise<Actions.token.revokeRoles.ReturnValue> {
|
|
1645
1648
|
const { account, chainId, connector } = parameters
|
|
1646
1649
|
|
|
1647
1650
|
const client = await getConnectorClient(config, {
|
|
@@ -1651,20 +1654,20 @@ export async function revokeRoles<config extends Config>(
|
|
|
1651
1654
|
connector,
|
|
1652
1655
|
})
|
|
1653
1656
|
|
|
1654
|
-
return
|
|
1657
|
+
return Actions.token.revokeRoles(client, parameters as never)
|
|
1655
1658
|
}
|
|
1656
1659
|
|
|
1657
1660
|
export declare namespace revokeRoles {
|
|
1658
1661
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1659
1662
|
ConnectorParameter &
|
|
1660
1663
|
UnionOmit<
|
|
1661
|
-
|
|
1664
|
+
Actions.token.revokeRoles.Parameters<config['chains'][number], Account>,
|
|
1662
1665
|
'chain'
|
|
1663
1666
|
>
|
|
1664
1667
|
|
|
1665
|
-
export type ReturnValue =
|
|
1668
|
+
export type ReturnValue = Actions.token.revokeRoles.ReturnValue
|
|
1666
1669
|
|
|
1667
|
-
export type ErrorType =
|
|
1670
|
+
export type ErrorType = Actions.token.revokeRoles.ErrorType
|
|
1668
1671
|
}
|
|
1669
1672
|
|
|
1670
1673
|
/**
|
|
@@ -1676,11 +1679,11 @@ export declare namespace revokeRoles {
|
|
|
1676
1679
|
* @example
|
|
1677
1680
|
* ```ts
|
|
1678
1681
|
* import { createConfig, http } from '@wagmi/core'
|
|
1679
|
-
* import { tempo } from '
|
|
1682
|
+
* import { tempo } from 'viem/chains'
|
|
1680
1683
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1681
1684
|
*
|
|
1682
1685
|
* const config = createConfig({
|
|
1683
|
-
* chains: [
|
|
1686
|
+
* chains: [tempoTestnet],
|
|
1684
1687
|
* transports: {
|
|
1685
1688
|
* [tempo.id]: http(),
|
|
1686
1689
|
* },
|
|
@@ -1700,7 +1703,7 @@ export declare namespace revokeRoles {
|
|
|
1700
1703
|
export async function revokeRolesSync<config extends Config>(
|
|
1701
1704
|
config: config,
|
|
1702
1705
|
parameters: revokeRolesSync.Parameters<config>,
|
|
1703
|
-
): Promise<
|
|
1706
|
+
): Promise<Actions.token.revokeRolesSync.ReturnValue> {
|
|
1704
1707
|
const { account, chainId, connector } = parameters
|
|
1705
1708
|
|
|
1706
1709
|
const client = await getConnectorClient(config, {
|
|
@@ -1710,23 +1713,23 @@ export async function revokeRolesSync<config extends Config>(
|
|
|
1710
1713
|
connector,
|
|
1711
1714
|
})
|
|
1712
1715
|
|
|
1713
|
-
return
|
|
1716
|
+
return Actions.token.revokeRolesSync(client, parameters as never)
|
|
1714
1717
|
}
|
|
1715
1718
|
|
|
1716
1719
|
export declare namespace revokeRolesSync {
|
|
1717
1720
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1718
1721
|
ConnectorParameter &
|
|
1719
1722
|
UnionOmit<
|
|
1720
|
-
|
|
1723
|
+
Actions.token.revokeRolesSync.Parameters<
|
|
1721
1724
|
config['chains'][number],
|
|
1722
1725
|
Account
|
|
1723
1726
|
>,
|
|
1724
1727
|
'chain'
|
|
1725
1728
|
>
|
|
1726
1729
|
|
|
1727
|
-
export type ReturnValue =
|
|
1730
|
+
export type ReturnValue = Actions.token.revokeRolesSync.ReturnValue
|
|
1728
1731
|
|
|
1729
|
-
export type ErrorType =
|
|
1732
|
+
export type ErrorType = Actions.token.revokeRolesSync.ErrorType
|
|
1730
1733
|
}
|
|
1731
1734
|
|
|
1732
1735
|
/**
|
|
@@ -1735,11 +1738,11 @@ export declare namespace revokeRolesSync {
|
|
|
1735
1738
|
* @example
|
|
1736
1739
|
* ```ts
|
|
1737
1740
|
* import { createConfig, http } from '@wagmi/core'
|
|
1738
|
-
* import { tempo } from '
|
|
1741
|
+
* import { tempo } from 'viem/chains'
|
|
1739
1742
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1740
1743
|
*
|
|
1741
1744
|
* const config = createConfig({
|
|
1742
|
-
* chains: [
|
|
1745
|
+
* chains: [tempoTestnet],
|
|
1743
1746
|
* transports: {
|
|
1744
1747
|
* [tempo.id]: http(),
|
|
1745
1748
|
* },
|
|
@@ -1759,7 +1762,7 @@ export declare namespace revokeRolesSync {
|
|
|
1759
1762
|
export async function setRoleAdmin<config extends Config>(
|
|
1760
1763
|
config: config,
|
|
1761
1764
|
parameters: setRoleAdmin.Parameters<config>,
|
|
1762
|
-
): Promise<
|
|
1765
|
+
): Promise<Actions.token.setRoleAdmin.ReturnValue> {
|
|
1763
1766
|
const { account, chainId, connector } = parameters
|
|
1764
1767
|
|
|
1765
1768
|
const client = await getConnectorClient(config, {
|
|
@@ -1769,20 +1772,20 @@ export async function setRoleAdmin<config extends Config>(
|
|
|
1769
1772
|
connector,
|
|
1770
1773
|
})
|
|
1771
1774
|
|
|
1772
|
-
return
|
|
1775
|
+
return Actions.token.setRoleAdmin(client, parameters as never)
|
|
1773
1776
|
}
|
|
1774
1777
|
|
|
1775
1778
|
export declare namespace setRoleAdmin {
|
|
1776
1779
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1777
1780
|
ConnectorParameter &
|
|
1778
1781
|
UnionOmit<
|
|
1779
|
-
|
|
1782
|
+
Actions.token.setRoleAdmin.Parameters<config['chains'][number], Account>,
|
|
1780
1783
|
'chain'
|
|
1781
1784
|
>
|
|
1782
1785
|
|
|
1783
|
-
export type ReturnValue =
|
|
1786
|
+
export type ReturnValue = Actions.token.setRoleAdmin.ReturnValue
|
|
1784
1787
|
|
|
1785
|
-
export type ErrorType =
|
|
1788
|
+
export type ErrorType = Actions.token.setRoleAdmin.ErrorType
|
|
1786
1789
|
}
|
|
1787
1790
|
|
|
1788
1791
|
/**
|
|
@@ -1794,11 +1797,11 @@ export declare namespace setRoleAdmin {
|
|
|
1794
1797
|
* @example
|
|
1795
1798
|
* ```ts
|
|
1796
1799
|
* import { createConfig, http } from '@wagmi/core'
|
|
1797
|
-
* import { tempo } from '
|
|
1800
|
+
* import { tempo } from 'viem/chains'
|
|
1798
1801
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1799
1802
|
*
|
|
1800
1803
|
* const config = createConfig({
|
|
1801
|
-
* chains: [
|
|
1804
|
+
* chains: [tempoTestnet],
|
|
1802
1805
|
* transports: {
|
|
1803
1806
|
* [tempo.id]: http(),
|
|
1804
1807
|
* },
|
|
@@ -1818,7 +1821,7 @@ export declare namespace setRoleAdmin {
|
|
|
1818
1821
|
export async function setRoleAdminSync<config extends Config>(
|
|
1819
1822
|
config: config,
|
|
1820
1823
|
parameters: setRoleAdminSync.Parameters<config>,
|
|
1821
|
-
): Promise<
|
|
1824
|
+
): Promise<Actions.token.setRoleAdminSync.ReturnValue> {
|
|
1822
1825
|
const { account, chainId, connector } = parameters
|
|
1823
1826
|
|
|
1824
1827
|
const client = await getConnectorClient(config, {
|
|
@@ -1828,23 +1831,23 @@ export async function setRoleAdminSync<config extends Config>(
|
|
|
1828
1831
|
connector,
|
|
1829
1832
|
})
|
|
1830
1833
|
|
|
1831
|
-
return
|
|
1834
|
+
return Actions.token.setRoleAdminSync(client, parameters as never)
|
|
1832
1835
|
}
|
|
1833
1836
|
|
|
1834
1837
|
export declare namespace setRoleAdminSync {
|
|
1835
1838
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1836
1839
|
ConnectorParameter &
|
|
1837
1840
|
UnionOmit<
|
|
1838
|
-
|
|
1841
|
+
Actions.token.setRoleAdminSync.Parameters<
|
|
1839
1842
|
config['chains'][number],
|
|
1840
1843
|
Account
|
|
1841
1844
|
>,
|
|
1842
1845
|
'chain'
|
|
1843
1846
|
>
|
|
1844
1847
|
|
|
1845
|
-
export type ReturnValue =
|
|
1848
|
+
export type ReturnValue = Actions.token.setRoleAdminSync.ReturnValue
|
|
1846
1849
|
|
|
1847
|
-
export type ErrorType =
|
|
1850
|
+
export type ErrorType = Actions.token.setRoleAdminSync.ErrorType
|
|
1848
1851
|
}
|
|
1849
1852
|
|
|
1850
1853
|
/**
|
|
@@ -1853,11 +1856,11 @@ export declare namespace setRoleAdminSync {
|
|
|
1853
1856
|
* @example
|
|
1854
1857
|
* ```ts
|
|
1855
1858
|
* import { createConfig, http } from '@wagmi/core'
|
|
1856
|
-
* import { tempo } from '
|
|
1859
|
+
* import { tempo } from 'viem/chains'
|
|
1857
1860
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1858
1861
|
*
|
|
1859
1862
|
* const config = createConfig({
|
|
1860
|
-
* chains: [
|
|
1863
|
+
* chains: [tempoTestnet],
|
|
1861
1864
|
* transports: {
|
|
1862
1865
|
* [tempo.id]: http(),
|
|
1863
1866
|
* },
|
|
@@ -1876,7 +1879,7 @@ export declare namespace setRoleAdminSync {
|
|
|
1876
1879
|
export async function setSupplyCap<config extends Config>(
|
|
1877
1880
|
config: config,
|
|
1878
1881
|
parameters: setSupplyCap.Parameters<config>,
|
|
1879
|
-
): Promise<
|
|
1882
|
+
): Promise<Actions.token.setSupplyCap.ReturnValue> {
|
|
1880
1883
|
const { account, chainId, connector } = parameters
|
|
1881
1884
|
|
|
1882
1885
|
const client = await getConnectorClient(config, {
|
|
@@ -1886,20 +1889,20 @@ export async function setSupplyCap<config extends Config>(
|
|
|
1886
1889
|
connector,
|
|
1887
1890
|
})
|
|
1888
1891
|
|
|
1889
|
-
return
|
|
1892
|
+
return Actions.token.setSupplyCap(client, parameters as never)
|
|
1890
1893
|
}
|
|
1891
1894
|
|
|
1892
1895
|
export declare namespace setSupplyCap {
|
|
1893
1896
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1894
1897
|
ConnectorParameter &
|
|
1895
1898
|
UnionOmit<
|
|
1896
|
-
|
|
1899
|
+
Actions.token.setSupplyCap.Parameters<config['chains'][number], Account>,
|
|
1897
1900
|
'chain'
|
|
1898
1901
|
>
|
|
1899
1902
|
|
|
1900
|
-
export type ReturnValue =
|
|
1903
|
+
export type ReturnValue = Actions.token.setSupplyCap.ReturnValue
|
|
1901
1904
|
|
|
1902
|
-
export type ErrorType =
|
|
1905
|
+
export type ErrorType = Actions.token.setSupplyCap.ErrorType
|
|
1903
1906
|
}
|
|
1904
1907
|
|
|
1905
1908
|
/**
|
|
@@ -1911,11 +1914,11 @@ export declare namespace setSupplyCap {
|
|
|
1911
1914
|
* @example
|
|
1912
1915
|
* ```ts
|
|
1913
1916
|
* import { createConfig, http } from '@wagmi/core'
|
|
1914
|
-
* import { tempo } from '
|
|
1917
|
+
* import { tempo } from 'viem/chains'
|
|
1915
1918
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1916
1919
|
*
|
|
1917
1920
|
* const config = createConfig({
|
|
1918
|
-
* chains: [
|
|
1921
|
+
* chains: [tempoTestnet],
|
|
1919
1922
|
* transports: {
|
|
1920
1923
|
* [tempo.id]: http(),
|
|
1921
1924
|
* },
|
|
@@ -1934,7 +1937,7 @@ export declare namespace setSupplyCap {
|
|
|
1934
1937
|
export async function setSupplyCapSync<config extends Config>(
|
|
1935
1938
|
config: config,
|
|
1936
1939
|
parameters: setSupplyCapSync.Parameters<config>,
|
|
1937
|
-
): Promise<
|
|
1940
|
+
): Promise<Actions.token.setSupplyCapSync.ReturnValue> {
|
|
1938
1941
|
const { account, chainId, connector } = parameters
|
|
1939
1942
|
|
|
1940
1943
|
const client = await getConnectorClient(config, {
|
|
@@ -1944,23 +1947,23 @@ export async function setSupplyCapSync<config extends Config>(
|
|
|
1944
1947
|
connector,
|
|
1945
1948
|
})
|
|
1946
1949
|
|
|
1947
|
-
return
|
|
1950
|
+
return Actions.token.setSupplyCapSync(client, parameters as never)
|
|
1948
1951
|
}
|
|
1949
1952
|
|
|
1950
1953
|
export declare namespace setSupplyCapSync {
|
|
1951
1954
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
1952
1955
|
ConnectorParameter &
|
|
1953
1956
|
UnionOmit<
|
|
1954
|
-
|
|
1957
|
+
Actions.token.setSupplyCapSync.Parameters<
|
|
1955
1958
|
config['chains'][number],
|
|
1956
1959
|
Account
|
|
1957
1960
|
>,
|
|
1958
1961
|
'chain'
|
|
1959
1962
|
>
|
|
1960
1963
|
|
|
1961
|
-
export type ReturnValue =
|
|
1964
|
+
export type ReturnValue = Actions.token.setSupplyCapSync.ReturnValue
|
|
1962
1965
|
|
|
1963
|
-
export type ErrorType =
|
|
1966
|
+
export type ErrorType = Actions.token.setSupplyCapSync.ErrorType
|
|
1964
1967
|
}
|
|
1965
1968
|
|
|
1966
1969
|
/**
|
|
@@ -1969,11 +1972,11 @@ export declare namespace setSupplyCapSync {
|
|
|
1969
1972
|
* @example
|
|
1970
1973
|
* ```ts
|
|
1971
1974
|
* import { createConfig, http } from '@wagmi/core'
|
|
1972
|
-
* import { tempo } from '
|
|
1975
|
+
* import { tempo } from 'viem/chains'
|
|
1973
1976
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
1974
1977
|
*
|
|
1975
1978
|
* const config = createConfig({
|
|
1976
|
-
* chains: [
|
|
1979
|
+
* chains: [tempoTestnet],
|
|
1977
1980
|
* transports: {
|
|
1978
1981
|
* [tempo.id]: http(),
|
|
1979
1982
|
* },
|
|
@@ -1992,7 +1995,7 @@ export declare namespace setSupplyCapSync {
|
|
|
1992
1995
|
export async function transfer<config extends Config>(
|
|
1993
1996
|
config: config,
|
|
1994
1997
|
parameters: transfer.Parameters<config>,
|
|
1995
|
-
): Promise<
|
|
1998
|
+
): Promise<Actions.token.transfer.ReturnValue> {
|
|
1996
1999
|
const { account, chainId, connector } = parameters
|
|
1997
2000
|
|
|
1998
2001
|
const client = await getConnectorClient(config, {
|
|
@@ -2002,20 +2005,20 @@ export async function transfer<config extends Config>(
|
|
|
2002
2005
|
connector,
|
|
2003
2006
|
})
|
|
2004
2007
|
|
|
2005
|
-
return
|
|
2008
|
+
return Actions.token.transfer(client, parameters as never)
|
|
2006
2009
|
}
|
|
2007
2010
|
|
|
2008
2011
|
export declare namespace transfer {
|
|
2009
2012
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2010
2013
|
ConnectorParameter &
|
|
2011
2014
|
UnionOmit<
|
|
2012
|
-
|
|
2015
|
+
Actions.token.transfer.Parameters<config['chains'][number], Account>,
|
|
2013
2016
|
'chain'
|
|
2014
2017
|
>
|
|
2015
2018
|
|
|
2016
|
-
export type ReturnValue =
|
|
2019
|
+
export type ReturnValue = Actions.token.transfer.ReturnValue
|
|
2017
2020
|
|
|
2018
|
-
export type ErrorType =
|
|
2021
|
+
export type ErrorType = Actions.token.transfer.ErrorType
|
|
2019
2022
|
}
|
|
2020
2023
|
|
|
2021
2024
|
/**
|
|
@@ -2027,11 +2030,11 @@ export declare namespace transfer {
|
|
|
2027
2030
|
* @example
|
|
2028
2031
|
* ```ts
|
|
2029
2032
|
* import { createConfig, http } from '@wagmi/core'
|
|
2030
|
-
* import { tempo } from '
|
|
2033
|
+
* import { tempo } from 'viem/chains'
|
|
2031
2034
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2032
2035
|
*
|
|
2033
2036
|
* const config = createConfig({
|
|
2034
|
-
* chains: [
|
|
2037
|
+
* chains: [tempoTestnet],
|
|
2035
2038
|
* transports: {
|
|
2036
2039
|
* [tempo.id]: http(),
|
|
2037
2040
|
* },
|
|
@@ -2050,7 +2053,7 @@ export declare namespace transfer {
|
|
|
2050
2053
|
export async function transferSync<config extends Config>(
|
|
2051
2054
|
config: config,
|
|
2052
2055
|
parameters: transferSync.Parameters<config>,
|
|
2053
|
-
): Promise<
|
|
2056
|
+
): Promise<Actions.token.transferSync.ReturnValue> {
|
|
2054
2057
|
const { account, chainId, connector } = parameters
|
|
2055
2058
|
|
|
2056
2059
|
const client = await getConnectorClient(config, {
|
|
@@ -2060,20 +2063,20 @@ export async function transferSync<config extends Config>(
|
|
|
2060
2063
|
connector,
|
|
2061
2064
|
})
|
|
2062
2065
|
|
|
2063
|
-
return
|
|
2066
|
+
return Actions.token.transferSync(client, parameters as never)
|
|
2064
2067
|
}
|
|
2065
2068
|
|
|
2066
2069
|
export declare namespace transferSync {
|
|
2067
2070
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2068
2071
|
ConnectorParameter &
|
|
2069
2072
|
UnionOmit<
|
|
2070
|
-
|
|
2073
|
+
Actions.token.transferSync.Parameters<config['chains'][number], Account>,
|
|
2071
2074
|
'chain'
|
|
2072
2075
|
>
|
|
2073
2076
|
|
|
2074
|
-
export type ReturnValue =
|
|
2077
|
+
export type ReturnValue = Actions.token.transferSync.ReturnValue
|
|
2075
2078
|
|
|
2076
|
-
export type ErrorType =
|
|
2079
|
+
export type ErrorType = Actions.token.transferSync.ErrorType
|
|
2077
2080
|
}
|
|
2078
2081
|
|
|
2079
2082
|
/**
|
|
@@ -2082,11 +2085,11 @@ export declare namespace transferSync {
|
|
|
2082
2085
|
* @example
|
|
2083
2086
|
* ```ts
|
|
2084
2087
|
* import { createConfig, http } from '@wagmi/core'
|
|
2085
|
-
* import { tempo } from '
|
|
2088
|
+
* import { tempo } from 'viem/chains'
|
|
2086
2089
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2087
2090
|
*
|
|
2088
2091
|
* const config = createConfig({
|
|
2089
|
-
* chains: [
|
|
2092
|
+
* chains: [tempoTestnet],
|
|
2090
2093
|
* transports: {
|
|
2091
2094
|
* [tempo.id]: http(),
|
|
2092
2095
|
* },
|
|
@@ -2104,7 +2107,7 @@ export declare namespace transferSync {
|
|
|
2104
2107
|
export async function unpause<config extends Config>(
|
|
2105
2108
|
config: config,
|
|
2106
2109
|
parameters: unpause.Parameters<config>,
|
|
2107
|
-
): Promise<
|
|
2110
|
+
): Promise<Actions.token.unpause.ReturnValue> {
|
|
2108
2111
|
const { account, chainId, connector } = parameters
|
|
2109
2112
|
|
|
2110
2113
|
const client = await getConnectorClient(config, {
|
|
@@ -2114,20 +2117,20 @@ export async function unpause<config extends Config>(
|
|
|
2114
2117
|
connector,
|
|
2115
2118
|
})
|
|
2116
2119
|
|
|
2117
|
-
return
|
|
2120
|
+
return Actions.token.unpause(client, parameters as never)
|
|
2118
2121
|
}
|
|
2119
2122
|
|
|
2120
2123
|
export declare namespace unpause {
|
|
2121
2124
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2122
2125
|
ConnectorParameter &
|
|
2123
2126
|
UnionOmit<
|
|
2124
|
-
|
|
2127
|
+
Actions.token.unpause.Parameters<config['chains'][number], Account>,
|
|
2125
2128
|
'chain'
|
|
2126
2129
|
>
|
|
2127
2130
|
|
|
2128
|
-
export type ReturnValue =
|
|
2131
|
+
export type ReturnValue = Actions.token.unpause.ReturnValue
|
|
2129
2132
|
|
|
2130
|
-
export type ErrorType =
|
|
2133
|
+
export type ErrorType = Actions.token.unpause.ErrorType
|
|
2131
2134
|
}
|
|
2132
2135
|
|
|
2133
2136
|
/**
|
|
@@ -2139,11 +2142,11 @@ export declare namespace unpause {
|
|
|
2139
2142
|
* @example
|
|
2140
2143
|
* ```ts
|
|
2141
2144
|
* import { createConfig, http } from '@wagmi/core'
|
|
2142
|
-
* import { tempo } from '
|
|
2145
|
+
* import { tempo } from 'viem/chains'
|
|
2143
2146
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2144
2147
|
*
|
|
2145
2148
|
* const config = createConfig({
|
|
2146
|
-
* chains: [
|
|
2149
|
+
* chains: [tempoTestnet],
|
|
2147
2150
|
* transports: {
|
|
2148
2151
|
* [tempo.id]: http(),
|
|
2149
2152
|
* },
|
|
@@ -2161,7 +2164,7 @@ export declare namespace unpause {
|
|
|
2161
2164
|
export async function unpauseSync<config extends Config>(
|
|
2162
2165
|
config: config,
|
|
2163
2166
|
parameters: unpauseSync.Parameters<config>,
|
|
2164
|
-
): Promise<
|
|
2167
|
+
): Promise<Actions.token.unpauseSync.ReturnValue> {
|
|
2165
2168
|
const { account, chainId, connector } = parameters
|
|
2166
2169
|
|
|
2167
2170
|
const client = await getConnectorClient(config, {
|
|
@@ -2171,20 +2174,20 @@ export async function unpauseSync<config extends Config>(
|
|
|
2171
2174
|
connector,
|
|
2172
2175
|
})
|
|
2173
2176
|
|
|
2174
|
-
return
|
|
2177
|
+
return Actions.token.unpauseSync(client, parameters as never)
|
|
2175
2178
|
}
|
|
2176
2179
|
|
|
2177
2180
|
export declare namespace unpauseSync {
|
|
2178
2181
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2179
2182
|
ConnectorParameter &
|
|
2180
2183
|
UnionOmit<
|
|
2181
|
-
|
|
2184
|
+
Actions.token.unpauseSync.Parameters<config['chains'][number], Account>,
|
|
2182
2185
|
'chain'
|
|
2183
2186
|
>
|
|
2184
2187
|
|
|
2185
|
-
export type ReturnValue =
|
|
2188
|
+
export type ReturnValue = Actions.token.unpauseSync.ReturnValue
|
|
2186
2189
|
|
|
2187
|
-
export type ErrorType =
|
|
2190
|
+
export type ErrorType = Actions.token.unpauseSync.ErrorType
|
|
2188
2191
|
}
|
|
2189
2192
|
|
|
2190
2193
|
/**
|
|
@@ -2193,11 +2196,11 @@ export declare namespace unpauseSync {
|
|
|
2193
2196
|
* @example
|
|
2194
2197
|
* ```ts
|
|
2195
2198
|
* import { createConfig, http } from '@wagmi/core'
|
|
2196
|
-
* import { tempo } from '
|
|
2199
|
+
* import { tempo } from 'viem/chains'
|
|
2197
2200
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2198
2201
|
*
|
|
2199
2202
|
* const config = createConfig({
|
|
2200
|
-
* chains: [
|
|
2203
|
+
* chains: [tempoTestnet],
|
|
2201
2204
|
* transports: {
|
|
2202
2205
|
* [tempo.id]: http(),
|
|
2203
2206
|
* },
|
|
@@ -2216,7 +2219,7 @@ export declare namespace unpauseSync {
|
|
|
2216
2219
|
export async function prepareUpdateQuoteToken<config extends Config>(
|
|
2217
2220
|
config: config,
|
|
2218
2221
|
parameters: prepareUpdateQuoteToken.Parameters<config>,
|
|
2219
|
-
): Promise<
|
|
2222
|
+
): Promise<Actions.token.prepareUpdateQuoteToken.ReturnValue> {
|
|
2220
2223
|
const { account, chainId, connector } = parameters
|
|
2221
2224
|
|
|
2222
2225
|
const client = await getConnectorClient(config, {
|
|
@@ -2226,23 +2229,23 @@ export async function prepareUpdateQuoteToken<config extends Config>(
|
|
|
2226
2229
|
connector,
|
|
2227
2230
|
})
|
|
2228
2231
|
|
|
2229
|
-
return
|
|
2232
|
+
return Actions.token.prepareUpdateQuoteToken(client, parameters as never)
|
|
2230
2233
|
}
|
|
2231
2234
|
|
|
2232
2235
|
export declare namespace prepareUpdateQuoteToken {
|
|
2233
2236
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2234
2237
|
ConnectorParameter &
|
|
2235
2238
|
UnionOmit<
|
|
2236
|
-
|
|
2239
|
+
Actions.token.prepareUpdateQuoteToken.Parameters<
|
|
2237
2240
|
config['chains'][number],
|
|
2238
2241
|
Account
|
|
2239
2242
|
>,
|
|
2240
2243
|
'chain'
|
|
2241
2244
|
>
|
|
2242
2245
|
|
|
2243
|
-
export type ReturnValue =
|
|
2246
|
+
export type ReturnValue = Actions.token.prepareUpdateQuoteToken.ReturnValue
|
|
2244
2247
|
|
|
2245
|
-
export type ErrorType =
|
|
2248
|
+
export type ErrorType = Actions.token.prepareUpdateQuoteToken.ErrorType
|
|
2246
2249
|
}
|
|
2247
2250
|
|
|
2248
2251
|
/**
|
|
@@ -2254,11 +2257,11 @@ export declare namespace prepareUpdateQuoteToken {
|
|
|
2254
2257
|
* @example
|
|
2255
2258
|
* ```ts
|
|
2256
2259
|
* import { createConfig, http } from '@wagmi/core'
|
|
2257
|
-
* import { tempo } from '
|
|
2260
|
+
* import { tempo } from 'viem/chains'
|
|
2258
2261
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2259
2262
|
*
|
|
2260
2263
|
* const config = createConfig({
|
|
2261
|
-
* chains: [
|
|
2264
|
+
* chains: [tempoTestnet],
|
|
2262
2265
|
* transports: {
|
|
2263
2266
|
* [tempo.id]: http(),
|
|
2264
2267
|
* },
|
|
@@ -2277,7 +2280,7 @@ export declare namespace prepareUpdateQuoteToken {
|
|
|
2277
2280
|
export async function prepareUpdateQuoteTokenSync<config extends Config>(
|
|
2278
2281
|
config: config,
|
|
2279
2282
|
parameters: prepareUpdateQuoteTokenSync.Parameters<config>,
|
|
2280
|
-
): Promise<
|
|
2283
|
+
): Promise<Actions.token.prepareUpdateQuoteTokenSync.ReturnValue> {
|
|
2281
2284
|
const { account, chainId, connector } = parameters
|
|
2282
2285
|
|
|
2283
2286
|
const client = await getConnectorClient(config, {
|
|
@@ -2287,23 +2290,24 @@ export async function prepareUpdateQuoteTokenSync<config extends Config>(
|
|
|
2287
2290
|
connector,
|
|
2288
2291
|
})
|
|
2289
2292
|
|
|
2290
|
-
return
|
|
2293
|
+
return Actions.token.prepareUpdateQuoteTokenSync(client, parameters as never)
|
|
2291
2294
|
}
|
|
2292
2295
|
|
|
2293
2296
|
export declare namespace prepareUpdateQuoteTokenSync {
|
|
2294
2297
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2295
2298
|
ConnectorParameter &
|
|
2296
2299
|
UnionOmit<
|
|
2297
|
-
|
|
2300
|
+
Actions.token.prepareUpdateQuoteTokenSync.Parameters<
|
|
2298
2301
|
config['chains'][number],
|
|
2299
2302
|
Account
|
|
2300
2303
|
>,
|
|
2301
2304
|
'chain'
|
|
2302
2305
|
>
|
|
2303
2306
|
|
|
2304
|
-
export type ReturnValue =
|
|
2307
|
+
export type ReturnValue =
|
|
2308
|
+
Actions.token.prepareUpdateQuoteTokenSync.ReturnValue
|
|
2305
2309
|
|
|
2306
|
-
export type ErrorType =
|
|
2310
|
+
export type ErrorType = Actions.token.prepareUpdateQuoteTokenSync.ErrorType
|
|
2307
2311
|
}
|
|
2308
2312
|
|
|
2309
2313
|
/**
|
|
@@ -2312,11 +2316,11 @@ export declare namespace prepareUpdateQuoteTokenSync {
|
|
|
2312
2316
|
* @example
|
|
2313
2317
|
* ```ts
|
|
2314
2318
|
* import { createConfig, http } from '@wagmi/core'
|
|
2315
|
-
* import { tempo } from '
|
|
2319
|
+
* import { tempo } from 'viem/chains'
|
|
2316
2320
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2317
2321
|
*
|
|
2318
2322
|
* const config = createConfig({
|
|
2319
|
-
* chains: [
|
|
2323
|
+
* chains: [tempoTestnet],
|
|
2320
2324
|
* transports: {
|
|
2321
2325
|
* [tempo.id]: http(),
|
|
2322
2326
|
* },
|
|
@@ -2339,12 +2343,12 @@ export function watchAdminRole<config extends Config>(
|
|
|
2339
2343
|
) {
|
|
2340
2344
|
const { chainId, ...rest } = parameters
|
|
2341
2345
|
const client = config.getClient({ chainId })
|
|
2342
|
-
return
|
|
2346
|
+
return Actions.token.watchAdminRole(client, rest)
|
|
2343
2347
|
}
|
|
2344
2348
|
|
|
2345
2349
|
export declare namespace watchAdminRole {
|
|
2346
2350
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2347
|
-
|
|
2351
|
+
Actions.token.watchAdminRole.Parameters
|
|
2348
2352
|
}
|
|
2349
2353
|
|
|
2350
2354
|
/**
|
|
@@ -2353,11 +2357,11 @@ export declare namespace watchAdminRole {
|
|
|
2353
2357
|
* @example
|
|
2354
2358
|
* ```ts
|
|
2355
2359
|
* import { createConfig, http } from '@wagmi/core'
|
|
2356
|
-
* import { tempo } from '
|
|
2360
|
+
* import { tempo } from 'viem/chains'
|
|
2357
2361
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2358
2362
|
*
|
|
2359
2363
|
* const config = createConfig({
|
|
2360
|
-
* chains: [
|
|
2364
|
+
* chains: [tempoTestnet],
|
|
2361
2365
|
* transports: {
|
|
2362
2366
|
* [tempo.id]: http(),
|
|
2363
2367
|
* },
|
|
@@ -2380,12 +2384,12 @@ export function watchApprove<config extends Config>(
|
|
|
2380
2384
|
) {
|
|
2381
2385
|
const { chainId, ...rest } = parameters
|
|
2382
2386
|
const client = config.getClient({ chainId })
|
|
2383
|
-
return
|
|
2387
|
+
return Actions.token.watchApprove(client, rest)
|
|
2384
2388
|
}
|
|
2385
2389
|
|
|
2386
2390
|
export declare namespace watchApprove {
|
|
2387
2391
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2388
|
-
|
|
2392
|
+
Actions.token.watchApprove.Parameters
|
|
2389
2393
|
}
|
|
2390
2394
|
|
|
2391
2395
|
/**
|
|
@@ -2394,11 +2398,11 @@ export declare namespace watchApprove {
|
|
|
2394
2398
|
* @example
|
|
2395
2399
|
* ```ts
|
|
2396
2400
|
* import { createConfig, http } from '@wagmi/core'
|
|
2397
|
-
* import { tempo } from '
|
|
2401
|
+
* import { tempo } from 'viem/chains'
|
|
2398
2402
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2399
2403
|
*
|
|
2400
2404
|
* const config = createConfig({
|
|
2401
|
-
* chains: [
|
|
2405
|
+
* chains: [tempoTestnet],
|
|
2402
2406
|
* transports: {
|
|
2403
2407
|
* [tempo.id]: http(),
|
|
2404
2408
|
* },
|
|
@@ -2421,12 +2425,12 @@ export function watchBurn<config extends Config>(
|
|
|
2421
2425
|
) {
|
|
2422
2426
|
const { chainId, ...rest } = parameters
|
|
2423
2427
|
const client = config.getClient({ chainId })
|
|
2424
|
-
return
|
|
2428
|
+
return Actions.token.watchBurn(client, rest)
|
|
2425
2429
|
}
|
|
2426
2430
|
|
|
2427
2431
|
export declare namespace watchBurn {
|
|
2428
2432
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2429
|
-
|
|
2433
|
+
Actions.token.watchBurn.Parameters
|
|
2430
2434
|
}
|
|
2431
2435
|
|
|
2432
2436
|
/**
|
|
@@ -2435,11 +2439,11 @@ export declare namespace watchBurn {
|
|
|
2435
2439
|
* @example
|
|
2436
2440
|
* ```ts
|
|
2437
2441
|
* import { createConfig, http } from '@wagmi/core'
|
|
2438
|
-
* import { tempo } from '
|
|
2442
|
+
* import { tempo } from 'viem/chains'
|
|
2439
2443
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2440
2444
|
*
|
|
2441
2445
|
* const config = createConfig({
|
|
2442
|
-
* chains: [
|
|
2446
|
+
* chains: [tempoTestnet],
|
|
2443
2447
|
* transports: {
|
|
2444
2448
|
* [tempo.id]: http(),
|
|
2445
2449
|
* },
|
|
@@ -2462,12 +2466,12 @@ export function watchCreate<config extends Config>(
|
|
|
2462
2466
|
) {
|
|
2463
2467
|
const { chainId, ...rest } = parameters
|
|
2464
2468
|
const client = config.getClient({ chainId })
|
|
2465
|
-
return
|
|
2469
|
+
return Actions.token.watchCreate(client, rest)
|
|
2466
2470
|
}
|
|
2467
2471
|
|
|
2468
2472
|
export declare namespace watchCreate {
|
|
2469
2473
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2470
|
-
|
|
2474
|
+
Actions.token.watchCreate.Parameters
|
|
2471
2475
|
}
|
|
2472
2476
|
|
|
2473
2477
|
/**
|
|
@@ -2476,11 +2480,11 @@ export declare namespace watchCreate {
|
|
|
2476
2480
|
* @example
|
|
2477
2481
|
* ```ts
|
|
2478
2482
|
* import { createConfig, http } from '@wagmi/core'
|
|
2479
|
-
* import { tempo } from '
|
|
2483
|
+
* import { tempo } from 'viem/chains'
|
|
2480
2484
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2481
2485
|
*
|
|
2482
2486
|
* const config = createConfig({
|
|
2483
|
-
* chains: [
|
|
2487
|
+
* chains: [tempoTestnet],
|
|
2484
2488
|
* transports: {
|
|
2485
2489
|
* [tempo.id]: http(),
|
|
2486
2490
|
* },
|
|
@@ -2503,14 +2507,14 @@ export function watchMint<config extends Config>(
|
|
|
2503
2507
|
) {
|
|
2504
2508
|
const { chainId, ...rest } = parameters
|
|
2505
2509
|
const client = config.getClient({ chainId })
|
|
2506
|
-
return
|
|
2510
|
+
return Actions.token.watchMint(client, rest)
|
|
2507
2511
|
}
|
|
2508
2512
|
|
|
2509
2513
|
export declare namespace watchMint {
|
|
2510
2514
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2511
|
-
|
|
2515
|
+
Actions.token.watchMint.Parameters
|
|
2512
2516
|
|
|
2513
|
-
export type ReturnValue =
|
|
2517
|
+
export type ReturnValue = Actions.token.watchMint.ReturnValue
|
|
2514
2518
|
}
|
|
2515
2519
|
|
|
2516
2520
|
/**
|
|
@@ -2519,11 +2523,11 @@ export declare namespace watchMint {
|
|
|
2519
2523
|
* @example
|
|
2520
2524
|
* ```ts
|
|
2521
2525
|
* import { createConfig, http } from '@wagmi/core'
|
|
2522
|
-
* import { tempo } from '
|
|
2526
|
+
* import { tempo } from 'viem/chains'
|
|
2523
2527
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2524
2528
|
*
|
|
2525
2529
|
* const config = createConfig({
|
|
2526
|
-
* chains: [
|
|
2530
|
+
* chains: [tempoTestnet],
|
|
2527
2531
|
* transports: {
|
|
2528
2532
|
* [tempo.id]: http(),
|
|
2529
2533
|
* },
|
|
@@ -2546,12 +2550,12 @@ export function watchRole<config extends Config>(
|
|
|
2546
2550
|
) {
|
|
2547
2551
|
const { chainId, ...rest } = parameters
|
|
2548
2552
|
const client = config.getClient({ chainId })
|
|
2549
|
-
return
|
|
2553
|
+
return Actions.token.watchRole(client, rest)
|
|
2550
2554
|
}
|
|
2551
2555
|
|
|
2552
2556
|
export declare namespace watchRole {
|
|
2553
2557
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2554
|
-
|
|
2558
|
+
Actions.token.watchRole.Parameters
|
|
2555
2559
|
}
|
|
2556
2560
|
|
|
2557
2561
|
/**
|
|
@@ -2560,11 +2564,11 @@ export declare namespace watchRole {
|
|
|
2560
2564
|
* @example
|
|
2561
2565
|
* ```ts
|
|
2562
2566
|
* import { createConfig, http } from '@wagmi/core'
|
|
2563
|
-
* import { tempo } from '
|
|
2567
|
+
* import { tempo } from 'viem/chains'
|
|
2564
2568
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2565
2569
|
*
|
|
2566
2570
|
* const config = createConfig({
|
|
2567
|
-
* chains: [
|
|
2571
|
+
* chains: [tempoTestnet],
|
|
2568
2572
|
* transports: {
|
|
2569
2573
|
* [tempo.id]: http(),
|
|
2570
2574
|
* },
|
|
@@ -2587,12 +2591,12 @@ export function watchTransfer<config extends Config>(
|
|
|
2587
2591
|
) {
|
|
2588
2592
|
const { chainId, ...rest } = parameters
|
|
2589
2593
|
const client = config.getClient({ chainId })
|
|
2590
|
-
return
|
|
2594
|
+
return Actions.token.watchTransfer(client, rest)
|
|
2591
2595
|
}
|
|
2592
2596
|
|
|
2593
2597
|
export declare namespace watchTransfer {
|
|
2594
2598
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2595
|
-
|
|
2599
|
+
Actions.token.watchTransfer.Parameters
|
|
2596
2600
|
}
|
|
2597
2601
|
|
|
2598
2602
|
/**
|
|
@@ -2601,11 +2605,11 @@ export declare namespace watchTransfer {
|
|
|
2601
2605
|
* @example
|
|
2602
2606
|
* ```ts
|
|
2603
2607
|
* import { createConfig, http } from '@wagmi/core'
|
|
2604
|
-
* import { tempo } from '
|
|
2608
|
+
* import { tempo } from 'viem/chains'
|
|
2605
2609
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
2606
2610
|
*
|
|
2607
2611
|
* const config = createConfig({
|
|
2608
|
-
* chains: [
|
|
2612
|
+
* chains: [tempoTestnet],
|
|
2609
2613
|
* transports: {
|
|
2610
2614
|
* [tempo.id]: http(),
|
|
2611
2615
|
* },
|
|
@@ -2631,10 +2635,10 @@ export function watchUpdateQuoteToken<config extends Config>(
|
|
|
2631
2635
|
) {
|
|
2632
2636
|
const { chainId, ...rest } = parameters
|
|
2633
2637
|
const client = config.getClient({ chainId })
|
|
2634
|
-
return
|
|
2638
|
+
return Actions.token.watchUpdateQuoteToken(client, rest)
|
|
2635
2639
|
}
|
|
2636
2640
|
|
|
2637
2641
|
export declare namespace watchUpdateQuoteToken {
|
|
2638
2642
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
2639
|
-
|
|
2643
|
+
Actions.token.watchUpdateQuoteToken.Parameters
|
|
2640
2644
|
}
|