tempo.ts 0.11.0 → 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 +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 +2 -2
- 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/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/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/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/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/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/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/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
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { getConnectorClient } from '@wagmi/core';
|
|
2
|
-
import
|
|
2
|
+
import { Actions } from 'viem/tempo';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a new policy.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```ts
|
|
8
8
|
* import { createConfig, http } from '@wagmi/core'
|
|
9
|
-
* import { tempo } from '
|
|
9
|
+
* import { tempo } from 'viem/chains'
|
|
10
10
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
11
11
|
*
|
|
12
12
|
* const config = createConfig({
|
|
13
|
-
* chains: [
|
|
13
|
+
* chains: [tempoTestnet],
|
|
14
14
|
* transports: {
|
|
15
15
|
* [tempo.id]: http(),
|
|
16
16
|
* },
|
|
@@ -33,7 +33,7 @@ export async function create(config, parameters) {
|
|
|
33
33
|
chainId,
|
|
34
34
|
connector,
|
|
35
35
|
});
|
|
36
|
-
return
|
|
36
|
+
return Actions.policy.create(client, parameters);
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Creates a new policy.
|
|
@@ -44,11 +44,11 @@ export async function create(config, parameters) {
|
|
|
44
44
|
* @example
|
|
45
45
|
* ```ts
|
|
46
46
|
* import { createConfig, http } from '@wagmi/core'
|
|
47
|
-
* import { tempo } from '
|
|
47
|
+
* import { tempo } from 'viem/chains'
|
|
48
48
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
49
49
|
*
|
|
50
50
|
* const config = createConfig({
|
|
51
|
-
* chains: [
|
|
51
|
+
* chains: [tempoTestnet],
|
|
52
52
|
* transports: {
|
|
53
53
|
* [tempo.id]: http(),
|
|
54
54
|
* },
|
|
@@ -71,7 +71,7 @@ export async function createSync(config, parameters) {
|
|
|
71
71
|
chainId,
|
|
72
72
|
connector,
|
|
73
73
|
});
|
|
74
|
-
return
|
|
74
|
+
return Actions.policy.createSync(client, parameters);
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* Sets the admin for a policy.
|
|
@@ -79,11 +79,11 @@ export async function createSync(config, parameters) {
|
|
|
79
79
|
* @example
|
|
80
80
|
* ```ts
|
|
81
81
|
* import { createConfig, http } from '@wagmi/core'
|
|
82
|
-
* import { tempo } from '
|
|
82
|
+
* import { tempo } from 'viem/chains'
|
|
83
83
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
84
84
|
*
|
|
85
85
|
* const config = createConfig({
|
|
86
|
-
* chains: [
|
|
86
|
+
* chains: [tempoTestnet],
|
|
87
87
|
* transports: {
|
|
88
88
|
* [tempo.id]: http(),
|
|
89
89
|
* },
|
|
@@ -107,7 +107,7 @@ export async function setAdmin(config, parameters) {
|
|
|
107
107
|
chainId,
|
|
108
108
|
connector,
|
|
109
109
|
});
|
|
110
|
-
return
|
|
110
|
+
return Actions.policy.setAdmin(client, parameters);
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
113
|
* Sets the admin for a policy.
|
|
@@ -118,11 +118,11 @@ export async function setAdmin(config, parameters) {
|
|
|
118
118
|
* @example
|
|
119
119
|
* ```ts
|
|
120
120
|
* import { createConfig, http } from '@wagmi/core'
|
|
121
|
-
* import { tempo } from '
|
|
121
|
+
* import { tempo } from 'viem/chains'
|
|
122
122
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
123
123
|
*
|
|
124
124
|
* const config = createConfig({
|
|
125
|
-
* chains: [
|
|
125
|
+
* chains: [tempoTestnet],
|
|
126
126
|
* transports: {
|
|
127
127
|
* [tempo.id]: http(),
|
|
128
128
|
* },
|
|
@@ -146,7 +146,7 @@ export async function setAdminSync(config, parameters) {
|
|
|
146
146
|
chainId,
|
|
147
147
|
connector,
|
|
148
148
|
});
|
|
149
|
-
return
|
|
149
|
+
return Actions.policy.setAdminSync(client, parameters);
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* Modifies a policy whitelist.
|
|
@@ -154,11 +154,11 @@ export async function setAdminSync(config, parameters) {
|
|
|
154
154
|
* @example
|
|
155
155
|
* ```ts
|
|
156
156
|
* import { createConfig, http } from '@wagmi/core'
|
|
157
|
-
* import { tempo } from '
|
|
157
|
+
* import { tempo } from 'viem/chains'
|
|
158
158
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
159
159
|
*
|
|
160
160
|
* const config = createConfig({
|
|
161
|
-
* chains: [
|
|
161
|
+
* chains: [tempoTestnet],
|
|
162
162
|
* transports: {
|
|
163
163
|
* [tempo.id]: http(),
|
|
164
164
|
* },
|
|
@@ -183,7 +183,7 @@ export async function modifyWhitelist(config, parameters) {
|
|
|
183
183
|
chainId,
|
|
184
184
|
connector,
|
|
185
185
|
});
|
|
186
|
-
return
|
|
186
|
+
return Actions.policy.modifyWhitelist(client, parameters);
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
189
|
* Modifies a policy whitelist.
|
|
@@ -194,11 +194,11 @@ export async function modifyWhitelist(config, parameters) {
|
|
|
194
194
|
* @example
|
|
195
195
|
* ```ts
|
|
196
196
|
* import { createConfig, http } from '@wagmi/core'
|
|
197
|
-
* import { tempo } from '
|
|
197
|
+
* import { tempo } from 'viem/chains'
|
|
198
198
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
199
199
|
*
|
|
200
200
|
* const config = createConfig({
|
|
201
|
-
* chains: [
|
|
201
|
+
* chains: [tempoTestnet],
|
|
202
202
|
* transports: {
|
|
203
203
|
* [tempo.id]: http(),
|
|
204
204
|
* },
|
|
@@ -223,7 +223,7 @@ export async function modifyWhitelistSync(config, parameters) {
|
|
|
223
223
|
chainId,
|
|
224
224
|
connector,
|
|
225
225
|
});
|
|
226
|
-
return
|
|
226
|
+
return Actions.policy.modifyWhitelistSync(client, parameters);
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* Modifies a policy blacklist.
|
|
@@ -231,11 +231,11 @@ export async function modifyWhitelistSync(config, parameters) {
|
|
|
231
231
|
* @example
|
|
232
232
|
* ```ts
|
|
233
233
|
* import { createConfig, http } from '@wagmi/core'
|
|
234
|
-
* import { tempo } from '
|
|
234
|
+
* import { tempo } from 'viem/chains'
|
|
235
235
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
236
236
|
*
|
|
237
237
|
* const config = createConfig({
|
|
238
|
-
* chains: [
|
|
238
|
+
* chains: [tempoTestnet],
|
|
239
239
|
* transports: {
|
|
240
240
|
* [tempo.id]: http(),
|
|
241
241
|
* },
|
|
@@ -260,7 +260,7 @@ export async function modifyBlacklist(config, parameters) {
|
|
|
260
260
|
chainId,
|
|
261
261
|
connector,
|
|
262
262
|
});
|
|
263
|
-
return
|
|
263
|
+
return Actions.policy.modifyBlacklist(client, parameters);
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
266
266
|
* Modifies a policy blacklist.
|
|
@@ -271,11 +271,11 @@ export async function modifyBlacklist(config, parameters) {
|
|
|
271
271
|
* @example
|
|
272
272
|
* ```ts
|
|
273
273
|
* import { createConfig, http } from '@wagmi/core'
|
|
274
|
-
* import { tempo } from '
|
|
274
|
+
* import { tempo } from 'viem/chains'
|
|
275
275
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
276
276
|
*
|
|
277
277
|
* const config = createConfig({
|
|
278
|
-
* chains: [
|
|
278
|
+
* chains: [tempoTestnet],
|
|
279
279
|
* transports: {
|
|
280
280
|
* [tempo.id]: http(),
|
|
281
281
|
* },
|
|
@@ -300,7 +300,7 @@ export async function modifyBlacklistSync(config, parameters) {
|
|
|
300
300
|
chainId,
|
|
301
301
|
connector,
|
|
302
302
|
});
|
|
303
|
-
return
|
|
303
|
+
return Actions.policy.modifyBlacklistSync(client, parameters);
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
306
|
* Gets policy data.
|
|
@@ -308,11 +308,11 @@ export async function modifyBlacklistSync(config, parameters) {
|
|
|
308
308
|
* @example
|
|
309
309
|
* ```ts
|
|
310
310
|
* import { createConfig, http } from '@wagmi/core'
|
|
311
|
-
* import { tempo } from '
|
|
311
|
+
* import { tempo } from 'viem/chains'
|
|
312
312
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
313
313
|
*
|
|
314
314
|
* const config = createConfig({
|
|
315
|
-
* chains: [
|
|
315
|
+
* chains: [tempoTestnet],
|
|
316
316
|
* transports: {
|
|
317
317
|
* [tempo.id]: http(),
|
|
318
318
|
* },
|
|
@@ -330,7 +330,7 @@ export async function modifyBlacklistSync(config, parameters) {
|
|
|
330
330
|
export function getData(config, parameters) {
|
|
331
331
|
const { chainId, ...rest } = parameters;
|
|
332
332
|
const client = config.getClient({ chainId });
|
|
333
|
-
return
|
|
333
|
+
return Actions.policy.getData(client, rest);
|
|
334
334
|
}
|
|
335
335
|
(function (getData) {
|
|
336
336
|
function queryKey(parameters) {
|
|
@@ -356,11 +356,11 @@ export function getData(config, parameters) {
|
|
|
356
356
|
* @example
|
|
357
357
|
* ```ts
|
|
358
358
|
* import { createConfig, http } from '@wagmi/core'
|
|
359
|
-
* import { tempo } from '
|
|
359
|
+
* import { tempo } from 'viem/chains'
|
|
360
360
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
361
361
|
*
|
|
362
362
|
* const config = createConfig({
|
|
363
|
-
* chains: [
|
|
363
|
+
* chains: [tempoTestnet],
|
|
364
364
|
* transports: {
|
|
365
365
|
* [tempo.id]: http(),
|
|
366
366
|
* },
|
|
@@ -379,7 +379,7 @@ export function getData(config, parameters) {
|
|
|
379
379
|
export function isAuthorized(config, parameters) {
|
|
380
380
|
const { chainId, ...rest } = parameters;
|
|
381
381
|
const client = config.getClient({ chainId });
|
|
382
|
-
return
|
|
382
|
+
return Actions.policy.isAuthorized(client, rest);
|
|
383
383
|
}
|
|
384
384
|
(function (isAuthorized) {
|
|
385
385
|
function queryKey(parameters) {
|
|
@@ -405,11 +405,11 @@ export function isAuthorized(config, parameters) {
|
|
|
405
405
|
* @example
|
|
406
406
|
* ```ts
|
|
407
407
|
* import { createConfig, http } from '@wagmi/core'
|
|
408
|
-
* import { tempo } from '
|
|
408
|
+
* import { tempo } from 'viem/chains'
|
|
409
409
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
410
410
|
*
|
|
411
411
|
* const config = createConfig({
|
|
412
|
-
* chains: [
|
|
412
|
+
* chains: [tempoTestnet],
|
|
413
413
|
* transports: {
|
|
414
414
|
* [tempo.id]: http(),
|
|
415
415
|
* },
|
|
@@ -429,7 +429,7 @@ export function isAuthorized(config, parameters) {
|
|
|
429
429
|
export function watchCreate(config, parameters) {
|
|
430
430
|
const { chainId, ...rest } = parameters;
|
|
431
431
|
const client = config.getClient({ chainId });
|
|
432
|
-
return
|
|
432
|
+
return Actions.policy.watchCreate(client, rest);
|
|
433
433
|
}
|
|
434
434
|
/**
|
|
435
435
|
* Watches for policy admin update events.
|
|
@@ -437,11 +437,11 @@ export function watchCreate(config, parameters) {
|
|
|
437
437
|
* @example
|
|
438
438
|
* ```ts
|
|
439
439
|
* import { createConfig, http } from '@wagmi/core'
|
|
440
|
-
* import { tempo } from '
|
|
440
|
+
* import { tempo } from 'viem/chains'
|
|
441
441
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
442
442
|
*
|
|
443
443
|
* const config = createConfig({
|
|
444
|
-
* chains: [
|
|
444
|
+
* chains: [tempoTestnet],
|
|
445
445
|
* transports: {
|
|
446
446
|
* [tempo.id]: http(),
|
|
447
447
|
* },
|
|
@@ -461,7 +461,7 @@ export function watchCreate(config, parameters) {
|
|
|
461
461
|
export function watchAdminUpdated(config, parameters) {
|
|
462
462
|
const { chainId, ...rest } = parameters;
|
|
463
463
|
const client = config.getClient({ chainId });
|
|
464
|
-
return
|
|
464
|
+
return Actions.policy.watchAdminUpdated(client, rest);
|
|
465
465
|
}
|
|
466
466
|
/**
|
|
467
467
|
* Watches for whitelist update events.
|
|
@@ -469,11 +469,11 @@ export function watchAdminUpdated(config, parameters) {
|
|
|
469
469
|
* @example
|
|
470
470
|
* ```ts
|
|
471
471
|
* import { createConfig, http } from '@wagmi/core'
|
|
472
|
-
* import { tempo } from '
|
|
472
|
+
* import { tempo } from 'viem/chains'
|
|
473
473
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
474
474
|
*
|
|
475
475
|
* const config = createConfig({
|
|
476
|
-
* chains: [
|
|
476
|
+
* chains: [tempoTestnet],
|
|
477
477
|
* transports: {
|
|
478
478
|
* [tempo.id]: http(),
|
|
479
479
|
* },
|
|
@@ -493,7 +493,7 @@ export function watchAdminUpdated(config, parameters) {
|
|
|
493
493
|
export function watchWhitelistUpdated(config, parameters) {
|
|
494
494
|
const { chainId, ...rest } = parameters;
|
|
495
495
|
const client = config.getClient({ chainId });
|
|
496
|
-
return
|
|
496
|
+
return Actions.policy.watchWhitelistUpdated(client, rest);
|
|
497
497
|
}
|
|
498
498
|
/**
|
|
499
499
|
* Watches for blacklist update events.
|
|
@@ -501,11 +501,11 @@ export function watchWhitelistUpdated(config, parameters) {
|
|
|
501
501
|
* @example
|
|
502
502
|
* ```ts
|
|
503
503
|
* import { createConfig, http } from '@wagmi/core'
|
|
504
|
-
* import { tempo } from '
|
|
504
|
+
* import { tempo } from 'viem/chains'
|
|
505
505
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
506
506
|
*
|
|
507
507
|
* const config = createConfig({
|
|
508
|
-
* chains: [
|
|
508
|
+
* chains: [tempoTestnet],
|
|
509
509
|
* transports: {
|
|
510
510
|
* [tempo.id]: http(),
|
|
511
511
|
* },
|
|
@@ -525,6 +525,6 @@ export function watchWhitelistUpdated(config, parameters) {
|
|
|
525
525
|
export function watchBlacklistUpdated(config, parameters) {
|
|
526
526
|
const { chainId, ...rest } = parameters;
|
|
527
527
|
const client = config.getClient({ chainId });
|
|
528
|
-
return
|
|
528
|
+
return Actions.policy.watchBlacklistUpdated(client, rest);
|
|
529
529
|
}
|
|
530
530
|
//# sourceMappingURL=policy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../../../src/wagmi/Actions/policy.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,kBAAkB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../../../src/wagmi/Actions/policy.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAG7D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAC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AAG,IAAI,EAAE,GAAG,UAAU,CAAA;IACvC,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IAC5C,OAAO,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAC3D,CAAC"}
|
|
@@ -2,19 +2,19 @@ import type * as Query from '@tanstack/query-core';
|
|
|
2
2
|
import { type Config } from '@wagmi/core';
|
|
3
3
|
import type { ChainIdParameter, ConnectorParameter } from '@wagmi/core/internal';
|
|
4
4
|
import type { Account } from 'viem';
|
|
5
|
+
import { Actions } from 'viem/tempo';
|
|
5
6
|
import type { RequiredBy, UnionOmit } from '../../internal/types.js';
|
|
6
|
-
import * as viem_Actions from '../../viem/Actions/reward.js';
|
|
7
7
|
/**
|
|
8
8
|
* Claims accumulated rewards for a recipient.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
12
12
|
* import { createConfig, http } from '@wagmi/core'
|
|
13
|
-
* import { tempo } from '
|
|
13
|
+
* import { tempo } from 'viem/chains'
|
|
14
14
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
15
15
|
*
|
|
16
16
|
* const config = createConfig({
|
|
17
|
-
* chains: [
|
|
17
|
+
* chains: [tempoTestnet],
|
|
18
18
|
* transports: {
|
|
19
19
|
* [tempo.id]: http(),
|
|
20
20
|
* },
|
|
@@ -29,11 +29,11 @@ import * as viem_Actions from '../../viem/Actions/reward.js';
|
|
|
29
29
|
* @param parameters - Parameters.
|
|
30
30
|
* @returns The transaction hash.
|
|
31
31
|
*/
|
|
32
|
-
export declare function claim<config extends Config>(config: config, parameters: claim.Parameters<config>): Promise<
|
|
32
|
+
export declare function claim<config extends Config>(config: config, parameters: claim.Parameters<config>): Promise<Actions.reward.claim.ReturnValue>;
|
|
33
33
|
export declare namespace claim {
|
|
34
|
-
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
35
|
-
type ReturnValue =
|
|
36
|
-
type ErrorType =
|
|
34
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.reward.claim.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
35
|
+
type ReturnValue = Actions.reward.claim.ReturnValue;
|
|
36
|
+
type ErrorType = Actions.reward.claim.ErrorType;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Claims accumulated rewards for a recipient and waits for confirmation.
|
|
@@ -41,11 +41,11 @@ export declare namespace claim {
|
|
|
41
41
|
* @example
|
|
42
42
|
* ```ts
|
|
43
43
|
* import { createConfig, http } from '@wagmi/core'
|
|
44
|
-
* import { tempo } from '
|
|
44
|
+
* import { tempo } from 'viem/chains'
|
|
45
45
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
46
46
|
*
|
|
47
47
|
* const config = createConfig({
|
|
48
|
-
* chains: [
|
|
48
|
+
* chains: [tempoTestnet],
|
|
49
49
|
* transports: {
|
|
50
50
|
* [tempo.id]: http(),
|
|
51
51
|
* },
|
|
@@ -60,11 +60,11 @@ export declare namespace claim {
|
|
|
60
60
|
* @param parameters - Parameters.
|
|
61
61
|
* @returns The transaction receipt.
|
|
62
62
|
*/
|
|
63
|
-
export declare function claimSync<config extends Config>(config: config, parameters: claimSync.Parameters<config>): Promise<
|
|
63
|
+
export declare function claimSync<config extends Config>(config: config, parameters: claimSync.Parameters<config>): Promise<Actions.reward.claimSync.ReturnValue>;
|
|
64
64
|
export declare namespace claimSync {
|
|
65
|
-
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
66
|
-
type ReturnValue =
|
|
67
|
-
type ErrorType =
|
|
65
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.reward.claimSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
66
|
+
type ReturnValue = Actions.reward.claimSync.ReturnValue;
|
|
67
|
+
type ErrorType = Actions.reward.claimSync.ErrorType;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* Gets the total reward per second rate for all active streams.
|
|
@@ -72,11 +72,11 @@ export declare namespace claimSync {
|
|
|
72
72
|
* @example
|
|
73
73
|
* ```ts
|
|
74
74
|
* import { createConfig, http } from '@wagmi/core'
|
|
75
|
-
* import { tempo } from '
|
|
75
|
+
* import { tempo } from 'viem/chains'
|
|
76
76
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
77
77
|
*
|
|
78
78
|
* const config = createConfig({
|
|
79
|
-
* chains: [
|
|
79
|
+
* chains: [tempoTestnet],
|
|
80
80
|
* transports: {
|
|
81
81
|
* [tempo.id]: http(),
|
|
82
82
|
* },
|
|
@@ -93,8 +93,8 @@ export declare namespace claimSync {
|
|
|
93
93
|
*/
|
|
94
94
|
export declare function getTotalPerSecond<config extends Config>(config: config, parameters: getTotalPerSecond.Parameters<config>): Promise<bigint>;
|
|
95
95
|
export declare namespace getTotalPerSecond {
|
|
96
|
-
type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
97
|
-
type ReturnValue =
|
|
96
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.reward.getTotalPerSecond.Parameters;
|
|
97
|
+
type ReturnValue = Actions.reward.getTotalPerSecond.ReturnValue;
|
|
98
98
|
function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getTotalPerSecond", Parameters<config>];
|
|
99
99
|
type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
|
|
100
100
|
function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
|
|
@@ -111,11 +111,11 @@ export declare namespace getTotalPerSecond {
|
|
|
111
111
|
* @example
|
|
112
112
|
* ```ts
|
|
113
113
|
* import { createConfig, http } from '@wagmi/core'
|
|
114
|
-
* import { tempo } from '
|
|
114
|
+
* import { tempo } from 'viem/chains'
|
|
115
115
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
116
116
|
*
|
|
117
117
|
* const config = createConfig({
|
|
118
|
-
* chains: [
|
|
118
|
+
* chains: [tempoTestnet],
|
|
119
119
|
* transports: {
|
|
120
120
|
* [tempo.id]: http(),
|
|
121
121
|
* },
|
|
@@ -137,8 +137,8 @@ export declare function getUserRewardInfo<config extends Config>(config: config,
|
|
|
137
137
|
rewardBalance: bigint;
|
|
138
138
|
}>;
|
|
139
139
|
export declare namespace getUserRewardInfo {
|
|
140
|
-
type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
141
|
-
type ReturnValue =
|
|
140
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.reward.getUserRewardInfo.Parameters;
|
|
141
|
+
type ReturnValue = Actions.reward.getUserRewardInfo.ReturnValue;
|
|
142
142
|
function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getUserRewardInfo", Parameters<config>];
|
|
143
143
|
type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
|
|
144
144
|
function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
|
|
@@ -155,11 +155,11 @@ export declare namespace getUserRewardInfo {
|
|
|
155
155
|
* @example
|
|
156
156
|
* ```ts
|
|
157
157
|
* import { createConfig, http } from '@wagmi/core'
|
|
158
|
-
* import { tempo } from '
|
|
158
|
+
* import { tempo } from 'viem/chains'
|
|
159
159
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
160
160
|
*
|
|
161
161
|
* const config = createConfig({
|
|
162
|
-
* chains: [
|
|
162
|
+
* chains: [tempoTestnet],
|
|
163
163
|
* transports: {
|
|
164
164
|
* [tempo.id]: http(),
|
|
165
165
|
* },
|
|
@@ -175,11 +175,11 @@ export declare namespace getUserRewardInfo {
|
|
|
175
175
|
* @param parameters - Parameters.
|
|
176
176
|
* @returns The transaction hash.
|
|
177
177
|
*/
|
|
178
|
-
export declare function setRecipient<config extends Config>(config: config, parameters: setRecipient.Parameters<config>): Promise<
|
|
178
|
+
export declare function setRecipient<config extends Config>(config: config, parameters: setRecipient.Parameters<config>): Promise<Actions.reward.setRecipient.ReturnValue>;
|
|
179
179
|
export declare namespace setRecipient {
|
|
180
|
-
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
181
|
-
type ReturnValue =
|
|
182
|
-
type ErrorType =
|
|
180
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.reward.setRecipient.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
181
|
+
type ReturnValue = Actions.reward.setRecipient.ReturnValue;
|
|
182
|
+
type ErrorType = Actions.reward.setRecipient.ErrorType;
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
185
|
* Sets or changes the reward recipient for a token holder and waits for confirmation.
|
|
@@ -187,11 +187,11 @@ export declare namespace setRecipient {
|
|
|
187
187
|
* @example
|
|
188
188
|
* ```ts
|
|
189
189
|
* import { createConfig, http } from '@wagmi/core'
|
|
190
|
-
* import { tempo } from '
|
|
190
|
+
* import { tempo } from 'viem/chains'
|
|
191
191
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
192
192
|
*
|
|
193
193
|
* const config = createConfig({
|
|
194
|
-
* chains: [
|
|
194
|
+
* chains: [tempoTestnet],
|
|
195
195
|
* transports: {
|
|
196
196
|
* [tempo.id]: http(),
|
|
197
197
|
* },
|
|
@@ -207,11 +207,11 @@ export declare namespace setRecipient {
|
|
|
207
207
|
* @param parameters - Parameters.
|
|
208
208
|
* @returns The transaction receipt and event data.
|
|
209
209
|
*/
|
|
210
|
-
export declare function setRecipientSync<config extends Config>(config: config, parameters: setRecipientSync.Parameters<config>): Promise<
|
|
210
|
+
export declare function setRecipientSync<config extends Config>(config: config, parameters: setRecipientSync.Parameters<config>): Promise<Actions.reward.setRecipientSync.ReturnValue>;
|
|
211
211
|
export declare namespace setRecipientSync {
|
|
212
|
-
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
213
|
-
type ReturnValue =
|
|
214
|
-
type ErrorType =
|
|
212
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.reward.setRecipientSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
213
|
+
type ReturnValue = Actions.reward.setRecipientSync.ReturnValue;
|
|
214
|
+
type ErrorType = Actions.reward.setRecipientSync.ErrorType;
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
217
217
|
* Starts a new reward stream that distributes tokens to opted-in holders.
|
|
@@ -219,11 +219,11 @@ export declare namespace setRecipientSync {
|
|
|
219
219
|
* @example
|
|
220
220
|
* ```ts
|
|
221
221
|
* import { createConfig, http } from '@wagmi/core'
|
|
222
|
-
* import { tempo } from '
|
|
222
|
+
* import { tempo } from 'viem/chains'
|
|
223
223
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
224
224
|
*
|
|
225
225
|
* const config = createConfig({
|
|
226
|
-
* chains: [
|
|
226
|
+
* chains: [tempoTestnet],
|
|
227
227
|
* transports: {
|
|
228
228
|
* [tempo.id]: http(),
|
|
229
229
|
* },
|
|
@@ -240,11 +240,11 @@ export declare namespace setRecipientSync {
|
|
|
240
240
|
* @param parameters - Parameters.
|
|
241
241
|
* @returns The transaction hash.
|
|
242
242
|
*/
|
|
243
|
-
export declare function start<config extends Config>(config: config, parameters: start.Parameters<config>): Promise<
|
|
243
|
+
export declare function start<config extends Config>(config: config, parameters: start.Parameters<config>): Promise<Actions.reward.start.ReturnValue>;
|
|
244
244
|
export declare namespace start {
|
|
245
|
-
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
246
|
-
type ReturnValue =
|
|
247
|
-
type ErrorType =
|
|
245
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.reward.start.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
246
|
+
type ReturnValue = Actions.reward.start.ReturnValue;
|
|
247
|
+
type ErrorType = Actions.reward.start.ErrorType;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
250
|
* Starts a new reward stream that distributes tokens to opted-in holders and waits for confirmation.
|
|
@@ -252,11 +252,11 @@ export declare namespace start {
|
|
|
252
252
|
* @example
|
|
253
253
|
* ```ts
|
|
254
254
|
* import { createConfig, http } from '@wagmi/core'
|
|
255
|
-
* import { tempo } from '
|
|
255
|
+
* import { tempo } from 'viem/chains'
|
|
256
256
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
257
257
|
*
|
|
258
258
|
* const config = createConfig({
|
|
259
|
-
* chains: [
|
|
259
|
+
* chains: [tempoTestnet],
|
|
260
260
|
* transports: {
|
|
261
261
|
* [tempo.id]: http(),
|
|
262
262
|
* },
|
|
@@ -273,11 +273,11 @@ export declare namespace start {
|
|
|
273
273
|
* @param parameters - Parameters.
|
|
274
274
|
* @returns The transaction receipt and event data.
|
|
275
275
|
*/
|
|
276
|
-
export declare function startSync<config extends Config>(config: config, parameters: startSync.Parameters<config>): Promise<
|
|
276
|
+
export declare function startSync<config extends Config>(config: config, parameters: startSync.Parameters<config>): Promise<Actions.reward.startSync.ReturnValue>;
|
|
277
277
|
export declare namespace startSync {
|
|
278
|
-
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
279
|
-
type ReturnValue =
|
|
280
|
-
type ErrorType =
|
|
278
|
+
type Parameters<config extends Config = Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.reward.startSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
279
|
+
type ReturnValue = Actions.reward.startSync.ReturnValue;
|
|
280
|
+
type ErrorType = Actions.reward.startSync.ErrorType;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* Watches for reward scheduled events.
|
|
@@ -285,11 +285,11 @@ export declare namespace startSync {
|
|
|
285
285
|
* @example
|
|
286
286
|
* ```ts
|
|
287
287
|
* import { createConfig, http } from '@wagmi/core'
|
|
288
|
-
* import { tempo } from '
|
|
288
|
+
* import { tempo } from 'viem/chains'
|
|
289
289
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
290
290
|
*
|
|
291
291
|
* const config = createConfig({
|
|
292
|
-
* chains: [
|
|
292
|
+
* chains: [tempoTestnet],
|
|
293
293
|
* transports: {
|
|
294
294
|
* [tempo.id]: http(),
|
|
295
295
|
* },
|
|
@@ -309,7 +309,7 @@ export declare namespace startSync {
|
|
|
309
309
|
*/
|
|
310
310
|
export declare function watchRewardScheduled<config extends Config>(config: config, parameters: watchRewardScheduled.Parameters<config>): import("viem").WatchContractEventReturnType;
|
|
311
311
|
export declare namespace watchRewardScheduled {
|
|
312
|
-
type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
312
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.reward.watchRewardScheduled.Parameters;
|
|
313
313
|
}
|
|
314
314
|
/**
|
|
315
315
|
* Watches for reward recipient set events.
|
|
@@ -317,11 +317,11 @@ export declare namespace watchRewardScheduled {
|
|
|
317
317
|
* @example
|
|
318
318
|
* ```ts
|
|
319
319
|
* import { createConfig, http } from '@wagmi/core'
|
|
320
|
-
* import { tempo } from '
|
|
320
|
+
* import { tempo } from 'viem/chains'
|
|
321
321
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
322
322
|
*
|
|
323
323
|
* const config = createConfig({
|
|
324
|
-
* chains: [
|
|
324
|
+
* chains: [tempoTestnet],
|
|
325
325
|
* transports: {
|
|
326
326
|
* [tempo.id]: http(),
|
|
327
327
|
* },
|
|
@@ -341,6 +341,6 @@ export declare namespace watchRewardScheduled {
|
|
|
341
341
|
*/
|
|
342
342
|
export declare function watchRewardRecipientSet<config extends Config>(config: config, parameters: watchRewardRecipientSet.Parameters<config>): import("viem").WatchContractEventReturnType;
|
|
343
343
|
export declare namespace watchRewardRecipientSet {
|
|
344
|
-
type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
344
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.reward.watchRewardRecipientSet.Parameters;
|
|
345
345
|
}
|
|
346
346
|
//# sourceMappingURL=reward.d.ts.map
|