MyCrypto/scripts/types/GitCommit.ts
William O'Beirne 574c628e61 Create script to update tokens list from ethereum-lists/tokens (#1247)
* Add script to update tokens from ethereum-lists/tokens, commit output.

* Force decimals to be integers.

* Eth-lists-script Typescript (#1508)

* Update scripts to handle collisions, and use typescript

* Add comment on duplicateAddress validator

* Lock dep on ts-node

* Fix tsc errors

* revert tokens update

* make implicit anys
2018-04-13 12:02:00 -05:00

91 lines
1.5 KiB
TypeScript

export interface Author {
name: string;
email: string;
date: Date;
}
export interface Committer {
name: string;
email: string;
date: Date;
}
export interface Tree {
sha: string;
url: string;
}
export interface Verification {
verified: boolean;
reason: string;
signature?: any;
payload?: any;
}
export interface Commit {
author: Author;
committer: Committer;
message: string;
tree: Tree;
url: string;
comment_count: number;
verification: Verification;
}
export interface Author2 {
login: string;
id: number;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
}
export interface Committer2 {
login: string;
id: number;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
}
export interface Parent {
sha: string;
url: string;
html_url: string;
}
export interface GitCommit {
sha: string;
commit: Commit;
url: string;
html_url: string;
comments_url: string;
author: Author2;
committer: Committer2;
parents: Parent[];
}