Skip to content

Instantly share code, notes, and snippets.

[
{
"inputs": [
{
"internalType": "contract IPool",
"name": "pool",
"type": "address"
}
],
"stateMutability": "nonpayable",
[
{
"inputs": [
{
"internalType": "contract IPoolAddressesProvider",
"name": "provider",
"type": "address"
}
],
"stateMutability": "nonpayable",
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
@danielwpz
danielwpz / gist:7867f925ce705b7df93cc61f2b1c0807
Created June 7, 2023 06:29
AAVEWrappedTokenGatewayV3.json
[
{
"inputs": [
{
"internalType": "address",
"name": "weth",
"type": "address"
},
{
"internalType": "address",
[
{
"inputs": [
{
"internalType": "contract IPoolAddressesProvider",
"name": "provider",
"type": "address"
},
{
"internalType": "address",
[
{
"inputs": [
{
"internalType": "contract IEACAggregatorProxy",
"name": "_networkBaseTokenPriceInUsdProxyAggregator",
"type": "address"
},
{
"internalType": "contract IEACAggregatorProxy",
use near_contract_standards::non_fungible_token::{Token, TokenId};
use near_sdk::borsh::{self, BorshSerialize, BorshDeserialize};
use near_sdk::{
env, near_bindgen, require, AccountId, PanicOnDefault, Promise, ext_contract,
Gas, promise_result_as_success
};
#[near_bindgen]
#[derive(BorshSerialize, BorshDeserialize, PanicOnDefault)]
pub struct Foo {
const axios = require('axios')
const findDup = require('array-find-duplicates')
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min)) + min; //The maximum is exclusive and the minimum is inclusive
}
async function run () {

Keybase proof

I hereby claim:

  • I am danielwpz on github.
  • I am danielwpz (https://keybase.io/danielwpz) on keybase.
  • I have a public key ASBS0ckurxouahJA6HGnyA2u8fXWOmL4Tr_qNoT4H_ANFwo

To claim this, I am signing this object:

@danielwpz
danielwpz / build.sh
Created February 27, 2018 19:10
Shell script for macOS to build node.js in FIPS mode
#!/bin/bash
NODE_VERSION="8.9.3"
OPEN_SSL_FIPS_VERSION="2.0.16"
buildOpenSSLFips() {
curl -L http://www.openssl.org/source/openssl-fips-$OPEN_SSL_FIPS_VERSION.tar.gz -o openssl-fips-$OPEN_SSL_FIPS_VERSION.tar.gz
tar -xvzf openssl-fips-$OPEN_SSL_FIPS_VERSION.tar.gz
pushd openssl-fips-$OPEN_SSL_FIPS_VERSION