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 | |
/** | |
* Standalone function used by Flatesome Search Filter | |
* | |
* @param string $search_query | |
* @param array $args | |
* @param array $defaults | |
* @return array | |
*/ |
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 | |
/** | |
* @package env-plugin-manager | |
* @version 1.0 | |
* | |
* Plugin Name: Environment Plugin Manager | |
* Description: This plugin manages the activation of other plugins based on the website's environment | |
* Version: 1.0 | |
* Author: Ryan Soury | Web Doodle |
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 { | |
AuthProvider, | |
asOldCaipString, | |
getConsentMessage, | |
LinkProof | |
} from "@ceramicnetwork/blockchain-utils-linking"; | |
import { AccountId } from "caip"; | |
import * as uint8arrays from "uint8arrays"; | |
export class ArweaveAuthProvider implements AuthProvider { |
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 { ethers } from 'ethers'; | |
// Inspired by: https://medium.com/@hanyi.lol/how-to-get-a-block-number-by-timestamp-fefde4c69162 | |
export async function getClosestBlockByTime( | |
timestamp: number, | |
provider: ethers.Provider | |
) { | |
let maxBlockNumber = await provider.getBlockNumber(); | |
let minBlockNumber = 0; | |
const maxBlock = await provider.getBlock(maxBlockNumber); |
OlderNewer