Skip to content

Instantly share code, notes, and snippets.

View maxaleks's full-sized avatar
🏠
Working from home

Max Alekseenko maxaleks

🏠
Working from home
  • Wroclaw, Poland
View GitHub Profile
@maxaleks
maxaleks / banner.html
Last active April 4, 2024 15:14
Test banner
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
}
.container {
@maxaleks
maxaleks / security_reports_goerli_test.json
Created March 15, 2024 14:19
Security score data (test Goerli)
[
{
"appName": "token-approval-tracker",
"doc": "https://docs.li.fi/smart-contracts/deployments#mainnet",
"chainsData": {
"5": {
"overallInfo": {
"verifiedNumber": 1,
"totalContractsNumber": 1,
"solidityScanContractsNumber": 1,
@maxaleks
maxaleks / security_reports.json
Created March 15, 2024 14:11
Security score data
This file has been truncated, but you can view the full file.
[
{
"appName": "furucombo",
"doc": "https://docs.furucombo.app/resources/deployed-contracts",
"chainsData": {
"10": {
"overallInfo": {
"verifiedNumber": 7,
"totalContractsNumber": 7,
"solidityScanContractsNumber": 7,
@maxaleks
maxaleks / security_score_data.json
Last active March 11, 2024 14:20
Security score data
This file has been truncated, but you can view the full file.
[
{
"appName": "furucombo",
"doc": "https://docs.furucombo.app/resources/deployed-contracts",
"chainsData": {
"optimism": {
"overallInfo": {
"verifiedNumber": 7,
"totalContractsNumber": 7,
"solidityScanContractsNumber": 7,
@maxaleks
maxaleks / config.json
Created February 21, 2024 12:22
Test marketplace config
[
{
"author": "Hop",
"id": "hop-exchange",
"title": "Hop",
"logo": "https://blockscout-content.s3.amazonaws.com/hop.png",
"categories": ["Bridge"],
"shortDescription": "Hop is a scalable rollup-to-rollup general token bridge. It allows users to send tokens from one rollup or sidechain to another almost immediately without having to wait for the networks challenge period.",
"site": "https://help.hop.exchange/hc/en-us/articles/4405172445197-What-is-Hop-Protocol-",
"description": "Hop is a scalable rollup-to-rollup general token bridge. It allows users to send tokens from one rollup or sidechain to another almost immediately without having to wait for the networks challenge period.",
@maxaleks
maxaleks / ipfs_deploy.sh
Last active May 21, 2019 13:32
Script for deploying an IPFS node on a server
#!/bin/sh
ssh root@$IP_ADDRESS << HERE
wget "https://dist.ipfs.io/go-ipfs/v0.4.20/go-ipfs_v0.4.20_linux-amd64.tar.gz"
tar xvfz go-ipfs_v0.4.20_linux-amd64.tar.gz
cd go-ipfs/
./install.sh
ipfs init -p server
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
import ListUtils BoolUtils
library First
let one_msg =
fun (msg : Message) =>
let nil_msg = Nil {Message} in
Cons {Message} msg nil_msg
pragma solidity 0.4.25;
contract Getter {
function getDragonGenome(uint256) external view returns (uint8[30]);
function getDragonTypes(uint256) external view returns (uint8[11]);
function getDragonTactics(uint256) external view returns (uint8, uint8);
function getDragonBattles(uint256) external view returns (uint16, uint16);
function getDragonSkills(uint256) external view returns (uint32, uint32, uint32, uint32, uint32);
function getDragonParents(uint256) external view returns (uint256[2]);
function getDragonSpecialAttack(uint256) external view returns (uint8, uint32, uint8, uint8);
library SafeMath8 {
function mul(uint8 a, uint8 b) internal pure returns (uint8) {
if (a == 0) {
return 0;
}
uint8 c = a * b;
assert(c / a == b);
return c;
}
const dotenv = require('dotenv');
const { toWei } = require('web3-utils');
const HDWalletProvider = require('truffle-hdwallet-provider');
const NonceTrackerSubprovider = require('web3-provider-engine/subproviders/nonce-tracker');
const Web3 = require('web3');
dotenv.config();
dotenv.config({ path: '.env.local' });