Skip to content

Instantly share code, notes, and snippets.

View must479's full-sized avatar

Must479 must479

  • indonesia
View GitHub Profile
@must479
must479 / verified-sources...0xDd9395cAb14e4C788ca0BFdBabB53f744Dac6ebA...metadata.json
Created January 5, 2023 01:25
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=
{
"compiler": {
"version": "0.8.17+commit.8df45f5f"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
@must479
must479 / hooks...build
Created January 4, 2023 11:17
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.5.11+commit.22be8592.js&optimize=false&runs=200&gist=
#!/bin/bash
# DockerHub automated build override
# $IMAGE_NAME var is injected into the build so the tag is correct.
docker build \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
-t $IMAGE_NAME .
@must479
must479 / .github...workflows...run-solidity-unittesting.yml
Created December 23, 2022 05:24
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=undefined&optimize=undefined&runs=undefined&gist=
name: Running Solidity Unit Tests
on: [push]
jobs:
run_sol_contracts_job:
runs-on: ubuntu-latest
name: A job to run solidity unit tests on github actions CI
steps:
- name: Checkout
@must479
must479 / .deps...npm...forge-std...Script.sol
Created December 5, 2022 14:14
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.15+commit.e14f2714.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.6.0 <0.9.0;
import "./Vm.sol";
import "./console.sol";
import "./console2.sol";
abstract contract Script {
address constant private VM_ADDRESS =
address(bytes20(uint160(uint256(keccak256('hevm cheat code')))));
@must479
must479 / .deps...npm...forge-std...Script.sol
Created December 5, 2022 14:08
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.15+commit.e14f2714.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.6.0 <0.9.0;
import "./Vm.sol";
import "./console.sol";
import "./console2.sol";
abstract contract Script {
address constant private VM_ADDRESS =
address(bytes20(uint160(uint256(keccak256('hevm cheat code')))));
@must479
must479 / .deps...npm...forge-std...Script.sol
Created December 5, 2022 14:07
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.15+commit.e14f2714.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.6.0 <0.9.0;
import "./Vm.sol";
import "./console.sol";
import "./console2.sol";
abstract contract Script {
address constant private VM_ADDRESS =
address(bytes20(uint160(uint256(keccak256('hevm cheat code')))));
@must479
must479 / .deps...npm...forge-std...Script.sol
Created December 5, 2022 14:03
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.15+commit.e14f2714.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.6.0 <0.9.0;
import "./Vm.sol";
import "./console.sol";
import "./console2.sol";
abstract contract Script {
address constant private VM_ADDRESS =
address(bytes20(uint160(uint256(keccak256('hevm cheat code')))));
@must479
must479 / .deps...npm...forge-std...Script.sol
Created December 5, 2022 13:50
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.15+commit.e14f2714.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.6.0 <0.9.0;
import "./Vm.sol";
import "./console.sol";
import "./console2.sol";
abstract contract Script {
address constant private VM_ADDRESS =
address(bytes20(uint160(uint256(keccak256('hevm cheat code')))));
@must479
must479 / .git...HEAD
Created December 4, 2022 08:26
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.15+commit.e14f2714.js&optimize=false&runs=200&gist=
ref: refs/heads/main
@must479
must479 / .git...HEAD
Created December 4, 2022 08:24
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.15+commit.e14f2714.js&optimize=false&runs=200&gist=
ref: refs/heads/main