This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Updated script, called with sudo -E bash bot.sh | |
set -o pipefail | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.28; | |
contract Test { | |
uint256 public counter; | |
uint256 public addressCounter; | |
struct StructAmount { | |
uint256 amount; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pre-install: | |
uv framework (https://astral.sh/blog/uv) | |
make init (build backend and frontend) | |
source .venv/bin/activate; langflow run --host 0.0.0.0 (local launch) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def validate_signature(self, wallet_data): | |
logger.info(f"Data for validation:: {wallet_data}") | |
logger.info(f"Pub key: {wallet_data['public_key']}") | |
public_key = base64.b64decode(wallet_data["public_key"]) | |
message = base64.b64decode(wallet_data["message"]) | |
signature = base64.b64decode(wallet_data["signature"]) | |
pub_key_obj = PublicKey(public_key) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*Submitted for verification at Etherscan.io on 2022-10-14 | |
*/ | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.13; | |
contract MultiSigWallet { | |
event Deposit(address indexed sender, uint amount, uint balance); | |
event SubmitTransaction( |