Skip to content

Instantly share code, notes, and snippets.

View HoneyIsMoney's full-sized avatar
🎯
Focusing

Green Hornet HoneyIsMoney

🎯
Focusing
  • buzzing around xDAI
View GitHub Profile
@HoneyIsMoney
HoneyIsMoney / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created March 6, 2022 13:15
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.9+commit.e5eed63a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@HoneyIsMoney
HoneyIsMoney / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created March 6, 2022 09: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.9+commit.e5eed63a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
const {ethers} = require('ethers')
const BN = ethers.BigNumber
const alvinAddress = '0x50DBde932A94b0c23D27cdd30Fbc6B987610c831'
const fromBlock = 14834211
const toBlock = 18032324
const ZERO_ADDRESS = '0x' + '0'.repeat(40)
const rpc = 'https://rpc.xdaichain.com/'

This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.

✅ did:3:bafyreidbz7lxk4lzwg5fddjxmywsjkxqxtrqoxyng4nfw6ecbstoanuhra ✅

Create your profile today to start building social connection and trust online at https://3Box.io/

const Web3 = require("web3");
const ethers = require("ethers");
const ethProvider = require("eth-provider");
const abi = require("web3-eth-abi");
const pkg = require("web3-utils");
const { keccak256 } = pkg;
// Settings
const lendingPool = "";
const voting = "";
import ethers from 'ethers';
import abi from 'web3-eth-abi';
import pkg from 'web3-utils';
const { keccak256 } = pkg;
import {private_key } from '../.config.mjs';
// main function
const run = async () => {
// 1. setup signer
address Payout Agave
0xb78afc3695870310e7c337afba7925308c1d946f 43.440
0xd7828a5b29e4ed87b4867061985b8ac1146d37fe 36.816
0xfa849619e9d240877f6a47b354934217250f1821 28.713
0xb3522064694ac9870dbf00eebc2712762193bb64 18.277
0x0f11796c594c7bdacf600bbd46f10d2aed2a37b5 18.254
0x0bd1454fa01dd11bf6646bf8bc17a3e48fda3734 14.456
0x7b11dba3c2fbba701d881e0e881d08d9655ab56f 11.910
0x3dfb65035f2648cf5d8ef6ded2694b01509fc408 7.934
0x64423ba257b031284e4456c85d48f9db258249e9 6.642
address Payout HNY
0xb78afc3695870310e7c337afba7925308c1d946f 11.328
0xd7828a5b29e4ed87b4867061985b8ac1146d37fe 9.506
0xfa849619e9d240877f6a47b354934217250f1821 7.278
0xb3522064694ac9870dbf00eebc2712762193bb64 4.408
0x0f11796c594c7bdacf600bbd46f10d2aed2a37b5 4.402
0x0bd1454fa01dd11bf6646bf8bc17a3e48fda3734 3.358
0x7b11dba3c2fbba701d881e0e881d08d9655ab56f 2.657
0x3dfb65035f2648cf5d8ef6ded2694b01509fc408 1.564
0x64423ba257b031284e4456c85d48f9db258249e9 1.209
@HoneyIsMoney
HoneyIsMoney / README.txt
Created February 28, 2021 08:18
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.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@HoneyIsMoney
HoneyIsMoney / README.txt
Created February 28, 2021 08: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.7.4+commit.3f05b770.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS