@ensdomains/ensjs 3.0.0-beta.3 → 3.0.0-beta.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/cjs/dns.js.map +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/utils/index.js +19 -1
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/wallet.js.map +1 -1
- package/dist/esm/dns.js.map +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/wallet.js.map +1 -1
- package/dist/types/clients/decorators/public.d.ts +1 -519
- package/dist/types/clients/decorators/public.d.ts.map +1 -1
- package/dist/types/clients/decorators/subgraph.d.ts +1 -519
- package/dist/types/clients/decorators/subgraph.d.ts.map +1 -1
- package/dist/types/clients/decorators/wallet.d.ts +19 -28
- package/dist/types/clients/decorators/wallet.d.ts.map +1 -1
- package/dist/types/clients/public.d.ts +21 -30
- package/dist/types/clients/public.d.ts.map +1 -1
- package/dist/types/clients/subgraph.d.ts +17 -26
- package/dist/types/clients/subgraph.d.ts.map +1 -1
- package/dist/types/clients/wallet.d.ts +46 -55
- package/dist/types/clients/wallet.d.ts.map +1 -1
- package/dist/types/dns.d.ts +1 -1
- package/dist/types/dns.d.ts.map +1 -1
- package/dist/types/errors/version.d.ts +1 -1
- package/dist/types/functions/dns/importDnsName.d.ts +38 -56
- package/dist/types/functions/dns/importDnsName.d.ts.map +1 -1
- package/dist/types/functions/wallet/commitName.d.ts +38 -56
- package/dist/types/functions/wallet/commitName.d.ts.map +1 -1
- package/dist/types/functions/wallet/createSubname.d.ts +38 -56
- package/dist/types/functions/wallet/createSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/deleteSubname.d.ts +38 -56
- package/dist/types/functions/wallet/deleteSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/registerName.d.ts +38 -56
- package/dist/types/functions/wallet/registerName.d.ts.map +1 -1
- package/dist/types/functions/wallet/renewNames.d.ts +38 -56
- package/dist/types/functions/wallet/renewNames.d.ts.map +1 -1
- package/dist/types/functions/wallet/setAbiRecord.d.ts +38 -56
- package/dist/types/functions/wallet/setAbiRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setAddressRecord.d.ts +38 -56
- package/dist/types/functions/wallet/setAddressRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setChildFuses.d.ts +38 -56
- package/dist/types/functions/wallet/setChildFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setContentHashRecord.d.ts +38 -56
- package/dist/types/functions/wallet/setContentHashRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setFuses.d.ts +38 -56
- package/dist/types/functions/wallet/setFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setPrimaryName.d.ts +38 -56
- package/dist/types/functions/wallet/setPrimaryName.d.ts.map +1 -1
- package/dist/types/functions/wallet/setRecords.d.ts +38 -56
- package/dist/types/functions/wallet/setRecords.d.ts.map +1 -1
- package/dist/types/functions/wallet/setResolver.d.ts +38 -56
- package/dist/types/functions/wallet/setResolver.d.ts.map +1 -1
- package/dist/types/functions/wallet/setTextRecord.d.ts +38 -56
- package/dist/types/functions/wallet/setTextRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/transferName.d.ts +39 -57
- package/dist/types/functions/wallet/transferName.d.ts.map +1 -1
- package/dist/types/functions/wallet/unwrapName.d.ts +38 -56
- package/dist/types/functions/wallet/unwrapName.d.ts.map +1 -1
- package/dist/types/functions/wallet/wrapName.d.ts +38 -56
- package/dist/types/functions/wallet/wrapName.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/wallet.d.ts +17 -17
- package/dist/types/wallet.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/clients/public.ts +1 -1
- package/src/clients/subgraph.ts +1 -1
- package/src/clients/wallet.ts +1 -1
- package/src/dns.ts +2 -0
- package/src/errors/version.ts +1 -1
- package/src/functions/wallet/transferName.ts +1 -1
- package/src/utils/index.ts +22 -0
- package/src/wallet.ts +34 -0
|
@@ -4,7 +4,7 @@ import type { Prettify } from '../types.js';
|
|
|
4
4
|
import { type EnsPublicActions } from './decorators/public.js';
|
|
5
5
|
import { type EnsSubgraphActions } from './decorators/subgraph.js';
|
|
6
6
|
export type EnsPublicClientConfig<TTransport extends Transport = Transport, TChain extends Chain = Chain> = Pick<ClientConfig<TTransport, TChain>, 'batch' | 'key' | 'name' | 'pollingInterval' | 'transport'> & {
|
|
7
|
-
chain:
|
|
7
|
+
chain: TChain;
|
|
8
8
|
};
|
|
9
9
|
export type EnsPublicClient<TTransport extends Transport = Transport, TChain extends ChainWithEns = ChainWithEns> = Prettify<Client<TTransport, TChain, undefined, undefined, EnsPublicActions & EnsSubgraphActions>>;
|
|
10
10
|
/**
|
|
@@ -26,8 +26,12 @@ export type EnsPublicClient<TTransport extends Transport = Transport, TChain ext
|
|
|
26
26
|
export declare const createEnsPublicClient: <TTransport extends Transport, TChain extends Chain>({ batch, chain, key, name, transport, pollingInterval, }: EnsPublicClientConfig<TTransport, TChain>) => {
|
|
27
27
|
account: undefined;
|
|
28
28
|
batch?: {
|
|
29
|
-
multicall?: boolean |
|
|
29
|
+
multicall?: boolean | {
|
|
30
|
+
batchSize?: number | undefined;
|
|
31
|
+
wait?: number | undefined;
|
|
32
|
+
} | undefined;
|
|
30
33
|
} | undefined;
|
|
34
|
+
cacheTime: number;
|
|
31
35
|
chain: ChainWithEns<TChain>;
|
|
32
36
|
key: string;
|
|
33
37
|
name: string;
|
|
@@ -107,7 +111,7 @@ export declare const createEnsPublicClient: <TTransport extends Transport, TChai
|
|
|
107
111
|
}, {
|
|
108
112
|
Method: "eth_getFilterChanges";
|
|
109
113
|
Parameters: [filterId: `0x${string}`];
|
|
110
|
-
ReturnType: import("viem").RpcLog[]
|
|
114
|
+
ReturnType: `0x${string}`[] | import("viem").RpcLog[];
|
|
111
115
|
}, {
|
|
112
116
|
Method: "eth_getFilterLogs";
|
|
113
117
|
Parameters: [filterId: `0x${string}`];
|
|
@@ -268,33 +272,6 @@ export declare const createEnsPublicClient: <TTransport extends Transport, TChai
|
|
|
268
272
|
transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
|
|
269
273
|
type: string;
|
|
270
274
|
uid: string;
|
|
271
|
-
extend: <TNextExtended extends {
|
|
272
|
-
account?: undefined;
|
|
273
|
-
batch?: undefined;
|
|
274
|
-
chain?: undefined;
|
|
275
|
-
key?: undefined;
|
|
276
|
-
name?: undefined;
|
|
277
|
-
pollingInterval?: undefined;
|
|
278
|
-
request?: undefined;
|
|
279
|
-
transport?: undefined;
|
|
280
|
-
type?: undefined;
|
|
281
|
-
uid?: undefined;
|
|
282
|
-
} & {
|
|
283
|
-
[key: string]: unknown;
|
|
284
|
-
} = {
|
|
285
|
-
account?: undefined;
|
|
286
|
-
batch?: undefined;
|
|
287
|
-
chain?: undefined;
|
|
288
|
-
key?: undefined;
|
|
289
|
-
name?: undefined;
|
|
290
|
-
pollingInterval?: undefined;
|
|
291
|
-
request?: undefined;
|
|
292
|
-
transport?: undefined;
|
|
293
|
-
type?: undefined;
|
|
294
|
-
uid?: undefined;
|
|
295
|
-
} & {
|
|
296
|
-
[key: string]: unknown;
|
|
297
|
-
}>(fn: (client: Client<TTransport, ChainWithEns<TChain>, undefined, undefined, EnsPublicActions & EnsSubgraphActions>) => import("viem").Narrow<TNextExtended>) => never;
|
|
298
275
|
ensBatch: <TBatchFunctions extends import("../public.js").BatchParameters>(...parameters: TBatchFunctions) => Promise<import("../public.js").BatchReturnType<TBatchFunctions>>;
|
|
299
276
|
getAbiRecord: ({ name, }: {
|
|
300
277
|
name: string;
|
|
@@ -331,5 +308,19 @@ export declare const createEnsPublicClient: <TTransport extends Transport, TChai
|
|
|
331
308
|
getSubgraphRecords: ({ name, resolverAddress, }: import("../subgraph.js").GetSubgraphRecordsParameters) => Promise<import("../subgraph.js").GetSubgraphRecordsReturnType>;
|
|
332
309
|
getSubgraphRegistrant: ({ name, }: import("../subgraph.js").GetSubgraphRegistrantParameters) => Promise<import("../subgraph.js").GetSubgraphRegistrantReturnType>;
|
|
333
310
|
getSubnames: ({ name, searchString, allowExpired, allowDeleted, orderBy, orderDirection, pageSize, previousPage, }: import("../subgraph.js").GetSubnamesParameters) => Promise<import("../subgraph.js").GetSubnamesReturnType>;
|
|
311
|
+
extend: <const client extends {
|
|
312
|
+
[x: string]: unknown;
|
|
313
|
+
account?: undefined;
|
|
314
|
+
batch?: undefined;
|
|
315
|
+
cacheTime?: undefined;
|
|
316
|
+
chain?: undefined;
|
|
317
|
+
key?: undefined;
|
|
318
|
+
name?: undefined;
|
|
319
|
+
pollingInterval?: undefined;
|
|
320
|
+
request?: undefined;
|
|
321
|
+
transport?: undefined;
|
|
322
|
+
type?: undefined;
|
|
323
|
+
uid?: undefined;
|
|
324
|
+
}>(fn: (client: Client<TTransport, ChainWithEns<TChain>, undefined, undefined, EnsPublicActions & EnsSubgraphActions>) => client) => Client<TTransport, ChainWithEns<TChain>, undefined, undefined, { [K in keyof client]: client[K]; } & EnsPublicActions & EnsSubgraphActions>;
|
|
334
325
|
};
|
|
335
326
|
//# sourceMappingURL=public.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/clients/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAA;AAEjC,MAAM,MAAM,qBAAqB,CAC/B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,KAAK,IAC1B,IAAI,CACN,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,EAChC,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,iBAAiB,GAAG,WAAW,CAC3D,GAAG;IACF,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/clients/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAChF,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAA;AAEjC,MAAM,MAAM,qBAAqB,CAC/B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,KAAK,IAC1B,IAAI,CACN,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,EAChC,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,iBAAiB,GAAG,WAAW,CAC3D,GAAG;IACF,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,eAAe,CACzB,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,YAAY,GAAG,YAAY,IACxC,QAAQ,CACV,MAAM,CACJ,UAAU,EACV,MAAM,EACN,SAAS,EACT,SAAS,EACT,gBAAgB,GAAG,kBAAkB,CACtC,CACF,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBjC,CAAA"}
|
|
@@ -3,7 +3,7 @@ import type { ChainWithEns } from '../contracts/consts.js';
|
|
|
3
3
|
import type { Prettify } from '../types.js';
|
|
4
4
|
import { type EnsSubgraphActions } from './decorators/subgraph.js';
|
|
5
5
|
export type EnsSubgraphClientConfig<TTransport extends Transport = Transport, TChain extends Chain = Chain> = Pick<ClientConfig<TTransport, TChain>, 'batch' | 'key' | 'name' | 'pollingInterval' | 'transport'> & {
|
|
6
|
-
chain:
|
|
6
|
+
chain: TChain;
|
|
7
7
|
};
|
|
8
8
|
export type EnsSubgraphClient<TTransport extends Transport = Transport, TChain extends ChainWithEns = ChainWithEns> = Prettify<Client<TTransport, TChain, undefined, undefined, EnsSubgraphActions>>;
|
|
9
9
|
/**
|
|
@@ -25,8 +25,12 @@ export type EnsSubgraphClient<TTransport extends Transport = Transport, TChain e
|
|
|
25
25
|
export declare const createEnsSubgraphClient: <TTransport extends Transport, TChain extends Chain>({ batch, chain, key, name, transport, pollingInterval, }: EnsSubgraphClientConfig<TTransport, TChain>) => {
|
|
26
26
|
account: undefined;
|
|
27
27
|
batch?: {
|
|
28
|
-
multicall?: boolean |
|
|
28
|
+
multicall?: boolean | {
|
|
29
|
+
batchSize?: number | undefined;
|
|
30
|
+
wait?: number | undefined;
|
|
31
|
+
} | undefined;
|
|
29
32
|
} | undefined;
|
|
33
|
+
cacheTime: number;
|
|
30
34
|
chain: ChainWithEns<TChain>;
|
|
31
35
|
key: string;
|
|
32
36
|
name: string;
|
|
@@ -106,7 +110,7 @@ export declare const createEnsSubgraphClient: <TTransport extends Transport, TCh
|
|
|
106
110
|
}, {
|
|
107
111
|
Method: "eth_getFilterChanges";
|
|
108
112
|
Parameters: [filterId: `0x${string}`];
|
|
109
|
-
ReturnType: import("viem").RpcLog[]
|
|
113
|
+
ReturnType: `0x${string}`[] | import("viem").RpcLog[];
|
|
110
114
|
}, {
|
|
111
115
|
Method: "eth_getFilterLogs";
|
|
112
116
|
Parameters: [filterId: `0x${string}`];
|
|
@@ -267,22 +271,17 @@ export declare const createEnsSubgraphClient: <TTransport extends Transport, TCh
|
|
|
267
271
|
transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
|
|
268
272
|
type: string;
|
|
269
273
|
uid: string;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
transport?: undefined;
|
|
279
|
-
type?: undefined;
|
|
280
|
-
uid?: undefined;
|
|
281
|
-
} & {
|
|
282
|
-
[key: string]: unknown;
|
|
283
|
-
} = {
|
|
274
|
+
getDecodedName: ({ name, allowIncomplete, }: import("../subgraph.js").GetDecodedNameParameters) => Promise<import("../subgraph.js").GetDecodedNameReturnType>;
|
|
275
|
+
getNameHistory: ({ name, }: import("../subgraph.js").GetNameHistoryParameters) => Promise<import("../subgraph.js").GetNameHistoryReturnType>;
|
|
276
|
+
getNamesForAddress: ({ address, filter, orderBy, orderDirection, pageSize, previousPage, }: import("../subgraph.js").GetNamesForAddressParameters) => Promise<import("../subgraph.js").GetNamesForAddressReturnType>;
|
|
277
|
+
getSubgraphRecords: ({ name, resolverAddress, }: import("../subgraph.js").GetSubgraphRecordsParameters) => Promise<import("../subgraph.js").GetSubgraphRecordsReturnType>;
|
|
278
|
+
getSubgraphRegistrant: ({ name, }: import("../subgraph.js").GetSubgraphRegistrantParameters) => Promise<import("../subgraph.js").GetSubgraphRegistrantReturnType>;
|
|
279
|
+
getSubnames: ({ name, searchString, allowExpired, allowDeleted, orderBy, orderDirection, pageSize, previousPage, }: import("../subgraph.js").GetSubnamesParameters) => Promise<import("../subgraph.js").GetSubnamesReturnType>;
|
|
280
|
+
extend: <const client extends {
|
|
281
|
+
[x: string]: unknown;
|
|
284
282
|
account?: undefined;
|
|
285
283
|
batch?: undefined;
|
|
284
|
+
cacheTime?: undefined;
|
|
286
285
|
chain?: undefined;
|
|
287
286
|
key?: undefined;
|
|
288
287
|
name?: undefined;
|
|
@@ -291,14 +290,6 @@ export declare const createEnsSubgraphClient: <TTransport extends Transport, TCh
|
|
|
291
290
|
transport?: undefined;
|
|
292
291
|
type?: undefined;
|
|
293
292
|
uid?: undefined;
|
|
294
|
-
} &
|
|
295
|
-
[key: string]: unknown;
|
|
296
|
-
}>(fn: (client: Client<TTransport, ChainWithEns<TChain>, undefined, undefined, EnsSubgraphActions>) => import("viem").Narrow<TNextExtended>) => never;
|
|
297
|
-
getDecodedName: ({ name, allowIncomplete, }: import("../subgraph.js").GetDecodedNameParameters) => Promise<import("../subgraph.js").GetDecodedNameReturnType>;
|
|
298
|
-
getNameHistory: ({ name, }: import("../subgraph.js").GetNameHistoryParameters) => Promise<import("../subgraph.js").GetNameHistoryReturnType>;
|
|
299
|
-
getNamesForAddress: ({ address, filter, orderBy, orderDirection, pageSize, previousPage, }: import("../subgraph.js").GetNamesForAddressParameters) => Promise<import("../subgraph.js").GetNamesForAddressReturnType>;
|
|
300
|
-
getSubgraphRecords: ({ name, resolverAddress, }: import("../subgraph.js").GetSubgraphRecordsParameters) => Promise<import("../subgraph.js").GetSubgraphRecordsReturnType>;
|
|
301
|
-
getSubgraphRegistrant: ({ name, }: import("../subgraph.js").GetSubgraphRegistrantParameters) => Promise<import("../subgraph.js").GetSubgraphRegistrantReturnType>;
|
|
302
|
-
getSubnames: ({ name, searchString, allowExpired, allowDeleted, orderBy, orderDirection, pageSize, previousPage, }: import("../subgraph.js").GetSubnamesParameters) => Promise<import("../subgraph.js").GetSubnamesReturnType>;
|
|
293
|
+
}>(fn: (client: Client<TTransport, ChainWithEns<TChain>, undefined, undefined, EnsSubgraphActions>) => client) => Client<TTransport, ChainWithEns<TChain>, undefined, undefined, { [K in keyof client]: client[K]; } & EnsSubgraphActions>;
|
|
303
294
|
};
|
|
304
295
|
//# sourceMappingURL=subgraph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraph.d.ts","sourceRoot":"","sources":["../../../src/clients/subgraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAA;AAEjC,MAAM,MAAM,uBAAuB,CACjC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,KAAK,IAC1B,IAAI,CACN,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,EAChC,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,iBAAiB,GAAG,WAAW,CAC3D,GAAG;IACF,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"subgraph.d.ts","sourceRoot":"","sources":["../../../src/clients/subgraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAA;AAEjC,MAAM,MAAM,uBAAuB,CACjC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,KAAK,IAC1B,IAAI,CACN,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,EAChC,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,iBAAiB,GAAG,WAAW,CAC3D,GAAG;IACF,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,iBAAiB,CAC3B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,YAAY,GAAG,YAAY,IACxC,QAAQ,CACV,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,kBAAkB,CAAC,CACrE,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBnC,CAAA"}
|
|
@@ -3,7 +3,7 @@ import type { ChainWithEns } from '../contracts/consts.js';
|
|
|
3
3
|
import type { Prettify } from '../types.js';
|
|
4
4
|
import { type EnsWalletActions } from './decorators/wallet.js';
|
|
5
5
|
export type EnsWalletClientConfig<TTransport extends Transport, TChain extends Chain, TAccountOrAddress extends Account | Address | undefined = Account | Address | undefined> = Pick<ClientConfig<TTransport, TChain, TAccountOrAddress>, 'account' | 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'> & {
|
|
6
|
-
chain:
|
|
6
|
+
chain: TChain;
|
|
7
7
|
};
|
|
8
8
|
export type EnsWalletClient<TTransport extends Transport = Transport, TChain extends ChainWithEns = ChainWithEns, TAccount extends Account | undefined = Account | undefined> = Prettify<Client<TTransport, TChain, TAccount, WalletRpcSchema, WalletActions<TChain, TAccount> & EnsWalletActions<TChain, TAccount>>>;
|
|
9
9
|
/**
|
|
@@ -25,8 +25,12 @@ export type EnsWalletClient<TTransport extends Transport = Transport, TChain ext
|
|
|
25
25
|
export declare const createEnsWalletClient: <TTransport extends Transport, TChain extends Chain, TAccountOrAddress extends `0x${string}` | Account | undefined = undefined>({ account, chain, key, name, transport, pollingInterval, }: EnsWalletClientConfig<TTransport, TChain, TAccountOrAddress>) => {
|
|
26
26
|
account: ParseAccount<TAccountOrAddress>;
|
|
27
27
|
batch?: {
|
|
28
|
-
multicall?: boolean |
|
|
28
|
+
multicall?: boolean | {
|
|
29
|
+
batchSize?: number | undefined;
|
|
30
|
+
wait?: number | undefined;
|
|
31
|
+
} | undefined;
|
|
29
32
|
} | undefined;
|
|
33
|
+
cacheTime: number;
|
|
30
34
|
chain: ChainWithEns<TChain>;
|
|
31
35
|
key: string;
|
|
32
36
|
name: string;
|
|
@@ -35,33 +39,6 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
35
39
|
transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
|
|
36
40
|
type: string;
|
|
37
41
|
uid: string;
|
|
38
|
-
extend: <TNextExtended extends {
|
|
39
|
-
account?: undefined;
|
|
40
|
-
batch?: undefined;
|
|
41
|
-
chain?: undefined;
|
|
42
|
-
key?: undefined;
|
|
43
|
-
name?: undefined;
|
|
44
|
-
pollingInterval?: undefined;
|
|
45
|
-
request?: undefined;
|
|
46
|
-
transport?: undefined;
|
|
47
|
-
type?: undefined;
|
|
48
|
-
uid?: undefined;
|
|
49
|
-
} & {
|
|
50
|
-
[key: string]: unknown;
|
|
51
|
-
} = {
|
|
52
|
-
account?: undefined;
|
|
53
|
-
batch?: undefined;
|
|
54
|
-
chain?: undefined;
|
|
55
|
-
key?: undefined;
|
|
56
|
-
name?: undefined;
|
|
57
|
-
pollingInterval?: undefined;
|
|
58
|
-
request?: undefined;
|
|
59
|
-
transport?: undefined;
|
|
60
|
-
type?: undefined;
|
|
61
|
-
uid?: undefined;
|
|
62
|
-
} & {
|
|
63
|
-
[key: string]: unknown;
|
|
64
|
-
}>(fn: (client: Client<TTransport, ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, WalletRpcSchema, WalletActions<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>> & EnsWalletActions<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>>>) => import("viem").Narrow<TNextExtended>) => never;
|
|
65
42
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
66
43
|
deployContract: <TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, TChainOverride>) => Promise<`0x${string}`>;
|
|
67
44
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
@@ -301,11 +278,11 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
301
278
|
reverseRecord?: boolean | undefined;
|
|
302
279
|
fuses?: import("../utils/fuses.js").EncodeChildFusesInputObject | undefined;
|
|
303
280
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
304
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
305
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
306
281
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
307
282
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
308
283
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
284
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
285
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
309
286
|
}) => Promise<`0x${string}`>;
|
|
310
287
|
createSubname: ({ name, contract, owner, resolverAddress, expiry, fuses, ...txArgs }: import("../wallet.js").CreateSubnameParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>) => Promise<`0x${string}`>;
|
|
311
288
|
deleteSubname: ({ name, contract, asOwner, ...txArgs }: {
|
|
@@ -313,11 +290,11 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
313
290
|
contract: "nameWrapper" | "registry";
|
|
314
291
|
asOwner?: boolean | undefined;
|
|
315
292
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
316
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
317
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
318
293
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
319
294
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
320
295
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
296
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
297
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
321
298
|
}) => Promise<`0x${string}`>;
|
|
322
299
|
registerName: ({ name, owner, duration, secret, resolverAddress, records, reverseRecord, fuses, value, ...txArgs }: {
|
|
323
300
|
name: string;
|
|
@@ -336,33 +313,33 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
336
313
|
fuses?: import("../utils/fuses.js").EncodeChildFusesInputObject | undefined;
|
|
337
314
|
value: bigint;
|
|
338
315
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
339
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
340
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
341
316
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
342
317
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
343
318
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
319
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
320
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
344
321
|
}) => Promise<`0x${string}`>;
|
|
345
322
|
renewNames: ({ nameOrNames, duration, value, ...txArgs }: {
|
|
346
323
|
nameOrNames: string | string[];
|
|
347
324
|
duration: number | bigint;
|
|
348
325
|
value: bigint;
|
|
349
326
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
350
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
351
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
352
327
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
353
328
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
354
329
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
330
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
331
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
355
332
|
}) => Promise<`0x${string}`>;
|
|
356
333
|
setAbiRecord: ({ name, encodedAbi, resolverAddress, ...txArgs }: {
|
|
357
334
|
name: string;
|
|
358
335
|
encodedAbi: import("../utils/index.js").EncodedAbi | null;
|
|
359
336
|
resolverAddress: `0x${string}`;
|
|
360
337
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
361
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
362
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
363
338
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
364
339
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
365
340
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
341
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
342
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
366
343
|
}) => Promise<`0x${string}`>;
|
|
367
344
|
setAddressRecord: ({ name, coin, value, resolverAddress, ...txArgs }: {
|
|
368
345
|
name: string;
|
|
@@ -370,43 +347,43 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
370
347
|
value: string | null;
|
|
371
348
|
resolverAddress: `0x${string}`;
|
|
372
349
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
373
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
374
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
375
350
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
376
351
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
377
352
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
353
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
354
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
378
355
|
}) => Promise<`0x${string}`>;
|
|
379
356
|
setChildFuses: ({ name, fuses, expiry, ...txArgs }: {
|
|
380
357
|
name: string;
|
|
381
358
|
fuses: import("../utils/fuses.js").EncodeFusesInputObject;
|
|
382
359
|
expiry?: number | bigint | undefined;
|
|
383
360
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
384
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
385
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
386
361
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
387
362
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
388
363
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
364
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
365
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
389
366
|
}) => Promise<`0x${string}`>;
|
|
390
367
|
setContentHashRecord: ({ name, contentHash, resolverAddress, ...txArgs }: {
|
|
391
368
|
name: string;
|
|
392
369
|
contentHash: string | null;
|
|
393
370
|
resolverAddress: `0x${string}`;
|
|
394
371
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
395
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
396
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
397
372
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
398
373
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
399
374
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
375
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
376
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
400
377
|
}) => Promise<`0x${string}`>;
|
|
401
378
|
setFuses: ({ name, fuses, ...txArgs }: {
|
|
402
379
|
name: string;
|
|
403
380
|
fuses: import("../utils/fuses.js").EncodeChildFusesInputObject;
|
|
404
381
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
405
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
406
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
407
382
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
408
383
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
409
384
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
385
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
386
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
410
387
|
}) => Promise<`0x${string}`>;
|
|
411
388
|
setPrimaryName: ({ name, address, resolverAddress, ...txArgs }: import("../wallet.js").SetPrimaryNameParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>) => Promise<`0x${string}`>;
|
|
412
389
|
setRecords: ({ name, resolverAddress, clearRecords, contentHash, texts, coins, abi, ...txArgs }: {
|
|
@@ -418,22 +395,22 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
418
395
|
coins?: Omit<import("../utils/index.js").EncodeSetAddrParameters, "namehash">[] | undefined;
|
|
419
396
|
abi?: Omit<import("../utils/index.js").EncodeSetAbiParameters, "namehash"> | undefined;
|
|
420
397
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
421
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
422
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
423
398
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
424
399
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
425
400
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
401
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
402
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
426
403
|
}) => Promise<`0x${string}`>;
|
|
427
404
|
setResolver: ({ name, contract, resolverAddress, ...txArgs }: {
|
|
428
405
|
name: string;
|
|
429
406
|
contract: "nameWrapper" | "registry";
|
|
430
407
|
resolverAddress: `0x${string}`;
|
|
431
408
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
432
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
433
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
434
409
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
435
410
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
436
411
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
412
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
413
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
437
414
|
}) => Promise<`0x${string}`>;
|
|
438
415
|
setTextRecord: ({ name, key, value, resolverAddress, ...txArgs }: {
|
|
439
416
|
name: string;
|
|
@@ -441,11 +418,11 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
441
418
|
value: string | null;
|
|
442
419
|
resolverAddress: `0x${string}`;
|
|
443
420
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
444
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
445
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
446
421
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
447
422
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
448
423
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
424
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
425
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
449
426
|
}) => Promise<`0x${string}`>;
|
|
450
427
|
transferName: ({ name, newOwnerAddress, contract, reclaim, asParent, ...txArgs }: import("../wallet.js").TransferNameParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>) => Promise<`0x${string}`>;
|
|
451
428
|
unwrapName: <TName extends string>({ name, newOwnerAddress, newRegistrantAddress, ...txArgs }: import("../wallet.js").UnwrapNameParameters<TName, ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>) => Promise<`0x${string}`>;
|
|
@@ -455,11 +432,25 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
455
432
|
fuses?: (import("../types.js").GetNameType<TName_1> extends infer T ? T extends import("../types.js").GetNameType<TName_1> ? T extends "eth-2ld" ? import("../utils/fuses.js").EncodeChildFusesInputObject : never : never : never) | undefined;
|
|
456
433
|
resolverAddress?: `0x${string}` | undefined;
|
|
457
434
|
account?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["account"] | undefined;
|
|
458
|
-
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
459
|
-
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
460
435
|
gasPrice?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
461
436
|
maxFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
462
437
|
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
438
|
+
gas?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["gas"] | undefined;
|
|
439
|
+
nonce?: import("viem").SendTransactionParameters<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, ChainWithEns<TChain>>["nonce"] | undefined;
|
|
463
440
|
}) => Promise<`0x${string}`>;
|
|
441
|
+
extend: <const client extends {
|
|
442
|
+
[x: string]: unknown;
|
|
443
|
+
account?: undefined;
|
|
444
|
+
batch?: undefined;
|
|
445
|
+
cacheTime?: undefined;
|
|
446
|
+
chain?: undefined;
|
|
447
|
+
key?: undefined;
|
|
448
|
+
name?: undefined;
|
|
449
|
+
pollingInterval?: undefined;
|
|
450
|
+
request?: undefined;
|
|
451
|
+
transport?: undefined;
|
|
452
|
+
type?: undefined;
|
|
453
|
+
uid?: undefined;
|
|
454
|
+
}>(fn: (client: Client<TTransport, ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, WalletRpcSchema, WalletActions<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>> & EnsWalletActions<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>>>) => client) => Client<TTransport, ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, WalletRpcSchema, { [K in keyof client]: client[K]; } & WalletActions<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>> & EnsWalletActions<ChainWithEns<TChain>, ParseAccount<TAccountOrAddress>>>;
|
|
464
455
|
};
|
|
465
456
|
//# sourceMappingURL=wallet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../src/clients/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEhF,MAAM,MAAM,qBAAqB,CAC/B,UAAU,SAAS,SAAS,EAC5B,MAAM,SAAS,KAAK,EACpB,iBAAiB,SAAS,OAAO,GAAG,OAAO,GAAG,SAAS,GACnD,OAAO,GACP,OAAO,GACP,SAAS,IACX,IAAI,CACN,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,iBAAiB,CAAC,EACnD,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,iBAAiB,GAAG,WAAW,CACvE,GAAG;IACF,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../src/clients/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEhF,MAAM,MAAM,qBAAqB,CAC/B,UAAU,SAAS,SAAS,EAC5B,MAAM,SAAS,KAAK,EACpB,iBAAiB,SAAS,OAAO,GAAG,OAAO,GAAG,SAAS,GACnD,OAAO,GACP,OAAO,GACP,SAAS,IACX,IAAI,CACN,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,iBAAiB,CAAC,EACnD,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,iBAAiB,GAAG,WAAW,CACvE,GAAG;IACF,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,eAAe,CACzB,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,YAAY,GAAG,YAAY,EAC1C,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,QAAQ,CACV,MAAM,CACJ,UAAU,EACV,MAAM,EACN,QAAQ,EACR,eAAe,EACf,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CACrE,CACF,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BjC,CAAA"}
|
package/dist/types/dns.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as getDnsImportData, type GetDnsImportDataParameters, type GetDnsImportDataReturnType, } from './functions/dns/getDnsImportData.js';
|
|
2
2
|
export { default as getDnsOwner, type GetDnsOwnerParameters, type GetDnsOwnerReturnType, } from './functions/dns/getDnsOwner.js';
|
|
3
|
-
export { default as importDnsName, type ImportDnsNameParameters, type ImportDnsNameReturnType, } from './functions/dns/importDnsName.js';
|
|
3
|
+
export { default as importDnsName, type ImportDnsNameDataParameters, type ImportDnsNameDataReturnType, type ImportDnsNameParameters, type ImportDnsNameReturnType, } from './functions/dns/importDnsName.js';
|
|
4
4
|
export type { Endpoint } from './functions/dns/types.js';
|
|
5
5
|
//# sourceMappingURL=dns.d.ts.map
|
package/dist/types/dns.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dns.d.ts","sourceRoot":"","sources":["../../src/dns.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAChC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,kCAAkC,CAAA;AACzC,YAAY,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA"}
|
|
1
|
+
{"version":3,"file":"dns.d.ts","sourceRoot":"","sources":["../../src/dns.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,gBAAgB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,GAChC,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,kCAAkC,CAAA;AACzC,YAAY,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "v3.0.0-beta.
|
|
1
|
+
export declare const version = "v3.0.0-beta.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -27,8 +27,12 @@ export type ImportDnsNameReturnType = Hash;
|
|
|
27
27
|
export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount extends Account | undefined>(wallet: {
|
|
28
28
|
account: TAccount;
|
|
29
29
|
batch?: {
|
|
30
|
-
multicall?: boolean |
|
|
30
|
+
multicall?: boolean | {
|
|
31
|
+
batchSize?: number | undefined;
|
|
32
|
+
wait?: number | undefined;
|
|
33
|
+
} | undefined;
|
|
31
34
|
} | undefined;
|
|
35
|
+
cacheTime: number;
|
|
32
36
|
chain: TChain;
|
|
33
37
|
key: string;
|
|
34
38
|
name: string;
|
|
@@ -37,33 +41,6 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
37
41
|
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
|
|
38
42
|
type: string;
|
|
39
43
|
uid: string;
|
|
40
|
-
extend: <TNextExtended extends {
|
|
41
|
-
account?: undefined;
|
|
42
|
-
batch?: undefined;
|
|
43
|
-
chain?: undefined;
|
|
44
|
-
key?: undefined;
|
|
45
|
-
name?: undefined;
|
|
46
|
-
pollingInterval?: undefined;
|
|
47
|
-
request?: undefined;
|
|
48
|
-
transport?: undefined;
|
|
49
|
-
type?: undefined;
|
|
50
|
-
uid?: undefined;
|
|
51
|
-
} & {
|
|
52
|
-
[key: string]: unknown;
|
|
53
|
-
} = {
|
|
54
|
-
account?: undefined;
|
|
55
|
-
batch?: undefined;
|
|
56
|
-
chain?: undefined;
|
|
57
|
-
key?: undefined;
|
|
58
|
-
name?: undefined;
|
|
59
|
-
pollingInterval?: undefined;
|
|
60
|
-
request?: undefined;
|
|
61
|
-
transport?: undefined;
|
|
62
|
-
type?: undefined;
|
|
63
|
-
uid?: undefined;
|
|
64
|
-
} & {
|
|
65
|
-
[key: string]: unknown;
|
|
66
|
-
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => import("viem").Narrow<TNextExtended>) => never;
|
|
67
44
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
68
45
|
deployContract: <TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
|
|
69
46
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
@@ -287,6 +264,20 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
287
264
|
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
288
265
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
289
266
|
writeContract: <TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TChain, TAccount, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
267
|
+
extend: <const client extends {
|
|
268
|
+
[x: string]: unknown;
|
|
269
|
+
account?: undefined;
|
|
270
|
+
batch?: undefined;
|
|
271
|
+
cacheTime?: undefined;
|
|
272
|
+
chain?: undefined;
|
|
273
|
+
key?: undefined;
|
|
274
|
+
name?: undefined;
|
|
275
|
+
pollingInterval?: undefined;
|
|
276
|
+
request?: undefined;
|
|
277
|
+
transport?: undefined;
|
|
278
|
+
type?: undefined;
|
|
279
|
+
uid?: undefined;
|
|
280
|
+
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => client) => import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<TChain, TAccount>>;
|
|
290
281
|
}, { name, dnsImportData, address, resolverAddress, }: ImportDnsNameDataParameters) => ImportDnsNameDataReturnType;
|
|
291
282
|
/**
|
|
292
283
|
* Creates a transaction to import a DNS name to ENS.
|
|
@@ -321,8 +312,12 @@ declare namespace importDnsName {
|
|
|
321
312
|
var makeFunctionData: <TChain extends ChainWithEns, TAccount extends Account | undefined>(wallet: {
|
|
322
313
|
account: TAccount;
|
|
323
314
|
batch?: {
|
|
324
|
-
multicall?: boolean |
|
|
315
|
+
multicall?: boolean | {
|
|
316
|
+
batchSize?: number | undefined;
|
|
317
|
+
wait?: number | undefined;
|
|
318
|
+
} | undefined;
|
|
325
319
|
} | undefined;
|
|
320
|
+
cacheTime: number;
|
|
326
321
|
chain: TChain;
|
|
327
322
|
key: string;
|
|
328
323
|
name: string;
|
|
@@ -331,33 +326,6 @@ declare namespace importDnsName {
|
|
|
331
326
|
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
|
|
332
327
|
type: string;
|
|
333
328
|
uid: string;
|
|
334
|
-
extend: <TNextExtended extends {
|
|
335
|
-
account?: undefined;
|
|
336
|
-
batch?: undefined;
|
|
337
|
-
chain?: undefined;
|
|
338
|
-
key?: undefined;
|
|
339
|
-
name?: undefined;
|
|
340
|
-
pollingInterval?: undefined;
|
|
341
|
-
request?: undefined;
|
|
342
|
-
transport?: undefined;
|
|
343
|
-
type?: undefined;
|
|
344
|
-
uid?: undefined;
|
|
345
|
-
} & {
|
|
346
|
-
[key: string]: unknown;
|
|
347
|
-
} = {
|
|
348
|
-
account?: undefined;
|
|
349
|
-
batch?: undefined;
|
|
350
|
-
chain?: undefined;
|
|
351
|
-
key?: undefined;
|
|
352
|
-
name?: undefined;
|
|
353
|
-
pollingInterval?: undefined;
|
|
354
|
-
request?: undefined;
|
|
355
|
-
transport?: undefined;
|
|
356
|
-
type?: undefined;
|
|
357
|
-
uid?: undefined;
|
|
358
|
-
} & {
|
|
359
|
-
[key: string]: unknown;
|
|
360
|
-
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => import("viem").Narrow<TNextExtended>) => never;
|
|
361
329
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
362
330
|
deployContract: <TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
|
|
363
331
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
@@ -581,6 +549,20 @@ declare namespace importDnsName {
|
|
|
581
549
|
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
582
550
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
583
551
|
writeContract: <TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TChain, TAccount, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
552
|
+
extend: <const client extends {
|
|
553
|
+
[x: string]: unknown;
|
|
554
|
+
account?: undefined;
|
|
555
|
+
batch?: undefined;
|
|
556
|
+
cacheTime?: undefined;
|
|
557
|
+
chain?: undefined;
|
|
558
|
+
key?: undefined;
|
|
559
|
+
name?: undefined;
|
|
560
|
+
pollingInterval?: undefined;
|
|
561
|
+
request?: undefined;
|
|
562
|
+
transport?: undefined;
|
|
563
|
+
type?: undefined;
|
|
564
|
+
uid?: undefined;
|
|
565
|
+
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => client) => import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<TChain, TAccount>>;
|
|
584
566
|
}, { name, dnsImportData, address, resolverAddress, }: ImportDnsNameDataParameters) => {
|
|
585
567
|
data: `0x${string}`;
|
|
586
568
|
to: `0x${string}`;
|