@wagmi/core 3.0.2 → 3.1.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/Actions/amm.js +469 -0
- package/dist/esm/tempo/Actions/amm.js.map +1 -0
- package/dist/esm/tempo/Actions/dex.js +983 -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 +176 -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/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/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/Actions/amm.d.ts +418 -0
- package/dist/types/tempo/Actions/amm.d.ts.map +1 -0
- package/dist/types/tempo/Actions/dex.d.ts +858 -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 +150 -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/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/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/Actions/amm.ts +719 -0
- package/src/tempo/Actions/dex.ts +1571 -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 +283 -0
- package/src/tempo/Actions/policy.ts +827 -0
- package/src/tempo/Actions/reward.ts +621 -0
- package/src/tempo/Actions/token.ts +2598 -0
- package/src/tempo/Actions/utils.ts +26 -0
- package/src/tempo/Connectors.ts +762 -0
- package/src/tempo/KeyManager.ts +176 -0
- package/src/types/utils.ts +19 -0
- package/src/version.ts +1 -1
- package/tempo/package.json +5 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF,gEAAgE;AAChE,OAAO,EAGL,WAAW,GACZ,MAAM,2BAA2B,CAAA;AAElC,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF,OAAO,EACL,aAAa,EACb,OAAO,GAER,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF,gEAAgE;AAChE,OAAO,EAGL,WAAW,GACZ,MAAM,2BAA2B,CAAA;AAElC,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF,OAAO,EACL,aAAa,EACb,OAAO,GAER,MAAM,qBAAqB,CAAA;AA8B5B,gFAAgF;AAChF,YAAY;AACZ,gFAAgF;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -48,7 +48,7 @@ export { switchChainMutationOptions, } from '../query/switchChain.js';
|
|
|
48
48
|
export {
|
|
49
49
|
/** @deprecated use `switchConnectionMutationOptions` instead */
|
|
50
50
|
switchConnectionMutationOptions as switchAccountMutationOptions, switchConnectionMutationOptions, } from '../query/switchConnection.js';
|
|
51
|
-
export { hashFn, structuralSharing } from '../query/utils.js';
|
|
51
|
+
export { hashFn, structuralSharing, } from '../query/utils.js';
|
|
52
52
|
export { verifyMessageQueryKey, verifyMessageQueryOptions, } from '../query/verifyMessage.js';
|
|
53
53
|
export { verifyTypedDataQueryKey, verifyTypedDataQueryOptions, } from '../query/verifyTypedData.js';
|
|
54
54
|
export { waitForCallsStatusQueryKey, waitForCallsStatusQueryOptions, } from '../query/waitForCallsStatus.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/exports/query.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,iBAAiB;AACjB,gFAAgF;AAEhF,gEAAgE;AAChE,OAAO,EAKL,YAAY,EACZ,gBAAgB,GACjB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAKL,sBAAsB,GACvB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAKL,6BAA6B,GAC9B,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAKL,yBAAyB,GAC1B,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAKL,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,gCAAgC,CAAA;AAEvC,OAAO,EAKL,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAKL,oCAAoC,EACpC,wCAAwC,GACzC,MAAM,0CAA0C,CAAA;AAEjD,OAAO,EAKL,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAKL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAKL,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAKL,gCAAgC,EAChC,oCAAoC,GACrC,MAAM,sCAAsC,CAAA;AAE7C,OAAO,EAKL,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAKL,sBAAsB,EACtB,0BAA0B,GAC3B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AM,8BAA8B,CAAA;AAErC,OAAO,EAKL,0BAA0B,GAC3B,MAAM,yBAAyB,CAAA;AAEhC,OAAO;AAaL,gEAAgE;AAChE,+BAA+B,IAAI,4BAA4B,EAC/D,+BAA+B,GAChC,MAAM,8BAA8B,CAAA;AAErC,OAAO,EACL,MAAM,EACN,iBAAiB,GAClB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAKL,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAKL,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAKL,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,gCAAgC,CAAA;AAEvC,OAAO,EAKL,iCAAiC,EACjC,qCAAqC,GACtC,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EAKL,yBAAyB,GAC1B,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAKL,4BAA4B,GAC7B,MAAM,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// Tempo
|
|
3
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
/** biome-ignore-all lint/performance/noReExportAll: entrypoint */
|
|
5
|
+
// biome-ignore lint/performance/noBarrelFile: entrypoint module
|
|
6
|
+
export * as Actions from '../tempo/Actions/index.js';
|
|
7
|
+
export { dangerous_secp256k1, webAuthn, } from '../tempo/Connectors.js';
|
|
8
|
+
export * as KeyManager from '../tempo/KeyManager.js';
|
|
9
|
+
//# sourceMappingURL=tempo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tempo.js","sourceRoot":"","sources":["../../../src/exports/tempo.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,QAAQ;AACR,gFAAgF;AAEhF,kEAAkE;AAClE,gEAAgE;AAChE,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAEL,mBAAmB,EAEnB,QAAQ,GACT,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
import { Actions } from 'viem/tempo';
|
|
2
|
+
import { getConnectorClient } from '../../actions/getConnectorClient.js';
|
|
3
|
+
import { filterQueryOptions } from '../../query/utils.js';
|
|
4
|
+
/**
|
|
5
|
+
* Gets the reserves for a liquidity pool.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
10
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
11
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
12
|
+
*
|
|
13
|
+
* const config = createConfig({
|
|
14
|
+
* chains: [tempoTestnet],
|
|
15
|
+
* transports: {
|
|
16
|
+
* [tempo.id]: http(),
|
|
17
|
+
* },
|
|
18
|
+
* })
|
|
19
|
+
*
|
|
20
|
+
* const pool = await Actions.amm.getPool(config, {
|
|
21
|
+
* userToken: '0x...',
|
|
22
|
+
* validatorToken: '0x...',
|
|
23
|
+
* })
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @param config - Config.
|
|
27
|
+
* @param parameters - Parameters.
|
|
28
|
+
* @returns The pool reserves.
|
|
29
|
+
*/
|
|
30
|
+
export function getPool(config, parameters) {
|
|
31
|
+
const { chainId, ...rest } = parameters;
|
|
32
|
+
const client = config.getClient({ chainId });
|
|
33
|
+
return Actions.amm.getPool(client, rest);
|
|
34
|
+
}
|
|
35
|
+
(function (getPool) {
|
|
36
|
+
function queryKey(parameters) {
|
|
37
|
+
return ['getPool', filterQueryOptions(parameters)];
|
|
38
|
+
}
|
|
39
|
+
getPool.queryKey = queryKey;
|
|
40
|
+
function queryOptions(config, parameters) {
|
|
41
|
+
const { query, ...rest } = parameters;
|
|
42
|
+
return {
|
|
43
|
+
...query,
|
|
44
|
+
enabled: Boolean(rest.userToken && rest.validatorToken && (query?.enabled ?? true)),
|
|
45
|
+
queryKey: queryKey(rest),
|
|
46
|
+
async queryFn({ queryKey }) {
|
|
47
|
+
const [, parameters] = queryKey;
|
|
48
|
+
return await getPool(config, parameters);
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
getPool.queryOptions = queryOptions;
|
|
53
|
+
})(getPool || (getPool = {}));
|
|
54
|
+
/**
|
|
55
|
+
* Gets the LP token balance for an account in a specific pool.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
60
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
61
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
62
|
+
*
|
|
63
|
+
* const config = createConfig({
|
|
64
|
+
* chains: [tempoTestnet],
|
|
65
|
+
* transports: {
|
|
66
|
+
* [tempo.id]: http(),
|
|
67
|
+
* },
|
|
68
|
+
* })
|
|
69
|
+
*
|
|
70
|
+
* const poolId = await Actions.amm.getPoolId(config, {
|
|
71
|
+
* userToken: '0x...',
|
|
72
|
+
* validatorToken: '0x...',
|
|
73
|
+
* })
|
|
74
|
+
*
|
|
75
|
+
* const balance = await Actions.amm.getLiquidityBalance(config, {
|
|
76
|
+
* poolId,
|
|
77
|
+
* address: '0x...',
|
|
78
|
+
* })
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* @param config - Config.
|
|
82
|
+
* @param parameters - Parameters.
|
|
83
|
+
* @returns The LP token balance.
|
|
84
|
+
*/
|
|
85
|
+
export function getLiquidityBalance(config, parameters) {
|
|
86
|
+
const { chainId, ...rest } = parameters;
|
|
87
|
+
const client = config.getClient({ chainId });
|
|
88
|
+
return Actions.amm.getLiquidityBalance(client, rest);
|
|
89
|
+
}
|
|
90
|
+
(function (getLiquidityBalance) {
|
|
91
|
+
function queryKey(parameters) {
|
|
92
|
+
return ['getLiquidityBalance', filterQueryOptions(parameters)];
|
|
93
|
+
}
|
|
94
|
+
getLiquidityBalance.queryKey = queryKey;
|
|
95
|
+
function queryOptions(config, parameters) {
|
|
96
|
+
const { query, ...rest } = parameters;
|
|
97
|
+
return {
|
|
98
|
+
...query,
|
|
99
|
+
enabled: Boolean(rest.address &&
|
|
100
|
+
(rest.poolId ||
|
|
101
|
+
(rest.userToken !== undefined &&
|
|
102
|
+
rest.validatorToken !== undefined)) &&
|
|
103
|
+
(query?.enabled ?? true)),
|
|
104
|
+
queryKey: queryKey(rest),
|
|
105
|
+
async queryFn({ queryKey }) {
|
|
106
|
+
const [, parameters] = queryKey;
|
|
107
|
+
return await getLiquidityBalance(config, parameters);
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
getLiquidityBalance.queryOptions = queryOptions;
|
|
112
|
+
})(getLiquidityBalance || (getLiquidityBalance = {}));
|
|
113
|
+
/**
|
|
114
|
+
* Performs a rebalance swap from validator token to user token.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
119
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
120
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
121
|
+
*
|
|
122
|
+
* const config = createConfig({
|
|
123
|
+
* chains: [tempoTestnet],
|
|
124
|
+
* transports: {
|
|
125
|
+
* [tempo.id]: http(),
|
|
126
|
+
* },
|
|
127
|
+
* })
|
|
128
|
+
*
|
|
129
|
+
* const hash = await Actions.amm.rebalanceSwap(config, {
|
|
130
|
+
* userToken: '0x...',
|
|
131
|
+
* validatorToken: '0x...',
|
|
132
|
+
* amountOut: 100n,
|
|
133
|
+
* to: '0x...',
|
|
134
|
+
* })
|
|
135
|
+
* ```
|
|
136
|
+
*
|
|
137
|
+
* @param config - Config.
|
|
138
|
+
* @param parameters - Parameters.
|
|
139
|
+
* @returns The transaction hash.
|
|
140
|
+
*/
|
|
141
|
+
export async function rebalanceSwap(config, parameters) {
|
|
142
|
+
const { account, chainId, connector } = parameters;
|
|
143
|
+
const client = await getConnectorClient(config, {
|
|
144
|
+
account,
|
|
145
|
+
assertChainId: false,
|
|
146
|
+
chainId,
|
|
147
|
+
connector,
|
|
148
|
+
});
|
|
149
|
+
return Actions.amm.rebalanceSwap(client, parameters);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Performs a rebalance swap from validator token to user token.
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```ts
|
|
156
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
157
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
158
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
159
|
+
*
|
|
160
|
+
* const config = createConfig({
|
|
161
|
+
* chains: [tempoTestnet],
|
|
162
|
+
* transports: {
|
|
163
|
+
* [tempo.id]: http(),
|
|
164
|
+
* },
|
|
165
|
+
* })
|
|
166
|
+
*
|
|
167
|
+
* const result = await Actions.amm.rebalanceSwapSync(config, {
|
|
168
|
+
* userToken: '0x...',
|
|
169
|
+
* validatorToken: '0x...',
|
|
170
|
+
* amountOut: 100n,
|
|
171
|
+
* to: '0x...',
|
|
172
|
+
* })
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
175
|
+
* @param config - Config.
|
|
176
|
+
* @param parameters - Parameters.
|
|
177
|
+
* @returns The transaction receipt and event data.
|
|
178
|
+
*/
|
|
179
|
+
export async function rebalanceSwapSync(config, parameters) {
|
|
180
|
+
const { account, chainId, connector } = parameters;
|
|
181
|
+
const client = await getConnectorClient(config, {
|
|
182
|
+
account,
|
|
183
|
+
assertChainId: false,
|
|
184
|
+
chainId,
|
|
185
|
+
connector,
|
|
186
|
+
});
|
|
187
|
+
return Actions.amm.rebalanceSwapSync(client, parameters);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Adds liquidity to a pool.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ```ts
|
|
194
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
195
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
196
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
197
|
+
*
|
|
198
|
+
* const config = createConfig({
|
|
199
|
+
* chains: [tempoTestnet],
|
|
200
|
+
* transports: {
|
|
201
|
+
* [tempo.id]: http(),
|
|
202
|
+
* },
|
|
203
|
+
* })
|
|
204
|
+
*
|
|
205
|
+
* const hash = await Actions.amm.mint(config, {
|
|
206
|
+
* userTokenAddress: '0x20c0...beef',
|
|
207
|
+
* validatorTokenAddress: '0x20c0...babe',
|
|
208
|
+
* validatorTokenAmount: 100n,
|
|
209
|
+
* to: '0xfeed...fede',
|
|
210
|
+
* })
|
|
211
|
+
* ```
|
|
212
|
+
*
|
|
213
|
+
* @param config - Config.
|
|
214
|
+
* @param parameters - Parameters.
|
|
215
|
+
* @returns The transaction hash.
|
|
216
|
+
*/
|
|
217
|
+
export async function mint(config, parameters) {
|
|
218
|
+
const { account, chainId, connector } = parameters;
|
|
219
|
+
const client = await getConnectorClient(config, {
|
|
220
|
+
account,
|
|
221
|
+
assertChainId: false,
|
|
222
|
+
chainId,
|
|
223
|
+
connector,
|
|
224
|
+
});
|
|
225
|
+
return Actions.amm.mint(client, parameters);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Adds liquidity to a pool.
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* ```ts
|
|
232
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
233
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
234
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
235
|
+
*
|
|
236
|
+
* const config = createConfig({
|
|
237
|
+
* chains: [tempoTestnet],
|
|
238
|
+
* transports: {
|
|
239
|
+
* [tempo.id]: http(),
|
|
240
|
+
* },
|
|
241
|
+
* })
|
|
242
|
+
*
|
|
243
|
+
* const result = await Actions.amm.mintSync(config, {
|
|
244
|
+
* userTokenAddress: '0x20c0...beef',
|
|
245
|
+
* validatorTokenAddress: '0x20c0...babe',
|
|
246
|
+
* validatorTokenAmount: 100n,
|
|
247
|
+
* to: '0xfeed...fede',
|
|
248
|
+
* })
|
|
249
|
+
* ```
|
|
250
|
+
*
|
|
251
|
+
* @param config - Config.
|
|
252
|
+
* @param parameters - Parameters.
|
|
253
|
+
* @returns The transaction receipt and event data.
|
|
254
|
+
*/
|
|
255
|
+
export async function mintSync(config, parameters) {
|
|
256
|
+
const { account, chainId, connector } = parameters;
|
|
257
|
+
const client = await getConnectorClient(config, {
|
|
258
|
+
account,
|
|
259
|
+
assertChainId: false,
|
|
260
|
+
chainId,
|
|
261
|
+
connector,
|
|
262
|
+
});
|
|
263
|
+
return Actions.amm.mintSync(client, parameters);
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Removes liquidity from a pool.
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* ```ts
|
|
270
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
271
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
272
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
273
|
+
*
|
|
274
|
+
* const config = createConfig({
|
|
275
|
+
* chains: [tempoTestnet],
|
|
276
|
+
* transports: {
|
|
277
|
+
* [tempo.id]: http(),
|
|
278
|
+
* },
|
|
279
|
+
* })
|
|
280
|
+
*
|
|
281
|
+
* const hash = await Actions.amm.burn(config, {
|
|
282
|
+
* userToken: '0x20c0...beef',
|
|
283
|
+
* validatorToken: '0x20c0...babe',
|
|
284
|
+
* liquidity: 50n,
|
|
285
|
+
* to: '0xfeed...fede',
|
|
286
|
+
* })
|
|
287
|
+
* ```
|
|
288
|
+
*
|
|
289
|
+
* @param config - Config.
|
|
290
|
+
* @param parameters - Parameters.
|
|
291
|
+
* @returns The transaction hash.
|
|
292
|
+
*/
|
|
293
|
+
export async function burn(config, parameters) {
|
|
294
|
+
const { account, chainId, connector } = parameters;
|
|
295
|
+
const client = await getConnectorClient(config, {
|
|
296
|
+
account,
|
|
297
|
+
assertChainId: false,
|
|
298
|
+
chainId,
|
|
299
|
+
connector,
|
|
300
|
+
});
|
|
301
|
+
return Actions.amm.burn(client, parameters);
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Removes liquidity from a pool.
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* ```ts
|
|
308
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
309
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
310
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
311
|
+
*
|
|
312
|
+
* const config = createConfig({
|
|
313
|
+
* chains: [tempoTestnet],
|
|
314
|
+
* transports: {
|
|
315
|
+
* [tempo.id]: http(),
|
|
316
|
+
* },
|
|
317
|
+
* })
|
|
318
|
+
*
|
|
319
|
+
* const result = await Actions.amm.burnSync(config, {
|
|
320
|
+
* userToken: '0x20c0...beef',
|
|
321
|
+
* validatorToken: '0x20c0...babe',
|
|
322
|
+
* liquidity: 50n,
|
|
323
|
+
* to: '0xfeed...fede',
|
|
324
|
+
* })
|
|
325
|
+
* ```
|
|
326
|
+
*
|
|
327
|
+
* @param config - Config.
|
|
328
|
+
* @param parameters - Parameters.
|
|
329
|
+
* @returns The transaction receipt and event data.
|
|
330
|
+
*/
|
|
331
|
+
export async function burnSync(config, parameters) {
|
|
332
|
+
const { account, chainId, connector } = parameters;
|
|
333
|
+
const client = await getConnectorClient(config, {
|
|
334
|
+
account,
|
|
335
|
+
assertChainId: false,
|
|
336
|
+
chainId,
|
|
337
|
+
connector,
|
|
338
|
+
});
|
|
339
|
+
return Actions.amm.burnSync(client, parameters);
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Watches for rebalance swap events.
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* ```ts
|
|
346
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
347
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
348
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
349
|
+
*
|
|
350
|
+
* const config = createConfig({
|
|
351
|
+
* chains: [tempoTestnet],
|
|
352
|
+
* transports: {
|
|
353
|
+
* [tempo.id]: http(),
|
|
354
|
+
* },
|
|
355
|
+
* })
|
|
356
|
+
*
|
|
357
|
+
* const unwatch = Actions.amm.watchRebalanceSwap(config, {
|
|
358
|
+
* onRebalanceSwap: (args, log) => {
|
|
359
|
+
* console.log('Rebalance swap:', args)
|
|
360
|
+
* },
|
|
361
|
+
* })
|
|
362
|
+
* ```
|
|
363
|
+
*
|
|
364
|
+
* @param config - Config.
|
|
365
|
+
* @param parameters - Parameters.
|
|
366
|
+
* @returns A function to unsubscribe from the event.
|
|
367
|
+
*/
|
|
368
|
+
export function watchRebalanceSwap(config, parameters) {
|
|
369
|
+
const { chainId, ...rest } = parameters;
|
|
370
|
+
const client = config.getClient({ chainId });
|
|
371
|
+
return Actions.amm.watchRebalanceSwap(client, rest);
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Watches for fee swap events.
|
|
375
|
+
*
|
|
376
|
+
* @example
|
|
377
|
+
* ```ts
|
|
378
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
379
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
380
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
381
|
+
*
|
|
382
|
+
* const config = createConfig({
|
|
383
|
+
* chains: [tempoTestnet],
|
|
384
|
+
* transports: {
|
|
385
|
+
* [tempo.id]: http(),
|
|
386
|
+
* },
|
|
387
|
+
* })
|
|
388
|
+
*
|
|
389
|
+
* const unwatch = Actions.amm.watchFeeSwap(config, {
|
|
390
|
+
* onFeeSwap: (args, log) => {
|
|
391
|
+
* console.log('Fee swap:', args)
|
|
392
|
+
* },
|
|
393
|
+
* })
|
|
394
|
+
* ```
|
|
395
|
+
*
|
|
396
|
+
* @param config - Config.
|
|
397
|
+
* @param parameters - Parameters.
|
|
398
|
+
* @returns A function to unsubscribe from the event.
|
|
399
|
+
*/
|
|
400
|
+
export function watchFeeSwap(config, parameters) {
|
|
401
|
+
const { chainId, ...rest } = parameters;
|
|
402
|
+
const client = config.getClient({ chainId });
|
|
403
|
+
return Actions.amm.watchFeeSwap(client, rest);
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Watches for liquidity mint events.
|
|
407
|
+
*
|
|
408
|
+
* @example
|
|
409
|
+
* ```ts
|
|
410
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
411
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
412
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
413
|
+
*
|
|
414
|
+
* const config = createConfig({
|
|
415
|
+
* chains: [tempoTestnet],
|
|
416
|
+
* transports: {
|
|
417
|
+
* [tempo.id]: http(),
|
|
418
|
+
* },
|
|
419
|
+
* })
|
|
420
|
+
*
|
|
421
|
+
* const unwatch = Actions.amm.watchMint(config, {
|
|
422
|
+
* onMint: (args, log) => {
|
|
423
|
+
* console.log('Liquidity added:', args)
|
|
424
|
+
* },
|
|
425
|
+
* })
|
|
426
|
+
* ```
|
|
427
|
+
*
|
|
428
|
+
* @param config - Config.
|
|
429
|
+
* @param parameters - Parameters.
|
|
430
|
+
* @returns A function to unsubscribe from the event.
|
|
431
|
+
*/
|
|
432
|
+
export function watchMint(config, parameters) {
|
|
433
|
+
const { chainId, ...rest } = parameters;
|
|
434
|
+
const client = config.getClient({ chainId });
|
|
435
|
+
return Actions.amm.watchMint(client, rest);
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Watches for liquidity burn events.
|
|
439
|
+
*
|
|
440
|
+
* @example
|
|
441
|
+
* ```ts
|
|
442
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
443
|
+
* import { tempo } from '@wagmi/core/chains'
|
|
444
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
445
|
+
*
|
|
446
|
+
* const config = createConfig({
|
|
447
|
+
* chains: [tempoTestnet],
|
|
448
|
+
* transports: {
|
|
449
|
+
* [tempo.id]: http(),
|
|
450
|
+
* },
|
|
451
|
+
* })
|
|
452
|
+
*
|
|
453
|
+
* const unwatch = Actions.amm.watchBurn(config, {
|
|
454
|
+
* onBurn: (args, log) => {
|
|
455
|
+
* console.log('Liquidity removed:', args)
|
|
456
|
+
* },
|
|
457
|
+
* })
|
|
458
|
+
* ```
|
|
459
|
+
*
|
|
460
|
+
* @param config - Config.
|
|
461
|
+
* @param parameters - Parameters.
|
|
462
|
+
* @returns A function to unsubscribe from the event.
|
|
463
|
+
*/
|
|
464
|
+
export function watchBurn(config, parameters) {
|
|
465
|
+
const { chainId, ...rest } = parameters;
|
|
466
|
+
const client = config.getClient({ chainId });
|
|
467
|
+
return Actions.amm.watchBurn(client, rest);
|
|
468
|
+
}
|
|
469
|
+
//# sourceMappingURL=amm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amm.js","sourceRoot":"","sources":["../../../../src/tempo/Actions/amm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAExE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAQzD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,OAAO,CACrB,MAAc,EACd,UAAsC;IAEtC,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,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAC1C,CAAC;AAED,WAAiB,OAAO;IAQtB,SAAgB,QAAQ,CACtB,UAA8B;QAE9B,OAAO,CAAC,SAAS,EAAE,kBAAkB,CAAC,U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