Skip to content

Instantly share code, notes, and snippets.

View eliyahud's full-sized avatar

Eliyahu Gusovsky eliyahud

  • Jerusalem, Israel
View GitHub Profile
This file has been truncated, but you can view the full file.
{
"id": "0ea7248999b7e998204ab67060cae32c",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.7",
"solcLongVersion": "0.8.7+commit.e28d00a7",
"input": {
"language": "Solidity",
"sources": {
"contracts/lib/SafeERC20.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.7;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\n\n/**\n * @title SafeERC20\n * @notice Works around implementations of ERC20 with transferFrom not returning success status.\n */\nlibrary SafeERC20 {\n /**\n * @notice Call transferFrom ERC20 function and validates the return data of a ERC20 contract call.\n * @dev This is necessary because of non-standard ERC20 tokens that don't have a return value.\n * @return result The return value of the ERC20 call, returning true for non-standard tokens\n */\n function safeTransferFrom(\n IERC20 token,\n address from,\n address to,\n uint256 amount\n ) internal returns (bool result) {
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: fast
parameters:
type: pd-ssd
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Delete
volumeBindingMode: Immediate
@eliyahud
eliyahud / 0_reuse_code.js
Created March 11, 2014 09:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console