Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mcap target + launchpad liquidity to Token model #9877

Merged
merged 11 commits into from
Nov 13, 2024
3 changes: 3 additions & 0 deletions libs/model/src/chainEventSignatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ export const launchpadTokenLaunchedEventSignature =

export const launchpadTradeEventSignature =
'0x9adcf0ad0cda63c4d50f26a48925cf6405df27d422a39c456b5f03f661c82982';

export const launchpadTokenRegisteredEventSignature =
'0xc2fe88a1a3c1957424571593960b97f158a519d0aa4cef9e13a247c64f1f4c35';
2 changes: 2 additions & 0 deletions libs/model/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export * from './policies';
export * as tester from './tester';
export type { E2E_TestEntities } from './tester';

export * as middleware from './middleware';

// Internals - Should not be exported once we finish the migrations to models
export * from './chainEventSignatures';
export * from './config';
Expand Down
7 changes: 6 additions & 1 deletion libs/model/src/models/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ export default (
name: { type: Sequelize.STRING, allowNull: false },
symbol: { type: Sequelize.STRING, allowNull: false },
initial_supply: { type: Sequelize.DECIMAL(78, 0), allowNull: false },
is_locked: {
liquidity_transferred: {
type: Sequelize.BOOLEAN,
allowNull: false,
defaultValue: false,
},
launchpad_liquidity: { type: Sequelize.DECIMAL(78, 0), allowNull: false },
eth_market_cap_target: {
type: Sequelize.FLOAT,
allowNull: false,
},
created_at: { type: Sequelize.DATE, allowNull: false },
updated_at: { type: Sequelize.DATE, allowNull: false },

Expand Down
2 changes: 1 addition & 1 deletion libs/model/src/services/commonProtocol/abi/erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ export const erc20Abi = [
name: 'Transfer',
type: 'event',
},
];
] as const;
Loading
Loading