Setup MM for Heroku deployments (#358)
* Setup mm for heroku * Update params * Update Procfile * Fix runtime dependencies * Run linter
This commit is contained in:
parent
7a8f31c611
commit
89c024e9df
14
package.json
14
package.json
|
@ -37,18 +37,13 @@
|
||||||
"@types/bs58": "^4.0.1",
|
"@types/bs58": "^4.0.1",
|
||||||
"@types/chai": "^4.3.0",
|
"@types/chai": "^4.3.0",
|
||||||
"@types/mocha": "^9.1.0",
|
"@types/mocha": "^9.1.0",
|
||||||
"@types/node": "^14.14.37",
|
"@types/node": "^18.11.18",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.32.0",
|
"@typescript-eslint/eslint-plugin": "^5.32.0",
|
||||||
"@typescript-eslint/parser": "^5.32.0",
|
"@typescript-eslint/parser": "^5.32.0",
|
||||||
"binance-api-node": "^0.12.0",
|
|
||||||
"chai": "^4.3.4",
|
"chai": "^4.3.4",
|
||||||
"cross-fetch": "^3.1.5",
|
|
||||||
"dotenv": "^16.0.3",
|
|
||||||
"eslint": "^7.28.0",
|
"eslint": "^7.28.0",
|
||||||
"eslint-config-prettier": "^7.2.0",
|
"eslint-config-prettier": "^7.2.0",
|
||||||
"ftx-api": "^1.1.13",
|
|
||||||
"mocha": "^9.1.3",
|
"mocha": "^9.1.3",
|
||||||
"node-kraken-api": "^2.2.2",
|
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
"ts-mocha": "^10.0.0",
|
"ts-mocha": "^10.0.0",
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "^9.1.1",
|
||||||
|
@ -70,7 +65,12 @@
|
||||||
"@solana/web3.js": "^1.63.1",
|
"@solana/web3.js": "^1.63.1",
|
||||||
"@switchboard-xyz/sbv2-lite": "^0.1.6",
|
"@switchboard-xyz/sbv2-lite": "^0.1.6",
|
||||||
"big.js": "^6.1.1",
|
"big.js": "^6.1.1",
|
||||||
"bs58": "^5.0.0"
|
"bs58": "^5.0.0",
|
||||||
|
"binance-api-node": "^0.12.0",
|
||||||
|
"node-kraken-api": "^2.2.2",
|
||||||
|
"ftx-api": "^1.1.13",
|
||||||
|
"cross-fetch": "^3.1.5",
|
||||||
|
"dotenv": "^16.0.3"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"@project-serum/anchor/@solana/web3.js": "1.63.1"
|
"@project-serum/anchor/@solana/web3.js": "1.63.1"
|
||||||
|
|
|
@ -28,6 +28,7 @@ import {
|
||||||
makeInitSequenceEnforcerAccountIx,
|
makeInitSequenceEnforcerAccountIx,
|
||||||
seqEnforcerProgramIds,
|
seqEnforcerProgramIds,
|
||||||
} from './sequence-enforcer-util';
|
} from './sequence-enforcer-util';
|
||||||
|
import * as defaultParams from './params/default.json';
|
||||||
|
|
||||||
// Future
|
// Future
|
||||||
// * use async nodejs logging
|
// * use async nodejs logging
|
||||||
|
@ -229,7 +230,11 @@ async function fullMarketMaker() {
|
||||||
const options = AnchorProvider.defaultOptions();
|
const options = AnchorProvider.defaultOptions();
|
||||||
const connection = new Connection(CLUSTER_URL!, options);
|
const connection = new Connection(CLUSTER_URL!, options);
|
||||||
const user = Keypair.fromSecretKey(
|
const user = Keypair.fromSecretKey(
|
||||||
Buffer.from(JSON.parse(fs.readFileSync(USER_KEYPAIR!, 'utf-8'))),
|
Buffer.from(
|
||||||
|
JSON.parse(
|
||||||
|
process.env.KEYPAIR || fs.readFileSync(USER_KEYPAIR!, 'utf-8'),
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
const userWallet = new Wallet(user);
|
const userWallet = new Wallet(user);
|
||||||
const userProvider = new AnchorProvider(connection, userWallet, options);
|
const userProvider = new AnchorProvider(connection, userWallet, options);
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"assets": {
|
"assets": {
|
||||||
"BTC": {
|
"BTC": {
|
||||||
"perp": {
|
"perp": {
|
||||||
"sizePerc": 0.05,
|
"sizePerc": 0.75,
|
||||||
"leanCoeff": 0.00025,
|
"leanCoeff": 0.00025,
|
||||||
"bias": 0.0,
|
"bias": 0.0,
|
||||||
"requoteThresh": 0.0002,
|
"requoteThresh": 0.0002,
|
||||||
|
@ -13,17 +13,6 @@
|
||||||
"spammerCharge": 2,
|
"spammerCharge": 2,
|
||||||
"krakenCode": "XXBTZUSD"
|
"krakenCode": "XXBTZUSD"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"MNGO": {
|
|
||||||
"perp": {
|
|
||||||
"sizePerc": 0.05,
|
|
||||||
"leanCoeff": 0.00025,
|
|
||||||
"bias": 0.0,
|
|
||||||
"requoteThresh": 0.0002,
|
|
||||||
"takeSpammers": true,
|
|
||||||
"spammerCharge": 2,
|
|
||||||
"krakenCode": "MNGOUSD"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2019"
|
"es2019",
|
||||||
|
"dom"
|
||||||
],
|
],
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
|
|
|
@ -675,10 +675,10 @@
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240"
|
||||||
integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==
|
integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==
|
||||||
|
|
||||||
"@types/node@^14.14.37":
|
"@types/node@^18.11.18":
|
||||||
version "14.18.12"
|
version "18.11.18"
|
||||||
resolved "https://registry.npmjs.org/@types/node/-/node-14.18.12.tgz"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.18.tgz#8dfb97f0da23c2293e554c5a50d61ef134d7697f"
|
||||||
integrity sha512-q4jlIR71hUpWTnGhXWcakgkZeHa3CCjcQcnuzU8M891BAWA2jHiziiWEPEkdS5pFsz7H9HJiy8BrK7tBRNrY7A==
|
integrity sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==
|
||||||
|
|
||||||
"@types/promise-retry@^1.1.3":
|
"@types/promise-retry@^1.1.3":
|
||||||
version "1.1.3"
|
version "1.1.3"
|
||||||
|
|
Loading…
Reference in New Issue