File | % Lines | % Statements | % Branches | % Funcs |
---|---|---|---|---|
../../node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol | 23.64% (13/55) | 22.58% (14/62) | 13.64% (3/22) | 27.78% (5/18) |
../../node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol | 0.00% (0/17) | 0.00% (0/23) | 0.00% (0/10) | 0.00% (0/7) |
../../node_modules/@openzeppelin/contracts/utils/Address.sol | 0.00% (0/26) | 0.00% (0/28) | 0.00% (0/16) | 0.00% (0/13) |
../../node_modules/@openzeppelin/contracts/utils/Context.sol |
0x646d94da79e83b3a47a2314351fdfe5fb32faa761c0e910c608c162e4380071d 0xd52C5795778Fee69F8606DC046C4Ceb45f882022 183.8638054802643 | |
0x5e19c865559453da150e572e7aba45c0d5eb44ca87255bf86faec29e2b8964f2 0x95B0cB330519DB2bCaf74B90C1BDe3D62f673718 255.0 | |
0x64010e6c5bec6b097fc4fb99777d43066972ee975eb527005fd2647f9060fa94 0x6ED916E093EbCCc790109f4a2073Bff50Cf9160E 160.0 | |
0xd4036dc2ebfbe84077eaee68afa55896923d7dc7e06d99a456e67df124e0026f 0xa15AAF9B9a85652CC7CD7fdA9f85e6404B806a50 306.55959715873496 | |
0x90ae6a4cae9680bf8a8ce51349527d99bffa349c0c3220bca341f6c220e4f889 0x6b238d58bd9238A65e3A1B59e52722866F026663 305.175497604689 | |
0x2d50bd9987843e53cef07047566e9b18689818edb7a469fdec169abc1eacbed6 0x8e0e3D4a18AA44904ebda87C5B42545d1cEC2e5f 151.0 | |
0x1035333143b435612c96883dcf620d7187a3a22e4952472338c19c51c6259a6b 0xa3301C1654895fCC8853BD622D0A43e7789706f7 97.09007708329183 | |
0xfd9725c3ccf21319c0f7ea612591b0f720a6c5c3f6bfd5a64c233be54803f2bb 0xb3fF73f6D56f381d093D1b2fb20215Aa2C79dA0E 150.09424332161646 | |
0x6730b5067944ef62b830b755cfe80ef40 |
from web3 import Web3 | |
import json | |
w3 = Web3(Web3.HTTPProvider(f'https://arb-mainnet.g.alchemy.com/v2/L_HXVya-RV6U6SwLHWf1eUdlgwN20J-7')) | |
m_address = "0xEcDF2cE74e19D4921Cc89fEfb963D35E0E5171D3" | |
datastore_address = "0xfd70de6b91282d8017aa4e741e9ae325cab992d8" | |
# marketToken | |
# indexToken |
from web3 import Web3 | |
import json | |
import pandas as pd | |
w3 = Web3(Web3.HTTPProvider(f'https://arb-mainnet.g.alchemy.com/v2/L_HXVya-RV6U6SwLHWf1eUdlgwN20J-7')) | |
# we need data for the following strike and maturity | |
strike = 204169420152563078078024764 | |
maturity = 1686830400 |
from web3 import Web3 | |
import json | |
w3 = Web3(Web3.HTTPProvider("https://rpc.mantle.xyz")) | |
# w3 = Web3(Web3.HTTPProvider("https://rpc.testnet.mantle.xyz")) | |
# w3 = Web3(Web3.HTTPProvider(f'https://arb-mainnet.g.alchemy.com/v2/L_HXVya-RV6U6SwLHWf1eUdlgwN20J-7')) | |
with open("abi/TimeswapV2PeripheryNoDexLendGivenPrincipal.json") as f: | |
abi_lend_given_principal_nodex = json.load(f)["abi"] |
# execute this at v2-deploy directory | |
import os | |
import json | |
path_name = './deployments/polygon' | |
files = (os.listdir(path_name)) | |
for file_name in files: | |
if file_name.endswith('.json'): | |
with open(path_name + '/' + file_name) as f: | |
d = json.load(f) | |
print("address of ", file_name, d['address']) |
▶forge test --match-test testFuzzDistributeTokenMultipleAddressesSuccess -vvvvv | |
[⠢] Compiling... | |
[⠊] Compiling 86 files with 0.8.17 | |
[⠘] Solc 0.8.17 finished in 27.91s | |
Compiler run successful | |
Running 1 test for test/utils/BatchDistributor.t.sol:BatchDistributorTest | |
[FAIL. Reason: Assertion failed. Counterexample: calldata=0xcc173d850000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000054a0000000000000000000000001804c8ab1f12e6bbf3894d4083f33e07309d1f3800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000026a0000000000000000000000000000000000000000000000000000000000000371000000000000000000000000000000000000000000000000000000000065737300000000000000000000000000000000000000000000000000000000000014b800000000000000000000000000000000000000000000000000000000000016a60000000000000000000000000000000000000000000000000 |
See this blog at MetaBrainz Blogs
Hi Everyone!
I am Shatabarto Bhattacharya (also known as riksucks on IRC and hrik2001 on Github). I am an undergraduate student pursuing Information Technology from UIET, Panjab University, Chandigarh, India. This year I participated in Google Summer of Code under MetaBrainz and worked on implementing a feature to send personal recommendation of a track to multiple followers, along with a write up. My mentors for this project were Kartik Ohri (lucifer on IRC) and Nicolas Pelletier (monkey on IRC)
For readers, who are not acquianted with ListenBrainz, it is a website where you can integrate multiple listening services and view and manage all your listens at a unified platform. One can not only peruse their own listening habits but also find other interesting listeners and interact with them. Moreover, one can even
import requests | |
import time | |
import datetime | |
import json | |
def search_pincode(numdays , pincode , min_age_limit = 18): | |
''' | |
numdays -- int that makes you look n days into the future | |
pincode -- put pincode in string | |
min_age_limit -- put 18 for 18+ (default) , 45 for 45+ and 0 for everyone |
from curses import * | |
def selector(a , stri): | |
'''a poorly written selector CLI curses selector, works for python3''' | |
for elements in a: | |
if type(elements) != str: | |
stdscr.refresh() | |
endwin() | |
return -1 |