@wagmi/core 3.0.2 → 3.2.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/dist/esm/exports/internal.js.map +1 -1
- package/dist/esm/exports/query.js +1 -1
- package/dist/esm/exports/query.js.map +1 -1
- package/dist/esm/exports/tempo.js +9 -0
- package/dist/esm/exports/tempo.js.map +1 -0
- package/dist/esm/tempo/Connectors.js +534 -0
- package/dist/esm/tempo/Connectors.js.map +1 -0
- package/dist/esm/tempo/KeyManager.js +106 -0
- package/dist/esm/tempo/KeyManager.js.map +1 -0
- package/dist/esm/tempo/actions/amm.js +437 -0
- package/dist/esm/tempo/actions/amm.js.map +1 -0
- package/dist/esm/tempo/actions/dex.js +1059 -0
- package/dist/esm/tempo/actions/dex.js.map +1 -0
- package/dist/esm/tempo/actions/faucet.js +64 -0
- package/dist/esm/tempo/actions/faucet.js.map +1 -0
- package/dist/esm/tempo/actions/fee.js +160 -0
- package/dist/esm/tempo/actions/fee.js.map +1 -0
- package/dist/esm/tempo/actions/index.js +11 -0
- package/dist/esm/tempo/actions/index.js.map +1 -0
- package/dist/esm/tempo/actions/nonce.js +91 -0
- package/dist/esm/tempo/actions/nonce.js.map +1 -0
- package/dist/esm/tempo/actions/policy.js +532 -0
- package/dist/esm/tempo/actions/policy.js.map +1 -0
- package/dist/esm/tempo/actions/reward.js +384 -0
- package/dist/esm/tempo/actions/reward.js.map +1 -0
- package/dist/esm/tempo/actions/token.js +1717 -0
- package/dist/esm/tempo/actions/token.js.map +1 -0
- package/dist/esm/tempo/actions/utils.js +2 -0
- package/dist/esm/tempo/actions/utils.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/exports/internal.d.ts +1 -1
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/exports/query.d.ts +1 -1
- package/dist/types/exports/query.d.ts.map +1 -1
- package/dist/types/exports/tempo.d.ts +5 -0
- package/dist/types/exports/tempo.d.ts.map +1 -0
- package/dist/types/tempo/Connectors.d.ts +99 -0
- package/dist/types/tempo/Connectors.d.ts.map +1 -0
- package/dist/types/tempo/KeyManager.d.ts +71 -0
- package/dist/types/tempo/KeyManager.d.ts.map +1 -0
- package/dist/types/tempo/actions/amm.d.ts +387 -0
- package/dist/types/tempo/actions/amm.d.ts.map +1 -0
- package/dist/types/tempo/actions/dex.d.ts +926 -0
- package/dist/types/tempo/actions/dex.d.ts.map +1 -0
- package/dist/types/tempo/actions/faucet.d.ts +70 -0
- package/dist/types/tempo/actions/faucet.d.ts.map +1 -0
- package/dist/types/tempo/actions/fee.d.ts +141 -0
- package/dist/types/tempo/actions/fee.d.ts.map +1 -0
- package/dist/types/tempo/actions/index.d.ts +10 -0
- package/dist/types/tempo/actions/index.d.ts.map +1 -0
- package/dist/types/tempo/actions/nonce.d.ts +79 -0
- package/dist/types/tempo/actions/nonce.d.ts.map +1 -0
- package/dist/types/tempo/actions/policy.d.ts +478 -0
- package/dist/types/tempo/actions/policy.d.ts.map +1 -0
- package/dist/types/tempo/actions/reward.d.ts +340 -0
- package/dist/types/tempo/actions/reward.d.ts.map +1 -0
- package/dist/types/tempo/actions/token.d.ts +1531 -0
- package/dist/types/tempo/actions/token.d.ts.map +1 -0
- package/dist/types/tempo/actions/utils.d.ts +9 -0
- package/dist/types/tempo/actions/utils.d.ts.map +1 -0
- package/dist/types/types/utils.d.ts +16 -0
- package/dist/types/types/utils.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +14 -2
- package/src/exports/internal.ts +3 -0
- package/src/exports/query.ts +4 -1
- package/src/exports/tempo.ts +14 -0
- package/src/tempo/Connectors.ts +762 -0
- package/src/tempo/KeyManager.ts +176 -0
- package/src/tempo/actions/amm.ts +678 -0
- package/src/tempo/actions/dex.ts +1685 -0
- package/src/tempo/actions/faucet.ts +95 -0
- package/src/tempo/actions/fee.ts +259 -0
- package/src/tempo/actions/index.ts +10 -0
- package/src/tempo/actions/nonce.ts +147 -0
- package/src/tempo/actions/policy.ts +827 -0
- package/src/tempo/actions/reward.ts +624 -0
- package/src/tempo/actions/token.ts +2598 -0
- package/src/tempo/actions/utils.ts +26 -0
- package/src/types/utils.ts +19 -0
- package/src/version.ts +1 -1
- package/tempo/package.json +5 -0
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { Actions } from 'viem/tempo';
|
|
2
|
+
import { getConnectorClient } from '../../actions/getConnectorClient.js';
|
|
3
|
+
/**
|
|
4
|
+
* Claims accumulated rewards for a recipient.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
9
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
10
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
11
|
+
*
|
|
12
|
+
* const config = createConfig({
|
|
13
|
+
* chains: [tempoTestnet],
|
|
14
|
+
* transports: {
|
|
15
|
+
* [tempo.id]: http(),
|
|
16
|
+
* },
|
|
17
|
+
* })
|
|
18
|
+
*
|
|
19
|
+
* const hash = await Actions.reward.claim(config, {
|
|
20
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
21
|
+
* })
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @param config - Config.
|
|
25
|
+
* @param parameters - Parameters.
|
|
26
|
+
* @returns The transaction hash.
|
|
27
|
+
*/
|
|
28
|
+
export async function claim(config, parameters) {
|
|
29
|
+
const { account, chainId, connector } = parameters;
|
|
30
|
+
const client = await getConnectorClient(config, {
|
|
31
|
+
account,
|
|
32
|
+
assertChainId: false,
|
|
33
|
+
chainId,
|
|
34
|
+
connector,
|
|
35
|
+
});
|
|
36
|
+
return Actions.reward.claim(client, parameters);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Claims accumulated rewards for a recipient and waits for confirmation.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
44
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
45
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
46
|
+
*
|
|
47
|
+
* const config = createConfig({
|
|
48
|
+
* chains: [tempoTestnet],
|
|
49
|
+
* transports: {
|
|
50
|
+
* [tempo.id]: http(),
|
|
51
|
+
* },
|
|
52
|
+
* })
|
|
53
|
+
*
|
|
54
|
+
* const result = await Actions.reward.claimSync(config, {
|
|
55
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
56
|
+
* })
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param config - Config.
|
|
60
|
+
* @param parameters - Parameters.
|
|
61
|
+
* @returns The transaction receipt.
|
|
62
|
+
*/
|
|
63
|
+
export async function claimSync(config, parameters) {
|
|
64
|
+
const { account, chainId, connector } = parameters;
|
|
65
|
+
const client = await getConnectorClient(config, {
|
|
66
|
+
account,
|
|
67
|
+
assertChainId: false,
|
|
68
|
+
chainId,
|
|
69
|
+
connector,
|
|
70
|
+
});
|
|
71
|
+
return Actions.reward.claimSync(client, parameters);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Gets the global reward per token value for a token.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
79
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
80
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
81
|
+
*
|
|
82
|
+
* const config = createConfig({
|
|
83
|
+
* chains: [tempoModerato],
|
|
84
|
+
* transports: {
|
|
85
|
+
* [tempo.id]: http(),
|
|
86
|
+
* },
|
|
87
|
+
* })
|
|
88
|
+
*
|
|
89
|
+
* const value = await Actions.reward.getGlobalRewardPerToken(config, {
|
|
90
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
91
|
+
* })
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @param config - Config.
|
|
95
|
+
* @param parameters - Parameters.
|
|
96
|
+
* @returns The global reward per token value (scaled by 1e18).
|
|
97
|
+
*/
|
|
98
|
+
export function getGlobalRewardPerToken(config, parameters) {
|
|
99
|
+
const { chainId, ...rest } = parameters;
|
|
100
|
+
const client = config.getClient({ chainId });
|
|
101
|
+
return Actions.reward.getGlobalRewardPerToken(client, rest);
|
|
102
|
+
}
|
|
103
|
+
(function (getGlobalRewardPerToken) {
|
|
104
|
+
function queryKey(parameters) {
|
|
105
|
+
return ['getGlobalRewardPerToken', parameters];
|
|
106
|
+
}
|
|
107
|
+
getGlobalRewardPerToken.queryKey = queryKey;
|
|
108
|
+
function queryOptions(config, parameters) {
|
|
109
|
+
const { query, ...rest } = parameters;
|
|
110
|
+
return {
|
|
111
|
+
...query,
|
|
112
|
+
enabled: Boolean(rest.token && (query?.enabled ?? true)),
|
|
113
|
+
queryKey: queryKey(rest),
|
|
114
|
+
async queryFn({ queryKey }) {
|
|
115
|
+
const [, parameters] = queryKey;
|
|
116
|
+
return await getGlobalRewardPerToken(config, parameters);
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
getGlobalRewardPerToken.queryOptions = queryOptions;
|
|
121
|
+
})(getGlobalRewardPerToken || (getGlobalRewardPerToken = {}));
|
|
122
|
+
/**
|
|
123
|
+
* Gets the reward information for a specific account.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```ts
|
|
127
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
128
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
129
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
130
|
+
*
|
|
131
|
+
* const config = createConfig({
|
|
132
|
+
* chains: [tempoTestnet],
|
|
133
|
+
* transports: {
|
|
134
|
+
* [tempo.id]: http(),
|
|
135
|
+
* },
|
|
136
|
+
* })
|
|
137
|
+
*
|
|
138
|
+
* const info = await Actions.reward.getUserRewardInfo(config, {
|
|
139
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
140
|
+
* account: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
|
141
|
+
* })
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* @param config - Config.
|
|
145
|
+
* @param parameters - Parameters.
|
|
146
|
+
* @returns The user's reward information (recipient, rewardPerToken, rewardBalance).
|
|
147
|
+
*/
|
|
148
|
+
export function getUserRewardInfo(config, parameters) {
|
|
149
|
+
const { chainId, ...rest } = parameters;
|
|
150
|
+
const client = config.getClient({ chainId });
|
|
151
|
+
return Actions.reward.getUserRewardInfo(client, rest);
|
|
152
|
+
}
|
|
153
|
+
(function (getUserRewardInfo) {
|
|
154
|
+
function queryKey(parameters) {
|
|
155
|
+
return ['getUserRewardInfo', parameters];
|
|
156
|
+
}
|
|
157
|
+
getUserRewardInfo.queryKey = queryKey;
|
|
158
|
+
function queryOptions(config, parameters) {
|
|
159
|
+
const { query, ...rest } = parameters;
|
|
160
|
+
return {
|
|
161
|
+
...query,
|
|
162
|
+
enabled: Boolean(rest.token && rest.account && (query?.enabled ?? true)),
|
|
163
|
+
queryKey: queryKey(rest),
|
|
164
|
+
async queryFn({ queryKey }) {
|
|
165
|
+
const [, parameters] = queryKey;
|
|
166
|
+
return await getUserRewardInfo(config, parameters);
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
getUserRewardInfo.queryOptions = queryOptions;
|
|
171
|
+
})(getUserRewardInfo || (getUserRewardInfo = {}));
|
|
172
|
+
/**
|
|
173
|
+
* Sets or changes the reward recipient for a token holder.
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* ```ts
|
|
177
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
178
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
179
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
180
|
+
*
|
|
181
|
+
* const config = createConfig({
|
|
182
|
+
* chains: [tempoTestnet],
|
|
183
|
+
* transports: {
|
|
184
|
+
* [tempo.id]: http(),
|
|
185
|
+
* },
|
|
186
|
+
* })
|
|
187
|
+
*
|
|
188
|
+
* const hash = await Actions.reward.setRecipient(config, {
|
|
189
|
+
* recipient: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
|
190
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
191
|
+
* })
|
|
192
|
+
* ```
|
|
193
|
+
*
|
|
194
|
+
* @param config - Config.
|
|
195
|
+
* @param parameters - Parameters.
|
|
196
|
+
* @returns The transaction hash.
|
|
197
|
+
*/
|
|
198
|
+
export async function setRecipient(config, parameters) {
|
|
199
|
+
const { account, chainId, connector } = parameters;
|
|
200
|
+
const client = await getConnectorClient(config, {
|
|
201
|
+
account,
|
|
202
|
+
assertChainId: false,
|
|
203
|
+
chainId,
|
|
204
|
+
connector,
|
|
205
|
+
});
|
|
206
|
+
return Actions.reward.setRecipient(client, parameters);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Sets or changes the reward recipient for a token holder and waits for confirmation.
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```ts
|
|
213
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
214
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
215
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
216
|
+
*
|
|
217
|
+
* const config = createConfig({
|
|
218
|
+
* chains: [tempoTestnet],
|
|
219
|
+
* transports: {
|
|
220
|
+
* [tempo.id]: http(),
|
|
221
|
+
* },
|
|
222
|
+
* })
|
|
223
|
+
*
|
|
224
|
+
* const result = await Actions.reward.setRecipientSync(config, {
|
|
225
|
+
* recipient: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
|
226
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
227
|
+
* })
|
|
228
|
+
* ```
|
|
229
|
+
*
|
|
230
|
+
* @param config - Config.
|
|
231
|
+
* @param parameters - Parameters.
|
|
232
|
+
* @returns The transaction receipt and event data.
|
|
233
|
+
*/
|
|
234
|
+
export async function setRecipientSync(config, parameters) {
|
|
235
|
+
const { account, chainId, connector } = parameters;
|
|
236
|
+
const client = await getConnectorClient(config, {
|
|
237
|
+
account,
|
|
238
|
+
assertChainId: false,
|
|
239
|
+
chainId,
|
|
240
|
+
connector,
|
|
241
|
+
});
|
|
242
|
+
return Actions.reward.setRecipientSync(client, parameters);
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Distributes tokens to opted-in holders.
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* ```ts
|
|
249
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
250
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
251
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
252
|
+
*
|
|
253
|
+
* const config = createConfig({
|
|
254
|
+
* chains: [tempoTestnet],
|
|
255
|
+
* transports: {
|
|
256
|
+
* [tempo.id]: http(),
|
|
257
|
+
* },
|
|
258
|
+
* })
|
|
259
|
+
*
|
|
260
|
+
* const hash = await Actions.reward.distribute(config, {
|
|
261
|
+
* amount: 100000000000000000000n,
|
|
262
|
+
* seconds: 86400,
|
|
263
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
264
|
+
* })
|
|
265
|
+
* ```
|
|
266
|
+
*
|
|
267
|
+
* @param config - Config.
|
|
268
|
+
* @param parameters - Parameters.
|
|
269
|
+
* @returns The transaction hash.
|
|
270
|
+
*/
|
|
271
|
+
export async function distribute(config, parameters) {
|
|
272
|
+
const { account, chainId, connector } = parameters;
|
|
273
|
+
const client = await getConnectorClient(config, {
|
|
274
|
+
account,
|
|
275
|
+
assertChainId: false,
|
|
276
|
+
chainId,
|
|
277
|
+
connector,
|
|
278
|
+
});
|
|
279
|
+
return Actions.reward.distribute(client, parameters);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Distributes tokens to opted-in holders and waits for confirmation.
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* ```ts
|
|
286
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
287
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
288
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
289
|
+
*
|
|
290
|
+
* const config = createConfig({
|
|
291
|
+
* chains: [tempoTestnet],
|
|
292
|
+
* transports: {
|
|
293
|
+
* [tempo.id]: http(),
|
|
294
|
+
* },
|
|
295
|
+
* })
|
|
296
|
+
*
|
|
297
|
+
* const result = await Actions.reward.distributeSync(config, {
|
|
298
|
+
* amount: 100000000000000000000n,
|
|
299
|
+
* seconds: 86400,
|
|
300
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
301
|
+
* })
|
|
302
|
+
* ```
|
|
303
|
+
*
|
|
304
|
+
* @param config - Config.
|
|
305
|
+
* @param parameters - Parameters.
|
|
306
|
+
* @returns The transaction receipt and event data.
|
|
307
|
+
*/
|
|
308
|
+
export async function distributeSync(config, parameters) {
|
|
309
|
+
const { account, chainId, connector } = parameters;
|
|
310
|
+
const client = await getConnectorClient(config, {
|
|
311
|
+
account,
|
|
312
|
+
assertChainId: false,
|
|
313
|
+
chainId,
|
|
314
|
+
connector,
|
|
315
|
+
});
|
|
316
|
+
return Actions.reward.distributeSync(client, parameters);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Watches for reward distributed events.
|
|
320
|
+
*
|
|
321
|
+
* @example
|
|
322
|
+
* ```ts
|
|
323
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
324
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
325
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
326
|
+
*
|
|
327
|
+
* const config = createConfig({
|
|
328
|
+
* chains: [tempoTestnet],
|
|
329
|
+
* transports: {
|
|
330
|
+
* [tempo.id]: http(),
|
|
331
|
+
* },
|
|
332
|
+
* })
|
|
333
|
+
*
|
|
334
|
+
* const unwatch = Actions.reward.watchRewardDistributed(config, {
|
|
335
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
336
|
+
* onRewardDistributed: (args, log) => {
|
|
337
|
+
* console.log('Reward distributed:', args)
|
|
338
|
+
* },
|
|
339
|
+
* })
|
|
340
|
+
* ```
|
|
341
|
+
*
|
|
342
|
+
* @param config - Config.
|
|
343
|
+
* @param parameters - Parameters.
|
|
344
|
+
* @returns A function to unsubscribe from the event.
|
|
345
|
+
*/
|
|
346
|
+
export function watchRewardDistributed(config, parameters) {
|
|
347
|
+
const { chainId, ...rest } = parameters;
|
|
348
|
+
const client = config.getClient({ chainId });
|
|
349
|
+
return Actions.reward.watchRewardDistributed(client, rest);
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Watches for reward recipient set events.
|
|
353
|
+
*
|
|
354
|
+
* @example
|
|
355
|
+
* ```ts
|
|
356
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
357
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
358
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
359
|
+
*
|
|
360
|
+
* const config = createConfig({
|
|
361
|
+
* chains: [tempoTestnet],
|
|
362
|
+
* transports: {
|
|
363
|
+
* [tempo.id]: http(),
|
|
364
|
+
* },
|
|
365
|
+
* })
|
|
366
|
+
*
|
|
367
|
+
* const unwatch = Actions.reward.watchRewardRecipientSet(config, {
|
|
368
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
369
|
+
* onRewardRecipientSet: (args, log) => {
|
|
370
|
+
* console.log('Reward recipient set:', args)
|
|
371
|
+
* },
|
|
372
|
+
* })
|
|
373
|
+
* ```
|
|
374
|
+
*
|
|
375
|
+
* @param config - Config.
|
|
376
|
+
* @param parameters - Parameters.
|
|
377
|
+
* @returns A function to unsubscribe from the event.
|
|
378
|
+
*/
|
|
379
|
+
export function watchRewardRecipientSet(config, parameters) {
|
|
380
|
+
const { chainId, ...rest } = parameters;
|
|
381
|
+
const client = config.getClient({ chainId });
|
|
382
|
+
return Actions.reward.watchRewardRecipientSet(client, rest);
|
|
383
|
+
}
|
|
384
|
+
//# sourceMappingURL=reward.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reward.js","sourceRoot":"","sources":["../../../../src/tempo/actions/reward.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AASxE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,KAAK,UAAU,KAAK,CACzB,MAAc,EACd,UAAoC;IAEpC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,UAAU,CAAA;IAElD,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE;QAC9C,OAAO;QACP,aAAa,EAAE,KAAK;QACpB,OAAO;QACP,SAAS;KACV,CAAC,CAAA;IAEF,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,UAAmB,CAAC,CAAA;AAC1D,CAAC;AAgBD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,MAAc,EACd,UAAwC;IAExC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,UAAU,CAAA;IAElD,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE;QAC9C,OAAO;QACP,aAAa,EAAE,KAAK;QACpB,OAAO;QACP,SAAS;KACV,CAAC,CAAA;IAEF,OAAO,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,UAAmB,CAAC,CAAA;AAC9D,CAAC;AAgBD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAc,EACd,UAAsD;IAEtD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,CAAA;I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