From 43ed6174c5f77b6df1c2f064590eaa388d48f852 Mon Sep 17 00:00:00 2001 From: tatumio Date: Fri, 9 Sep 2022 09:55:46 +0000 Subject: [PATCH] Update from https://github.com/tatumio/wordpress-plugin/commit/4b0af9002e5693b9125e740200100fbe3a146eba --- README.txt | 7 +++++-- inc/base/others/cachebuster-lib.php | 2 +- inc/base/others/cachebuster.php | 4 ++-- index.php | 2 +- public/dist/admin.js | 2 +- public/dist/admin.js.map | 2 +- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 8 ++++---- vendor/composer/autoload_static.php | 8 ++++---- vendor/tatum/nft-maker/src/Hooks/PublicHooks.php | 7 +------ .../tatum/nft-maker/src/Services/NftService.php | 4 +--- .../tatum/nft-maker/src/Utils/BlockchainLink.php | 9 --------- vendor/tatum/nft-maker/src/Utils/Constants.php | 16 +--------------- vendor/tatum/nft-maker/vendor/autoload.php | 2 +- .../nft-maker/vendor/composer/autoload_real.php | 8 ++++---- .../vendor/composer/autoload_static.php | 8 ++++---- vendor/tatum/utils/vendor/autoload.php | 2 +- .../utils/vendor/composer/autoload_real.php | 8 ++++---- .../utils/vendor/composer/autoload_static.php | 8 ++++---- 19 files changed, 41 insertions(+), 68 deletions(-) diff --git a/README.txt b/README.txt index e3674c0d..da0c08fe 100644 --- a/README.txt +++ b/README.txt @@ -1,11 +1,11 @@ === NFT Maker === Contributors: lukaskotol Donate link: lukas.kotol@gmail.com -Tags: nft, erc721, ethereum, celo, bsc, polygon, harmony, mint, tatum, blockchain, smart contract, opensea +Tags: nft, erc721, ethereum, celo, bsc, polygon, harmony, mint, tatum, blockchain, smart contract Requires at least: 5.5 Requires PHP: 7.0 Tested up to: 5.8.2 -Stable tag: 2.0.30 +Stable tag: 2.0.31 License: MIT License URI: https://opensource.org/licenses/MIT @@ -208,6 +208,9 @@ Fixed API key submit validation = 2.0.30 = Fixed activator lazy nft testnet field & strip HTML and special chars from IPFS metadata += 2.0.31 = +Removed open sea link and changed eth testnet link to sepolia + == Upgrade Notice == = 1.0.0 = diff --git a/inc/base/others/cachebuster-lib.php b/inc/base/others/cachebuster-lib.php index e881bc10..aa605105 100644 --- a/inc/base/others/cachebuster-lib.php +++ b/inc/base/others/cachebuster-lib.php @@ -1,5 +1,5 @@ '4.15.4', 'react' => '17.0.2', diff --git a/inc/base/others/cachebuster.php b/inc/base/others/cachebuster.php index 3cf1c30e..e913779a 100644 --- a/inc/base/others/cachebuster.php +++ b/inc/base/others/cachebuster.php @@ -1,7 +1,7 @@ '6a83f9d51144ea6281f9d86d7bb8d70c', + 'src/public/dist/admin.js' => '210334e00f56b2cb281ddf3eec8c4bf3', 'src/public/dist/vendor-admin.js' => '88674945a6b37489c984c3de1eaeb815', 'src/public/dist/vendor-widget.js' => '357c2c2cda20d8b1dfd3fa9a4f4a91d2', 'src/public/dist/widget.js' => 'fb924215ff42f60dd90fad293bb14d9e', diff --git a/index.php b/index.php index 1df19f08..608348f5 100644 --- a/index.php +++ b/index.php @@ -8,7 +8,7 @@ * Description: NFT Maker is the easiest and fastest free plugin to work with NFTs without any blockchain development experience. * Author: Lukas Kotol * Author URI: https://t.me/LukasKotol - * Version: 2.0.30 + * Version: 2.0.31 * Text Domain: tatum * Domain Path: /languages * License: MIT diff --git a/public/dist/admin.js b/public/dist/admin.js index 6e088158..87817b58 100644 --- a/public/dist/admin.js +++ b/public/dist/admin.js @@ -1,2 +1,2 @@ -var tatum_admin=function(A){function g(g){for(var B,I,b=g[0],e=g[1],D=g[2],i=0,w=[];i= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInita143d1547dde35dda4e461c7d133ba14::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitcbd8a06d55211a9a4d10603d49980a68::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 8e83cd25..e86fc2ca 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInita143d1547dde35dda4e461c7d133ba14 +class ComposerStaticInitcbd8a06d55211a9a4d10603d49980a68 { public static $prefixLengthsPsr4 = array ( 'k' => @@ -89,9 +89,9 @@ class ComposerStaticInita143d1547dde35dda4e461c7d133ba14 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInita143d1547dde35dda4e461c7d133ba14::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInita143d1547dde35dda4e461c7d133ba14::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInita143d1547dde35dda4e461c7d133ba14::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitcbd8a06d55211a9a4d10603d49980a68::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitcbd8a06d55211a9a4d10603d49980a68::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitcbd8a06d55211a9a4d10603d49980a68::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/tatum/nft-maker/src/Hooks/PublicHooks.php b/vendor/tatum/nft-maker/src/Hooks/PublicHooks.php index 96a858fe..03e72d14 100644 --- a/vendor/tatum/nft-maker/src/Hooks/PublicHooks.php +++ b/vendor/tatum/nft-maker/src/Hooks/PublicHooks.php @@ -82,12 +82,7 @@ private function getNftDetail($chain, $txId, $testnet) { $html = "Transction Hash: $txLink
"; if (array_key_exists("tokenId", $nftDetail)) { - if (in_array($chain, ['MATIC', 'ETH']) && array_key_exists("openSeaUrl", $nftDetail)) { - $openSeaLink = BlockchainLink::formatLink($nftDetail['tokenId'] . " (OpenSea) ", $nftDetail['openSeaUrl']); - $html .= "Token Id: " . $openSeaLink . " - once transaction is confirmed link should be valid
"; - } else { - $html .= "Token Id: " . $nftDetail['tokenId'] . "
"; - } + $html .= "Token Id: " . $nftDetail['tokenId'] . "
"; } $html .= "Contract Address: " . $nftDetail['contractAddress'] . "

"; diff --git a/vendor/tatum/nft-maker/src/Services/NftService.php b/vendor/tatum/nft-maker/src/Services/NftService.php index 9b745d13..6f9bba27 100644 --- a/vendor/tatum/nft-maker/src/Services/NftService.php +++ b/vendor/tatum/nft-maker/src/Services/NftService.php @@ -85,8 +85,7 @@ private function formatMintedNft($order, $nft, $addTokenId = true) { if ($addTokenId) { $nftDetail = $this->getNftDetail($nft->chain, $nft->transaction_id, $nft->testnet); - if (array_key_exists("openSeaUrl", $nftDetail) && array_key_exists("tokenId", $nftDetail)) { - $formatted['openSeaUrl'] = $nftDetail['openSeaUrl']; + if (array_key_exists("tokenId", $nftDetail)) { $formatted['tokenId'] = $nftDetail['tokenId']; } $formatted['contractAddress'] = $nftDetail['contractAddress']; @@ -115,7 +114,6 @@ public function getNftDetail($chain, $txId, $testnet) { } return [ 'contractAddress' => Constants::CONTRACT_ADDRESS[$isTestnet][$chain], - 'openSeaUrl' => BlockchainLink::openSea($tokenId, $chain, $testnet), 'tokenId' => $tokenId ]; } diff --git a/vendor/tatum/nft-maker/src/Utils/BlockchainLink.php b/vendor/tatum/nft-maker/src/Utils/BlockchainLink.php index ab2a04f1..c9d5092c 100644 --- a/vendor/tatum/nft-maker/src/Utils/BlockchainLink.php +++ b/vendor/tatum/nft-maker/src/Utils/BlockchainLink.php @@ -14,15 +14,6 @@ public static function tx($txHash, $chain, $testnet = true) { return $prefixes[$chain] . 'tx/' . $txHash; } - public static function openSea($tokenId, $chain, $testnet = true) { - $isTestnet = $testnet ? 'TESTNET' : 'MAINNET'; - $openSeaUrl = Constants::OPEN_SEA_BASE_URL[$isTestnet]; - if ($chain === 'ETH') { - return $openSeaUrl . "assets/" . Constants::CONTRACT_ADDRESS[$isTestnet][$chain] . "/" . $tokenId; - } - return $openSeaUrl . "assets/" . Constants::OPEN_SEA_CHAIN_MAPPING[$isTestnet][$chain] . "/" . Constants::CONTRACT_ADDRESS[$isTestnet][$chain] . "/" . $tokenId; - } - public static function formatLink($text, $linkUrl) { return "$text"; } diff --git a/vendor/tatum/nft-maker/src/Utils/Constants.php b/vendor/tatum/nft-maker/src/Utils/Constants.php index 259eca09..f5bcdc24 100644 --- a/vendor/tatum/nft-maker/src/Utils/Constants.php +++ b/vendor/tatum/nft-maker/src/Utils/Constants.php @@ -21,23 +21,9 @@ class Constants ] ]; - const OPEN_SEA_BASE_URL = [ - 'TESTNET' => 'https://testnets.opensea.io/', - 'MAINNET' => 'https://opensea.io/' - ]; - - const OPEN_SEA_CHAIN_MAPPING = [ - 'TESTNET' => [ - 'MATIC' => 'mumbai' - ], - 'MAINNET' => [ - 'MATIC' => 'matic', - ] - ]; - const EXPLORER = [ 'TESTNET' => [ - 'ETH' => "https://ropsten.etherscan.io/", + 'ETH' => "https://sepolia.etherscan.io/", 'CELO' => "https://alfajores-blockscout.celo-testnet.org/", 'BSC' => "https://testnet.bscscan.com/", 'MATIC' => "https://mumbai.polygonscan.com/", diff --git a/vendor/tatum/nft-maker/vendor/autoload.php b/vendor/tatum/nft-maker/vendor/autoload.php index 91df38f4..78242fc2 100644 --- a/vendor/tatum/nft-maker/vendor/autoload.php +++ b/vendor/tatum/nft-maker/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInita5488e1860834e352e8c4c2ad38c930f::getLoader(); +return ComposerAutoloaderInitff3a19b97f6a00ed45de77e87fb52ef1::getLoader(); diff --git a/vendor/tatum/nft-maker/vendor/composer/autoload_real.php b/vendor/tatum/nft-maker/vendor/composer/autoload_real.php index 9ffc59e7..8c35efaa 100644 --- a/vendor/tatum/nft-maker/vendor/composer/autoload_real.php +++ b/vendor/tatum/nft-maker/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInita5488e1860834e352e8c4c2ad38c930f +class ComposerAutoloaderInitff3a19b97f6a00ed45de77e87fb52ef1 { private static $loader; @@ -22,15 +22,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInita5488e1860834e352e8c4c2ad38c930f', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitff3a19b97f6a00ed45de77e87fb52ef1', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInita5488e1860834e352e8c4c2ad38c930f', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitff3a19b97f6a00ed45de77e87fb52ef1', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInita5488e1860834e352e8c4c2ad38c930f::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitff3a19b97f6a00ed45de77e87fb52ef1::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { diff --git a/vendor/tatum/nft-maker/vendor/composer/autoload_static.php b/vendor/tatum/nft-maker/vendor/composer/autoload_static.php index 882386f9..6ccd4733 100644 --- a/vendor/tatum/nft-maker/vendor/composer/autoload_static.php +++ b/vendor/tatum/nft-maker/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInita5488e1860834e352e8c4c2ad38c930f +class ComposerStaticInitff3a19b97f6a00ed45de77e87fb52ef1 { public static $prefixLengthsPsr4 = array ( 'k' => @@ -61,9 +61,9 @@ class ComposerStaticInita5488e1860834e352e8c4c2ad38c930f public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInita5488e1860834e352e8c4c2ad38c930f::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInita5488e1860834e352e8c4c2ad38c930f::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInita5488e1860834e352e8c4c2ad38c930f::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitff3a19b97f6a00ed45de77e87fb52ef1::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitff3a19b97f6a00ed45de77e87fb52ef1::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitff3a19b97f6a00ed45de77e87fb52ef1::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/tatum/utils/vendor/autoload.php b/vendor/tatum/utils/vendor/autoload.php index cb218fe3..6e82d064 100644 --- a/vendor/tatum/utils/vendor/autoload.php +++ b/vendor/tatum/utils/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit89e56994e462f2790e0c8d7af1630fd0::getLoader(); +return ComposerAutoloaderInit8df143d178596b162d8d771136bb1323::getLoader(); diff --git a/vendor/tatum/utils/vendor/composer/autoload_real.php b/vendor/tatum/utils/vendor/composer/autoload_real.php index 390fabd5..c4bdbb67 100644 --- a/vendor/tatum/utils/vendor/composer/autoload_real.php +++ b/vendor/tatum/utils/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit89e56994e462f2790e0c8d7af1630fd0 +class ComposerAutoloaderInit8df143d178596b162d8d771136bb1323 { private static $loader; @@ -22,15 +22,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit89e56994e462f2790e0c8d7af1630fd0', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit8df143d178596b162d8d771136bb1323', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit89e56994e462f2790e0c8d7af1630fd0', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit8df143d178596b162d8d771136bb1323', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit89e56994e462f2790e0c8d7af1630fd0::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit8df143d178596b162d8d771136bb1323::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { diff --git a/vendor/tatum/utils/vendor/composer/autoload_static.php b/vendor/tatum/utils/vendor/composer/autoload_static.php index c2878274..1e0fd03b 100644 --- a/vendor/tatum/utils/vendor/composer/autoload_static.php +++ b/vendor/tatum/utils/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit89e56994e462f2790e0c8d7af1630fd0 +class ComposerStaticInit8df143d178596b162d8d771136bb1323 { public static $prefixLengthsPsr4 = array ( 'H' => @@ -39,9 +39,9 @@ class ComposerStaticInit89e56994e462f2790e0c8d7af1630fd0 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit89e56994e462f2790e0c8d7af1630fd0::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit89e56994e462f2790e0c8d7af1630fd0::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit89e56994e462f2790e0c8d7af1630fd0::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit8df143d178596b162d8d771136bb1323::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit8df143d178596b162d8d771136bb1323::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit8df143d178596b162d8d771136bb1323::$classMap; }, null, ClassLoader::class); }