Plugin Directory

Changeset 3036124


Ignore:
Timestamp:
02/15/2024 09:47:07 AM (2 years ago)
Author:
davisshaver
Message:

Update to version 0.4.6 from GitHub

Location:
rainbowkit-login-web3-integration-for-sign-in-with-ethereum
Files:
2 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • rainbowkit-login-web3-integration-for-sign-in-with-ethereum/tags/0.4.6/inc/class-wp-rainbow-login-functionality.php

    r3035005 r3036124  
    222222
    223223    /**
    224      * Map filtered Infura network to an Infura endpoint value.
    225      *
    226      * @param string $filtered_network Filtered Infura network.
    227      *
    228      * @return string Infura endpoint or default
    229      */
    230     private function map_filtered_network_to_infura_endpoint( string $filtered_network ): string {
    231         $overrides = [
    232             'arbitrum'        => 'arbitrum-mainnet',
    233             'arbitrumGoerli'  => 'arbitrum-goerli',
    234             'arbitrumSepolia' => 'arbitrum-sepolia',
    235             'optimism'        => 'optimism-mainnet',
    236             'optimismGoerli'  => 'optimism-goerli',
    237             'optimismSepolia' => 'optimism-sepolia',
    238             'polygon'         => 'polygon-mainnet',
    239             'polygonMumbai'   => 'polygon-mumbai',
    240         ];
    241         if ( ! empty( $overrides[ $filtered_network ] ) ) {
    242             return $overrides[ $filtered_network ];
    243         }
    244 
    245         return $filtered_network;
    246     }
    247 
    248     /**
    249224     * Validates Log In with Ethereum request.
    250225     *
     
    322297
    323298                $example_abi = '[{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]';
    324                 $contract    = new Contract( 'https://' . $this->map_filtered_network_to_infura_endpoint( $filtered_infura_network ) . '.infura.io/v3/' . $filtered_infura_id, $example_abi );
     299                $contract    = new Contract( 'https://' . map_filtered_network_to_infura_endpoint( $filtered_infura_network ) . '.infura.io/v3/' . $filtered_infura_id, $example_abi );
    325300                $contract->at( $wp_rainbow_options['wp_rainbow_field_required_token'] )->call(
    326301                    'balanceOf',
  • rainbowkit-login-web3-integration-for-sign-in-with-ethereum/tags/0.4.6/plugins/class-wp-rainbow-plugins-erc-1155-roles.php

    r2839828 r3036124  
    6363        $erc1155_abi        = '[{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]';
    6464        $erc1155_role       = '';
    65         $contract           = new Contract( 'https://' . $filtered_infura_network . '.infura.io/v3/' . $filtered_infura_id, $erc1155_abi );
     65        $contract           = new Contract( 'https://' . map_filtered_network_to_infura_endpoint( $filtered_infura_network ) . '.infura.io/v3/' . $filtered_infura_id, $erc1155_abi );
    6666        $wp_rainbow_options = get_option(
    6767            'wp_rainbow_options',
  • rainbowkit-login-web3-integration-for-sign-in-with-ethereum/tags/0.4.6/readme.txt

    r3035005 r3036124  
    55Requires at least: 5.9
    66Requires PHP: 7.0
    7 Stable tag: 0.4.5
     7Stable tag: 0.4.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7070
    7171== Changelog ==
     72
     73= 0.4.6 =
     74* Fix bug with Infura endpoint mapping
    7275
    7376= 0.4.5 =
  • rainbowkit-login-web3-integration-for-sign-in-with-ethereum/tags/0.4.6/vendor/composer/installed.php

    r3035005 r3036124  
    22    'root' => array(
    33        'name' => 'wp-rainbow/wp-rainbow',
    4         'pretty_version' => 'v0.4.5',
    5         'version' => '0.4.5.0',
    6         'reference' => '962e731f3b34c81ddb9cab0b593dad66c069ad54',
     4        'pretty_version' => 'v0.4.6',
     5        'version' => '0.4.6.0',
     6        'reference' => 'c13ab4f015b86990fdc9e3627c6483ad8e7acb1c',
    77        'type' => 'project',
    88        'install_path' => __DIR__ . '/../../',
     
    167167        ),
    168168        'wp-rainbow/wp-rainbow' => array(
    169             'pretty_version' => 'v0.4.5',
    170             'version' => '0.4.5.0',
    171             'reference' => '962e731f3b34c81ddb9cab0b593dad66c069ad54',
     169            'pretty_version' => 'v0.4.6',
     170            'version' => '0.4.6.0',
     171            'reference' => 'c13ab4f015b86990fdc9e3627c6483ad8e7acb1c',
    172172            'type' => 'project',
    173173            'install_path' => __DIR__ . '/../../',
  • rainbowkit-login-web3-integration-for-sign-in-with-ethereum/tags/0.4.6/wp-rainbow.php

    r3035005 r3036124  
    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.4.5
     13 * Version:           0.4.6
    1414 * Author:            Davis Shaver
    1515 * Author URI:        https://davisshaver.com/
     
    4141);
    4242
     43// Require the helper functions.
     44require_once __DIR__ . '/inc/functions.php';
     45
    4346// Require the main class.
    4447require_once __DIR__ . '/inc/class-wp-rainbow.php';
  • rainbowkit-login-web3-integration-for-sign-in-with-ethereum/trunk/inc/class-wp-rainbow-login-functionality.php

    r3035005 r3036124  
    222222
    223223    /**
    224      * Map filtered Infura network to an Infura endpoint value.
    225      *
    226      * @param string $filtered_network Filtered Infura network.
    227      *
    228      * @return string Infura endpoint or default
    229      */
    230     private function map_filtered_network_to_infura_endpoint( string $filtered_network ): string {
    231         $overrides = [
    232             'arbitrum'        => 'arbitrum-mainnet',
    233             'arbitrumGoerli'  => 'arbitrum-goerli',
    234             'arbitrumSepolia' => 'arbitrum-sepolia',
    235             'optimism'        => 'optimism-mainnet',
    236             'optimismGoerli'  => 'optimism-goerli',
    237             'optimismSepolia' => 'optimism-sepolia',
    238             'polygon'         => 'polygon-mainnet',
    239             'polygonMumbai'   => 'polygon-mumbai',
    240         ];
    241         if ( ! empty( $overrides[ $filtered_network ] ) ) {
    242             return $overrides[ $filtered_network ];
    243         }
    244 
    245         return $filtered_network;
    246     }
    247 
    248     /**
    249224     * Validates Log In with Ethereum request.
    250225     *
     
    322297
    323298                $example_abi = '[{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]';
    324                 $contract    = new Contract( 'https://' . $this->map_filtered_network_to_infura_endpoint( $filtered_infura_network ) . '.infura.io/v3/' . $filtered_infura_id, $example_abi );
     299                $contract    = new Contract( 'https://' . map_filtered_network_to_infura_endpoint( $filtered_infura_network ) . '.infura.io/v3/' . $filtered_infura_id, $example_abi );
    325300                $contract->at( $wp_rainbow_options['wp_rainbow_field_required_token'] )->call(
    326301                    'balanceOf',
  • rainbowkit-login-web3-integration-for-sign-in-with-ethereum/trunk/plugins/class-wp-rainbow-plugins-erc-1155-roles.php

    r2839828 r3036124  
    6363        $erc1155_abi        = '[{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]';
    6464        $erc1155_role       = '';
    65         $contract           = new Contract( 'https://' . $filtered_infura_network . '.infura.io/v3/' . $filtered_infura_id, $erc1155_abi );
     65        $contract           = new Contract( 'https://' . map_filtered_network_to_infura_endpoint( $filtered_infura_network ) . '.infura.io/v3/' . $filtered_infura_id, $erc1155_abi );
    6666        $wp_rainbow_options = get_option(
    6767            'wp_rainbow_options',
  • rainbowkit-login-web3-integration-for-sign-in-with-ethereum/trunk/readme.txt

    r3035005 r3036124  
    55Requires at least: 5.9
    66Requires PHP: 7.0
    7 Stable tag: 0.4.5
     7Stable tag: 0.4.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7070
    7171== Changelog ==
     72
     73= 0.4.6 =
     74* Fix bug with Infura endpoint mapping
    7275
    7376= 0.4.5 =
  • rainbowkit-login-web3-integration-for-sign-in-with-ethereum/trunk/vendor/composer/installed.php

    r3035005 r3036124  
    22    'root' => array(
    33        'name' => 'wp-rainbow/wp-rainbow',
    4         'pretty_version' => 'v0.4.5',
    5         'version' => '0.4.5.0',
    6         'reference' => '962e731f3b34c81ddb9cab0b593dad66c069ad54',
     4        'pretty_version' => 'v0.4.6',
     5        'version' => '0.4.6.0',
     6        'reference' => 'c13ab4f015b86990fdc9e3627c6483ad8e7acb1c',
    77        'type' => 'project',
    88        'install_path' => __DIR__ . '/../../',
     
    167167        ),
    168168        'wp-rainbow/wp-rainbow' => array(
    169             'pretty_version' => 'v0.4.5',
    170             'version' => '0.4.5.0',
    171             'reference' => '962e731f3b34c81ddb9cab0b593dad66c069ad54',
     169            'pretty_version' => 'v0.4.6',
     170            'version' => '0.4.6.0',
     171            'reference' => 'c13ab4f015b86990fdc9e3627c6483ad8e7acb1c',
    172172            'type' => 'project',
    173173            'install_path' => __DIR__ . '/../../',
  • rainbowkit-login-web3-integration-for-sign-in-with-ethereum/trunk/wp-rainbow.php

    r3035005 r3036124  
    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.4.5
     13 * Version:           0.4.6
    1414 * Author:            Davis Shaver
    1515 * Author URI:        https://davisshaver.com/
     
    4141);
    4242
     43// Require the helper functions.
     44require_once __DIR__ . '/inc/functions.php';
     45
    4346// Require the main class.
    4447require_once __DIR__ . '/inc/class-wp-rainbow.php';
Note: See TracChangeset for help on using the changeset viewer.