@ensdomains/ensjs 3.0.0-beta.2 → 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/contracts/consts.js +46 -1
- package/dist/cjs/contracts/consts.js.map +1 -1
- package/dist/cjs/dns.js.map +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/errors/version.js.map +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/contracts/consts.js +46 -1
- package/dist/esm/contracts/consts.js.map +1 -1
- package/dist/esm/dns.js.map +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/errors/version.js.map +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 +31 -40
- 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 +58 -67
- package/dist/types/clients/wallet.d.ts.map +1 -1
- package/dist/types/contracts/consts.d.ts +45 -2
- package/dist/types/contracts/consts.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/errors/version.d.ts.map +1 -1
- package/dist/types/functions/dns/importDnsName.d.ts +62 -80
- package/dist/types/functions/dns/importDnsName.d.ts.map +1 -1
- package/dist/types/functions/wallet/commitName.d.ts +62 -80
- package/dist/types/functions/wallet/commitName.d.ts.map +1 -1
- package/dist/types/functions/wallet/createSubname.d.ts +62 -80
- package/dist/types/functions/wallet/createSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/deleteSubname.d.ts +62 -80
- package/dist/types/functions/wallet/deleteSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/registerName.d.ts +62 -80
- package/dist/types/functions/wallet/registerName.d.ts.map +1 -1
- package/dist/types/functions/wallet/renewNames.d.ts +62 -80
- package/dist/types/functions/wallet/renewNames.d.ts.map +1 -1
- package/dist/types/functions/wallet/setAbiRecord.d.ts +62 -80
- package/dist/types/functions/wallet/setAbiRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setAddressRecord.d.ts +62 -80
- package/dist/types/functions/wallet/setAddressRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setChildFuses.d.ts +62 -80
- package/dist/types/functions/wallet/setChildFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setContentHashRecord.d.ts +62 -80
- package/dist/types/functions/wallet/setContentHashRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setFuses.d.ts +62 -80
- package/dist/types/functions/wallet/setFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setPrimaryName.d.ts +62 -80
- package/dist/types/functions/wallet/setPrimaryName.d.ts.map +1 -1
- package/dist/types/functions/wallet/setRecords.d.ts +62 -80
- package/dist/types/functions/wallet/setRecords.d.ts.map +1 -1
- package/dist/types/functions/wallet/setResolver.d.ts +62 -80
- package/dist/types/functions/wallet/setResolver.d.ts.map +1 -1
- package/dist/types/functions/wallet/setTextRecord.d.ts +62 -80
- package/dist/types/functions/wallet/setTextRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/transferName.d.ts +63 -81
- package/dist/types/functions/wallet/transferName.d.ts.map +1 -1
- package/dist/types/functions/wallet/unwrapName.d.ts +62 -80
- package/dist/types/functions/wallet/unwrapName.d.ts.map +1 -1
- package/dist/types/functions/wallet/wrapName.d.ts +62 -80
- 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/contracts/consts.ts +51 -12
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../../src/clients/decorators/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAmB,EACjB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,sCAAsC,CAAA;AAC7C,OAAsB,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC7B,MAAM,yCAAyC,CAAA;AAChD,OAAsB,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC7B,MAAM,yCAAyC,CAAA;AAChD,OAAqB,EACnB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC5B,MAAM,wCAAwC,CAAA;AAC/C,OAAmB,EACjB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,sCAAsC,CAAA;AAC7C,OAAqB,EACnB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC5B,MAAM,wCAAwC,CAAA;AAC/C,OAAyB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAChC,MAAM,4CAA4C,CAAA;AACnD,OAAs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J,eAAe,EACf,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,GAAG,MAAM,EACV,EAAE,sBAAsB,CACvB,MAAM,EACN,QAAQ,EACR,MAAM,CACP,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAA;IACrC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,UAAU,EAAE,CAAC,KAAK,SAAS,MAAM,EAAE,EACjC,IAAI,EACJ,eAAe,EACf,oBAAoB,EACpB,GAAG,MAAM,EACV,EAAE,oBAAoB,CACrB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,MAAM,CACP,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAA;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,EAAE,CAAC,KAAK,SAAS,MAAM,EAAE,EAC/B,IAAI,EACJ,eAAe,EACf,KAAK,EACL,eAAe,EACf,GAAG,MAAM,EACV,EAAE,kBAAkB,CACnB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,MAAM,CACP,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAA;CAClC,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAyB3B,CAAA"}
|
|
@@ -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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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>;
|
|
@@ -83,17 +60,17 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
83
60
|
[x: `address[${string}]`]: undefined;
|
|
84
61
|
[x: `bool[${string}]`]: undefined;
|
|
85
62
|
[x: `bytes[${string}]`]: undefined;
|
|
86
|
-
[x: `
|
|
87
|
-
[x: `
|
|
63
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
64
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
88
65
|
[x: `bytes16[${string}]`]: undefined;
|
|
89
66
|
[x: `bytes1[${string}]`]: undefined;
|
|
90
|
-
[x: `
|
|
67
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
91
68
|
[x: `bytes4[${string}]`]: undefined;
|
|
92
69
|
[x: `bytes5[${string}]`]: undefined;
|
|
93
70
|
[x: `bytes6[${string}]`]: undefined;
|
|
94
71
|
[x: `bytes7[${string}]`]: undefined;
|
|
72
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
95
73
|
[x: `bytes9[${string}]`]: undefined;
|
|
96
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
97
74
|
[x: `bytes11[${string}]`]: undefined;
|
|
98
75
|
[x: `bytes12[${string}]`]: undefined;
|
|
99
76
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -116,8 +93,8 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
116
93
|
[x: `bytes31[${string}]`]: undefined;
|
|
117
94
|
[x: `bytes32[${string}]`]: undefined;
|
|
118
95
|
[x: `int[${string}]`]: undefined;
|
|
119
|
-
[x: `int8[${string}]`]: undefined;
|
|
120
96
|
[x: `int16[${string}]`]: undefined;
|
|
97
|
+
[x: `int8[${string}]`]: undefined;
|
|
121
98
|
[x: `int24[${string}]`]: undefined;
|
|
122
99
|
[x: `int32[${string}]`]: undefined;
|
|
123
100
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -149,8 +126,8 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
149
126
|
[x: `int248[${string}]`]: undefined;
|
|
150
127
|
[x: `int256[${string}]`]: undefined;
|
|
151
128
|
[x: `uint[${string}]`]: undefined;
|
|
152
|
-
[x: `uint8[${string}]`]: undefined;
|
|
153
129
|
[x: `uint16[${string}]`]: undefined;
|
|
130
|
+
[x: `uint8[${string}]`]: undefined;
|
|
154
131
|
[x: `uint24[${string}]`]: undefined;
|
|
155
132
|
[x: `uint32[${string}]`]: undefined;
|
|
156
133
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -185,17 +162,17 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
185
162
|
address?: undefined;
|
|
186
163
|
bool?: undefined;
|
|
187
164
|
bytes?: undefined;
|
|
188
|
-
|
|
189
|
-
|
|
165
|
+
bytes3?: undefined;
|
|
166
|
+
bytes10?: undefined;
|
|
190
167
|
bytes16?: undefined;
|
|
191
168
|
bytes1?: undefined;
|
|
192
|
-
|
|
169
|
+
bytes2?: undefined;
|
|
193
170
|
bytes4?: undefined;
|
|
194
171
|
bytes5?: undefined;
|
|
195
172
|
bytes6?: undefined;
|
|
196
173
|
bytes7?: undefined;
|
|
174
|
+
bytes8?: undefined;
|
|
197
175
|
bytes9?: undefined;
|
|
198
|
-
bytes10?: undefined;
|
|
199
176
|
bytes11?: undefined;
|
|
200
177
|
bytes12?: undefined;
|
|
201
178
|
bytes13?: undefined;
|
|
@@ -217,8 +194,8 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
217
194
|
bytes30?: undefined;
|
|
218
195
|
bytes31?: undefined;
|
|
219
196
|
bytes32?: undefined;
|
|
220
|
-
int8?: undefined;
|
|
221
197
|
int16?: undefined;
|
|
198
|
+
int8?: undefined;
|
|
222
199
|
int24?: undefined;
|
|
223
200
|
int32?: undefined;
|
|
224
201
|
int40?: undefined;
|
|
@@ -249,8 +226,8 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
249
226
|
int240?: undefined;
|
|
250
227
|
int248?: undefined;
|
|
251
228
|
int256?: undefined;
|
|
252
|
-
uint8?: undefined;
|
|
253
229
|
uint16?: undefined;
|
|
230
|
+
uint8?: undefined;
|
|
254
231
|
uint24?: undefined;
|
|
255
232
|
uint32?: undefined;
|
|
256
233
|
uint40?: undefined;
|
|
@@ -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,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