Skip to content

Instantly share code, notes, and snippets.

View edwinosky's full-sized avatar
🏠
Working from home

edwinosky.eth edwinosky

🏠
Working from home
View GitHub Profile
@edwinosky
edwinosky / tx_logs
Created August 30, 2024 04:58
logs
Transaction details
0x32ae30c1f6dfcda09f8ab837aa705f9e09bd9a27507b254568534f83809d086c
Details
Token transfers
Internal txns
Logs
@edwinosky
edwinosky / py
Created August 30, 2024 04:57
run.py
import random
from web3 import Web3
# Configuración de Web3
w3 = Web3(Web3.HTTPProvider('https://testnet.storyrpc.io'))
# Direcciones y claves
wallet_address = Web3.to_checksum_address('0x3b3b872dfb380fc2feb97438971bc947bce9199f')
private_key = 'dee3b12b2a830a6e07f5f469872b5b21ca44861eb68e8061c1a6e0d1cf1e7787'
contract_address = Web3.to_checksum_address('0xB4a7Ea1f7874D0C55f19CB6a37aeB3F41a910276')
@edwinosky
edwinosky / betting.sol
Created August 26, 2024 03:44
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.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
contract BettingContract is Ownable, ReentrancyGuard {
AggregatorV3Interface internal priceFeed;
@edwinosky
edwinosky / keybase.md
Created February 26, 2024 13:45
keybase.md

Keybase proof

I hereby claim:

  • I am edwinosky on github.
  • I am edwinosky (https://keybase.io/edwinosky) on keybase.
  • I have a public key ASBIsVQq_zO3o4X9i-mCXhnDKnMYapWSd-IF1KQfM0Eb8Ao

To claim this, I am signing this object:

@edwinosky
edwinosky / erc20-token-sample.sol
Created May 8, 2021 01:09 — forked from bajcmartinez/erc20-token-sample.sol
Necessary code to generate an ERC20 Token
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : LCST
// Name : LCS Token
// Total supply : 100000
// Decimals : 2
// Owner Account : 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe