From 6436d46429f0c1621f981afa3143896b3616c425 Mon Sep 17 00:00:00 2001 From: jiyoung Date: Tue, 7 May 2024 12:34:54 +0900 Subject: [PATCH 1/2] fix: fix event handler url --- src/constants.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index bc9f189..91bc1d8 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,11 +1,11 @@ import { appBillingConfig } from "./types/type" -export const getBlockChainAPIEndpoint = (chainId: number) =>{ +export const getBlockChainAPIEndpoint = (chainId: number) => { return chainId === 1 ? "https://mainnet-api.ainetwork.ai" : "https://testnet-api.ainetwork.ai" } -export const getBlockChainEventEndpoint = (chainId: number) =>{ - return chainId === 1 ? "https://mainnet-event.ainetwork.ai" : "https://testnet-event.ainetwork.ai" +export const getBlockChainEventEndpoint = (chainId: number) => { + return chainId === 1 ? "wss://mainnet-event.ainetwork.ai" : "wss://testnet-event.ainetwork.ai" } export const Path = { From 88150883d90dda65f0630d4124e18c052bfcc9ea Mon Sep 17 00:00:00 2001 From: yoojinko Date: Tue, 7 May 2024 03:41:19 +0000 Subject: [PATCH 2/2] Upgrade version to 1.2.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f1f866..9a6f8e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ainize-team/ainize-js", - "version": "1.1.3", + "version": "1.2.0", "main": "dist/ainize.js", "types": "dist/ainize.d.ts", "scripts": {