Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oasisdex/automation

Package Overview
Dependencies
Maintainers
6
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oasisdex/automation - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

1

lib/src/mapping.d.ts

@@ -5,2 +5,3 @@ import { CommandContractInfo, CommandContractType, ParamDefinition } from './types';

readonly CloseCommand: readonly ["uint256", "uint16", "uint256"];
readonly BasicBuyCommand: readonly ["uint256", "uint16", "uint256", "uint256", "uint256", "bool", "uint64"];
};

@@ -7,0 +8,0 @@ export declare function getDefinitionForCommandType(type: CommandContractType): ParamDefinition;

@@ -5,3 +5,3 @@ "use strict";

const types_1 = require("./types");
// The addresses must be in lowercase
// The addresses must be in lowercase!
exports.commandAddressMapping = {

@@ -11,2 +11,3 @@ [types_1.EthereumNetwork.GOERLI]: {

'0x31285a87fb70a62b5aaa43199e53221c197e1e3f': { type: types_1.CommandContractType.CloseCommand },
'0x7c86781A95b7E55E6C2F7297Ae6773e1dbcEAb13': { type: types_1.CommandContractType.BasicBuyCommand },
},

@@ -19,2 +20,11 @@ [types_1.EthereumNetwork.MAINNET]: {

[types_1.CommandContractType.CloseCommand]: ['uint256', 'uint16', 'uint256'],
[types_1.CommandContractType.BasicBuyCommand]: [
'uint256',
'uint16',
'uint256',
'uint256',
'uint256',
'bool',
'uint64',
],
};

@@ -41,3 +51,3 @@ function getDefinitionForCommandType(type) {

if (!(lowercaseAddress in mappingForNetwork)) {
console.log("mappingForNetwork", mappingForNetwork, lowercaseAddress);
console.log('mappingForNetwork', mappingForNetwork, lowercaseAddress);
throw new Error(`Command address ${lowercaseAddress} for network ${network} not found.`);

@@ -44,0 +54,0 @@ }

3

lib/src/types.d.ts

@@ -7,3 +7,4 @@ import { ethers } from 'ethers';

export declare enum CommandContractType {
CloseCommand = "CloseCommand"
CloseCommand = "CloseCommand",
BasicBuyCommand = "BasicBuyCommand"
}

@@ -10,0 +11,0 @@ export declare type ParamDefinition = ReadonlyArray<string | ethers.utils.ParamType>;

@@ -12,3 +12,4 @@ "use strict";

CommandContractType["CloseCommand"] = "CloseCommand";
CommandContractType["BasicBuyCommand"] = "BasicBuyCommand";
})(CommandContractType = exports.CommandContractType || (exports.CommandContractType = {}));
//# sourceMappingURL=types.js.map
{
"name": "@oasisdex/automation",
"version": "1.0.6",
"version": "1.0.7",
"description": "The set of utilities for Oasis automation",

@@ -27,3 +27,3 @@ "homepage": "https://github.com/OasisDEX/common#readme",

},
"gitHead": "30980c44e76ff27b98961e7cba0edb40c4446e4d"
"gitHead": "9f0f09745a7fdf16e41578787fa3a24a81ad713c"
}

@@ -8,3 +8,3 @@ import {

// The addresses must be in lowercase
// The addresses must be in lowercase!
export const commandAddressMapping: Record<number, Record<string, CommandContractInfo>> = {

@@ -14,2 +14,3 @@ [EthereumNetwork.GOERLI]: {

'0x31285a87fb70a62b5aaa43199e53221c197e1e3f': { type: CommandContractType.CloseCommand },
'0x7c86781A95b7E55E6C2F7297Ae6773e1dbcEAb13': { type: CommandContractType.BasicBuyCommand },
},

@@ -23,2 +24,11 @@ [EthereumNetwork.MAINNET]: {

[CommandContractType.CloseCommand]: ['uint256', 'uint16', 'uint256'],
[CommandContractType.BasicBuyCommand]: [
'uint256',
'uint16',
'uint256',
'uint256',
'uint256',
'bool',
'uint64',
],
} as const;

@@ -55,3 +65,3 @@

if (!(lowercaseAddress in mappingForNetwork)) {
console.log("mappingForNetwork", mappingForNetwork, lowercaseAddress);
console.log('mappingForNetwork', mappingForNetwork, lowercaseAddress);
throw new Error(`Command address ${lowercaseAddress} for network ${network} not found.`);

@@ -58,0 +68,0 @@ }

@@ -10,2 +10,3 @@ import { ethers } from 'ethers';

CloseCommand = 'CloseCommand',
BasicBuyCommand = 'BasicBuyCommand',
}

@@ -12,0 +13,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc