From e49b4e4b502d5a6f67cf18fd6df23d8e0305115f Mon Sep 17 00:00:00 2001 From: Atatakai Date: Fri, 13 Dec 2024 15:12:53 +0400 Subject: [PATCH 1/3] feat: update staking contract addresses --- frontend/config/activityCheckers.ts | 2 +- frontend/config/stakingPrograms/base.ts | 8 ++++---- frontend/config/stakingPrograms/index.ts | 2 +- frontend/constants/serviceTemplates.ts | 18 +++++++++--------- frontend/enums/StakingProgram.ts | 2 +- operate/ledger/profiles.py | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/frontend/config/activityCheckers.ts b/frontend/config/activityCheckers.ts index 374ffe23b..21d0667e2 100644 --- a/frontend/config/activityCheckers.ts +++ b/frontend/config/activityCheckers.ts @@ -33,7 +33,7 @@ export const OPTIMISM_ACTIVITY_CHECKERS: ActivityCheckers = {}; export const BASE_ACTIVITY_CHECKERS: ActivityCheckers = { [ActivityCheckerType.MemeActivityChecker]: new MulticallContract( - '0xAe2f766506F6BDF740Cc348a90139EF317Fa7Faf', + '0x026AB1c5ea14E61f67d245685D9561c0c2Cb39Ba', MEME_ACTIVITY_CHECKER_ABI, ), }; diff --git a/frontend/config/stakingPrograms/base.ts b/frontend/config/stakingPrograms/base.ts index 5bdf7c7a9..3373c91ed 100644 --- a/frontend/config/stakingPrograms/base.ts +++ b/frontend/config/stakingPrograms/base.ts @@ -12,12 +12,12 @@ import { StakingProgramMap } from '.'; export const BASE_STAKING_PROGRAMS_CONTRACT_ADDRESSES: Record = { - [StakingProgramId.MemeBaseAlpha]: - '0x06702a05312091013fdb50c8b60b98ca30762931', + [StakingProgramId.MemeBaseAlpha2]: + '0xc653622FD75026a020995a1d8c8651316cBBc4dA', }; export const BASE_STAKING_PROGRAMS: StakingProgramMap = { - [StakingProgramId.MemeBaseAlpha]: { + [StakingProgramId.MemeBaseAlpha2]: { chainId: EvmChainId.Base, name: 'MemeBase Alpha', agentsSupported: [AgentType.Memeooorr], @@ -29,7 +29,7 @@ export const BASE_STAKING_PROGRAMS: StakingProgramMap = { ActivityCheckerType.MemeActivityChecker ], contract: new MulticallContract( - BASE_STAKING_PROGRAMS_CONTRACT_ADDRESSES[StakingProgramId.MemeBaseAlpha], + BASE_STAKING_PROGRAMS_CONTRACT_ADDRESSES[StakingProgramId.MemeBaseAlpha2], STAKING_TOKEN_PROXY_ABI, ), }, diff --git a/frontend/config/stakingPrograms/index.ts b/frontend/config/stakingPrograms/index.ts index 9af54d9db..2b5d1de77 100644 --- a/frontend/config/stakingPrograms/index.ts +++ b/frontend/config/stakingPrograms/index.ts @@ -61,5 +61,5 @@ export const DEFAULT_STAKING_PROGRAM_IDS: { } = { [EvmChainId.Gnosis]: StakingProgramId.PearlBeta, // [EvmChainId.Optimism]: StakingProgramId.OptimusAlpha, - [EvmChainId.Base]: StakingProgramId.MemeBaseAlpha, + [EvmChainId.Base]: StakingProgramId.MemeBaseAlpha2, }; diff --git a/frontend/constants/serviceTemplates.ts b/frontend/constants/serviceTemplates.ts index 5c9848edd..ba68b4f04 100644 --- a/frontend/constants/serviceTemplates.ts +++ b/frontend/constants/serviceTemplates.ts @@ -166,7 +166,7 @@ export const SERVICE_TEMPLATES: ServiceTemplate[] = [ home_chain: MiddlewareChain.BASE, configurations: { [MiddlewareChain.BASE]: { - staking_program_id: StakingProgramId.MemeBaseAlpha, // default, may be overwritten + staking_program_id: StakingProgramId.MemeBaseAlpha2, // default, may be overwritten nft: 'bafybeiaakdeconw7j5z76fgghfdjmsr6tzejotxcwnvmp3nroaw3glgyve', rpc: 'http://localhost:8545', // overwritten agent_id: 43, @@ -182,16 +182,16 @@ export const SERVICE_TEMPLATES: ServiceTemplate[] = [ }, env_variables: { BASE_LEDGER_RPC: { - name: "Base ledger RPC", - description: "", - value: "", - provision_type: EnvProvisionType.COMPUTED + name: 'Base ledger RPC', + description: '', + value: '', + provision_type: EnvProvisionType.COMPUTED, }, CELO_LEDGER_RPC: { - name: "Base ledger RPC", - description: "", - value: "", - provision_type: EnvProvisionType.COMPUTED + name: 'Base ledger RPC', + description: '', + value: '', + provision_type: EnvProvisionType.COMPUTED, }, TWIKIT_USERNAME: { name: 'Twitter username', diff --git a/frontend/enums/StakingProgram.ts b/frontend/enums/StakingProgram.ts index 6fc75c1d7..04cf4fe51 100644 --- a/frontend/enums/StakingProgram.ts +++ b/frontend/enums/StakingProgram.ts @@ -7,5 +7,5 @@ export enum StakingProgramId { PearlBeta5 = 'pearl_beta_5', PearlBetaMechMarketplace = 'pearl_beta_mech_marketplace', OptimusAlpha = 'optimus_alpha', - MemeBaseAlpha = 'meme_base_alpha', + MemeBaseAlpha2 = 'meme_base_alpha_2', } diff --git a/operate/ledger/profiles.py b/operate/ledger/profiles.py index dcd4480c1..52a7e3b4a 100644 --- a/operate/ledger/profiles.py +++ b/operate/ledger/profiles.py @@ -91,7 +91,7 @@ "optimus_alpha": "0x88996bbdE7f982D93214881756840cE2c77C4992", }, Chain.ETHEREUM: {}, - Chain.BASE: {"meme_base_alpha": "0x06702A05312091013FdB50C8b60B98ca30762931"}, + Chain.BASE: {"meme_base_alpha_2": "0xc653622FD75026a020995a1d8c8651316cBBc4dA"}, Chain.CELO: { "meme_celo_alpha": "0xf39cd0eE4C502Df7D26F28cFAdd579724A3CFCe8", }, From 1db2e47ff12439b20df98a227235134fb507172b Mon Sep 17 00:00:00 2001 From: Atatakai Date: Fri, 13 Dec 2024 15:53:38 +0400 Subject: [PATCH 2/3] feat: update celo staking address --- operate/ledger/profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operate/ledger/profiles.py b/operate/ledger/profiles.py index 52a7e3b4a..f0d5047fe 100644 --- a/operate/ledger/profiles.py +++ b/operate/ledger/profiles.py @@ -93,7 +93,7 @@ Chain.ETHEREUM: {}, Chain.BASE: {"meme_base_alpha_2": "0xc653622FD75026a020995a1d8c8651316cBBc4dA"}, Chain.CELO: { - "meme_celo_alpha": "0xf39cd0eE4C502Df7D26F28cFAdd579724A3CFCe8", + "meme_celo_alpha_2": "0x95D12D193d466237Bc1E92a1a7756e4264f574AB", }, Chain.MODE: { "optimus_alpha": "0x5fc25f50E96857373C64dC0eDb1AbCBEd4587e91", From c0816bd405e145b348edca45dac934274c35566f Mon Sep 17 00:00:00 2001 From: Atatakai Date: Fri, 13 Dec 2024 17:34:12 +0400 Subject: [PATCH 3/3] feat: update service template --- templates/memeooorr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/memeooorr.yaml b/templates/memeooorr.yaml index e69b9ddba..84029d463 100644 --- a/templates/memeooorr.yaml +++ b/templates/memeooorr.yaml @@ -6,7 +6,7 @@ service_version: v0.0.1 home_chain: "base" configurations: base: - staking_program_id: meme_base_alpha + staking_program_id: meme_base_alpha_2 nft: bafybeiaakdeconw7j5z76fgghfdjmsr6tzejotxcwnvmp3nroaw3glgyve rpc: http://localhost:8545 # User provided threshold: 1 # TODO: Move to service component