@thenamespace/ens-components 0.9.0 → 0.10.0
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/index.css +316 -109
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +19157 -7819
- package/dist/index.js +129408 -2911
- package/dist/index.js.map +1 -1
- package/dist/types/backend/index.d.ts +1 -0
- package/dist/types/backend/list-manager/index.d.ts +57 -0
- package/dist/types/components/ens-names-registrar-component/ENSNamesRegistrarComponent.d.ts +17 -0
- package/dist/types/components/{ens-names-register-component → ens-names-registrar-component}/sub-components/CostSummary.d.ts +3 -1
- package/dist/types/components/ens-names-registrar-component/sub-components/Header.d.ts +8 -0
- package/dist/types/components/{ens-names-register-component → ens-names-registrar-component}/sub-components/NameSearch.d.ts +4 -1
- package/dist/types/components/{ens-names-register-component → ens-names-registrar-component}/sub-components/RegistrationForm.d.ts +8 -1
- package/dist/types/components/ens-names-registrar-component/sub-components/RegistrationProcess.d.ts +10 -0
- package/dist/types/components/index.d.ts +3 -3
- package/dist/types/components/{ens-offchain-register-modal/EnsOffChainRegisterModal.d.ts → subname-offchain-registrar-modal/SubnameOffChainRegistrarModal.d.ts} +3 -3
- package/dist/types/components/{ens-onchain-register-modal/EnsOnChainRegisterModal.d.ts → subname-onchain-registrar-modal/SubnameOnChainRegistrarModal.d.ts} +3 -3
- package/dist/types/components/{ens-onchain-register-modal → subname-onchain-registrar-modal}/sub-components/RegistrationStep.d.ts +1 -2
- package/dist/types/constants/records/addressConstants.d.ts +12 -0
- package/dist/types/context/account-context.d.ts +44 -0
- package/dist/types/context/account-filter-context.d.ts +32 -0
- package/dist/types/context/auth-context.d.ts +22 -0
- package/dist/types/context/crop-image-context.d.ts +27 -0
- package/dist/types/context/current-user-context.d.ts +19 -0
- package/dist/types/context/edit-profile-context.d.ts +13 -0
- package/dist/types/context/ens-profile-context.d.ts +54 -0
- package/dist/types/context/index.d.ts +6 -0
- package/dist/types/context/listing-form-context.d.ts +55 -0
- package/dist/types/context/listing-status-context.d.ts +19 -0
- package/dist/types/context/mint-subname-context.d.ts +12 -0
- package/dist/types/environment/index.d.ts +9 -0
- package/dist/types/hooks/efp/use-efp.d.ts +11 -0
- package/dist/types/hooks/ens/ens-local-cache.d.ts +18 -0
- package/dist/types/hooks/ens/use-ens-client.d.ts +763 -0
- package/dist/types/hooks/ens/use-ens-contract-address.d.ts +1 -0
- package/dist/types/hooks/ens/use-ens-name-profile.d.ts +15 -0
- package/dist/types/hooks/ens/use-ens.d.ts +21 -0
- package/dist/types/hooks/ens/use-eth-registrar-controller.d.ts +21 -0
- package/dist/types/hooks/ens/use-name-wrapper.d.ts +6 -0
- package/dist/types/hooks/ens/use-owned-ens-names.d.ts +9 -0
- package/dist/types/hooks/index.d.ts +24 -1
- package/dist/types/hooks/namespace/use-burn-l2-subname.d.ts +4 -0
- package/dist/types/hooks/namespace/use-hybrid-resolver.d.ts +10 -0
- package/dist/types/hooks/namespace/use-l2-controller.d.ts +8 -0
- package/dist/types/hooks/namespace/use-listing-manager.d.ts +2 -0
- package/dist/types/hooks/namespace/use-mint-client.d.ts +2 -0
- package/dist/types/hooks/namespace/use-mintable-listings.d.ts +7 -0
- package/dist/types/hooks/namespace/use-name-listings.d.ts +1 -0
- package/dist/types/hooks/namespace/use-namespace-account.d.ts +25 -0
- package/dist/types/hooks/namespace/use-namespace-indexer.d.ts +7 -0
- package/dist/types/hooks/namespace/use-re-render-image.d.ts +1 -0
- package/dist/types/hooks/namespace/use-trading-stats.d.ts +1 -0
- package/dist/types/hooks/upload-image/use-upload-image.d.ts +8 -0
- package/dist/types/hooks/use-error-modal.d.ts +4 -0
- package/dist/types/hooks/use-screen-size.d.ts +5 -0
- package/dist/types/hooks/useWeb3Clients.d.ts +30 -30
- package/dist/types/hooks/web3/alchemy-sdk-no-ssr.d.ts +0 -0
- package/dist/types/hooks/web3/use-alchemy-sdk.d.ts +4 -0
- package/dist/types/hooks/web3/use-block-explorer.d.ts +2 -0
- package/dist/types/hooks/web3/use-blockexplorer-url.d.ts +2 -0
- package/dist/types/hooks/web3/use-contract-addresses.d.ts +1 -0
- package/dist/types/hooks/web3/use-l1-name-minter.d.ts +5 -0
- package/dist/types/hooks/web3/use-main-chain.d.ts +10 -0
- package/dist/types/hooks/web3/use-main-public-client.d.ts +3624 -0
- package/dist/types/hooks/web3/use-name-resolver.d.ts +24 -0
- package/dist/types/hooks/web3/use-name-wrapper.d.ts +3 -0
- package/dist/types/hooks/web3/use-wait-for-transaction.d.ts +8 -0
- package/dist/types/hooks/web3/use-web3-clients.d.ts +8042 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/auth.d.ts +8 -0
- package/dist/types/types/ens.d.ts +61 -0
- package/dist/types/types/errors.d.ts +2 -0
- package/dist/types/types/hybrid-resolver.d.ts +4 -0
- package/dist/types/types/index.d.ts +10 -0
- package/dist/types/types/indexer.d.ts +27 -0
- package/dist/types/types/l2.d.ts +34 -0
- package/dist/types/types/list-manager.d.ts +179 -0
- package/dist/types/types/listing.d.ts +136 -0
- package/dist/types/types/minting.d.ts +75 -0
- package/dist/types/types/name-listing/enums.d.ts +20 -0
- package/dist/types/types/name-listing/index.d.ts +3 -0
- package/dist/types/types/name-listing/l2-name-registry.d.ts +13 -0
- package/dist/types/types/name-listing/listing.d.ts +73 -0
- package/dist/types/types/networks.d.ts +16 -0
- package/dist/types/utils/ens.d.ts +3 -0
- package/dist/types/utils/image-event-emitter.d.ts +8 -0
- package/dist/types/utils/models.d.ts +24 -0
- package/dist/types/web3/abis/index.d.ts +300 -0
- package/dist/types/web3/chains.d.ts +12 -0
- package/dist/types/web3/contracts/addresses.d.ts +4 -0
- package/dist/types/web3/efp-provider.d.ts +2 -0
- package/dist/types/web3/index.d.ts +5 -0
- package/dist/types/web3/providers.d.ts +3 -0
- package/dist/types/web3/wallet-connect.d.ts +2 -0
- package/package.json +13 -3
- package/dist/types/components/ens-names-register-component/ENSNamesRegisterComponent.d.ts +0 -17
- package/dist/types/components/ens-names-register-component/sub-components/Header.d.ts +0 -7
- package/dist/types/components/ens-names-register-component/sub-components/RegistrationProcess.d.ts +0 -17
- /package/dist/types/components/{ens-names-register-component → ens-names-registrar-component}/sub-components/ProgressBar.d.ts +0 -0
- /package/dist/types/components/{ens-names-register-component → ens-names-registrar-component}/sub-components/StepItem.d.ts +0 -0
- /package/dist/types/components/{ens-names-register-component → ens-names-registrar-component}/sub-components/SuccessScreen.d.ts +0 -0
- /package/dist/types/components/{ens-names-register-component → ens-names-registrar-component}/sub-components/Timer.d.ts +0 -0
- /package/dist/types/components/{ens-offchain-register-modal → subname-offchain-registrar-modal}/sub-components/InitialStep.d.ts +0 -0
- /package/dist/types/components/{ens-offchain-register-modal → subname-offchain-registrar-modal}/sub-components/OffchainRegistrationProcess.d.ts +0 -0
- /package/dist/types/components/{ens-offchain-register-modal → subname-offchain-registrar-modal}/sub-components/OffchainSuccessScreen.d.ts +0 -0
- /package/dist/types/components/{ens-onchain-register-modal → subname-onchain-registrar-modal}/sub-components/ConfirmationStep.d.ts +0 -0
- /package/dist/types/components/{ens-onchain-register-modal → subname-onchain-registrar-modal}/sub-components/InitialStep.d.ts +0 -0
- /package/dist/types/components/{ens-onchain-register-modal → subname-onchain-registrar-modal}/sub-components/OnchainSuccessScreen.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useEnsContractAddresses: () => import("@namespacesdk/addresses/dist/addresses").EnsContracts;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EnsName, GenericMintedName, IEnsNameFullProfile, Web3Network } from "@/types";
|
|
2
|
+
import { L2SubnameResponse } from "@namespacesdk/indexer";
|
|
3
|
+
interface ProfileFeatures {
|
|
4
|
+
subnames?: boolean;
|
|
5
|
+
listing?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const useEnsFullNameProfile: () => {
|
|
8
|
+
getFullEnsNameProfileCached: (ensName: string, networkName: Web3Network, features?: ProfileFeatures) => Promise<IEnsNameFullProfile>;
|
|
9
|
+
setProfileToCache: (ensName: string, network: Web3Network, profile: IEnsNameFullProfile) => void;
|
|
10
|
+
getAllSubnames: (ensName: string, networkName: Web3Network) => Promise<GenericMintedName[]>;
|
|
11
|
+
deleteProfileCache: (ensName: string, network: Web3Network) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const addL2SubnameToGenericNames: (items: L2SubnameResponse[], arr: GenericMintedName[]) => void;
|
|
14
|
+
export declare const addL1SubnameToGenericName: (items: EnsName[], arr: GenericMintedName[]) => void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EnsAddressRecord, EnsTextRecord, EnsNameOwner, EnsContenthashRecord } from "@/types";
|
|
2
|
+
import { Address } from "viem";
|
|
3
|
+
export declare const useENS: () => {
|
|
4
|
+
getNameResolver: (ensName: string) => Promise<import("node_modules/@ensdomains/ensjs/dist/functions/public/getResolver").GetResolverReturnType>;
|
|
5
|
+
getNameOwner: (ensName: string) => Promise<EnsNameOwner | null>;
|
|
6
|
+
getAllEnsNames: (ownerAddress: Address) => Promise<{
|
|
7
|
+
names: import("@/types").EnsName[];
|
|
8
|
+
subnames: import("@/types").EnsName[];
|
|
9
|
+
}>;
|
|
10
|
+
getNameSubnames: (parentName: string) => Promise<import("@/types").EnsName[]>;
|
|
11
|
+
getNameAndAvatarForAddr: (value: Address) => Promise<{
|
|
12
|
+
resolvedName: string | undefined;
|
|
13
|
+
avatar: import("node_modules/@ensdomains/ensjs/dist/functions/public/getTextRecord").GetTextRecordReturnType | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
getExpiry: (ensName: string) => Promise<import("node_modules/@ensdomains/ensjs/dist/functions/public/getExpiry").GetExpiryReturnType>;
|
|
16
|
+
getNameRecords: (ensName: string, coinTypes: number[], textKeys: string[]) => Promise<{
|
|
17
|
+
texts: EnsTextRecord[];
|
|
18
|
+
addresses: EnsAddressRecord[];
|
|
19
|
+
contenthash?: EnsContenthashRecord;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EnsRecords } from "@/types";
|
|
2
|
+
import { Address, Hash } from "viem";
|
|
3
|
+
export interface EnsRegistrationContext {
|
|
4
|
+
label: string;
|
|
5
|
+
owner: Address;
|
|
6
|
+
secret: Hash;
|
|
7
|
+
durationInYears: number;
|
|
8
|
+
resolver: Address;
|
|
9
|
+
reverseRecord: boolean;
|
|
10
|
+
records: EnsRecords;
|
|
11
|
+
registrationPrice: bigint;
|
|
12
|
+
}
|
|
13
|
+
export declare const useEthRegistrarController: () => {
|
|
14
|
+
isNameAvailable: (label: string) => Promise<boolean>;
|
|
15
|
+
getRegistrationPrice: (label: string, durationInYears: number) => Promise<{
|
|
16
|
+
ethPrice: number;
|
|
17
|
+
weiPrice: bigint;
|
|
18
|
+
}>;
|
|
19
|
+
bulkCommitment: (ctxs: EnsRegistrationContext[]) => Promise<Hash>;
|
|
20
|
+
bulkRegister: (ctxs: EnsRegistrationContext[]) => Promise<`0x${string}`>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Address, Hash } from "viem";
|
|
2
|
+
export declare const useNameWrapper: () => {
|
|
3
|
+
wrapL2Domain: (name: string, wrappedOwner: Address, fuses: number) => Promise<Hash>;
|
|
4
|
+
approveL1MintContract: () => Promise<Hash>;
|
|
5
|
+
sendToNameWrapper: (name: string) => Promise<`0x${string}`>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Address } from "viem";
|
|
2
|
+
import { EnsName } from "@/types";
|
|
3
|
+
export declare const useOwnedEnsNames: () => {
|
|
4
|
+
fetchEnsNamesAsync: (ownerAddress: Address) => Promise<{
|
|
5
|
+
names: EnsName[];
|
|
6
|
+
subnames: EnsName[];
|
|
7
|
+
}>;
|
|
8
|
+
fetchEnsSubnamesAsync: (parentName: string) => Promise<EnsName[]>;
|
|
9
|
+
};
|
|
@@ -1,2 +1,25 @@
|
|
|
1
|
-
export * from "./useWaitForTransaction";
|
|
2
1
|
export * from "./useWeb3Clients";
|
|
2
|
+
export * from "./web3/use-web3-clients";
|
|
3
|
+
export * from "./web3/use-main-chain";
|
|
4
|
+
export * from "./web3/use-main-public-client";
|
|
5
|
+
export * from "./web3/use-name-resolver";
|
|
6
|
+
export * from "./web3/use-wait-for-transaction";
|
|
7
|
+
export * from "./web3/use-l1-name-minter";
|
|
8
|
+
export * from "./web3/use-block-explorer";
|
|
9
|
+
export * from "./web3/use-alchemy-sdk";
|
|
10
|
+
export * from "./ens/use-ens";
|
|
11
|
+
export * from "./ens/use-eth-registrar-controller";
|
|
12
|
+
export * from "./use-error-modal";
|
|
13
|
+
export * from "./ens/use-ens-contract-address";
|
|
14
|
+
export * from "./ens/use-ens-name-profile";
|
|
15
|
+
export * from "./ens/use-name-wrapper";
|
|
16
|
+
export * from "./namespace/use-burn-l2-subname";
|
|
17
|
+
export * from "./namespace/use-mintable-listings";
|
|
18
|
+
export * from "./namespace/use-hybrid-resolver";
|
|
19
|
+
export * from "./namespace/use-namespace-account";
|
|
20
|
+
export * from "./namespace/use-listing-manager";
|
|
21
|
+
export * from "./namespace/use-l2-controller";
|
|
22
|
+
export * from "./namespace/use-mint-client";
|
|
23
|
+
export * from "./namespace/use-namespace-indexer";
|
|
24
|
+
export * from "./use-screen-size";
|
|
25
|
+
export * from "./efp/use-efp";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Address, Hash } from "viem";
|
|
2
|
+
export declare const useHybridResolver: () => {
|
|
3
|
+
getResolutionChainId: (ensName: string, isOldResolver?: boolean) => Promise<{
|
|
4
|
+
resolveOffchain: boolean;
|
|
5
|
+
resolutionType: bigint;
|
|
6
|
+
}>;
|
|
7
|
+
setHybridResolver: (name: string) => Promise<Hash>;
|
|
8
|
+
updateResolverConfig: (name: string, chainId: number, currentResolver: Address) => Promise<`0x${string}`>;
|
|
9
|
+
hybridResolverAddress: `0x${string}`;
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Hash } from "viem";
|
|
2
|
+
import { GetRegistryParametersResponse } from "@/types/list-manager";
|
|
3
|
+
export declare const useL2Controller: ({ chainId }: {
|
|
4
|
+
chainId: number;
|
|
5
|
+
}) => {
|
|
6
|
+
deployL2Registry: (parameters: GetRegistryParametersResponse) => Promise<Hash>;
|
|
7
|
+
getRegistryDeployParameters: (ensName: string) => Promise<GetRegistryParametersResponse>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ListingSuggestion, ListingSuggestionRequest } from "@/types/list-manager";
|
|
2
|
+
export declare const useListingSuggestions: (params: ListingSuggestionRequest) => {
|
|
3
|
+
isFetching: boolean;
|
|
4
|
+
isError: boolean;
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
items: ListingSuggestion[];
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useNameListing: () => void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EnsName, EnsRecords, GenericMintedName, IEnsNameFullProfile } from "@/types";
|
|
2
|
+
import { Address } from "viem";
|
|
3
|
+
export interface INamespaceAccount {
|
|
4
|
+
primaryName: PrimaryNameState;
|
|
5
|
+
handleRecordsUpdated: (ensRecords: EnsRecords) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface PrimaryNameState {
|
|
8
|
+
isPresent: boolean;
|
|
9
|
+
isError?: boolean;
|
|
10
|
+
isFetching: boolean;
|
|
11
|
+
data?: IEnsNameFullProfile;
|
|
12
|
+
}
|
|
13
|
+
export interface AccountNamesState {
|
|
14
|
+
isFetching: boolean;
|
|
15
|
+
isError: boolean;
|
|
16
|
+
ensNames: EnsName[];
|
|
17
|
+
subnames: GenericMintedName[];
|
|
18
|
+
}
|
|
19
|
+
export interface AccountEFPState {
|
|
20
|
+
isFetching: boolean;
|
|
21
|
+
isError: boolean;
|
|
22
|
+
followers: number;
|
|
23
|
+
following: number;
|
|
24
|
+
}
|
|
25
|
+
export declare const useNamespaceAccount: (ownerAddress?: Address) => INamespaceAccount;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IndexerClient } from "@namespacesdk/indexer";
|
|
2
|
+
import { EnsNameMintStats } from "@/types";
|
|
3
|
+
interface ExtendedIndexerClient extends IndexerClient {
|
|
4
|
+
getNameStats(ensName: string, isTestnet?: boolean): Promise<EnsNameMintStats>;
|
|
5
|
+
}
|
|
6
|
+
export declare const useNamespaceIndexer: () => ExtendedIndexerClient;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useReRenderImage: (imageType: "avatar" | "cover") => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTradingState: () => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosError } from "axios";
|
|
2
|
+
type useUploadImageHookTypes = {
|
|
3
|
+
isPending: boolean;
|
|
4
|
+
error: AxiosError | null;
|
|
5
|
+
startUpload: (image: Blob | null, ensName: string, token: string) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useUploadImage: () => useUploadImageHookTypes;
|
|
8
|
+
export {};
|
|
@@ -4187,21 +4187,21 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4187
4187
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)> ? T_4 extends "legacy" ? import("viem").TransactionSerializedLegacy : never : never : never)>>;
|
|
4188
4188
|
signTypedData: <const typedData extends {
|
|
4189
4189
|
[x: string]: readonly import("abitype").TypedDataParameter[];
|
|
4190
|
+
[x: `string[${string}]`]: undefined;
|
|
4191
|
+
[x: `function[${string}]`]: undefined;
|
|
4190
4192
|
[x: `address[${string}]`]: undefined;
|
|
4191
4193
|
[x: `bool[${string}]`]: undefined;
|
|
4192
|
-
[x: `string[${string}]`]: undefined;
|
|
4193
4194
|
[x: `bytes[${string}]`]: undefined;
|
|
4194
|
-
[x: `int[${string}]`]: undefined;
|
|
4195
|
-
[x: `uint[${string}]`]: undefined;
|
|
4196
|
-
[x: `function[${string}]`]: undefined;
|
|
4197
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
4198
|
-
[x: `bytes32[${string}]`]: undefined;
|
|
4199
4195
|
[x: `bytes1[${string}]`]: undefined;
|
|
4196
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
4197
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
4198
|
+
[x: `bytes5[${string}]`]: undefined;
|
|
4199
|
+
[x: `bytes15[${string}]`]: undefined;
|
|
4200
4200
|
[x: `bytes4[${string}]`]: undefined;
|
|
4201
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
4201
4202
|
[x: `bytes24[${string}]`]: undefined;
|
|
4202
4203
|
[x: `bytes20[${string}]`]: undefined;
|
|
4203
4204
|
[x: `bytes8[${string}]`]: undefined;
|
|
4204
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
4205
4205
|
[x: `bytes10[${string}]`]: undefined;
|
|
4206
4206
|
[x: `bytes18[${string}]`]: undefined;
|
|
4207
4207
|
[x: `bytes16[${string}]`]: undefined;
|
|
@@ -4210,22 +4210,21 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4210
4210
|
[x: `bytes30[${string}]`]: undefined;
|
|
4211
4211
|
[x: `bytes25[${string}]`]: undefined;
|
|
4212
4212
|
[x: `bytes14[${string}]`]: undefined;
|
|
4213
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
4214
|
-
[x: `bytes23[${string}]`]: undefined;
|
|
4215
|
-
[x: `bytes5[${string}]`]: undefined;
|
|
4216
4213
|
[x: `bytes7[${string}]`]: undefined;
|
|
4217
4214
|
[x: `bytes9[${string}]`]: undefined;
|
|
4218
4215
|
[x: `bytes11[${string}]`]: undefined;
|
|
4219
4216
|
[x: `bytes13[${string}]`]: undefined;
|
|
4220
|
-
[x: `bytes15[${string}]`]: undefined;
|
|
4221
4217
|
[x: `bytes17[${string}]`]: undefined;
|
|
4222
4218
|
[x: `bytes19[${string}]`]: undefined;
|
|
4223
4219
|
[x: `bytes21[${string}]`]: undefined;
|
|
4220
|
+
[x: `bytes23[${string}]`]: undefined;
|
|
4224
4221
|
[x: `bytes26[${string}]`]: undefined;
|
|
4225
4222
|
[x: `bytes27[${string}]`]: undefined;
|
|
4226
4223
|
[x: `bytes28[${string}]`]: undefined;
|
|
4227
4224
|
[x: `bytes29[${string}]`]: undefined;
|
|
4228
4225
|
[x: `bytes31[${string}]`]: undefined;
|
|
4226
|
+
[x: `bytes32[${string}]`]: undefined;
|
|
4227
|
+
[x: `int[${string}]`]: undefined;
|
|
4229
4228
|
[x: `int24[${string}]`]: undefined;
|
|
4230
4229
|
[x: `int200[${string}]`]: undefined;
|
|
4231
4230
|
[x: `int8[${string}]`]: undefined;
|
|
@@ -4258,6 +4257,7 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4258
4257
|
[x: `int240[${string}]`]: undefined;
|
|
4259
4258
|
[x: `int248[${string}]`]: undefined;
|
|
4260
4259
|
[x: `int256[${string}]`]: undefined;
|
|
4260
|
+
[x: `uint[${string}]`]: undefined;
|
|
4261
4261
|
[x: `uint24[${string}]`]: undefined;
|
|
4262
4262
|
[x: `uint200[${string}]`]: undefined;
|
|
4263
4263
|
[x: `uint8[${string}]`]: undefined;
|
|
@@ -4294,14 +4294,16 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4294
4294
|
address?: undefined;
|
|
4295
4295
|
bool?: undefined;
|
|
4296
4296
|
bytes?: undefined;
|
|
4297
|
-
bytes3?: undefined;
|
|
4298
|
-
bytes32?: undefined;
|
|
4299
4297
|
bytes1?: undefined;
|
|
4298
|
+
bytes2?: undefined;
|
|
4299
|
+
bytes3?: undefined;
|
|
4300
|
+
bytes5?: undefined;
|
|
4301
|
+
bytes15?: undefined;
|
|
4300
4302
|
bytes4?: undefined;
|
|
4303
|
+
bytes6?: undefined;
|
|
4301
4304
|
bytes24?: undefined;
|
|
4302
4305
|
bytes20?: undefined;
|
|
4303
4306
|
bytes8?: undefined;
|
|
4304
|
-
bytes2?: undefined;
|
|
4305
4307
|
bytes10?: undefined;
|
|
4306
4308
|
bytes18?: undefined;
|
|
4307
4309
|
bytes16?: undefined;
|
|
@@ -4310,22 +4312,20 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4310
4312
|
bytes30?: undefined;
|
|
4311
4313
|
bytes25?: undefined;
|
|
4312
4314
|
bytes14?: undefined;
|
|
4313
|
-
bytes6?: undefined;
|
|
4314
|
-
bytes23?: undefined;
|
|
4315
|
-
bytes5?: undefined;
|
|
4316
4315
|
bytes7?: undefined;
|
|
4317
4316
|
bytes9?: undefined;
|
|
4318
4317
|
bytes11?: undefined;
|
|
4319
4318
|
bytes13?: undefined;
|
|
4320
|
-
bytes15?: undefined;
|
|
4321
4319
|
bytes17?: undefined;
|
|
4322
4320
|
bytes19?: undefined;
|
|
4323
4321
|
bytes21?: undefined;
|
|
4322
|
+
bytes23?: undefined;
|
|
4324
4323
|
bytes26?: undefined;
|
|
4325
4324
|
bytes27?: undefined;
|
|
4326
4325
|
bytes28?: undefined;
|
|
4327
4326
|
bytes29?: undefined;
|
|
4328
4327
|
bytes31?: undefined;
|
|
4328
|
+
bytes32?: undefined;
|
|
4329
4329
|
int24?: undefined;
|
|
4330
4330
|
int200?: undefined;
|
|
4331
4331
|
int8?: undefined;
|
|
@@ -4450,7 +4450,6 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4450
4450
|
nonce: blockTag extends "pending" ? null : `0x${string}`;
|
|
4451
4451
|
size: bigint;
|
|
4452
4452
|
hash: blockTag extends "pending" ? null : `0x${string}`;
|
|
4453
|
-
gasUsed: bigint;
|
|
4454
4453
|
logsBloom: blockTag extends "pending" ? null : `0x${string}`;
|
|
4455
4454
|
baseFeePerGas: bigint | null;
|
|
4456
4455
|
blobGasUsed: bigint;
|
|
@@ -4458,6 +4457,7 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4458
4457
|
excessBlobGas: bigint;
|
|
4459
4458
|
extraData: import("viem").Hex;
|
|
4460
4459
|
gasLimit: bigint;
|
|
4460
|
+
gasUsed: bigint;
|
|
4461
4461
|
miner: import("abitype").Address;
|
|
4462
4462
|
mixHash: import("viem").Hash;
|
|
4463
4463
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
@@ -4481,8 +4481,8 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4481
4481
|
r: import("viem").Hex;
|
|
4482
4482
|
to: import("abitype").Address | null;
|
|
4483
4483
|
s: import("viem").Hex;
|
|
4484
|
-
v: bigint;
|
|
4485
4484
|
chainId?: number | undefined;
|
|
4485
|
+
v: bigint;
|
|
4486
4486
|
yParity?: undefined | undefined;
|
|
4487
4487
|
gas: bigint;
|
|
4488
4488
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -4506,8 +4506,8 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4506
4506
|
r: import("viem").Hex;
|
|
4507
4507
|
to: import("abitype").Address | null;
|
|
4508
4508
|
s: import("viem").Hex;
|
|
4509
|
-
v: bigint;
|
|
4510
4509
|
chainId: number;
|
|
4510
|
+
v: bigint;
|
|
4511
4511
|
yParity: number;
|
|
4512
4512
|
gas: bigint;
|
|
4513
4513
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -4531,8 +4531,8 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4531
4531
|
r: import("viem").Hex;
|
|
4532
4532
|
to: import("abitype").Address | null;
|
|
4533
4533
|
s: import("viem").Hex;
|
|
4534
|
-
v: bigint;
|
|
4535
4534
|
chainId: number;
|
|
4535
|
+
v: bigint;
|
|
4536
4536
|
yParity: number;
|
|
4537
4537
|
gas: bigint;
|
|
4538
4538
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -4556,8 +4556,8 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4556
4556
|
r: import("viem").Hex;
|
|
4557
4557
|
to: import("abitype").Address | null;
|
|
4558
4558
|
s: import("viem").Hex;
|
|
4559
|
-
v: bigint;
|
|
4560
4559
|
chainId: number;
|
|
4560
|
+
v: bigint;
|
|
4561
4561
|
yParity: number;
|
|
4562
4562
|
gas: bigint;
|
|
4563
4563
|
maxFeePerBlobGas: bigint;
|
|
@@ -4581,8 +4581,8 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4581
4581
|
r: import("viem").Hex;
|
|
4582
4582
|
to: import("abitype").Address | null;
|
|
4583
4583
|
s: import("viem").Hex;
|
|
4584
|
-
v: bigint;
|
|
4585
4584
|
chainId: number;
|
|
4585
|
+
v: bigint;
|
|
4586
4586
|
yParity: number;
|
|
4587
4587
|
gas: bigint;
|
|
4588
4588
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -4631,8 +4631,8 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4631
4631
|
r: import("viem").Hex;
|
|
4632
4632
|
to: import("abitype").Address | null;
|
|
4633
4633
|
s: import("viem").Hex;
|
|
4634
|
-
v: bigint;
|
|
4635
4634
|
chainId?: number | undefined;
|
|
4635
|
+
v: bigint;
|
|
4636
4636
|
yParity?: undefined | undefined;
|
|
4637
4637
|
gas: bigint;
|
|
4638
4638
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -4656,8 +4656,8 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4656
4656
|
r: import("viem").Hex;
|
|
4657
4657
|
to: import("abitype").Address | null;
|
|
4658
4658
|
s: import("viem").Hex;
|
|
4659
|
-
v: bigint;
|
|
4660
4659
|
chainId: number;
|
|
4660
|
+
v: bigint;
|
|
4661
4661
|
yParity: number;
|
|
4662
4662
|
gas: bigint;
|
|
4663
4663
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -4681,8 +4681,8 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4681
4681
|
r: import("viem").Hex;
|
|
4682
4682
|
to: import("abitype").Address | null;
|
|
4683
4683
|
s: import("viem").Hex;
|
|
4684
|
-
v: bigint;
|
|
4685
4684
|
chainId: number;
|
|
4685
|
+
v: bigint;
|
|
4686
4686
|
yParity: number;
|
|
4687
4687
|
gas: bigint;
|
|
4688
4688
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -4706,8 +4706,8 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4706
4706
|
r: import("viem").Hex;
|
|
4707
4707
|
to: import("abitype").Address | null;
|
|
4708
4708
|
s: import("viem").Hex;
|
|
4709
|
-
v: bigint;
|
|
4710
4709
|
chainId: number;
|
|
4710
|
+
v: bigint;
|
|
4711
4711
|
yParity: number;
|
|
4712
4712
|
gas: bigint;
|
|
4713
4713
|
maxFeePerBlobGas: bigint;
|
|
@@ -4731,8 +4731,8 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4731
4731
|
r: import("viem").Hex;
|
|
4732
4732
|
to: import("abitype").Address | null;
|
|
4733
4733
|
s: import("viem").Hex;
|
|
4734
|
-
v: bigint;
|
|
4735
4734
|
chainId: number;
|
|
4735
|
+
v: bigint;
|
|
4736
4736
|
yParity: number;
|
|
4737
4737
|
gas: bigint;
|
|
4738
4738
|
maxFeePerBlobGas?: undefined | undefined;
|
|
@@ -8012,7 +8012,7 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
8012
8012
|
simulateCalls: <const calls extends readonly unknown[]>(args: import("viem").SimulateCallsParameters<calls>) => Promise<import("viem").SimulateCallsReturnType<calls>>;
|
|
8013
8013
|
simulateContract: <const abi extends import("abitype").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends import("viem").ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends import("viem").Chain | undefined, accountOverride extends import("viem").Account | import("abitype").Address | undefined = undefined>(args: import("viem").SimulateContractParameters<abi, functionName, args_1, import("viem").Chain, chainOverride, accountOverride>) => Promise<import("viem").SimulateContractReturnType<abi, functionName, args_1, import("viem").Chain, import("viem").Account | undefined, chainOverride, accountOverride>>;
|
|
8014
8014
|
verifyMessage: (args: import("viem").VerifyMessageActionParameters) => Promise<import("viem").VerifyMessageActionReturnType>;
|
|
8015
|
-
verifySiweMessage: (args: import("
|
|
8015
|
+
verifySiweMessage: (args: import("viem/siwe").VerifySiweMessageParameters) => Promise<import("viem/siwe").VerifySiweMessageReturnType>;
|
|
8016
8016
|
verifyTypedData: (args: import("viem").VerifyTypedDataActionParameters) => Promise<import("viem").VerifyTypedDataActionReturnType>;
|
|
8017
8017
|
uninstallFilter: (args: import("viem").UninstallFilterParameters) => Promise<import("viem").UninstallFilterReturnType>;
|
|
8018
8018
|
waitForTransactionReceipt: (args: import("viem").WaitForTransactionReceiptParameters<import("viem").Chain>) => Promise<import("viem").TransactionReceipt>;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useContractAddresses: (chainId: number) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SupportedNetwork, Web3Network } from "@/types";
|
|
2
|
+
interface Web3NetworkState {
|
|
3
|
+
networkName: Web3Network;
|
|
4
|
+
networkId: number;
|
|
5
|
+
supported: boolean;
|
|
6
|
+
network: SupportedNetwork;
|
|
7
|
+
isTestnet: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const useMainChain: () => Web3NetworkState;
|
|
10
|
+
export {};
|