Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature ui2 #109

Merged
merged 4 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,8 @@

### 2.0.6 (2023-12-22)

* Updated RPC URL's
* Updated RPC URL's

### 2.0.7 (2023-12-27)

* Widget border fixed
1 change: 1 addition & 0 deletions dist/widgetManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getsafle/safle-keyless-js",
"version": "2.0.6",
"version": "2.0.7",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down
30 changes: 15 additions & 15 deletions src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/widgetManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Loading