@wagmi/core 3.4.3 → 3.4.4
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/tempo/actions/index.js +1 -0
- package/dist/esm/tempo/actions/index.js.map +1 -1
- package/dist/esm/tempo/actions/zone.js +894 -0
- package/dist/esm/tempo/actions/zone.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/errors/config.d.ts +1 -1
- package/dist/types/errors/config.d.ts.map +1 -1
- package/dist/types/query/verifyMessage.d.ts +1 -0
- package/dist/types/query/verifyMessage.d.ts.map +1 -1
- package/dist/types/tempo/actions/index.d.ts +1 -0
- package/dist/types/tempo/actions/index.d.ts.map +1 -1
- package/dist/types/tempo/actions/zone.d.ts +536 -0
- package/dist/types/tempo/actions/zone.d.ts.map +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/errors/config.ts +1 -1
- package/src/tempo/actions/index.ts +1 -0
- package/src/tempo/actions/zone.ts +1419 -0
- package/src/version.ts +1 -1
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '3.4.
|
|
1
|
+
export const version = '3.4.4';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -39,7 +39,7 @@ export declare class ConnectorAccountNotFoundError extends BaseError {
|
|
|
39
39
|
connector: Connector;
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
export type ConnectorChainMismatchErrorType =
|
|
42
|
+
export type ConnectorChainMismatchErrorType = ConnectorChainMismatchError & {
|
|
43
43
|
name: 'ConnectorChainMismatchError';
|
|
44
44
|
};
|
|
45
45
|
export declare class ConnectorChainMismatchError extends BaseError {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/errors/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAA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,IAAI,EAAE,uCAAuC,CAAA;CAC9C,CAAA;AACH,qBAAa,qCAAsC,SAAQ,SAAS;IACzD,IAAI,SAA0C;gBAC3C,EAAE,SAAS,EAAE,EAAE;QAAE,SAAS,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;CAS3D"}
|
|
@@ -20,6 +20,7 @@ export declare function verifyMessageQueryKey<config extends Config>(options?: C
|
|
|
20
20
|
erc6492VerifierAddress?: `0x${string}` | undefined;
|
|
21
21
|
multicallAddress?: `0x${string}` | undefined;
|
|
22
22
|
universalSignatureVerifierAddress?: `0x${string}` | undefined;
|
|
23
|
+
mode?: "auto" | "eoa" | (string & {}) | undefined | undefined;
|
|
23
24
|
scopeKey?: string | undefined | undefined;
|
|
24
25
|
}];
|
|
25
26
|
export type VerifyMessageQueryKey<config extends Config> = ReturnType<typeof verifyMessageQueryKey<config>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyMessage.d.ts","sourceRoot":"","sources":["../../../src/query/verifyMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAE7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAG9D,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS,MAAM,EACrB,UAAU,GAAG,iBAAiB,IAC5B,OAAO,CAAC,YAAY,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,GAAG,iBAAiB,CAAC,GAC5E,cAAc,CACZ,wBAAwB,EACxB,sBAAsB,EAC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,MAAM,SAAS,MAAM,EACrB,UAAU,GAAG,iBAAiB,EAE9B,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,oBAAoB,CAAC,MAAM,EAAE,UAAU,CAAM,GACrD,yBAAyB,CAAC,MAAM,EAAE,UAAU,CAAC,CAwB/C;AAED,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,CAAA;AAE9D,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,CAAA;AAExD,wBAAgB,qBAAqB,CAAC,MAAM,SAAS,MAAM,EACzD,OAAO,GAAE,OAAO,CACd,YAAY,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,GAAG,iBAAiB,CAC7D;;;;;;;;;;;;;;;GAGP;AAED,MAAM,MAAM,qBAAqB,CAAC,MAAM,SAAS,MAAM,IAAI,UAAU,CACnE,OAAO,qBAAqB,CAAC,MAAM,CAAC,CACrC,CAAA;AAED,MAAM,MAAM,yBAAyB,CACnC,MAAM,SAAS,MAAM,EACrB,UAAU,GAAG,iBAAiB,IAC5B,YAAY,CACd,wBAAwB,EACxB,sBAAsB,EACtB,UAAU,EACV,qBAAqB,CAAC,MAAM,CAAC,CAC9B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tempo/actions/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAElE,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tempo/actions/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAElE,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import { type Account, type Address } from 'viem';
|
|
2
|
+
import { Actions } from 'viem/tempo';
|
|
3
|
+
import type { Config } from '../../createConfig.js';
|
|
4
|
+
import type { ChainIdParameter, ConnectorParameter } from '../../types/properties.js';
|
|
5
|
+
import type { PartialBy, UnionLooseOmit } from '../../types/utils.js';
|
|
6
|
+
import type { QueryOptions, QueryParameter } from './utils.js';
|
|
7
|
+
/**
|
|
8
|
+
* Gets information about the currently stored zone authorization token.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { createConfig } from '@wagmi/core'
|
|
13
|
+
* import { Actions, dangerous_secp256k1 } from '@wagmi/core/tempo'
|
|
14
|
+
* import { Account } from 'viem/tempo'
|
|
15
|
+
* import { http as zoneHttp, zone } from 'viem/tempo/zones'
|
|
16
|
+
*
|
|
17
|
+
* const zoneChain = zone(7)
|
|
18
|
+
* const account = Account.fromSecp256k1('0x...')
|
|
19
|
+
* const config = createConfig({
|
|
20
|
+
* chains: [zoneChain],
|
|
21
|
+
* connectors: [dangerous_secp256k1({ account })],
|
|
22
|
+
* transports: {
|
|
23
|
+
* [zoneChain.id]: zoneHttp(),
|
|
24
|
+
* },
|
|
25
|
+
* })
|
|
26
|
+
*
|
|
27
|
+
* await Actions.zone.signAuthorizationToken(config, {
|
|
28
|
+
* chainId: zoneChain.id,
|
|
29
|
+
* })
|
|
30
|
+
*
|
|
31
|
+
* const info = await Actions.zone.getAuthorizationTokenInfo(config, {
|
|
32
|
+
* chainId: zoneChain.id,
|
|
33
|
+
* })
|
|
34
|
+
*
|
|
35
|
+
* console.log(info.expiresAt)
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @param config - Config.
|
|
39
|
+
* @param parameters - Parameters.
|
|
40
|
+
* @returns The authorization token info.
|
|
41
|
+
*/
|
|
42
|
+
export declare function getAuthorizationTokenInfo<config extends Config>(config: config, parameters: getAuthorizationTokenInfo.Parameters<config>): Promise<getAuthorizationTokenInfo.ReturnValue>;
|
|
43
|
+
export declare namespace getAuthorizationTokenInfo {
|
|
44
|
+
type Parameters<config extends Config> = ChainIdParameter<config>;
|
|
45
|
+
type ReturnValue = Actions.zone.getAuthorizationTokenInfo.ReturnType;
|
|
46
|
+
type ErrorType = Actions.zone.getAuthorizationTokenInfo.ErrorType;
|
|
47
|
+
function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getAuthorizationTokenInfo", Parameters<config>];
|
|
48
|
+
type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
|
|
49
|
+
function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
|
|
50
|
+
namespace queryOptions {
|
|
51
|
+
type Parameters<config extends Config, selectData = getAuthorizationTokenInfo.ReturnValue> = getAuthorizationTokenInfo.Parameters<config> & QueryParameter<getAuthorizationTokenInfo.ReturnValue, getAuthorizationTokenInfo.ErrorType, selectData, getAuthorizationTokenInfo.QueryKey<config>>;
|
|
52
|
+
type ReturnValue<config extends Config, selectData = getAuthorizationTokenInfo.ReturnValue> = QueryOptions<getAuthorizationTokenInfo.ReturnValue, getAuthorizationTokenInfo.ErrorType, selectData, getAuthorizationTokenInfo.QueryKey<config>>;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Gets deposit processing status for a Tempo block number.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* import { createConfig } from '@wagmi/core'
|
|
61
|
+
* import { Actions, dangerous_secp256k1 } from '@wagmi/core/tempo'
|
|
62
|
+
* import { Account } from 'viem/tempo'
|
|
63
|
+
* import { http as zoneHttp, zone } from 'viem/tempo/zones'
|
|
64
|
+
*
|
|
65
|
+
* const zoneChain = zone(7)
|
|
66
|
+
* const account = Account.fromSecp256k1('0x...')
|
|
67
|
+
* const config = createConfig({
|
|
68
|
+
* chains: [zoneChain],
|
|
69
|
+
* connectors: [dangerous_secp256k1({ account })],
|
|
70
|
+
* transports: {
|
|
71
|
+
* [zoneChain.id]: zoneHttp(),
|
|
72
|
+
* },
|
|
73
|
+
* })
|
|
74
|
+
*
|
|
75
|
+
* await Actions.zone.signAuthorizationToken(config, {
|
|
76
|
+
* chainId: zoneChain.id,
|
|
77
|
+
* })
|
|
78
|
+
*
|
|
79
|
+
* const status = await Actions.zone.getDepositStatus(config, {
|
|
80
|
+
* chainId: zoneChain.id,
|
|
81
|
+
* tempoBlockNumber: 42n,
|
|
82
|
+
* })
|
|
83
|
+
*
|
|
84
|
+
* console.log(status.processed)
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* @param config - Config.
|
|
88
|
+
* @param parameters - Parameters.
|
|
89
|
+
* @returns The deposit status.
|
|
90
|
+
*/
|
|
91
|
+
export declare function getDepositStatus<config extends Config>(config: config, parameters: getDepositStatus.Parameters<config>): Promise<getDepositStatus.ReturnValue>;
|
|
92
|
+
export declare namespace getDepositStatus {
|
|
93
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.zone.getDepositStatus.Parameters;
|
|
94
|
+
type ReturnValue = Actions.zone.getDepositStatus.ReturnType;
|
|
95
|
+
type ErrorType = Actions.zone.getDepositStatus.ErrorType;
|
|
96
|
+
function queryKey<config extends Config>(parameters: PartialBy<Parameters<config>, 'tempoBlockNumber'>): readonly ["getDepositStatus", PartialBy<Parameters<config>, "tempoBlockNumber">];
|
|
97
|
+
type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
|
|
98
|
+
function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
|
|
99
|
+
namespace queryOptions {
|
|
100
|
+
type Parameters<config extends Config, selectData = getDepositStatus.ReturnValue> = PartialBy<getDepositStatus.Parameters<config>, 'tempoBlockNumber'> & QueryParameter<getDepositStatus.ReturnValue, getDepositStatus.ErrorType, selectData, getDepositStatus.QueryKey<config>>;
|
|
101
|
+
type ReturnValue<config extends Config, selectData = getDepositStatus.ReturnValue> = QueryOptions<getDepositStatus.ReturnValue, getDepositStatus.ErrorType, selectData, getDepositStatus.QueryKey<config>>;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Gets the withdrawal fee for a given gas limit.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* import { createConfig } from '@wagmi/core'
|
|
110
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
111
|
+
* import { http as zoneHttp, zone } from 'viem/tempo/zones'
|
|
112
|
+
*
|
|
113
|
+
* const zoneChain = zone(7)
|
|
114
|
+
* const config = createConfig({
|
|
115
|
+
* chains: [zoneChain],
|
|
116
|
+
* transports: {
|
|
117
|
+
* [zoneChain.id]: zoneHttp(),
|
|
118
|
+
* },
|
|
119
|
+
* })
|
|
120
|
+
*
|
|
121
|
+
* const fee = await Actions.zone.getWithdrawalFee(config, {
|
|
122
|
+
* chainId: zoneChain.id,
|
|
123
|
+
* gas: 21_000n,
|
|
124
|
+
* })
|
|
125
|
+
*
|
|
126
|
+
* console.log(fee)
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @param config - Config.
|
|
130
|
+
* @param parameters - Parameters.
|
|
131
|
+
* @returns The withdrawal fee.
|
|
132
|
+
*/
|
|
133
|
+
export declare function getWithdrawalFee<config extends Config>(config: config, parameters: getWithdrawalFee.Parameters<config>): Promise<getWithdrawalFee.ReturnValue>;
|
|
134
|
+
export declare namespace getWithdrawalFee {
|
|
135
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & Actions.zone.getWithdrawalFee.Parameters;
|
|
136
|
+
type ReturnValue = Actions.zone.getWithdrawalFee.ReturnType;
|
|
137
|
+
type ErrorType = Actions.zone.getWithdrawalFee.ErrorType;
|
|
138
|
+
function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getWithdrawalFee", Parameters<config>];
|
|
139
|
+
type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
|
|
140
|
+
function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
|
|
141
|
+
namespace queryOptions {
|
|
142
|
+
type Parameters<config extends Config, selectData = getWithdrawalFee.ReturnValue> = getWithdrawalFee.Parameters<config> & QueryParameter<getWithdrawalFee.ReturnValue, getWithdrawalFee.ErrorType, selectData, getWithdrawalFee.QueryKey<config>>;
|
|
143
|
+
type ReturnValue<config extends Config, selectData = getWithdrawalFee.ReturnValue> = QueryOptions<getWithdrawalFee.ReturnValue, getWithdrawalFee.ErrorType, selectData, getWithdrawalFee.QueryKey<config>>;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Gets the current zone metadata.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```ts
|
|
151
|
+
* import { createConfig } from '@wagmi/core'
|
|
152
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
153
|
+
* import { http as zoneHttp, zone } from 'viem/tempo/zones'
|
|
154
|
+
*
|
|
155
|
+
* const zoneChain = zone(7)
|
|
156
|
+
* const config = createConfig({
|
|
157
|
+
* chains: [zoneChain],
|
|
158
|
+
* transports: {
|
|
159
|
+
* [zoneChain.id]: zoneHttp(),
|
|
160
|
+
* },
|
|
161
|
+
* })
|
|
162
|
+
*
|
|
163
|
+
* const info = await Actions.zone.getZoneInfo(config, {
|
|
164
|
+
* chainId: zoneChain.id,
|
|
165
|
+
* })
|
|
166
|
+
*
|
|
167
|
+
* console.log(info.zoneId)
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* @param config - Config.
|
|
171
|
+
* @param parameters - Parameters.
|
|
172
|
+
* @returns The zone metadata.
|
|
173
|
+
*/
|
|
174
|
+
export declare function getZoneInfo<config extends Config>(config: config, parameters: getZoneInfo.Parameters<config>): Promise<getZoneInfo.ReturnValue>;
|
|
175
|
+
export declare namespace getZoneInfo {
|
|
176
|
+
type Parameters<config extends Config> = ChainIdParameter<config>;
|
|
177
|
+
type ReturnValue = Actions.zone.getZoneInfo.ReturnType;
|
|
178
|
+
type ErrorType = Actions.zone.getZoneInfo.ErrorType;
|
|
179
|
+
function queryKey<config extends Config>(parameters: Parameters<config>): readonly ["getZoneInfo", Parameters<config>];
|
|
180
|
+
type QueryKey<config extends Config> = ReturnType<typeof queryKey<config>>;
|
|
181
|
+
function queryOptions<config extends Config, selectData = ReturnValue>(config: Config, parameters: queryOptions.Parameters<config, selectData>): queryOptions.ReturnValue<config, selectData>;
|
|
182
|
+
namespace queryOptions {
|
|
183
|
+
type Parameters<config extends Config, selectData = getZoneInfo.ReturnValue> = getZoneInfo.Parameters<config> & QueryParameter<getZoneInfo.ReturnValue, getZoneInfo.ErrorType, selectData, getZoneInfo.QueryKey<config>>;
|
|
184
|
+
type ReturnValue<config extends Config, selectData = getZoneInfo.ReturnValue> = QueryOptions<getZoneInfo.ReturnValue, getZoneInfo.ErrorType, selectData, getZoneInfo.QueryKey<config>>;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Signs and stores a zone authorization token for the configured zone transport.
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```ts
|
|
192
|
+
* import { createConfig } from '@wagmi/core'
|
|
193
|
+
* import { Actions, dangerous_secp256k1 } from '@wagmi/core/tempo'
|
|
194
|
+
* import { Account } from 'viem/tempo'
|
|
195
|
+
* import { http as zoneHttp, zone } from 'viem/tempo/zones'
|
|
196
|
+
*
|
|
197
|
+
* const zoneChain = zone(7)
|
|
198
|
+
* const account = Account.fromSecp256k1('0x...')
|
|
199
|
+
* const config = createConfig({
|
|
200
|
+
* chains: [zoneChain],
|
|
201
|
+
* connectors: [dangerous_secp256k1({ account })],
|
|
202
|
+
* transports: {
|
|
203
|
+
* [zoneChain.id]: zoneHttp(),
|
|
204
|
+
* },
|
|
205
|
+
* })
|
|
206
|
+
*
|
|
207
|
+
* const result = await Actions.zone.signAuthorizationToken(config, {
|
|
208
|
+
* chainId: zoneChain.id,
|
|
209
|
+
* })
|
|
210
|
+
*
|
|
211
|
+
* console.log(result.token)
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* @param config - Config.
|
|
215
|
+
* @param parameters - Parameters.
|
|
216
|
+
* @returns The authentication payload and serialized token.
|
|
217
|
+
*/
|
|
218
|
+
export declare function signAuthorizationToken<config extends Config>(config: config, parameters: signAuthorizationToken.Parameters<config>): Promise<signAuthorizationToken.ReturnValue>;
|
|
219
|
+
export declare namespace signAuthorizationToken {
|
|
220
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & {
|
|
221
|
+
account?: Address | Account | undefined;
|
|
222
|
+
} & UnionLooseOmit<Actions.zone.signAuthorizationToken.Parameters<Account>, 'account' | 'chain'>;
|
|
223
|
+
type ReturnValue = Actions.zone.signAuthorizationToken.ReturnType;
|
|
224
|
+
type ErrorType = Actions.zone.signAuthorizationToken.ErrorType;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Deposits tokens into a zone on the parent Tempo chain.
|
|
228
|
+
*
|
|
229
|
+
* @example
|
|
230
|
+
* ```ts
|
|
231
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
232
|
+
* import { tempoModerato } from '@wagmi/core/chains'
|
|
233
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
234
|
+
*
|
|
235
|
+
* const config = createConfig({
|
|
236
|
+
* chains: [tempoModerato],
|
|
237
|
+
* transports: {
|
|
238
|
+
* [tempoModerato.id]: http(),
|
|
239
|
+
* },
|
|
240
|
+
* })
|
|
241
|
+
*
|
|
242
|
+
* const hash = await Actions.zone.deposit(config, {
|
|
243
|
+
* amount: 1_000_000n,
|
|
244
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
245
|
+
* zoneId: 7,
|
|
246
|
+
* })
|
|
247
|
+
* ```
|
|
248
|
+
*
|
|
249
|
+
* @param config - Config.
|
|
250
|
+
* @param parameters - Parameters.
|
|
251
|
+
* @returns Transaction hash.
|
|
252
|
+
*/
|
|
253
|
+
export declare function deposit<config extends Config>(config: config, parameters: deposit.Parameters<config>): Promise<deposit.ReturnValue>;
|
|
254
|
+
export declare namespace deposit {
|
|
255
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.zone.deposit.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
256
|
+
type ReturnValue = Actions.zone.deposit.ReturnValue;
|
|
257
|
+
type ErrorType = Actions.zone.deposit.ErrorType;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Deposits tokens into a zone on the parent Tempo chain.
|
|
261
|
+
*
|
|
262
|
+
* Note: This is a synchronous action that waits for the transaction to
|
|
263
|
+
* be included on a block before returning a response.
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* ```ts
|
|
267
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
268
|
+
* import { tempoModerato } from '@wagmi/core/chains'
|
|
269
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
270
|
+
*
|
|
271
|
+
* const config = createConfig({
|
|
272
|
+
* chains: [tempoModerato],
|
|
273
|
+
* transports: {
|
|
274
|
+
* [tempoModerato.id]: http(),
|
|
275
|
+
* },
|
|
276
|
+
* })
|
|
277
|
+
*
|
|
278
|
+
* const result = await Actions.zone.depositSync(config, {
|
|
279
|
+
* amount: 1_000_000n,
|
|
280
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
281
|
+
* zoneId: 7,
|
|
282
|
+
* })
|
|
283
|
+
*
|
|
284
|
+
* console.log(result.receipt.transactionHash)
|
|
285
|
+
* ```
|
|
286
|
+
*
|
|
287
|
+
* @param config - Config.
|
|
288
|
+
* @param parameters - Parameters.
|
|
289
|
+
* @returns The transaction receipt.
|
|
290
|
+
*/
|
|
291
|
+
export declare function depositSync<config extends Config>(config: config, parameters: depositSync.Parameters<config>): Promise<depositSync.ReturnValue>;
|
|
292
|
+
export declare namespace depositSync {
|
|
293
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.zone.depositSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
294
|
+
type ReturnValue = Actions.zone.depositSync.ReturnValue;
|
|
295
|
+
type ErrorType = Actions.zone.depositSync.ErrorType;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Deposits tokens into a zone on the parent Tempo chain with an encrypted
|
|
299
|
+
* recipient and memo.
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* ```ts
|
|
303
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
304
|
+
* import { tempoModerato } from '@wagmi/core/chains'
|
|
305
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
306
|
+
*
|
|
307
|
+
* const config = createConfig({
|
|
308
|
+
* chains: [tempoModerato],
|
|
309
|
+
* transports: {
|
|
310
|
+
* [tempoModerato.id]: http(),
|
|
311
|
+
* },
|
|
312
|
+
* })
|
|
313
|
+
*
|
|
314
|
+
* const hash = await Actions.zone.encryptedDeposit(config, {
|
|
315
|
+
* amount: 1_000_000n,
|
|
316
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
317
|
+
* zoneId: 7,
|
|
318
|
+
* })
|
|
319
|
+
* ```
|
|
320
|
+
*
|
|
321
|
+
* @param config - Config.
|
|
322
|
+
* @param parameters - Parameters.
|
|
323
|
+
* @returns Transaction hash.
|
|
324
|
+
*/
|
|
325
|
+
export declare function encryptedDeposit<config extends Config>(config: config, parameters: encryptedDeposit.Parameters<config>): Promise<encryptedDeposit.ReturnValue>;
|
|
326
|
+
export declare namespace encryptedDeposit {
|
|
327
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.zone.encryptedDeposit.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
328
|
+
type ReturnValue = Actions.zone.encryptedDeposit.ReturnValue;
|
|
329
|
+
type ErrorType = Actions.zone.encryptedDeposit.ErrorType;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Deposits tokens into a zone on the parent Tempo chain with an encrypted
|
|
333
|
+
* recipient and memo.
|
|
334
|
+
*
|
|
335
|
+
* Note: This is a synchronous action that waits for the transaction to
|
|
336
|
+
* be included on a block before returning a response.
|
|
337
|
+
*
|
|
338
|
+
* @example
|
|
339
|
+
* ```ts
|
|
340
|
+
* import { createConfig, http } from '@wagmi/core'
|
|
341
|
+
* import { tempoModerato } from '@wagmi/core/chains'
|
|
342
|
+
* import { Actions } from '@wagmi/core/tempo'
|
|
343
|
+
*
|
|
344
|
+
* const config = createConfig({
|
|
345
|
+
* chains: [tempoModerato],
|
|
346
|
+
* transports: {
|
|
347
|
+
* [tempoModerato.id]: http(),
|
|
348
|
+
* },
|
|
349
|
+
* })
|
|
350
|
+
*
|
|
351
|
+
* const result = await Actions.zone.encryptedDepositSync(config, {
|
|
352
|
+
* amount: 1_000_000n,
|
|
353
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
354
|
+
* zoneId: 7,
|
|
355
|
+
* })
|
|
356
|
+
*
|
|
357
|
+
* console.log(result.receipt.transactionHash)
|
|
358
|
+
* ```
|
|
359
|
+
*
|
|
360
|
+
* @param config - Config.
|
|
361
|
+
* @param parameters - Parameters.
|
|
362
|
+
* @returns The transaction receipt.
|
|
363
|
+
*/
|
|
364
|
+
export declare function encryptedDepositSync<config extends Config>(config: config, parameters: encryptedDepositSync.Parameters<config>): Promise<encryptedDepositSync.ReturnValue>;
|
|
365
|
+
export declare namespace encryptedDepositSync {
|
|
366
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.zone.encryptedDepositSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
367
|
+
type ReturnValue = Actions.zone.encryptedDepositSync.ReturnValue;
|
|
368
|
+
type ErrorType = Actions.zone.encryptedDepositSync.ErrorType;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Requests a withdrawal from a zone to the parent Tempo chain.
|
|
372
|
+
*
|
|
373
|
+
* @example
|
|
374
|
+
* ```ts
|
|
375
|
+
* import { createConfig } from '@wagmi/core'
|
|
376
|
+
* import { Actions, dangerous_secp256k1 } from '@wagmi/core/tempo'
|
|
377
|
+
* import { Account } from 'viem/tempo'
|
|
378
|
+
* import { http as zoneHttp, zone } from 'viem/tempo/zones'
|
|
379
|
+
*
|
|
380
|
+
* const zoneChain = zone(7)
|
|
381
|
+
* const account = Account.fromSecp256k1('0x...')
|
|
382
|
+
* const config = createConfig({
|
|
383
|
+
* chains: [zoneChain],
|
|
384
|
+
* connectors: [dangerous_secp256k1({ account })],
|
|
385
|
+
* transports: {
|
|
386
|
+
* [zoneChain.id]: zoneHttp(),
|
|
387
|
+
* },
|
|
388
|
+
* })
|
|
389
|
+
*
|
|
390
|
+
* const hash = await Actions.zone.requestWithdrawal(config, {
|
|
391
|
+
* amount: 1_000_000n,
|
|
392
|
+
* chainId: zoneChain.id,
|
|
393
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
394
|
+
* })
|
|
395
|
+
*
|
|
396
|
+
* console.log(hash)
|
|
397
|
+
* ```
|
|
398
|
+
*
|
|
399
|
+
* @param config - Config.
|
|
400
|
+
* @param parameters - Parameters.
|
|
401
|
+
* @returns Transaction hash.
|
|
402
|
+
*/
|
|
403
|
+
export declare function requestWithdrawal<config extends Config>(config: config, parameters: requestWithdrawal.Parameters<config>): Promise<requestWithdrawal.ReturnValue>;
|
|
404
|
+
export declare namespace requestWithdrawal {
|
|
405
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.zone.requestWithdrawal.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
406
|
+
type ReturnValue = Actions.zone.requestWithdrawal.ReturnValue;
|
|
407
|
+
type ErrorType = Actions.zone.requestWithdrawal.ErrorType;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Requests a withdrawal from a zone to the parent Tempo chain.
|
|
411
|
+
*
|
|
412
|
+
* Note: This is a synchronous action that waits for the transaction to
|
|
413
|
+
* be included on a block before returning a response.
|
|
414
|
+
*
|
|
415
|
+
* @example
|
|
416
|
+
* ```ts
|
|
417
|
+
* import { createConfig } from '@wagmi/core'
|
|
418
|
+
* import { Actions, dangerous_secp256k1 } from '@wagmi/core/tempo'
|
|
419
|
+
* import { Account } from 'viem/tempo'
|
|
420
|
+
* import { http as zoneHttp, zone } from 'viem/tempo/zones'
|
|
421
|
+
*
|
|
422
|
+
* const zoneChain = zone(7)
|
|
423
|
+
* const account = Account.fromSecp256k1('0x...')
|
|
424
|
+
* const config = createConfig({
|
|
425
|
+
* chains: [zoneChain],
|
|
426
|
+
* connectors: [dangerous_secp256k1({ account })],
|
|
427
|
+
* transports: {
|
|
428
|
+
* [zoneChain.id]: zoneHttp(),
|
|
429
|
+
* },
|
|
430
|
+
* })
|
|
431
|
+
*
|
|
432
|
+
* const result = await Actions.zone.requestWithdrawalSync(config, {
|
|
433
|
+
* amount: 1_000_000n,
|
|
434
|
+
* chainId: zoneChain.id,
|
|
435
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
436
|
+
* })
|
|
437
|
+
*
|
|
438
|
+
* console.log(result.receipt.transactionHash)
|
|
439
|
+
* ```
|
|
440
|
+
*
|
|
441
|
+
* @param config - Config.
|
|
442
|
+
* @param parameters - Parameters.
|
|
443
|
+
* @returns The transaction receipt.
|
|
444
|
+
*/
|
|
445
|
+
export declare function requestWithdrawalSync<config extends Config>(config: config, parameters: requestWithdrawalSync.Parameters<config>): Promise<requestWithdrawalSync.ReturnValue>;
|
|
446
|
+
export declare namespace requestWithdrawalSync {
|
|
447
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.zone.requestWithdrawalSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
448
|
+
type ReturnValue = Actions.zone.requestWithdrawalSync.ReturnValue;
|
|
449
|
+
type ErrorType = Actions.zone.requestWithdrawalSync.ErrorType;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Requests a verifiable withdrawal from a zone to the parent Tempo chain.
|
|
453
|
+
*
|
|
454
|
+
* @example
|
|
455
|
+
* ```ts
|
|
456
|
+
* import { createConfig } from '@wagmi/core'
|
|
457
|
+
* import { Actions, dangerous_secp256k1 } from '@wagmi/core/tempo'
|
|
458
|
+
* import { Account } from 'viem/tempo'
|
|
459
|
+
* import { http as zoneHttp, zone } from 'viem/tempo/zones'
|
|
460
|
+
*
|
|
461
|
+
* const zoneChain = zone(7)
|
|
462
|
+
* const account = Account.fromSecp256k1('0x...')
|
|
463
|
+
* const config = createConfig({
|
|
464
|
+
* chains: [zoneChain],
|
|
465
|
+
* connectors: [dangerous_secp256k1({ account })],
|
|
466
|
+
* transports: {
|
|
467
|
+
* [zoneChain.id]: zoneHttp(),
|
|
468
|
+
* },
|
|
469
|
+
* })
|
|
470
|
+
*
|
|
471
|
+
* const hash = await Actions.zone.requestVerifiableWithdrawal(config, {
|
|
472
|
+
* amount: 1_000_000n,
|
|
473
|
+
* chainId: zoneChain.id,
|
|
474
|
+
* revealTo:
|
|
475
|
+
* '0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
|
|
476
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
477
|
+
* })
|
|
478
|
+
*
|
|
479
|
+
* console.log(hash)
|
|
480
|
+
* ```
|
|
481
|
+
*
|
|
482
|
+
* @param config - Config.
|
|
483
|
+
* @param parameters - Parameters.
|
|
484
|
+
* @returns Transaction hash.
|
|
485
|
+
*/
|
|
486
|
+
export declare function requestVerifiableWithdrawal<config extends Config>(config: config, parameters: requestVerifiableWithdrawal.Parameters<config>): Promise<requestVerifiableWithdrawal.ReturnValue>;
|
|
487
|
+
export declare namespace requestVerifiableWithdrawal {
|
|
488
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.zone.requestVerifiableWithdrawal.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
489
|
+
type ReturnValue = Actions.zone.requestVerifiableWithdrawal.ReturnValue;
|
|
490
|
+
type ErrorType = Actions.zone.requestVerifiableWithdrawal.ErrorType;
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* Requests a verifiable withdrawal from a zone to the parent Tempo chain.
|
|
494
|
+
*
|
|
495
|
+
* Note: This is a synchronous action that waits for the transaction to
|
|
496
|
+
* be included on a block before returning a response.
|
|
497
|
+
*
|
|
498
|
+
* @example
|
|
499
|
+
* ```ts
|
|
500
|
+
* import { createConfig } from '@wagmi/core'
|
|
501
|
+
* import { Actions, dangerous_secp256k1 } from '@wagmi/core/tempo'
|
|
502
|
+
* import { Account } from 'viem/tempo'
|
|
503
|
+
* import { http as zoneHttp, zone } from 'viem/tempo/zones'
|
|
504
|
+
*
|
|
505
|
+
* const zoneChain = zone(7)
|
|
506
|
+
* const account = Account.fromSecp256k1('0x...')
|
|
507
|
+
* const config = createConfig({
|
|
508
|
+
* chains: [zoneChain],
|
|
509
|
+
* connectors: [dangerous_secp256k1({ account })],
|
|
510
|
+
* transports: {
|
|
511
|
+
* [zoneChain.id]: zoneHttp(),
|
|
512
|
+
* },
|
|
513
|
+
* })
|
|
514
|
+
*
|
|
515
|
+
* const result = await Actions.zone.requestVerifiableWithdrawalSync(config, {
|
|
516
|
+
* amount: 1_000_000n,
|
|
517
|
+
* chainId: zoneChain.id,
|
|
518
|
+
* revealTo:
|
|
519
|
+
* '0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
|
|
520
|
+
* token: '0x20c0000000000000000000000000000000000001',
|
|
521
|
+
* })
|
|
522
|
+
*
|
|
523
|
+
* console.log(result.receipt.transactionHash)
|
|
524
|
+
* ```
|
|
525
|
+
*
|
|
526
|
+
* @param config - Config.
|
|
527
|
+
* @param parameters - Parameters.
|
|
528
|
+
* @returns The transaction receipt.
|
|
529
|
+
*/
|
|
530
|
+
export declare function requestVerifiableWithdrawalSync<config extends Config>(config: config, parameters: requestVerifiableWithdrawalSync.Parameters<config>): Promise<requestVerifiableWithdrawalSync.ReturnValue>;
|
|
531
|
+
export declare namespace requestVerifiableWithdrawalSync {
|
|
532
|
+
type Parameters<config extends Config> = ChainIdParameter<config> & ConnectorParameter & UnionLooseOmit<Actions.zone.requestVerifiableWithdrawalSync.Parameters<config['chains'][number], Account>, 'chain'>;
|
|
533
|
+
type ReturnValue = Actions.zone.requestVerifiableWithdrawalSync.ReturnValue;
|
|
534
|
+
type ErrorType = Actions.zone.requestVerifiableWithdrawalSync.ErrorType;
|
|
535
|
+
}
|
|
536
|
+
//# sourceMappingURL=zone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zone.d.ts","sourceRoot":"","sources":["../../../../src/tempo/actions/zone.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EAKb,MAAM,MAAM,CAAA;AAMb,OAAO,EAAQ,OAAO,EAAE,MAAM,YAAY,CAAA;AAI1C,OAAO,KAAK,EA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AAC,IAAI,CAAC,2BAA2B,CAAC,UAAU,CACjD,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EACxB,OAAO,CACR,EACD,OAAO,CACR,CAAA;IAEH,KAAY,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,2BAA2B,CAAC,WAAW,CAAA;IAE9E,KAAY,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,2BAA2B,CAAC,SAAS,CAAA;CAC3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAsB,+BAA+B,CAAC,MAAM,SAAS,MAAM,EACzE,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,+BAA+B,CAAC,UAAU,CAAC,MAAM,CAAC,GAC7D,OAAO,CAAC,+BAA+B,CAAC,WAAW,CAAC,CAWtD;AAED,MAAM,CAAC,OAAO,WAAW,+BAA+B,CAAC;IACvD,KAAY,UAAU,CAAC,MAAM,SAAS,MAAM,IAAI,gBAAgB,CAAC,MAAM,CAAC,GACtE,kBAAkB,GAClB,cAAc,CACZ,OAAO,CAAC,IAAI,CAAC,+BAA+B,CAAC,UAAU,CACrD,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EACxB,OAAO,CACR,EACD,OAAO,CACR,CAAA;IAEH,KAAY,WAAW,GACrB,OAAO,CAAC,IAAI,CAAC,+BAA+B,CAAC,WAAW,CAAA;IAE1D,KAAY,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,+BAA+B,CAAC,SAAS,CAAA;CAC/E"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "3.4.
|
|
1
|
+
export declare const version = "3.4.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
package/src/errors/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export class ConnectorAccountNotFoundError extends BaseError {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export type ConnectorChainMismatchErrorType =
|
|
64
|
+
export type ConnectorChainMismatchErrorType = ConnectorChainMismatchError & {
|
|
65
65
|
name: 'ConnectorChainMismatchError'
|
|
66
66
|
}
|
|
67
67
|
export class ConnectorChainMismatchError extends BaseError {
|