@hethers/networks
Version:
Network definitions for hethers.
32 lines (22 loc) • 614 B
text/typescript
;
import { AccountLike } from "@hethers/address";
export type Network = {
name: string,
chainId: number,
ensAddress?: string,
_defaultProvider?: (providers: any, options?: any) => any
};
export type HederaOperator = {
accountId: AccountLike,
privateKey: string,
publicKey?: string // can be derived from the private key
};
export type HederaNetworkConfigLike = {
operator?: HederaOperator,
network?: NodeUrlEntries,
mirrorNodeUrl? :string,
};
export type NodeUrlEntries = {
[key: string]: any;
};
export type Networkish = Network | string | number;