tempo.ts 0.11.1 → 0.12.0
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 +61 -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 +2 -12
- 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,10 +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/policy.js'
|
|
7
|
-
|
|
8
|
-
export type { PolicyType } from '../../viem/Actions/policy.js'
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
9
|
* Creates a new policy.
|
|
@@ -13,11 +11,11 @@ export type { PolicyType } from '../../viem/Actions/policy.js'
|
|
|
13
11
|
* @example
|
|
14
12
|
* ```ts
|
|
15
13
|
* import { createConfig, http } from '@wagmi/core'
|
|
16
|
-
* import { tempo } from '
|
|
14
|
+
* import { tempo } from 'viem/chains'
|
|
17
15
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
18
16
|
*
|
|
19
17
|
* const config = createConfig({
|
|
20
|
-
* chains: [
|
|
18
|
+
* chains: [tempoTestnet],
|
|
21
19
|
* transports: {
|
|
22
20
|
* [tempo.id]: http(),
|
|
23
21
|
* },
|
|
@@ -35,7 +33,7 @@ export type { PolicyType } from '../../viem/Actions/policy.js'
|
|
|
35
33
|
export async function create<config extends Config>(
|
|
36
34
|
config: config,
|
|
37
35
|
parameters: create.Parameters<config>,
|
|
38
|
-
): Promise<
|
|
36
|
+
): Promise<Actions.policy.create.ReturnValue> {
|
|
39
37
|
const { account, chainId, connector } = parameters
|
|
40
38
|
|
|
41
39
|
const client = await getConnectorClient(config, {
|
|
@@ -45,20 +43,20 @@ export async function create<config extends Config>(
|
|
|
45
43
|
connector,
|
|
46
44
|
})
|
|
47
45
|
|
|
48
|
-
return
|
|
46
|
+
return Actions.policy.create(client, parameters as never)
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export declare namespace create {
|
|
52
50
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
53
51
|
ConnectorParameter &
|
|
54
52
|
UnionOmit<
|
|
55
|
-
|
|
53
|
+
Actions.policy.create.Parameters<config['chains'][number], Account>,
|
|
56
54
|
'chain' | 'admin'
|
|
57
55
|
>
|
|
58
56
|
|
|
59
|
-
export type ReturnValue =
|
|
57
|
+
export type ReturnValue = Actions.policy.create.ReturnValue
|
|
60
58
|
|
|
61
|
-
export type ErrorType =
|
|
59
|
+
export type ErrorType = Actions.policy.create.ErrorType
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
/**
|
|
@@ -70,11 +68,11 @@ export declare namespace create {
|
|
|
70
68
|
* @example
|
|
71
69
|
* ```ts
|
|
72
70
|
* import { createConfig, http } from '@wagmi/core'
|
|
73
|
-
* import { tempo } from '
|
|
71
|
+
* import { tempo } from 'viem/chains'
|
|
74
72
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
75
73
|
*
|
|
76
74
|
* const config = createConfig({
|
|
77
|
-
* chains: [
|
|
75
|
+
* chains: [tempoTestnet],
|
|
78
76
|
* transports: {
|
|
79
77
|
* [tempo.id]: http(),
|
|
80
78
|
* },
|
|
@@ -92,7 +90,7 @@ export declare namespace create {
|
|
|
92
90
|
export async function createSync<config extends Config>(
|
|
93
91
|
config: config,
|
|
94
92
|
parameters: createSync.Parameters<config>,
|
|
95
|
-
): Promise<
|
|
93
|
+
): Promise<Actions.policy.createSync.ReturnValue> {
|
|
96
94
|
const { account, chainId, connector } = parameters
|
|
97
95
|
|
|
98
96
|
const client = await getConnectorClient(config, {
|
|
@@ -102,20 +100,20 @@ export async function createSync<config extends Config>(
|
|
|
102
100
|
connector,
|
|
103
101
|
})
|
|
104
102
|
|
|
105
|
-
return
|
|
103
|
+
return Actions.policy.createSync(client, parameters as never)
|
|
106
104
|
}
|
|
107
105
|
|
|
108
106
|
export declare namespace createSync {
|
|
109
107
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
110
108
|
ConnectorParameter &
|
|
111
109
|
UnionOmit<
|
|
112
|
-
|
|
110
|
+
Actions.policy.createSync.Parameters<config['chains'][number], Account>,
|
|
113
111
|
'chain' | 'admin'
|
|
114
112
|
>
|
|
115
113
|
|
|
116
|
-
export type ReturnValue =
|
|
114
|
+
export type ReturnValue = Actions.policy.createSync.ReturnValue
|
|
117
115
|
|
|
118
|
-
export type ErrorType =
|
|
116
|
+
export type ErrorType = Actions.policy.createSync.ErrorType
|
|
119
117
|
}
|
|
120
118
|
|
|
121
119
|
/**
|
|
@@ -124,11 +122,11 @@ export declare namespace createSync {
|
|
|
124
122
|
* @example
|
|
125
123
|
* ```ts
|
|
126
124
|
* import { createConfig, http } from '@wagmi/core'
|
|
127
|
-
* import { tempo } from '
|
|
125
|
+
* import { tempo } from 'viem/chains'
|
|
128
126
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
129
127
|
*
|
|
130
128
|
* const config = createConfig({
|
|
131
|
-
* chains: [
|
|
129
|
+
* chains: [tempoTestnet],
|
|
132
130
|
* transports: {
|
|
133
131
|
* [tempo.id]: http(),
|
|
134
132
|
* },
|
|
@@ -147,7 +145,7 @@ export declare namespace createSync {
|
|
|
147
145
|
export async function setAdmin<config extends Config>(
|
|
148
146
|
config: config,
|
|
149
147
|
parameters: setAdmin.Parameters<config>,
|
|
150
|
-
): Promise<
|
|
148
|
+
): Promise<Actions.policy.setAdmin.ReturnValue> {
|
|
151
149
|
const { account, chainId, connector } = parameters
|
|
152
150
|
|
|
153
151
|
const client = await getConnectorClient(config, {
|
|
@@ -157,20 +155,20 @@ export async function setAdmin<config extends Config>(
|
|
|
157
155
|
connector,
|
|
158
156
|
})
|
|
159
157
|
|
|
160
|
-
return
|
|
158
|
+
return Actions.policy.setAdmin(client, parameters as never)
|
|
161
159
|
}
|
|
162
160
|
|
|
163
161
|
export declare namespace setAdmin {
|
|
164
162
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
165
163
|
ConnectorParameter &
|
|
166
164
|
UnionOmit<
|
|
167
|
-
|
|
165
|
+
Actions.policy.setAdmin.Parameters<config['chains'][number], Account>,
|
|
168
166
|
'chain'
|
|
169
167
|
>
|
|
170
168
|
|
|
171
|
-
export type ReturnValue =
|
|
169
|
+
export type ReturnValue = Actions.policy.setAdmin.ReturnValue
|
|
172
170
|
|
|
173
|
-
export type ErrorType =
|
|
171
|
+
export type ErrorType = Actions.policy.setAdmin.ErrorType
|
|
174
172
|
}
|
|
175
173
|
|
|
176
174
|
/**
|
|
@@ -182,11 +180,11 @@ export declare namespace setAdmin {
|
|
|
182
180
|
* @example
|
|
183
181
|
* ```ts
|
|
184
182
|
* import { createConfig, http } from '@wagmi/core'
|
|
185
|
-
* import { tempo } from '
|
|
183
|
+
* import { tempo } from 'viem/chains'
|
|
186
184
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
187
185
|
*
|
|
188
186
|
* const config = createConfig({
|
|
189
|
-
* chains: [
|
|
187
|
+
* chains: [tempoTestnet],
|
|
190
188
|
* transports: {
|
|
191
189
|
* [tempo.id]: http(),
|
|
192
190
|
* },
|
|
@@ -205,7 +203,7 @@ export declare namespace setAdmin {
|
|
|
205
203
|
export async function setAdminSync<config extends Config>(
|
|
206
204
|
config: config,
|
|
207
205
|
parameters: setAdminSync.Parameters<config>,
|
|
208
|
-
): Promise<
|
|
206
|
+
): Promise<Actions.policy.setAdminSync.ReturnValue> {
|
|
209
207
|
const { account, chainId, connector } = parameters
|
|
210
208
|
|
|
211
209
|
const client = await getConnectorClient(config, {
|
|
@@ -215,20 +213,20 @@ export async function setAdminSync<config extends Config>(
|
|
|
215
213
|
connector,
|
|
216
214
|
})
|
|
217
215
|
|
|
218
|
-
return
|
|
216
|
+
return Actions.policy.setAdminSync(client, parameters as never)
|
|
219
217
|
}
|
|
220
218
|
|
|
221
219
|
export declare namespace setAdminSync {
|
|
222
220
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
223
221
|
ConnectorParameter &
|
|
224
222
|
UnionOmit<
|
|
225
|
-
|
|
223
|
+
Actions.policy.setAdminSync.Parameters<config['chains'][number], Account>,
|
|
226
224
|
'chain'
|
|
227
225
|
>
|
|
228
226
|
|
|
229
|
-
export type ReturnValue =
|
|
227
|
+
export type ReturnValue = Actions.policy.setAdminSync.ReturnValue
|
|
230
228
|
|
|
231
|
-
export type ErrorType =
|
|
229
|
+
export type ErrorType = Actions.policy.setAdminSync.ErrorType
|
|
232
230
|
}
|
|
233
231
|
|
|
234
232
|
/**
|
|
@@ -237,11 +235,11 @@ export declare namespace setAdminSync {
|
|
|
237
235
|
* @example
|
|
238
236
|
* ```ts
|
|
239
237
|
* import { createConfig, http } from '@wagmi/core'
|
|
240
|
-
* import { tempo } from '
|
|
238
|
+
* import { tempo } from 'viem/chains'
|
|
241
239
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
242
240
|
*
|
|
243
241
|
* const config = createConfig({
|
|
244
|
-
* chains: [
|
|
242
|
+
* chains: [tempoTestnet],
|
|
245
243
|
* transports: {
|
|
246
244
|
* [tempo.id]: http(),
|
|
247
245
|
* },
|
|
@@ -261,7 +259,7 @@ export declare namespace setAdminSync {
|
|
|
261
259
|
export async function modifyWhitelist<config extends Config>(
|
|
262
260
|
config: config,
|
|
263
261
|
parameters: modifyWhitelist.Parameters<config>,
|
|
264
|
-
): Promise<
|
|
262
|
+
): Promise<Actions.policy.modifyWhitelist.ReturnValue> {
|
|
265
263
|
const { account, chainId, connector } = parameters
|
|
266
264
|
|
|
267
265
|
const client = await getConnectorClient(config, {
|
|
@@ -271,23 +269,23 @@ export async function modifyWhitelist<config extends Config>(
|
|
|
271
269
|
connector,
|
|
272
270
|
})
|
|
273
271
|
|
|
274
|
-
return
|
|
272
|
+
return Actions.policy.modifyWhitelist(client, parameters as never)
|
|
275
273
|
}
|
|
276
274
|
|
|
277
275
|
export declare namespace modifyWhitelist {
|
|
278
276
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
279
277
|
ConnectorParameter &
|
|
280
278
|
UnionOmit<
|
|
281
|
-
|
|
279
|
+
Actions.policy.modifyWhitelist.Parameters<
|
|
282
280
|
config['chains'][number],
|
|
283
281
|
Account
|
|
284
282
|
>,
|
|
285
283
|
'chain'
|
|
286
284
|
>
|
|
287
285
|
|
|
288
|
-
export type ReturnValue =
|
|
286
|
+
export type ReturnValue = Actions.policy.modifyWhitelist.ReturnValue
|
|
289
287
|
|
|
290
|
-
export type ErrorType =
|
|
288
|
+
export type ErrorType = Actions.policy.modifyWhitelist.ErrorType
|
|
291
289
|
}
|
|
292
290
|
|
|
293
291
|
/**
|
|
@@ -299,11 +297,11 @@ export declare namespace modifyWhitelist {
|
|
|
299
297
|
* @example
|
|
300
298
|
* ```ts
|
|
301
299
|
* import { createConfig, http } from '@wagmi/core'
|
|
302
|
-
* import { tempo } from '
|
|
300
|
+
* import { tempo } from 'viem/chains'
|
|
303
301
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
304
302
|
*
|
|
305
303
|
* const config = createConfig({
|
|
306
|
-
* chains: [
|
|
304
|
+
* chains: [tempoTestnet],
|
|
307
305
|
* transports: {
|
|
308
306
|
* [tempo.id]: http(),
|
|
309
307
|
* },
|
|
@@ -323,7 +321,7 @@ export declare namespace modifyWhitelist {
|
|
|
323
321
|
export async function modifyWhitelistSync<config extends Config>(
|
|
324
322
|
config: config,
|
|
325
323
|
parameters: modifyWhitelistSync.Parameters<config>,
|
|
326
|
-
): Promise<
|
|
324
|
+
): Promise<Actions.policy.modifyWhitelistSync.ReturnValue> {
|
|
327
325
|
const { account, chainId, connector } = parameters
|
|
328
326
|
|
|
329
327
|
const client = await getConnectorClient(config, {
|
|
@@ -333,23 +331,23 @@ export async function modifyWhitelistSync<config extends Config>(
|
|
|
333
331
|
connector,
|
|
334
332
|
})
|
|
335
333
|
|
|
336
|
-
return
|
|
334
|
+
return Actions.policy.modifyWhitelistSync(client, parameters as never)
|
|
337
335
|
}
|
|
338
336
|
|
|
339
337
|
export declare namespace modifyWhitelistSync {
|
|
340
338
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
341
339
|
ConnectorParameter &
|
|
342
340
|
UnionOmit<
|
|
343
|
-
|
|
341
|
+
Actions.policy.modifyWhitelistSync.Parameters<
|
|
344
342
|
config['chains'][number],
|
|
345
343
|
Account
|
|
346
344
|
>,
|
|
347
345
|
'chain'
|
|
348
346
|
>
|
|
349
347
|
|
|
350
|
-
export type ReturnValue =
|
|
348
|
+
export type ReturnValue = Actions.policy.modifyWhitelistSync.ReturnValue
|
|
351
349
|
|
|
352
|
-
export type ErrorType =
|
|
350
|
+
export type ErrorType = Actions.policy.modifyWhitelistSync.ErrorType
|
|
353
351
|
}
|
|
354
352
|
|
|
355
353
|
/**
|
|
@@ -358,11 +356,11 @@ export declare namespace modifyWhitelistSync {
|
|
|
358
356
|
* @example
|
|
359
357
|
* ```ts
|
|
360
358
|
* import { createConfig, http } from '@wagmi/core'
|
|
361
|
-
* import { tempo } from '
|
|
359
|
+
* import { tempo } from 'viem/chains'
|
|
362
360
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
363
361
|
*
|
|
364
362
|
* const config = createConfig({
|
|
365
|
-
* chains: [
|
|
363
|
+
* chains: [tempoTestnet],
|
|
366
364
|
* transports: {
|
|
367
365
|
* [tempo.id]: http(),
|
|
368
366
|
* },
|
|
@@ -382,7 +380,7 @@ export declare namespace modifyWhitelistSync {
|
|
|
382
380
|
export async function modifyBlacklist<config extends Config>(
|
|
383
381
|
config: config,
|
|
384
382
|
parameters: modifyBlacklist.Parameters<config>,
|
|
385
|
-
): Promise<
|
|
383
|
+
): Promise<Actions.policy.modifyBlacklist.ReturnValue> {
|
|
386
384
|
const { account, chainId, connector } = parameters
|
|
387
385
|
|
|
388
386
|
const client = await getConnectorClient(config, {
|
|
@@ -392,23 +390,23 @@ export async function modifyBlacklist<config extends Config>(
|
|
|
392
390
|
connector,
|
|
393
391
|
})
|
|
394
392
|
|
|
395
|
-
return
|
|
393
|
+
return Actions.policy.modifyBlacklist(client, parameters as never)
|
|
396
394
|
}
|
|
397
395
|
|
|
398
396
|
export declare namespace modifyBlacklist {
|
|
399
397
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
400
398
|
ConnectorParameter &
|
|
401
399
|
UnionOmit<
|
|
402
|
-
|
|
400
|
+
Actions.policy.modifyBlacklist.Parameters<
|
|
403
401
|
config['chains'][number],
|
|
404
402
|
Account
|
|
405
403
|
>,
|
|
406
404
|
'chain'
|
|
407
405
|
>
|
|
408
406
|
|
|
409
|
-
export type ReturnValue =
|
|
407
|
+
export type ReturnValue = Actions.policy.modifyBlacklist.ReturnValue
|
|
410
408
|
|
|
411
|
-
export type ErrorType =
|
|
409
|
+
export type ErrorType = Actions.policy.modifyBlacklist.ErrorType
|
|
412
410
|
}
|
|
413
411
|
|
|
414
412
|
/**
|
|
@@ -420,11 +418,11 @@ export declare namespace modifyBlacklist {
|
|
|
420
418
|
* @example
|
|
421
419
|
* ```ts
|
|
422
420
|
* import { createConfig, http } from '@wagmi/core'
|
|
423
|
-
* import { tempo } from '
|
|
421
|
+
* import { tempo } from 'viem/chains'
|
|
424
422
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
425
423
|
*
|
|
426
424
|
* const config = createConfig({
|
|
427
|
-
* chains: [
|
|
425
|
+
* chains: [tempoTestnet],
|
|
428
426
|
* transports: {
|
|
429
427
|
* [tempo.id]: http(),
|
|
430
428
|
* },
|
|
@@ -444,7 +442,7 @@ export declare namespace modifyBlacklist {
|
|
|
444
442
|
export async function modifyBlacklistSync<config extends Config>(
|
|
445
443
|
config: config,
|
|
446
444
|
parameters: modifyBlacklistSync.Parameters<config>,
|
|
447
|
-
): Promise<
|
|
445
|
+
): Promise<Actions.policy.modifyBlacklistSync.ReturnValue> {
|
|
448
446
|
const { account, chainId, connector } = parameters
|
|
449
447
|
|
|
450
448
|
const client = await getConnectorClient(config, {
|
|
@@ -454,23 +452,23 @@ export async function modifyBlacklistSync<config extends Config>(
|
|
|
454
452
|
connector,
|
|
455
453
|
})
|
|
456
454
|
|
|
457
|
-
return
|
|
455
|
+
return Actions.policy.modifyBlacklistSync(client, parameters as never)
|
|
458
456
|
}
|
|
459
457
|
|
|
460
458
|
export declare namespace modifyBlacklistSync {
|
|
461
459
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
462
460
|
ConnectorParameter &
|
|
463
461
|
UnionOmit<
|
|
464
|
-
|
|
462
|
+
Actions.policy.modifyBlacklistSync.Parameters<
|
|
465
463
|
config['chains'][number],
|
|
466
464
|
Account
|
|
467
465
|
>,
|
|
468
466
|
'chain'
|
|
469
467
|
>
|
|
470
468
|
|
|
471
|
-
export type ReturnValue =
|
|
469
|
+
export type ReturnValue = Actions.policy.modifyBlacklistSync.ReturnValue
|
|
472
470
|
|
|
473
|
-
export type ErrorType =
|
|
471
|
+
export type ErrorType = Actions.policy.modifyBlacklistSync.ErrorType
|
|
474
472
|
}
|
|
475
473
|
|
|
476
474
|
/**
|
|
@@ -479,11 +477,11 @@ export declare namespace modifyBlacklistSync {
|
|
|
479
477
|
* @example
|
|
480
478
|
* ```ts
|
|
481
479
|
* import { createConfig, http } from '@wagmi/core'
|
|
482
|
-
* import { tempo } from '
|
|
480
|
+
* import { tempo } from 'viem/chains'
|
|
483
481
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
484
482
|
*
|
|
485
483
|
* const config = createConfig({
|
|
486
|
-
* chains: [
|
|
484
|
+
* chains: [tempoTestnet],
|
|
487
485
|
* transports: {
|
|
488
486
|
* [tempo.id]: http(),
|
|
489
487
|
* },
|
|
@@ -504,14 +502,14 @@ export function getData<config extends Config>(
|
|
|
504
502
|
): Promise<getData.ReturnValue> {
|
|
505
503
|
const { chainId, ...rest } = parameters
|
|
506
504
|
const client = config.getClient({ chainId })
|
|
507
|
-
return
|
|
505
|
+
return Actions.policy.getData(client, rest)
|
|
508
506
|
}
|
|
509
507
|
|
|
510
508
|
export namespace getData {
|
|
511
509
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
512
|
-
|
|
510
|
+
Actions.policy.getData.Parameters
|
|
513
511
|
|
|
514
|
-
export type ReturnValue =
|
|
512
|
+
export type ReturnValue = Actions.policy.getData.ReturnValue
|
|
515
513
|
|
|
516
514
|
export function queryKey<config extends Config>(
|
|
517
515
|
parameters: Parameters<config>,
|
|
@@ -569,11 +567,11 @@ export namespace getData {
|
|
|
569
567
|
* @example
|
|
570
568
|
* ```ts
|
|
571
569
|
* import { createConfig, http } from '@wagmi/core'
|
|
572
|
-
* import { tempo } from '
|
|
570
|
+
* import { tempo } from 'viem/chains'
|
|
573
571
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
574
572
|
*
|
|
575
573
|
* const config = createConfig({
|
|
576
|
-
* chains: [
|
|
574
|
+
* chains: [tempoTestnet],
|
|
577
575
|
* transports: {
|
|
578
576
|
* [tempo.id]: http(),
|
|
579
577
|
* },
|
|
@@ -595,14 +593,14 @@ export function isAuthorized<config extends Config>(
|
|
|
595
593
|
): Promise<isAuthorized.ReturnValue> {
|
|
596
594
|
const { chainId, ...rest } = parameters
|
|
597
595
|
const client = config.getClient({ chainId })
|
|
598
|
-
return
|
|
596
|
+
return Actions.policy.isAuthorized(client, rest)
|
|
599
597
|
}
|
|
600
598
|
|
|
601
599
|
export namespace isAuthorized {
|
|
602
600
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
603
|
-
|
|
601
|
+
Actions.policy.isAuthorized.Parameters
|
|
604
602
|
|
|
605
|
-
export type ReturnValue =
|
|
603
|
+
export type ReturnValue = Actions.policy.isAuthorized.ReturnValue
|
|
606
604
|
|
|
607
605
|
export function queryKey<config extends Config>(
|
|
608
606
|
parameters: Parameters<config>,
|
|
@@ -660,11 +658,11 @@ export namespace isAuthorized {
|
|
|
660
658
|
* @example
|
|
661
659
|
* ```ts
|
|
662
660
|
* import { createConfig, http } from '@wagmi/core'
|
|
663
|
-
* import { tempo } from '
|
|
661
|
+
* import { tempo } from 'viem/chains'
|
|
664
662
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
665
663
|
*
|
|
666
664
|
* const config = createConfig({
|
|
667
|
-
* chains: [
|
|
665
|
+
* chains: [tempoTestnet],
|
|
668
666
|
* transports: {
|
|
669
667
|
* [tempo.id]: http(),
|
|
670
668
|
* },
|
|
@@ -687,12 +685,12 @@ export function watchCreate<config extends Config>(
|
|
|
687
685
|
) {
|
|
688
686
|
const { chainId, ...rest } = parameters
|
|
689
687
|
const client = config.getClient({ chainId })
|
|
690
|
-
return
|
|
688
|
+
return Actions.policy.watchCreate(client, rest)
|
|
691
689
|
}
|
|
692
690
|
|
|
693
691
|
export declare namespace watchCreate {
|
|
694
692
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
695
|
-
|
|
693
|
+
Actions.policy.watchCreate.Parameters
|
|
696
694
|
}
|
|
697
695
|
|
|
698
696
|
/**
|
|
@@ -701,11 +699,11 @@ export declare namespace watchCreate {
|
|
|
701
699
|
* @example
|
|
702
700
|
* ```ts
|
|
703
701
|
* import { createConfig, http } from '@wagmi/core'
|
|
704
|
-
* import { tempo } from '
|
|
702
|
+
* import { tempo } from 'viem/chains'
|
|
705
703
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
706
704
|
*
|
|
707
705
|
* const config = createConfig({
|
|
708
|
-
* chains: [
|
|
706
|
+
* chains: [tempoTestnet],
|
|
709
707
|
* transports: {
|
|
710
708
|
* [tempo.id]: http(),
|
|
711
709
|
* },
|
|
@@ -728,12 +726,12 @@ export function watchAdminUpdated<config extends Config>(
|
|
|
728
726
|
) {
|
|
729
727
|
const { chainId, ...rest } = parameters
|
|
730
728
|
const client = config.getClient({ chainId })
|
|
731
|
-
return
|
|
729
|
+
return Actions.policy.watchAdminUpdated(client, rest)
|
|
732
730
|
}
|
|
733
731
|
|
|
734
732
|
export declare namespace watchAdminUpdated {
|
|
735
733
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
736
|
-
|
|
734
|
+
Actions.policy.watchAdminUpdated.Parameters
|
|
737
735
|
}
|
|
738
736
|
|
|
739
737
|
/**
|
|
@@ -742,11 +740,11 @@ export declare namespace watchAdminUpdated {
|
|
|
742
740
|
* @example
|
|
743
741
|
* ```ts
|
|
744
742
|
* import { createConfig, http } from '@wagmi/core'
|
|
745
|
-
* import { tempo } from '
|
|
743
|
+
* import { tempo } from 'viem/chains'
|
|
746
744
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
747
745
|
*
|
|
748
746
|
* const config = createConfig({
|
|
749
|
-
* chains: [
|
|
747
|
+
* chains: [tempoTestnet],
|
|
750
748
|
* transports: {
|
|
751
749
|
* [tempo.id]: http(),
|
|
752
750
|
* },
|
|
@@ -769,12 +767,12 @@ export function watchWhitelistUpdated<config extends Config>(
|
|
|
769
767
|
) {
|
|
770
768
|
const { chainId, ...rest } = parameters
|
|
771
769
|
const client = config.getClient({ chainId })
|
|
772
|
-
return
|
|
770
|
+
return Actions.policy.watchWhitelistUpdated(client, rest)
|
|
773
771
|
}
|
|
774
772
|
|
|
775
773
|
export declare namespace watchWhitelistUpdated {
|
|
776
774
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
777
|
-
|
|
775
|
+
Actions.policy.watchWhitelistUpdated.Parameters
|
|
778
776
|
}
|
|
779
777
|
|
|
780
778
|
/**
|
|
@@ -783,11 +781,11 @@ export declare namespace watchWhitelistUpdated {
|
|
|
783
781
|
* @example
|
|
784
782
|
* ```ts
|
|
785
783
|
* import { createConfig, http } from '@wagmi/core'
|
|
786
|
-
* import { tempo } from '
|
|
784
|
+
* import { tempo } from 'viem/chains'
|
|
787
785
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
788
786
|
*
|
|
789
787
|
* const config = createConfig({
|
|
790
|
-
* chains: [
|
|
788
|
+
* chains: [tempoTestnet],
|
|
791
789
|
* transports: {
|
|
792
790
|
* [tempo.id]: http(),
|
|
793
791
|
* },
|
|
@@ -810,10 +808,10 @@ export function watchBlacklistUpdated<config extends Config>(
|
|
|
810
808
|
) {
|
|
811
809
|
const { chainId, ...rest } = parameters
|
|
812
810
|
const client = config.getClient({ chainId })
|
|
813
|
-
return
|
|
811
|
+
return Actions.policy.watchBlacklistUpdated(client, rest)
|
|
814
812
|
}
|
|
815
813
|
|
|
816
814
|
export declare namespace watchBlacklistUpdated {
|
|
817
815
|
export type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
818
|
-
|
|
816
|
+
Actions.policy.watchBlacklistUpdated.Parameters
|
|
819
817
|
}
|