From 44c991949a23b593777c80ddcf2d29e5b70bc2aa Mon Sep 17 00:00:00 2001 From: tate Date: Fri, 18 Aug 2023 10:29:07 +1000 Subject: [PATCH] export fuses + export wallet data types --- packages/ensjs/src/dns.ts | 2 ++ .../src/functions/wallet/transferName.ts | 2 +- packages/ensjs/src/utils/index.ts | 22 ++++++++++++ packages/ensjs/src/wallet.ts | 34 +++++++++++++++++++ 4 files changed, 59 insertions(+), 1 deletion(-) diff --git a/packages/ensjs/src/dns.ts b/packages/ensjs/src/dns.ts index 683bdb27..b4f8fb06 100644 --- a/packages/ensjs/src/dns.ts +++ b/packages/ensjs/src/dns.ts @@ -10,6 +10,8 @@ export { } from './functions/dns/getDnsOwner.js' export { default as importDnsName, + type ImportDnsNameDataParameters, + type ImportDnsNameDataReturnType, type ImportDnsNameParameters, type ImportDnsNameReturnType, } from './functions/dns/importDnsName.js' diff --git a/packages/ensjs/src/functions/wallet/transferName.ts b/packages/ensjs/src/functions/wallet/transferName.ts index 9f949630..aae8b1aa 100644 --- a/packages/ensjs/src/functions/wallet/transferName.ts +++ b/packages/ensjs/src/functions/wallet/transferName.ts @@ -60,7 +60,7 @@ type BaseRegistrarTransferNameDataParameters = { asParent?: never } -type TransferNameDataParameters = BaseTransferNameDataParameters & +export type TransferNameDataParameters = BaseTransferNameDataParameters & ( | RegistryOrNameWrapperTransferNameDataParameters | BaseRegistrarTransferNameDataParameters diff --git a/packages/ensjs/src/utils/index.ts b/packages/ensjs/src/utils/index.ts index 5bee0ac8..4955aaaf 100644 --- a/packages/ensjs/src/utils/index.ts +++ b/packages/ensjs/src/utils/index.ts @@ -32,6 +32,28 @@ export { MAX_INT_64, MINIMUM_DOT_ETH_CHARS, } from './consts.js' +export { + ChildFuseKeys, + ChildFuses, + FullParentFuseKeys, + FullParentFuses, + FuseRanges, + ParentFuseKeys, + ParentFuses, + UnnamedChildFuseKeys, + UnnamedChildFuses, + UnnamedParentFuseKeys, + UnnamedParentFuses, + UserSettableFuseKeys, + UserSettableFuses, + checkPccBurned, + decodeFuses, + encodeFuses, + type DecodedFuses, + type EncodeChildFusesInputObject, + type EncodeFusesInputObject, + type EncodeParentFusesInputObject, +} from './fuses.js' export { decodeContentHash, diff --git a/packages/ensjs/src/wallet.ts b/packages/ensjs/src/wallet.ts index dbce5389..3e5d2063 100644 --- a/packages/ensjs/src/wallet.ts +++ b/packages/ensjs/src/wallet.ts @@ -1,85 +1,119 @@ export { default as commitName, + type CommitNameDataParameters, + type CommitNameDataReturnType, type CommitNameParameters, type CommitNameReturnType, } from './functions/wallet/commitName.js' export { default as createSubname, + type CreateSubnameDataParameters, + type CreateSubnameDataReturnType, type CreateSubnameParameters, type CreateSubnameReturnType, } from './functions/wallet/createSubname.js' export { default as deleteSubname, + type DeleteSubnameDataParameters, + type DeleteSubnameDataReturnType, type DeleteSubnameParameters, type DeleteSubnameReturnType, } from './functions/wallet/deleteSubname.js' export { default as registerName, + type RegisterNameDataParameters, + type RegisterNameDataReturnType, type RegisterNameParameters, type RegisterNameReturnType, } from './functions/wallet/registerName.js' export { default as renewNames, + type RenewNamesDataParameters, + type RenewNamesDataReturnType, type RenewNamesParameters, type RenewNamesReturnType, } from './functions/wallet/renewNames.js' export { default as setAbiRecord, + type SetAbiRecordDataParameters, + type SetAbiRecordDataReturnType, type SetAbiRecordParameters, type SetAbiRecordReturnType, } from './functions/wallet/setAbiRecord.js' export { default as setAddressRecord, + type SetAddressRecordDataParameters, + type SetAddressRecordDataReturnType, type SetAddressRecordParameters, type SetAddressRecordReturnType, } from './functions/wallet/setAddressRecord.js' export { default as setChildFuses, + type SetChildFusesDataParameters, + type SetChildFusesDataReturnType, type SetChildFusesParameters, type SetChildFusesReturnType, } from './functions/wallet/setChildFuses.js' export { default as setContentHashRecord, + type SetContentHashRecordDataParameters, + type SetContentHashRecordDataReturnType, type SetContentHashRecordParameters, type SetContentHashRecordReturnType, } from './functions/wallet/setContentHashRecord.js' export { default as setFuses, + type SetFusesDataParameters, + type SetFusesDataReturnType, type SetFusesParameters, type SetFusesReturnType, } from './functions/wallet/setFuses.js' export { default as setPrimaryName, + type SetPrimaryNameDataParameters, + type SetPrimaryNameDataReturnType, type SetPrimaryNameParameters, type SetPrimaryNameReturnType, } from './functions/wallet/setPrimaryName.js' export { default as setRecords, + type SetRecordsDataParameters, + type SetRecordsDataReturnType, type SetRecordsParameters, type SetRecordsReturnType, } from './functions/wallet/setRecords.js' export { default as setResolver, + type SetResolverDataParameters, + type SetResolverDataReturnType, type SetResolverParameters, type SetResolverReturnType, } from './functions/wallet/setResolver.js' export { default as setTextRecord, + type SetTextRecordDataParameters, + type SetTextRecordDataReturnType, type SetTextRecordParameters, type SetTextRecordReturnType, } from './functions/wallet/setTextRecord.js' export { default as transferName, + type TransferNameDataParameters, + type TransferNameDataReturnType, type TransferNameParameters, type TransferNameReturnType, } from './functions/wallet/transferName.js' export { default as unwrapName, + type UnwrapNameDataParameters, + type UnwrapNameDataReturnType, type UnwrapNameParameters, type UnwrapNameReturnType, } from './functions/wallet/unwrapName.js' export { default as wrapName, + type WrapNameDataParameters, + type WrapNameDataReturnType, type WrapNameParameters, type WrapNameReturnType, } from './functions/wallet/wrapName.js'