Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions frontend/config/agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const AGENT_CONFIG: {
evmHomeChainId: EvmChainIdMap.Gnosis,
middlewareHomeChainId: MiddlewareChainMap.GNOSIS,
agentIds: [14, 25],
defaultStakingProgramId: STAKING_PROGRAM_IDS.PearlBetaMechMarketplace3,
defaultStakingProgramId: STAKING_PROGRAM_IDS.OmenstratIII,
serviceApi: PredictTraderService,
displayName: 'Omenstrat',
description: 'Participates in prediction markets.',
Expand All @@ -132,7 +132,7 @@ export const AGENT_CONFIG: {
[TokenSymbolMap.pUSD]: getPolystratPusdConfig(),
},
},
defaultStakingProgramId: STAKING_PROGRAM_IDS.PolygonBeta1,
defaultStakingProgramId: STAKING_PROGRAM_IDS.PolystratI,
serviceApi: Polystrat,
displayName: 'Polystrat',
description: 'Participates in prediction markets on Polymarket.',
Expand Down Expand Up @@ -161,7 +161,7 @@ export const AGENT_CONFIG: {
[TokenSymbolMap.USDC]: getOptimusUsdcConfig(),
},
},
defaultStakingProgramId: STAKING_PROGRAM_IDS.OptimusAlpha2,
defaultStakingProgramId: STAKING_PROGRAM_IDS.OptimusI,
serviceApi: OptimismService,
displayName: 'Optimus',
description:
Expand Down Expand Up @@ -256,6 +256,7 @@ export const AGENT_CONFIG: {
[AgentMap.PettAi]: {
isAgentEnabled: true,
isAddingNewBlocked: true,
isPhasedOut: true,
requiresSetup: false,
isX402Enabled: X402_ENABLED_FLAGS[AgentMap.PettAi],
name: 'Pett.ai',
Expand Down
6 changes: 3 additions & 3 deletions frontend/constants/serviceTemplates/service/trader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ export const PREDICT_SERVICE_TEMPLATE: ServiceTemplate = {
} as const;

export const PREDICT_POLYMARKET_SERVICE_TEMPLATE: ServiceTemplate = {
hash: 'bafybeiapvnpaw3gw342263wcngsrvoldf5bf7ovrl4n3ljybhapk4qlism',
service_version: 'v0.40.0-rc4',
hash: 'bafybeif4r7ftadt5wz6k3abniud245yiazbmrivd4wr7mrqt2znudwgxpy',
service_version: 'v0.40.0-rc6',
agent_release: {
is_aea: true,
repository: {
owner: 'valory-xyz',
name: 'trader',
version: 'v0.40.0-rc4',
version: 'v0.40.0-rc6',
},
},
agentType: AgentMap.Polystrat,
Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"@tootallnate/once": "3.0.1",
"bn.js": "5.2.3",
"csstype": "3.1.3",
"dayjs": "1.11.13",
"diff": "5.2.2",
"flatted": "3.4.2",
"form-data": "4.0.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ describe('FundingRequirementStep — maintenance alert copy', () => {
});

it('keeps the "existing agents continue to run" line for a blocked-but-not-phased-out agent', () => {
// PettAi blocks new instances (isAddingNewBlocked) but is not phased out —
// Optimus blocks new instances (isAddingNewBlocked) but is not phased out —
// so existing instances still run.
render(<FundingRequirementStep agentType={AgentMap.PettAi} />);
render(<FundingRequirementStep agentType={AgentMap.Optimus} />);

expect(
screen.getByText(/cannot be created at this time/),
Expand Down
13 changes: 9 additions & 4 deletions frontend/tests/config/agents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,21 @@ describe('AVAILABLE_FOR_ADDING_AGENTS', () => {
});
});

describe('PettAi creation blocking and deprecation', () => {
it('has isAddingNewBlocked set to true', () => {
describe('PettAi phase-out', () => {
it('is marked phased out', () => {
expect(AGENT_CONFIG[AgentMap.PettAi].isPhasedOut).toBe(true);
});

it('still blocks creation of new instances', () => {
expect(AGENT_CONFIG[AgentMap.PettAi].isAddingNewBlocked).toBe(true);
});

it('has no shutdownDate (deprecation banner removed)', () => {
it('has no shutdownDate (superseded by phase-out)', () => {
expect(AGENT_CONFIG[AgentMap.PettAi].shutdownDate).toBeUndefined();
});

it('PettAi still appears in ACTIVE_AGENTS', () => {
it('stays enabled and listed so the sidebar entry and withdraw flow remain reachable', () => {
expect(AGENT_CONFIG[AgentMap.PettAi].isAgentEnabled).toBe(true);
const pettAiEntry = ACTIVE_AGENTS.find(
([agentType]) => agentType === AgentMap.PettAi,
);
Expand Down
Loading
Loading