Skip to content

Commit 814ebce

Browse files
committed
✨ Add support for Optimism network
1 parent c2e37dc commit 814ebce

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

inc/class-wp-rainbow-login-functionality.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ public function nonce_callback(): WP_REST_Response {
229229
*/
230230
private function map_filtered_network_to_infura_endpoint( string $filtered_network ): string {
231231
$overrides = [
232-
'polygon' => 'polygon-mainnet',
232+
'polygon' => 'polygon-mainnet',
233+
'optimism' => 'optimism-mainnet',
233234
];
234235
if ( ! empty( $overrides[ $filtered_network ] ) ) {
235236
return $overrides[ $filtered_network ];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wp-rainbow",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "RainbowKit Login (Web3 Integration for Sign-In With Ethereum)",
55
"author": "Davis Shaver",
66
"license": "GPL-2.0-or-later",

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: WordPress, web3, SIWE, Ethereum, RainbowKit, Sign-In With Ethereum
44
Tested up to: 6.1
55
Requires at least: 5.9
66
Requires PHP: 7.0
7-
Stable tag: 0.3.1
7+
Stable tag: 0.3.2
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -57,6 +57,9 @@ Find reference implementations of all filters in [example plugin here](https://g
5757

5858
== Changelog ==
5959

60+
= 0.3.2 =
61+
* Add support for Optimism network
62+
6063
= 0.3.1 =
6164
* Bug fixes
6265

src/settings.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ function WPRainbowSettings() {
251251
id="wp_rainbow_field_infura_network"
252252
>
253253
<option value="mainnet">Mainnet</option>
254+
<option value="optimism">Optimism</option>
254255
<option value="ropsten">Ropsten</option>
255256
<option value="kovan">Kovan</option>
256257
<option value="rinkeby">Rinkeby</option>

wp-rainbow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: RainbowKit Login (Web3 Integration for Sign-In With Ethereum)
1111
* Plugin URI: https://wp-rainbow.davisshaver.com/
1212
* Description: RainbowKit Login allows WordPress users to log in with Ethereum using the Sign-In With Ethereum standard, powered by RainbowKit.
13-
* Version: 0.3.1
13+
* Version: 0.3.2
1414
* Author: Davis Shaver
1515
* Author URI: https://davisshaver.com/
1616
* License: GPL v2 or later
@@ -27,7 +27,7 @@
2727
/**
2828
* WP Rainbow version number
2929
*/
30-
define( 'WP_RAINBOW_ASSETS_VERSION', '0.3.0' );
30+
define( 'WP_RAINBOW_ASSETS_VERSION', '0.3.2' );
3131

3232
// Include the autoloader.
3333
add_action(

0 commit comments

Comments
 (0)