@ensdomains/ensjs 3.0.0-beta.8 → 3.0.0-beta.9
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/errors/version.js +1 -1
- package/dist/cjs/functions/public/_getAddr.js +7 -19
- package/dist/cjs/functions/public/_getAddr.js.map +1 -1
- package/dist/cjs/functions/public/getName.js.map +1 -1
- package/dist/cjs/functions/public/getRecords.js.map +1 -1
- package/dist/cjs/functions/public/getResolver.js.map +1 -1
- package/dist/cjs/functions/public/getWrapperData.js.map +1 -1
- package/dist/cjs/functions/public/getWrapperName.js.map +1 -1
- package/dist/cjs/functions/public/multicallWrapper.js.map +1 -1
- package/dist/cjs/functions/public/universalWrapper.js.map +1 -1
- package/dist/cjs/functions/subgraph/getNameHistory.js +3 -2
- package/dist/cjs/functions/subgraph/getNameHistory.js.map +1 -1
- package/dist/cjs/utils/encoders/encodeSetAddr.js +5 -16
- package/dist/cjs/utils/encoders/encodeSetAddr.js.map +1 -1
- package/dist/cjs/utils/normaliseCoinId.js +22 -2
- package/dist/cjs/utils/normaliseCoinId.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/errors/version.js +1 -1
- package/dist/esm/functions/public/_getAddr.js +9 -21
- package/dist/esm/functions/public/_getAddr.js.map +1 -1
- package/dist/esm/functions/public/getName.js.map +1 -1
- package/dist/esm/functions/public/getRecords.js.map +1 -1
- package/dist/esm/functions/public/getResolver.js.map +1 -1
- package/dist/esm/functions/public/getWrapperData.js.map +1 -1
- package/dist/esm/functions/public/getWrapperName.js.map +1 -1
- package/dist/esm/functions/public/multicallWrapper.js.map +1 -1
- package/dist/esm/functions/public/universalWrapper.js.map +1 -1
- package/dist/esm/functions/subgraph/getNameHistory.js +4 -3
- package/dist/esm/functions/subgraph/getNameHistory.js.map +1 -1
- package/dist/esm/utils/encoders/encodeSetAddr.js +5 -16
- package/dist/esm/utils/encoders/encodeSetAddr.js.map +1 -1
- package/dist/esm/utils/normaliseCoinId.js +20 -1
- package/dist/esm/utils/normaliseCoinId.js.map +1 -1
- package/dist/types/clients/public.d.ts +4 -240
- package/dist/types/clients/public.d.ts.map +1 -1
- package/dist/types/clients/subgraph.d.ts +4 -240
- package/dist/types/clients/subgraph.d.ts.map +1 -1
- package/dist/types/errors/version.d.ts +1 -1
- package/dist/types/functions/dns/importDnsName.d.ts +1 -4
- package/dist/types/functions/dns/importDnsName.d.ts.map +1 -1
- package/dist/types/functions/public/_getAddr.d.ts.map +1 -1
- package/dist/types/functions/subgraph/getNameHistory.d.ts.map +1 -1
- package/dist/types/functions/wallet/clearRecords.d.ts +1 -4
- package/dist/types/functions/wallet/clearRecords.d.ts.map +1 -1
- package/dist/types/functions/wallet/commitName.d.ts +1 -4
- package/dist/types/functions/wallet/commitName.d.ts.map +1 -1
- package/dist/types/functions/wallet/createSubname.d.ts +1 -4
- package/dist/types/functions/wallet/createSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/deleteSubname.d.ts +1 -4
- package/dist/types/functions/wallet/deleteSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/setAbiRecord.d.ts +1 -4
- package/dist/types/functions/wallet/setAbiRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setAddressRecord.d.ts +1 -4
- package/dist/types/functions/wallet/setAddressRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setChildFuses.d.ts +1 -4
- package/dist/types/functions/wallet/setChildFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setContentHashRecord.d.ts +1 -4
- package/dist/types/functions/wallet/setContentHashRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setFuses.d.ts +1 -4
- package/dist/types/functions/wallet/setFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setPrimaryName.d.ts +1 -4
- package/dist/types/functions/wallet/setPrimaryName.d.ts.map +1 -1
- package/dist/types/functions/wallet/setRecords.d.ts +1 -4
- package/dist/types/functions/wallet/setRecords.d.ts.map +1 -1
- package/dist/types/functions/wallet/setResolver.d.ts +1 -4
- package/dist/types/functions/wallet/setResolver.d.ts.map +1 -1
- package/dist/types/functions/wallet/setTextRecord.d.ts +1 -4
- package/dist/types/functions/wallet/setTextRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/transferName.d.ts +1 -4
- package/dist/types/functions/wallet/transferName.d.ts.map +1 -1
- package/dist/types/functions/wallet/unwrapName.d.ts +1 -4
- package/dist/types/functions/wallet/unwrapName.d.ts.map +1 -1
- package/dist/types/functions/wallet/wrapName.d.ts +1 -4
- package/dist/types/functions/wallet/wrapName.d.ts.map +1 -1
- package/dist/types/types.d.ts +3 -1
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils/encoders/encodeSetAddr.d.ts.map +1 -1
- package/dist/types/utils/normaliseCoinId.d.ts +2 -0
- package/dist/types/utils/normaliseCoinId.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/clients/public.ts +2 -1
- package/src/clients/subgraph.ts +2 -1
- package/src/errors/version.ts +1 -1
- package/src/functions/public/_getAddr.ts +15 -30
- package/src/functions/public/getName.ts +1 -1
- package/src/functions/public/getRecords.ts +1 -1
- package/src/functions/public/getResolver.ts +1 -1
- package/src/functions/public/getWrapperData.ts +1 -1
- package/src/functions/public/getWrapperName.ts +1 -1
- package/src/functions/public/multicallWrapper.ts +1 -1
- package/src/functions/public/universalWrapper.ts +1 -1
- package/src/functions/subgraph/getNameHistory.ts +4 -3
- package/src/types.ts +6 -3
- package/src/utils/encoders/encodeSetAddr.ts +5 -16
- package/src/utils/normaliseCoinId.ts +26 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNameHistory.js","sourceRoot":"","sources":["../../../../src/functions/subgraph/getNameHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getNameH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KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;gBAC3D,IAAI,CAAC,MAAM,EAAE;oBACX,OAAO;wBACL,GAAG,MAAM;wBACT,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,KAAK;wBACd,IAAI,EAAE,SAAS;qBAChB,CAAA;iBACF;gBACD,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE;oBAC5B,OAAO;wBACL,GAAG,MAAM;wBACT,QAAQ,EAAE,MAAM,CAAC,IAAI;wBACrB,OAAO,EAAE,IAAI;wBACb,IAAI,EAAE,IAAI;qBACX,CAAA;iBACF;gBACD,OAAO;oBACL,GAAG,MAAM;oBACT,QAAQ,EAAE,MAAM,CAAC,IAAI;oBACrB,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;iBAC3C,CAAA;aACF;YACD,KAAK,oBAAoB,CAAC,CAAC;gBACzB,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,iBAAiB,CAC9D,KAAK,CAAC,IAAI,CACX,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;gBAC1C,OAAO;oBACL,GAAG,KAAK;oBACR,OAAO,EAAE,WAAW,KAAK,IAAI;oBAC7B,WAAW;oBACX,YAAY;iBACb,CAAA;aACF;YACD;gBACE,OAAO,KAAK,CAAA;SACf;IACH,CAAC,CACF,CAAA;IAED,OAAO;QACL,YAAY;QACZ,kBAAkB,EAAE,kBAAkB,IAAI,IAAI;QAC9C,cAAc,EAAE,cAAc,IAAI,IAAI;KACvC,CAAA;AACH,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import { formatsByCoinType, formatsByName } from '@ensdomains/address-encoder';
|
|
2
1
|
import { bytesToHex, encodeFunctionData } from 'viem';
|
|
3
2
|
import { publicResolverSetAddrSnippet } from '../../contracts/publicResolver.js';
|
|
3
|
+
import { getCoderFromCoin } from '../normaliseCoinId.js';
|
|
4
4
|
export const encodeSetAddr = ({ namehash, coin, value, }) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
else if (!Number.isNaN(parseInt(coin))) {
|
|
10
|
-
coinTypeInstance = formatsByCoinType[parseInt(coin)];
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
coinTypeInstance = formatsByName[coin.toUpperCase()];
|
|
14
|
-
}
|
|
15
|
-
const inputCoinType = coinTypeInstance.coinType;
|
|
16
|
-
let encodedAddress = value
|
|
17
|
-
? coinTypeInstance.decoder(value)
|
|
18
|
-
: '0x';
|
|
5
|
+
const coder = getCoderFromCoin(coin);
|
|
6
|
+
const inputCoinType = coder.coinType;
|
|
7
|
+
let encodedAddress = value ? coder.decode(value) : '0x';
|
|
19
8
|
if (inputCoinType === 60 && encodedAddress === '0x')
|
|
20
|
-
encodedAddress =
|
|
9
|
+
encodedAddress = coder.decode('0x0000000000000000000000000000000000000000');
|
|
21
10
|
if (typeof encodedAddress !== 'string') {
|
|
22
11
|
encodedAddress = bytesToHex(encodedAddress);
|
|
23
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encodeSetAddr.js","sourceRoot":"","sources":["../../../../src/utils/encoders/encodeSetAddr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"encodeSetAddr.js","sourceRoot":"","sources":["../../../../src/utils/encoders/encodeSetAddr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAA0B,MAAM,MAAM,CAAA;AAC7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAUxD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,IAAI,EACJ,KAAK,GACmB,EAA2B,EAAE;IACrD,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAA;IACpC,MAAM,aAAa,GAAG,KAAK,CAAC,QAAQ,CAAA;IACpC,IAAI,cAAc,GAAqB,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IACzE,IAAI,aAAa,KAAK,EAAE,IAAI,cAAc,KAAK,IAAI;QACjD,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,4CAA4C,CAAC,CAAA;IAC7E,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QACtC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;KAC5C;IAED,OAAO,kBAAkB,CAAC;QACxB,GAAG,EAAE,4BAA4B;QACjC,YAAY,EAAE,SAAS;QACvB,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC;KACxD,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1,11 +1,30 @@
|
|
|
1
|
+
import { getCoderByCoinName, getCoderByCoinType, } from '@ensdomains/address-encoder';
|
|
2
|
+
import { CoinFormatterNotFoundError } from '../errors/public.js';
|
|
1
3
|
export const normaliseCoinId = (coinId) => {
|
|
2
4
|
const isString = typeof coinId === 'string';
|
|
3
5
|
if (isString && Number.isNaN(parseInt(coinId))) {
|
|
4
|
-
return {
|
|
6
|
+
return {
|
|
7
|
+
type: 'name',
|
|
8
|
+
value: coinId.toLowerCase().replace(/legacy$/, 'Legacy'),
|
|
9
|
+
};
|
|
5
10
|
}
|
|
6
11
|
return {
|
|
7
12
|
type: 'id',
|
|
8
13
|
value: isString ? parseInt(coinId) : coinId,
|
|
9
14
|
};
|
|
10
15
|
};
|
|
16
|
+
export const getCoderFromCoin = (coinId) => {
|
|
17
|
+
const normalisedCoin = normaliseCoinId(coinId);
|
|
18
|
+
let coder;
|
|
19
|
+
try {
|
|
20
|
+
coder =
|
|
21
|
+
normalisedCoin.type === 'id'
|
|
22
|
+
? getCoderByCoinType(normalisedCoin.value)
|
|
23
|
+
: getCoderByCoinName(normalisedCoin.value);
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
throw new CoinFormatterNotFoundError({ coinType: coinId });
|
|
27
|
+
}
|
|
28
|
+
return coder;
|
|
29
|
+
};
|
|
11
30
|
//# sourceMappingURL=normaliseCoinId.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normaliseCoinId.js","sourceRoot":"","sources":["../../../src/utils/normaliseCoinId.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAuB,EAAE,EAAE;IACzD,MAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAA;IAE3C,IAAI,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE;QAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"normaliseCoinId.js","sourceRoot":"","sources":["../../../src/utils/normaliseCoinId.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAA;AAEhE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAuB,EAAE,EAAE;IACzD,MAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAA;IAE3C,IAAI,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE;QAC9C,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC;SAChD,CAAA;KACX;IACD,OAAO;QACL,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAgB,CAAC,CAAC,CAAC,CAAE,MAAiB;KACzD,CAAA;AACZ,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAuB,EAAQ,EAAE;IAChE,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,CAAC,CAAA;IAC9C,IAAI,KAAW,CAAA;IACf,IAAI;QACF,KAAK;YACH,cAAc,CAAC,IAAI,KAAK,IAAI;gBAC1B,CAAC,CAAC,kBAAkB,CAAC,cAAc,CAAC,KAAK,CAAC;gBAC1C,CAAC,CAAC,kBAAkB,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;KAC/C;IAAC,MAAM;QACN,MAAM,IAAI,0BAA0B,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAA;KAC3D;IAED,OAAO,KAAK,CAAA;AACd,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Chain, type Client, type ClientConfig, type Transport } from 'viem';
|
|
1
|
+
import { type Chain, type Client, type ClientConfig, type PublicRpcSchema, type Transport } from 'viem';
|
|
2
2
|
import type { ChainWithEns } from '../contracts/consts.js';
|
|
3
3
|
import type { Prettify } from '../types.js';
|
|
4
4
|
import { type EnsPublicActions } from './decorators/public.js';
|
|
@@ -6,7 +6,7 @@ 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
7
|
chain: TChain;
|
|
8
8
|
};
|
|
9
|
-
export type EnsPublicClient<TTransport extends Transport = Transport, TChain extends ChainWithEns = ChainWithEns> = Prettify<Client<TTransport, TChain, undefined,
|
|
9
|
+
export type EnsPublicClient<TTransport extends Transport = Transport, TChain extends ChainWithEns = ChainWithEns> = Prettify<Client<TTransport, TChain, undefined, PublicRpcSchema, EnsPublicActions & EnsSubgraphActions>>;
|
|
10
10
|
/**
|
|
11
11
|
* Creates a ENS Public Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
|
|
12
12
|
*
|
|
@@ -36,243 +36,7 @@ export declare const createEnsPublicClient: <TTransport extends Transport, TChai
|
|
|
36
36
|
key: string;
|
|
37
37
|
name: string;
|
|
38
38
|
pollingInterval: number;
|
|
39
|
-
request: import("viem").EIP1193RequestFn<
|
|
40
|
-
Method: "web3_clientVersion";
|
|
41
|
-
Parameters?: undefined;
|
|
42
|
-
ReturnType: string;
|
|
43
|
-
}, {
|
|
44
|
-
Method: "web3_sha3";
|
|
45
|
-
Parameters: [data: `0x${string}`];
|
|
46
|
-
ReturnType: string;
|
|
47
|
-
}, {
|
|
48
|
-
Method: "net_listening";
|
|
49
|
-
Parameters?: undefined;
|
|
50
|
-
ReturnType: boolean;
|
|
51
|
-
}, {
|
|
52
|
-
Method: "net_peerCount";
|
|
53
|
-
Parameters?: undefined;
|
|
54
|
-
ReturnType: `0x${string}`;
|
|
55
|
-
}, {
|
|
56
|
-
Method: "net_version";
|
|
57
|
-
Parameters?: undefined;
|
|
58
|
-
ReturnType: `0x${string}`;
|
|
59
|
-
}, {
|
|
60
|
-
Method: "eth_blockNumber";
|
|
61
|
-
Parameters?: undefined;
|
|
62
|
-
ReturnType: `0x${string}`;
|
|
63
|
-
}, {
|
|
64
|
-
Method: "eth_call";
|
|
65
|
-
Parameters: [transaction: Partial<import("viem").RpcTransactionRequest>] | [transaction: Partial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
66
|
-
ReturnType: `0x${string}`;
|
|
67
|
-
}, {
|
|
68
|
-
Method: "eth_chainId";
|
|
69
|
-
Parameters?: undefined;
|
|
70
|
-
ReturnType: `0x${string}`;
|
|
71
|
-
}, {
|
|
72
|
-
Method: "eth_coinbase";
|
|
73
|
-
Parameters?: undefined;
|
|
74
|
-
ReturnType: `0x${string}`;
|
|
75
|
-
}, {
|
|
76
|
-
Method: "eth_estimateGas";
|
|
77
|
-
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag];
|
|
78
|
-
ReturnType: `0x${string}`;
|
|
79
|
-
}, {
|
|
80
|
-
Method: "eth_feeHistory";
|
|
81
|
-
Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
|
|
82
|
-
ReturnType: import("viem").RpcFeeHistory;
|
|
83
|
-
}, {
|
|
84
|
-
Method: "eth_gasPrice";
|
|
85
|
-
Parameters?: undefined;
|
|
86
|
-
ReturnType: `0x${string}`;
|
|
87
|
-
}, {
|
|
88
|
-
Method: "eth_getBalance";
|
|
89
|
-
Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
90
|
-
ReturnType: `0x${string}`;
|
|
91
|
-
}, {
|
|
92
|
-
Method: "eth_getBlockByHash";
|
|
93
|
-
Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
|
|
94
|
-
ReturnType: import("viem").RpcBlock | null;
|
|
95
|
-
}, {
|
|
96
|
-
Method: "eth_getBlockByNumber";
|
|
97
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
98
|
-
ReturnType: import("viem").RpcBlock | null;
|
|
99
|
-
}, {
|
|
100
|
-
Method: "eth_getBlockTransactionCountByHash";
|
|
101
|
-
Parameters: [hash: `0x${string}`];
|
|
102
|
-
ReturnType: `0x${string}`;
|
|
103
|
-
}, {
|
|
104
|
-
Method: "eth_getBlockTransactionCountByNumber";
|
|
105
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
106
|
-
ReturnType: `0x${string}`;
|
|
107
|
-
}, {
|
|
108
|
-
Method: "eth_getCode";
|
|
109
|
-
Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
110
|
-
ReturnType: `0x${string}`;
|
|
111
|
-
}, {
|
|
112
|
-
Method: "eth_getFilterChanges";
|
|
113
|
-
Parameters: [filterId: `0x${string}`];
|
|
114
|
-
ReturnType: `0x${string}`[] | import("viem").RpcLog[];
|
|
115
|
-
}, {
|
|
116
|
-
Method: "eth_getFilterLogs";
|
|
117
|
-
Parameters: [filterId: `0x${string}`];
|
|
118
|
-
ReturnType: import("viem").RpcLog[];
|
|
119
|
-
}, {
|
|
120
|
-
Method: "eth_getLogs";
|
|
121
|
-
Parameters: [{
|
|
122
|
-
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
123
|
-
topics?: import("viem").LogTopic[] | undefined;
|
|
124
|
-
} & ({
|
|
125
|
-
fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
126
|
-
toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
127
|
-
blockHash?: undefined;
|
|
128
|
-
} | {
|
|
129
|
-
fromBlock?: undefined;
|
|
130
|
-
toBlock?: undefined;
|
|
131
|
-
blockHash?: `0x${string}` | undefined;
|
|
132
|
-
})];
|
|
133
|
-
ReturnType: import("viem").RpcLog[];
|
|
134
|
-
}, {
|
|
135
|
-
Method: "eth_getStorageAt";
|
|
136
|
-
Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
137
|
-
ReturnType: `0x${string}`;
|
|
138
|
-
}, {
|
|
139
|
-
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
140
|
-
Parameters: [hash: `0x${string}`, index: `0x${string}`];
|
|
141
|
-
ReturnType: import("viem").RpcTransaction | null;
|
|
142
|
-
}, {
|
|
143
|
-
Method: "eth_getTransactionByBlockNumberAndIndex";
|
|
144
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
|
|
145
|
-
ReturnType: import("viem").RpcTransaction | null;
|
|
146
|
-
}, {
|
|
147
|
-
Method: "eth_getTransactionByHash";
|
|
148
|
-
Parameters: [hash: `0x${string}`];
|
|
149
|
-
ReturnType: import("viem").RpcTransaction | null;
|
|
150
|
-
}, {
|
|
151
|
-
Method: "eth_getTransactionCount";
|
|
152
|
-
Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
153
|
-
ReturnType: `0x${string}`;
|
|
154
|
-
}, {
|
|
155
|
-
Method: "eth_getTransactionReceipt";
|
|
156
|
-
Parameters: [hash: `0x${string}`];
|
|
157
|
-
ReturnType: import("viem").RpcTransactionReceipt | null;
|
|
158
|
-
}, {
|
|
159
|
-
Method: "eth_getUncleByBlockHashAndIndex";
|
|
160
|
-
Parameters: [hash: `0x${string}`, index: `0x${string}`];
|
|
161
|
-
ReturnType: import("viem").RpcUncle | null;
|
|
162
|
-
}, {
|
|
163
|
-
Method: "eth_getUncleByBlockNumberAndIndex";
|
|
164
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
|
|
165
|
-
ReturnType: import("viem").RpcUncle | null;
|
|
166
|
-
}, {
|
|
167
|
-
Method: "eth_getUncleCountByBlockHash";
|
|
168
|
-
Parameters: [hash: `0x${string}`];
|
|
169
|
-
ReturnType: `0x${string}`;
|
|
170
|
-
}, {
|
|
171
|
-
Method: "eth_getUncleCountByBlockNumber";
|
|
172
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
173
|
-
ReturnType: `0x${string}`;
|
|
174
|
-
}, {
|
|
175
|
-
Method: "eth_maxPriorityFeePerGas";
|
|
176
|
-
Parameters?: undefined;
|
|
177
|
-
ReturnType: `0x${string}`;
|
|
178
|
-
}, {
|
|
179
|
-
Method: "eth_newBlockFilter";
|
|
180
|
-
Parameters?: undefined;
|
|
181
|
-
ReturnType: `0x${string}`;
|
|
182
|
-
}, {
|
|
183
|
-
Method: "eth_newFilter";
|
|
184
|
-
Parameters: [filter: {
|
|
185
|
-
fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
186
|
-
toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
187
|
-
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
188
|
-
topics?: import("viem").LogTopic[] | undefined;
|
|
189
|
-
}];
|
|
190
|
-
ReturnType: `0x${string}`;
|
|
191
|
-
}, {
|
|
192
|
-
Method: "eth_newPendingTransactionFilter";
|
|
193
|
-
Parameters?: undefined;
|
|
194
|
-
ReturnType: `0x${string}`;
|
|
195
|
-
}, {
|
|
196
|
-
Method: "eth_protocolVersion";
|
|
197
|
-
Parameters?: undefined;
|
|
198
|
-
ReturnType: string;
|
|
199
|
-
}, {
|
|
200
|
-
Method: "eth_sendRawTransaction";
|
|
201
|
-
Parameters: [signedTransaction: `0x${string}`];
|
|
202
|
-
ReturnType: `0x${string}`;
|
|
203
|
-
}, {
|
|
204
|
-
Method: "eth_uninstallFilter";
|
|
205
|
-
Parameters: [filterId: `0x${string}`];
|
|
206
|
-
ReturnType: boolean;
|
|
207
|
-
}, {
|
|
208
|
-
Method: "eth_accounts";
|
|
209
|
-
Parameters?: undefined;
|
|
210
|
-
ReturnType: `0x${string}`[];
|
|
211
|
-
}, {
|
|
212
|
-
Method: "eth_chainId";
|
|
213
|
-
Parameters?: undefined;
|
|
214
|
-
ReturnType: `0x${string}`;
|
|
215
|
-
}, {
|
|
216
|
-
Method: "eth_estimateGas";
|
|
217
|
-
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag];
|
|
218
|
-
ReturnType: `0x${string}`;
|
|
219
|
-
}, {
|
|
220
|
-
Method: "eth_requestAccounts";
|
|
221
|
-
Parameters?: undefined;
|
|
222
|
-
ReturnType: `0x${string}`[];
|
|
223
|
-
}, {
|
|
224
|
-
Method: "eth_sendTransaction";
|
|
225
|
-
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
226
|
-
ReturnType: `0x${string}`;
|
|
227
|
-
}, {
|
|
228
|
-
Method: "eth_sendRawTransaction";
|
|
229
|
-
Parameters: [signedTransaction: `0x${string}`];
|
|
230
|
-
ReturnType: `0x${string}`;
|
|
231
|
-
}, {
|
|
232
|
-
Method: "eth_sign";
|
|
233
|
-
Parameters: [address: `0x${string}`, data: `0x${string}`];
|
|
234
|
-
ReturnType: `0x${string}`;
|
|
235
|
-
}, {
|
|
236
|
-
Method: "eth_signTransaction";
|
|
237
|
-
Parameters: [request: import("viem").RpcTransactionRequest];
|
|
238
|
-
ReturnType: `0x${string}`;
|
|
239
|
-
}, {
|
|
240
|
-
Method: "eth_signTypedData_v4";
|
|
241
|
-
Parameters: [address: `0x${string}`, message: string];
|
|
242
|
-
ReturnType: `0x${string}`;
|
|
243
|
-
}, {
|
|
244
|
-
Method: "eth_syncing";
|
|
245
|
-
Parameters?: undefined;
|
|
246
|
-
ReturnType: false | import("viem").NetworkSync;
|
|
247
|
-
}, {
|
|
248
|
-
Method: "personal_sign";
|
|
249
|
-
Parameters: [data: `0x${string}`, address: `0x${string}`];
|
|
250
|
-
ReturnType: `0x${string}`;
|
|
251
|
-
}, {
|
|
252
|
-
Method: "wallet_addEthereumChain";
|
|
253
|
-
Parameters: [chain: import("viem").AddEthereumChainParameter];
|
|
254
|
-
ReturnType: null;
|
|
255
|
-
}, {
|
|
256
|
-
Method: "wallet_getPermissions";
|
|
257
|
-
Parameters?: undefined;
|
|
258
|
-
ReturnType: import("viem").WalletPermission[];
|
|
259
|
-
}, {
|
|
260
|
-
Method: "wallet_requestPermissions";
|
|
261
|
-
Parameters: [permissions: {
|
|
262
|
-
eth_accounts: Record<string, any>;
|
|
263
|
-
}];
|
|
264
|
-
ReturnType: import("viem").WalletPermission[];
|
|
265
|
-
}, {
|
|
266
|
-
Method: "wallet_switchEthereumChain";
|
|
267
|
-
Parameters: [chain: {
|
|
268
|
-
chainId: string;
|
|
269
|
-
}];
|
|
270
|
-
ReturnType: null;
|
|
271
|
-
}, {
|
|
272
|
-
Method: "wallet_watchAsset";
|
|
273
|
-
Parameters: import("viem").WatchAssetParams;
|
|
274
|
-
ReturnType: boolean;
|
|
275
|
-
}]>;
|
|
39
|
+
request: import("viem").EIP1193RequestFn<PublicRpcSchema>;
|
|
276
40
|
transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
|
|
277
41
|
type: string;
|
|
278
42
|
uid: string;
|
|
@@ -325,6 +89,6 @@ export declare const createEnsPublicClient: <TTransport extends Transport, TChai
|
|
|
325
89
|
transport?: undefined;
|
|
326
90
|
type?: undefined;
|
|
327
91
|
uid?: undefined;
|
|
328
|
-
}>(fn: (client: Client<TTransport, ChainWithEns<TChain>, undefined,
|
|
92
|
+
}>(fn: (client: Client<TTransport, ChainWithEns<TChain>, undefined, PublicRpcSchema, EnsPublicActions & EnsSubgraphActions>) => client) => Client<TTransport, ChainWithEns<TChain>, undefined, PublicRpcSchema, { [K in keyof client]: client[K]; } & EnsPublicActions & EnsSubgraphActions>;
|
|
329
93
|
};
|
|
330
94
|
//# 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,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,EACf,gBAAgB,GAAG,kBAAkB,CACtC,CACF,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBjC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type Chain, type Client, type ClientConfig, type Transport } from 'viem';
|
|
1
|
+
import { type Chain, type Client, type ClientConfig, type PublicRpcSchema, type Transport } from 'viem';
|
|
2
2
|
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
6
|
chain: TChain;
|
|
7
7
|
};
|
|
8
|
-
export type EnsSubgraphClient<TTransport extends Transport = Transport, TChain extends ChainWithEns = ChainWithEns> = Prettify<Client<TTransport, TChain, undefined,
|
|
8
|
+
export type EnsSubgraphClient<TTransport extends Transport = Transport, TChain extends ChainWithEns = ChainWithEns> = Prettify<Client<TTransport, TChain, undefined, PublicRpcSchema, EnsSubgraphActions>>;
|
|
9
9
|
/**
|
|
10
10
|
* Creates a ENS Subgraph Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
|
|
11
11
|
*
|
|
@@ -35,243 +35,7 @@ export declare const createEnsSubgraphClient: <TTransport extends Transport, TCh
|
|
|
35
35
|
key: string;
|
|
36
36
|
name: string;
|
|
37
37
|
pollingInterval: number;
|
|
38
|
-
request: import("viem").EIP1193RequestFn<
|
|
39
|
-
Method: "web3_clientVersion";
|
|
40
|
-
Parameters?: undefined;
|
|
41
|
-
ReturnType: string;
|
|
42
|
-
}, {
|
|
43
|
-
Method: "web3_sha3";
|
|
44
|
-
Parameters: [data: `0x${string}`];
|
|
45
|
-
ReturnType: string;
|
|
46
|
-
}, {
|
|
47
|
-
Method: "net_listening";
|
|
48
|
-
Parameters?: undefined;
|
|
49
|
-
ReturnType: boolean;
|
|
50
|
-
}, {
|
|
51
|
-
Method: "net_peerCount";
|
|
52
|
-
Parameters?: undefined;
|
|
53
|
-
ReturnType: `0x${string}`;
|
|
54
|
-
}, {
|
|
55
|
-
Method: "net_version";
|
|
56
|
-
Parameters?: undefined;
|
|
57
|
-
ReturnType: `0x${string}`;
|
|
58
|
-
}, {
|
|
59
|
-
Method: "eth_blockNumber";
|
|
60
|
-
Parameters?: undefined;
|
|
61
|
-
ReturnType: `0x${string}`;
|
|
62
|
-
}, {
|
|
63
|
-
Method: "eth_call";
|
|
64
|
-
Parameters: [transaction: Partial<import("viem").RpcTransactionRequest>] | [transaction: Partial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
65
|
-
ReturnType: `0x${string}`;
|
|
66
|
-
}, {
|
|
67
|
-
Method: "eth_chainId";
|
|
68
|
-
Parameters?: undefined;
|
|
69
|
-
ReturnType: `0x${string}`;
|
|
70
|
-
}, {
|
|
71
|
-
Method: "eth_coinbase";
|
|
72
|
-
Parameters?: undefined;
|
|
73
|
-
ReturnType: `0x${string}`;
|
|
74
|
-
}, {
|
|
75
|
-
Method: "eth_estimateGas";
|
|
76
|
-
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag];
|
|
77
|
-
ReturnType: `0x${string}`;
|
|
78
|
-
}, {
|
|
79
|
-
Method: "eth_feeHistory";
|
|
80
|
-
Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
|
|
81
|
-
ReturnType: import("viem").RpcFeeHistory;
|
|
82
|
-
}, {
|
|
83
|
-
Method: "eth_gasPrice";
|
|
84
|
-
Parameters?: undefined;
|
|
85
|
-
ReturnType: `0x${string}`;
|
|
86
|
-
}, {
|
|
87
|
-
Method: "eth_getBalance";
|
|
88
|
-
Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
89
|
-
ReturnType: `0x${string}`;
|
|
90
|
-
}, {
|
|
91
|
-
Method: "eth_getBlockByHash";
|
|
92
|
-
Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
|
|
93
|
-
ReturnType: import("viem").RpcBlock | null;
|
|
94
|
-
}, {
|
|
95
|
-
Method: "eth_getBlockByNumber";
|
|
96
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
97
|
-
ReturnType: import("viem").RpcBlock | null;
|
|
98
|
-
}, {
|
|
99
|
-
Method: "eth_getBlockTransactionCountByHash";
|
|
100
|
-
Parameters: [hash: `0x${string}`];
|
|
101
|
-
ReturnType: `0x${string}`;
|
|
102
|
-
}, {
|
|
103
|
-
Method: "eth_getBlockTransactionCountByNumber";
|
|
104
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
105
|
-
ReturnType: `0x${string}`;
|
|
106
|
-
}, {
|
|
107
|
-
Method: "eth_getCode";
|
|
108
|
-
Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
109
|
-
ReturnType: `0x${string}`;
|
|
110
|
-
}, {
|
|
111
|
-
Method: "eth_getFilterChanges";
|
|
112
|
-
Parameters: [filterId: `0x${string}`];
|
|
113
|
-
ReturnType: `0x${string}`[] | import("viem").RpcLog[];
|
|
114
|
-
}, {
|
|
115
|
-
Method: "eth_getFilterLogs";
|
|
116
|
-
Parameters: [filterId: `0x${string}`];
|
|
117
|
-
ReturnType: import("viem").RpcLog[];
|
|
118
|
-
}, {
|
|
119
|
-
Method: "eth_getLogs";
|
|
120
|
-
Parameters: [{
|
|
121
|
-
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
122
|
-
topics?: import("viem").LogTopic[] | undefined;
|
|
123
|
-
} & ({
|
|
124
|
-
fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
125
|
-
toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
126
|
-
blockHash?: undefined;
|
|
127
|
-
} | {
|
|
128
|
-
fromBlock?: undefined;
|
|
129
|
-
toBlock?: undefined;
|
|
130
|
-
blockHash?: `0x${string}` | undefined;
|
|
131
|
-
})];
|
|
132
|
-
ReturnType: import("viem").RpcLog[];
|
|
133
|
-
}, {
|
|
134
|
-
Method: "eth_getStorageAt";
|
|
135
|
-
Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
136
|
-
ReturnType: `0x${string}`;
|
|
137
|
-
}, {
|
|
138
|
-
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
139
|
-
Parameters: [hash: `0x${string}`, index: `0x${string}`];
|
|
140
|
-
ReturnType: import("viem").RpcTransaction | null;
|
|
141
|
-
}, {
|
|
142
|
-
Method: "eth_getTransactionByBlockNumberAndIndex";
|
|
143
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
|
|
144
|
-
ReturnType: import("viem").RpcTransaction | null;
|
|
145
|
-
}, {
|
|
146
|
-
Method: "eth_getTransactionByHash";
|
|
147
|
-
Parameters: [hash: `0x${string}`];
|
|
148
|
-
ReturnType: import("viem").RpcTransaction | null;
|
|
149
|
-
}, {
|
|
150
|
-
Method: "eth_getTransactionCount";
|
|
151
|
-
Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
152
|
-
ReturnType: `0x${string}`;
|
|
153
|
-
}, {
|
|
154
|
-
Method: "eth_getTransactionReceipt";
|
|
155
|
-
Parameters: [hash: `0x${string}`];
|
|
156
|
-
ReturnType: import("viem").RpcTransactionReceipt | null;
|
|
157
|
-
}, {
|
|
158
|
-
Method: "eth_getUncleByBlockHashAndIndex";
|
|
159
|
-
Parameters: [hash: `0x${string}`, index: `0x${string}`];
|
|
160
|
-
ReturnType: import("viem").RpcUncle | null;
|
|
161
|
-
}, {
|
|
162
|
-
Method: "eth_getUncleByBlockNumberAndIndex";
|
|
163
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
|
|
164
|
-
ReturnType: import("viem").RpcUncle | null;
|
|
165
|
-
}, {
|
|
166
|
-
Method: "eth_getUncleCountByBlockHash";
|
|
167
|
-
Parameters: [hash: `0x${string}`];
|
|
168
|
-
ReturnType: `0x${string}`;
|
|
169
|
-
}, {
|
|
170
|
-
Method: "eth_getUncleCountByBlockNumber";
|
|
171
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
172
|
-
ReturnType: `0x${string}`;
|
|
173
|
-
}, {
|
|
174
|
-
Method: "eth_maxPriorityFeePerGas";
|
|
175
|
-
Parameters?: undefined;
|
|
176
|
-
ReturnType: `0x${string}`;
|
|
177
|
-
}, {
|
|
178
|
-
Method: "eth_newBlockFilter";
|
|
179
|
-
Parameters?: undefined;
|
|
180
|
-
ReturnType: `0x${string}`;
|
|
181
|
-
}, {
|
|
182
|
-
Method: "eth_newFilter";
|
|
183
|
-
Parameters: [filter: {
|
|
184
|
-
fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
185
|
-
toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
186
|
-
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
187
|
-
topics?: import("viem").LogTopic[] | undefined;
|
|
188
|
-
}];
|
|
189
|
-
ReturnType: `0x${string}`;
|
|
190
|
-
}, {
|
|
191
|
-
Method: "eth_newPendingTransactionFilter";
|
|
192
|
-
Parameters?: undefined;
|
|
193
|
-
ReturnType: `0x${string}`;
|
|
194
|
-
}, {
|
|
195
|
-
Method: "eth_protocolVersion";
|
|
196
|
-
Parameters?: undefined;
|
|
197
|
-
ReturnType: string;
|
|
198
|
-
}, {
|
|
199
|
-
Method: "eth_sendRawTransaction";
|
|
200
|
-
Parameters: [signedTransaction: `0x${string}`];
|
|
201
|
-
ReturnType: `0x${string}`;
|
|
202
|
-
}, {
|
|
203
|
-
Method: "eth_uninstallFilter";
|
|
204
|
-
Parameters: [filterId: `0x${string}`];
|
|
205
|
-
ReturnType: boolean;
|
|
206
|
-
}, {
|
|
207
|
-
Method: "eth_accounts";
|
|
208
|
-
Parameters?: undefined;
|
|
209
|
-
ReturnType: `0x${string}`[];
|
|
210
|
-
}, {
|
|
211
|
-
Method: "eth_chainId";
|
|
212
|
-
Parameters?: undefined;
|
|
213
|
-
ReturnType: `0x${string}`;
|
|
214
|
-
}, {
|
|
215
|
-
Method: "eth_estimateGas";
|
|
216
|
-
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag];
|
|
217
|
-
ReturnType: `0x${string}`;
|
|
218
|
-
}, {
|
|
219
|
-
Method: "eth_requestAccounts";
|
|
220
|
-
Parameters?: undefined;
|
|
221
|
-
ReturnType: `0x${string}`[];
|
|
222
|
-
}, {
|
|
223
|
-
Method: "eth_sendTransaction";
|
|
224
|
-
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
225
|
-
ReturnType: `0x${string}`;
|
|
226
|
-
}, {
|
|
227
|
-
Method: "eth_sendRawTransaction";
|
|
228
|
-
Parameters: [signedTransaction: `0x${string}`];
|
|
229
|
-
ReturnType: `0x${string}`;
|
|
230
|
-
}, {
|
|
231
|
-
Method: "eth_sign";
|
|
232
|
-
Parameters: [address: `0x${string}`, data: `0x${string}`];
|
|
233
|
-
ReturnType: `0x${string}`;
|
|
234
|
-
}, {
|
|
235
|
-
Method: "eth_signTransaction";
|
|
236
|
-
Parameters: [request: import("viem").RpcTransactionRequest];
|
|
237
|
-
ReturnType: `0x${string}`;
|
|
238
|
-
}, {
|
|
239
|
-
Method: "eth_signTypedData_v4";
|
|
240
|
-
Parameters: [address: `0x${string}`, message: string];
|
|
241
|
-
ReturnType: `0x${string}`;
|
|
242
|
-
}, {
|
|
243
|
-
Method: "eth_syncing";
|
|
244
|
-
Parameters?: undefined;
|
|
245
|
-
ReturnType: false | import("viem").NetworkSync;
|
|
246
|
-
}, {
|
|
247
|
-
Method: "personal_sign";
|
|
248
|
-
Parameters: [data: `0x${string}`, address: `0x${string}`];
|
|
249
|
-
ReturnType: `0x${string}`;
|
|
250
|
-
}, {
|
|
251
|
-
Method: "wallet_addEthereumChain";
|
|
252
|
-
Parameters: [chain: import("viem").AddEthereumChainParameter];
|
|
253
|
-
ReturnType: null;
|
|
254
|
-
}, {
|
|
255
|
-
Method: "wallet_getPermissions";
|
|
256
|
-
Parameters?: undefined;
|
|
257
|
-
ReturnType: import("viem").WalletPermission[];
|
|
258
|
-
}, {
|
|
259
|
-
Method: "wallet_requestPermissions";
|
|
260
|
-
Parameters: [permissions: {
|
|
261
|
-
eth_accounts: Record<string, any>;
|
|
262
|
-
}];
|
|
263
|
-
ReturnType: import("viem").WalletPermission[];
|
|
264
|
-
}, {
|
|
265
|
-
Method: "wallet_switchEthereumChain";
|
|
266
|
-
Parameters: [chain: {
|
|
267
|
-
chainId: string;
|
|
268
|
-
}];
|
|
269
|
-
ReturnType: null;
|
|
270
|
-
}, {
|
|
271
|
-
Method: "wallet_watchAsset";
|
|
272
|
-
Parameters: import("viem").WatchAssetParams;
|
|
273
|
-
ReturnType: boolean;
|
|
274
|
-
}]>;
|
|
38
|
+
request: import("viem").EIP1193RequestFn<PublicRpcSchema>;
|
|
275
39
|
transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
|
|
276
40
|
type: string;
|
|
277
41
|
uid: string;
|
|
@@ -294,6 +58,6 @@ export declare const createEnsSubgraphClient: <TTransport extends Transport, TCh
|
|
|
294
58
|
transport?: undefined;
|
|
295
59
|
type?: undefined;
|
|
296
60
|
uid?: undefined;
|
|
297
|
-
}>(fn: (client: Client<TTransport, ChainWithEns<TChain>, undefined,
|
|
61
|
+
}>(fn: (client: Client<TTransport, ChainWithEns<TChain>, undefined, PublicRpcSchema, EnsSubgraphActions>) => client) => Client<TTransport, ChainWithEns<TChain>, undefined, PublicRpcSchema, { [K in keyof client]: client[K]; } & EnsSubgraphActions>;
|
|
298
62
|
};
|
|
299
63
|
//# 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,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,
|
|
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,eAAe,EACpB,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,eAAe,EAAE,kBAAkB,CAAC,CAC3E,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBnC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "v3.0.0-beta.
|
|
1
|
+
export declare const version = "v3.0.0-beta.9";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -570,10 +570,7 @@ declare namespace importDnsName {
|
|
|
570
570
|
type?: undefined;
|
|
571
571
|
uid?: undefined;
|
|
572
572
|
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => client) => import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<TChain, TAccount>>;
|
|
573
|
-
}, { name, dnsImportData, address, resolverAddress, }: ImportDnsNameDataParameters) =>
|
|
574
|
-
data: `0x${string}`;
|
|
575
|
-
to: `0x${string}`;
|
|
576
|
-
};
|
|
573
|
+
}, { name, dnsImportData, address, resolverAddress, }: ImportDnsNameDataParameters) => SimpleTransactionRequest;
|
|
577
574
|
}
|
|
578
575
|
export default importDnsName;
|
|
579
576
|
//# sourceMappingURL=importDnsName.d.ts.map
|