remove publickeys from table

This commit is contained in:
Tyler Shipe 2021-07-26 18:46:23 -04:00
parent b69d924c6e
commit b7bd36db74
5 changed files with 0 additions and 10 deletions

View File

@ -7,9 +7,6 @@ module.exports = {
name: { name: {
type: Sequelize.STRING, type: Sequelize.STRING,
}, },
publicKey: {
type: Sequelize.STRING,
},
mangoGroup: { mangoGroup: {
type: Sequelize.STRING, type: Sequelize.STRING,
}, },

View File

@ -7,9 +7,6 @@ module.exports = {
name: { name: {
type: Sequelize.STRING, type: Sequelize.STRING,
}, },
publicKey: {
type: Sequelize.STRING,
},
mangoGroup: { mangoGroup: {
type: Sequelize.STRING, type: Sequelize.STRING,
}, },

View File

@ -34,7 +34,6 @@ const PerpMarketStats = db.sequelize.define(
}, },
}, },
mangoGroup: DataTypes.STRING, mangoGroup: DataTypes.STRING,
publicKey: DataTypes.STRING,
time: DataTypes.DATE, time: DataTypes.DATE,
}, },
{ {

View File

@ -41,7 +41,6 @@ const PerpMarketStats = db.sequelize.define(
}, },
}, },
mangoGroup: DataTypes.STRING, mangoGroup: DataTypes.STRING,
publicKey: DataTypes.STRING,
utilization: DataTypes.DECIMAL, utilization: DataTypes.DECIMAL,
time: DataTypes.DATE, time: DataTypes.DATE,
}, },

View File

@ -65,7 +65,6 @@ async function main() {
return { return {
time: new Date(), time: new Date(),
name: groupConfig.spotMarkets[index].name, name: groupConfig.spotMarkets[index].name,
publicKey: spotMarket.publicKey.toString(),
mangoGroup: groupConfig.name, mangoGroup: groupConfig.name,
totalDeposits: totalDeposits.toNumber(), totalDeposits: totalDeposits.toNumber(),
totalBorrows: totalBorrows.toNumber(), totalBorrows: totalBorrows.toNumber(),
@ -89,7 +88,6 @@ async function main() {
return { return {
time: new Date(), time: new Date(),
name: groupConfig.perpMarkets[index].name, name: groupConfig.perpMarkets[index].name,
publicKey: perpMarket.publicKey.toString(),
mangoGroup: groupConfig.name, mangoGroup: groupConfig.name,
longFunding: perpMarket.longFunding.toNumber(), longFunding: perpMarket.longFunding.toNumber(),
shortFunding: perpMarket.shortFunding.toNumber(), shortFunding: perpMarket.shortFunding.toNumber(),