diff options
Diffstat (limited to 'packages/types/src/index.ts')
-rw-r--r-- | packages/types/src/index.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 90291a172..fa634420d 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -143,6 +143,17 @@ export enum SignatureType { } /** + * The type of the Signer implementation. Some signer implementations use different message prefixes (e.g Trezor) or implement different + * eth_sign behaviour (e.g Metamask). Default assumes a spec compliant `eth_sign`. + */ +export enum SignerType { + Default = 'DEFAULT', + Ledger = 'LEDGER', + Metamask = 'METAMASK', + Trezor = 'TREZOR', +} + +/** * Elliptic Curve signature */ export interface ECSignature { @@ -213,6 +224,7 @@ export enum RevertReason { ValueGreaterThanZero = 'VALUE_GREATER_THAN_ZERO', InvalidMsgValue = 'INVALID_MSG_VALUE', InsufficientEthRemaining = 'INSUFFICIENT_ETH_REMAINING', + Uint256Overflow = 'UINT256_OVERFLOW', } export enum StatusCodes { |