@oasisdex/automation
Advanced tools
Comparing version 1.5.8 to 1.5.9-alpha0
@@ -15,4 +15,6 @@ import { CommandContractInfo, CommandContractType, ParamDefinition } from './types'; | ||
readonly MakerAutoTakeProfitCommandV2: readonly ["uint256", "uint16", "uint256", "uint32"]; | ||
readonly MakerBasicBuyCommandV2: readonly ["uint256", "uint16", "uint256", "uint256", "uint256", "uint256", "bool", "uint64", "uint32"]; | ||
readonly MakerBasicSellCommandV2: readonly ["uint256", "uint16", "uint256", "uint256", "uint256", "uint256", "bool", "uint64", "uint32"]; | ||
readonly MakerBasicBuyCommandV2: readonly ["uint256", "uint16", "uint256", "uint256", "uint256", "uint256", "uint64", "uint32"]; | ||
readonly MakerBasicSellCommandV2: readonly ["uint256", "uint16", "uint256", "uint256", "uint256", "uint256", "uint64", "uint32"]; | ||
readonly AaveBasicBuyCommandV2: readonly ["address", "uint16", "uint256", "address", "address", "uint256", "uint256", "uint256", "uint64", "uint32"]; | ||
readonly AaveBasicSellCommandV2: readonly ["address", "uint16", "uint256", "address", "address", "uint256", "uint256", "uint256", "uint64", "uint32"]; | ||
}; | ||
@@ -19,0 +21,0 @@ export declare function getCommandAddresses(network: number): Record<CommandContractType, string[]>; |
@@ -96,2 +96,26 @@ "use strict"; | ||
], | ||
[types_1.CommandContractType.AaveBasicSellCommandV2]: [ | ||
'positionAddress', | ||
'triggerType', | ||
'maxCoverage', | ||
'debtToken', | ||
'collateralToken', | ||
'execCollRatio', | ||
'targetCollRatio', | ||
'minSellPrice', | ||
'deviation', | ||
'maxBaseFeeInGwei', | ||
], | ||
[types_1.CommandContractType.AaveBasicBuyCommandV2]: [ | ||
'positionAddress', | ||
'triggerType', | ||
'maxCoverage', | ||
'debtToken', | ||
'collateralToken', | ||
'execCollRatio', | ||
'targetCollRatio', | ||
'maxBuyPrice', | ||
'deviation', | ||
'maxBaseFeeInGwei', | ||
], | ||
}; | ||
@@ -226,5 +250,4 @@ exports.commandAddressMapping = Object.fromEntries(Object.entries({ | ||
'uint256', | ||
'bool', | ||
'uint64', | ||
'uint32', | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
@@ -238,6 +261,29 @@ [types_1.CommandContractType.MakerBasicSellCommandV2]: [ | ||
'uint256', | ||
'bool', | ||
'uint64', | ||
'uint32', | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
[types_1.CommandContractType.AaveBasicBuyCommandV2]: [ | ||
'address', | ||
'uint16', | ||
'uint256', | ||
'address', | ||
'address', | ||
'uint256', | ||
'uint256', | ||
'uint256', | ||
'uint64', | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
[types_1.CommandContractType.AaveBasicSellCommandV2]: [ | ||
'address', | ||
'uint16', | ||
'uint256', | ||
'address', | ||
'address', | ||
'uint256', | ||
'uint256', | ||
'uint256', | ||
'uint64', | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
}; | ||
@@ -244,0 +290,0 @@ function getCommandAddresses(network) { |
@@ -19,3 +19,5 @@ import { ethers } from 'ethers'; | ||
MakerBasicSellCommandV2 = "MakerBasicSellCommandV2", | ||
SparkStopLossCommandV2 = "SparkStopLossCommandV2" | ||
SparkStopLossCommandV2 = "SparkStopLossCommandV2", | ||
AaveBasicBuyCommandV2 = "AaveBasicBuyCommandV2", | ||
AaveBasicSellCommandV2 = "AaveBasicSellCommandV2" | ||
} | ||
@@ -41,3 +43,5 @@ export declare enum TriggerType { | ||
SparkStopLossToCollateralV2 = 117, | ||
SparkStopLossToDebtV2 = 118 | ||
SparkStopLossToDebtV2 = 118, | ||
AaveBasicBuyV2 = 119, | ||
AaceBasicSellV2 = 120 | ||
} | ||
@@ -44,0 +48,0 @@ export declare enum TriggerGroupType { |
@@ -24,2 +24,4 @@ "use strict"; | ||
CommandContractType["SparkStopLossCommandV2"] = "SparkStopLossCommandV2"; | ||
CommandContractType["AaveBasicBuyCommandV2"] = "AaveBasicBuyCommandV2"; | ||
CommandContractType["AaveBasicSellCommandV2"] = "AaveBasicSellCommandV2"; | ||
})(CommandContractType = exports.CommandContractType || (exports.CommandContractType = {})); | ||
@@ -43,14 +45,8 @@ var TriggerType; | ||
TriggerType[TriggerType["MakerAutoTakeProfitToDaiV2"] = 106] = "MakerAutoTakeProfitToDaiV2"; | ||
// AaveStopLossToCollateralV2 = 107, | ||
// AaveStopLossToDebtV2 = 108, | ||
// AaveStopLossToCollateralV2 = 109, | ||
// AaveStopLossToDebtV2 = 110, | ||
TriggerType[TriggerType["AaveStopLossToCollateralV2"] = 111] = "AaveStopLossToCollateralV2"; | ||
TriggerType[TriggerType["AaveStopLossToDebtV2"] = 112] = "AaveStopLossToDebtV2"; | ||
// SparkStopLossToCollateralV2 = 113, | ||
// SparkStopLossToDebtV2 = 114, | ||
// SparkStopLossToCollateralV2 = 115, | ||
// SparkStopLossToDebtV2 = 116, | ||
TriggerType[TriggerType["SparkStopLossToCollateralV2"] = 117] = "SparkStopLossToCollateralV2"; | ||
TriggerType[TriggerType["SparkStopLossToDebtV2"] = 118] = "SparkStopLossToDebtV2"; | ||
TriggerType[TriggerType["AaveBasicBuyV2"] = 119] = "AaveBasicBuyV2"; | ||
TriggerType[TriggerType["AaceBasicSellV2"] = 120] = "AaceBasicSellV2"; | ||
})(TriggerType = exports.TriggerType || (exports.TriggerType = {})); | ||
@@ -57,0 +53,0 @@ var TriggerGroupType; |
{ | ||
"name": "@oasisdex/automation", | ||
"version": "1.5.8", | ||
"version": "1.5.9-alpha0", | ||
"description": "The set of utilities for Oasis automation", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/OasisDEX/common#readme", |
@@ -99,2 +99,26 @@ import { | ||
], | ||
[CommandContractType.AaveBasicSellCommandV2]: [ | ||
'positionAddress', | ||
'triggerType', | ||
'maxCoverage', | ||
'debtToken', | ||
'collateralToken', | ||
'execCollRatio', | ||
'targetCollRatio', | ||
'minSellPrice', | ||
'deviation', | ||
'maxBaseFeeInGwei', | ||
], | ||
[CommandContractType.AaveBasicBuyCommandV2]: [ | ||
'positionAddress', | ||
'triggerType', | ||
'maxCoverage', | ||
'debtToken', | ||
'collateralToken', | ||
'execCollRatio', | ||
'targetCollRatio', | ||
'maxBuyPrice', | ||
'deviation', | ||
'maxBaseFeeInGwei', | ||
], | ||
}; | ||
@@ -232,23 +256,45 @@ | ||
[CommandContractType.MakerBasicBuyCommandV2]: [ | ||
'uint256', | ||
'uint16', | ||
'uint256', | ||
'uint256', | ||
'uint256', | ||
'uint256', | ||
'bool', | ||
'uint64', | ||
'uint32', | ||
'uint256', //cdpId | ||
'uint16', // triggerType | ||
'uint256', // maxCoverage | ||
'uint256', // execCollRatio | ||
'uint256', // targetCollRatio | ||
'uint256', // maxBuyPrice | ||
'uint64', // deviation | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
[CommandContractType.MakerBasicSellCommandV2]: [ | ||
'uint256', | ||
'uint16', | ||
'uint256', | ||
'uint256', | ||
'uint256', | ||
'uint256', | ||
'bool', | ||
'uint64', | ||
'uint32', | ||
'uint256', //cdpId | ||
'uint16', // triggerType | ||
'uint256', // maxCoverage | ||
'uint256', // execCollRatio | ||
'uint256', // targetCollRatio | ||
'uint256', // minSellPrice | ||
'uint64', // deviation | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
[CommandContractType.AaveBasicBuyCommandV2]: [ | ||
'address', //positionAddress | ||
'uint16', // triggerType | ||
'uint256', // maxCoverage | ||
'address', // debtToken | ||
'address', // collateralToken | ||
'uint256', // execCollRatio | ||
'uint256', // targetCollRatio | ||
'uint256', // maxBuyPrice | ||
'uint64', // deviation | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
[CommandContractType.AaveBasicSellCommandV2]: [ | ||
'address', //positionAddress | ||
'uint16', // triggerType | ||
'uint256', // maxCoverage | ||
'address', // debtToken | ||
'address', // collateralToken | ||
'uint256', // execCollRatio | ||
'uint256', // targetCollRatio | ||
'uint256', // minSellPrice | ||
'uint64', // deviation | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
} as const; | ||
@@ -255,0 +301,0 @@ |
@@ -22,2 +22,4 @@ import { ethers } from 'ethers'; | ||
SparkStopLossCommandV2 = 'SparkStopLossCommandV2', | ||
AaveBasicBuyCommandV2 = 'AaveBasicBuyCommandV2', | ||
AaveBasicSellCommandV2 = 'AaveBasicSellCommandV2', | ||
} | ||
@@ -41,14 +43,8 @@ | ||
MakerAutoTakeProfitToDaiV2 = 106, | ||
// AaveStopLossToCollateralV2 = 107, | ||
// AaveStopLossToDebtV2 = 108, | ||
// AaveStopLossToCollateralV2 = 109, | ||
// AaveStopLossToDebtV2 = 110, | ||
AaveStopLossToCollateralV2 = 111, | ||
AaveStopLossToDebtV2 = 112, | ||
// SparkStopLossToCollateralV2 = 113, | ||
// SparkStopLossToDebtV2 = 114, | ||
// SparkStopLossToCollateralV2 = 115, | ||
// SparkStopLossToDebtV2 = 116, | ||
SparkStopLossToCollateralV2 = 117, | ||
SparkStopLossToDebtV2 = 118, | ||
AaveBasicBuyV2 = 119, | ||
AaceBasicSellV2 = 120, | ||
} | ||
@@ -55,0 +51,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
111157
1371
1