tempo.ts 0.11.1 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -4
- package/README.md +3 -34
- package/dist/server/Handler.d.ts +14 -14
- package/dist/server/Handler.d.ts.map +1 -1
- package/dist/server/Handler.js +16 -17
- package/dist/server/Handler.js.map +1 -1
- package/dist/wagmi/Actions/amm.d.ts +51 -51
- package/dist/wagmi/Actions/amm.d.ts.map +1 -1
- package/dist/wagmi/Actions/amm.js +37 -37
- package/dist/wagmi/Actions/amm.js.map +1 -1
- package/dist/wagmi/Actions/dex.d.ts +129 -129
- package/dist/wagmi/Actions/dex.d.ts.map +1 -1
- package/dist/wagmi/Actions/dex.js +73 -73
- package/dist/wagmi/Actions/dex.js.map +1 -1
- package/dist/wagmi/Actions/faucet.d.ts +9 -9
- package/dist/wagmi/Actions/faucet.d.ts.map +1 -1
- package/dist/wagmi/Actions/faucet.js +7 -7
- package/dist/wagmi/Actions/faucet.js.map +1 -1
- package/dist/wagmi/Actions/fee.d.ts +17 -17
- package/dist/wagmi/Actions/fee.d.ts.map +1 -1
- package/dist/wagmi/Actions/fee.js +10 -10
- package/dist/wagmi/Actions/fee.js.map +1 -1
- package/dist/wagmi/Actions/nonce.d.ts +9 -79
- package/dist/wagmi/Actions/nonce.d.ts.map +1 -1
- package/dist/wagmi/Actions/nonce.js +7 -89
- package/dist/wagmi/Actions/nonce.js.map +1 -1
- package/dist/wagmi/Actions/policy.d.ts +69 -70
- package/dist/wagmi/Actions/policy.d.ts.map +1 -1
- package/dist/wagmi/Actions/policy.js +43 -43
- package/dist/wagmi/Actions/policy.js.map +1 -1
- package/dist/wagmi/Actions/reward.d.ts +51 -51
- package/dist/wagmi/Actions/reward.d.ts.map +1 -1
- package/dist/wagmi/Actions/reward.js +31 -31
- package/dist/wagmi/Actions/reward.js.map +1 -1
- package/dist/wagmi/Actions/token.d.ts +238 -238
- package/dist/wagmi/Actions/token.d.ts.map +1 -1
- package/dist/wagmi/Actions/token.js +136 -136
- package/dist/wagmi/Actions/token.js.map +1 -1
- package/dist/wagmi/Connector.d.ts +2 -1
- package/dist/wagmi/Connector.d.ts.map +1 -1
- package/dist/wagmi/Connector.js +83 -22
- package/dist/wagmi/Connector.js.map +1 -1
- package/dist/wagmi/Hooks/nonce.d.ts +1 -52
- package/dist/wagmi/Hooks/nonce.d.ts.map +1 -1
- package/dist/wagmi/Hooks/nonce.js +1 -70
- package/dist/wagmi/Hooks/nonce.js.map +1 -1
- package/dist/wagmi/Hooks/policy.d.ts +0 -1
- package/dist/wagmi/Hooks/policy.d.ts.map +1 -1
- package/dist/wagmi/Hooks/policy.js.map +1 -1
- package/dist/wagmi/KeyManager.d.ts +6 -3
- package/dist/wagmi/KeyManager.d.ts.map +1 -1
- package/dist/wagmi/KeyManager.js +9 -4
- package/dist/wagmi/KeyManager.js.map +1 -1
- package/package.json +3 -13
- package/src/server/Handler.test.ts +2 -2
- package/src/server/Handler.ts +16 -17
- package/src/wagmi/Actions/amm.ts +63 -63
- package/src/wagmi/Actions/dex.test.ts +1 -1
- package/src/wagmi/Actions/dex.ts +153 -153
- package/src/wagmi/Actions/faucet.ts +11 -11
- package/src/wagmi/Actions/fee.ts +20 -20
- package/src/wagmi/Actions/nonce.test.ts +1 -64
- package/src/wagmi/Actions/nonce.ts +10 -142
- package/src/wagmi/Actions/policy.ts +83 -85
- package/src/wagmi/Actions/reward.ts +64 -61
- package/src/wagmi/Actions/token.ts +287 -283
- package/src/wagmi/Connector.ts +105 -31
- package/src/wagmi/Hooks/dex.test.ts +1 -1
- package/src/wagmi/Hooks/fee.test.ts +0 -6
- package/src/wagmi/Hooks/nonce.test.ts +1 -66
- package/src/wagmi/Hooks/nonce.ts +1 -114
- package/src/wagmi/Hooks/policy.ts +0 -2
- package/src/wagmi/KeyManager.ts +18 -5
- package/dist/chains.d.ts +0 -73
- package/dist/chains.d.ts.map +0 -1
- package/dist/chains.js +0 -51
- package/dist/chains.js.map +0 -1
- package/dist/viem/Abis.d.ts +0 -2649
- package/dist/viem/Abis.d.ts.map +0 -1
- package/dist/viem/Abis.js +0 -1677
- package/dist/viem/Abis.js.map +0 -1
- package/dist/viem/Account.d.ts +0 -244
- package/dist/viem/Account.d.ts.map +0 -1
- package/dist/viem/Account.js +0 -382
- package/dist/viem/Account.js.map +0 -1
- package/dist/viem/Actions/account.d.ts +0 -40
- package/dist/viem/Actions/account.d.ts.map +0 -1
- package/dist/viem/Actions/account.js +0 -86
- package/dist/viem/Actions/account.js.map +0 -1
- package/dist/viem/Actions/amm.d.ts +0 -1991
- package/dist/viem/Actions/amm.d.ts.map +0 -1
- package/dist/viem/Actions/amm.js +0 -814
- package/dist/viem/Actions/amm.js.map +0 -1
- package/dist/viem/Actions/dex.d.ts +0 -3900
- package/dist/viem/Actions/dex.d.ts.map +0 -1
- package/dist/viem/Actions/dex.js +0 -1414
- package/dist/viem/Actions/dex.js.map +0 -1
- package/dist/viem/Actions/faucet.d.ts +0 -69
- package/dist/viem/Actions/faucet.d.ts.map +0 -1
- package/dist/viem/Actions/faucet.js +0 -73
- package/dist/viem/Actions/faucet.js.map +0 -1
- package/dist/viem/Actions/fee.d.ts +0 -360
- package/dist/viem/Actions/fee.d.ts.map +0 -1
- package/dist/viem/Actions/fee.js +0 -237
- package/dist/viem/Actions/fee.js.map +0 -1
- package/dist/viem/Actions/index.d.ts +0 -10
- package/dist/viem/Actions/index.d.ts.map +0 -1
- package/dist/viem/Actions/index.js +0 -10
- package/dist/viem/Actions/index.js.map +0 -1
- package/dist/viem/Actions/nonce.d.ts +0 -257
- package/dist/viem/Actions/nonce.d.ts.map +0 -1
- package/dist/viem/Actions/nonce.js +0 -228
- package/dist/viem/Actions/nonce.js.map +0 -1
- package/dist/viem/Actions/policy.d.ts +0 -1680
- package/dist/viem/Actions/policy.d.ts.map +0 -1
- package/dist/viem/Actions/policy.js +0 -875
- package/dist/viem/Actions/policy.js.map +0 -1
- package/dist/viem/Actions/reward.d.ts +0 -2422
- package/dist/viem/Actions/reward.d.ts.map +0 -1
- package/dist/viem/Actions/reward.js +0 -651
- package/dist/viem/Actions/reward.js.map +0 -1
- package/dist/viem/Actions/token.d.ts +0 -16007
- package/dist/viem/Actions/token.d.ts.map +0 -1
- package/dist/viem/Actions/token.js +0 -2936
- package/dist/viem/Actions/token.js.map +0 -1
- package/dist/viem/Addresses.d.ts +0 -9
- package/dist/viem/Addresses.d.ts.map +0 -1
- package/dist/viem/Addresses.js +0 -9
- package/dist/viem/Addresses.js.map +0 -1
- package/dist/viem/Chain.d.ts +0 -451
- package/dist/viem/Chain.d.ts.map +0 -1
- package/dist/viem/Chain.js +0 -96
- package/dist/viem/Chain.js.map +0 -1
- package/dist/viem/Decorator.d.ts +0 -2783
- package/dist/viem/Decorator.d.ts.map +0 -1
- package/dist/viem/Decorator.js +0 -137
- package/dist/viem/Decorator.js.map +0 -1
- package/dist/viem/Formatters.d.ts +0 -10
- package/dist/viem/Formatters.d.ts.map +0 -1
- package/dist/viem/Formatters.js +0 -104
- package/dist/viem/Formatters.js.map +0 -1
- package/dist/viem/P256.d.ts +0 -2
- package/dist/viem/P256.d.ts.map +0 -1
- package/dist/viem/P256.js +0 -2
- package/dist/viem/P256.js.map +0 -1
- package/dist/viem/Secp256k1.d.ts +0 -2
- package/dist/viem/Secp256k1.d.ts.map +0 -1
- package/dist/viem/Secp256k1.js +0 -2
- package/dist/viem/Secp256k1.js.map +0 -1
- package/dist/viem/Storage.d.ts +0 -24
- package/dist/viem/Storage.d.ts.map +0 -1
- package/dist/viem/Storage.js +0 -68
- package/dist/viem/Storage.js.map +0 -1
- package/dist/viem/TokenIds.d.ts +0 -2
- package/dist/viem/TokenIds.d.ts.map +0 -1
- package/dist/viem/TokenIds.js +0 -2
- package/dist/viem/TokenIds.js.map +0 -1
- package/dist/viem/Transaction.d.ts +0 -76
- package/dist/viem/Transaction.d.ts.map +0 -1
- package/dist/viem/Transaction.js +0 -176
- package/dist/viem/Transaction.js.map +0 -1
- package/dist/viem/Transport.d.ts +0 -33
- package/dist/viem/Transport.d.ts.map +0 -1
- package/dist/viem/Transport.js +0 -138
- package/dist/viem/Transport.js.map +0 -1
- package/dist/viem/WebAuthnP256.d.ts +0 -82
- package/dist/viem/WebAuthnP256.d.ts.map +0 -1
- package/dist/viem/WebAuthnP256.js +0 -97
- package/dist/viem/WebAuthnP256.js.map +0 -1
- package/dist/viem/WebCryptoP256.d.ts +0 -2
- package/dist/viem/WebCryptoP256.d.ts.map +0 -1
- package/dist/viem/WebCryptoP256.js +0 -2
- package/dist/viem/WebCryptoP256.js.map +0 -1
- package/dist/viem/index.d.ts +0 -26
- package/dist/viem/index.d.ts.map +0 -1
- package/dist/viem/index.js +0 -17
- package/dist/viem/index.js.map +0 -1
- package/dist/viem/internal/types.d.ts +0 -20
- package/dist/viem/internal/types.d.ts.map +0 -1
- package/dist/viem/internal/types.js +0 -2
- package/dist/viem/internal/types.js.map +0 -1
- package/dist/viem/internal/utils.d.ts +0 -14
- package/dist/viem/internal/utils.d.ts.map +0 -1
- package/dist/viem/internal/utils.js +0 -33
- package/dist/viem/internal/utils.js.map +0 -1
- package/src/chains.ts +0 -54
- package/src/viem/Abis.ts +0 -1688
- package/src/viem/Account.test.ts +0 -444
- package/src/viem/Account.ts +0 -601
- package/src/viem/Actions/account.test.ts +0 -414
- package/src/viem/Actions/account.ts +0 -106
- package/src/viem/Actions/amm.test.ts +0 -381
- package/src/viem/Actions/amm.ts +0 -1227
- package/src/viem/Actions/dex.test.ts +0 -1549
- package/src/viem/Actions/dex.ts +0 -2150
- package/src/viem/Actions/faucet.ts +0 -121
- package/src/viem/Actions/fee.test.ts +0 -259
- package/src/viem/Actions/fee.ts +0 -372
- package/src/viem/Actions/index.ts +0 -9
- package/src/viem/Actions/nonce.test.ts +0 -206
- package/src/viem/Actions/nonce.ts +0 -347
- package/src/viem/Actions/policy.test.ts +0 -534
- package/src/viem/Actions/policy.ts +0 -1335
- package/src/viem/Actions/reward.test.ts +0 -434
- package/src/viem/Actions/reward.ts +0 -944
- package/src/viem/Actions/token.test.ts +0 -3029
- package/src/viem/Actions/token.ts +0 -4458
- package/src/viem/Addresses.ts +0 -9
- package/src/viem/Chain.bench-d.ts +0 -12
- package/src/viem/Chain.test.ts +0 -168
- package/src/viem/Chain.ts +0 -157
- package/src/viem/Decorator.bench-d.ts +0 -11
- package/src/viem/Decorator.test.ts +0 -39
- package/src/viem/Decorator.ts +0 -3179
- package/src/viem/Formatters.ts +0 -164
- package/src/viem/P256.ts +0 -1
- package/src/viem/Secp256k1.ts +0 -1
- package/src/viem/Storage.ts +0 -110
- package/src/viem/TokenIds.ts +0 -1
- package/src/viem/Transaction.ts +0 -382
- package/src/viem/Transport.ts +0 -191
- package/src/viem/WebAuthnP256.ts +0 -146
- package/src/viem/WebCryptoP256.ts +0 -1
- package/src/viem/e2e.test.ts +0 -1602
- package/src/viem/index.ts +0 -30
- package/src/viem/internal/types.ts +0 -69
- package/src/viem/internal/utils.ts +0 -58
- package/src/wagmi/internal/types.ts +0 -16
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Actions } from 'viem/tempo';
|
|
2
2
|
/**
|
|
3
3
|
* Gets the nonce for an account and nonce key.
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```ts
|
|
7
7
|
* import { createConfig, http } from '@wagmi/core'
|
|
8
|
-
* import { tempo } from '
|
|
8
|
+
* import { tempo } from 'viem/chains'
|
|
9
9
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
10
10
|
*
|
|
11
11
|
* const config = createConfig({
|
|
12
|
-
* chains: [
|
|
12
|
+
* chains: [tempoTestnet],
|
|
13
13
|
* transports: {
|
|
14
14
|
* [tempo.id]: http(),
|
|
15
15
|
* },
|
|
@@ -28,7 +28,7 @@ import * as viem_Actions from '../../viem/Actions/nonce.js';
|
|
|
28
28
|
export function getNonce(config, parameters) {
|
|
29
29
|
const { chainId, ...rest } = parameters;
|
|
30
30
|
const client = config.getClient({ chainId });
|
|
31
|
-
return
|
|
31
|
+
return Actions.nonce.getNonce(client, rest);
|
|
32
32
|
}
|
|
33
33
|
(function (getNonce) {
|
|
34
34
|
function queryKey(parameters) {
|
|
@@ -52,67 +52,17 @@ export function getNonce(config, parameters) {
|
|
|
52
52
|
}
|
|
53
53
|
getNonce.queryOptions = queryOptions;
|
|
54
54
|
})(getNonce || (getNonce = {}));
|
|
55
|
-
/**
|
|
56
|
-
* Gets the number of active nonce keys for an account.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* import { createConfig, http } from '@wagmi/core'
|
|
61
|
-
* import { tempo } from 'tempo.ts/chains'
|
|
62
|
-
* import { Actions } from 'tempo.ts/wagmi'
|
|
63
|
-
*
|
|
64
|
-
* const config = createConfig({
|
|
65
|
-
* chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
|
|
66
|
-
* transports: {
|
|
67
|
-
* [tempo.id]: http(),
|
|
68
|
-
* },
|
|
69
|
-
* })
|
|
70
|
-
*
|
|
71
|
-
* const count = await Actions.nonce.getNonceKeyCount(config, {
|
|
72
|
-
* account: '0x...',
|
|
73
|
-
* })
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @param config - Config.
|
|
77
|
-
* @param parameters - Parameters.
|
|
78
|
-
* @returns The number of active nonce keys.
|
|
79
|
-
*/
|
|
80
|
-
export function getNonceKeyCount(config, parameters) {
|
|
81
|
-
const { chainId, ...rest } = parameters;
|
|
82
|
-
const client = config.getClient({ chainId });
|
|
83
|
-
return viem_Actions.getNonceKeyCount(client, rest);
|
|
84
|
-
}
|
|
85
|
-
(function (getNonceKeyCount) {
|
|
86
|
-
function queryKey(parameters) {
|
|
87
|
-
return ['getNonceKeyCount', parameters];
|
|
88
|
-
}
|
|
89
|
-
getNonceKeyCount.queryKey = queryKey;
|
|
90
|
-
function queryOptions(config, parameters) {
|
|
91
|
-
const { query, ...rest } = parameters;
|
|
92
|
-
return {
|
|
93
|
-
...query,
|
|
94
|
-
queryKey: queryKey(rest),
|
|
95
|
-
async queryFn({ queryKey }) {
|
|
96
|
-
const [, { account, ...parameters }] = queryKey;
|
|
97
|
-
if (!account)
|
|
98
|
-
throw new Error('account is required.');
|
|
99
|
-
return await getNonceKeyCount(config, { account, ...parameters });
|
|
100
|
-
},
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
getNonceKeyCount.queryOptions = queryOptions;
|
|
104
|
-
})(getNonceKeyCount || (getNonceKeyCount = {}));
|
|
105
55
|
/**
|
|
106
56
|
* Watches for nonce incremented events.
|
|
107
57
|
*
|
|
108
58
|
* @example
|
|
109
59
|
* ```ts
|
|
110
60
|
* import { createConfig, http } from '@wagmi/core'
|
|
111
|
-
* import { tempo } from '
|
|
61
|
+
* import { tempo } from 'viem/chains'
|
|
112
62
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
113
63
|
*
|
|
114
64
|
* const config = createConfig({
|
|
115
|
-
* chains: [
|
|
65
|
+
* chains: [tempoTestnet],
|
|
116
66
|
* transports: {
|
|
117
67
|
* [tempo.id]: http(),
|
|
118
68
|
* },
|
|
@@ -132,38 +82,6 @@ export function getNonceKeyCount(config, parameters) {
|
|
|
132
82
|
export function watchNonceIncremented(config, parameters) {
|
|
133
83
|
const { chainId, ...rest } = parameters;
|
|
134
84
|
const client = config.getClient({ chainId });
|
|
135
|
-
return
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Watches for active key count changed events.
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* ```ts
|
|
142
|
-
* import { createConfig, http } from '@wagmi/core'
|
|
143
|
-
* import { tempo } from 'tempo.ts/chains'
|
|
144
|
-
* import { Actions } from 'tempo.ts/wagmi'
|
|
145
|
-
*
|
|
146
|
-
* const config = createConfig({
|
|
147
|
-
* chains: [tempo({ feeToken: '0x20c0000000000000000000000000000000000001' })],
|
|
148
|
-
* transports: {
|
|
149
|
-
* [tempo.id]: http(),
|
|
150
|
-
* },
|
|
151
|
-
* })
|
|
152
|
-
*
|
|
153
|
-
* const unwatch = Actions.nonce.watchActiveKeyCountChanged(config, {
|
|
154
|
-
* onActiveKeyCountChanged: (args, log) => {
|
|
155
|
-
* console.log('Active key count changed:', args)
|
|
156
|
-
* },
|
|
157
|
-
* })
|
|
158
|
-
* ```
|
|
159
|
-
*
|
|
160
|
-
* @param config - Config.
|
|
161
|
-
* @param parameters - Parameters.
|
|
162
|
-
* @returns A function to unsubscribe from the event.
|
|
163
|
-
*/
|
|
164
|
-
export function watchActiveKeyCountChanged(config, parameters) {
|
|
165
|
-
const { chainId, ...rest } = parameters;
|
|
166
|
-
const client = config.getClient({ chainId });
|
|
167
|
-
return viem_Actions.watchActiveKeyCountChanged(client, rest);
|
|
85
|
+
return Actions.nonce.watchNonceIncremented(client, rest);
|
|
168
86
|
}
|
|
169
87
|
//# sourceMappingURL=nonce.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nonce.js","sourceRoot":"","sources":["../../../src/wagmi/Actions/nonce.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nonce.js","sourceRoot":"","sources":["../../../src/wagmi/Actions/nonce.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,UAAuC;IAEvC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,CAAA;IACvC,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IAC5C,OAAO,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAC7C,CAAC;AAED,WAAiB,QAAQ;IAMvB,SAAgB,QAAQ,CACtB,UAAiE;QAEjE,O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ameter, 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
|
-
export type { PolicyType } from '../../viem/Actions/policy.js';
|
|
8
7
|
/**
|
|
9
8
|
* Creates a new policy.
|
|
10
9
|
*
|
|
11
10
|
* @example
|
|
12
11
|
* ```ts
|
|
13
12
|
* import { createConfig, http } from '@wagmi/core'
|
|
14
|
-
* import { tempo } from '
|
|
13
|
+
* import { tempo } from 'viem/chains'
|
|
15
14
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
16
15
|
*
|
|
17
16
|
* const config = createConfig({
|
|
18
|
-
* chains: [
|
|
17
|
+
* chains: [tempoTestnet],
|
|
19
18
|
* transports: {
|
|
20
19
|
* [tempo.id]: http(),
|
|
21
20
|
* },
|
|
@@ -30,11 +29,11 @@ export type { PolicyType } from '../../viem/Actions/policy.js';
|
|
|
30
29
|
* @param parameters - Parameters.
|
|
31
30
|
* @returns Transaction hash.
|
|
32
31
|
*/
|
|
33
|
-
export declare function create<config extends Config>(config: config, parameters: create.Parameters<config>): Promise<
|
|
32
|
+
export declare function create<config extends Config>(config: config, parameters: create.Parameters<config>): Promise<Actions.policy.create.ReturnValue>;
|
|
34
33
|
export declare namespace create {
|
|
35
|
-
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
36
|
-
type ReturnValue =
|
|
37
|
-
type ErrorType =
|
|
34
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.policy.create.Parameters<config['chains'][number], Account>, 'chain' | 'admin'>;
|
|
35
|
+
type ReturnValue = Actions.policy.create.ReturnValue;
|
|
36
|
+
type ErrorType = Actions.policy.create.ErrorType;
|
|
38
37
|
}
|
|
39
38
|
/**
|
|
40
39
|
* Creates a new policy.
|
|
@@ -45,11 +44,11 @@ export declare namespace create {
|
|
|
45
44
|
* @example
|
|
46
45
|
* ```ts
|
|
47
46
|
* import { createConfig, http } from '@wagmi/core'
|
|
48
|
-
* import { tempo } from '
|
|
47
|
+
* import { tempo } from 'viem/chains'
|
|
49
48
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
50
49
|
*
|
|
51
50
|
* const config = createConfig({
|
|
52
|
-
* chains: [
|
|
51
|
+
* chains: [tempoTestnet],
|
|
53
52
|
* transports: {
|
|
54
53
|
* [tempo.id]: http(),
|
|
55
54
|
* },
|
|
@@ -64,11 +63,11 @@ export declare namespace create {
|
|
|
64
63
|
* @param parameters - Parameters.
|
|
65
64
|
* @returns The transaction receipt and event data.
|
|
66
65
|
*/
|
|
67
|
-
export declare function createSync<config extends Config>(config: config, parameters: createSync.Parameters<config>): Promise<
|
|
66
|
+
export declare function createSync<config extends Config>(config: config, parameters: createSync.Parameters<config>): Promise<Actions.policy.createSync.ReturnValue>;
|
|
68
67
|
export declare namespace createSync {
|
|
69
|
-
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
70
|
-
type ReturnValue =
|
|
71
|
-
type ErrorType =
|
|
68
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.policy.createSync.Parameters<config['chains'][number], Account>, 'chain' | 'admin'>;
|
|
69
|
+
type ReturnValue = Actions.policy.createSync.ReturnValue;
|
|
70
|
+
type ErrorType = Actions.policy.createSync.ErrorType;
|
|
72
71
|
}
|
|
73
72
|
/**
|
|
74
73
|
* Sets the admin for a policy.
|
|
@@ -76,11 +75,11 @@ export declare namespace createSync {
|
|
|
76
75
|
* @example
|
|
77
76
|
* ```ts
|
|
78
77
|
* import { createConfig, http } from '@wagmi/core'
|
|
79
|
-
* import { tempo } from '
|
|
78
|
+
* import { tempo } from 'viem/chains'
|
|
80
79
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
81
80
|
*
|
|
82
81
|
* const config = createConfig({
|
|
83
|
-
* chains: [
|
|
82
|
+
* chains: [tempoTestnet],
|
|
84
83
|
* transports: {
|
|
85
84
|
* [tempo.id]: http(),
|
|
86
85
|
* },
|
|
@@ -96,11 +95,11 @@ export declare namespace createSync {
|
|
|
96
95
|
* @param parameters - Parameters.
|
|
97
96
|
* @returns Transaction hash.
|
|
98
97
|
*/
|
|
99
|
-
export declare function setAdmin<config extends Config>(config: config, parameters: setAdmin.Parameters<config>): Promise<
|
|
98
|
+
export declare function setAdmin<config extends Config>(config: config, parameters: setAdmin.Parameters<config>): Promise<Actions.policy.setAdmin.ReturnValue>;
|
|
100
99
|
export declare namespace setAdmin {
|
|
101
|
-
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
102
|
-
type ReturnValue =
|
|
103
|
-
type ErrorType =
|
|
100
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.policy.setAdmin.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
101
|
+
type ReturnValue = Actions.policy.setAdmin.ReturnValue;
|
|
102
|
+
type ErrorType = Actions.policy.setAdmin.ErrorType;
|
|
104
103
|
}
|
|
105
104
|
/**
|
|
106
105
|
* Sets the admin for a policy.
|
|
@@ -111,11 +110,11 @@ export declare namespace setAdmin {
|
|
|
111
110
|
* @example
|
|
112
111
|
* ```ts
|
|
113
112
|
* import { createConfig, http } from '@wagmi/core'
|
|
114
|
-
* import { tempo } from '
|
|
113
|
+
* import { tempo } from 'viem/chains'
|
|
115
114
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
116
115
|
*
|
|
117
116
|
* const config = createConfig({
|
|
118
|
-
* chains: [
|
|
117
|
+
* chains: [tempoTestnet],
|
|
119
118
|
* transports: {
|
|
120
119
|
* [tempo.id]: http(),
|
|
121
120
|
* },
|
|
@@ -131,11 +130,11 @@ export declare namespace setAdmin {
|
|
|
131
130
|
* @param parameters - Parameters.
|
|
132
131
|
* @returns The transaction receipt and event data.
|
|
133
132
|
*/
|
|
134
|
-
export declare function setAdminSync<config extends Config>(config: config, parameters: setAdminSync.Parameters<config>): Promise<
|
|
133
|
+
export declare function setAdminSync<config extends Config>(config: config, parameters: setAdminSync.Parameters<config>): Promise<Actions.policy.setAdminSync.ReturnValue>;
|
|
135
134
|
export declare namespace setAdminSync {
|
|
136
|
-
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
137
|
-
type ReturnValue =
|
|
138
|
-
type ErrorType =
|
|
135
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.policy.setAdminSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
136
|
+
type ReturnValue = Actions.policy.setAdminSync.ReturnValue;
|
|
137
|
+
type ErrorType = Actions.policy.setAdminSync.ErrorType;
|
|
139
138
|
}
|
|
140
139
|
/**
|
|
141
140
|
* Modifies a policy whitelist.
|
|
@@ -143,11 +142,11 @@ export declare namespace setAdminSync {
|
|
|
143
142
|
* @example
|
|
144
143
|
* ```ts
|
|
145
144
|
* import { createConfig, http } from '@wagmi/core'
|
|
146
|
-
* import { tempo } from '
|
|
145
|
+
* import { tempo } from 'viem/chains'
|
|
147
146
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
148
147
|
*
|
|
149
148
|
* const config = createConfig({
|
|
150
|
-
* chains: [
|
|
149
|
+
* chains: [tempoTestnet],
|
|
151
150
|
* transports: {
|
|
152
151
|
* [tempo.id]: http(),
|
|
153
152
|
* },
|
|
@@ -164,11 +163,11 @@ export declare namespace setAdminSync {
|
|
|
164
163
|
* @param parameters - Parameters.
|
|
165
164
|
* @returns Transaction hash.
|
|
166
165
|
*/
|
|
167
|
-
export declare function modifyWhitelist<config extends Config>(config: config, parameters: modifyWhitelist.Parameters<config>): Promise<
|
|
166
|
+
export declare function modifyWhitelist<config extends Config>(config: config, parameters: modifyWhitelist.Parameters<config>): Promise<Actions.policy.modifyWhitelist.ReturnValue>;
|
|
168
167
|
export declare namespace modifyWhitelist {
|
|
169
|
-
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
170
|
-
type ReturnValue =
|
|
171
|
-
type ErrorType =
|
|
168
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.policy.modifyWhitelist.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
169
|
+
type ReturnValue = Actions.policy.modifyWhitelist.ReturnValue;
|
|
170
|
+
type ErrorType = Actions.policy.modifyWhitelist.ErrorType;
|
|
172
171
|
}
|
|
173
172
|
/**
|
|
174
173
|
* Modifies a policy whitelist.
|
|
@@ -179,11 +178,11 @@ export declare namespace modifyWhitelist {
|
|
|
179
178
|
* @example
|
|
180
179
|
* ```ts
|
|
181
180
|
* import { createConfig, http } from '@wagmi/core'
|
|
182
|
-
* import { tempo } from '
|
|
181
|
+
* import { tempo } from 'viem/chains'
|
|
183
182
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
184
183
|
*
|
|
185
184
|
* const config = createConfig({
|
|
186
|
-
* chains: [
|
|
185
|
+
* chains: [tempoTestnet],
|
|
187
186
|
* transports: {
|
|
188
187
|
* [tempo.id]: http(),
|
|
189
188
|
* },
|
|
@@ -200,11 +199,11 @@ export declare namespace modifyWhitelist {
|
|
|
200
199
|
* @param parameters - Parameters.
|
|
201
200
|
* @returns The transaction receipt and event data.
|
|
202
201
|
*/
|
|
203
|
-
export declare function modifyWhitelistSync<config extends Config>(config: config, parameters: modifyWhitelistSync.Parameters<config>): Promise<
|
|
202
|
+
export declare function modifyWhitelistSync<config extends Config>(config: config, parameters: modifyWhitelistSync.Parameters<config>): Promise<Actions.policy.modifyWhitelistSync.ReturnValue>;
|
|
204
203
|
export declare namespace modifyWhitelistSync {
|
|
205
|
-
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
206
|
-
type ReturnValue =
|
|
207
|
-
type ErrorType =
|
|
204
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.policy.modifyWhitelistSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
205
|
+
type ReturnValue = Actions.policy.modifyWhitelistSync.ReturnValue;
|
|
206
|
+
type ErrorType = Actions.policy.modifyWhitelistSync.ErrorType;
|
|
208
207
|
}
|
|
209
208
|
/**
|
|
210
209
|
* Modifies a policy blacklist.
|
|
@@ -212,11 +211,11 @@ export declare namespace modifyWhitelistSync {
|
|
|
212
211
|
* @example
|
|
213
212
|
* ```ts
|
|
214
213
|
* import { createConfig, http } from '@wagmi/core'
|
|
215
|
-
* import { tempo } from '
|
|
214
|
+
* import { tempo } from 'viem/chains'
|
|
216
215
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
217
216
|
*
|
|
218
217
|
* const config = createConfig({
|
|
219
|
-
* chains: [
|
|
218
|
+
* chains: [tempoTestnet],
|
|
220
219
|
* transports: {
|
|
221
220
|
* [tempo.id]: http(),
|
|
222
221
|
* },
|
|
@@ -233,11 +232,11 @@ export declare namespace modifyWhitelistSync {
|
|
|
233
232
|
* @param parameters - Parameters.
|
|
234
233
|
* @returns Transaction hash.
|
|
235
234
|
*/
|
|
236
|
-
export declare function modifyBlacklist<config extends Config>(config: config, parameters: modifyBlacklist.Parameters<config>): Promise<
|
|
235
|
+
export declare function modifyBlacklist<config extends Config>(config: config, parameters: modifyBlacklist.Parameters<config>): Promise<Actions.policy.modifyBlacklist.ReturnValue>;
|
|
237
236
|
export declare namespace modifyBlacklist {
|
|
238
|
-
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
239
|
-
type ReturnValue =
|
|
240
|
-
type ErrorType =
|
|
237
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.policy.modifyBlacklist.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
238
|
+
type ReturnValue = Actions.policy.modifyBlacklist.ReturnValue;
|
|
239
|
+
type ErrorType = Actions.policy.modifyBlacklist.ErrorType;
|
|
241
240
|
}
|
|
242
241
|
/**
|
|
243
242
|
* Modifies a policy blacklist.
|
|
@@ -248,11 +247,11 @@ export declare namespace modifyBlacklist {
|
|
|
248
247
|
* @example
|
|
249
248
|
* ```ts
|
|
250
249
|
* import { createConfig, http } from '@wagmi/core'
|
|
251
|
-
* import { tempo } from '
|
|
250
|
+
* import { tempo } from 'viem/chains'
|
|
252
251
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
253
252
|
*
|
|
254
253
|
* const config = createConfig({
|
|
255
|
-
* chains: [
|
|
254
|
+
* chains: [tempoTestnet],
|
|
256
255
|
* transports: {
|
|
257
256
|
* [tempo.id]: http(),
|
|
258
257
|
* },
|
|
@@ -269,11 +268,11 @@ export declare namespace modifyBlacklist {
|
|
|
269
268
|
* @param parameters - Parameters.
|
|
270
269
|
* @returns The transaction receipt and event data.
|
|
271
270
|
*/
|
|
272
|
-
export declare function modifyBlacklistSync<config extends Config>(config: config, parameters: modifyBlacklistSync.Parameters<config>): Promise<
|
|
271
|
+
export declare function modifyBlacklistSync<config extends Config>(config: config, parameters: modifyBlacklistSync.Parameters<config>): Promise<Actions.policy.modifyBlacklistSync.ReturnValue>;
|
|
273
272
|
export declare namespace modifyBlacklistSync {
|
|
274
|
-
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<
|
|
275
|
-
type ReturnValue =
|
|
276
|
-
type ErrorType =
|
|
273
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionOmit<Actions.policy.modifyBlacklistSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
274
|
+
type ReturnValue = Actions.policy.modifyBlacklistSync.ReturnValue;
|
|
275
|
+
type ErrorType = Actions.policy.modifyBlacklistSync.ErrorType;
|
|
277
276
|
}
|
|
278
277
|
/**
|
|
279
278
|
* Gets policy data.
|
|
@@ -281,11 +280,11 @@ export declare namespace modifyBlacklistSync {
|
|
|
281
280
|
* @example
|
|
282
281
|
* ```ts
|
|
283
282
|
* import { createConfig, http } from '@wagmi/core'
|
|
284
|
-
* import { tempo } from '
|
|
283
|
+
* import { tempo } from 'viem/chains'
|
|
285
284
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
286
285
|
*
|
|
287
286
|
* const config = createConfig({
|
|
288
|
-
* chains: [
|
|
287
|
+
* chains: [tempoTestnet],
|
|
289
288
|
* transports: {
|
|
290
289
|
* [tempo.id]: http(),
|
|
291
290
|
* },
|
|
@@ -302,8 +301,8 @@ export declare namespace modifyBlacklistSync {
|
|
|
302
301
|
*/
|
|
303
302
|
export declare function getData<config extends Config>(config: config, parameters: getData.Parameters<config>): Promise<getData.ReturnValue>;
|
|
304
303
|
export declare namespace getData {
|
|
305
|
-
type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
306
|
-
type ReturnValue =
|
|
304
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.getData.Parameters;
|
|
305
|
+
type ReturnValue = Actions.policy.getData.ReturnValue;
|
|
307
306
|
function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getData", Parameters<config>];
|
|
308
307
|
type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
|
|
309
308
|
function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
|
|
@@ -320,11 +319,11 @@ export declare namespace getData {
|
|
|
320
319
|
* @example
|
|
321
320
|
* ```ts
|
|
322
321
|
* import { createConfig, http } from '@wagmi/core'
|
|
323
|
-
* import { tempo } from '
|
|
322
|
+
* import { tempo } from 'viem/chains'
|
|
324
323
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
325
324
|
*
|
|
326
325
|
* const config = createConfig({
|
|
327
|
-
* chains: [
|
|
326
|
+
* chains: [tempoTestnet],
|
|
328
327
|
* transports: {
|
|
329
328
|
* [tempo.id]: http(),
|
|
330
329
|
* },
|
|
@@ -342,8 +341,8 @@ export declare namespace getData {
|
|
|
342
341
|
*/
|
|
343
342
|
export declare function isAuthorized<config extends Config>(config: config, parameters: isAuthorized.Parameters<config>): Promise<isAuthorized.ReturnValue>;
|
|
344
343
|
export declare namespace isAuthorized {
|
|
345
|
-
type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
346
|
-
type ReturnValue =
|
|
344
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.isAuthorized.Parameters;
|
|
345
|
+
type ReturnValue = Actions.policy.isAuthorized.ReturnValue;
|
|
347
346
|
function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["isAuthorized", Parameters<config>];
|
|
348
347
|
type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
|
|
349
348
|
function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
|
|
@@ -360,11 +359,11 @@ export declare namespace isAuthorized {
|
|
|
360
359
|
* @example
|
|
361
360
|
* ```ts
|
|
362
361
|
* import { createConfig, http } from '@wagmi/core'
|
|
363
|
-
* import { tempo } from '
|
|
362
|
+
* import { tempo } from 'viem/chains'
|
|
364
363
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
365
364
|
*
|
|
366
365
|
* const config = createConfig({
|
|
367
|
-
* chains: [
|
|
366
|
+
* chains: [tempoTestnet],
|
|
368
367
|
* transports: {
|
|
369
368
|
* [tempo.id]: http(),
|
|
370
369
|
* },
|
|
@@ -383,7 +382,7 @@ export declare namespace isAuthorized {
|
|
|
383
382
|
*/
|
|
384
383
|
export declare function watchCreate<config extends Config>(config: config, parameters: watchCreate.Parameters<config>): import("viem").WatchContractEventReturnType;
|
|
385
384
|
export declare namespace watchCreate {
|
|
386
|
-
type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
385
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.watchCreate.Parameters;
|
|
387
386
|
}
|
|
388
387
|
/**
|
|
389
388
|
* Watches for policy admin update events.
|
|
@@ -391,11 +390,11 @@ export declare namespace watchCreate {
|
|
|
391
390
|
* @example
|
|
392
391
|
* ```ts
|
|
393
392
|
* import { createConfig, http } from '@wagmi/core'
|
|
394
|
-
* import { tempo } from '
|
|
393
|
+
* import { tempo } from 'viem/chains'
|
|
395
394
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
396
395
|
*
|
|
397
396
|
* const config = createConfig({
|
|
398
|
-
* chains: [
|
|
397
|
+
* chains: [tempoTestnet],
|
|
399
398
|
* transports: {
|
|
400
399
|
* [tempo.id]: http(),
|
|
401
400
|
* },
|
|
@@ -414,7 +413,7 @@ export declare namespace watchCreate {
|
|
|
414
413
|
*/
|
|
415
414
|
export declare function watchAdminUpdated<config extends Config>(config: config, parameters: watchAdminUpdated.Parameters<config>): import("viem").WatchContractEventReturnType;
|
|
416
415
|
export declare namespace watchAdminUpdated {
|
|
417
|
-
type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
416
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.watchAdminUpdated.Parameters;
|
|
418
417
|
}
|
|
419
418
|
/**
|
|
420
419
|
* Watches for whitelist update events.
|
|
@@ -422,11 +421,11 @@ export declare namespace watchAdminUpdated {
|
|
|
422
421
|
* @example
|
|
423
422
|
* ```ts
|
|
424
423
|
* import { createConfig, http } from '@wagmi/core'
|
|
425
|
-
* import { tempo } from '
|
|
424
|
+
* import { tempo } from 'viem/chains'
|
|
426
425
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
427
426
|
*
|
|
428
427
|
* const config = createConfig({
|
|
429
|
-
* chains: [
|
|
428
|
+
* chains: [tempoTestnet],
|
|
430
429
|
* transports: {
|
|
431
430
|
* [tempo.id]: http(),
|
|
432
431
|
* },
|
|
@@ -445,7 +444,7 @@ export declare namespace watchAdminUpdated {
|
|
|
445
444
|
*/
|
|
446
445
|
export declare function watchWhitelistUpdated<config extends Config>(config: config, parameters: watchWhitelistUpdated.Parameters<config>): import("viem").WatchContractEventReturnType;
|
|
447
446
|
export declare namespace watchWhitelistUpdated {
|
|
448
|
-
type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
447
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.watchWhitelistUpdated.Parameters;
|
|
449
448
|
}
|
|
450
449
|
/**
|
|
451
450
|
* Watches for blacklist update events.
|
|
@@ -453,11 +452,11 @@ export declare namespace watchWhitelistUpdated {
|
|
|
453
452
|
* @example
|
|
454
453
|
* ```ts
|
|
455
454
|
* import { createConfig, http } from '@wagmi/core'
|
|
456
|
-
* import { tempo } from '
|
|
455
|
+
* import { tempo } from 'viem/chains'
|
|
457
456
|
* import { Actions } from 'tempo.ts/wagmi'
|
|
458
457
|
*
|
|
459
458
|
* const config = createConfig({
|
|
460
|
-
* chains: [
|
|
459
|
+
* chains: [tempoTestnet],
|
|
461
460
|
* transports: {
|
|
462
461
|
* [tempo.id]: http(),
|
|
463
462
|
* },
|
|
@@ -476,6 +475,6 @@ export declare namespace watchWhitelistUpdated {
|
|
|
476
475
|
*/
|
|
477
476
|
export declare function watchBlacklistUpdated<config extends Config>(config: config, parameters: watchBlacklistUpdated.Parameters<config>): import("viem").WatchContractEventReturnType;
|
|
478
477
|
export declare namespace watchBlacklistUpdated {
|
|
479
|
-
type Parameters<config extends Config> = ChainIdParameter<config> &
|
|
478
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.policy.watchBlacklistUpdated.Parameters;
|
|
480
479
|
}
|
|
481
480
|
//# sourceMappingURL=policy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../../src/wagmi/Actions/policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,KAAK,MAAM,EAAsB,MAAM,aAAa,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,sB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