From ffb1089c103d4001d1c49e396a5eb28069e79e44 Mon Sep 17 00:00:00 2001 From: itsayushi Date: Wed, 27 Dec 2023 13:13:52 +0530 Subject: [PATCH 1/3] fix: border-radius --- dist/widgetManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/widgetManager.js b/dist/widgetManager.js index f3dc496..5350628 100644 --- a/dist/widgetManager.js +++ b/dist/widgetManager.js @@ -101,6 +101,7 @@ class WidgetManager { this.iframe.style.right = "10px"; this.iframe.style.top = "10px"; this.iframe.style.position = "absolute"; + this.iframe.style.borderRadius = "20px"; document.body.appendChild(this.iframe); try { const connection = Penpal.connectToChild({ From 6838b223e9c29fbd99bcae78be9dfc9bd1526f1b Mon Sep 17 00:00:00 2001 From: itsayushi Date: Wed, 27 Dec 2023 13:14:13 +0530 Subject: [PATCH 2/3] UI2 --- dist/networks.js | 30 +++++++++++++++--------------- src/networks.ts | 30 +++++++++++++++--------------- src/widgetManager.ts | 2 +- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/dist/networks.js b/dist/networks.js index 71186f1..1362a38 100644 --- a/dist/networks.js +++ b/dist/networks.js @@ -12,35 +12,35 @@ function networkAdapter(network) { exports.networkAdapter = networkAdapter; const networks = { mainnet: { - nodeUrl: "https://mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "1", }, goerlitestnet: { - nodeUrl: "https://goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "420", }, polygonmainnet: { - nodeUrl: "https://polygon-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://polygon-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "137", }, mumbaitestnet: { - nodeUrl: "https://polygon-mumbai.infura.io/v3/814228beb1ff4d5991988329e57c349c", + nodeUrl: "https://polygon-mumbai.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "80001", }, optimism: { - nodeUrl: "https://polygon-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://polygon-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "10", }, optimismtestnet: { - nodeUrl: "https://optimism-goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://optimism-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "420", }, arbitrum: { - nodeUrl: "https://arbitrum-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://arbitrum-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "42161", }, arbitrumtestnet: { - nodeUrl: "https://arbitrum-goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://arbitrum-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "421613", }, velas: { @@ -68,15 +68,15 @@ const networks = { chainId: "97", }, "1": { - nodeUrl: "https://mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "1", }, "5": { - nodeUrl: "https://goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "5", }, "137": { - nodeUrl: "https://polygon-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://polygon-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "137", }, "80001": { @@ -84,19 +84,19 @@ const networks = { chainId: "80001", }, "10": { - nodeUrl: "https://optimism-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://optimism-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "10", }, "420": { - nodeUrl: "https://optimism-goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://optimism-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "420", }, "42161": { - nodeUrl: "https://arbitrum-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://arbitrum-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "42161", }, "421613": { - nodeUrl: "https://arbitrum-goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://arbitrum-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "421613", }, "106": { diff --git a/src/networks.ts b/src/networks.ts index e788ce5..06ce0f0 100644 --- a/src/networks.ts +++ b/src/networks.ts @@ -12,41 +12,41 @@ export function networkAdapter(network: string | INetwork) { const networks: { [key: string]: INetwork } = { mainnet: { - nodeUrl: "https://mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "1", }, goerlitestnet: { - nodeUrl: "https://goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "420", }, polygonmainnet: { nodeUrl: - "https://polygon-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + "https://polygon-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "137", }, mumbaitestnet: { nodeUrl: - "https://polygon-mumbai.infura.io/v3/814228beb1ff4d5991988329e57c349c", + "https://polygon-mumbai.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "80001", }, optimism: { nodeUrl: - "https://polygon-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + "https://polygon-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "10", }, optimismtestnet: { nodeUrl: - "https://optimism-goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + "https://optimism-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "420", }, arbitrum: { nodeUrl: - "https://arbitrum-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + "https://arbitrum-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "42161", }, arbitrumtestnet: { nodeUrl: - "https://arbitrum-goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + "https://arbitrum-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "421613", }, velas: { @@ -74,16 +74,16 @@ const networks: { [key: string]: INetwork } = { chainId: "97", }, "1": { - nodeUrl: "https://mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "1", }, "5": { - nodeUrl: "https://goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + nodeUrl: "https://goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "5", }, "137": { nodeUrl: - "https://polygon-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + "https://polygon-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "137", }, "80001": { @@ -93,22 +93,22 @@ const networks: { [key: string]: INetwork } = { }, "10": { nodeUrl: - "https://optimism-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + "https://optimism-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "10", }, "420": { nodeUrl: - "https://optimism-goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + "https://optimism-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "420", }, "42161": { nodeUrl: - "https://arbitrum-mainnet.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + "https://arbitrum-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "42161", }, "421613": { nodeUrl: - "https://arbitrum-goerli.infura.io/v3/8faaf4fcbdcc4dd0bee8c87eb4b0315b", + "https://arbitrum-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d", chainId: "421613", }, "106": { diff --git a/src/widgetManager.ts b/src/widgetManager.ts index 666b966..0c8c3ba 100644 --- a/src/widgetManager.ts +++ b/src/widgetManager.ts @@ -3,7 +3,7 @@ import { IConnectionMethods, ISDKConfig, IWidget } from "./interfaces"; import { styles } from "./styles"; import { onWindowLoad } from "./utils/onWindowLoad"; -const WIDGET_URL = "https://safle-keyless-core.netlify.app/"; +const WIDGET_URL = "http://localhost:3000/"; const KEYLESS_CONTAINER_CLASS = "safle_keyless-container"; const KEYLESS_IFRAME_CLASS = "safle_keyless-widget-frame"; From c92286f09db32c531e84775029f60c56f3be3d6f Mon Sep 17 00:00:00 2001 From: itsayushi Date: Wed, 27 Dec 2023 14:42:43 +0530 Subject: [PATCH 3/3] widget border fixed --- CHANGELOG.md | 6 +++++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddc4f6d..3db77ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,4 +90,8 @@ ### 2.0.6 (2023-12-22) -* Updated RPC URL's \ No newline at end of file +* Updated RPC URL's + +### 2.0.7 (2023-12-27) + +* Widget border fixed \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 773f1cf..8e4d230 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@getsafle/safle-keyless-js", - "version": "2.0.6", + "version": "2.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@getsafle/safle-keyless-js", - "version": "2.0.6", + "version": "2.0.7", "license": "ISC", "dependencies": { "ethereumjs-util": "^5.2.0", diff --git a/package.json b/package.json index c7f1da8..808cbb8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getsafle/safle-keyless-js", - "version": "2.0.6", + "version": "2.0.7", "description": "", "main": "dist/index.js", "scripts": {