@0xproject/types
Advanced tools
Comparing version 1.0.1-rc.5 to 1.0.1-rc.6
[ | ||
{ | ||
"version": "1.0.1-rc.6", | ||
"changes": [ | ||
{ | ||
"note": "Add WalletError and ValidatorError revert reasons", | ||
"pr": 1012 | ||
}, | ||
{ | ||
"note": "Remove Caller and Trezor SignatureTypes", | ||
"pr": 1015 | ||
} | ||
], | ||
"timestamp": 1535377027 | ||
}, | ||
{ | ||
"version": "1.0.1-rc.5", | ||
@@ -4,0 +18,0 @@ "changes": [ |
@@ -8,2 +8,7 @@ <!-- | ||
## v1.0.1-rc.6 - _August 27, 2018_ | ||
* Add WalletError and ValidatorError revert reasons (#1012) | ||
* Remove Caller and Trezor SignatureTypes (#1015) | ||
## v1.0.1-rc.5 - _August 24, 2018_ | ||
@@ -10,0 +15,0 @@ |
@@ -118,11 +118,9 @@ import { BigNumber } from 'bignumber.js'; | ||
EthSign = 3, | ||
Caller = 4, | ||
Wallet = 5, | ||
Validator = 6, | ||
PreSigned = 7, | ||
Trezor = 8, | ||
NSignatureTypes = 9 | ||
Wallet = 4, | ||
Validator = 5, | ||
PreSigned = 6, | ||
NSignatureTypes = 7 | ||
} | ||
/** | ||
* The type of the Signer implementation. Some signer implementations use different message prefixes (e.g Trezor) or implement different | ||
* The type of the Signer implementation. Some signer implementations use different message prefixes or implement different | ||
* eth_sign behaviour (e.g Metamask). Default assumes a spec compliant `eth_sign`. | ||
@@ -133,4 +131,3 @@ */ | ||
Ledger = "LEDGER", | ||
Metamask = "METAMASK", | ||
Trezor = "TREZOR" | ||
Metamask = "METAMASK" | ||
} | ||
@@ -157,2 +154,3 @@ export declare enum AssetProxyId { | ||
InvalidTakerAmount = "INVALID_TAKER_AMOUNT", | ||
DivisionByZero = "DIVISION_BY_ZERO", | ||
RoundingError = "ROUNDING_ERROR", | ||
@@ -162,2 +160,5 @@ InvalidSignature = "INVALID_SIGNATURE", | ||
SignatureUnsupported = "SIGNATURE_UNSUPPORTED", | ||
TakerOverpay = "TAKER_OVERPAY", | ||
OrderOverfill = "ORDER_OVERFILL", | ||
InvalidFillPrice = "INVALID_FILL_PRICE", | ||
InvalidNewOrderEpoch = "INVALID_NEW_ORDER_EPOCH", | ||
@@ -203,3 +204,5 @@ CompleteFillFailed = "COMPLETE_FILL_FAILED", | ||
Erc721ZeroOwner = "ERC721_ZERO_OWNER", | ||
Erc721InvalidSelector = "ERC721_INVALID_SELECTOR" | ||
Erc721InvalidSelector = "ERC721_INVALID_SELECTOR", | ||
WalletError = "WALLET_ERROR", | ||
ValidatorError = "VALIDATOR_ERROR" | ||
} | ||
@@ -206,0 +209,0 @@ export declare enum StatusCodes { |
@@ -36,11 +36,9 @@ "use strict"; | ||
SignatureType[SignatureType["EthSign"] = 3] = "EthSign"; | ||
SignatureType[SignatureType["Caller"] = 4] = "Caller"; | ||
SignatureType[SignatureType["Wallet"] = 5] = "Wallet"; | ||
SignatureType[SignatureType["Validator"] = 6] = "Validator"; | ||
SignatureType[SignatureType["PreSigned"] = 7] = "PreSigned"; | ||
SignatureType[SignatureType["Trezor"] = 8] = "Trezor"; | ||
SignatureType[SignatureType["NSignatureTypes"] = 9] = "NSignatureTypes"; | ||
SignatureType[SignatureType["Wallet"] = 4] = "Wallet"; | ||
SignatureType[SignatureType["Validator"] = 5] = "Validator"; | ||
SignatureType[SignatureType["PreSigned"] = 6] = "PreSigned"; | ||
SignatureType[SignatureType["NSignatureTypes"] = 7] = "NSignatureTypes"; | ||
})(SignatureType = exports.SignatureType || (exports.SignatureType = {})); | ||
/** | ||
* The type of the Signer implementation. Some signer implementations use different message prefixes (e.g Trezor) or implement different | ||
* The type of the Signer implementation. Some signer implementations use different message prefixes or implement different | ||
* eth_sign behaviour (e.g Metamask). Default assumes a spec compliant `eth_sign`. | ||
@@ -53,3 +51,2 @@ */ | ||
SignerType["Metamask"] = "METAMASK"; | ||
SignerType["Trezor"] = "TREZOR"; | ||
})(SignerType = exports.SignerType || (exports.SignerType = {})); | ||
@@ -61,2 +58,3 @@ var AssetProxyId; | ||
})(AssetProxyId = exports.AssetProxyId || (exports.AssetProxyId = {})); | ||
// TODO: DRY. These should be extracted from contract code. | ||
var RevertReason; | ||
@@ -70,2 +68,3 @@ (function (RevertReason) { | ||
RevertReason["InvalidTakerAmount"] = "INVALID_TAKER_AMOUNT"; | ||
RevertReason["DivisionByZero"] = "DIVISION_BY_ZERO"; | ||
RevertReason["RoundingError"] = "ROUNDING_ERROR"; | ||
@@ -75,2 +74,5 @@ RevertReason["InvalidSignature"] = "INVALID_SIGNATURE"; | ||
RevertReason["SignatureUnsupported"] = "SIGNATURE_UNSUPPORTED"; | ||
RevertReason["TakerOverpay"] = "TAKER_OVERPAY"; | ||
RevertReason["OrderOverfill"] = "ORDER_OVERFILL"; | ||
RevertReason["InvalidFillPrice"] = "INVALID_FILL_PRICE"; | ||
RevertReason["InvalidNewOrderEpoch"] = "INVALID_NEW_ORDER_EPOCH"; | ||
@@ -117,2 +119,4 @@ RevertReason["CompleteFillFailed"] = "COMPLETE_FILL_FAILED"; | ||
RevertReason["Erc721InvalidSelector"] = "ERC721_INVALID_SELECTOR"; | ||
RevertReason["WalletError"] = "WALLET_ERROR"; | ||
RevertReason["ValidatorError"] = "VALIDATOR_ERROR"; | ||
})(RevertReason = exports.RevertReason || (exports.RevertReason = {})); | ||
@@ -119,0 +123,0 @@ var StatusCodes; |
{ | ||
"name": "@0xproject/types", | ||
"version": "1.0.1-rc.5", | ||
"version": "1.0.1-rc.6", | ||
"engines": { | ||
@@ -41,3 +41,3 @@ "node": ">=6.12" | ||
}, | ||
"gitHead": "7f585a15f526e0a61fd822cdefb7087fc6bb8934" | ||
"gitHead": "00a4fa5f7c1da8deae703b36b6bbed024cf9e111" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29006
584