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 axios = require("axios"); | |
const URI = `https://linea-quest.fluvi.io/api/address-mapping/fluvi/bulk`; | |
const getFluviInfo = async function (ocwAddresses) { | |
let res = []; | |
try { | |
res = await axios(`${URI}`, { | |
method: "POST", | |
headers: { |
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: UNLICENSED | |
pragma solidity 0.8.21; | |
struct Portal { | |
string name; | |
string context; | |
bool isRevocable; | |
bytes32[] moduleIds; | |
} |
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
// npm install web3 | |
// get the ABI of the contract (https://mumbai.polygonscan.com/address/0xe9239a8324ee9144e6f1af0cab81a5a8d8274551#code) | |
// store it in ./abis/serieAToken.json | |
// run `node index` | |
const Web3 = require('web3') | |
const fs = require('fs'); | |
const SerieATokenAbi = JSON.parse(fs.readFileSync('./abis/serieAToken.json')); | |
const web3 = new Web3('https://polygon-mumbai.infura.io/v3/8d675eea201c403e9837891cf0d36a3c'); |
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
did:3:kjzl6cwe1jw149mkxukgcrkm1ywh044vvxlm52xx9yaj3ed4me706gw5zzvork8 |
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.1; | |
interface IConcatNameFactory { | |
function createConcatName(address concatNameAddress) external returns(address); | |
} | |
contract ConcatName { | |
bytes public name; |
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
box: wercker/php | |
services: | |
- wercker/mysql | |
build: | |
steps: | |
- script: | |
name: Add timezone to php box | |
code: echo 'date.timezone = "Europe/Paris"' >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini | |
- wercker/add-to-known_hosts@1.2.0: | |
hostname: github.com |
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
#!/bin/sh | |
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"` | |
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php` | |
# Determine if a file list is passed | |
if [ "$#" -eq 1 ] | |
then | |
oIFS=$IFS | |
IFS=' |
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
<iframe id="childframe" src="http://www.example.com/fr/light-simulation-accounts" id="childframe" width="992" frameborder="0" seamless="seamless" scrolling="no" style="height: 1231px;"></iframe> | |
<script type="text/javascript"> | |
function receiveMessage(event) { | |
if (event.origin !== "http://www.example.com") | |
return; | |
document.getElementById('childframe').style.height = event.data + "px"; | |
} | |
window.addEventListener("message", receiveMessage, false); | |
</script> |