This file contains 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
import { TelegramClient } from 'telegram'; | |
import { StringSession } from 'telegram/sessions'; | |
import { Api } from 'telegram'; | |
import { NewMessage } from 'telegram/events'; | |
import * as fs from 'fs'; | |
import OpenAI from "openai"; | |
const openai = new OpenAI({ apiKey: ''}); |
This file contains 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
package main | |
import ( | |
// "encoding/hex" | |
"fmt" | |
"github.com/scroll-tech/zktrie/trie" | |
"github.com/ethereum/go-ethereum/common" | |
zkt "github.com/scroll-tech/zktrie/types" | |
) |
This file contains 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
from web3 import Web3 | |
import json | |
from eth_utils import remove_0x_prefix, to_int, to_checksum_address, to_hex | |
# Connect to an Ethereum node | |
w3 = Web3(Web3.HTTPProvider('https://scroll-mainnet.public.blastapi.io')) | |
# User's Address and Token Address | |
token_address = '0x5300000000000000000000000000000000000004' # weth address | |
user_address = '0xeFaAE8E0381bD4e23CE9A662cfA833Fb4ED916e5' # whale on scroll |
This file contains 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
# Zuzalu Improvement Proposals | |
- **zk-enabled for voting**: A secure and anonymous voting system for all Zuzalu members. | |
- **High Council of Elders**: The main governing body that holds the brand assets and dictates its usage. | |
- **Guild Council(s)**: These councils are voted into existence or dissolved as needed. Some of the active ones include: | |
- ZuConnect (devcon-nect follow-on) | |
- HackZuzalu (hackathons) | |
- Zuzalu (main yearly event) | |
- **Quests we can vote on**: | |
- Guild Approvals: This gives councils the stamp of approval to join the system. | |
- Event Approvals: This approves the event brought up by a council |
This file contains 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.0; | |
// Importing the necessary Gnosis Safe contracts | |
import "@gnosis.pm/safe-contracts/contracts/interfaces/ISignatureValidator.sol"; | |
import "@gnosis.pm/safe-contracts/contracts/base/Module.sol"; | |
import "@gnosis.pm/safe-contracts/contracts/common/Enum.sol"; | |
import "@gnosis.pm/safe-contracts/contracts/interfaces/IGnosisSafe.sol"; | |
/// @title WhitelistedExecutionModule |
This file contains 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
{ | |
"success": true, | |
"result": { | |
"name": "Bridged Tokens", | |
"version": { | |
"major": 1, | |
"minor": 0, | |
"patch": 0 | |
}, | |
"logoURI": "https://wallet-asset.matic.network/img/tokens/eth.svg", |
This file contains 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.0; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import "@openzeppelin/contracts/access/Ownable2Step.sol"; | |
import "@openzeppelin/contracts/security/Pausable.sol"; | |
/** | |
* @title TokenWrapper |
This file contains 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
openapi: 3.0.0 | |
info: | |
title: KyberSwap API | |
version: 1.0.0 | |
servers: | |
- url: 'https://aggregator-api.kyberswap.com' | |
paths: | |
/v1/routes: | |
get: | |
summary: Get routes |
This file contains 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
openapi: "3.0.0" | |
info: | |
version: "1.0.0" | |
title: "Beefy Finance API" | |
description: "API documentation for Beefy Finance" | |
servers: | |
- url: https://api.beefy.finance | |
paths: | |
/vaults: | |
get: |
This file contains 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 | |
/// @title Minuscule Key-Value Store | |
/// @notice A contract that allows users to store and retrieve key-value pairs on-chain | |
/// @dev Uses EIP-712 signatures to ensure that only authorized relayers can execute key-value changes | |
/// @dev Users sign a message that authorizes a specific relayer address to execute the change | |
/// @dev The signature acts as an API key, and is only valid for a certain period of time | |
contract Minuscule { | |
using ECDSA for bytes32; |
NewerOlder