This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ethers, upgrades } = require('hardhat'); | |
async function main () { | |
const MyToken2 = await ethers.getContractFactory('MyToken2'); | |
await upgrades.upgradeProxy('THECONTRACTADDRESS', MyToken2); | |
console.log('Contract upgraded'); | |
} | |
main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ethers, upgrades } = require('hardhat'); | |
async function main() { | |
// Hardhat always runs the compile task when running scripts with its command | |
// line interface. | |
// | |
// If this script is run directly using `node` you may want to call compile | |
// manually to make sure everything is compiled | |
// await hre.run('compile'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.2; | |
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; | |
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol"; | |
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; | |
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; | |
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | |
contract MyToken is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, AccessControlUpgradeable, OwnableUpgradeable { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Required packages for PHP & C libraries if you want your Laravel app to talk to this from valet | |
#https://github.com/edenhill/librdkafka | |
#https://github.com/arnaud-lb/php-rdkafka | |
version: '2' | |
services: | |
zookeeper-1: | |
image: confluentinc/cp-zookeeper:latest | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\Api\v1; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use App\Services\ValidateAndroidSubscription; | |
use ReceiptValidator\GooglePlay\Validator as PlayValidator; | |
use \Google_Client as GoogleClient; | |
use \Google_Service_AndroidPublisher as AndroidPublisher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Support\Arr; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use ReceiptValidator\iTunes\Validator as iOSValidator; | |
class iOSReceiptValidationController extends Controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Provider as AuthProvider } from "./src/context/AuthContext"; | |
return loaded ? ( | |
<AuthProvider> | |
<NavigationContainer | |
theme={scheme === "dark" || darkModeSelected ? DarkTheme : LightTheme} | |
> | |
<Stack.Navigator> | |
<Stack.Screen | |
name="ResolveAuth" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Unit; | |
use Illuminate\Foundation\Testing\TestCase; | |
use Illuminate\Foundation\Testing\RefreshDatabase; | |
class UserSubscriptionRepositoryTest extends TestCase | |
{ | |
use CreatesApplication, RefreshDatabase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests; | |
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
use Stripe\Customer; | |
use Stripe\Stripe; | |
/** | |
* Class TestCase. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -E "s/(X'[^,\)]*')/CONVERT(\1 using utf8mb4)/g" ~/Desktop/rocheledb_2020-02-18.sql > ~/Desktop/outfile.sql |
NewerOlder