@dydxprotocol/starkex-lib
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -20,2 +20,5 @@ /** | ||
); | ||
expect(COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.GOERLI]).toBe( | ||
'0x03bda2b4764039f2df44a00a9cf1d1569a83f95406a983ce4beb95791c376008', | ||
); | ||
expect(COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.ROPSTEN]).toBe( | ||
@@ -22,0 +25,0 @@ '0x02c04d8b650f44092278a7cb1e1028c82025dff622db96c934b611b84cc8de5a', |
@@ -54,3 +54,3 @@ /** | ||
humanPrice: '1.23456789', | ||
}, NetworkId.ROPSTEN), | ||
}, NetworkId.GOERLI), | ||
).toStrictEqual({ | ||
@@ -60,3 +60,3 @@ quantumsAmountSynthetic: '2500000000001', | ||
assetIdSynthetic: SYNTHETIC_ASSET_ID_MAP[DydxAsset.BTC], | ||
assetIdCollateral: COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.ROPSTEN], | ||
assetIdCollateral: COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.GOERLI], | ||
isBuyingSynthetic: false, | ||
@@ -73,3 +73,3 @@ }); | ||
humanQuoteAmount: '308.641972', | ||
}, NetworkId.ROPSTEN), | ||
}, NetworkId.GOERLI), | ||
).toStrictEqual({ | ||
@@ -79,3 +79,3 @@ quantumsAmountSynthetic: '2500000000001', | ||
assetIdSynthetic: SYNTHETIC_ASSET_ID_MAP[DydxAsset.BTC], | ||
assetIdCollateral: COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.ROPSTEN], | ||
assetIdCollateral: COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.GOERLI], | ||
isBuyingSynthetic: false, | ||
@@ -92,3 +92,3 @@ }); | ||
humanPrice: '1.23456789', | ||
}, NetworkId.ROPSTEN); | ||
}, NetworkId.GOERLI); | ||
}).toThrow('not a multiple of the quantum size'); | ||
@@ -104,3 +104,3 @@ }); | ||
humanQuoteAmount: '308.6419721', | ||
}, NetworkId.ROPSTEN); | ||
}, NetworkId.GOERLI); | ||
}).toThrow('not a multiple of the quantum size'); | ||
@@ -107,0 +107,0 @@ }); |
@@ -36,4 +36,4 @@ /** | ||
const mockSignature = ( | ||
'04814c5d3501863134108802cab5d12df4b959654332103b837252549d24e9a6' + | ||
'06bc01225e9f1690b08b63de2a3b179fb2927d4564b3440bbb0da4c37caf597e' | ||
'01b437ac15bb89417edcfb2d304c3efad6256def3cc24e60c4980a88d08cb953' + | ||
'045df9fbe4a4895409e1011c60be439d65c1a2637013b74a19cb5b8ab62db434' | ||
); | ||
@@ -46,3 +46,3 @@ | ||
it('returns true for a valid signature', async () => { | ||
const result = await SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.ROPSTEN) | ||
const result = await SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -55,3 +55,3 @@ expect(result).toBe(true); | ||
const badSignatureR: string = mutateHexStringAt(mockSignature, 1); | ||
const result1 = await SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.ROPSTEN) | ||
const result1 = await SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.GOERLI) | ||
.verifySignature(badSignatureR, mockKeyPair.publicKey); | ||
@@ -62,3 +62,3 @@ expect(result1).toBe(false); | ||
const badSignatureS: string = mutateHexStringAt(mockSignature, 65); | ||
const result2 = await SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.ROPSTEN) | ||
const result2 = await SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.GOERLI) | ||
.verifySignature(badSignatureS, mockKeyPair.publicKey); | ||
@@ -74,3 +74,3 @@ expect(result2).toBe(false); | ||
mockParams, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).sign(mockKeyPair.privateKey); | ||
@@ -85,3 +85,3 @@ expect(signature).toEqual(mockSignature); | ||
}; | ||
const signature = await SignableConditionalTransfer.fromTransfer(transfer, NetworkId.ROPSTEN) | ||
const signature = await SignableConditionalTransfer.fromTransfer(transfer, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -96,3 +96,3 @@ expect(signature).not.toEqual(mockSignature); | ||
}; | ||
const signature = await SignableConditionalTransfer.fromTransfer(transfer, NetworkId.ROPSTEN) | ||
const signature = await SignableConditionalTransfer.fromTransfer(transfer, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -107,3 +107,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const starkwareConditionalTransfer: StarkwareConditionalTransfer = ( | ||
SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.ROPSTEN).toStarkware() | ||
SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.GOERLI).toStarkware() | ||
); | ||
@@ -119,3 +119,3 @@ expect(starkwareConditionalTransfer.quantumsAmount).toEqual('49478023'); | ||
const keyPair: KeyPair = generateKeyPairUnsafe(); | ||
const signable = SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.ROPSTEN); | ||
const signable = SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.GOERLI); | ||
const signature = await signable.sign(keyPair.privateKey); | ||
@@ -122,0 +122,0 @@ |
@@ -99,3 +99,3 @@ /* eslint-disable @typescript-eslint/no-unused-expressions */ | ||
mockConditionalTransfer, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -108,3 +108,3 @@ expect(mockPedersen.callCount).toBe(5); | ||
mockConditionalTransfer, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -118,3 +118,3 @@ expect(mockPedersen.callCount).toBe(4); | ||
mockOrder, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -127,3 +127,3 @@ expect(mockPedersen.callCount).toBe(4); | ||
mockOrder, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -139,3 +139,3 @@ expect(mockPedersen.callCount).toBe(2); | ||
mockTransfer, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -148,3 +148,3 @@ expect(mockPedersen.callCount).toBe(4); | ||
mockTransfer, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -158,3 +158,3 @@ expect(mockPedersen.callCount).toBe(3); | ||
mockWithdrawal, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -168,3 +168,3 @@ expect(mockPedersen.callCount).toBe(1); | ||
beforeEach(async () => { | ||
await proxyquiredHashes.preComputeHashes(NetworkId.ROPSTEN); | ||
await proxyquiredHashes.preComputeHashes(NetworkId.GOERLI); | ||
mockPedersen.resetHistory(); | ||
@@ -179,3 +179,3 @@ }); | ||
mockConditionalTransfer, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -189,3 +189,3 @@ expect(mockPedersen.callCount).toBe(4); | ||
mockOrder, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -201,3 +201,3 @@ expect(mockPedersen!.callCount).toBe(2); | ||
mockTransfer, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -211,3 +211,3 @@ expect(mockPedersen.callCount).toBe(3); | ||
mockWithdrawal, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).getHash(); | ||
@@ -214,0 +214,0 @@ expect(mockPedersen.callCount).toBe(1); |
@@ -43,3 +43,3 @@ /** | ||
const result = await SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -54,3 +54,3 @@ expect(result).toBe(true); | ||
const result = await SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -64,3 +64,3 @@ expect(result).toBe(false); | ||
const result = await SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -76,3 +76,3 @@ expect(result).toBe(false); | ||
const signature = await SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -87,3 +87,3 @@ expect(signature).toEqual(mockSignature); | ||
assetName: getSignedAssetName(mockOraclePrice.market), | ||
}, NetworkId.ROPSTEN) | ||
}, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -99,3 +99,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableOraclePrice | ||
.fromPriceWithMarket(oraclePrice, NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(oraclePrice, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -111,3 +111,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const signature = await SignableOraclePrice | ||
.fromPriceWithMarket(oraclePrice, NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(oraclePrice, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -123,3 +123,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const signature = await SignableOraclePrice | ||
.fromPriceWithMarket(oraclePrice, NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(oraclePrice, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -135,3 +135,3 @@ expect(signature).not.toEqual(mockSignature); | ||
expect( | ||
() => SignableOraclePrice.fromPriceWithMarket(oraclePrice, NetworkId.ROPSTEN), | ||
() => SignableOraclePrice.fromPriceWithMarket(oraclePrice, NetworkId.GOERLI), | ||
).toThrow('Input does not fit in numBits=40 bits'); | ||
@@ -147,3 +147,3 @@ }); | ||
mockOraclePrice, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
); | ||
@@ -150,0 +150,0 @@ const signature = await signableOraclePrice.sign(keyPair.privateKey); |
@@ -49,8 +49,8 @@ /** | ||
const mockSignature = ( | ||
'00cecbe513ecdbf782cd02b2a5efb03e58d5f63d15f2b840e9bc0029af04e8dd' + | ||
'0090b822b16f50b2120e4ea9852b340f7936ff6069d02acca02f2ed03029ace5' | ||
'07670488d9d2c6ff980ca86e6d05b89414de0f2bfd462a1058fb05add68d034a' + | ||
'036268ae33e8e21d324e975678f56b66dacb2502a7de1512a46b96fc0e106f79' | ||
); | ||
const mockSignatureEvenY = ( | ||
'00fc0756522d78bef51f70e3981dc4d1e82273f59cdac6bc31c5776baabae6ec' + | ||
'0158963bfd45d88a99fb2d6d72c9bbcf90b24c3c0ef2394ad8d05f9d3983443a' | ||
'0618bcd2a8a027cf407116f88f2fa0d866154ee421cdf8a9deca0fecfda5277b' + | ||
'03e42fa1d039522fc77c23906253e537cc5b2f392dba6f2dbb35d51cbe37273a' | ||
); | ||
@@ -64,3 +64,3 @@ | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -72,3 +72,3 @@ expect(result).toBe(true); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey, mockKeyPairPublicYCoordinate); | ||
@@ -80,3 +80,3 @@ expect(result).toBe(true); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.verifySignature(mockSignatureEvenY, mockKeyPairEvenY.publicKey); | ||
@@ -88,6 +88,6 @@ expect(result).toBe(true); | ||
// Mutate a single character in r. | ||
await Promise.all(_.range(1, 4).map(async (i) => { | ||
await Promise.all(_.range(2, 4).map(async (i) => { | ||
const badSignature: string = mutateHexStringAt(mockSignature, i); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -101,3 +101,3 @@ expect(result).toBe(false); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -109,5 +109,5 @@ expect(result).toBe(false); | ||
it('returns false for a invalid signature (odd y), with y-coordinate provided', async () => { | ||
const badSignature = mutateHexStringAt(mockSignature, 1); | ||
const badSignature = mutateHexStringAt(mockSignature, 2); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey, mockKeyPairPublicYCoordinate); | ||
@@ -120,3 +120,3 @@ expect(result).toBe(false); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.verifySignature(mockSignature, badX, mockKeyPairPublicYCoordinate); | ||
@@ -129,3 +129,3 @@ expect(result).toBe(false); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey, badY); | ||
@@ -140,3 +140,3 @@ expect(result).toBe(false); | ||
const signature = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -148,3 +148,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.sign(mockKeyPairEvenY.privateKey); | ||
@@ -165,3 +165,3 @@ expect(signature).toEqual(mockSignatureEvenY); | ||
const signature = await SignableOrder | ||
.fromOrder(orderWithQuoteAmount, NetworkId.ROPSTEN) | ||
.fromOrder(orderWithQuoteAmount, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -178,3 +178,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableOrder | ||
.fromOrderWithNonce(orderWithNonce, NetworkId.ROPSTEN) | ||
.fromOrderWithNonce(orderWithNonce, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -190,3 +190,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableOrder | ||
.fromOrder(order, NetworkId.ROPSTEN) | ||
.fromOrder(order, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -202,3 +202,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const signature = await SignableOrder | ||
.fromOrder(order, NetworkId.ROPSTEN) | ||
.fromOrder(order, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -214,3 +214,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const signature = await SignableOrder | ||
.fromOrder(order, NetworkId.ROPSTEN) | ||
.fromOrder(order, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -225,3 +225,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const starkwareOrder: StarkwareOrder = SignableOrder | ||
.fromOrder(mockOrder, NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.toStarkware(); | ||
@@ -242,3 +242,3 @@ expect(starkwareOrder.quantumsAmountSynthetic).toBe('145000500000'); | ||
expect( | ||
() => SignableOrder.fromOrder(order, NetworkId.ROPSTEN).toStarkware(), | ||
() => SignableOrder.fromOrder(order, NetworkId.GOERLI).toStarkware(), | ||
).toThrow('Unknown market'); | ||
@@ -252,3 +252,3 @@ }); | ||
}; | ||
const starkwareOrder = SignableOrder.fromOrder(order, NetworkId.ROPSTEN).toStarkware(); | ||
const starkwareOrder = SignableOrder.fromOrder(order, NetworkId.GOERLI).toStarkware(); | ||
expect(starkwareOrder.expirationEpochHours).toBe(448553); | ||
@@ -262,3 +262,3 @@ }); | ||
const keyPair: KeyPair = generateKeyPairUnsafe(); | ||
const signableOrder = SignableOrder.fromOrder(mockOrder, NetworkId.ROPSTEN); | ||
const signableOrder = SignableOrder.fromOrder(mockOrder, NetworkId.GOERLI); | ||
const signature = await signableOrder.sign(keyPair.privateKey); | ||
@@ -265,0 +265,0 @@ |
@@ -34,4 +34,4 @@ /** | ||
const mockSignature = ( | ||
'06b72146028a7f0092557a3a04e9916bd4ae1fba0a4bd92670ef80e2293f7386' + | ||
'04c0918a7a8e622e463d40f24984c23fd8bab2cd32980676ba666f55c6efeaf3' | ||
'07a64843a0fb9bd455696139f6230d3152d9df2e863d54587f1f8bdbb07eb032' + | ||
'0699b82593aa2e02915694ffc39c1001e81337b8fcc73f5b91f73ce5146c50bd' | ||
); | ||
@@ -44,3 +44,3 @@ | ||
it('returns true for a valid signature', async () => { | ||
const result = await SignableTransfer.fromTransfer(mockParams, NetworkId.ROPSTEN) | ||
const result = await SignableTransfer.fromTransfer(mockParams, NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -52,4 +52,4 @@ expect(result).toBe(true); | ||
// Mutate a single character in r. | ||
const badSignatureR: string = mutateHexStringAt(mockSignature, 1); | ||
const result1 = await SignableTransfer.fromTransfer(mockParams, NetworkId.ROPSTEN) | ||
const badSignatureR: string = mutateHexStringAt(mockSignature, 2); | ||
const result1 = await SignableTransfer.fromTransfer(mockParams, NetworkId.GOERLI) | ||
.verifySignature(badSignatureR, mockKeyPair.publicKey); | ||
@@ -60,3 +60,3 @@ expect(result1).toBe(false); | ||
const badSignatureS: string = mutateHexStringAt(mockSignature, 65); | ||
const result2 = await SignableTransfer.fromTransfer(mockParams, NetworkId.ROPSTEN) | ||
const result2 = await SignableTransfer.fromTransfer(mockParams, NetworkId.GOERLI) | ||
.verifySignature(badSignatureS, mockKeyPair.publicKey); | ||
@@ -72,3 +72,3 @@ expect(result2).toBe(false); | ||
mockParams, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
).sign(mockKeyPair.privateKey); | ||
@@ -83,3 +83,3 @@ expect(signature).toEqual(mockSignature); | ||
}; | ||
const signature = await SignableTransfer.fromTransfer(transfer, NetworkId.ROPSTEN) | ||
const signature = await SignableTransfer.fromTransfer(transfer, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -94,3 +94,3 @@ expect(signature).not.toEqual(mockSignature); | ||
}; | ||
const signature = await SignableTransfer.fromTransfer(transfer, NetworkId.ROPSTEN) | ||
const signature = await SignableTransfer.fromTransfer(transfer, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -105,3 +105,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const starkwareTransfer: StarkwareTransfer = ( | ||
SignableTransfer.fromTransfer(mockParams, NetworkId.ROPSTEN).toStarkware() | ||
SignableTransfer.fromTransfer(mockParams, NetworkId.GOERLI).toStarkware() | ||
); | ||
@@ -117,3 +117,3 @@ expect(starkwareTransfer.quantumsAmount).toEqual('49478023'); | ||
const keyPair: KeyPair = generateKeyPairUnsafe(); | ||
const signable = SignableTransfer.fromTransfer(mockParams, NetworkId.ROPSTEN); | ||
const signable = SignableTransfer.fromTransfer(mockParams, NetworkId.GOERLI); | ||
const signature = await signable.sign(keyPair.privateKey); | ||
@@ -120,0 +120,0 @@ |
@@ -34,4 +34,4 @@ /** | ||
const mockSignature = ( | ||
'05e48c33f8205a5359c95f1bd7385c1c1f587e338a514298c07634c0b6c952ba' + | ||
'0687d6980502a5d7fa84ef6fdc00104db22c43c7fb83e88ca84f19faa9ee3de1' | ||
'0572e1628e196282ee246dbe5c8394251bf3fb1fab7be40e77b69b64c030920e' + | ||
'025f94283b9f3b9aa18503f7c500db89cc1ac914cb84b00e2263552a3d31a479' | ||
); | ||
@@ -45,3 +45,3 @@ | ||
const result = await SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, NetworkId.ROPSTEN) | ||
.fromWithdrawal(mockWithdrawal, NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -56,3 +56,3 @@ expect(result).toBe(true); | ||
const result = await SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, NetworkId.ROPSTEN) | ||
.fromWithdrawal(mockWithdrawal, NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -66,3 +66,3 @@ expect(result).toBe(false); | ||
const result = await SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, NetworkId.ROPSTEN) | ||
.fromWithdrawal(mockWithdrawal, NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -78,3 +78,3 @@ expect(result).toBe(false); | ||
const signature = await SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, NetworkId.ROPSTEN) | ||
.fromWithdrawal(mockWithdrawal, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -91,3 +91,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableWithdrawal | ||
.fromWithdrawalWithNonce(withdrawalWithNonce, NetworkId.ROPSTEN) | ||
.fromWithdrawalWithNonce(withdrawalWithNonce, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -103,3 +103,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableWithdrawal | ||
.fromWithdrawal(withdrawal, NetworkId.ROPSTEN) | ||
.fromWithdrawal(withdrawal, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -115,3 +115,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const signature = await SignableWithdrawal | ||
.fromWithdrawal(withdrawal, NetworkId.ROPSTEN) | ||
.fromWithdrawal(withdrawal, NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -126,3 +126,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const starkwareWithdrawal: StarkwareWithdrawal = SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, NetworkId.ROPSTEN) | ||
.fromWithdrawal(mockWithdrawal, NetworkId.GOERLI) | ||
.toStarkware(); | ||
@@ -140,3 +140,3 @@ expect(starkwareWithdrawal.quantumsAmount).toBe('49478023'); | ||
mockWithdrawal, | ||
NetworkId.ROPSTEN, | ||
NetworkId.GOERLI, | ||
); | ||
@@ -143,0 +143,0 @@ const signature = await signableWithdrawal.sign(keyPair.privateKey); |
@@ -14,2 +14,3 @@ "use strict"; | ||
(0, expect_1.default)(src_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[src_1.NetworkId.MAINNET]).toBe('0x02893294412a4c8f915f75892b395ebbf6859ec246ec365c3b1f56f47c3a0a5d'); | ||
(0, expect_1.default)(src_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[src_1.NetworkId.GOERLI]).toBe('0x03bda2b4764039f2df44a00a9cf1d1569a83f95406a983ce4beb95791c376008'); | ||
(0, expect_1.default)(src_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[src_1.NetworkId.ROPSTEN]).toBe('0x02c04d8b650f44092278a7cb1e1028c82025dff622db96c934b611b84cc8de5a'); | ||
@@ -23,2 +24,2 @@ }); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLnRlc3QuanMiLC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QXNCLENBQUMsZUFBUyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLGtDQUFrQyxDQUFDLENBQUM7SUFDMUYsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 |
@@ -32,7 +32,7 @@ "use strict"; | ||
humanPrice: '1.23456789', | ||
}, types_1.NetworkId.ROPSTEN)).toStrictEqual({ | ||
}, types_1.NetworkId.GOERLI)).toStrictEqual({ | ||
quantumsAmountSynthetic: '2500000000001', | ||
quantumsAmountCollateral: '308641972', | ||
assetIdSynthetic: constants_1.SYNTHETIC_ASSET_ID_MAP[types_1.DydxAsset.BTC], | ||
assetIdCollateral: constants_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[types_1.NetworkId.ROPSTEN], | ||
assetIdCollateral: constants_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[types_1.NetworkId.GOERLI], | ||
isBuyingSynthetic: false, | ||
@@ -47,7 +47,7 @@ }); | ||
humanQuoteAmount: '308.641972', | ||
}, types_1.NetworkId.ROPSTEN)).toStrictEqual({ | ||
}, types_1.NetworkId.GOERLI)).toStrictEqual({ | ||
quantumsAmountSynthetic: '2500000000001', | ||
quantumsAmountCollateral: '308641972', | ||
assetIdSynthetic: constants_1.SYNTHETIC_ASSET_ID_MAP[types_1.DydxAsset.BTC], | ||
assetIdCollateral: constants_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[types_1.NetworkId.ROPSTEN], | ||
assetIdCollateral: constants_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[types_1.NetworkId.GOERLI], | ||
isBuyingSynthetic: false, | ||
@@ -63,3 +63,3 @@ }); | ||
humanPrice: '1.23456789', | ||
}, types_1.NetworkId.ROPSTEN); | ||
}, types_1.NetworkId.GOERLI); | ||
}).toThrow('not a multiple of the quantum size'); | ||
@@ -74,3 +74,3 @@ }); | ||
humanQuoteAmount: '308.6419721', | ||
}, types_1.NetworkId.ROPSTEN); | ||
}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QUFDO1FBQ3RCLENBQUMsQ0FBQyxDQUFDO1FBRUgsRUFBRSxDQUFDLG9FQUFvRSxFQUFFLEdBQUcsRUFBRTtZQUM1RSxJQUFBLGdCQUFNLEVBQ0osSUFBQSwwQkFBaUIsRUFBQyxhQUFhLEVBQUUsaUJBQVMsQ0FBQyxJQUFJLENBQUMsQ0FDakQsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLENBQUM7UUFDdEIsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDLENBQUMsQ0FBQztJQUVILFFBQVEsQ0FBQyw4QkFBOEIsRUFBRSxHQUFHLEVBQUU7UUFFNUMsRUFBRSxDQUFDLHNEQUFzRCxFQUFFLEdBQUcsRUFBRTtZQUM5RCxJQUFBLGdCQUFNLEVBQ0osSUFBQSxtQ0FBMEIsRUFDeEIsb0RBQW9ELEVBQ3BELGFBQWEsQ0FDZCxDQUNGLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ2xCLENBQUMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 |
@@ -31,8 +31,8 @@ "use strict"; | ||
}; | ||
const mockSignature = ('04814c5d3501863134108802cab5d12df4b959654332103b837252549d24e9a6' + | ||
'06bc01225e9f1690b08b63de2a3b179fb2927d4564b3440bbb0da4c37caf597e'); | ||
const mockSignature = ('01b437ac15bb89417edcfb2d304c3efad6256def3cc24e60c4980a88d08cb953' + | ||
'045df9fbe4a4895409e1011c60be439d65c1a2637013b74a19cb5b8ab62db434'); | ||
describe('SignableConditionalTransfer', () => { | ||
describe('verifySignature()', () => { | ||
it('returns true for a valid signature', async () => { | ||
const result = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN) | ||
const result = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -44,3 +44,3 @@ (0, expect_1.default)(result).toBe(true); | ||
const badSignatureR = (0, util_1.mutateHexStringAt)(mockSignature, 1); | ||
const result1 = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN) | ||
const result1 = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignatureR, mockKeyPair.publicKey); | ||
@@ -50,3 +50,3 @@ (0, expect_1.default)(result1).toBe(false); | ||
const badSignatureS = (0, util_1.mutateHexStringAt)(mockSignature, 65); | ||
const result2 = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN) | ||
const result2 = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignatureS, mockKeyPair.publicKey); | ||
@@ -58,3 +58,3 @@ (0, expect_1.default)(result2).toBe(false); | ||
it('signs a transfer', async () => { | ||
const signature = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN).sign(mockKeyPair.privateKey); | ||
const signature = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI).sign(mockKeyPair.privateKey); | ||
(0, expect_1.default)(signature).toEqual(mockSignature); | ||
@@ -67,3 +67,3 @@ }); | ||
}; | ||
const signature = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(transfer, types_1.NetworkId.ROPSTEN) | ||
const signature = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(transfer, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -77,3 +77,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
}; | ||
const signature = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(transfer, types_1.NetworkId.ROPSTEN) | ||
const signature = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(transfer, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -85,3 +85,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
it('converts human amounts to quantum amounts and converts expiration to hours', () => { | ||
const starkwareConditionalTransfer = (conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN).toStarkware()); | ||
const starkwareConditionalTransfer = (conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI).toStarkware()); | ||
(0, expect_1.default)(starkwareConditionalTransfer.quantumsAmount).toEqual('49478023'); | ||
@@ -95,3 +95,3 @@ (0, expect_1.default)(starkwareConditionalTransfer.expirationEpochHours).toBe(444533); | ||
const keyPair = (0, keys_1.generateKeyPairUnsafe)(); | ||
const signable = conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN); | ||
const signable = conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI); | ||
const signature = await signable.sign(keyPair.privateKey); | ||
@@ -105,2 +105,2 @@ // Expect to be valid when verifying with the right public key. | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZGl0aW9uYWwtdHJhbnNmZXIudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL19fdGVzdHNfXy9zaWduYWJsZS9jb25kaXRpb25hbC10cmFuc2Zlci50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7R0FFRzs7Ozs7QUFFSCxvREFBNEI7QUFDNUIsb0RBQXVCO0FBRXZCLDJDQUt5QjtBQUN6Qix5Q0FBdUQ7QUFDdkQsa0NBQTRDO0FBRTVDLHFCQUFxQjtBQUNyQixrRkFBc0Y7QUFFdEYsZUFBZTtBQUNmLE1BQU0sV0FBVyxHQUFZO0lBQz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ENBQUMsQ0FBQztJQUNOLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== |
@@ -70,7 +70,7 @@ "use strict"; | ||
const { SignableConditionalTransfer } = ((0, proxyquire_1.default)('../../src/signable/conditional-transfer', mocks)); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(5); | ||
// Expect fewer hashes the second time. | ||
mockPedersen.resetHistory(); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(4); | ||
@@ -80,7 +80,7 @@ }); | ||
const { SignableOrder } = (0, proxyquire_1.default)('../../src/signable/order', mocks); | ||
await SignableOrder.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableOrder.fromOrder(mockOrder, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(4); | ||
// Expect fewer hashes the second time. | ||
mockPedersen.resetHistory(); | ||
await SignableOrder.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableOrder.fromOrder(mockOrder, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(2); | ||
@@ -90,7 +90,7 @@ }); | ||
const { SignableTransfer } = ((0, proxyquire_1.default)('../../src/signable/transfer', mocks)); | ||
await SignableTransfer.fromTransfer(mockTransfer, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableTransfer.fromTransfer(mockTransfer, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(4); | ||
// Expect fewer hashes the second time. | ||
mockPedersen.resetHistory(); | ||
await SignableTransfer.fromTransfer(mockTransfer, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableTransfer.fromTransfer(mockTransfer, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(3); | ||
@@ -100,3 +100,3 @@ }); | ||
const { SignableWithdrawal } = (0, proxyquire_1.default)('../../src/signable/withdrawal', mocks); | ||
await SignableWithdrawal.fromWithdrawal(mockWithdrawal, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableWithdrawal.fromWithdrawal(mockWithdrawal, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(1); | ||
@@ -107,3 +107,3 @@ }); | ||
beforeEach(async () => { | ||
await proxyquiredHashes.preComputeHashes(types_1.NetworkId.ROPSTEN); | ||
await proxyquiredHashes.preComputeHashes(types_1.NetworkId.GOERLI); | ||
mockPedersen.resetHistory(); | ||
@@ -113,3 +113,3 @@ }); | ||
const { SignableConditionalTransfer } = ((0, proxyquire_1.default)('../../src/signable/conditional-transfer', mocks)); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(4); | ||
@@ -119,3 +119,3 @@ }); | ||
const { SignableOrder } = (0, proxyquire_1.default)('../../src/signable/order', mocks); | ||
await SignableOrder.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableOrder.fromOrder(mockOrder, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(2); | ||
@@ -125,3 +125,3 @@ }); | ||
const { SignableTransfer } = ((0, proxyquire_1.default)('../../src/signable/transfer', mocks)); | ||
await SignableTransfer.fromTransfer(mockTransfer, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableTransfer.fromTransfer(mockTransfer, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(3); | ||
@@ -131,3 +131,3 @@ }); | ||
const { SignableWithdrawal } = (0, proxyquire_1.default)('../../src/signable/withdrawal', mocks); | ||
await SignableWithdrawal.fromWithdrawal(mockWithdrawal, types_1.NetworkId.ROPSTEN).getHash(); | ||
await SignableWithdrawal.fromWithdrawal(mockWithdrawal, types_1.NetworkId.GOERLI).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(1); | ||
@@ -137,2 +137,2 @@ }); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFzaGVzLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9fX3Rlc3RzX18vc2lnbmFibGUvaGFzaGVzLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDZEQUE2RDtBQUM3RDs7R0FFRzs7Ozs7QUFFSCxvREFBNEI7QUFDNUIsNERBQW9DO0FBQ3BDLGtEQUEwQjtBQUcxQix1REFBbUQ7QUFjbkQsMkNBUXlCO0FBRXpCLG9CQUFVLENBQUMsZUFBZSxFQUFFLENBQUM7QUFFN0IsU0FBUztBQUNULElBQUksWUFBNEIsQ0FBQztBQUNqQyxJQUFJLGlCQUFzQyxDQUFDO0FBQzNDLElBQUksaUJBQXNDLENBQUM7QUFDM0MsSUFBSSxLQUFVLENBQUM7QUFFZixhQUFhO0FBQ2IsTUFBTSxZQUFZLEdBQW1CO0lBQ25DLGdCQUFnQixFQUFFLE9BQU87SUFDekIsa0JBQWtCLEVBQUUsT0FBTztJQUMzQixpQkFBaUIsRUFBRSxrRUFBa0U7SUFDckYsV0FBVyxFQUFFLFdBQVc7SUFDeEIsc0JBQXNCLEVBQUUsMEJBQTBCO0lBQ2xELFFBQVEsRUFBRS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UFLLENBQUMsQ0FBQztZQUNsRixNQUFPLGtCQUFvRCxDQUFDLGNBQWMsQ0FDeEUsY0FBYyxFQUNkLGlCQUFTLENBQUMsTUFBTSxDQUNqQixDQUFDLE9BQU8sRUFBRSxDQUFDO1lBQ1osSUFBQSxnQkFBTSxFQUFDLFlBQVksQ0FBQyxTQUFTLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDekMsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= |
@@ -34,3 +34,3 @@ "use strict"; | ||
const result = await oracle_price_1.SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -44,3 +44,3 @@ (0, expect_1.default)(result).toBe(true); | ||
const result = await oracle_price_1.SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -53,3 +53,3 @@ (0, expect_1.default)(result).toBe(false); | ||
const result = await oracle_price_1.SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -63,3 +63,3 @@ (0, expect_1.default)(result).toBe(false); | ||
const signature = await oracle_price_1.SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -73,3 +73,3 @@ (0, expect_1.default)(signature).toEqual(mockSignature); | ||
assetName: (0, src_1.getSignedAssetName)(mockOraclePrice.market), | ||
}, types_1.NetworkId.ROPSTEN) | ||
}, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -84,3 +84,3 @@ (0, expect_1.default)(signature).toEqual(mockSignature); | ||
const signature = await oracle_price_1.SignableOraclePrice | ||
.fromPriceWithMarket(oraclePrice, types_1.NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(oraclePrice, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -95,3 +95,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
const signature = await oracle_price_1.SignableOraclePrice | ||
.fromPriceWithMarket(oraclePrice, types_1.NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(oraclePrice, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -106,3 +106,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
const signature = await oracle_price_1.SignableOraclePrice | ||
.fromPriceWithMarket(oraclePrice, types_1.NetworkId.ROPSTEN) | ||
.fromPriceWithMarket(oraclePrice, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -116,3 +116,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
}; | ||
(0, expect_1.default)(() => oracle_price_1.SignableOraclePrice.fromPriceWithMarket(oraclePrice, types_1.NetworkId.ROPSTEN)).toThrow('Input does not fit in numBits=40 bits'); | ||
(0, expect_1.default)(() => oracle_price_1.SignableOraclePrice.fromPriceWithMarket(oraclePrice, types_1.NetworkId.GOERLI)).toThrow('Input does not fit in numBits=40 bits'); | ||
}); | ||
@@ -124,3 +124,3 @@ }); | ||
const keyPair = (0, keys_1.generateKeyPairUnsafe)(); | ||
const signableOraclePrice = oracle_price_1.SignableOraclePrice.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.ROPSTEN); | ||
const signableOraclePrice = oracle_price_1.SignableOraclePrice.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.GOERLI); | ||
const signature = await signableOraclePrice.sign(keyPair.privateKey); | ||
@@ -134,2 +134,2 @@ // Expect to be valid when verifying with the right public key. | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JhY2xlLXByaWNlLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9fX3Rlc3RzX18vc2lnbmFibGUvb3JhY2xlLXByaWNlLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOztHQUVHOzs7OztBQUVILG9EQUE0QjtBQUM1QixvREFBdUI7QUFFdkIsMkNBS3lCO0FBQ3pCLHlDQUF1RDtBQUN2RCxrQ0FBNEM7QUFFNUMscUJBQXFCO0FBQ3JCLGtFQUFzRTtBQUN0RSxtQ0FBK0M7QUFFL0MsZUFBZTtBQUNmLE1BQU0sV0FBVyxHQUFZO0lBQzNCLFNBQVMsRUFBRSxpRUFBaUU7SUFDNUUsVUFBVSxFQUFFLGlFQUFpRTtDQUM5RSxDQUFDO0FBQ0YsTUFBTSxlQUFlLEdBQTBCO0lBQzdDLE1BQU0sRUFBRSxrQkFBVSxDQUFDLE9BQU87SUFDMUIsVUFBVSxFQUFFLE1BQU07SUFDbEIsVUFBVSxFQUFFLFVBQVU7SUFDdEIsWUFBWSxFQUFFLDBCQUEwQjtDQUN6QyxDQUFDO0FBQ0YsTUFBTSxhQUFhLEdBQUcsQ0FDcEIsa0VBQWtFO0lBQ2xFLGtFQUFrRSxDQUNuRSxDQUFDO0FBRUYsUUFBUSxDQUFDLHFCQUFxQixFQUFFLEdBQUcsRUFBRTtJQUVuQyxRQUFRLENBQUMsbUJBQW1CLEVBQUUsR0FBRyxFQUFFO1FBRWpDLEVBQUUsQ0FBQyxvQ0FBb0MsRUFBRSxLQUFLLElBQUksRUFBRTtZQUNsRCxNQUFNL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JLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1lBRXJFLCtEQUErRDtZQUMvRCxJQUFBLGdCQUFNLEVBQ0osTUFBTSxtQkFBbUIsQ0FBQyxlQUFlLENBQUMsU0FBUyxFQUFFLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FDeEUsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7WUFFYixtRUFBbUU7WUFDbkUsSUFBQSxnQkFBTSxFQUNKLE1BQU0sbUJBQW1CLENBQUMsZUFBZSxDQUFDLFNBQVMsRUFBRSxXQUFXLENBQUMsU0FBUyxDQUFDLENBQzVFLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ2hCLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDTixDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= |
@@ -38,6 +38,6 @@ "use strict"; | ||
}; | ||
const mockSignature = ('00cecbe513ecdbf782cd02b2a5efb03e58d5f63d15f2b840e9bc0029af04e8dd' + | ||
'0090b822b16f50b2120e4ea9852b340f7936ff6069d02acca02f2ed03029ace5'); | ||
const mockSignatureEvenY = ('00fc0756522d78bef51f70e3981dc4d1e82273f59cdac6bc31c5776baabae6ec' + | ||
'0158963bfd45d88a99fb2d6d72c9bbcf90b24c3c0ef2394ad8d05f9d3983443a'); | ||
const mockSignature = ('07670488d9d2c6ff980ca86e6d05b89414de0f2bfd462a1058fb05add68d034a' + | ||
'036268ae33e8e21d324e975678f56b66dacb2502a7de1512a46b96fc0e106f79'); | ||
const mockSignatureEvenY = ('0618bcd2a8a027cf407116f88f2fa0d866154ee421cdf8a9deca0fecfda5277b' + | ||
'03e42fa1d039522fc77c23906253e537cc5b2f392dba6f2dbb35d51cbe37273a'); | ||
describe('SignableOrder', () => { | ||
@@ -47,3 +47,3 @@ describe('verifySignature()', () => { | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -54,3 +54,3 @@ (0, expect_1.default)(result).toBe(true); | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey, mockKeyPairPublicYCoordinate); | ||
@@ -61,3 +61,3 @@ (0, expect_1.default)(result).toBe(true); | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.verifySignature(mockSignatureEvenY, mockKeyPairEvenY.publicKey); | ||
@@ -68,6 +68,6 @@ (0, expect_1.default)(result).toBe(true); | ||
// Mutate a single character in r. | ||
await Promise.all(lodash_1.default.range(1, 4).map(async (i) => { | ||
await Promise.all(lodash_1.default.range(2, 4).map(async (i) => { | ||
const badSignature = (0, util_1.mutateHexStringAt)(mockSignature, i); | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -80,3 +80,3 @@ (0, expect_1.default)(result).toBe(false); | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -87,5 +87,5 @@ (0, expect_1.default)(result).toBe(false); | ||
it('returns false for a invalid signature (odd y), with y-coordinate provided', async () => { | ||
const badSignature = (0, util_1.mutateHexStringAt)(mockSignature, 1); | ||
const badSignature = (0, util_1.mutateHexStringAt)(mockSignature, 2); | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey, mockKeyPairPublicYCoordinate); | ||
@@ -97,3 +97,3 @@ (0, expect_1.default)(result).toBe(false); | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.verifySignature(mockSignature, badX, mockKeyPairPublicYCoordinate); | ||
@@ -105,3 +105,3 @@ (0, expect_1.default)(result).toBe(false); | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey, badY); | ||
@@ -114,3 +114,3 @@ (0, expect_1.default)(result).toBe(false); | ||
const signature = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -121,3 +121,3 @@ (0, expect_1.default)(signature).toEqual(mockSignature); | ||
const signature = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPairEvenY.privateKey); | ||
@@ -137,3 +137,3 @@ (0, expect_1.default)(signature).toEqual(mockSignatureEvenY); | ||
const signature = await order_1.SignableOrder | ||
.fromOrder(orderWithQuoteAmount, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(orderWithQuoteAmount, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -149,3 +149,3 @@ (0, expect_1.default)(signature).toEqual(mockSignature); | ||
const signature = await order_1.SignableOrder | ||
.fromOrderWithNonce(orderWithNonce, types_1.NetworkId.ROPSTEN) | ||
.fromOrderWithNonce(orderWithNonce, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -160,3 +160,3 @@ (0, expect_1.default)(signature).toEqual(mockSignature); | ||
const signature = await order_1.SignableOrder | ||
.fromOrder(order, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(order, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -171,3 +171,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
const signature = await order_1.SignableOrder | ||
.fromOrder(order, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(order, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -182,3 +182,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
const signature = await order_1.SignableOrder | ||
.fromOrder(order, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(order, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -191,3 +191,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
const starkwareOrder = order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN) | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.toStarkware(); | ||
@@ -205,3 +205,3 @@ (0, expect_1.default)(starkwareOrder.quantumsAmountSynthetic).toBe('145000500000'); | ||
}; | ||
(0, expect_1.default)(() => order_1.SignableOrder.fromOrder(order, types_1.NetworkId.ROPSTEN).toStarkware()).toThrow('Unknown market'); | ||
(0, expect_1.default)(() => order_1.SignableOrder.fromOrder(order, types_1.NetworkId.GOERLI).toStarkware()).toThrow('Unknown market'); | ||
}); | ||
@@ -213,3 +213,3 @@ it('correctly handles an expiration close to the start of the hour', () => { | ||
}; | ||
const starkwareOrder = order_1.SignableOrder.fromOrder(order, types_1.NetworkId.ROPSTEN).toStarkware(); | ||
const starkwareOrder = order_1.SignableOrder.fromOrder(order, types_1.NetworkId.GOERLI).toStarkware(); | ||
(0, expect_1.default)(starkwareOrder.expirationEpochHours).toBe(448553); | ||
@@ -222,3 +222,3 @@ }); | ||
const keyPair = (0, keys_1.generateKeyPairUnsafe)(); | ||
const signableOrder = order_1.SignableOrder.fromOrder(mockOrder, types_1.NetworkId.ROPSTEN); | ||
const signableOrder = order_1.SignableOrder.fromOrder(mockOrder, types_1.NetworkId.GOERLI); | ||
const signature = await signableOrder.sign(keyPair.privateKey); | ||
@@ -232,2 +232,2 @@ // Expect to be valid when verifying with the right public key. | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL19fdGVzdHNfXy9zaWduYWJsZS9vcmRlci50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7R0FFRzs7Ozs7QUFFSCxvREFBMkM7QUFDM0Msb0RBQTRCO0FBQzVCLG9EQUF1QjtBQUV2QiwyQ0FTeUI7QUFDekIseUNBQXVEO0FBQ3ZELCtDQUFzRDtBQUN0RCxrQ0FBNEM7QUFFNUMscUJBQXFCO0FBQ3JCLG9EQUF5RDtBQUV6RCxlQUFlO0FBQ2YsTUFBTSxXQUFXLEdBQVk7SUFDM0IsU0FBUyxFQUFFLGlFQUFpRTtJQUM1RSxVQUFVLEVBQUUsaUVBQWlFO0NBQzlFLENBQUM7QUFDRixNQUFNLDRCQUE0QixHQUFHLENBQ25DLGdFQUFnRSxDQUNqRSxDQUFDO0FBQ0YsTUFBTSxnQkFBZ0IsR0FBWTtJQUNoQyxTQUFTLEVBQUUsaUVBQWlFO0lBQzVFLFVBQVUsRUFBRSxpRUFBaUU7Q0FDOUUsQ0FBQztBQUNGLE1BQU0sU0FBUyxHQUFzQjtJQUNuQyxVQUFVLEVBQUUsT0FBTztJQUNuQixTQUFTLEVBQUUsVUFBVTtJQUNyQixRQUFRLEVBQUUsT0FBTztJQUNqQixNQUFNLEVBQUU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LEVBQUUsaUJBQVMsQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUMzRSxNQUFNLFNBQVMsR0FBRyxNQUFNLGFBQWEsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1lBRS9ELCtEQUErRDtZQUMvRCxJQUFBLGdCQUFNLEVBQ0osTUFBTSxhQUFhLENBQUMsZUFBZSxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsU0FBUyxDQUFDLENBQ2xFLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1lBRWIsbUVBQW1FO1lBQ25FLElBQUEsZ0JBQU0sRUFDSixNQUFNLGFBQWEsQ0FBQyxlQUFlLENBQUMsU0FBUyxFQUFFLFdBQVcsQ0FBQyxTQUFTLENBQUMsQ0FDdEUsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDaEIsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNOLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== |
@@ -29,8 +29,8 @@ "use strict"; | ||
}; | ||
const mockSignature = ('06b72146028a7f0092557a3a04e9916bd4ae1fba0a4bd92670ef80e2293f7386' + | ||
'04c0918a7a8e622e463d40f24984c23fd8bab2cd32980676ba666f55c6efeaf3'); | ||
const mockSignature = ('07a64843a0fb9bd455696139f6230d3152d9df2e863d54587f1f8bdbb07eb032' + | ||
'0699b82593aa2e02915694ffc39c1001e81337b8fcc73f5b91f73ce5146c50bd'); | ||
describe('SignableTransfer', () => { | ||
describe('verifySignature()', () => { | ||
it('returns true for a valid signature', async () => { | ||
const result = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN) | ||
const result = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -41,4 +41,4 @@ (0, expect_1.default)(result).toBe(true); | ||
// Mutate a single character in r. | ||
const badSignatureR = (0, util_1.mutateHexStringAt)(mockSignature, 1); | ||
const result1 = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN) | ||
const badSignatureR = (0, util_1.mutateHexStringAt)(mockSignature, 2); | ||
const result1 = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignatureR, mockKeyPair.publicKey); | ||
@@ -48,3 +48,3 @@ (0, expect_1.default)(result1).toBe(false); | ||
const badSignatureS = (0, util_1.mutateHexStringAt)(mockSignature, 65); | ||
const result2 = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN) | ||
const result2 = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignatureS, mockKeyPair.publicKey); | ||
@@ -56,3 +56,3 @@ (0, expect_1.default)(result2).toBe(false); | ||
it('signs a transfer', async () => { | ||
const signature = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN).sign(mockKeyPair.privateKey); | ||
const signature = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI).sign(mockKeyPair.privateKey); | ||
(0, expect_1.default)(signature).toEqual(mockSignature); | ||
@@ -65,3 +65,3 @@ }); | ||
}; | ||
const signature = await transfer_1.SignableTransfer.fromTransfer(transfer, types_1.NetworkId.ROPSTEN) | ||
const signature = await transfer_1.SignableTransfer.fromTransfer(transfer, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -75,3 +75,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
}; | ||
const signature = await transfer_1.SignableTransfer.fromTransfer(transfer, types_1.NetworkId.ROPSTEN) | ||
const signature = await transfer_1.SignableTransfer.fromTransfer(transfer, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -83,3 +83,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
it('converts human amounts to quantum amounts and converts expiration to hours', () => { | ||
const starkwareTransfer = (transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN).toStarkware()); | ||
const starkwareTransfer = (transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI).toStarkware()); | ||
(0, expect_1.default)(starkwareTransfer.quantumsAmount).toEqual('49478023'); | ||
@@ -93,3 +93,3 @@ (0, expect_1.default)(starkwareTransfer.expirationEpochHours).toBe(444533); | ||
const keyPair = (0, keys_1.generateKeyPairUnsafe)(); | ||
const signable = transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.ROPSTEN); | ||
const signable = transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI); | ||
const signature = await signable.sign(keyPair.privateKey); | ||
@@ -103,2 +103,2 @@ // Expect to be valid when verifying with the right public key. | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXIudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL19fdGVzdHNfXy9zaWduYWJsZS90cmFuc2Zlci50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7R0FFRzs7Ozs7QUFFSCxvREFBNEI7QUFDNUIsb0RBQXVCO0FBRXZCLDJDQUt5QjtBQUN6Qix5Q0FBdUQ7QUFDdkQsa0NBQTRDO0FBRTVDLHFCQUFxQjtBQUNyQiwwREFBK0Q7QUFFL0QsZUFBZTtBQUNmLE1BQU0sV0FBVyxHQUFZO0lBQzNCLFNBQVMsRUFBRSxpRUFBaUU7SUFDNUUsVUFBVSxFQUFFLGlFQUFpRTtDQUM5RSxDQUFDO0FBQ0YsTUFBTSxVQUFVLEdBQW1CO0lBQ2pDLGdCQUFnQixFQUFFLE9BQU87SUFDekIsa0JBQWtCLEVBQ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K0JBQStCO1FBQy9CLE1BQU0sT0FBTyxDQUFDLEdBQUcsQ0FBQyxnQkFBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsS0FBSyxJQUFJLEVBQUU7WUFDMUMsTUFBTSxPQUFPLEdBQVksSUFBQSw0QkFBcUIsR0FBRSxDQUFDO1lBQ2pELE1BQU0sUUFBUSxHQUFHLDJCQUFnQixDQUFDLFlBQVksQ0FBQyxVQUFVLEVBQUUsaUJBQVMsQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUM3RSxNQUFNLFNBQVMsR0FBRyxNQUFNLFFBQVEsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1lBRTFELCtEQUErRDtZQUMvRCxJQUFBLGdCQUFNLEVBQ0osTUFBTSxRQUFRLENBQUMsZUFBZSxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsU0FBUyxDQUFDLENBQzdELENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1lBRWIsbUVBQW1FO1lBQ25FLElBQUEsZ0JBQU0sRUFDSixNQUFNLFFBQVEsQ0FBQyxlQUFlLENBQUMsU0FBUyxFQUFFLFdBQVcsQ0FBQyxTQUFTLENBQUMsQ0FDakUsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDaEIsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNOLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== |
@@ -28,4 +28,4 @@ "use strict"; | ||
}; | ||
const mockSignature = ('05e48c33f8205a5359c95f1bd7385c1c1f587e338a514298c07634c0b6c952ba' + | ||
'0687d6980502a5d7fa84ef6fdc00104db22c43c7fb83e88ca84f19faa9ee3de1'); | ||
const mockSignature = ('0572e1628e196282ee246dbe5c8394251bf3fb1fab7be40e77b69b64c030920e' + | ||
'025f94283b9f3b9aa18503f7c500db89cc1ac914cb84b00e2263552a3d31a479'); | ||
describe('SignableWithdrawal', () => { | ||
@@ -35,3 +35,3 @@ describe('verifySignature()', () => { | ||
const result = await withdrawal_1.SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.ROPSTEN) | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.GOERLI) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -45,3 +45,3 @@ (0, expect_1.default)(result).toBe(true); | ||
const result = await withdrawal_1.SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.ROPSTEN) | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -54,3 +54,3 @@ (0, expect_1.default)(result).toBe(false); | ||
const result = await withdrawal_1.SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.ROPSTEN) | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.GOERLI) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -64,3 +64,3 @@ (0, expect_1.default)(result).toBe(false); | ||
const signature = await withdrawal_1.SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.ROPSTEN) | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -76,3 +76,3 @@ (0, expect_1.default)(signature).toEqual(mockSignature); | ||
const signature = await withdrawal_1.SignableWithdrawal | ||
.fromWithdrawalWithNonce(withdrawalWithNonce, types_1.NetworkId.ROPSTEN) | ||
.fromWithdrawalWithNonce(withdrawalWithNonce, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -87,3 +87,3 @@ (0, expect_1.default)(signature).toEqual(mockSignature); | ||
const signature = await withdrawal_1.SignableWithdrawal | ||
.fromWithdrawal(withdrawal, types_1.NetworkId.ROPSTEN) | ||
.fromWithdrawal(withdrawal, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -98,3 +98,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
const signature = await withdrawal_1.SignableWithdrawal | ||
.fromWithdrawal(withdrawal, types_1.NetworkId.ROPSTEN) | ||
.fromWithdrawal(withdrawal, types_1.NetworkId.GOERLI) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -107,3 +107,3 @@ (0, expect_1.default)(signature).not.toEqual(mockSignature); | ||
const starkwareWithdrawal = withdrawal_1.SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.ROPSTEN) | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.GOERLI) | ||
.toStarkware(); | ||
@@ -118,3 +118,3 @@ (0, expect_1.default)(starkwareWithdrawal.quantumsAmount).toBe('49478023'); | ||
const keyPair = (0, keys_1.generateKeyPairUnsafe)(); | ||
const signableWithdrawal = withdrawal_1.SignableWithdrawal.fromWithdrawal(mockWithdrawal, types_1.NetworkId.ROPSTEN); | ||
const signableWithdrawal = withdrawal_1.SignableWithdrawal.fromWithdrawal(mockWithdrawal, types_1.NetworkId.GOERLI); | ||
const signature = await signableWithdrawal.sign(keyPair.privateKey); | ||
@@ -128,2 +128,2 @@ // Expect to be valid when verifying with the right public key. | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXdhbC50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vX190ZXN0c19fL3NpZ25hYmxlL3dpdGhkcmF3YWwudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUc7Ozs7O0FBRUgsb0RBQTRCO0FBQzVCLG9EQUF1QjtBQUV2QiwyQ0FNeUI7QUFDekIseUNBQXVEO0FBQ3ZELCtDQUFzRDtBQUN0RCxrQ0FBNEM7QUFFN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xLQUFLLElBQUksRUFBRTtZQUMxQyxNQUFNLE9BQU8sR0FBWSxJQUFBLDRCQUFxQixHQUFFLENBQUM7WUFDakQsTUFBTSxrQkFBa0IsR0FBRywrQkFBa0IsQ0FBQyxjQUFjLENBQzFELGNBQWMsRUFDZCxpQkFBUyxDQUFDLE1BQU0sQ0FDakIsQ0FBQztZQUNGLE1BQU0sU0FBUyxHQUFHLE1BQU0sa0JBQWtCLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztZQUVwRSwrREFBK0Q7WUFDL0QsSUFBQSxnQkFBTSxFQUNKLE1BQU0sa0JBQWtCLENBQUMsZUFBZSxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsU0FBUyxDQUFDLENBQ3ZFLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1lBRWIsbUVBQW1FO1lBQ25FLElBQUEsZ0JBQU0sRUFDSixNQUFNLGtCQUFrQixDQUFDLGVBQWUsQ0FBQyxTQUFTLEVBQUUsV0FBVyxDQUFDLFNBQVMsQ0FBQyxDQUMzRSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNoQixDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ04sQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 |
@@ -137,2 +137,3 @@ "use strict"; | ||
[types_1.NetworkId.ROPSTEN]: '0x8707a5bf4c2842d46b31a405ba41b858c0f876c4', | ||
[types_1.NetworkId.GOERLI]: '0xf7a2fa2c2025ffe64427dd40dc190d47ecc8b36e', | ||
}; | ||
@@ -173,2 +174,2 @@ exports.COLLATERAL_ASSET_ID_BY_NETWORK_ID = lodash_1.default.mapValues(exports.COLLATERAL_ASSET_ADDRESS_BY_NETWORK, (address) => makeCollateralAssetId(address)); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3Rhbn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= 5] = "GOERLI"; | ||
})(NetworkId = exports.NetworkId || (exports.NetworkId = {})); | ||
@@ -141,2 +142,2 @@ var StarkwareOrderType; | ||
})(ApiMethod = exports.ApiMethod || (exports.ApiMethod = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBR0EsSUFBWSxTQUdYO0FBSEQsV0FBWSxTQUFTO0lBQ25CLCtDQUFXLENBQUE7SUFDWCwrQ0FBVyxDQUFBO0FBQ2IsQ0FBQyxFQUhXLFNBQVMsR0FBVCxpQkFBUyxLQUFULGlCQUFTLFFBR3BCO0FBRUQsSUFBWSxrQkFFWDtBQUZELFdBQVksa0JBQWtCO0lBQzVCLHFFQUErQyxDQUFBO0FBQ2pELENBQUMsRUFGVyxrQkFBa0IsR0FBbEIsMEJBQWtCLEtBQWxCLDBCQUFrQixRQUU3QjtBQUVELElBQVksa0JBR1g7QUFIRCxXQUFZLGtCQUFrQjtJQUM1QixpQ0FBVyxDQUFBO0lBQ1gsbUNBQWEsQ0FBQTtBQUNmLENBQUMsRUFIVyxrQkFBa0IsR0FBbEIsMEJBQWtCLEtBQWxCLDBCQUFrQixRQUc3QjtBQUVELHVDQUF1QztBQUN2QyxJQUFZLFVBc0RYO0FBdERELFdBQVksVUFBVTtJQUNwQixpQ0FBbUIsQ0FBQTtJQUNuQixpQ0FBbUIsQ0FBQTtJQUNuQixtQ0FBcUIsQ0FBQTtJQUNyQixtQ0FBcUIsQ0FBQTtJQUNyQixpQ0FBbUIsQ0FBQTtJQUNuQixxQ0FBdUIsQ0FBQTtJQUN2QixpQ0FBbUIsQ0FBQTtJQUNuQixpQ0FBbUIsQ0FBQTtJQUNuQix1Q0FBeUIsQ0FBQTtJQUN6QixtQ0FBcUIsQ0FBQTtJQUN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 -5,0 +5,0 @@ "main": "build/src/index.js", |
@@ -141,2 +141,3 @@ import BN from 'bn.js'; | ||
[NetworkId.ROPSTEN]: '0x8707a5bf4c2842d46b31a405ba41b858c0f876c4', | ||
[NetworkId.GOERLI]: '0xf7a2fa2c2025ffe64427dd40dc190d47ecc8b36e', | ||
}; | ||
@@ -143,0 +144,0 @@ |
@@ -7,2 +7,3 @@ import BN from 'bn.js'; | ||
ROPSTEN = 3, | ||
GOERLI = 5, | ||
} | ||
@@ -9,0 +10,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
999613
11906