-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
feat: added chain options none and custom feat: added explorerUrl option for custom chains and testnets
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { Contract, Network, Token } from "../types/tx2umlTypes"; | ||
import { Contract, Network } from "../types/tx2umlTypes"; | ||
export default class EtherscanClient { | ||
readonly apiKey: string; | ||
readonly network: Network; | ||
readonly apiKey?: string; | ||
readonly url: string; | ||
constructor(apiKey?: string, network?: Network); | ||
constructor(apiKey?: string, network?: Network, url?: string); | ||
getContract(contractAddress: string): Promise<Contract>; | ||
getToken(contractAddress: string): Promise<Token | null>; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.