forked from richard-ramos/solidity-diagram-gen
-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cross chain diff chore: validation of address arguments and options
- Loading branch information
1 parent
93b028e
commit c7e959e
Showing
19 changed files
with
886 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { EtherscanParser } from './parserEtherscan'; | ||
interface DiffOptions { | ||
network: string; | ||
lineBuffer: number; | ||
} | ||
interface FlattenAndDiffOptions extends DiffOptions { | ||
aFile?: string; | ||
bFile?: string; | ||
saveFiles?: boolean; | ||
} | ||
interface DiffFiles { | ||
filename?: string; | ||
aCode?: string; | ||
bCode?: string; | ||
result: 'added' | 'removed' | 'match' | 'changed'; | ||
} | ||
interface CompareContracts { | ||
files: DiffFiles[]; | ||
contractNameA: string; | ||
contractNameB: string; | ||
} | ||
export declare const compareContracts: (addressA: string, addressB: string, etherscanParserA: EtherscanParser, etherscanParserB: EtherscanParser, options: DiffOptions) => Promise<CompareContracts>; | ||
export declare const displayContractNames: (addressA: string, addressB: string, contractNameA: string, contractNameB: string, options: { | ||
network: string; | ||
bNetwork?: string; | ||
}) => void; | ||
export declare const displayFileDiffSummary: (fileDiffs: DiffFiles[]) => void; | ||
export declare const displayFileDiffs: (fileDiffs: DiffFiles[], options?: { | ||
lineBuffer?: number; | ||
}) => void; | ||
export declare const flattenAndDiff: (addressA: string, addressB: string, aEtherscanParser: EtherscanParser, bEtherscanParser: EtherscanParser, options: FlattenAndDiffOptions) => Promise<{ | ||
contractNameA: string; | ||
contractNameB: string; | ||
}>; | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.