Skip to content

Commit

Permalink
swap
Browse files Browse the repository at this point in the history
  • Loading branch information
rchak007 committed Jun 4, 2024
1 parent d1afe62 commit acc14ab
Show file tree
Hide file tree
Showing 7 changed files with 1,587 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .env copy
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DEV_PASSPHRASE="Bond0070$"
SEPOLIA_RPC_URL="https://eth-sepolia.g.alchemy.com/v2/alcht_qTqyinch9eBi0vF09MR064gABbQbLI"
MNEMONIC="here is where your extracted twelve words mnemonic phrase should be put"
PRIVATE_KEY="8be727fdeb112e7a0fc63b1b8582e0ae933fe4b26c2db8722147384108f77e73"
PRIVATE_KEY2="baf16cf0fd7302e963d01b0e0185bfd8a125aec661ced3669ee345ecb928b9dc"
PRIVATE_KEY3="78f43105e544a9a1fc72612a2491c8123a14a3e6df245164084c10fa38d84079"
POKT_API_KEY="********************************"
INFURA_API_KEY="********************************"
INFURA_API_SECRET="********************************"
ALCHEMY_API_KEY="alcht_qTqyinch9eBi0vF09MR064gABbQbLI"
ETHERSCAN_API_KEY="E6RSVJDUQT2CTR8R4NVXGXRAWDUTNJAYZW"
TOKEN_ADDRESS="0xA7C36711208b0D6c2dC417fD6fA806746194256D"
RPC_ENDPOINT_URL="https://eth-sepolia.g.alchemy.com/v2/alcht_qTqyinch9eBi0vF09MR064gABbQbLI"
168 changes: 168 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
.chalice/deployments/
.chalice/deployed/
.chalice/venv/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
.ruff_cache

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

**/*.DS_Store
**/*.onnx
**/*.txt
**/*.jpg
**/*.whl
**/data
*.sierra
*.proof

# Pip files
pydantic-1.x
pydantic-2.x

# Private Key info
pk.txt

# Forge Compiler files
# examples/on-chain-mnist/contracts/cache/
# examples/on-chain-mnist/contracts/out/

# Poetry lock file
poetry.lock

# Cairo example files
examples/on-chain_mnist/cairo/

examples/on-chain_mnist/cairo/lofi_mnst_2
examples/on-chain_mnist/cairo/soft
examples/on-chain_mnist/cairo/mnist_sierra
examples/on-chain_mnist/contracts/out

# cache files
tmp
77 changes: 76 additions & 1 deletion GizathonHackathon.md
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ Enhance the security of your account by adding additional random input:
Show mnemonic? [Y/n]: Y
Create Passphrase to encrypt account:
Repeat for confirmation:
INFO: Newly generated mnemonic is:XXX
INFO: Newly generated mnemonic is:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SUCCESS: A new account '0x39BaE1e8dEc32d94181bCDa1DC25218Ef57a12c2' with HDPath m/44'/60'/0'/0/0 has been added with the id 'giza1'
sent .1 ETH from my other Sepolia;
Expand Down Expand Up @@ -1539,3 +1539,78 @@ $ giza verify --proof-id 967
```
# Portfolio Manager Project
Sepolia - used chrome - on LL laptop - centralG profile for metamask.
## documentation
### Ape
https://docs.apeworx.io/ape/stable/userguides/accounts.html
https://docs.stackup.sh/docs/supported-erc-20-tokens
### ETH to token swap
https://www.quicknode.com/guides/defi/dexs/how-to-swap-tokens-on-uniswap-with-ethersjs
https://ethereum.stackexchange.com/questions/111799/programmatically-wrap-eth-by-interacting-with-wrapped-ether-contract-in-web3-py
This is WETH mint;
[Sepolia Transaction Hash (Txhash) Details | Etherscan](https://sepolia.etherscan.io/tx/0x93e23ff8660d8ff10be6779cafdfac2cb1a0de03785a7bd996bb24a72ca03c25)
### Create Agent
https://docs.gizatech.xyz/tutorials/ai-agents/using-arbitrum-with-ai-agents
looking at Aritrum example
```bash
giza agents create --endpoint-id <endpoint-id> --name <agent name> --description <agent description>
From earlier Diabetes example- gizaTest1.ipynb
[giza][2024-05-29 23:53:51.335] Endpoint created with id -> 234 ✅
giza agents create --endpoint-id 234 --name gizaTest1 --description diabetesTest
```
46 changes: 46 additions & 0 deletions addresses.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# source: https://docs.uniswap.org/contracts/v3/reference/deployments
ADDRESSES = {
"WETH": {
1: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
11155111: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
42161: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
},
"WBTC": {
1: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
# 11155111: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
11155111: "0x779877A7B0D9E8603169DdbD7836e478b4624789",
5: "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
42161: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
},
"UNI": {
1: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
11155111: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
5: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
42161: "0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0",
},
"USDC": {
1: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
11155111: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
5: "",
42161: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
},
"NonfungiblePositionManager": {
1: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
11155111: "0x1238536071E1c677A632429e3655c799b22cDA52",
5: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
42161: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
},
"PoolFactory": {
1: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
11155111: "0x0227628f3F023bb0B980b67D528571c95c6DaC1c",
5: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
42161: "0x1F98431c8aD98523631AE4a59f267346ea31F984",
},
"Router": {
1: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
11155111: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
5: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
42161: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
},
}
Loading

0 comments on commit acc14ab

Please sign in to comment.