diff --git a/inc/class-wp-rainbow-login-functionality.php b/inc/class-wp-rainbow-login-functionality.php index 3018107..c6a7853 100644 --- a/inc/class-wp-rainbow-login-functionality.php +++ b/inc/class-wp-rainbow-login-functionality.php @@ -229,11 +229,14 @@ public function nonce_callback(): WP_REST_Response { */ private function map_filtered_network_to_infura_endpoint( string $filtered_network ): string { $overrides = [ - 'polygon' => 'polygon-mainnet', - 'optimism' => 'optimism-mainnet', - 'arbitrum' => 'arbitrum-mainnet', - 'polygon' => 'polygon-mainnet', - 'optimismGoerli' => 'optimism-goerli', + 'arbitrum' => 'arbitrum-mainnet', + 'arbitrumGoerli' => 'arbitrum-goerli', + 'arbitrumSepolia' => 'arbitrum-sepolia', + 'optimism' => 'optimism-mainnet', + 'optimismGoerli' => 'optimism-goerli', + 'optimismSepolia' => 'optimism-sepolia', + 'polygon' => 'polygon-mainnet', + 'polygonMumbai' => 'polygon-mumbai', ]; if ( ! empty( $overrides[ $filtered_network ] ) ) { return $overrides[ $filtered_network ]; diff --git a/inc/class-wp-rainbow-settings.php b/inc/class-wp-rainbow-settings.php index 89550cf..d98bd87 100644 --- a/inc/class-wp-rainbow-settings.php +++ b/inc/class-wp-rainbow-settings.php @@ -160,10 +160,16 @@ public function action_rest_api_init() { 'description' => 'Infura network', 'enum' => [ 'mainnet', - 'ropsten', - 'kovan', - 'rinkeby', 'goerli', + 'sepolia', + 'polygon', + 'polygonMumbai', + 'optimism', + 'optimismGoerli', + 'optimismSepolia', + 'arbitrum', + 'arbitrumGoerli', + 'arbitrumSepolia', ], ], 'wp_rainbow_field_walletconnect_project_id' => [ diff --git a/package.json b/package.json index d4e8893..8e29a8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wp-rainbow", - "version": "0.4.4", + "version": "0.4.5", "description": "RainbowKit Login (Web3 Integration for Sign-In With Ethereum)", "author": "Davis Shaver", "license": "GPL-2.0-or-later", diff --git a/readme.txt b/readme.txt index 7963d3c..0aefae6 100644 --- a/readme.txt +++ b/readme.txt @@ -1,10 +1,10 @@ === RainbowKit Login (Web3 Integration for Sign-In With Ethereum) === Contributors: davisshaver Tags: WordPress, web3, SIWE, Ethereum, RainbowKit, Sign-In With Ethereum -Tested up to: 6.4.1 +Tested up to: 6.4.3 Requires at least: 5.9 Requires PHP: 7.0 -Stable tag: 0.4.4 +Stable tag: 0.4.5 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -70,6 +70,9 @@ Find reference implementations of all filters in [example plugin here](https://g == Changelog == += 0.4.5 = +* Fix bug with Polygon network, add Polygon Mumbai + = 0.4.4 = * Update dependencies/support WordPress 6.4 diff --git a/src/provider.jsx b/src/provider.jsx index 079f3b1..5b002e6 100644 --- a/src/provider.jsx +++ b/src/provider.jsx @@ -14,12 +14,16 @@ import { } from '@rainbow-me/rainbowkit/wallets'; import { createConfig, configureChains, WagmiConfig } from 'wagmi'; import { - mainnet, - optimism, arbitrum, + arbitrumGoerli, + arbitrumSepolia, goerli, - polygon, + mainnet, + optimism, optimismGoerli, + optimismSepolia, + polygon, + polygonMumbai, sepolia, } from 'wagmi/chains'; import { infuraProvider } from 'wagmi/providers/infura'; @@ -47,12 +51,16 @@ const themes = { }; const allChains = { - mainnet, - optimism, arbitrum, + arbitrumGoerli, + arbitrumSepolia, goerli, - polygon, + mainnet, + optimism, optimismGoerli, + optimismSepolia, + polygon, + polygonMumbai, sepolia, }; diff --git a/src/settings.jsx b/src/settings.jsx index cd9945c..ae0d2a2 100644 --- a/src/settings.jsx +++ b/src/settings.jsx @@ -295,14 +295,26 @@ function WPRainbowSettings() { id="wp_rainbow_field_infura_network" > - - - + + + + + + +

diff --git a/wp-rainbow.php b/wp-rainbow.php index 2b47f9d..1943a75 100644 --- a/wp-rainbow.php +++ b/wp-rainbow.php @@ -10,7 +10,7 @@ * Plugin Name: RainbowKit Login (Web3 Integration for Sign-In With Ethereum) * Plugin URI: https://wp-rainbow.davisshaver.com/ * Description: RainbowKit Login allows WordPress users to log in with Ethereum using the Sign-In With Ethereum standard, powered by RainbowKit. - * Version: 0.4.4 + * Version: 0.4.5 * Author: Davis Shaver * Author URI: https://davisshaver.com/ * License: GPL v2 or later @@ -27,7 +27,7 @@ /** * WP Rainbow version number */ -define( 'WP_RAINBOW_ASSETS_VERSION', '0.4.4' ); +define( 'WP_RAINBOW_ASSETS_VERSION', '0.4.5' ); // Include the autoloader. add_action(