From ad501c0bb23ac2ed03b5cf3931f9e22c14a63c99 Mon Sep 17 00:00:00 2001 From: Darwin Date: Tue, 1 Aug 2023 12:24:30 +0300 Subject: [PATCH 1/3] chore: update to MEM ANS address --- src/utils/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/constants.js b/src/utils/constants.js index 5e9c1e4..31a1282 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -1 +1 @@ -export const ANS_CONTRACT_ADDRESS = `EcSNZ9aaZkK7OngLqunLvDPp0CNc2JBVqwBRrFewZnU`; +export const ANS_CONTRACT_ADDRESS = `rExhMDVqLfSTdSCwG95_VOe2a3MuKGA0ukGPO0ra9GQ`; From fdb30cf5a07a246b845d5b8c03f4be60c521f8a6 Mon Sep 17 00:00:00 2001 From: Darwin Date: Tue, 1 Aug 2023 12:25:31 +0300 Subject: [PATCH 2/3] chore: update to MEM readendpoint --- src/utils/readContract.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/readContract.js b/src/utils/readContract.js index a8b996e..6da3fc9 100644 --- a/src/utils/readContract.js +++ b/src/utils/readContract.js @@ -4,7 +4,7 @@ import { ANS_CONTRACT_ADDRESS } from "./constants.js"; export async function readContract() { try { const state = ( - await axios.get(`https://api.exm.dev/read/${ANS_CONTRACT_ADDRESS}`) + await axios.get(`https://api.mem.tech/api/state/${ANS_CONTRACT_ADDRESS}`) )?.data; return state?.balances; } catch (error) { From 427c645c5e636f02da24a32a39e2c535d76e5066 Mon Sep 17 00:00:00 2001 From: Darwin Date: Tue, 1 Aug 2023 12:26:04 +0300 Subject: [PATCH 3/3] feat: v0.0.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b32f586..8b49fba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ans-resolver", - "version": "0.0.4", + "version": "0.0.5", "description": "HTTP resolver for ANS domains", "main": "./src/api.js", "type": "module",