Skip to content

Instantly share code, notes, and snippets.

View 0xV4L3NT1N3's full-sized avatar

nic | nic.ethkl.eth 0xV4L3NT1N3

View GitHub Profile
{
"0x8d07D225a769b7Af3A923481E1FdF49180e6A265": {
"twitter": {
"timestamp": 1608056072431,
"tweetID": "1338910142859862017",
"handle": "MonetSupply"
}
},
"0x4306D8e8AC2a9C893Ac1cd137a0Cd6966Fa6B6Ff": {
"twitter": {
@0xV4L3NT1N3
0xV4L3NT1N3 / main.dart
Created July 1, 2021 04:16
A function calling another function
void main() {
// function to get person's name
String getName() {
return 'kenz';
}
// function to add hello to the name
String sayHello() {
// calling another function getName()
@0xV4L3NT1N3
0xV4L3NT1N3 / full.json
Created November 15, 2021 04:06
Arbitrum Icons
{
"name":"Arbed Full",
"timestamp":"2021-11-15T04:04:43.027Z",
"version":{
"major":1,
"minor":0,
"patch":0
},
"tokens":[
{
@0xV4L3NT1N3
0xV4L3NT1N3 / PRBProxyFactory.sol
Last active December 16, 2021 05:58
Flattened file
// Sources flattened with hardhat v2.6.8 https://hardhat.org
// File contracts/IPRBProxy.sol
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.4;
/// @title IPRBProxyq
/// @author Paul Razvan Berg
/// @notice Proxy contract to compose transactions on owner's behalf.
@0xV4L3NT1N3
0xV4L3NT1N3 / tokenURI.json
Created March 9, 2022 18:53
Uniswap V3 Liquidity NFT TokenURI
{
"name":"Uniswap - 0.3% - USDT/WETH - 0.00029187<>0.00029540",
"description":"This NFT represents a liquidity position in a Uniswap V3 USDT-WETH pool. The owner of this NFT can modify or redeem the position.\n\nPool Address: 0x4e68ccd3e89f51c3074ca5072bbac773960dfa36\nUSDT Address: 0xdac17f958d2ee523a2206206994597c13d831ec7\nWETH Address: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2\nFee Tier: 0.3%\nToken ID: 172\n\n⚠️ DISCLAIMER: Due diligence is imperative when assessing this NFT. Make sure token addresses match the expected tokens, as token symbols may be imitated.",
"image":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkwIiBoZWlnaHQ9IjUwMCIgdmlld0JveD0iMCAwIDI5MCA1MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnPjxkZWZzPjxmaWx0ZXIgaWQ9ImYxIj48ZmVJbWFnZSByZXN1bHQ9InAwIiB4bGluazpocmVmPSJkYXRhOmltYWdlL3N2Zyt4bWw7YmFzZTY0LFBITjJaeUIzYVdSMGFEMG5Namt3SnlCb1pXbG5hSFE5SnpVd01DY2dkbWxsZDBKdmVEMG5NQ0F3SURJNU1DQTFNREFuSUhodGJHNXpQU2RvZEhSd09pOHZkM2Qz
@0xV4L3NT1N3
0xV4L3NT1N3 / verified-sources...0xBD8120B63609fb5B924A3B6D55aE304B17340AB5...constructor-args.txt
Created September 7, 2022 19:34
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
0x0000000000000000000000001f513585d8bb1f994b37f2aaab3f8499e52ca534
@0xV4L3NT1N3
0xV4L3NT1N3 / hardhat.config.js
Last active September 30, 2022 12:29
Sample Hardhat config
solidity: {
version: "0.8.10",
settings: {
metadata: {
// disable bytecode hash
bytecodeHash: "none",
},
optimizer: {
enabled: true,
runs: 200,
@0xV4L3NT1N3
0xV4L3NT1N3 / call.json
Created November 28, 2022 06:40
Get Address Token Balance - 0x979Fb13C318A0D7FF31f58A5E76A5F75A09e12a7
{
"status":"1",
"message":"OK",
"result":[
{
"TokenAddress":"0x5b78ada2bc3b70cebb65b7218811ece961a50d10",
"TokenName":"Iceswap",
"TokenSymbol":"ICE",
"TokenQuantity":"1000000",
"TokenDivisor":"0"
@0xV4L3NT1N3
0xV4L3NT1N3 / solc.json
Created November 29, 2022 03:58
Sample Solidity Json Input for Etherscan Verification
{
"language":"Solidity",
"sources":{
"project:/contracts/floki.sol":{
"content":"/**\r\n *Submitted for verification at snowtrace.io on 2022-09-27\r\n*/\r\n\r\n// File: contracts/interfaces/IVaultFactory.sol\r\n\r\n\r\npragma solidity 0.8.4;\r\n\r\ninterface IVaultFactory {\r\n function notifyUnlock(bool isCompletelyUnlocked) external;\r\n}\r\n\r\n// File: contracts/interfaces/IVault.sol\r\n\r\n\r\npragma solidity 0.8.4;\r\n\r\ninterface IVault {\r\n function getBeneficiary() external view returns (address);\r\n}\r\n\r\n// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\r\n\r\n\r\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @title ERC721 token receiver interface\r\n * @dev Interface for any contract that wants to support safeTransfers\r\n * from ERC721 asset contracts.\r\n */\r\ninterface IERC721Receiver {\r\n /**\r\n * @dev Whenever an {IERC721} `tokenId` token is transferre
@0xV4L3NT1N3
0xV4L3NT1N3 / settings.js
Last active February 17, 2023 06:35
Solidity Standard Json with viaIR setting
module.exports = {
solidity: {
version: "0.8.9",
settings: {
viaIR: true,
},
},
};