-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
162 additions
and
102 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,130 @@ | ||
|
||
/* | ||
export interface TestCase { | ||
name: string; | ||
}; | ||
*/ | ||
|
||
export interface BigNumber { | ||
testcase: string; | ||
value: string | number; | ||
expectedValue: string; | ||
}; | ||
|
||
export interface Hash { | ||
data: string; | ||
keccak256: string; | ||
sha256: string; | ||
sha512: string; | ||
}; | ||
|
||
export interface HDWalletNode { | ||
path: string; | ||
address: string; | ||
privateKey: string; | ||
}; | ||
|
||
export interface HDWallet { | ||
name: string; | ||
|
||
seed: string; | ||
locale: string; | ||
password?: string; | ||
entropy: string; | ||
mnemonic: string; | ||
|
||
hdnodes: Array<HDWalletNode> | ||
}; | ||
|
||
export interface Nameprep { | ||
comment: string; | ||
input: Array<number>; | ||
output: Array<number>; | ||
rc?: string; | ||
flags?: string; | ||
}; | ||
|
||
export interface Wallet { | ||
name: string; | ||
|
||
type: "crowdsale" | "secret-storage"; | ||
hasAddress: boolean; | ||
address: string; | ||
privateKey: string; | ||
mnemonic?: string; | ||
password?: string; | ||
json: string; | ||
}; | ||
|
||
export interface Wordlist { | ||
locale: string; | ||
content: string; | ||
}; | ||
|
||
export interface Unit { | ||
name: string; | ||
|
||
ether: string, | ||
ether_format: string, | ||
wei: string, | ||
|
||
kwei?: string, | ||
mwei?: string, | ||
gwei?: string, | ||
szabo?: string, | ||
finney?: string, | ||
satoshi?: string | ||
|
||
kwei_format?: string, | ||
mwei_format?: string, | ||
gwei_format?: string, | ||
szabo_format?: string, | ||
finney_format?: string, | ||
satoshi_format?: string | ||
}; | ||
|
||
export interface SignedTransaction { | ||
name: string; | ||
|
||
accountAddress: string; | ||
privateKey: string; | ||
|
||
signedTransaction: string | ||
unsignedTransaction: string; | ||
|
||
signedTransactionChainId5: string | ||
unsignedTransactionChainId5: string; | ||
|
||
nonce: number; | ||
gasLimit: string; | ||
gasPrice: string; | ||
to: string; | ||
value: string; | ||
data: string; | ||
}; | ||
|
||
export interface Eip712 { | ||
name: string; | ||
|
||
domain: { | ||
name: string; | ||
version?: string; | ||
chainId?: number; | ||
verifyingContract?: string; | ||
salt?: string; | ||
}, | ||
primaryType: string; | ||
types: Record<string, Array<{ name: string, type: string }>>; | ||
data: Record<string, any>; | ||
encoded: string; | ||
digest: string; | ||
|
||
// Only random tests | ||
type?: string; | ||
seed?: string; | ||
|
||
// Not all testcases have these | ||
privateKey?: string; | ||
signature?: string; | ||
}; | ||
|
Binary file not shown.
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