@ensdomains/ensjs 3.0.0-beta.1 → 3.0.0-beta.10
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/decorators/subgraph.js.map +1 -1
- package/dist/cjs/clients/decorators/wallet.js +2 -0
- package/dist/cjs/clients/decorators/wallet.js.map +1 -1
- package/dist/cjs/clients/public.js.map +1 -1
- package/dist/cjs/clients/subgraph.js.map +1 -1
- package/dist/cjs/contracts/consts.js +53 -2
- package/dist/cjs/contracts/consts.js.map +1 -1
- package/dist/cjs/dns.js +3 -3
- package/dist/cjs/dns.js.map +1 -1
- package/dist/cjs/errors/subgraph.js.map +1 -1
- package/dist/cjs/errors/utils.js +27 -18
- package/dist/cjs/errors/utils.js.map +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/errors/version.js.map +1 -1
- package/dist/cjs/functions/dns/{prepareDnsImport.js → getDnsImportData.js} +3 -3
- package/dist/cjs/functions/dns/{prepareDnsImport.js.map → getDnsImportData.js.map} +1 -1
- package/dist/cjs/functions/dns/importDnsName.js +7 -7
- package/dist/cjs/functions/dns/importDnsName.js.map +1 -1
- package/dist/cjs/functions/public/_getAbi.js +2 -2
- package/dist/cjs/functions/public/_getAbi.js.map +1 -1
- package/dist/cjs/functions/public/_getAddr.js +9 -19
- package/dist/cjs/functions/public/_getAddr.js.map +1 -1
- package/dist/cjs/functions/public/_getContentHash.js +1 -1
- package/dist/cjs/functions/public/batch.js.map +1 -1
- package/dist/cjs/functions/public/getAbiRecord.js.map +1 -1
- package/dist/cjs/functions/public/getAddressRecord.js.map +1 -1
- package/dist/cjs/functions/public/getAvailable.js.map +1 -1
- package/dist/cjs/functions/public/getContentHashRecord.js.map +1 -1
- package/dist/cjs/functions/public/getExpiry.js.map +1 -1
- package/dist/cjs/functions/public/getName.js.map +1 -1
- package/dist/cjs/functions/public/getOwner.js.map +1 -1
- package/dist/cjs/functions/public/getPrice.js.map +1 -1
- package/dist/cjs/functions/public/getRecords.js +51 -37
- 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/getSupportedInterfaces.js +1 -1
- package/dist/cjs/functions/public/getSupportedInterfaces.js.map +1 -1
- package/dist/cjs/functions/public/getTextRecord.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/client.js.map +1 -1
- package/dist/cjs/functions/subgraph/filters.js +3 -0
- package/dist/cjs/functions/subgraph/filters.js.map +1 -0
- package/dist/cjs/functions/subgraph/getDecodedName.js.map +1 -1
- package/dist/cjs/functions/subgraph/getNameHistory.js +4 -3
- package/dist/cjs/functions/subgraph/getNameHistory.js.map +1 -1
- package/dist/cjs/functions/subgraph/getNamesForAddress.js +155 -190
- package/dist/cjs/functions/subgraph/getNamesForAddress.js.map +1 -1
- package/dist/cjs/functions/subgraph/getSubgraphRecords.js +34 -26
- package/dist/cjs/functions/subgraph/getSubgraphRecords.js.map +1 -1
- package/dist/cjs/functions/subgraph/getSubgraphRegistrant.js.map +1 -1
- package/dist/cjs/functions/subgraph/getSubnames.js +95 -108
- package/dist/cjs/functions/subgraph/getSubnames.js.map +1 -1
- package/dist/cjs/functions/subgraph/types.js +3 -0
- package/dist/cjs/functions/subgraph/types.js.map +1 -0
- package/dist/cjs/functions/subgraph/utils.js.map +1 -1
- package/dist/cjs/functions/wallet/clearRecords.js +26 -0
- package/dist/cjs/functions/wallet/clearRecords.js.map +1 -0
- package/dist/cjs/functions/wallet/commitName.js.map +1 -1
- package/dist/cjs/functions/wallet/createSubname.js +1 -1
- package/dist/cjs/functions/wallet/createSubname.js.map +1 -1
- package/dist/cjs/functions/wallet/deleteSubname.js.map +1 -1
- package/dist/cjs/functions/wallet/registerName.js.map +1 -1
- package/dist/cjs/functions/wallet/renewNames.js.map +1 -1
- package/dist/cjs/functions/wallet/setAbiRecord.js.map +1 -1
- package/dist/cjs/functions/wallet/setAddressRecord.js.map +1 -1
- package/dist/cjs/functions/wallet/setChildFuses.js +1 -1
- package/dist/cjs/functions/wallet/setChildFuses.js.map +1 -1
- package/dist/cjs/functions/wallet/setContentHashRecord.js.map +1 -1
- package/dist/cjs/functions/wallet/setFuses.js +1 -1
- package/dist/cjs/functions/wallet/setFuses.js.map +1 -1
- package/dist/cjs/functions/wallet/setPrimaryName.js.map +1 -1
- package/dist/cjs/functions/wallet/setRecords.js.map +1 -1
- package/dist/cjs/functions/wallet/setResolver.js.map +1 -1
- package/dist/cjs/functions/wallet/setTextRecord.js.map +1 -1
- package/dist/cjs/functions/wallet/transferName.js.map +1 -1
- package/dist/cjs/functions/wallet/unwrapName.js.map +1 -1
- package/dist/cjs/functions/wallet/wrapName.js +3 -1
- package/dist/cjs/functions/wallet/wrapName.js.map +1 -1
- package/dist/cjs/index.js +1 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/subgraph.js +4 -1
- package/dist/cjs/subgraph.js.map +1 -1
- package/dist/cjs/utils/contentHash.js +60 -131
- package/dist/cjs/utils/contentHash.js.map +1 -1
- package/dist/cjs/utils/encoders/encodeAbi.js +33 -3
- package/dist/cjs/utils/encoders/encodeAbi.js.map +1 -1
- package/dist/cjs/utils/encoders/encodeClearRecords.js +12 -0
- package/dist/cjs/utils/encoders/encodeClearRecords.js.map +1 -0
- package/dist/cjs/utils/encoders/encodeSetAddr.js +5 -16
- package/dist/cjs/utils/encoders/encodeSetAddr.js.map +1 -1
- package/dist/cjs/utils/encoders/encodeSetContentHash.js +1 -4
- package/dist/cjs/utils/encoders/encodeSetContentHash.js.map +1 -1
- package/dist/cjs/utils/format.js +1 -5
- package/dist/cjs/utils/format.js.map +1 -1
- package/dist/cjs/utils/fuses.js +184 -200
- package/dist/cjs/utils/fuses.js.map +1 -1
- package/dist/cjs/utils/generateRecordCallArray.js +2 -7
- package/dist/cjs/utils/generateRecordCallArray.js.map +1 -1
- package/dist/cjs/utils/index.js +31 -7
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/normaliseCoinId.js +35 -0
- package/dist/cjs/utils/normaliseCoinId.js.map +1 -0
- package/dist/cjs/utils/registerHelpers.js +3 -1
- package/dist/cjs/utils/registerHelpers.js.map +1 -1
- package/dist/cjs/wallet.js +3 -1
- package/dist/cjs/wallet.js.map +1 -1
- package/dist/esm/clients/decorators/subgraph.js.map +1 -1
- package/dist/esm/clients/decorators/wallet.js +2 -0
- package/dist/esm/clients/decorators/wallet.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/contracts/consts.js +53 -2
- package/dist/esm/contracts/consts.js.map +1 -1
- package/dist/esm/dns.js +1 -1
- package/dist/esm/dns.js.map +1 -1
- package/dist/esm/errors/subgraph.js.map +1 -1
- package/dist/esm/errors/utils.js +24 -16
- package/dist/esm/errors/utils.js.map +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/errors/version.js.map +1 -1
- package/dist/esm/functions/dns/{prepareDnsImport.js → getDnsImportData.js} +10 -10
- package/dist/esm/functions/dns/{prepareDnsImport.js.map → getDnsImportData.js.map} +1 -1
- package/dist/esm/functions/dns/getDnsOwner.js +1 -1
- package/dist/esm/functions/dns/importDnsName.js +13 -12
- package/dist/esm/functions/dns/importDnsName.js.map +1 -1
- package/dist/esm/functions/public/_getAbi.js +2 -2
- package/dist/esm/functions/public/_getAbi.js.map +1 -1
- package/dist/esm/functions/public/_getAddr.js +10 -20
- package/dist/esm/functions/public/_getAddr.js.map +1 -1
- package/dist/esm/functions/public/_getContentHash.js +2 -2
- package/dist/esm/functions/public/batch.js +2 -1
- package/dist/esm/functions/public/batch.js.map +1 -1
- package/dist/esm/functions/public/getAbiRecord.js +2 -1
- package/dist/esm/functions/public/getAbiRecord.js.map +1 -1
- package/dist/esm/functions/public/getAddressRecord.js +2 -1
- package/dist/esm/functions/public/getAddressRecord.js.map +1 -1
- package/dist/esm/functions/public/getAvailable.js +2 -1
- package/dist/esm/functions/public/getAvailable.js.map +1 -1
- package/dist/esm/functions/public/getContentHashRecord.js +2 -1
- package/dist/esm/functions/public/getContentHashRecord.js.map +1 -1
- package/dist/esm/functions/public/getExpiry.js +2 -1
- package/dist/esm/functions/public/getExpiry.js.map +1 -1
- package/dist/esm/functions/public/getName.js +2 -1
- package/dist/esm/functions/public/getName.js.map +1 -1
- package/dist/esm/functions/public/getOwner.js +3 -2
- package/dist/esm/functions/public/getOwner.js.map +1 -1
- package/dist/esm/functions/public/getPrice.js +3 -2
- package/dist/esm/functions/public/getPrice.js.map +1 -1
- package/dist/esm/functions/public/getRecords.js +54 -39
- package/dist/esm/functions/public/getRecords.js.map +1 -1
- package/dist/esm/functions/public/getResolver.js +2 -1
- package/dist/esm/functions/public/getResolver.js.map +1 -1
- package/dist/esm/functions/public/getSupportedInterfaces.js +24 -2
- package/dist/esm/functions/public/getSupportedInterfaces.js.map +1 -1
- package/dist/esm/functions/public/getTextRecord.js +2 -1
- package/dist/esm/functions/public/getTextRecord.js.map +1 -1
- package/dist/esm/functions/public/getWrapperData.js +2 -1
- package/dist/esm/functions/public/getWrapperData.js.map +1 -1
- package/dist/esm/functions/public/getWrapperName.js +2 -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/client.js.map +1 -1
- package/dist/esm/functions/subgraph/filters.js +2 -0
- package/dist/esm/functions/subgraph/filters.js.map +1 -0
- package/dist/esm/functions/subgraph/getDecodedName.js +2 -1
- package/dist/esm/functions/subgraph/getDecodedName.js.map +1 -1
- package/dist/esm/functions/subgraph/getNameHistory.js +8 -6
- package/dist/esm/functions/subgraph/getNameHistory.js.map +1 -1
- package/dist/esm/functions/subgraph/getNamesForAddress.js +163 -192
- package/dist/esm/functions/subgraph/getNamesForAddress.js.map +1 -1
- package/dist/esm/functions/subgraph/getSubgraphRecords.js +36 -27
- package/dist/esm/functions/subgraph/getSubgraphRecords.js.map +1 -1
- package/dist/esm/functions/subgraph/getSubgraphRegistrant.js +2 -1
- package/dist/esm/functions/subgraph/getSubgraphRegistrant.js.map +1 -1
- package/dist/esm/functions/subgraph/getSubnames.js +103 -112
- package/dist/esm/functions/subgraph/getSubnames.js.map +1 -1
- package/dist/esm/functions/subgraph/types.js +2 -0
- package/dist/esm/functions/subgraph/types.js.map +1 -0
- package/dist/esm/functions/subgraph/utils.js.map +1 -1
- package/dist/esm/functions/wallet/clearRecords.js +44 -0
- package/dist/esm/functions/wallet/clearRecords.js.map +1 -0
- package/dist/esm/functions/wallet/commitName.js +3 -1
- package/dist/esm/functions/wallet/commitName.js.map +1 -1
- package/dist/esm/functions/wallet/createSubname.js +3 -2
- package/dist/esm/functions/wallet/createSubname.js.map +1 -1
- package/dist/esm/functions/wallet/deleteSubname.js +2 -1
- package/dist/esm/functions/wallet/deleteSubname.js.map +1 -1
- package/dist/esm/functions/wallet/registerName.js +4 -1
- package/dist/esm/functions/wallet/registerName.js.map +1 -1
- package/dist/esm/functions/wallet/renewNames.js +3 -1
- package/dist/esm/functions/wallet/renewNames.js.map +1 -1
- package/dist/esm/functions/wallet/setAbiRecord.js +3 -1
- package/dist/esm/functions/wallet/setAbiRecord.js.map +1 -1
- package/dist/esm/functions/wallet/setAddressRecord.js +2 -1
- package/dist/esm/functions/wallet/setAddressRecord.js.map +1 -1
- package/dist/esm/functions/wallet/setChildFuses.js +3 -2
- package/dist/esm/functions/wallet/setChildFuses.js.map +1 -1
- package/dist/esm/functions/wallet/setContentHashRecord.js +2 -1
- package/dist/esm/functions/wallet/setContentHashRecord.js.map +1 -1
- package/dist/esm/functions/wallet/setFuses.js +4 -3
- package/dist/esm/functions/wallet/setFuses.js.map +1 -1
- package/dist/esm/functions/wallet/setPrimaryName.js +2 -1
- package/dist/esm/functions/wallet/setPrimaryName.js.map +1 -1
- package/dist/esm/functions/wallet/setRecords.js +2 -1
- package/dist/esm/functions/wallet/setRecords.js.map +1 -1
- package/dist/esm/functions/wallet/setResolver.js +2 -1
- package/dist/esm/functions/wallet/setResolver.js.map +1 -1
- package/dist/esm/functions/wallet/setTextRecord.js +2 -1
- package/dist/esm/functions/wallet/setTextRecord.js.map +1 -1
- package/dist/esm/functions/wallet/transferName.js +2 -1
- package/dist/esm/functions/wallet/transferName.js.map +1 -1
- package/dist/esm/functions/wallet/unwrapName.js +2 -1
- package/dist/esm/functions/wallet/unwrapName.js.map +1 -1
- package/dist/esm/functions/wallet/wrapName.js +6 -3
- package/dist/esm/functions/wallet/wrapName.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/subgraph.js +1 -0
- package/dist/esm/subgraph.js.map +1 -1
- package/dist/esm/utils/contentHash.js +56 -128
- package/dist/esm/utils/contentHash.js.map +1 -1
- package/dist/esm/utils/encoders/encodeAbi.js +30 -2
- package/dist/esm/utils/encoders/encodeAbi.js.map +1 -1
- package/dist/esm/utils/encoders/encodeClearRecords.js +8 -0
- package/dist/esm/utils/encoders/encodeClearRecords.js.map +1 -0
- package/dist/esm/utils/encoders/encodeSetAddr.js +5 -16
- package/dist/esm/utils/encoders/encodeSetAddr.js.map +1 -1
- package/dist/esm/utils/encoders/encodeSetContentHash.js +2 -5
- package/dist/esm/utils/encoders/encodeSetContentHash.js.map +1 -1
- package/dist/esm/utils/format.js +0 -2
- package/dist/esm/utils/format.js.map +1 -1
- package/dist/esm/utils/fuses.js +183 -201
- package/dist/esm/utils/fuses.js.map +1 -1
- package/dist/esm/utils/generateRecordCallArray.js +3 -7
- package/dist/esm/utils/generateRecordCallArray.js.map +1 -1
- package/dist/esm/utils/index.js +5 -3
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/normaliseCoinId.js +30 -0
- package/dist/esm/utils/normaliseCoinId.js.map +1 -0
- package/dist/esm/utils/registerHelpers.js +4 -2
- package/dist/esm/utils/registerHelpers.js.map +1 -1
- package/dist/esm/wallet.js +1 -0
- 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 +2 -520
- package/dist/types/clients/decorators/subgraph.d.ts.map +1 -1
- package/dist/types/clients/decorators/wallet.d.ts +66 -47
- package/dist/types/clients/decorators/wallet.d.ts.map +1 -1
- package/dist/types/clients/public.d.ts +24 -265
- package/dist/types/clients/public.d.ts.map +1 -1
- package/dist/types/clients/subgraph.d.ts +19 -260
- package/dist/types/clients/subgraph.d.ts.map +1 -1
- package/dist/types/clients/wallet.d.ts +54 -86
- package/dist/types/clients/wallet.d.ts.map +1 -1
- package/dist/types/contracts/consts.d.ts +52 -3
- package/dist/types/contracts/consts.d.ts.map +1 -1
- package/dist/types/dns.d.ts +2 -2
- package/dist/types/dns.d.ts.map +1 -1
- package/dist/types/errors/subgraph.d.ts +4 -4
- package/dist/types/errors/subgraph.d.ts.map +1 -1
- package/dist/types/errors/utils.d.ts +16 -13
- package/dist/types/errors/utils.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/getDnsImportData.d.ts +39 -0
- package/dist/types/functions/dns/{prepareDnsImport.d.ts.map → getDnsImportData.d.ts.map} +1 -1
- package/dist/types/functions/dns/getDnsOwner.d.ts +1 -1
- package/dist/types/functions/dns/importDnsName.d.ts +88 -102
- 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/public/batch.d.ts +2 -1
- package/dist/types/functions/public/batch.d.ts.map +1 -1
- package/dist/types/functions/public/getAbiRecord.d.ts +2 -1
- package/dist/types/functions/public/getAbiRecord.d.ts.map +1 -1
- package/dist/types/functions/public/getAddressRecord.d.ts +2 -1
- package/dist/types/functions/public/getAddressRecord.d.ts.map +1 -1
- package/dist/types/functions/public/getAvailable.d.ts +2 -1
- package/dist/types/functions/public/getAvailable.d.ts.map +1 -1
- package/dist/types/functions/public/getContentHashRecord.d.ts +2 -1
- package/dist/types/functions/public/getContentHashRecord.d.ts.map +1 -1
- package/dist/types/functions/public/getExpiry.d.ts +2 -1
- package/dist/types/functions/public/getExpiry.d.ts.map +1 -1
- package/dist/types/functions/public/getName.d.ts +2 -1
- package/dist/types/functions/public/getName.d.ts.map +1 -1
- package/dist/types/functions/public/getOwner.d.ts +19 -9
- package/dist/types/functions/public/getOwner.d.ts.map +1 -1
- package/dist/types/functions/public/getPrice.d.ts +3 -2
- package/dist/types/functions/public/getPrice.d.ts.map +1 -1
- package/dist/types/functions/public/getRecords.d.ts +3 -2
- package/dist/types/functions/public/getRecords.d.ts.map +1 -1
- package/dist/types/functions/public/getResolver.d.ts +2 -1
- package/dist/types/functions/public/getResolver.d.ts.map +1 -1
- package/dist/types/functions/public/getSupportedInterfaces.d.ts +41 -4
- package/dist/types/functions/public/getSupportedInterfaces.d.ts.map +1 -1
- package/dist/types/functions/public/getTextRecord.d.ts +2 -1
- package/dist/types/functions/public/getTextRecord.d.ts.map +1 -1
- package/dist/types/functions/public/getWrapperData.d.ts +4 -3
- package/dist/types/functions/public/getWrapperData.d.ts.map +1 -1
- package/dist/types/functions/public/getWrapperName.d.ts +2 -1
- package/dist/types/functions/public/getWrapperName.d.ts.map +1 -1
- package/dist/types/functions/subgraph/client.d.ts +2 -2
- package/dist/types/functions/subgraph/client.d.ts.map +1 -1
- package/dist/types/functions/subgraph/filters.d.ts +693 -0
- package/dist/types/functions/subgraph/filters.d.ts.map +1 -0
- package/dist/types/functions/subgraph/getDecodedName.d.ts +2 -1
- package/dist/types/functions/subgraph/getDecodedName.d.ts.map +1 -1
- package/dist/types/functions/subgraph/getNameHistory.d.ts +2 -1
- package/dist/types/functions/subgraph/getNameHistory.d.ts.map +1 -1
- package/dist/types/functions/subgraph/getNamesForAddress.d.ts +7 -2
- package/dist/types/functions/subgraph/getNamesForAddress.d.ts.map +1 -1
- package/dist/types/functions/subgraph/getSubgraphRecords.d.ts +2 -1
- package/dist/types/functions/subgraph/getSubgraphRecords.d.ts.map +1 -1
- package/dist/types/functions/subgraph/getSubgraphRegistrant.d.ts +2 -1
- package/dist/types/functions/subgraph/getSubgraphRegistrant.d.ts.map +1 -1
- package/dist/types/functions/subgraph/getSubnames.d.ts +5 -2
- package/dist/types/functions/subgraph/getSubnames.d.ts.map +1 -1
- package/dist/types/functions/subgraph/types.d.ts +13 -0
- package/dist/types/functions/subgraph/types.d.ts.map +1 -0
- package/dist/types/functions/subgraph/utils.d.ts +2 -2
- package/dist/types/functions/subgraph/utils.d.ts.map +1 -1
- package/dist/types/functions/wallet/clearRecords.d.ts +555 -0
- package/dist/types/functions/wallet/clearRecords.d.ts.map +1 -0
- package/dist/types/functions/wallet/commitName.d.ts +80 -93
- package/dist/types/functions/wallet/commitName.d.ts.map +1 -1
- package/dist/types/functions/wallet/createSubname.d.ts +82 -96
- package/dist/types/functions/wallet/createSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/deleteSubname.d.ts +79 -93
- package/dist/types/functions/wallet/deleteSubname.d.ts.map +1 -1
- package/dist/types/functions/wallet/registerName.d.ts +80 -89
- package/dist/types/functions/wallet/registerName.d.ts.map +1 -1
- package/dist/types/functions/wallet/renewNames.d.ts +79 -89
- package/dist/types/functions/wallet/renewNames.d.ts.map +1 -1
- package/dist/types/functions/wallet/setAbiRecord.d.ts +80 -93
- package/dist/types/functions/wallet/setAbiRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setAddressRecord.d.ts +79 -93
- package/dist/types/functions/wallet/setAddressRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setChildFuses.d.ts +81 -95
- package/dist/types/functions/wallet/setChildFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setContentHashRecord.d.ts +79 -93
- package/dist/types/functions/wallet/setContentHashRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/setFuses.d.ts +81 -95
- package/dist/types/functions/wallet/setFuses.d.ts.map +1 -1
- package/dist/types/functions/wallet/setPrimaryName.d.ts +79 -93
- package/dist/types/functions/wallet/setPrimaryName.d.ts.map +1 -1
- package/dist/types/functions/wallet/setRecords.d.ts +79 -93
- package/dist/types/functions/wallet/setRecords.d.ts.map +1 -1
- package/dist/types/functions/wallet/setResolver.d.ts +79 -93
- package/dist/types/functions/wallet/setResolver.d.ts.map +1 -1
- package/dist/types/functions/wallet/setTextRecord.d.ts +79 -93
- package/dist/types/functions/wallet/setTextRecord.d.ts.map +1 -1
- package/dist/types/functions/wallet/transferName.d.ts +80 -94
- package/dist/types/functions/wallet/transferName.d.ts.map +1 -1
- package/dist/types/functions/wallet/unwrapName.d.ts +79 -93
- package/dist/types/functions/wallet/unwrapName.d.ts.map +1 -1
- package/dist/types/functions/wallet/wrapName.d.ts +81 -95
- package/dist/types/functions/wallet/wrapName.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/subgraph.d.ts +1 -0
- package/dist/types/subgraph.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/contentHash.d.ts +10 -11
- package/dist/types/utils/contentHash.d.ts.map +1 -1
- package/dist/types/utils/encoders/encodeAbi.d.ts +8 -5
- package/dist/types/utils/encoders/encodeAbi.d.ts.map +1 -1
- package/dist/types/utils/encoders/encodeClearRecords.d.ts +3 -0
- package/dist/types/utils/encoders/encodeClearRecords.d.ts.map +1 -0
- package/dist/types/utils/encoders/encodeSetAddr.d.ts.map +1 -1
- package/dist/types/utils/encoders/encodeSetContentHash.d.ts.map +1 -1
- package/dist/types/utils/format.d.ts +0 -2
- package/dist/types/utils/format.d.ts.map +1 -1
- package/dist/types/utils/fuses.d.ts +164 -125
- package/dist/types/utils/fuses.d.ts.map +1 -1
- package/dist/types/utils/generateRecordCallArray.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +5 -3
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/normaliseCoinId.d.ts +10 -0
- package/dist/types/utils/normaliseCoinId.d.ts.map +1 -0
- package/dist/types/utils/registerHelpers.d.ts +2 -2
- package/dist/types/utils/registerHelpers.d.ts.map +1 -1
- package/dist/types/wallet.d.ts +18 -17
- package/dist/types/wallet.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/clients/decorators/subgraph.ts +1 -0
- package/src/clients/decorators/wallet.ts +41 -3
- package/src/clients/public.ts +3 -2
- package/src/clients/subgraph.ts +3 -2
- package/src/clients/wallet.ts +1 -1
- package/src/contracts/consts.ts +58 -13
- package/src/dns.ts +7 -5
- package/src/errors/subgraph.ts +4 -4
- package/src/errors/utils.ts +29 -18
- package/src/errors/version.ts +1 -1
- package/src/functions/dns/{prepareDnsImport.ts → getDnsImportData.ts} +13 -13
- package/src/functions/dns/getDnsOwner.ts +1 -1
- package/src/functions/dns/importDnsName.ts +21 -15
- package/src/functions/public/_getAbi.ts +2 -2
- package/src/functions/public/_getAddr.ts +16 -23
- package/src/functions/public/_getContentHash.ts +2 -2
- package/src/functions/public/batch.ts +2 -1
- package/src/functions/public/getAbiRecord.ts +2 -1
- package/src/functions/public/getAddressRecord.ts +2 -1
- package/src/functions/public/getAvailable.ts +2 -1
- package/src/functions/public/getContentHashRecord.ts +2 -1
- package/src/functions/public/getExpiry.ts +2 -1
- package/src/functions/public/getName.ts +3 -2
- package/src/functions/public/getOwner.ts +54 -33
- package/src/functions/public/getPrice.ts +3 -2
- package/src/functions/public/getRecords.ts +125 -105
- package/src/functions/public/getResolver.ts +3 -2
- package/src/functions/public/getSupportedInterfaces.ts +70 -10
- package/src/functions/public/getTextRecord.ts +2 -1
- package/src/functions/public/getWrapperData.ts +5 -4
- package/src/functions/public/getWrapperName.ts +3 -2
- package/src/functions/public/multicallWrapper.ts +1 -1
- package/src/functions/public/universalWrapper.ts +1 -1
- package/src/functions/subgraph/client.ts +2 -2
- package/src/functions/subgraph/filters.ts +702 -0
- package/src/functions/subgraph/getDecodedName.ts +2 -1
- package/src/functions/subgraph/getNameHistory.ts +8 -6
- package/src/functions/subgraph/getNamesForAddress.ts +199 -195
- package/src/functions/subgraph/getSubgraphRecords.ts +65 -33
- package/src/functions/subgraph/getSubgraphRegistrant.ts +2 -1
- package/src/functions/subgraph/getSubnames.ts +123 -114
- package/src/functions/subgraph/types.ts +13 -0
- package/src/functions/subgraph/utils.ts +2 -2
- package/src/functions/wallet/clearRecords.ts +97 -0
- package/src/functions/wallet/commitName.ts +3 -1
- package/src/functions/wallet/createSubname.ts +6 -5
- package/src/functions/wallet/deleteSubname.ts +2 -1
- package/src/functions/wallet/registerName.ts +4 -1
- package/src/functions/wallet/renewNames.ts +3 -1
- package/src/functions/wallet/setAbiRecord.ts +3 -1
- package/src/functions/wallet/setAddressRecord.ts +2 -1
- package/src/functions/wallet/setChildFuses.ts +5 -4
- package/src/functions/wallet/setContentHashRecord.ts +2 -1
- package/src/functions/wallet/setFuses.ts +8 -4
- package/src/functions/wallet/setPrimaryName.ts +2 -1
- package/src/functions/wallet/setRecords.ts +2 -1
- package/src/functions/wallet/setResolver.ts +2 -1
- package/src/functions/wallet/setTextRecord.ts +2 -1
- package/src/functions/wallet/transferName.ts +3 -2
- package/src/functions/wallet/unwrapName.ts +2 -1
- package/src/functions/wallet/wrapName.ts +10 -4
- package/src/index.ts +0 -1
- package/src/subgraph.ts +5 -0
- package/src/types.ts +6 -3
- package/src/utils/contentHash.ts +65 -113
- package/src/utils/encoders/encodeAbi.ts +37 -8
- package/src/utils/encoders/encodeClearRecords.ts +9 -0
- package/src/utils/encoders/encodeSetAddr.ts +5 -16
- package/src/utils/encoders/encodeSetContentHash.ts +2 -4
- package/src/utils/format.ts +0 -6
- package/src/utils/fuses.ts +312 -308
- package/src/utils/generateRecordCallArray.ts +3 -9
- package/src/utils/index.ts +37 -5
- package/src/utils/normaliseCoinId.ts +36 -0
- package/src/utils/registerHelpers.ts +5 -3
- package/src/wallet.ts +41 -0
- package/dist/types/functions/dns/prepareDnsImport.d.ts +0 -39
- package/src/@types/@ensdomains/content-hash.d.ts +0 -1
- package/src/functions/dns/getDnsOwner.test.ts +0 -195
- package/src/functions/dns/importDnsName.test.ts +0 -117
- package/src/functions/dns/prepareDnsImport.test.ts +0 -115
- package/src/functions/public/batch.test.ts +0 -67
- package/src/functions/public/ccip.test.ts +0 -78
- package/src/functions/public/getAbiRecord.test.ts +0 -174
- package/src/functions/public/getAddressRecord.test.ts +0 -83
- package/src/functions/public/getAvailable.test.ts +0 -17
- package/src/functions/public/getContentHashRecord.test.ts +0 -28
- package/src/functions/public/getExpiry.test.ts +0 -48
- package/src/functions/public/getName.test.ts +0 -66
- package/src/functions/public/getOwner.test.ts +0 -87
- package/src/functions/public/getPrice.test.ts +0 -45
- package/src/functions/public/getRecords.test.ts +0 -49
- package/src/functions/public/getResolver.test.ts +0 -12
- package/src/functions/public/getTextRecord.test.ts +0 -20
- package/src/functions/public/getWrapperData.test.ts +0 -79
- package/src/functions/public/getWrapperName.test.ts +0 -19
- package/src/functions/subgraph/client.test.ts +0 -170
- package/src/functions/subgraph/getDecodedName.test.ts +0 -31
- package/src/functions/subgraph/getNameHistory.test.ts +0 -39
- package/src/functions/subgraph/getNamesForAddress.test.ts +0 -244
- package/src/functions/subgraph/getSubgraphRecords.test.ts +0 -74
- package/src/functions/subgraph/getSubgraphRegistrant.test.ts +0 -34
- package/src/functions/subgraph/getSubnames.test.ts +0 -202
- package/src/functions/wallet/commitName.test.ts +0 -58
- package/src/functions/wallet/createSubname.test.ts +0 -73
- package/src/functions/wallet/deleteSubname.test.ts +0 -150
- package/src/functions/wallet/registerName.test.ts +0 -81
- package/src/functions/wallet/renewNames.test.ts +0 -92
- package/src/functions/wallet/setAbiRecord.test.ts +0 -156
- package/src/functions/wallet/setAddressRecord.test.ts +0 -121
- package/src/functions/wallet/setChildFuses.test.ts +0 -97
- package/src/functions/wallet/setContentHashRecord.test.ts +0 -69
- package/src/functions/wallet/setFuses.test.ts +0 -287
- package/src/functions/wallet/setPrimaryName.test.ts +0 -71
- package/src/functions/wallet/setRecords.test.ts +0 -127
- package/src/functions/wallet/setResolver.test.ts +0 -114
- package/src/functions/wallet/setTextRecord.test.ts +0 -67
- package/src/functions/wallet/transferName.test.ts +0 -201
- package/src/functions/wallet/unwrapName.test.ts +0 -93
- package/src/functions/wallet/wrapName.test.ts +0 -195
- package/src/utils/generateRecordCallArray.test.ts +0 -84
- package/src/utils/labels.test.ts +0 -163
- package/src/utils/makeLabelNodeAndParent.test.ts +0 -11
- package/src/utils/makeSafeSecondsDate.test.ts +0 -14
- package/src/utils/normalise.test.ts +0 -35
- package/src/utils/ownerFromContract.test.ts +0 -52
- package/src/utils/registerHelpers.test.ts +0 -159
- package/src/utils/validation.test.ts +0 -170
- package/src/utils/wrapper.test.ts +0 -46
|
@@ -14,8 +14,12 @@ export type RegisterNameReturnType = Hash;
|
|
|
14
14
|
export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount extends Account | undefined>(wallet: {
|
|
15
15
|
account: TAccount;
|
|
16
16
|
batch?: {
|
|
17
|
-
multicall?: boolean |
|
|
17
|
+
multicall?: boolean | {
|
|
18
|
+
batchSize?: number | undefined;
|
|
19
|
+
wait?: number | undefined;
|
|
20
|
+
} | undefined;
|
|
18
21
|
} | undefined;
|
|
22
|
+
cacheTime: number;
|
|
19
23
|
chain: TChain;
|
|
20
24
|
key: string;
|
|
21
25
|
name: string;
|
|
@@ -24,46 +28,22 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
24
28
|
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
|
|
25
29
|
type: string;
|
|
26
30
|
uid: string;
|
|
27
|
-
extend: <TNextExtended extends {
|
|
28
|
-
account?: undefined;
|
|
29
|
-
batch?: undefined;
|
|
30
|
-
chain?: undefined;
|
|
31
|
-
key?: undefined;
|
|
32
|
-
name?: undefined;
|
|
33
|
-
pollingInterval?: undefined;
|
|
34
|
-
request?: undefined;
|
|
35
|
-
transport?: undefined;
|
|
36
|
-
type?: undefined;
|
|
37
|
-
uid?: undefined;
|
|
38
|
-
} & {
|
|
39
|
-
[key: string]: unknown;
|
|
40
|
-
} = {
|
|
41
|
-
account?: undefined;
|
|
42
|
-
batch?: undefined;
|
|
43
|
-
chain?: undefined;
|
|
44
|
-
key?: undefined;
|
|
45
|
-
name?: undefined;
|
|
46
|
-
pollingInterval?: undefined;
|
|
47
|
-
request?: undefined;
|
|
48
|
-
transport?: undefined;
|
|
49
|
-
type?: undefined;
|
|
50
|
-
uid?: undefined;
|
|
51
|
-
} & {
|
|
52
|
-
[key: string]: unknown;
|
|
53
|
-
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => import("viem").Narrow<TNextExtended>) => never;
|
|
54
31
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
55
|
-
deployContract: <TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
|
|
32
|
+
deployContract: <const TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
|
|
56
33
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
57
34
|
getChainId: () => Promise<number>;
|
|
58
35
|
getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
|
|
36
|
+
prepareTransactionRequest: <TChainOverride_1 extends import("viem").Chain | undefined>(args: import("viem").PrepareTransactionRequestParameters<TChain, TAccount, TChainOverride_1>) => Promise<import("viem").PrepareTransactionRequestReturnType>;
|
|
59
37
|
requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
|
|
60
38
|
requestPermissions: (args: {
|
|
61
39
|
[x: string]: Record<string, any>;
|
|
62
40
|
eth_accounts: Record<string, any>;
|
|
63
41
|
}) => Promise<import("viem").RequestPermissionsReturnType>;
|
|
64
|
-
|
|
42
|
+
sendRawTransaction: (args: import("viem/actions").SendRawTransactionParameters) => Promise<`0x${string}`>;
|
|
43
|
+
sendTransaction: <TChainOverride_2 extends import("viem").Chain | undefined>(args: SendTransactionParameters<TChain, TAccount, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
65
44
|
signMessage: (args: import("viem").SignMessageParameters<TAccount>) => Promise<`0x${string}`>;
|
|
66
|
-
|
|
45
|
+
signTransaction: <TChainOverride_3 extends import("viem").Chain | undefined>(args: import("viem/actions").SignTransactionParameters<TChain, TAccount, TChainOverride_3>) => Promise<`0x${string}`>;
|
|
46
|
+
signTypedData: <const TTypedData extends {
|
|
67
47
|
[key: string]: unknown;
|
|
68
48
|
} | {
|
|
69
49
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
@@ -72,17 +52,17 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
72
52
|
[x: `address[${string}]`]: undefined;
|
|
73
53
|
[x: `bool[${string}]`]: undefined;
|
|
74
54
|
[x: `bytes[${string}]`]: undefined;
|
|
75
|
-
[x: `
|
|
76
|
-
[x: `
|
|
55
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
56
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
77
57
|
[x: `bytes16[${string}]`]: undefined;
|
|
78
58
|
[x: `bytes1[${string}]`]: undefined;
|
|
79
|
-
[x: `
|
|
59
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
80
60
|
[x: `bytes4[${string}]`]: undefined;
|
|
81
61
|
[x: `bytes5[${string}]`]: undefined;
|
|
82
62
|
[x: `bytes6[${string}]`]: undefined;
|
|
83
63
|
[x: `bytes7[${string}]`]: undefined;
|
|
64
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
84
65
|
[x: `bytes9[${string}]`]: undefined;
|
|
85
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
86
66
|
[x: `bytes11[${string}]`]: undefined;
|
|
87
67
|
[x: `bytes12[${string}]`]: undefined;
|
|
88
68
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -105,8 +85,8 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
105
85
|
[x: `bytes31[${string}]`]: undefined;
|
|
106
86
|
[x: `bytes32[${string}]`]: undefined;
|
|
107
87
|
[x: `int[${string}]`]: undefined;
|
|
108
|
-
[x: `int8[${string}]`]: undefined;
|
|
109
88
|
[x: `int16[${string}]`]: undefined;
|
|
89
|
+
[x: `int8[${string}]`]: undefined;
|
|
110
90
|
[x: `int24[${string}]`]: undefined;
|
|
111
91
|
[x: `int32[${string}]`]: undefined;
|
|
112
92
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -138,8 +118,8 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
138
118
|
[x: `int248[${string}]`]: undefined;
|
|
139
119
|
[x: `int256[${string}]`]: undefined;
|
|
140
120
|
[x: `uint[${string}]`]: undefined;
|
|
141
|
-
[x: `uint8[${string}]`]: undefined;
|
|
142
121
|
[x: `uint16[${string}]`]: undefined;
|
|
122
|
+
[x: `uint8[${string}]`]: undefined;
|
|
143
123
|
[x: `uint24[${string}]`]: undefined;
|
|
144
124
|
[x: `uint32[${string}]`]: undefined;
|
|
145
125
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -174,17 +154,17 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
174
154
|
address?: undefined;
|
|
175
155
|
bool?: undefined;
|
|
176
156
|
bytes?: undefined;
|
|
177
|
-
|
|
178
|
-
|
|
157
|
+
bytes3?: undefined;
|
|
158
|
+
bytes10?: undefined;
|
|
179
159
|
bytes16?: undefined;
|
|
180
160
|
bytes1?: undefined;
|
|
181
|
-
|
|
161
|
+
bytes2?: undefined;
|
|
182
162
|
bytes4?: undefined;
|
|
183
163
|
bytes5?: undefined;
|
|
184
164
|
bytes6?: undefined;
|
|
185
165
|
bytes7?: undefined;
|
|
166
|
+
bytes8?: undefined;
|
|
186
167
|
bytes9?: undefined;
|
|
187
|
-
bytes10?: undefined;
|
|
188
168
|
bytes11?: undefined;
|
|
189
169
|
bytes12?: undefined;
|
|
190
170
|
bytes13?: undefined;
|
|
@@ -206,8 +186,8 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
206
186
|
bytes30?: undefined;
|
|
207
187
|
bytes31?: undefined;
|
|
208
188
|
bytes32?: undefined;
|
|
209
|
-
int8?: undefined;
|
|
210
189
|
int16?: undefined;
|
|
190
|
+
int8?: undefined;
|
|
211
191
|
int24?: undefined;
|
|
212
192
|
int32?: undefined;
|
|
213
193
|
int40?: undefined;
|
|
@@ -238,8 +218,8 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
238
218
|
int240?: undefined;
|
|
239
219
|
int248?: undefined;
|
|
240
220
|
int256?: undefined;
|
|
241
|
-
uint8?: undefined;
|
|
242
221
|
uint16?: undefined;
|
|
222
|
+
uint8?: undefined;
|
|
243
223
|
uint24?: undefined;
|
|
244
224
|
uint32?: undefined;
|
|
245
225
|
uint40?: undefined;
|
|
@@ -273,7 +253,21 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
273
253
|
}, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>) => Promise<`0x${string}`>;
|
|
274
254
|
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
275
255
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
276
|
-
writeContract: <TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string,
|
|
256
|
+
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, TChain, TAccount, TChainOverride_4>) => Promise<`0x${string}`>;
|
|
257
|
+
extend: <const client extends {
|
|
258
|
+
[x: string]: unknown;
|
|
259
|
+
account?: undefined;
|
|
260
|
+
batch?: undefined;
|
|
261
|
+
cacheTime?: undefined;
|
|
262
|
+
chain?: undefined;
|
|
263
|
+
key?: undefined;
|
|
264
|
+
name?: undefined;
|
|
265
|
+
pollingInterval?: undefined;
|
|
266
|
+
request?: undefined;
|
|
267
|
+
transport?: undefined;
|
|
268
|
+
type?: undefined;
|
|
269
|
+
uid?: undefined;
|
|
270
|
+
}>(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>>;
|
|
277
271
|
}, { value, ...args }: RegisterNameDataParameters) => RegisterNameDataReturnType;
|
|
278
272
|
/**
|
|
279
273
|
* Registers a name on ENS
|
|
@@ -284,7 +278,10 @@ export declare const makeFunctionData: <TChain extends ChainWithEns, TAccount ex
|
|
|
284
278
|
* @example
|
|
285
279
|
* import { createPublicClient, createWalletClient, http, custom } from 'viem'
|
|
286
280
|
* import { mainnet } from 'viem/chains'
|
|
287
|
-
* import { addEnsContracts
|
|
281
|
+
* import { addEnsContracts } from '@ensdomains/ensjs'
|
|
282
|
+
* import { getPrice } from '@ensdomains/ensjs/public'
|
|
283
|
+
* import { randomSecret } from '@ensdomains/ensjs/utils'
|
|
284
|
+
* import { commitName, registerName } from '@ensdomains/ensjs/wallet'
|
|
288
285
|
*
|
|
289
286
|
* const mainnetWithEns = addEnsContracts(mainnet)
|
|
290
287
|
* const client = createPublicClient({
|
|
@@ -317,8 +314,12 @@ declare namespace registerName {
|
|
|
317
314
|
var makeFunctionData: <TChain extends ChainWithEns, TAccount extends Account | undefined>(wallet: {
|
|
318
315
|
account: TAccount;
|
|
319
316
|
batch?: {
|
|
320
|
-
multicall?: boolean |
|
|
317
|
+
multicall?: boolean | {
|
|
318
|
+
batchSize?: number | undefined;
|
|
319
|
+
wait?: number | undefined;
|
|
320
|
+
} | undefined;
|
|
321
321
|
} | undefined;
|
|
322
|
+
cacheTime: number;
|
|
322
323
|
chain: TChain;
|
|
323
324
|
key: string;
|
|
324
325
|
name: string;
|
|
@@ -327,46 +328,22 @@ declare namespace registerName {
|
|
|
327
328
|
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
|
|
328
329
|
type: string;
|
|
329
330
|
uid: string;
|
|
330
|
-
extend: <TNextExtended extends {
|
|
331
|
-
account?: undefined;
|
|
332
|
-
batch?: undefined;
|
|
333
|
-
chain?: undefined;
|
|
334
|
-
key?: undefined;
|
|
335
|
-
name?: undefined;
|
|
336
|
-
pollingInterval?: undefined;
|
|
337
|
-
request?: undefined;
|
|
338
|
-
transport?: undefined;
|
|
339
|
-
type?: undefined;
|
|
340
|
-
uid?: undefined;
|
|
341
|
-
} & {
|
|
342
|
-
[key: string]: unknown;
|
|
343
|
-
} = {
|
|
344
|
-
account?: undefined;
|
|
345
|
-
batch?: undefined;
|
|
346
|
-
chain?: undefined;
|
|
347
|
-
key?: undefined;
|
|
348
|
-
name?: undefined;
|
|
349
|
-
pollingInterval?: undefined;
|
|
350
|
-
request?: undefined;
|
|
351
|
-
transport?: undefined;
|
|
352
|
-
type?: undefined;
|
|
353
|
-
uid?: undefined;
|
|
354
|
-
} & {
|
|
355
|
-
[key: string]: unknown;
|
|
356
|
-
}>(fn: (client: import("viem").Client<Transport, TChain, TAccount, import("viem").WalletRpcSchema, import("viem").WalletActions<TChain, TAccount>>) => import("viem").Narrow<TNextExtended>) => never;
|
|
357
331
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
358
|
-
deployContract: <TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
|
|
332
|
+
deployContract: <const TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TAccount, TChainOverride>) => Promise<`0x${string}`>;
|
|
359
333
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
360
334
|
getChainId: () => Promise<number>;
|
|
361
335
|
getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
|
|
336
|
+
prepareTransactionRequest: <TChainOverride_1 extends import("viem").Chain | undefined>(args: import("viem").PrepareTransactionRequestParameters<TChain, TAccount, TChainOverride_1>) => Promise<import("viem").PrepareTransactionRequestReturnType>;
|
|
362
337
|
requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
|
|
363
338
|
requestPermissions: (args: {
|
|
364
339
|
[x: string]: Record<string, any>;
|
|
365
340
|
eth_accounts: Record<string, any>;
|
|
366
341
|
}) => Promise<import("viem").RequestPermissionsReturnType>;
|
|
367
|
-
|
|
342
|
+
sendRawTransaction: (args: import("viem/actions").SendRawTransactionParameters) => Promise<`0x${string}`>;
|
|
343
|
+
sendTransaction: <TChainOverride_2 extends import("viem").Chain | undefined>(args: SendTransactionParameters<TChain, TAccount, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
368
344
|
signMessage: (args: import("viem").SignMessageParameters<TAccount>) => Promise<`0x${string}`>;
|
|
369
|
-
|
|
345
|
+
signTransaction: <TChainOverride_3 extends import("viem").Chain | undefined>(args: import("viem/actions").SignTransactionParameters<TChain, TAccount, TChainOverride_3>) => Promise<`0x${string}`>;
|
|
346
|
+
signTypedData: <const TTypedData extends {
|
|
370
347
|
[key: string]: unknown;
|
|
371
348
|
} | {
|
|
372
349
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
@@ -375,17 +352,17 @@ declare namespace registerName {
|
|
|
375
352
|
[x: `address[${string}]`]: undefined;
|
|
376
353
|
[x: `bool[${string}]`]: undefined;
|
|
377
354
|
[x: `bytes[${string}]`]: undefined;
|
|
378
|
-
[x: `
|
|
379
|
-
[x: `
|
|
355
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
356
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
380
357
|
[x: `bytes16[${string}]`]: undefined;
|
|
381
358
|
[x: `bytes1[${string}]`]: undefined;
|
|
382
|
-
[x: `
|
|
359
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
383
360
|
[x: `bytes4[${string}]`]: undefined;
|
|
384
361
|
[x: `bytes5[${string}]`]: undefined;
|
|
385
362
|
[x: `bytes6[${string}]`]: undefined;
|
|
386
363
|
[x: `bytes7[${string}]`]: undefined;
|
|
364
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
387
365
|
[x: `bytes9[${string}]`]: undefined;
|
|
388
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
389
366
|
[x: `bytes11[${string}]`]: undefined;
|
|
390
367
|
[x: `bytes12[${string}]`]: undefined;
|
|
391
368
|
[x: `bytes13[${string}]`]: undefined;
|
|
@@ -408,8 +385,8 @@ declare namespace registerName {
|
|
|
408
385
|
[x: `bytes31[${string}]`]: undefined;
|
|
409
386
|
[x: `bytes32[${string}]`]: undefined;
|
|
410
387
|
[x: `int[${string}]`]: undefined;
|
|
411
|
-
[x: `int8[${string}]`]: undefined;
|
|
412
388
|
[x: `int16[${string}]`]: undefined;
|
|
389
|
+
[x: `int8[${string}]`]: undefined;
|
|
413
390
|
[x: `int24[${string}]`]: undefined;
|
|
414
391
|
[x: `int32[${string}]`]: undefined;
|
|
415
392
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -441,8 +418,8 @@ declare namespace registerName {
|
|
|
441
418
|
[x: `int248[${string}]`]: undefined;
|
|
442
419
|
[x: `int256[${string}]`]: undefined;
|
|
443
420
|
[x: `uint[${string}]`]: undefined;
|
|
444
|
-
[x: `uint8[${string}]`]: undefined;
|
|
445
421
|
[x: `uint16[${string}]`]: undefined;
|
|
422
|
+
[x: `uint8[${string}]`]: undefined;
|
|
446
423
|
[x: `uint24[${string}]`]: undefined;
|
|
447
424
|
[x: `uint32[${string}]`]: undefined;
|
|
448
425
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -477,17 +454,17 @@ declare namespace registerName {
|
|
|
477
454
|
address?: undefined;
|
|
478
455
|
bool?: undefined;
|
|
479
456
|
bytes?: undefined;
|
|
480
|
-
|
|
481
|
-
|
|
457
|
+
bytes3?: undefined;
|
|
458
|
+
bytes10?: undefined;
|
|
482
459
|
bytes16?: undefined;
|
|
483
460
|
bytes1?: undefined;
|
|
484
|
-
|
|
461
|
+
bytes2?: undefined;
|
|
485
462
|
bytes4?: undefined;
|
|
486
463
|
bytes5?: undefined;
|
|
487
464
|
bytes6?: undefined;
|
|
488
465
|
bytes7?: undefined;
|
|
466
|
+
bytes8?: undefined;
|
|
489
467
|
bytes9?: undefined;
|
|
490
|
-
bytes10?: undefined;
|
|
491
468
|
bytes11?: undefined;
|
|
492
469
|
bytes12?: undefined;
|
|
493
470
|
bytes13?: undefined;
|
|
@@ -509,8 +486,8 @@ declare namespace registerName {
|
|
|
509
486
|
bytes30?: undefined;
|
|
510
487
|
bytes31?: undefined;
|
|
511
488
|
bytes32?: undefined;
|
|
512
|
-
int8?: undefined;
|
|
513
489
|
int16?: undefined;
|
|
490
|
+
int8?: undefined;
|
|
514
491
|
int24?: undefined;
|
|
515
492
|
int32?: undefined;
|
|
516
493
|
int40?: undefined;
|
|
@@ -541,8 +518,8 @@ declare namespace registerName {
|
|
|
541
518
|
int240?: undefined;
|
|
542
519
|
int248?: undefined;
|
|
543
520
|
int256?: undefined;
|
|
544
|
-
uint8?: undefined;
|
|
545
521
|
uint16?: undefined;
|
|
522
|
+
uint8?: undefined;
|
|
546
523
|
uint24?: undefined;
|
|
547
524
|
uint32?: undefined;
|
|
548
525
|
uint40?: undefined;
|
|
@@ -576,7 +553,21 @@ declare namespace registerName {
|
|
|
576
553
|
}, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>) => Promise<`0x${string}`>;
|
|
577
554
|
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
578
555
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
579
|
-
writeContract: <TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string,
|
|
556
|
+
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, TChain, TAccount, TChainOverride_4>) => Promise<`0x${string}`>;
|
|
557
|
+
extend: <const client extends {
|
|
558
|
+
[x: string]: unknown;
|
|
559
|
+
account?: undefined;
|
|
560
|
+
batch?: undefined;
|
|
561
|
+
cacheTime?: undefined;
|
|
562
|
+
chain?: undefined;
|
|
563
|
+
key?: undefined;
|
|
564
|
+
name?: undefined;
|
|
565
|
+
pollingInterval?: undefined;
|
|
566
|
+
request?: undefined;
|
|
567
|
+
transport?: undefined;
|
|
568
|
+
type?: undefined;
|
|
569
|
+
uid?: undefined;
|
|
570
|
+
}>(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>>;
|
|
580
571
|
}, { value, ...args }: RegisterNameDataParameters) => RegisterNameDataReturnType;
|
|
581
572
|
}
|
|
582
573
|
export default registerName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerName.d.ts","sourceRoot":"","sources":["../../../../src/functions/wallet/registerName.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,SAAS,EACf,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAI5E,OAAO,KAAK,EACV,QAAQ,EACR,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,gCAAgC,CAAA;AAGvC,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,GAAG;IAChE,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,GAAG;IAClE,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,sBAAsB,CAChC,MAAM,SAAS,YAAY,EAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,cAAc,SAAS,YAAY,GAAG,SAAS,IAC7C,QAAQ,CACV,0BAA0B,GACxB,0BAA0B,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAC/D,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAA;AAEzC,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"registerName.d.ts","sourceRoot":"","sources":["../../../../src/functions/wallet/registerName.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,SAAS,EACf,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAI5E,OAAO,KAAK,EACV,QAAQ,EACR,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,gCAAgC,CAAA;AAGvC,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,GAAG;IAChE,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,GAAG;IAClE,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,sBAAsB,CAChC,MAAM,SAAS,YAAY,EAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,cAAc,SAAS,YAAY,GAAG,SAAS,IAC7C,QAAQ,CACV,0BAA0B,GACxB,0BAA0B,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAC/D,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAA;AAEzC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAKP,0BAA0B,KAC7C,0BAwBF,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,iBAAe,YAAY,CACzB,MAAM,SAAS,YAAY,EAC3B,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,cAAc,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,EAE9D,MAAM,EAAE,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAClD,EACE,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,eAAe,EACf,OAAO,EACP,aAAa,EACb,KAAK,EACL,KAAK,EACL,GAAG,MAAM,EACV,EAAE,sBAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,GAC1D,OAAO,CAAC,sBAAsB,CAAC,CAiBjC;kBAnCc,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuC3B,eAAe,YAAY,CAAA"}
|