@dydxprotocol/starkex-lib
Advanced tools
Comparing version 1.1.11 to 1.2.0
@@ -26,2 +26,5 @@ /** | ||
); | ||
expect(COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.SEPOLIA]).toBe( | ||
'0x01e70c509c4c6bfafe8b73d2fc1819444b2c0b435d4b82c0f24addff9565ce25', | ||
); | ||
}); | ||
@@ -28,0 +31,0 @@ |
@@ -54,3 +54,3 @@ /** | ||
humanPrice: '1.23456789', | ||
}, NetworkId.GOERLI), | ||
}, NetworkId.SEPOLIA), | ||
).toStrictEqual({ | ||
@@ -60,3 +60,3 @@ quantumsAmountSynthetic: '2500000000001', | ||
assetIdSynthetic: SYNTHETIC_ASSET_ID_MAP[DydxAsset.BTC], | ||
assetIdCollateral: COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.GOERLI], | ||
assetIdCollateral: COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.SEPOLIA], | ||
isBuyingSynthetic: false, | ||
@@ -73,3 +73,3 @@ }); | ||
humanQuoteAmount: '308.641972', | ||
}, NetworkId.GOERLI), | ||
}, NetworkId.SEPOLIA), | ||
).toStrictEqual({ | ||
@@ -79,3 +79,3 @@ quantumsAmountSynthetic: '2500000000001', | ||
assetIdSynthetic: SYNTHETIC_ASSET_ID_MAP[DydxAsset.BTC], | ||
assetIdCollateral: COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.GOERLI], | ||
assetIdCollateral: COLLATERAL_ASSET_ID_BY_NETWORK_ID[NetworkId.SEPOLIA], | ||
isBuyingSynthetic: false, | ||
@@ -92,3 +92,3 @@ }); | ||
humanPrice: '1.23456789', | ||
}, NetworkId.GOERLI); | ||
}, NetworkId.SEPOLIA); | ||
}).toThrow('not a multiple of the quantum size'); | ||
@@ -104,3 +104,3 @@ }); | ||
humanQuoteAmount: '308.6419721', | ||
}, NetworkId.GOERLI); | ||
}, NetworkId.SEPOLIA); | ||
}).toThrow('not a multiple of the quantum size'); | ||
@@ -107,0 +107,0 @@ }); |
@@ -36,4 +36,4 @@ /** | ||
const mockSignature = ( | ||
'01b437ac15bb89417edcfb2d304c3efad6256def3cc24e60c4980a88d08cb953' + | ||
'045df9fbe4a4895409e1011c60be439d65c1a2637013b74a19cb5b8ab62db434' | ||
'030044e03ab5efbaeaa43f472aa637bca8542835da60e8dcda8d145a619546d2' + | ||
'03c7f9007fd6b1963de156bfadf6e90fe4fe4b29674013b7de32f61527c70f00' | ||
); | ||
@@ -46,3 +46,3 @@ | ||
it('returns true for a valid signature', async () => { | ||
const result = await SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.GOERLI) | ||
const result = await SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
const result1 = await SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
const result2 = await SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.SEPOLIA) | ||
.verifySignature(badSignatureS, mockKeyPair.publicKey); | ||
@@ -74,3 +74,3 @@ expect(result2).toBe(false); | ||
mockParams, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).sign(mockKeyPair.privateKey); | ||
@@ -85,3 +85,3 @@ expect(signature).toEqual(mockSignature); | ||
}; | ||
const signature = await SignableConditionalTransfer.fromTransfer(transfer, NetworkId.GOERLI) | ||
const signature = await SignableConditionalTransfer.fromTransfer(transfer, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -96,3 +96,3 @@ expect(signature).not.toEqual(mockSignature); | ||
}; | ||
const signature = await SignableConditionalTransfer.fromTransfer(transfer, NetworkId.GOERLI) | ||
const signature = await SignableConditionalTransfer.fromTransfer(transfer, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -107,3 +107,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const starkwareConditionalTransfer: StarkwareConditionalTransfer = ( | ||
SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.GOERLI).toStarkware() | ||
SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.SEPOLIA).toStarkware() | ||
); | ||
@@ -119,3 +119,3 @@ expect(starkwareConditionalTransfer.quantumsAmount).toEqual('49478023'); | ||
const keyPair: KeyPair = generateKeyPairUnsafe(); | ||
const signable = SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.GOERLI); | ||
const signable = SignableConditionalTransfer.fromTransfer(mockParams, NetworkId.SEPOLIA); | ||
const signature = await signable.sign(keyPair.privateKey); | ||
@@ -122,0 +122,0 @@ |
@@ -99,3 +99,3 @@ /* eslint-disable @typescript-eslint/no-unused-expressions */ | ||
mockConditionalTransfer, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -108,3 +108,3 @@ expect(mockPedersen.callCount).toBe(5); | ||
mockConditionalTransfer, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -118,3 +118,3 @@ expect(mockPedersen.callCount).toBe(4); | ||
mockOrder, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -127,3 +127,3 @@ expect(mockPedersen.callCount).toBe(4); | ||
mockOrder, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -139,3 +139,3 @@ expect(mockPedersen.callCount).toBe(2); | ||
mockTransfer, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -148,3 +148,3 @@ expect(mockPedersen.callCount).toBe(4); | ||
mockTransfer, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -158,3 +158,3 @@ expect(mockPedersen.callCount).toBe(3); | ||
mockWithdrawal, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -168,3 +168,3 @@ expect(mockPedersen.callCount).toBe(1); | ||
beforeEach(async () => { | ||
await proxyquiredHashes.preComputeHashes(NetworkId.GOERLI); | ||
await proxyquiredHashes.preComputeHashes(NetworkId.SEPOLIA); | ||
mockPedersen.resetHistory(); | ||
@@ -179,3 +179,3 @@ }); | ||
mockConditionalTransfer, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -189,3 +189,3 @@ expect(mockPedersen.callCount).toBe(4); | ||
mockOrder, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -201,3 +201,3 @@ expect(mockPedersen!.callCount).toBe(2); | ||
mockTransfer, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -211,3 +211,3 @@ expect(mockPedersen.callCount).toBe(3); | ||
mockWithdrawal, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).getHash(); | ||
@@ -214,0 +214,0 @@ expect(mockPedersen.callCount).toBe(1); |
@@ -43,3 +43,3 @@ /** | ||
const result = await SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.GOERLI) | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.SEPOLIA) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -54,3 +54,3 @@ expect(result).toBe(true); | ||
const result = await SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.GOERLI) | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.SEPOLIA) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -64,3 +64,3 @@ expect(result).toBe(false); | ||
const result = await SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.GOERLI) | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.SEPOLIA) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -76,3 +76,3 @@ expect(result).toBe(false); | ||
const signature = await SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.GOERLI) | ||
.fromPriceWithMarket(mockOraclePrice, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -87,3 +87,3 @@ expect(signature).toEqual(mockSignature); | ||
assetName: getSignedAssetName(mockOraclePrice.market), | ||
}, NetworkId.GOERLI) | ||
}, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -99,3 +99,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableOraclePrice | ||
.fromPriceWithMarket(oraclePrice, NetworkId.GOERLI) | ||
.fromPriceWithMarket(oraclePrice, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -111,3 +111,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const signature = await SignableOraclePrice | ||
.fromPriceWithMarket(oraclePrice, NetworkId.GOERLI) | ||
.fromPriceWithMarket(oraclePrice, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -123,3 +123,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const signature = await SignableOraclePrice | ||
.fromPriceWithMarket(oraclePrice, NetworkId.GOERLI) | ||
.fromPriceWithMarket(oraclePrice, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -135,3 +135,3 @@ expect(signature).not.toEqual(mockSignature); | ||
expect( | ||
() => SignableOraclePrice.fromPriceWithMarket(oraclePrice, NetworkId.GOERLI), | ||
() => SignableOraclePrice.fromPriceWithMarket(oraclePrice, NetworkId.SEPOLIA), | ||
).toThrow('Input does not fit in numBits=40 bits'); | ||
@@ -147,3 +147,3 @@ }); | ||
mockOraclePrice, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
); | ||
@@ -150,0 +150,0 @@ const signature = await signableOraclePrice.sign(keyPair.privateKey); |
@@ -49,8 +49,8 @@ /** | ||
const mockSignature = ( | ||
'07670488d9d2c6ff980ca86e6d05b89414de0f2bfd462a1058fb05add68d034a' + | ||
'036268ae33e8e21d324e975678f56b66dacb2502a7de1512a46b96fc0e106f79' | ||
'0500a22a8c8b14fbb3b7d26366604c446b9d059420d7db2a8f94bc52691d2626' + | ||
'003e38aa083f72c9db89a7a80b98a6eb92edce7294d917d8489767740affc6ed' | ||
); | ||
const mockSignatureEvenY = ( | ||
'0618bcd2a8a027cf407116f88f2fa0d866154ee421cdf8a9deca0fecfda5277b' + | ||
'03e42fa1d039522fc77c23906253e537cc5b2f392dba6f2dbb35d51cbe37273a' | ||
'06f593fcec14720cd895e7edf0830b668b6104c0de4be6d22befe4ced0868dc3' + | ||
'0507259e9634a140d83a8fcfc43b5a08af6cec7f85d3606cc7a974465aff334e' | ||
); | ||
@@ -64,3 +64,3 @@ | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -72,3 +72,3 @@ expect(result).toBe(true); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey, mockKeyPairPublicYCoordinate); | ||
@@ -80,3 +80,3 @@ expect(result).toBe(true); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.verifySignature(mockSignatureEvenY, mockKeyPairEvenY.publicKey); | ||
@@ -91,3 +91,3 @@ expect(result).toBe(true); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -101,3 +101,3 @@ expect(result).toBe(false); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -111,3 +111,3 @@ expect(result).toBe(false); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.verifySignature(badSignature, mockKeyPair.publicKey, mockKeyPairPublicYCoordinate); | ||
@@ -120,3 +120,3 @@ expect(result).toBe(false); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.verifySignature(mockSignature, badX, mockKeyPairPublicYCoordinate); | ||
@@ -129,3 +129,3 @@ expect(result).toBe(false); | ||
const result = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey, badY); | ||
@@ -140,3 +140,3 @@ expect(result).toBe(false); | ||
const signature = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -148,3 +148,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.sign(mockKeyPairEvenY.privateKey); | ||
@@ -165,3 +165,3 @@ expect(signature).toEqual(mockSignatureEvenY); | ||
const signature = await SignableOrder | ||
.fromOrder(orderWithQuoteAmount, NetworkId.GOERLI) | ||
.fromOrder(orderWithQuoteAmount, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -178,3 +178,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableOrder | ||
.fromOrderWithNonce(orderWithNonce, NetworkId.GOERLI) | ||
.fromOrderWithNonce(orderWithNonce, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -190,3 +190,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableOrder | ||
.fromOrder(order, NetworkId.GOERLI) | ||
.fromOrder(order, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -202,3 +202,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const signature = await SignableOrder | ||
.fromOrder(order, NetworkId.GOERLI) | ||
.fromOrder(order, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -214,3 +214,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const signature = await SignableOrder | ||
.fromOrder(order, NetworkId.GOERLI) | ||
.fromOrder(order, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -225,3 +225,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const starkwareOrder: StarkwareOrder = SignableOrder | ||
.fromOrder(mockOrder, NetworkId.GOERLI) | ||
.fromOrder(mockOrder, NetworkId.SEPOLIA) | ||
.toStarkware(); | ||
@@ -242,3 +242,3 @@ expect(starkwareOrder.quantumsAmountSynthetic).toBe('145000500000'); | ||
expect( | ||
() => SignableOrder.fromOrder(order, NetworkId.GOERLI).toStarkware(), | ||
() => SignableOrder.fromOrder(order, NetworkId.SEPOLIA).toStarkware(), | ||
).toThrow('Unknown market'); | ||
@@ -252,3 +252,3 @@ }); | ||
}; | ||
const starkwareOrder = SignableOrder.fromOrder(order, NetworkId.GOERLI).toStarkware(); | ||
const starkwareOrder = SignableOrder.fromOrder(order, NetworkId.SEPOLIA).toStarkware(); | ||
expect(starkwareOrder.expirationEpochHours).toBe(448553); | ||
@@ -262,3 +262,3 @@ }); | ||
const keyPair: KeyPair = generateKeyPairUnsafe(); | ||
const signableOrder = SignableOrder.fromOrder(mockOrder, NetworkId.GOERLI); | ||
const signableOrder = SignableOrder.fromOrder(mockOrder, NetworkId.SEPOLIA); | ||
const signature = await signableOrder.sign(keyPair.privateKey); | ||
@@ -265,0 +265,0 @@ |
@@ -34,4 +34,4 @@ /** | ||
const mockSignature = ( | ||
'07a64843a0fb9bd455696139f6230d3152d9df2e863d54587f1f8bdbb07eb032' + | ||
'0699b82593aa2e02915694ffc39c1001e81337b8fcc73f5b91f73ce5146c50bd' | ||
'02b4d393ea955be0f53029e2f8a10d31671eb9d3ada015d973c903417264688a' + | ||
'02ffb6b7f29870208f1f860b125de95b5444142a867be9dcd80128999518ddd3' | ||
); | ||
@@ -44,3 +44,3 @@ | ||
it('returns true for a valid signature', async () => { | ||
const result = await SignableTransfer.fromTransfer(mockParams, NetworkId.GOERLI) | ||
const result = await SignableTransfer.fromTransfer(mockParams, NetworkId.SEPOLIA) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -53,3 +53,3 @@ expect(result).toBe(true); | ||
const badSignatureR: string = mutateHexStringAt(mockSignature, 2); | ||
const result1 = await SignableTransfer.fromTransfer(mockParams, NetworkId.GOERLI) | ||
const result1 = await SignableTransfer.fromTransfer(mockParams, NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
const result2 = await SignableTransfer.fromTransfer(mockParams, NetworkId.SEPOLIA) | ||
.verifySignature(badSignatureS, mockKeyPair.publicKey); | ||
@@ -72,3 +72,3 @@ expect(result2).toBe(false); | ||
mockParams, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
).sign(mockKeyPair.privateKey); | ||
@@ -83,3 +83,3 @@ expect(signature).toEqual(mockSignature); | ||
}; | ||
const signature = await SignableTransfer.fromTransfer(transfer, NetworkId.GOERLI) | ||
const signature = await SignableTransfer.fromTransfer(transfer, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -94,3 +94,3 @@ expect(signature).not.toEqual(mockSignature); | ||
}; | ||
const signature = await SignableTransfer.fromTransfer(transfer, NetworkId.GOERLI) | ||
const signature = await SignableTransfer.fromTransfer(transfer, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -105,3 +105,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const starkwareTransfer: StarkwareTransfer = ( | ||
SignableTransfer.fromTransfer(mockParams, NetworkId.GOERLI).toStarkware() | ||
SignableTransfer.fromTransfer(mockParams, NetworkId.SEPOLIA).toStarkware() | ||
); | ||
@@ -117,3 +117,3 @@ expect(starkwareTransfer.quantumsAmount).toEqual('49478023'); | ||
const keyPair: KeyPair = generateKeyPairUnsafe(); | ||
const signable = SignableTransfer.fromTransfer(mockParams, NetworkId.GOERLI); | ||
const signable = SignableTransfer.fromTransfer(mockParams, NetworkId.SEPOLIA); | ||
const signature = await signable.sign(keyPair.privateKey); | ||
@@ -120,0 +120,0 @@ |
@@ -34,4 +34,4 @@ /** | ||
const mockSignature = ( | ||
'0572e1628e196282ee246dbe5c8394251bf3fb1fab7be40e77b69b64c030920e' + | ||
'025f94283b9f3b9aa18503f7c500db89cc1ac914cb84b00e2263552a3d31a479' | ||
'01af771baee70bea9e5e0a5e600e29fa67171b32ee5d38c67c5a97630bcd8fab' + | ||
'0563d154cd47dcf9c34e4ddf00d8fea353176807ba5f7ab62316133a8976a733' | ||
); | ||
@@ -45,3 +45,3 @@ | ||
const result = await SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, NetworkId.GOERLI) | ||
.fromWithdrawal(mockWithdrawal, NetworkId.SEPOLIA) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -56,3 +56,3 @@ expect(result).toBe(true); | ||
const result = await SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, NetworkId.GOERLI) | ||
.fromWithdrawal(mockWithdrawal, NetworkId.SEPOLIA) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -66,3 +66,3 @@ expect(result).toBe(false); | ||
const result = await SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, NetworkId.GOERLI) | ||
.fromWithdrawal(mockWithdrawal, NetworkId.SEPOLIA) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -78,3 +78,3 @@ expect(result).toBe(false); | ||
const signature = await SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, NetworkId.GOERLI) | ||
.fromWithdrawal(mockWithdrawal, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -91,3 +91,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableWithdrawal | ||
.fromWithdrawalWithNonce(withdrawalWithNonce, NetworkId.GOERLI) | ||
.fromWithdrawalWithNonce(withdrawalWithNonce, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -103,3 +103,3 @@ expect(signature).toEqual(mockSignature); | ||
const signature = await SignableWithdrawal | ||
.fromWithdrawal(withdrawal, NetworkId.GOERLI) | ||
.fromWithdrawal(withdrawal, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -115,3 +115,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const signature = await SignableWithdrawal | ||
.fromWithdrawal(withdrawal, NetworkId.GOERLI) | ||
.fromWithdrawal(withdrawal, NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -126,3 +126,3 @@ expect(signature).not.toEqual(mockSignature); | ||
const starkwareWithdrawal: StarkwareWithdrawal = SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, NetworkId.GOERLI) | ||
.fromWithdrawal(mockWithdrawal, NetworkId.SEPOLIA) | ||
.toStarkware(); | ||
@@ -140,3 +140,3 @@ expect(starkwareWithdrawal.quantumsAmount).toBe('49478023'); | ||
mockWithdrawal, | ||
NetworkId.GOERLI, | ||
NetworkId.SEPOLIA, | ||
); | ||
@@ -143,0 +143,0 @@ const signature = await signableWithdrawal.sign(keyPair.privateKey); |
@@ -16,2 +16,3 @@ "use strict"; | ||
(0, expect_1.default)(src_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[src_1.NetworkId.ROPSTEN]).toBe('0x02c04d8b650f44092278a7cb1e1028c82025dff622db96c934b611b84cc8de5a'); | ||
(0, expect_1.default)(src_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[src_1.NetworkId.SEPOLIA]).toBe('0x01e70c509c4c6bfafe8b73d2fc1819444b2c0b435d4b82c0f24addff9565ce25'); | ||
}); | ||
@@ -24,2 +25,2 @@ it('generates the expected synthetic asset IDs', () => { | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9fX3Rlc3RzX18vY29uc3RhbnRzLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOztHQUVHOzs7OztBQUVILG9EQUE0QjtBQUU1QixnQ0FLZ0I7QUFFaEIsUUFBUSxDQUFDLFdBQVcsRUFBRSxHQUFHLEVBQUU7SUFFekIsRUFBRSxDQUFDLDZDQUE2QyxFQUFFLEdBQUcsRUFBRTtRQUNyRCxJQUFBLGdCQUFNLEVBQUMsdUNBQWlDLENBQUMsZUFBUyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUMvRCxvRUFBb0UsQ0FDckUsQ0FBQztRQUNGLElBQUEsZ0JBQU0sRUFBQyx1Q0FBaUMsQ0FBQyx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789', | ||
}, types_1.NetworkId.GOERLI)).toStrictEqual({ | ||
}, types_1.NetworkId.SEPOLIA)).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.GOERLI], | ||
assetIdCollateral: constants_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[types_1.NetworkId.SEPOLIA], | ||
isBuyingSynthetic: false, | ||
@@ -47,7 +47,7 @@ }); | ||
humanQuoteAmount: '308.641972', | ||
}, types_1.NetworkId.GOERLI)).toStrictEqual({ | ||
}, types_1.NetworkId.SEPOLIA)).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.GOERLI], | ||
assetIdCollateral: constants_1.COLLATERAL_ASSET_ID_BY_NETWORK_ID[types_1.NetworkId.SEPOLIA], | ||
isBuyingSynthetic: false, | ||
@@ -63,3 +63,3 @@ }); | ||
humanPrice: '1.23456789', | ||
}, types_1.NetworkId.GOERLI); | ||
}, types_1.NetworkId.SEPOLIA); | ||
}).toThrow('not a multiple of the quantum size'); | ||
@@ -74,3 +74,3 @@ }); | ||
humanQuoteAmount: '308.6419721', | ||
}, types_1.NetworkId.GOERLI); | ||
}, types_1.NetworkId.SEPOLIA); | ||
}).toThrow('not a multiple of the quantum size'); | ||
@@ -111,2 +111,2 @@ }); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uL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DakQsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLENBQUM7UUFDdEIsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDLENBQUMsQ0FBQztJQUVILFFBQVEsQ0FBQyw4QkFBOEIsRUFBRSxHQUFHLEVBQUU7UUFFNUMsRUFBRSxDQUFDLHNEQUFzRCxFQUFFLEdBQUcsRUFBRTtZQUM5RCxJQUFBLGdCQUFNLEVBQ0osSUFBQSxtQ0FBMEIsRUFDeEIsb0RBQW9ELEVBQ3BELGFBQWEsQ0FDZCxDQUNGLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ2xCLENBQUMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 |
@@ -31,8 +31,8 @@ "use strict"; | ||
}; | ||
const mockSignature = ('01b437ac15bb89417edcfb2d304c3efad6256def3cc24e60c4980a88d08cb953' + | ||
'045df9fbe4a4895409e1011c60be439d65c1a2637013b74a19cb5b8ab62db434'); | ||
const mockSignature = ('030044e03ab5efbaeaa43f472aa637bca8542835da60e8dcda8d145a619546d2' + | ||
'03c7f9007fd6b1963de156bfadf6e90fe4fe4b29674013b7de32f61527c70f00'); | ||
describe('SignableConditionalTransfer', () => { | ||
describe('verifySignature()', () => { | ||
it('returns true for a valid signature', async () => { | ||
const result = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI) | ||
const result = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
const result1 = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
const result2 = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI).sign(mockKeyPair.privateKey); | ||
const signature = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA).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.GOERLI) | ||
const signature = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(transfer, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
const signature = await conditional_transfer_1.SignableConditionalTransfer.fromTransfer(transfer, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI).toStarkware()); | ||
const starkwareConditionalTransfer = (conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA).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.GOERLI); | ||
const signable = conditional_transfer_1.SignableConditionalTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA); | ||
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZGl0aW9uYWwtdHJhbnNmZXIudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL19fdGVzdHNfXy9zaWduYWJsZS9jb25kaXRpb25hbC10cmFuc2Zlci50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7R0FFRzs7Ozs7QUFFSCxvREFBNEI7QUFDNUIsb0RBQXVCO0FBRXZCLDJDQUt5QjtBQUN6Qix5Q0FBdUQ7QUFDdkQsa0NBQTRDO0FBRTVDLHFCQUFxQjtBQUNyQixrRkFBc0Y7QUFFdEYsZUFBZTtBQUNmLE1BQU0sV0FBVyxHQUFZO0lBQzNCLFNBQVMsRUFBRSxpRUFBaUU7SUFDNUUsVUFBVSxFQUFFLGlFQUFpRTtDQUM5RSxDQUFDO0FBQ0YsTUFBTSxVQUFVLEdBQThCO0lBQzVDLGdCQUFnQixFQUFFLE9BQU87SUFDekIsa0JBQWtCLEVBQUUsT0FBTztJQUMzQixpQkFBaUIsRU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M7UUFDekUsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDLENBQUMsQ0FBQztJQUVILEVBQUUsQ0FBQyxZQUFZLEVBQUUsS0FBSyxJQUFJLEVBQUU7UUFDMUIsK0JBQStCO1FBQy9CLE1BQU0sT0FBTyxDQUFDLEdBQUcsQ0FBQyxnQkFBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsS0FBSyxJQUFJLEVBQUU7WUFDMUMsTUFBTSxPQUFPLEdBQVksSUFBQSw0QkFBcUIsR0FBRSxDQUFDO1lBQ2pELE1BQU0sUUFBUSxHQUFHLGtEQUEyQixDQUFDLFlBQVksQ0FBQyxVQUFVLEVBQUUsaUJBQVMsQ0FBQyxPQUFPLENBQUMsQ0FBQztZQUN6RixNQUFNLFNBQVMsR0FBRyxNQUFNLFFBQVEsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1lBRTFELCtEQUErRDtZQUMvRCxJQUFBLGdCQUFNLEVBQ0osTUFBTSxRQUFRLENBQUMsZUFBZSxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsU0FBUyxDQUFDLENBQzdELENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1lBRWIsbUVBQW1FO1lBQ25FLElBQUEsZ0JBQU0sRUFDSixNQUFNLFFBQVEsQ0FBQyxlQUFlLENBQUMsU0FBUyxFQUFFLFdBQVcsQ0FBQyxTQUFTLENBQUMsQ0FDakUsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDaEIsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNOLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== |
@@ -70,7 +70,7 @@ "use strict"; | ||
const { SignableConditionalTransfer } = ((0, proxyquire_1.default)('../../src/signable/conditional-transfer', mocks)); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.GOERLI).getHash(); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.SEPOLIA).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(5); | ||
// Expect fewer hashes the second time. | ||
mockPedersen.resetHistory(); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.GOERLI).getHash(); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.SEPOLIA).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.GOERLI).getHash(); | ||
await SignableOrder.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(4); | ||
// Expect fewer hashes the second time. | ||
mockPedersen.resetHistory(); | ||
await SignableOrder.fromOrder(mockOrder, types_1.NetworkId.GOERLI).getHash(); | ||
await SignableOrder.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA).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.GOERLI).getHash(); | ||
await SignableTransfer.fromTransfer(mockTransfer, types_1.NetworkId.SEPOLIA).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(4); | ||
// Expect fewer hashes the second time. | ||
mockPedersen.resetHistory(); | ||
await SignableTransfer.fromTransfer(mockTransfer, types_1.NetworkId.GOERLI).getHash(); | ||
await SignableTransfer.fromTransfer(mockTransfer, types_1.NetworkId.SEPOLIA).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.GOERLI).getHash(); | ||
await SignableWithdrawal.fromWithdrawal(mockWithdrawal, types_1.NetworkId.SEPOLIA).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(1); | ||
@@ -107,3 +107,3 @@ }); | ||
beforeEach(async () => { | ||
await proxyquiredHashes.preComputeHashes(types_1.NetworkId.GOERLI); | ||
await proxyquiredHashes.preComputeHashes(types_1.NetworkId.SEPOLIA); | ||
mockPedersen.resetHistory(); | ||
@@ -113,3 +113,3 @@ }); | ||
const { SignableConditionalTransfer } = ((0, proxyquire_1.default)('../../src/signable/conditional-transfer', mocks)); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.GOERLI).getHash(); | ||
await SignableConditionalTransfer.fromTransfer(mockConditionalTransfer, types_1.NetworkId.SEPOLIA).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.GOERLI).getHash(); | ||
await SignableOrder.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA).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.GOERLI).getHash(); | ||
await SignableTransfer.fromTransfer(mockTransfer, types_1.NetworkId.SEPOLIA).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.GOERLI).getHash(); | ||
await SignableWithdrawal.fromWithdrawal(mockWithdrawal, types_1.NetworkId.SEPOLIA).getHash(); | ||
(0, expect_1.default)(mockPedersen.callCount).toBe(1); | ||
@@ -137,2 +137,2 @@ }); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFzaGVzLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9fX3Rlc3RzX18vc2lnbmFibGUvaGFzaGVzLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDZEQUE2RDtBQUM3RDs7R0FFRzs7Ozs7QUFFSCxvREFBNEI7QUFDNUIsNERBQW9DO0FBQ3BDLGtEQUEwQjtBQUcxQix1REFBbUQ7QUFjbkQsMkNBUXlCO0FBRXpCLG9CQUFVLENBQUMsZUFBZSxFQUFFLENBQUM7QUFFN0IsU0FBUztBQUNULElBQUksWUFBNEIsQ0FBQztBQUNqQyxJQUFJLGlCQUFzQyxDQUFDO0FBQzNDLElBQUksaUJBQXNDLENBQUM7QUFDM0MsSUFBSSxLQUFVLENBQUM7QUFFZixhQUFhO0FBQ2IsTUFBTSxZQUFZLEdBQW1CO0lBQ25DLGdCQUFnQixFQUFFLE9BQU87SUFDekIsa0JBQWtCLEVBQUUsT0FBTztJQUMzQixpQkFBaUIsRUFBRSxrRUFBa0U7SUFDckYsV0FBVyxFQUFFLFdBQVc7SUFDeEIsc0JBQXNCLEVBQUUsMEJBQTBCO0lBQ2xELFFBQVEsRUFBRSxzRUFBc0U7Q0FDakYsQ0FBQztBQUNGLE1BQU0sdUJBQXVCLEdBQThCO0lBQ3pELEdBQUcsWUFBWTtJQUNmLG1CQUFtQixFQUFFLDRDQUE0QztJQUNqRSxJQUFJLEVBQUUsb0VBQW9FO0NBQzNFLENBQUM7QUFDRixNQUFNLFNBQVMsR0FBc0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TLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDekMsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= |
@@ -34,3 +34,3 @@ "use strict"; | ||
const result = await oracle_price_1.SignableOraclePrice | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.GOERLI) | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.SEPOLIA) | ||
.sign(mockKeyPair.privateKey); | ||
@@ -73,3 +73,3 @@ (0, expect_1.default)(signature).toEqual(mockSignature); | ||
assetName: (0, src_1.getSignedAssetName)(mockOraclePrice.market), | ||
}, types_1.NetworkId.GOERLI) | ||
}, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromPriceWithMarket(oraclePrice, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromPriceWithMarket(oraclePrice, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromPriceWithMarket(oraclePrice, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI)).toThrow('Input does not fit in numBits=40 bits'); | ||
(0, expect_1.default)(() => oracle_price_1.SignableOraclePrice.fromPriceWithMarket(oraclePrice, types_1.NetworkId.SEPOLIA)).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.GOERLI); | ||
const signableOraclePrice = oracle_price_1.SignableOraclePrice.fromPriceWithMarket(mockOraclePrice, types_1.NetworkId.SEPOLIA); | ||
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,eyJ2ZXJzaW9uIjozLCJmaWxlI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0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7WUFFYixtRUFBbUU7WUFDbkUsSUFBQSxnQkFBTSxFQUNKLE1BQU0sbUJBQW1CLENBQUMsZUFBZSxDQUFDLFNBQVMsRUFBRSxXQUFXLENBQUMsU0FBUyxDQUFDLENBQzVFLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ2hCLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDTixDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0= |
@@ -38,6 +38,6 @@ "use strict"; | ||
}; | ||
const mockSignature = ('07670488d9d2c6ff980ca86e6d05b89414de0f2bfd462a1058fb05add68d034a' + | ||
'036268ae33e8e21d324e975678f56b66dacb2502a7de1512a46b96fc0e106f79'); | ||
const mockSignatureEvenY = ('0618bcd2a8a027cf407116f88f2fa0d866154ee421cdf8a9deca0fecfda5277b' + | ||
'03e42fa1d039522fc77c23906253e537cc5b2f392dba6f2dbb35d51cbe37273a'); | ||
const mockSignature = ('0500a22a8c8b14fbb3b7d26366604c446b9d059420d7db2a8f94bc52691d2626' + | ||
'003e38aa083f72c9db89a7a80b98a6eb92edce7294d917d8489767740affc6ed'); | ||
const mockSignatureEvenY = ('06f593fcec14720cd895e7edf0830b668b6104c0de4be6d22befe4ced0868dc3' + | ||
'0507259e9634a140d83a8fcfc43b5a08af6cec7f85d3606cc7a974465aff334e'); | ||
describe('SignableOrder', () => { | ||
@@ -47,3 +47,3 @@ describe('verifySignature()', () => { | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.verifySignature(mockSignatureEvenY, mockKeyPairEvenY.publicKey); | ||
@@ -71,3 +71,3 @@ (0, expect_1.default)(result).toBe(true); | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.verifySignature(badSignature, mockKeyPair.publicKey); | ||
@@ -89,3 +89,3 @@ (0, expect_1.default)(result).toBe(false); | ||
const result = await order_1.SignableOrder | ||
.fromOrder(mockOrder, types_1.NetworkId.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(orderWithQuoteAmount, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrderWithNonce(orderWithNonce, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(order, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(order, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(order, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI).toStarkware()).toThrow('Unknown market'); | ||
(0, expect_1.default)(() => order_1.SignableOrder.fromOrder(order, types_1.NetworkId.SEPOLIA).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.GOERLI).toStarkware(); | ||
const starkwareOrder = order_1.SignableOrder.fromOrder(order, types_1.NetworkId.SEPOLIA).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.GOERLI); | ||
const signableOrder = order_1.SignableOrder.fromOrder(mockOrder, types_1.NetworkId.SEPOLIA); | ||
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL19fdGVzdHNfXy9zaWduYWJsZS9vcmRlci50ZXN0LnRzIl0sIm5hbWVzIj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UMsQ0FDdEUsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDaEIsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNOLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== |
@@ -29,8 +29,8 @@ "use strict"; | ||
}; | ||
const mockSignature = ('07a64843a0fb9bd455696139f6230d3152d9df2e863d54587f1f8bdbb07eb032' + | ||
'0699b82593aa2e02915694ffc39c1001e81337b8fcc73f5b91f73ce5146c50bd'); | ||
const mockSignature = ('02b4d393ea955be0f53029e2f8a10d31671eb9d3ada015d973c903417264688a' + | ||
'02ffb6b7f29870208f1f860b125de95b5444142a867be9dcd80128999518ddd3'); | ||
describe('SignableTransfer', () => { | ||
describe('verifySignature()', () => { | ||
it('returns true for a valid signature', async () => { | ||
const result = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI) | ||
const result = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA) | ||
.verifySignature(mockSignature, mockKeyPair.publicKey); | ||
@@ -42,3 +42,3 @@ (0, expect_1.default)(result).toBe(true); | ||
const badSignatureR = (0, util_1.mutateHexStringAt)(mockSignature, 2); | ||
const result1 = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.GOERLI) | ||
const result1 = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
const result2 = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI).sign(mockKeyPair.privateKey); | ||
const signature = await transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA).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.GOERLI) | ||
const signature = await transfer_1.SignableTransfer.fromTransfer(transfer, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
const signature = await transfer_1.SignableTransfer.fromTransfer(transfer, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI).toStarkware()); | ||
const starkwareTransfer = (transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA).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.GOERLI); | ||
const signable = transfer_1.SignableTransfer.fromTransfer(mockParams, types_1.NetworkId.SEPOLIA); | ||
const signature = await signable.sign(keyPair.privateKey); | ||
@@ -103,2 +103,2 @@ // Expect to be valid when verifying with the right public key.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PQUFPLENBQUMsU0FBUyxDQUFDLENBQzdELENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1lBRWIsbUVBQW1FO1lBQ25FLElBQUEsZ0JBQU0sRUFDSixNQUFNLFFBQVEsQ0FBQyxlQUFlLENBQUMsU0FBUyxFQUFFLFdBQVcsQ0FBQyxTQUFTLENBQUMsQ0FDakUsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDaEIsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNOLENBQUMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDLENBQUMifQ== |
@@ -28,4 +28,4 @@ "use strict"; | ||
}; | ||
const mockSignature = ('0572e1628e196282ee246dbe5c8394251bf3fb1fab7be40e77b69b64c030920e' + | ||
'025f94283b9f3b9aa18503f7c500db89cc1ac914cb84b00e2263552a3d31a479'); | ||
const mockSignature = ('01af771baee70bea9e5e0a5e600e29fa67171b32ee5d38c67c5a97630bcd8fab' + | ||
'0563d154cd47dcf9c34e4ddf00d8fea353176807ba5f7ab62316133a8976a733'); | ||
describe('SignableWithdrawal', () => { | ||
@@ -35,3 +35,3 @@ describe('verifySignature()', () => { | ||
const result = await withdrawal_1.SignableWithdrawal | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.GOERLI) | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromWithdrawalWithNonce(withdrawalWithNonce, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromWithdrawal(withdrawal, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromWithdrawal(withdrawal, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI) | ||
.fromWithdrawal(mockWithdrawal, types_1.NetworkId.SEPOLIA) | ||
.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.GOERLI); | ||
const signableWithdrawal = withdrawal_1.SignableWithdrawal.fromWithdrawal(mockWithdrawal, types_1.NetworkId.SEPOLIA); | ||
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXdhbC50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vX190ZXN0c19fL3NpZ25hYmxlL3dpdGhkcmF3YWwudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUc7Ozs7O0FBRUgsb0RBQTRCO0FBQzVCLG9EQUF1QjtBQUV2QiwyQ0FNeUI7QUFDekIseUNBQXVEO0FBQ3ZELCtDQUFzRDtBQUN0RCxrQ0FBNEM7QUFFNUMscUJBQXFCO0FBQ3JCLDhEQUFtRTtBQUVuRSxlQUFlO0FBQ2YsTUFBTSxXQUFXLEdBQVk7SUFDM0IsU0FBUyxFQUFFLGlFQUFpRTtJQUM1RSxVQUFVLEVBQUUsaUVBQWlFO0NBQzlFLENBQUM7QUFDRixNQUFNLGNBQWMsR0FBMkI7SUFDN0MsVUFBVSxFQUFFLE9BQU87SUFDbkIsV0FBVyxFQUFFLFdBQVc7SUFDeEIsc0JBQXNCLEVBQUUsMEJBQTBCO0lBQ2xELFFBQVEsRUFBRSx3RUFBd0U7Q0FDbkYsQ0FBQztBQUNGLE1BQU0sYUFBYSxHQUFHLENBQ3BCLGtFQUFrRTtJQUNsRSxrRUFBa0UsQ0FDbkUsQ0FBQztBQUVGLFFBQVEsQ0FBQyxvQkFBb0IsRUFBRSxHQUFHLEVBQUU7SUFFbEMsUUFBUSxDQUFDLG1CQUFtQixFQUFFLEdBQUcsR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U0sRUFDSixNQUFNLGtCQUFrQixDQUFDLGVBQWUsQ0FBQyxTQUFTLEVBQUUsV0FBVyxDQUFDLFNBQVMsQ0FBQyxDQUMzRSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNoQixDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ04sQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 |
@@ -138,2 +138,3 @@ "use strict"; | ||
[types_1.NetworkId.GOERLI]: '0xf7a2fa2c2025ffe64427dd40dc190d47ecc8b36e', | ||
[types_1.NetworkId.SEPOLIA]: '0x7fC9C132268E0E414991449c003DbdB3E73E2059', | ||
}; | ||
@@ -174,2 +175,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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxrREFBdUI7QUFDdkIseURBQXlEO0FBQ3pELG9EQUF1QjtBQUV2QixxQ0FBNEM7QUFDNUMsbUNBS2lCO0FBRUosUUFBQSxVQUFVLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxpQkFBUyxDQUFDLENBQUM7QUFDdEMsUUFBQSxnQkFBZ0IsR0FBRyxpQkFBUyxDQUFDLElBQUksQ0FBQztBQUNsQyxRQUFBLGdCQUFnQixHQUFHLGdCQUFDLENBQUMsT0FBTyxDQUFDLGtCQUFVLEVBQUUsd0JBQWdCLENBQXFCLENBQUM7QUFFNUY7O0dBRUc7QUFDVSxRQUFBLG1CQUFtQixHQUF1QztJQUNyRSxDQUFDLGtCQ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QUEscUJBQWMsRUFBQyxRQUFRLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQztBQUN0RCxDQUFDO0FBRUQ7O0dBRUc7QUFDSCxTQUFTLG9CQUFvQixDQUMzQixLQUFxQjtJQUVyQixNQUFNLGFBQWEsR0FBRyxHQUFHLEtBQUssSUFBSSx3QkFBZ0IsQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDO0lBQzVELE1BQU0sVUFBVSxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sQ0FBQyxFQUFFLEVBQUUsR0FBRyxDQUFDLENBQUM7SUFDOUUsT0FBTyxLQUFLLFVBQVUsRUFBRSxDQUFDO0FBQzNCLENBQUMifQ== |
@@ -6,3 +6,4 @@ import BN from 'bn.js'; | ||
ROPSTEN = 3, | ||
GOERLI = 5 | ||
GOERLI = 5, | ||
SEPOLIA = 11155111 | ||
} | ||
@@ -9,0 +10,0 @@ export declare enum StarkwareOrderType { |
@@ -9,2 +9,3 @@ "use strict"; | ||
NetworkId[NetworkId["GOERLI"] = 5] = "GOERLI"; | ||
NetworkId[NetworkId["SEPOLIA"] = 11155111] = "SEPOLIA"; | ||
})(NetworkId = exports.NetworkId || (exports.NetworkId = {})); | ||
@@ -142,2 +143,2 @@ var StarkwareOrderType; | ||
})(ApiMethod = exports.ApiMethod || (exports.ApiMethod = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBR0EsSUFBWSxTQUlYO0FBSkQsV0FBWSxTQUFTO0lBQ25CLCtDQUFXLENBQUE7SUFDWCwrQ0FBVyxDQUFBO0lBQ1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DWCwwQkFBYSxDQUFBO0lBQ2Isd0JBQVcsQ0FBQTtJQUNYLHdCQUFXLENBQUE7SUFDWCx3QkFBVyxDQUFBO0lBQ1gsd0JBQVcsQ0FBQTtJQUNYLHdCQUFXLENBQUE7SUFDWCx3QkFBVyxDQUFBO0lBQ1gsMEJBQWEsQ0FBQTtJQUNiLDRCQUFlLENBQUE7SUFDZiwwQkFBYSxDQUFBO0lBQ2Isd0JBQVcsQ0FBQTtBQUNiLENBQUMsRUF2RFcsU0FBUyxHQUFULGlCQUFTLEtBQVQsaUJBQVMsUUF1RHBCO0FBNEhELG1EQUFtRDtBQUVuRCxJQUFZLFNBS1g7QUFMRCxXQUFZLFNBQVM7SUFDbkIsMEJBQWEsQ0FBQTtJQUNiLHdCQUFXLENBQUE7SUFDWCx3QkFBVyxDQUFBO0lBQ1gsOEJBQWlCLENBQUE7QUFDbkIsQ0FBQyxFQUxXLFNBQVMsR0FBVCxpQkFBUyxLQUFULGlCQUFTLFFBS3BCIn0= |
{ | ||
"name": "@dydxprotocol/starkex-lib", | ||
"version": "1.1.11", | ||
"version": "1.2.0", | ||
"description": "Cryptographic functions for use with StarkEx", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
@@ -142,2 +142,3 @@ import BN from 'bn.js'; | ||
[NetworkId.GOERLI]: '0xf7a2fa2c2025ffe64427dd40dc190d47ecc8b36e', | ||
[NetworkId.SEPOLIA]: '0x7fC9C132268E0E414991449c003DbdB3E73E2059', | ||
}; | ||
@@ -144,0 +145,0 @@ |
@@ -8,2 +8,3 @@ import BN from 'bn.js'; | ||
GOERLI = 5, | ||
SEPOLIA = 11155111, | ||
} | ||
@@ -10,0 +11,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
997363
11915
2