From db2235a1452a830ce6b72cfe822f9c14e0732068 Mon Sep 17 00:00:00 2001 From: crisis Date: Mon, 7 Oct 2024 11:17:15 -0300 Subject: [PATCH] chore: update contract meme address --- packages/config/src/arbitrum-sepolia.json | 4 +- subgraphs/memecoins/abis/MemePresale.json | 58 +++++++++++++++-------- subgraphs/memecoins/template.yaml | 6 +-- 3 files changed, 44 insertions(+), 24 deletions(-) diff --git a/packages/config/src/arbitrum-sepolia.json b/packages/config/src/arbitrum-sepolia.json index 0f15b5d..ebca3d6 100644 --- a/packages/config/src/arbitrum-sepolia.json +++ b/packages/config/src/arbitrum-sepolia.json @@ -67,8 +67,8 @@ "transmolgrifier_address": "0x4489eee4b7218a74d516396c2f3ee6eba54f0773", "transmolgrifier_start_block": 6249003, "smol_renderer_address": "0x79973af48c424de5f199a7c0369c5e9cdeb493fc", - "meme_presale_address": "0x6986e471c308230D99ed0c1E4A8C9e5d80b71E9F", - "meme_presale_start_block": 85881083, + "meme_presale_address": "0x324d1670765cb8799ecd5271a8d595a64ed92fbf", + "meme_presale_start_block": 86641150, "magicswapv1_start_block": 654981, "magicswapv1_uniswapv2_factory_address": "0x9b58fc8c7B224Ae8479DA7E6eD37CA4Ac58099a9", diff --git a/subgraphs/memecoins/abis/MemePresale.json b/subgraphs/memecoins/abis/MemePresale.json index 4ff78f4..7912625 100644 --- a/subgraphs/memecoins/abis/MemePresale.json +++ b/subgraphs/memecoins/abis/MemePresale.json @@ -45,6 +45,11 @@ "name": "presalePrice", "type": "uint256" }, + { + "internalType": "uint256", + "name": "returnForOne", + "type": "uint256" + }, { "internalType": "uint256", "name": "magicRaised", @@ -111,6 +116,11 @@ "name": "presalePrice", "type": "uint256" }, + { + "internalType": "uint256", + "name": "returnForOne", + "type": "uint256" + }, { "internalType": "uint256", "name": "magicRaised", @@ -195,6 +205,11 @@ "name": "presalePrice", "type": "uint256" }, + { + "internalType": "uint256", + "name": "returnForOne", + "type": "uint256" + }, { "internalType": "uint256", "name": "magicRaised", @@ -348,6 +363,25 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "address", + "name": "_altcoin", + "type": "address" + } + ], + "name": "getAltPairCoinPriceUSD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "getMagicPriceUSD", @@ -390,25 +424,6 @@ "stateMutability": "view", "type": "function" }, - { - "inputs": [ - { - "internalType": "address", - "name": "_shitcoin", - "type": "address" - } - ], - "name": "getShitcoinPriceUSD", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, { "inputs": [], "name": "lastdeploy", @@ -533,6 +548,11 @@ "name": "presalePrice", "type": "uint256" }, + { + "internalType": "uint256", + "name": "returnForOne", + "type": "uint256" + }, { "internalType": "uint256", "name": "magicRaised", diff --git a/subgraphs/memecoins/template.yaml b/subgraphs/memecoins/template.yaml index bd7310d..87feef2 100644 --- a/subgraphs/memecoins/template.yaml +++ b/subgraphs/memecoins/template.yaml @@ -19,10 +19,10 @@ dataSources: - name: MemePresale file: ./abis/MemePresale.json eventHandlers: - - event: MemeMade(string,string,string,uint256,(uint256,uint256,uint256,uint256,bool,address,address,address,bool)) + - event: MemeMade(string,string,string,uint256,(uint256,uint256,uint256,uint256,uint256,bool,address,address,address,bool)) handler: handleMemeMade - - event: BuySell((uint256,uint256,uint256,uint256,bool,address,address,address,bool)) + - event: BuySell((uint256,uint256,uint256,uint256,uint256,bool,address,address,address,bool)) handler: handleBuySell - - event: Graduation(indexed address,(uint256,uint256,uint256,uint256,bool,address,address,address,bool)) + - event: Graduation(indexed address,(uint256,uint256,uint256,uint256,uint256,bool,address,address,address,bool)) handler: handleGraduation file: ./src/mapping.ts