Skip to content

ExtropyIO/Pragma-Oracle-Hackathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custard Watchtower

Project Description

Custard Watchtower is a watchtower project where users can submit their account address through an interface and get notified when their wallet enters through a recovery phase mode.

How to run

  • docker run -it -p 3306:3306 -e MYSQL_ROOT_PASSWORD="default_password" -e MYSQL_DATABASE="checkpoint" mysql:8.0 "--default-authentication-plugin=mysql_native_password"

  • Fill in `.env' file with DATABASE_URL and TELEGRAM_TOKEN. For docker use mysql://root:default_password@localhost:3306/checkpoint as your .env files DATABASE_URL value .

  • yarn

  • yarn dev

How to use

  • Go to https://t.me/CustardWalletBot and track on of our Smart Contract wallets.
  • Invoke change_guardian or trigger_escape_guardian on the tracked wallet.

Troubleshooting

  • For an error message saying something about starknet_undefined network:
    • restart the script
    • ev. restart the docker mysql
  • For an error message saying something abouut checkpoint reset:
    • delete mysql contrainer and start a new one
  • If your script is too many blocks behind:
    • change start value in backend/src/config.json

Deploy a new account:

Create a new keypair with Public Key / Private Key with walletgen.mjs. NOTE! This is strictly for the sake of demonstration.

starknet deploy --class_hash 0x6b2231ce4ea477dc80205a0070c36a1b4203e295393b252231bcb212cb6470e --account version_2 --inputs PUBLIC_KEY 0 0

Accounts deployed on Testnet:

Account Number Account Address
Account 1 (0x02f03dfb2b6cbe56b5cacde459d68fcbaeeb1603b24a0057e514485045613fc1)[https://testnet.starkscan.co/contract/0x02f03dfb2b6cbe56b5cacde459d68fcbaeeb1603b24a0057e514485045613fc1]
Account 2 (0x06e36c0f972bd2ac06124738eeb67b65fc64ce96d0ea6276cc87e66c5a5a2ad0)[https://testnet.starkscan.co/contract/0x06e36c0f972bd2ac06124738eeb67b65fc64ce96d0ea6276cc87e66c5a5a2ad0]
Account 3 (0x05d7e5a89880d45ba34ac9624ba80798e2107aa4af232668115b5d4ed1a06b6b)[https://testnet.starkscan.co/contract/0x05d7e5a89880d45ba34ac9624ba80798e2107aa4af232668115b5d4ed1a06b6b]

Hackathon Resources:

General

Hackathon: https://taikai.network/pragma-oracle/hackathons/Cairo1hackathon

Kick-off video: https://www.twitch.tv/videos/1843493291

Checkpoint

https://docs.checkpoint.fyi/tutorials/ep1-get-started

https://www.twitch.tv/videos/1845974575

https://www.youtube.com/watch?v=OY6NJQtVO20

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •