@dydxprotocol/starkex-lib
Advanced tools
Comparing version 1.0.2 to 1.0.3
import { DydxAsset, DydxMarket, NetworkId, SyntheticAsset } from './types'; | ||
export declare const ALL_ASSETS: DydxAsset[]; | ||
export declare const COLLATERAL_ASSET = DydxAsset.USDC; | ||
export declare const SYNTHETIC_ASSETS: (DydxAsset.BTC | DydxAsset.ETH | DydxAsset.LINK | DydxAsset.AAVE | DydxAsset.UNI | DydxAsset.SUSHI | DydxAsset.SOL | DydxAsset.YFI | DydxAsset.ONEINCH)[]; | ||
export declare const SYNTHETIC_ASSETS: (DydxAsset.BTC | DydxAsset.ETH | DydxAsset.LINK | DydxAsset.AAVE | DydxAsset.UNI | DydxAsset.SUSHI | DydxAsset.SOL | DydxAsset.YFI | DydxAsset.ONEINCH | DydxAsset.AVAX | DydxAsset.SNX | DydxAsset.CRV | DydxAsset.UMA | DydxAsset.DOT | DydxAsset.DOGE)[]; | ||
/** | ||
@@ -6,0 +6,0 @@ * Mapping from a dYdX market to the synthetic asset for that market. |
@@ -28,2 +28,8 @@ "use strict"; | ||
[types_1.DydxMarket.ONEINCH_USD]: types_1.DydxAsset.ONEINCH, | ||
[types_1.DydxMarket.AVAX_USD]: types_1.DydxAsset.AVAX, | ||
[types_1.DydxMarket.SNX_USD]: types_1.DydxAsset.SNX, | ||
[types_1.DydxMarket.CRV_USD]: types_1.DydxAsset.CRV, | ||
[types_1.DydxMarket.UMA_USD]: types_1.DydxAsset.UMA, | ||
[types_1.DydxMarket.DOT_USD]: types_1.DydxAsset.DOT, | ||
[types_1.DydxMarket.DOGE_USD]: types_1.DydxAsset.DOGE, | ||
}; | ||
@@ -46,2 +52,8 @@ /** | ||
[types_1.DydxAsset.ONEINCH]: 7, | ||
[types_1.DydxAsset.AVAX]: 7, | ||
[types_1.DydxAsset.SNX]: 7, | ||
[types_1.DydxAsset.CRV]: 6, | ||
[types_1.DydxAsset.UMA]: 7, | ||
[types_1.DydxAsset.DOT]: 7, | ||
[types_1.DydxAsset.DOGE]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QWMsQ0FBQyxZQUFZLENBQUMsRUFBRSxLQUFLLENBQUM7UUFDaEQsTUFBTSxDQUFDLElBQUksQ0FBQyxxQkFBYyxDQUFDLElBQUksZUFBRSxDQUFDLFlBQVksQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQyxFQUFFLEtBQUssQ0FBQztLQUN0RSxDQUFDLENBQUM7SUFDSCxNQUFNLE1BQU0sR0FBRyxrQkFBUyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQy9CLE1BQU0sUUFBUSxHQUFHLElBQUksZUFBRSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUM7SUFDcEQsUUFBUSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUNyQixPQUFPLEtBQUsscUJBQWMsQ0FBQyxRQUFRLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQztBQUN0RCxDQUFDO0FBRUQ7O0dBRUc7QUFDSCxTQUFTLG9CQUFvQixDQUMzQixLQUFxQjtJQUVyQixNQUFNLGFBQWEsR0FBRyxHQUFHLEtBQUssSUFBSSx3QkFBZ0IsQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDO0lBQzVELE1BQU0sVUFBVSxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDLE1BQU0sQ0FBQyxFQUFFLEVBQUUsR0FBRyxDQUFDLENBQUM7SUFDOUUsT0FBTyxLQUFLLFVBQVUsRUFBRSxDQUFDO0FBQzNCLENBQUMifQ== |
@@ -29,5 +29,1 @@ /** | ||
export declare function getSignedAssetId(assetName: string, oracleName: string): string; | ||
/** | ||
* Get active markets for environment | ||
*/ | ||
export declare function getActiveMarkets(numMarkets: number): DydxMarket[]; |
@@ -9,3 +9,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getActiveMarkets = exports.getSignedAssetId = exports.getSignedAssetName = exports.addOrderExpirationBufferHours = exports.isoTimestampToEpochHours = exports.isoTimestampToEpochSeconds = exports.nonceFromClientId = void 0; | ||
exports.getSignedAssetId = exports.getSignedAssetName = exports.addOrderExpirationBufferHours = exports.isoTimestampToEpochHours = exports.isoTimestampToEpochSeconds = exports.nonceFromClientId = void 0; | ||
const crypto_1 = __importDefault(require("crypto")); | ||
@@ -66,9 +66,2 @@ const bn_js_1 = __importDefault(require("bn.js")); | ||
exports.getSignedAssetId = getSignedAssetId; | ||
/** | ||
* Get active markets for environment | ||
*/ | ||
function getActiveMarkets(numMarkets) { | ||
return constants_1.TOTAL_MARKETS_ARRAY.slice(0, numMarkets); | ||
} | ||
exports.getActiveMarkets = getActiveMarkets; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlzYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9oZWxwZXJzL21pc2MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOztHQUVHOzs7Ozs7QUFFSCxvREFBZ0M7QUFFaEMsa0RBQXVCO0FBRXZCLHNDQUFnRDtBQUNoRCxxREFLK0I7QUFHL0IsTUFBTSxTQUFTLEdBQUcsSUFBSSxlQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLElBQUksZUFBRSxDQUFDLG1DQUF1QixDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7QUFDdkUsTUFBTSxhQUFhLEdBQUcsSUFBSSxDQUFDO0FBQzNCLE1BQU0sV0FBVyxHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsYUFBYSxDQUFDO0FBRTVDOztHQUVHO0FBQ0gsU0FBZ0IsaUJBQWlCLENBQUMsUUFBZ0I7SUFDaEQsTUFBTSxRQUF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QztBQUVEOztHQUVHO0FBQ0gsU0FBZ0IsZ0JBQWdCLENBQzlCLFNBQWlCLEVBQ2pCLFVBQWtCO0lBRWxCLE1BQU0sV0FBVyxHQUFHLGVBQVEsQ0FBQyxTQUFTLEVBQUUsMENBQThCLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDbEYsTUFBTSxZQUFZLEdBQUcsZUFBUSxDQUFDLFVBQVUsRUFBRSwwQ0FBOEIsQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUVyRixNQUFNLGVBQWUsR0FBRyxXQUFXO1NBQ2hDLE1BQU0sQ0FBQywwQ0FBOEIsQ0FBQyxVQUFVLENBQUM7U0FDakQsSUFBSSxDQUFDLFlBQVksQ0FBQyxDQUFDO0lBQ3RCLE9BQU8sZUFBZSxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUN0QyxDQUFDO0FBWEQsNENBV0MifQ== |
import BN from 'bn.js'; | ||
import { DydxMarket } from '../types'; | ||
export declare const TRANSFER_FEE_ASSET_ID_BN: BN; | ||
@@ -45,2 +44,1 @@ export declare const STARK_ORDER_SIGNATURE_EXPIRATION_BUFFER_HOURS: number; | ||
}; | ||
export declare const TOTAL_MARKETS_ARRAY: DydxMarket[]; |
@@ -6,5 +6,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TOTAL_MARKETS_ARRAY = exports.ORACLE_PRICE_FIELD_BIT_LENGTHS = exports.CONDITIONAL_TRANSFER_FIELD_BIT_LENGTHS = exports.TRANSFER_FIELD_BIT_LENGTHS = exports.WITHDRAWAL_FIELD_BIT_LENGTHS = exports.ORDER_FIELD_BIT_LENGTHS = exports.ORACLE_PRICE_DECIMALS = exports.STARK_ORDER_SIGNATURE_EXPIRATION_BUFFER_HOURS = exports.TRANSFER_FEE_ASSET_ID_BN = void 0; | ||
exports.ORACLE_PRICE_FIELD_BIT_LENGTHS = exports.CONDITIONAL_TRANSFER_FIELD_BIT_LENGTHS = exports.TRANSFER_FIELD_BIT_LENGTHS = exports.WITHDRAWAL_FIELD_BIT_LENGTHS = exports.ORDER_FIELD_BIT_LENGTHS = exports.ORACLE_PRICE_DECIMALS = exports.STARK_ORDER_SIGNATURE_EXPIRATION_BUFFER_HOURS = exports.TRANSFER_FEE_ASSET_ID_BN = void 0; | ||
const bn_js_1 = __importDefault(require("bn.js")); | ||
const types_1 = require("../types"); | ||
exports.TRANSFER_FEE_ASSET_ID_BN = new bn_js_1.default(0); // Same for conditional transfers. | ||
@@ -47,14 +46,2 @@ exports.STARK_ORDER_SIGNATURE_EXPIRATION_BUFFER_HOURS = 24 * 7; // Seven days. | ||
}; | ||
// ordered by launch order | ||
exports.TOTAL_MARKETS_ARRAY = [ | ||
types_1.DydxMarket.BTC_USD, | ||
types_1.DydxMarket.ETH_USD, | ||
types_1.DydxMarket.LINK_USD, | ||
types_1.DydxMarket.AAVE_USD, | ||
types_1.DydxMarket.UNI_USD, | ||
types_1.DydxMarket.SUSHI_USD, | ||
types_1.DydxMarket.SOL_USD, | ||
types_1.DydxMarket.YFI_USD, | ||
types_1.DydxMarket.ONEINCH_USD, | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3NpZ25hYmxlL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxrREFBdUI7QUFFdkIsb0NBQXNDO0FBRXpCLFFBQUEsd0JBQXdCLEdBQUcsSUFBSSxlQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxrQ0FBa0M7QUFDeEUsUUFBQSw2Q0FBNkMsR0FBRyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUMsY0FBYztBQUN0RSxRQUFBLHFCQUFxQixHQUFHLEVBQUUsQ0FBQztBQUUzQixRQUFB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O0lBQ3hDLE9BQU8sRUFBRSxHQUFHO0lBQ1osaUJBQWlCLEVBQUUsR0FBRztJQUN0QixVQUFVLEVBQUUsRUFBRTtJQUNkLEtBQUssRUFBRSxFQUFFO0lBQ1QsY0FBYyxFQUFFLEVBQUU7SUFDbEIsb0JBQW9CLEVBQUUsRUFBRTtDQUN6QixDQUFDO0FBRVcsUUFBQSxzQ0FBc0MsR0FBRztJQUNwRCxHQUFHLGtDQUEwQjtJQUM3QixTQUFTLEVBQUUsR0FBRztDQUNmLENBQUM7QUFFVyxRQUFBLDhCQUE4QixHQUFHO0lBQzVDLFNBQVMsRUFBRSxHQUFHO0lBQ2QsVUFBVSxFQUFFLEVBQUU7SUFDZCxLQUFLLEVBQUUsR0FBRztJQUNWLHFCQUFxQixFQUFFLEVBQUU7Q0FDMUIsQ0FBQyJ9 |
@@ -23,3 +23,9 @@ import BN from 'bn.js'; | ||
YFI_USD = "YFI-USD", | ||
ONEINCH_USD = "1INCH-USD" | ||
ONEINCH_USD = "1INCH-USD", | ||
AVAX_USD = "AVAX-USD", | ||
SNX_USD = "SNX-USD", | ||
CRV_USD = "CRV-USD", | ||
UMA_USD = "UMA-USD", | ||
DOT_USD = "DOT-USD", | ||
DOGE_USD = "DOGE-USD" | ||
} | ||
@@ -36,3 +42,9 @@ export declare enum DydxAsset { | ||
YFI = "YFI", | ||
ONEINCH = "1INCH" | ||
ONEINCH = "1INCH", | ||
AVAX = "AVAX", | ||
SNX = "SNX", | ||
CRV = "CRV", | ||
UMA = "UMA", | ||
DOT = "DOT", | ||
DOGE = "DOGE" | ||
} | ||
@@ -39,0 +51,0 @@ export declare type SyntheticAsset = Exclude<DydxAsset, DydxAsset.USDC>; |
@@ -30,2 +30,8 @@ "use strict"; | ||
DydxMarket["ONEINCH_USD"] = "1INCH-USD"; | ||
DydxMarket["AVAX_USD"] = "AVAX-USD"; | ||
DydxMarket["SNX_USD"] = "SNX-USD"; | ||
DydxMarket["CRV_USD"] = "CRV-USD"; | ||
DydxMarket["UMA_USD"] = "UMA-USD"; | ||
DydxMarket["DOT_USD"] = "DOT-USD"; | ||
DydxMarket["DOGE_USD"] = "DOGE-USD"; | ||
})(DydxMarket = exports.DydxMarket || (exports.DydxMarket = {})); | ||
@@ -44,2 +50,8 @@ var DydxAsset; | ||
DydxAsset["ONEINCH"] = "1INCH"; | ||
DydxAsset["AVAX"] = "AVAX"; | ||
DydxAsset["SNX"] = "SNX"; | ||
DydxAsset["CRV"] = "CRV"; | ||
DydxAsset["UMA"] = "UMA"; | ||
DydxAsset["DOT"] = "DOT"; | ||
DydxAsset["DOGE"] = "DOGE"; | ||
})(DydxAsset = exports.DydxAsset || (exports.DydxAsset = {})); | ||
@@ -54,2 +66,2 @@ // ============ API Request Parameters ============ | ||
})(ApiMethod = exports.ApiMethod || (exports.ApiMethod = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBR0EsSUFBWSxTQUdYO0FBSEQsV0FBWSxTQUFTO0lBQ25CLCtDQUFXLENBQUE7SUFDWCwrQ0FBVyxDQUFBO0FBQ2IsQ0FBQyxFQUhXLFNBQVMsR0FBVCxpQkFBUyxLQUFULGlCQUFTLFFBR3BCO0FBRUQsSUFBWSxrQkFFWDtBQUZELFdBQVksa0JBQWtCO0lBQzVCLHFFQUErQyxDQUFBO0FBQ2pELENBQUMsRUFGVyxrQkFBa0IsR0FBbEIsMEJBQWtCLEtBQWxCLDBCQUFrQixRQUU3QjtBQUVELElBQVksa0JBR1g7QUFIRCxXQUFZLGtCQUFrQjtJQUM1QixpQ0FBVyxDQUFBO0lBQ1gsbUNBQWEsQ0FBQTtBQUNmLENBQUMsRUFIVyxrQkFBa0IsR0FBbEIsMEJBQWtCLEtBQWxCLDBCQUFrQixRQUc3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sd0JBQVcsQ0FBQTtJQUNYLDBCQUFhLENBQUE7SUFDYiwwQkFBYSxDQUFBO0lBQ2Isd0JBQVcsQ0FBQTtJQUNYLDRCQUFlLENBQUE7SUFDZix3QkFBVyxDQUFBO0lBQ1gsd0JBQVcsQ0FBQTtJQUNYLDhCQUFpQixDQUFBO0lBQ2pCLDBCQUFhLENBQUE7SUFDYix3QkFBVyxDQUFBO0lBQ1gsd0JBQVcsQ0FBQTtJQUNYLHdCQUFXLENBQUE7SUFDWCx3QkFBVyxDQUFBO0lBQ1gsMEJBQWEsQ0FBQTtBQUNmLENBQUMsRUFqQlcsU0FBUyxHQUFULGlCQUFTLEtBQVQsaUJBQVMsUUFpQnBCO0FBNEhELG1EQUFtRDtBQUVuRCxJQUFZLFNBS1g7QUFMRCxXQUFZLFNBQVM7SUFDbkIsMEJBQWEsQ0FBQTtJQUNiLHdCQUFXLENBQUE7SUFDWCx3QkFBVyxDQUFBO0lBQ1gsOEJBQWlCLENBQUE7QUFDbkIsQ0FBQyxFQUxXLFNBQVMsR0FBVCxpQkFBUyxLQUFULGlCQUFTLFFBS3BCIn0= |
{ | ||
"name": "@dydxprotocol/starkex-lib", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Cryptographic functions for use with StarkEx", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
@@ -30,2 +30,8 @@ import BN from 'bn.js'; | ||
[DydxMarket.ONEINCH_USD]: DydxAsset.ONEINCH, | ||
[DydxMarket.AVAX_USD]: DydxAsset.AVAX, | ||
[DydxMarket.SNX_USD]: DydxAsset.SNX, | ||
[DydxMarket.CRV_USD]: DydxAsset.CRV, | ||
[DydxMarket.UMA_USD]: DydxAsset.UMA, | ||
[DydxMarket.DOT_USD]: DydxAsset.DOT, | ||
[DydxMarket.DOGE_USD]: DydxAsset.DOGE, | ||
}; | ||
@@ -49,2 +55,8 @@ | ||
[DydxAsset.ONEINCH]: 7, | ||
[DydxAsset.AVAX]: 7, | ||
[DydxAsset.SNX]: 7, | ||
[DydxAsset.CRV]: 6, | ||
[DydxAsset.UMA]: 7, | ||
[DydxAsset.DOT]: 7, | ||
[DydxAsset.DOGE]: 5, | ||
}; | ||
@@ -51,0 +63,0 @@ |
@@ -14,3 +14,2 @@ /** | ||
STARK_ORDER_SIGNATURE_EXPIRATION_BUFFER_HOURS, | ||
TOTAL_MARKETS_ARRAY, | ||
} from '../signable/constants'; | ||
@@ -76,8 +75,1 @@ import { DydxMarket } from '../types'; | ||
} | ||
/** | ||
* Get active markets for environment | ||
*/ | ||
export function getActiveMarkets(numMarkets: number): DydxMarket[] { | ||
return TOTAL_MARKETS_ARRAY.slice(0, numMarkets); | ||
} |
import BN from 'bn.js'; | ||
import { DydxMarket } from '../types'; | ||
export const TRANSFER_FEE_ASSET_ID_BN = new BN(0); // Same for conditional transfers. | ||
@@ -47,14 +45,1 @@ export const STARK_ORDER_SIGNATURE_EXPIRATION_BUFFER_HOURS = 24 * 7; // Seven days. | ||
}; | ||
// ordered by launch order | ||
export const TOTAL_MARKETS_ARRAY: DydxMarket[] = [ | ||
DydxMarket.BTC_USD, | ||
DydxMarket.ETH_USD, | ||
DydxMarket.LINK_USD, | ||
DydxMarket.AAVE_USD, | ||
DydxMarket.UNI_USD, | ||
DydxMarket.SUSHI_USD, | ||
DydxMarket.SOL_USD, | ||
DydxMarket.YFI_USD, | ||
DydxMarket.ONEINCH_USD, | ||
]; |
@@ -29,2 +29,8 @@ import BN from 'bn.js'; | ||
ONEINCH_USD = '1INCH-USD', | ||
AVAX_USD = 'AVAX-USD', | ||
SNX_USD = 'SNX-USD', | ||
CRV_USD = 'CRV-USD', | ||
UMA_USD = 'UMA-USD', | ||
DOT_USD = 'DOT-USD', | ||
DOGE_USD = 'DOGE-USD', | ||
} | ||
@@ -43,2 +49,8 @@ | ||
ONEINCH = '1INCH', | ||
AVAX = 'AVAX', | ||
SNX = 'SNX', | ||
CRV = 'CRV', | ||
UMA = 'UMA', | ||
DOT = 'DOT', | ||
DOGE = 'DOGE', | ||
} | ||
@@ -45,0 +57,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
608542
10990