@ensdomains/ensjs 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/clients/public.js.map +1 -1
- package/dist/cjs/clients/subgraph.js.map +1 -1
- package/dist/cjs/clients/wallet.js.map +1 -1
- package/dist/cjs/contracts/addEnsContracts.js.map +1 -1
- package/dist/cjs/contracts/consts.js +74 -32
- package/dist/cjs/contracts/consts.js.map +1 -1
- package/dist/cjs/contracts/dnsRegistrar.js +65 -9
- package/dist/cjs/contracts/dnsRegistrar.js.map +1 -1
- package/dist/cjs/contracts/dnssecImpl.js +18 -16
- package/dist/cjs/contracts/dnssecImpl.js.map +1 -1
- package/dist/cjs/contracts/getChainContractAddress.js +5 -1
- package/dist/cjs/contracts/getChainContractAddress.js.map +1 -1
- package/dist/cjs/contracts/index.js +4 -3
- package/dist/cjs/contracts/index.js.map +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/functions/dns/getDnsImportData.js +22 -45
- package/dist/cjs/functions/dns/getDnsImportData.js.map +1 -1
- package/dist/cjs/functions/dns/importDnsName.js +2 -12
- package/dist/cjs/functions/dns/importDnsName.js.map +1 -1
- package/dist/cjs/functions/public/_getAbi.js +1 -2
- package/dist/cjs/functions/public/_getAbi.js.map +1 -1
- package/dist/cjs/functions/public/getAbiRecord.js +2 -2
- package/dist/cjs/functions/public/getAbiRecord.js.map +1 -1
- package/dist/cjs/functions/public/getRecords.js +2 -2
- package/dist/cjs/functions/public/getRecords.js.map +1 -1
- package/dist/cjs/utils/generateRecordCallArray.js +6 -3
- package/dist/cjs/utils/generateRecordCallArray.js.map +1 -1
- package/dist/cjs/utils/generateSupportedContentTypes.js +22 -0
- package/dist/cjs/utils/generateSupportedContentTypes.js.map +1 -0
- package/dist/cjs/utils/generateSupportedContentTypes.test.ts.js +20 -0
- package/dist/cjs/utils/generateSupportedContentTypes.test.ts.js.map +1 -0
- package/dist/cjs/utils/index.js +3 -1
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/registerHelpers.js +1 -1
- package/dist/cjs/utils/registerHelpers.js.map +1 -1
- package/dist/esm/clients/public.js.map +1 -1
- package/dist/esm/clients/subgraph.js.map +1 -1
- package/dist/esm/clients/wallet.js.map +1 -1
- package/dist/esm/contracts/addEnsContracts.js.map +1 -1
- package/dist/esm/contracts/consts.js +74 -32
- package/dist/esm/contracts/consts.js.map +1 -1
- package/dist/esm/contracts/dnsRegistrar.js +64 -8
- package/dist/esm/contracts/dnsRegistrar.js.map +1 -1
- package/dist/esm/contracts/dnssecImpl.js +17 -15
- package/dist/esm/contracts/dnssecImpl.js.map +1 -1
- package/dist/esm/contracts/getChainContractAddress.js +5 -1
- package/dist/esm/contracts/getChainContractAddress.js.map +1 -1
- package/dist/esm/contracts/index.js +2 -2
- package/dist/esm/contracts/index.js.map +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/functions/dns/getDnsImportData.js +25 -48
- package/dist/esm/functions/dns/getDnsImportData.js.map +1 -1
- package/dist/esm/functions/dns/importDnsName.js +3 -13
- package/dist/esm/functions/dns/importDnsName.js.map +1 -1
- package/dist/esm/functions/public/_getAbi.js +1 -7
- package/dist/esm/functions/public/_getAbi.js.map +1 -1
- package/dist/esm/functions/public/getAbiRecord.js +2 -2
- package/dist/esm/functions/public/getAbiRecord.js.map +1 -1
- package/dist/esm/functions/public/getRecords.js +2 -2
- package/dist/esm/functions/public/getRecords.js.map +1 -1
- package/dist/esm/utils/generateRecordCallArray.js +6 -3
- package/dist/esm/utils/generateRecordCallArray.js.map +1 -1
- package/dist/esm/utils/generateSupportedContentTypes.js +18 -0
- package/dist/esm/utils/generateSupportedContentTypes.js.map +1 -0
- package/dist/esm/utils/generateSupportedContentTypes.test.ts.js +18 -0
- package/dist/esm/utils/generateSupportedContentTypes.test.ts.js.map +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/registerHelpers.js +1 -1
- package/dist/esm/utils/registerHelpers.js.map +1 -1
- package/dist/types/clients/decorators/wallet.d.ts +12 -12
- package/dist/types/clients/public.d.ts +9 -8
- package/dist/types/clients/public.d.ts.map +1 -1
- package/dist/types/clients/subgraph.d.ts +4 -4
- package/dist/types/clients/subgraph.d.ts.map +1 -1
- package/dist/types/clients/wallet.d.ts +116 -116
- package/dist/types/clients/wallet.d.ts.map +1 -1
- package/dist/types/contracts/addEnsContracts.d.ts +2 -2
- package/dist/types/contracts/addEnsContracts.d.ts.map +1 -1
- package/dist/types/contracts/consts.d.ts +75 -34
- package/dist/types/contracts/consts.d.ts.map +1 -1
- package/dist/types/contracts/dnsRegistrar.d.ts +135 -6
- package/dist/types/contracts/dnsRegistrar.d.ts.map +1 -1
- package/dist/types/contracts/dnssecImpl.d.ts +14 -13
- package/dist/types/contracts/dnssecImpl.d.ts.map +1 -1
- package/dist/types/contracts/getChainContractAddress.d.ts +15 -7
- package/dist/types/contracts/getChainContractAddress.d.ts.map +1 -1
- package/dist/types/contracts/index.d.ts +2 -2
- package/dist/types/contracts/index.d.ts.map +1 -1
- package/dist/types/errors/version.d.ts +1 -1
- package/dist/types/functions/dns/getDnsImportData.d.ts +6 -8
- package/dist/types/functions/dns/getDnsImportData.d.ts.map +1 -1
- package/dist/types/functions/dns/importDnsName.d.ts +25 -25
- package/dist/types/functions/dns/importDnsName.d.ts.map +1 -1
- package/dist/types/functions/public/_getAbi.d.ts +8 -1
- package/dist/types/functions/public/_getAbi.d.ts.map +1 -1
- package/dist/types/functions/public/getAbiRecord.d.ts +1 -1
- package/dist/types/functions/public/getAbiRecord.d.ts.map +1 -1
- package/dist/types/functions/public/getRecords.d.ts +6 -9
- package/dist/types/functions/public/getRecords.d.ts.map +1 -1
- package/dist/types/functions/wallet/clearRecords.d.ts +24 -24
- package/dist/types/functions/wallet/commitName.d.ts +24 -24
- package/dist/types/functions/wallet/createSubname.d.ts +24 -24
- package/dist/types/functions/wallet/deleteSubname.d.ts +24 -24
- package/dist/types/functions/wallet/registerName.d.ts +24 -24
- package/dist/types/functions/wallet/renewNames.d.ts +24 -24
- package/dist/types/functions/wallet/setAbiRecord.d.ts +24 -24
- package/dist/types/functions/wallet/setAddressRecord.d.ts +24 -24
- package/dist/types/functions/wallet/setChildFuses.d.ts +24 -24
- package/dist/types/functions/wallet/setContentHashRecord.d.ts +24 -24
- package/dist/types/functions/wallet/setFuses.d.ts +24 -24
- package/dist/types/functions/wallet/setPrimaryName.d.ts +24 -24
- package/dist/types/functions/wallet/setRecords.d.ts +24 -24
- package/dist/types/functions/wallet/setResolver.d.ts +24 -24
- package/dist/types/functions/wallet/setTextRecord.d.ts +24 -24
- package/dist/types/functions/wallet/transferName.d.ts +24 -24
- package/dist/types/functions/wallet/unwrapName.d.ts +24 -24
- package/dist/types/functions/wallet/wrapName.d.ts +24 -24
- package/dist/types/types.d.ts +4 -0
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/encoders/encodeAbi.d.ts +1 -1
- package/dist/types/utils/encoders/encodeAbi.d.ts.map +1 -1
- package/dist/types/utils/generateRecordCallArray.d.ts +2 -2
- package/dist/types/utils/generateRecordCallArray.d.ts.map +1 -1
- package/dist/types/utils/generateSupportedContentTypes.d.ts +3 -0
- package/dist/types/utils/generateSupportedContentTypes.d.ts.map +1 -0
- package/dist/types/utils/generateSupportedContentTypes.test.ts.d.ts +2 -0
- package/dist/types/utils/generateSupportedContentTypes.test.ts.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/clients/public.ts +6 -4
- package/src/clients/subgraph.ts +6 -4
- package/src/clients/wallet.ts +19 -13
- package/src/contracts/addEnsContracts.ts +3 -3
- package/src/contracts/consts.ts +92 -37
- package/src/contracts/dnsRegistrar.ts +65 -8
- package/src/contracts/dnssecImpl.ts +17 -15
- package/src/contracts/getChainContractAddress.ts +22 -7
- package/src/contracts/index.ts +2 -1
- package/src/errors/version.ts +1 -1
- package/src/functions/dns/getDnsImportData.ts +32 -62
- package/src/functions/dns/importDnsName.ts +4 -14
- package/src/functions/public/_getAbi.ts +11 -8
- package/src/functions/public/getAbiRecord.ts +6 -2
- package/src/functions/public/getRecords.ts +23 -31
- package/src/types.ts +10 -0
- package/src/utils/encoders/encodeAbi.ts +1 -1
- package/src/utils/generateRecordCallArray.ts +6 -3
- package/src/utils/generateSupportedContentTypes.test.ts.ts +24 -0
- package/src/utils/generateSupportedContentTypes.ts +21 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/registerHelpers.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraph.d.ts","sourceRoot":"","sources":["../../../src/clients/subgraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,
|
|
1
|
+
{"version":3,"file":"subgraph.d.ts","sourceRoot":"","sources":["../../../src/clients/subgraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,SAAS,EACf,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EACV,sBAAsB,EACtB,YAAY,EACb,MAAM,wBAAwB,CAAA;AAC/B,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,sBAAsB,GAAG,sBAAsB,IAC5D,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,eAAe,EAAE,kBAAkB,CAAC,CAC3E,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBnC,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type Account, type Address, type
|
|
2
|
-
import type { ChainWithEns } from '../contracts/consts.js';
|
|
3
|
-
import type { Prettify } from '../types.js';
|
|
1
|
+
import { type Account, type Address, type Client, type ClientConfig, type ParseAccount, type Transport, type WalletActions, type WalletRpcSchema } from 'viem';
|
|
2
|
+
import type { ChainWithBaseContracts, ChainWithEns, CheckedChainWithEns } from '../contracts/consts.js';
|
|
3
|
+
import type { Assign, Prettify } from '../types.js';
|
|
4
4
|
import { type EnsWalletActions } from './decorators/wallet.js';
|
|
5
|
-
export type EnsWalletClientConfig<TTransport extends Transport, TChain extends
|
|
5
|
+
export type EnsWalletClientConfig<TTransport extends Transport, TChain extends ChainWithBaseContracts, TAccountOrAddress extends Account | Address | undefined = Account | Address | undefined> = Assign<Pick<ClientConfig<TTransport, TChain, TAccountOrAddress>, 'account' | 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'>, {
|
|
6
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
|
/**
|
|
10
10
|
* Creates an ENS Wallet Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
|
|
@@ -22,7 +22,7 @@ export type EnsWalletClient<TTransport extends Transport = Transport, TChain ext
|
|
|
22
22
|
* transport: custom(window.ethereum),
|
|
23
23
|
* })
|
|
24
24
|
*/
|
|
25
|
-
export declare const createEnsWalletClient: <TTransport extends Transport, TChain extends
|
|
25
|
+
export declare const createEnsWalletClient: <TTransport extends Transport, TChain extends ChainWithBaseContracts, 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
28
|
multicall?: boolean | {
|
|
@@ -31,7 +31,7 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
31
31
|
} | undefined;
|
|
32
32
|
} | undefined;
|
|
33
33
|
cacheTime: number;
|
|
34
|
-
chain:
|
|
34
|
+
chain: CheckedChainWithEns<TChain>;
|
|
35
35
|
key: string;
|
|
36
36
|
name: string;
|
|
37
37
|
pollingInterval: number;
|
|
@@ -40,20 +40,20 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
40
40
|
type: string;
|
|
41
41
|
uid: string;
|
|
42
42
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
43
|
-
deployContract: <const TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends Chain | undefined>(args: import("viem").DeployContractParameters<TAbi,
|
|
43
|
+
deployContract: <const TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, TChainOverride>) => Promise<`0x${string}`>;
|
|
44
44
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
45
45
|
getChainId: () => Promise<number>;
|
|
46
46
|
getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
|
|
47
|
-
prepareTransactionRequest: <TChainOverride_1 extends Chain | undefined>(args: import("viem").PrepareTransactionRequestParameters<
|
|
47
|
+
prepareTransactionRequest: <TChainOverride_1 extends import("viem").Chain | undefined>(args: import("viem").PrepareTransactionRequestParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, TChainOverride_1>) => Promise<import("viem").PrepareTransactionRequestReturnType>;
|
|
48
48
|
requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
|
|
49
49
|
requestPermissions: (args: {
|
|
50
50
|
[x: string]: Record<string, any>;
|
|
51
51
|
eth_accounts: Record<string, any>;
|
|
52
52
|
}) => Promise<import("viem").RequestPermissionsReturnType>;
|
|
53
53
|
sendRawTransaction: (args: import("viem/actions").SendRawTransactionParameters) => Promise<`0x${string}`>;
|
|
54
|
-
sendTransaction: <TChainOverride_2 extends Chain | undefined>(args: import("viem").SendTransactionParameters<
|
|
54
|
+
sendTransaction: <TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
55
55
|
signMessage: (args: import("viem").SignMessageParameters<ParseAccount<TAccountOrAddress>>) => Promise<`0x${string}`>;
|
|
56
|
-
signTransaction: <TChainOverride_3 extends Chain | undefined>(args: import("viem/actions").SignTransactionParameters<
|
|
56
|
+
signTransaction: <TChainOverride_3 extends import("viem").Chain | undefined>(args: import("viem/actions").SignTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, TChainOverride_3>) => Promise<`0x${string}`>;
|
|
57
57
|
signTypedData: <const TTypedData extends {
|
|
58
58
|
[key: string]: unknown;
|
|
59
59
|
} | {
|
|
@@ -63,16 +63,16 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
63
63
|
[x: `address[${string}]`]: undefined;
|
|
64
64
|
[x: `bool[${string}]`]: undefined;
|
|
65
65
|
[x: `bytes[${string}]`]: undefined;
|
|
66
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
67
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
68
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
69
66
|
[x: `bytes1[${string}]`]: undefined;
|
|
70
67
|
[x: `bytes2[${string}]`]: undefined;
|
|
71
68
|
[x: `bytes4[${string}]`]: undefined;
|
|
69
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
70
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
71
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
72
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
72
73
|
[x: `bytes5[${string}]`]: undefined;
|
|
73
74
|
[x: `bytes6[${string}]`]: undefined;
|
|
74
75
|
[x: `bytes7[${string}]`]: undefined;
|
|
75
|
-
[x: `bytes8[${string}]`]: undefined;
|
|
76
76
|
[x: `bytes9[${string}]`]: undefined;
|
|
77
77
|
[x: `bytes11[${string}]`]: undefined;
|
|
78
78
|
[x: `bytes12[${string}]`]: undefined;
|
|
@@ -96,8 +96,8 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
96
96
|
[x: `bytes31[${string}]`]: undefined;
|
|
97
97
|
[x: `bytes32[${string}]`]: undefined;
|
|
98
98
|
[x: `int[${string}]`]: undefined;
|
|
99
|
-
[x: `int16[${string}]`]: undefined;
|
|
100
99
|
[x: `int8[${string}]`]: undefined;
|
|
100
|
+
[x: `int16[${string}]`]: undefined;
|
|
101
101
|
[x: `int24[${string}]`]: undefined;
|
|
102
102
|
[x: `int32[${string}]`]: undefined;
|
|
103
103
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -129,8 +129,8 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
129
129
|
[x: `int248[${string}]`]: undefined;
|
|
130
130
|
[x: `int256[${string}]`]: undefined;
|
|
131
131
|
[x: `uint[${string}]`]: undefined;
|
|
132
|
-
[x: `uint16[${string}]`]: undefined;
|
|
133
132
|
[x: `uint8[${string}]`]: undefined;
|
|
133
|
+
[x: `uint16[${string}]`]: undefined;
|
|
134
134
|
[x: `uint24[${string}]`]: undefined;
|
|
135
135
|
[x: `uint32[${string}]`]: undefined;
|
|
136
136
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -165,16 +165,16 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
165
165
|
address?: undefined;
|
|
166
166
|
bool?: undefined;
|
|
167
167
|
bytes?: undefined;
|
|
168
|
-
bytes3?: undefined;
|
|
169
|
-
bytes10?: undefined;
|
|
170
|
-
bytes16?: undefined;
|
|
171
168
|
bytes1?: undefined;
|
|
172
169
|
bytes2?: undefined;
|
|
173
170
|
bytes4?: undefined;
|
|
171
|
+
bytes8?: undefined;
|
|
172
|
+
bytes10?: undefined;
|
|
173
|
+
bytes16?: undefined;
|
|
174
|
+
bytes3?: undefined;
|
|
174
175
|
bytes5?: undefined;
|
|
175
176
|
bytes6?: undefined;
|
|
176
177
|
bytes7?: undefined;
|
|
177
|
-
bytes8?: undefined;
|
|
178
178
|
bytes9?: undefined;
|
|
179
179
|
bytes11?: undefined;
|
|
180
180
|
bytes12?: undefined;
|
|
@@ -197,8 +197,8 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
197
197
|
bytes30?: undefined;
|
|
198
198
|
bytes31?: undefined;
|
|
199
199
|
bytes32?: undefined;
|
|
200
|
-
int16?: undefined;
|
|
201
200
|
int8?: undefined;
|
|
201
|
+
int16?: undefined;
|
|
202
202
|
int24?: undefined;
|
|
203
203
|
int32?: undefined;
|
|
204
204
|
int40?: undefined;
|
|
@@ -229,8 +229,8 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
229
229
|
int240?: undefined;
|
|
230
230
|
int248?: undefined;
|
|
231
231
|
int256?: undefined;
|
|
232
|
-
uint16?: undefined;
|
|
233
232
|
uint8?: undefined;
|
|
233
|
+
uint16?: undefined;
|
|
234
234
|
uint24?: undefined;
|
|
235
235
|
uint32?: undefined;
|
|
236
236
|
uint40?: undefined;
|
|
@@ -264,16 +264,16 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
264
264
|
}, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, ParseAccount<TAccountOrAddress>>) => Promise<`0x${string}`>;
|
|
265
265
|
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
266
266
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
267
|
-
writeContract: <const TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_4 extends Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName,
|
|
267
|
+
writeContract: <const TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_4 extends import("viem").Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, TChainOverride_4>) => Promise<`0x${string}`>;
|
|
268
268
|
clearRecords: ({ name, resolverAddress, ...txArgs }: {
|
|
269
269
|
name: string;
|
|
270
270
|
resolverAddress: `0x${string}`;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
271
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
272
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
273
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
274
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
275
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
276
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
277
277
|
}) => Promise<`0x${string}`>;
|
|
278
278
|
commitName: ({ name, owner, duration, secret, resolverAddress, records, reverseRecord, fuses, ...txArgs }: {
|
|
279
279
|
name: string;
|
|
@@ -286,28 +286,28 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
286
286
|
contentHash?: string | null | undefined;
|
|
287
287
|
texts?: Omit<import("../utils/index.js").EncodeSetTextParameters, "namehash">[] | undefined;
|
|
288
288
|
coins?: Omit<import("../utils/index.js").EncodeSetAddrParameters, "namehash">[] | undefined;
|
|
289
|
-
abi?: import("../utils/index.js").EncodedAbi | undefined;
|
|
289
|
+
abi?: import("../utils/index.js").EncodedAbi | import("../utils/index.js").EncodedAbi[] | undefined;
|
|
290
290
|
} | undefined;
|
|
291
291
|
reverseRecord?: boolean | undefined;
|
|
292
292
|
fuses?: import("../utils/fuses.js").EncodeChildFusesInputObject | undefined;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
293
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
294
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
295
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
296
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
297
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
298
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
299
299
|
}) => Promise<`0x${string}`>;
|
|
300
|
-
createSubname: ({ name, contract, owner, resolverAddress, expiry, fuses, ...txArgs }: import("../wallet.js").CreateSubnameParameters<
|
|
300
|
+
createSubname: ({ name, contract, owner, resolverAddress, expiry, fuses, ...txArgs }: import("../wallet.js").CreateSubnameParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>) => Promise<`0x${string}`>;
|
|
301
301
|
deleteSubname: ({ name, contract, asOwner, ...txArgs }: {
|
|
302
302
|
name: string;
|
|
303
303
|
contract: "nameWrapper" | "registry";
|
|
304
304
|
asOwner?: boolean | undefined;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
305
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
306
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
307
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
308
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
309
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
310
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
311
311
|
}) => Promise<`0x${string}`>;
|
|
312
312
|
registerName: ({ name, owner, duration, secret, resolverAddress, records, reverseRecord, fuses, value, ...txArgs }: {
|
|
313
313
|
name: string;
|
|
@@ -320,85 +320,85 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
320
320
|
contentHash?: string | null | undefined;
|
|
321
321
|
texts?: Omit<import("../utils/index.js").EncodeSetTextParameters, "namehash">[] | undefined;
|
|
322
322
|
coins?: Omit<import("../utils/index.js").EncodeSetAddrParameters, "namehash">[] | undefined;
|
|
323
|
-
abi?: import("../utils/index.js").EncodedAbi | undefined;
|
|
323
|
+
abi?: import("../utils/index.js").EncodedAbi | import("../utils/index.js").EncodedAbi[] | undefined;
|
|
324
324
|
} | undefined;
|
|
325
325
|
reverseRecord?: boolean | undefined;
|
|
326
326
|
fuses?: import("../utils/fuses.js").EncodeChildFusesInputObject | undefined;
|
|
327
327
|
value: bigint;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
328
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
329
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
330
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
331
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
332
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
333
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
334
334
|
}) => Promise<`0x${string}`>;
|
|
335
335
|
renewNames: ({ nameOrNames, duration, value, ...txArgs }: {
|
|
336
336
|
nameOrNames: string | string[];
|
|
337
337
|
duration: number | bigint;
|
|
338
338
|
value: bigint;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
339
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
340
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
341
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
342
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
343
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
344
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
345
345
|
}) => Promise<`0x${string}`>;
|
|
346
346
|
setAbiRecord: ({ name, encodedAbi, resolverAddress, ...txArgs }: {
|
|
347
347
|
name: string;
|
|
348
348
|
encodedAbi: import("../utils/index.js").EncodedAbi;
|
|
349
349
|
resolverAddress: `0x${string}`;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
350
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
351
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
352
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
353
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
354
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
355
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
356
356
|
}) => Promise<`0x${string}`>;
|
|
357
357
|
setAddressRecord: ({ name, coin, value, resolverAddress, ...txArgs }: {
|
|
358
358
|
name: string;
|
|
359
359
|
coin: string | number;
|
|
360
360
|
value: string | null;
|
|
361
361
|
resolverAddress: `0x${string}`;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
362
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
363
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
364
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
365
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
366
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
367
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
368
368
|
}) => Promise<`0x${string}`>;
|
|
369
369
|
setChildFuses: ({ name, fuses, expiry, ...txArgs }: {
|
|
370
370
|
name: string;
|
|
371
371
|
fuses: import("../utils/fuses.js").EncodeFusesInputObject;
|
|
372
372
|
expiry?: number | bigint | undefined;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
373
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
374
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
375
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
376
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
377
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
378
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
379
379
|
}) => Promise<`0x${string}`>;
|
|
380
380
|
setContentHashRecord: ({ name, contentHash, resolverAddress, ...txArgs }: {
|
|
381
381
|
name: string;
|
|
382
382
|
contentHash: string | null;
|
|
383
383
|
resolverAddress: `0x${string}`;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
384
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
385
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
386
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
387
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
388
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
389
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
390
390
|
}) => Promise<`0x${string}`>;
|
|
391
391
|
setFuses: ({ name, fuses, ...txArgs }: {
|
|
392
392
|
name: string;
|
|
393
393
|
fuses: import("../utils/fuses.js").EncodeChildFusesInputObject;
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
394
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
395
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
396
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
397
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
398
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
399
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
400
400
|
}) => Promise<`0x${string}`>;
|
|
401
|
-
setPrimaryName: ({ name, address, resolverAddress, ...txArgs }: import("../wallet.js").SetPrimaryNameParameters<
|
|
401
|
+
setPrimaryName: ({ name, address, resolverAddress, ...txArgs }: import("../wallet.js").SetPrimaryNameParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>) => Promise<`0x${string}`>;
|
|
402
402
|
setRecords: ({ name, resolverAddress, clearRecords, contentHash, texts, coins, abi, ...txArgs }: {
|
|
403
403
|
name: string;
|
|
404
404
|
resolverAddress: `0x${string}`;
|
|
@@ -406,50 +406,50 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
406
406
|
contentHash?: string | null | undefined;
|
|
407
407
|
texts?: Omit<import("../utils/index.js").EncodeSetTextParameters, "namehash">[] | undefined;
|
|
408
408
|
coins?: Omit<import("../utils/index.js").EncodeSetAddrParameters, "namehash">[] | undefined;
|
|
409
|
-
abi?: import("../utils/index.js").EncodedAbi | undefined;
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
409
|
+
abi?: import("../utils/index.js").EncodedAbi | import("../utils/index.js").EncodedAbi[] | undefined;
|
|
410
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
411
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
412
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
413
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
414
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
415
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
416
416
|
}) => Promise<`0x${string}`>;
|
|
417
417
|
setResolver: ({ name, contract, resolverAddress, ...txArgs }: {
|
|
418
418
|
name: string;
|
|
419
419
|
contract: "nameWrapper" | "registry";
|
|
420
420
|
resolverAddress: `0x${string}`;
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
421
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
422
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
423
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
424
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
425
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
426
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
427
427
|
}) => Promise<`0x${string}`>;
|
|
428
428
|
setTextRecord: ({ name, key, value, resolverAddress, ...txArgs }: {
|
|
429
429
|
name: string;
|
|
430
430
|
key: string;
|
|
431
431
|
value: string | null;
|
|
432
432
|
resolverAddress: `0x${string}`;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
433
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
434
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
435
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
436
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
437
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
438
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
439
439
|
}) => Promise<`0x${string}`>;
|
|
440
|
-
transferName: ({ name, newOwnerAddress, contract, reclaim, asParent, ...txArgs }: import("../wallet.js").TransferNameParameters<
|
|
441
|
-
unwrapName: <TName extends string>({ name, newOwnerAddress, newRegistrantAddress, ...txArgs }: import("../wallet.js").UnwrapNameParameters<TName,
|
|
440
|
+
transferName: ({ name, newOwnerAddress, contract, reclaim, asParent, ...txArgs }: import("../wallet.js").TransferNameParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>) => Promise<`0x${string}`>;
|
|
441
|
+
unwrapName: <TName extends string>({ name, newOwnerAddress, newRegistrantAddress, ...txArgs }: import("../wallet.js").UnwrapNameParameters<TName, CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>) => Promise<`0x${string}`>;
|
|
442
442
|
wrapName: <TName_1 extends string>({ name, newOwnerAddress, fuses, resolverAddress, ...txArgs }: {
|
|
443
443
|
name: TName_1;
|
|
444
444
|
newOwnerAddress: `0x${string}`;
|
|
445
445
|
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;
|
|
446
446
|
resolverAddress?: `0x${string}` | undefined;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
447
|
+
gasPrice?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gasPrice"] | undefined;
|
|
448
|
+
maxFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxFeePerGas"] | undefined;
|
|
449
|
+
maxPriorityFeePerGas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["maxPriorityFeePerGas"] | undefined;
|
|
450
|
+
gas?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["gas"] | undefined;
|
|
451
|
+
nonce?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["nonce"] | undefined;
|
|
452
|
+
account?: import("viem").SendTransactionParameters<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, CheckedChainWithEns<TChain>>["account"] | undefined;
|
|
453
453
|
}) => Promise<`0x${string}`>;
|
|
454
454
|
extend: <const client extends {
|
|
455
455
|
[x: string]: unknown;
|
|
@@ -464,6 +464,6 @@ export declare const createEnsWalletClient: <TTransport extends Transport, TChai
|
|
|
464
464
|
transport?: undefined;
|
|
465
465
|
type?: undefined;
|
|
466
466
|
uid?: undefined;
|
|
467
|
-
}>(fn: (client: Client<TTransport,
|
|
467
|
+
}>(fn: (client: Client<TTransport, CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, WalletRpcSchema, WalletActions<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>> & EnsWalletActions<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>>>) => client) => Client<TTransport, CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>, WalletRpcSchema, { [K in keyof client]: client[K]; } & WalletActions<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>> & EnsWalletActions<CheckedChainWithEns<TChain>, ParseAccount<TAccountOrAddress>>>;
|
|
468
468
|
};
|
|
469
469
|
//# 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,
|
|
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,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EACV,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACpB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEhF,MAAM,MAAM,qBAAqB,CAC/B,UAAU,SAAS,SAAS,EAC5B,MAAM,SAAS,sBAAsB,EACrC,iBAAiB,SAAS,OAAO,GAAG,OAAO,GAAG,SAAS,GACnD,OAAO,GACP,OAAO,GACP,SAAS,IACX,MAAM,CACR,IAAI,CACF,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,iBAAiB,CAAC,EACnD,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,iBAAiB,GAAG,WAAW,CACvE,EACD;IACE,KAAK,EAAE,MAAM,CAAA;CACd,CACF,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Chain } from 'viem';
|
|
2
|
-
import { type
|
|
2
|
+
import { type CheckedChainWithEns } from './consts.js';
|
|
3
3
|
/**
|
|
4
4
|
* Adds ENS contract addresses to the viem chain
|
|
5
5
|
* @param chain - The viem {@link Chain} object to add the ENS contracts to
|
|
@@ -14,5 +14,5 @@ import { type ChainWithEns } from './consts.js';
|
|
|
14
14
|
* transport: http(),
|
|
15
15
|
* })
|
|
16
16
|
*/
|
|
17
|
-
export declare const addEnsContracts: <TChain extends Chain>(chain: TChain) =>
|
|
17
|
+
export declare const addEnsContracts: <const TChain extends Chain>(chain: TChain) => CheckedChainWithEns<TChain>;
|
|
18
18
|
//# sourceMappingURL=addEnsContracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addEnsContracts.d.ts","sourceRoot":"","sources":["../../../src/contracts/addEnsContracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAA;AAEjC,OAAO,EAIL,KAAK,
|
|
1
|
+
{"version":3,"file":"addEnsContracts.d.ts","sourceRoot":"","sources":["../../../src/contracts/addEnsContracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAA;AAEjC,OAAO,EAIL,KAAK,mBAAmB,EAEzB,MAAM,aAAa,CAAA;AAEpB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,4EAiB3B,CAAA"}
|