Skip to content

Commit

Permalink
Update from 4b0af90
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed Sep 9, 2022
1 parent e7afbfd commit 43ed617
Show file tree
Hide file tree
Showing 19 changed files with 41 additions and 68 deletions.
7 changes: 5 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=== NFT Maker ===
Contributors: lukaskotol
Donate link: [email protected]
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

Expand Down Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion inc/base/others/cachebuster-lib.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
/* This file was automatically generated by the `grunt libs:cachebuster` command (Thu Jun 02 2022 11:47:46 GMT+0000 (Coordinated Universal Time)). */
/* This file was automatically generated by the `grunt libs:cachebuster` command (Fri Sep 09 2022 09:55:26 GMT+0000 (Coordinated Universal Time)). */
return array(
'mobx' => '4.15.4',
'react' => '17.0.2',
Expand Down
4 changes: 2 additions & 2 deletions inc/base/others/cachebuster.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/* This file was automatically generated by the `grunt libs:cachebuster` command (Thu Jun 02 2022 11:47:46 GMT+0000 (Coordinated Universal Time)). */
/* This file was automatically generated by the `grunt libs:cachebuster` command (Fri Sep 09 2022 09:55:26 GMT+0000 (Coordinated Universal Time)). */
return array(
'src/public/dist/admin.js' => '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',
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion public/dist/admin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/admin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInita143d1547dde35dda4e461c7d133ba14::getLoader();
return ComposerAutoloaderInitcbd8a06d55211a9a4d10603d49980a68::getLoader();
8 changes: 4 additions & 4 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInita143d1547dde35dda4e461c7d133ba14
class ComposerAutoloaderInitcbd8a06d55211a9a4d10603d49980a68
{
private static $loader;

Expand All @@ -22,15 +22,15 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInita143d1547dde35dda4e461c7d133ba14', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitcbd8a06d55211a9a4d10603d49980a68', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInita143d1547dde35dda4e461c7d133ba14', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitcbd8a06d55211a9a4d10603d49980a68', '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\ComposerStaticInita143d1547dde35dda4e461c7d133ba14::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitcbd8a06d55211a9a4d10603d49980a68::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInita143d1547dde35dda4e461c7d133ba14
class ComposerStaticInitcbd8a06d55211a9a4d10603d49980a68
{
public static $prefixLengthsPsr4 = array (
'k' =>
Expand Down Expand Up @@ -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);
}
Expand Down
7 changes: 1 addition & 6 deletions vendor/tatum/nft-maker/src/Hooks/PublicHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,7 @@ private function getNftDetail($chain, $txId, $testnet) {
$html = "Transction Hash: $txLink<br>";

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<br>";
} else {
$html .= "Token Id: " . $nftDetail['tokenId'] . "<br>";
}
$html .= "Token Id: " . $nftDetail['tokenId'] . "<br>";
}

$html .= "Contract Address: " . $nftDetail['contractAddress'] . "<br><br>";
Expand Down
4 changes: 1 addition & 3 deletions vendor/tatum/nft-maker/src/Services/NftService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down Expand Up @@ -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
];
}
Expand Down
9 changes: 0 additions & 9 deletions vendor/tatum/nft-maker/src/Utils/BlockchainLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<a href='$linkUrl' target='_blank'>$text</a>";
}
Expand Down
16 changes: 1 addition & 15 deletions vendor/tatum/nft-maker/src/Utils/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down
2 changes: 1 addition & 1 deletion vendor/tatum/nft-maker/vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInita5488e1860834e352e8c4c2ad38c930f::getLoader();
return ComposerAutoloaderInitff3a19b97f6a00ed45de77e87fb52ef1::getLoader();
8 changes: 4 additions & 4 deletions vendor/tatum/nft-maker/vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInita5488e1860834e352e8c4c2ad38c930f
class ComposerAutoloaderInitff3a19b97f6a00ed45de77e87fb52ef1
{
private static $loader;

Expand All @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions vendor/tatum/nft-maker/vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInita5488e1860834e352e8c4c2ad38c930f
class ComposerStaticInitff3a19b97f6a00ed45de77e87fb52ef1
{
public static $prefixLengthsPsr4 = array (
'k' =>
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/tatum/utils/vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit89e56994e462f2790e0c8d7af1630fd0::getLoader();
return ComposerAutoloaderInit8df143d178596b162d8d771136bb1323::getLoader();
8 changes: 4 additions & 4 deletions vendor/tatum/utils/vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit89e56994e462f2790e0c8d7af1630fd0
class ComposerAutoloaderInit8df143d178596b162d8d771136bb1323
{
private static $loader;

Expand All @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions vendor/tatum/utils/vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit89e56994e462f2790e0c8d7af1630fd0
class ComposerStaticInit8df143d178596b162d8d771136bb1323
{
public static $prefixLengthsPsr4 = array (
'H' =>
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 43ed617

Please sign in to comment.