@dydxprotocol/starkex-lib
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -47,3 +47,3 @@ "use strict"; | ||
const nonceBn = util_1.decToBn(this.message.nonce); | ||
const expirationEpochSecondsBn = util_1.intToBn(this.message.expirationEpochHours); | ||
const expirationEpochHoursBn = util_1.intToBn(this.message.expirationEpochHours); | ||
if (senderPositionIdBn.bitLength() > constants_2.CONDITIONAL_TRANSFER_FIELD_BIT_LENGTHS.positionId) { | ||
@@ -67,3 +67,3 @@ throw new Error('SignableOraclePrice: senderPositionId exceeds max value'); | ||
} | ||
if (expirationEpochSecondsBn.bitLength() > | ||
if (expirationEpochHoursBn.bitLength() > | ||
constants_2.CONDITIONAL_TRANSFER_FIELD_BIT_LENGTHS.expirationEpochHours) { | ||
@@ -83,3 +83,3 @@ throw new Error('SignableOraclePrice: expirationEpochHours exceeds max value'); | ||
.iushln(constants_2.CONDITIONAL_TRANSFER_FIELD_BIT_LENGTHS.quantumsAmount).iadd(MAX_AMOUNT_FEE_BN) | ||
.iushln(constants_2.CONDITIONAL_TRANSFER_FIELD_BIT_LENGTHS.expirationEpochHours).iadd(expirationEpochSecondsBn) | ||
.iushln(constants_2.CONDITIONAL_TRANSFER_FIELD_BIT_LENGTHS.expirationEpochHours).iadd(expirationEpochHoursBn) | ||
.iushln(CONDITIONAL_TRANSFER_PADDING_BITS); | ||
@@ -93,2 +93,2 @@ return starkex_resources_1.pedersen(starkex_resources_1.pedersen(transferPart1, transferPart2), transferPart3); | ||
exports.SignableConditionalTransfer = SignableConditionalTransfer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZGl0aW9uYWwtdHJhbnNmZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2lnbmFibGUvY29uZGl0aW9uYWwtdHJhbnNmZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsa0RBQXV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ixNQUFNLENBQUMsa0RBQXNDLENBQUMsS0FBSyxDQUFDLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ3RFLE1BQU0sYUFBYSxHQUFHLElBQUksZUFBRSxDQUFDLDJCQUEyQixDQUFDO2FBQ3RELE1BQU0sQ0FBQyxrREFBc0MsQ0FBQyxjQUFjLENBQUMsQ0FBQyxJQUFJLENBQUMsZ0JBQWdCLENBQUM7YUFDcEYsTUFBTSxDQUFDLGtEQUFzQyxDQUFDLGNBQWMsQ0FBQyxDQUFDLElBQUksQ0FBQyxpQkFBaUIsQ0FBQzthQUNyRixNQUFNLENBQUMsa0RBQXNDLENBQUMsb0JBQW9CLENBQUMsQ0FBQyxJQUFJLENBQ3ZFLHNCQUFzQixDQUN2QjthQUNBLE1BQU0sQ0FBQyxpQ0FBaUMsQ0FBQyxDQUFDO1FBRTdDLE9BQU8sNEJBQVEsQ0FDYiw0QkFBUSxDQUNOLGFBQWEsRUFDYixhQUFhLENBQ2QsRUFDRCxhQUFhLENBQ2QsQ0FBQztJQUNKLENBQUM7SUFFRCxXQUFXO1FBQ1QsT0FBTyxJQUFJLENBQUMsT0FBTyxDQUFDO0lBQ3RCLENBQUM7Q0FDRjtBQWpHRCxrRUFpR0MifQ== |
@@ -66,3 +66,3 @@ "use strict"; | ||
const positionIdBn = util_1.decToBn(this.message.positionId); | ||
const expirationEpochSecondsBn = util_1.intToBn(this.message.expirationEpochHours); | ||
const expirationEpochHours = util_1.intToBn(this.message.expirationEpochHours); | ||
const [assetIdSellBn, assetIdBuyBn] = this.message.isBuyingSynthetic | ||
@@ -98,3 +98,3 @@ ? [assetIdCollateralBn, assetIdSyntheticBn] | ||
} | ||
if (expirationEpochSecondsBn.bitLength() > constants_2.ORDER_FIELD_BIT_LENGTHS.expirationEpochHours) { | ||
if (expirationEpochHours.bitLength() > constants_2.ORDER_FIELD_BIT_LENGTHS.expirationEpochHours) { | ||
throw new Error('SignableOrder: expirationEpochHours exceeds max value'); | ||
@@ -110,3 +110,3 @@ } | ||
.iushln(constants_2.ORDER_FIELD_BIT_LENGTHS.positionId).iadd(positionIdBn) // Repeat (3/3). | ||
.iushln(constants_2.ORDER_FIELD_BIT_LENGTHS.expirationEpochHours).iadd(expirationEpochSecondsBn) | ||
.iushln(constants_2.ORDER_FIELD_BIT_LENGTHS.expirationEpochHours).iadd(expirationEpochHours) | ||
.iushln(ORDER_PADDING_BITS); | ||
@@ -122,2 +122,2 @@ const assetsBn = starkex_resources_1.pedersen(starkex_resources_1.pedersen(assetIdSellBn, assetIdBuyBn), assetIdFeeBn); | ||
SignableOrder.fromOrder = SignableOrder.fromOrderWithClientId; // Alias. | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2lnbmFibGUvb3JkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsa0RBQXVCO0FBRXZCLDRDQUdzQjtBQUN0Qix3Q0FNb0I7QUFDcEIsZ0VBQW9EO0FBQ3BELHNDQUlxQjtBQUNyQixvQ0FPa0I7QUFDbEIsMkNBRXFCO0FBQ3JCLHFEQUFpRDtBQUVqRCxNQUFNLHFCQUFxQixHQUFHLENBQUMsQ0FBQztBQUNoQyxNQUFNLGtCQUFrQixHQUFHLEVBQUUsQ0FBQztBQUU5Qjs7R0FFRztBQUNILE1BQWEsYUFBYyxTQUFRLDhCQUE2QjtJQUk5RCxNQUFNLENBQUMscUJBQXFCLENBQzFCLEtBQTBEO1FBRTFELG9EQUFvRDtRQUNwRCxNQUFNLEtBQUssR0FBRywyQkFBaUIsQ0FBQyxLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEQsT0FBTyxhQUFhLENBQUMsa0JBQWtCLENBQUM7WUFDdEMsR0FBRyxLQUFLO1lBQ1IsUUFBUSxFQUFFLFNB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BQUMsS0FBSyxDQUFDLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBRXZELE1BQU0sVUFBVSxHQUFHLElBQUksZUFBRSxDQUFDLHFCQUFxQixDQUFDO2FBQzdDLE1BQU0sQ0FBQyxtQ0FBdUIsQ0FBQyxVQUFVLENBQUMsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUMsZ0JBQWdCO2FBQzlFLE1BQU0sQ0FBQyxtQ0FBdUIsQ0FBQyxVQUFVLENBQUMsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUMsZ0JBQWdCO2FBQzlFLE1BQU0sQ0FBQyxtQ0FBdUIsQ0FBQyxVQUFVLENBQUMsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUMsZ0JBQWdCO2FBQzlFLE1BQU0sQ0FBQyxtQ0FBdUIsQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDLElBQUksQ0FBQyxvQkFBb0IsQ0FBQzthQUMvRSxNQUFNLENBQUMsa0JBQWtCLENBQUMsQ0FBQztRQUU5QixNQUFNLFFBQVEsR0FBRyw0QkFBUSxDQUFDLDRCQUFRLENBQUMsYUFBYSxFQUFFLFlBQVksQ0FBQyxFQUFFLFlBQVksQ0FBQyxDQUFDO1FBQy9FLE9BQU8sNEJBQVEsQ0FBQyw0QkFBUSxDQUFDLFFBQVEsRUFBRSxVQUFVLENBQUMsRUFBRSxVQUFVLENBQUMsQ0FBQztJQUM5RCxDQUFDO0lBRUQsV0FBVztRQUNULE9BQU8sSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN0QixDQUFDOztBQTNISCxzQ0E0SEM7QUExSFEsdUJBQVMsR0FBRyxhQUFhLENBQUMscUJBQXFCLENBQUMsQ0FBQyxTQUFTIn0= |
@@ -7,5 +7,5 @@ import BN from 'bn.js'; | ||
export declare abstract class StarkSignable<T> { | ||
protected readonly message: T; | ||
readonly message: T; | ||
private _hashBN; | ||
protected constructor(message: T); | ||
constructor(message: T); | ||
/** | ||
@@ -12,0 +12,0 @@ * Return the message hash as a hex string, no 0x prefix. |
@@ -48,3 +48,3 @@ "use strict"; | ||
const quantumsAmountBn = util_1.decToBn(this.message.quantumsAmount); | ||
const expirationEpochSecondsBn = util_1.intToBn(this.message.expirationEpochHours); | ||
const expirationEpochHoursBn = util_1.intToBn(this.message.expirationEpochHours); | ||
if (positionIdBn.bitLength() > constants_2.WITHDRAWAL_FIELD_BIT_LENGTHS.positionId) { | ||
@@ -59,3 +59,3 @@ throw new Error('SignableOraclePrice: positionId exceeds max value'); | ||
} | ||
if (expirationEpochSecondsBn.bitLength() > constants_2.WITHDRAWAL_FIELD_BIT_LENGTHS.expirationEpochHours) { | ||
if (expirationEpochHoursBn.bitLength() > constants_2.WITHDRAWAL_FIELD_BIT_LENGTHS.expirationEpochHours) { | ||
throw new Error('SignableOraclePrice: expirationEpochHours exceeds max value'); | ||
@@ -67,3 +67,3 @@ } | ||
.iushln(constants_2.WITHDRAWAL_FIELD_BIT_LENGTHS.quantumsAmount).iadd(quantumsAmountBn) | ||
.iushln(constants_2.WITHDRAWAL_FIELD_BIT_LENGTHS.expirationEpochHours).iadd(expirationEpochSecondsBn) | ||
.iushln(constants_2.WITHDRAWAL_FIELD_BIT_LENGTHS.expirationEpochHours).iadd(expirationEpochHoursBn) | ||
.iushln(WITHDRAWAL_PADDING_BITS); | ||
@@ -78,2 +78,2 @@ return starkex_resources_1.pedersen(COLLATERAL_ASSET_ID_BN, packedWithdrawalBn); | ||
SignableWithdrawal.fromWithdrawal = SignableWithdrawal.fromWithdrawalWithClientId; // Alias. | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXdhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zaWduYWJsZS93aXRoZHJhd2FsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Oz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0FBQzthQUN4RCxNQUFNLENBQUMsd0NBQTRCLENBQUMsY0FBYyxDQUFDLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDO2FBQzFFLE1BQU0sQ0FBQyx3Q0FBNEIsQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDLElBQUksQ0FBQyxzQkFBc0IsQ0FBQzthQUN0RixNQUFNLENBQUMsdUJBQXVCLENBQUMsQ0FBQztRQUVuQyxPQUFPLDRCQUFRLENBQUMsc0JBQXNCLEVBQUUsa0JBQWtCLENBQUMsQ0FBQztJQUM5RCxDQUFDO0lBRUQsV0FBVztRQUNULE9BQU8sSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN0QixDQUFDOztBQXJFSCxnREFzRUM7QUFwRVEsaUNBQWMsR0FBRyxrQkFBa0IsQ0FBQywwQkFBMEIsQ0FBQyxDQUFDLFNBQVMifQ== |
{ | ||
"name": "@dydxprotocol/starkex-lib", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Cryptographic functions for use with StarkEx", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
@@ -68,3 +68,3 @@ import BN from 'bn.js'; | ||
const nonceBn = decToBn(this.message.nonce); | ||
const expirationEpochSecondsBn = intToBn(this.message.expirationEpochHours); | ||
const expirationEpochHoursBn = intToBn(this.message.expirationEpochHours); | ||
@@ -94,3 +94,3 @@ if (senderPositionIdBn.bitLength() > CONDITIONAL_TRANSFER_FIELD_BIT_LENGTHS.positionId) { | ||
if ( | ||
expirationEpochSecondsBn.bitLength() > | ||
expirationEpochHoursBn.bitLength() > | ||
CONDITIONAL_TRANSFER_FIELD_BIT_LENGTHS.expirationEpochHours | ||
@@ -120,3 +120,3 @@ ) { | ||
.iushln(CONDITIONAL_TRANSFER_FIELD_BIT_LENGTHS.expirationEpochHours).iadd( | ||
expirationEpochSecondsBn, | ||
expirationEpochHoursBn, | ||
) | ||
@@ -123,0 +123,0 @@ .iushln(CONDITIONAL_TRANSFER_PADDING_BITS); |
@@ -107,3 +107,3 @@ import BN from 'bn.js'; | ||
const positionIdBn = decToBn(this.message.positionId); | ||
const expirationEpochSecondsBn = intToBn(this.message.expirationEpochHours); | ||
const expirationEpochHours = intToBn(this.message.expirationEpochHours); | ||
@@ -141,3 +141,3 @@ const [assetIdSellBn, assetIdBuyBn] = this.message.isBuyingSynthetic | ||
} | ||
if (expirationEpochSecondsBn.bitLength() > ORDER_FIELD_BIT_LENGTHS.expirationEpochHours) { | ||
if (expirationEpochHours.bitLength() > ORDER_FIELD_BIT_LENGTHS.expirationEpochHours) { | ||
throw new Error('SignableOrder: expirationEpochHours exceeds max value'); | ||
@@ -155,3 +155,3 @@ } | ||
.iushln(ORDER_FIELD_BIT_LENGTHS.positionId).iadd(positionIdBn) // Repeat (3/3). | ||
.iushln(ORDER_FIELD_BIT_LENGTHS.expirationEpochHours).iadd(expirationEpochSecondsBn) | ||
.iushln(ORDER_FIELD_BIT_LENGTHS.expirationEpochHours).iadd(expirationEpochHours) | ||
.iushln(ORDER_PADDING_BITS); | ||
@@ -158,0 +158,0 @@ |
@@ -20,7 +20,7 @@ import BN from 'bn.js'; | ||
export abstract class StarkSignable<T> { | ||
protected readonly message: T; | ||
public readonly message: T; | ||
private _hashBN: BN | null = null; | ||
protected constructor( | ||
public constructor( | ||
message: T, | ||
@@ -27,0 +27,0 @@ ) { |
@@ -73,3 +73,3 @@ import BN from 'bn.js'; | ||
const quantumsAmountBn = decToBn(this.message.quantumsAmount); | ||
const expirationEpochSecondsBn = intToBn(this.message.expirationEpochHours); | ||
const expirationEpochHoursBn = intToBn(this.message.expirationEpochHours); | ||
@@ -86,3 +86,3 @@ if (positionIdBn.bitLength() > WITHDRAWAL_FIELD_BIT_LENGTHS.positionId) { | ||
if ( | ||
expirationEpochSecondsBn.bitLength() > WITHDRAWAL_FIELD_BIT_LENGTHS.expirationEpochHours | ||
expirationEpochHoursBn.bitLength() > WITHDRAWAL_FIELD_BIT_LENGTHS.expirationEpochHours | ||
) { | ||
@@ -96,3 +96,3 @@ throw new Error('SignableOraclePrice: expirationEpochHours exceeds max value'); | ||
.iushln(WITHDRAWAL_FIELD_BIT_LENGTHS.quantumsAmount).iadd(quantumsAmountBn) | ||
.iushln(WITHDRAWAL_FIELD_BIT_LENGTHS.expirationEpochHours).iadd(expirationEpochSecondsBn) | ||
.iushln(WITHDRAWAL_FIELD_BIT_LENGTHS.expirationEpochHours).iadd(expirationEpochHoursBn) | ||
.iushln(WITHDRAWAL_PADDING_BITS); | ||
@@ -99,0 +99,0 @@ |
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
462457