scopelift / zeneth Goto Github PK
View Code? Open in Web Editor NEW🏵️ Let Your ETH Chill — Gasless Ethereum account abstraction with Flashbots
Home Page: https://zeneth.app
License: MIT License
🏵️ Let Your ETH Chill — Gasless Ethereum account abstraction with Flashbots
Home Page: https://zeneth.app
License: MIT License
getting this error:
message: "err: max fee per gas less than block base fee: address, maxFeePerGas: 0 baseFee: 8; txhash 0x5ca323712793b97c1319fed36cc5229dbc4b5fb33b270a0f985c2c8de9d96c2f"
Note: look into other solutions
Note: Needs to be pinned to minor versions
.eth
name if one is returned instead of the full address. Show the address in a tooltip on hover.Next to "Miner Incentive Multiplier" add a little "Info Icon" (example here. When the user hovers over the (i), show a tooltip message that says: "The amount we'll multiply the prevailing market gas rate by when bribing the miner to incentivize them to include your transactions directly in the block."
In the header status widget, rather than showing the full connected address, show first four, "...", and last four. For example:
0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
would appear as 0xd8d...6045
Hovering over the truncated address should show a tooltip with the full address text.
The SwapBriber accrues ETH profits via trades. A privileged account needs the ability to withdraw these.
So that we can have a more precise verification of the estimateFee calculation, need stubs/mocks of the "getGasPrice", "getTokenPriceInUsd", and "getEthPriceInUsd" helper methods that return known values.
Im trying to run the relayer.test.ts
file but im getting error 0 gas price txs no longer accepted after eip-1559
const tx1 = {
chainId,
data: transferData,
from: user.address,
gasLimit: BigNumber.from('250000'),
gasPrice: Zero,
nonce,
to: dai.address,
value: Zero,
};
Attempts to import contract artifacts using...
import * as UniswapV2FactoryArtifact from '@uniswap/v2-core/build/UniswapV2Factory.json';
import * as UniswapV2Router02Artifact from '@uniswap/v2-periphery/build/UniswapV2Router02.json';
...fails with the following error...
Cannot find module '@uniswap/v2-core/build/UniswapV2Factory.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.ts(2732)
Also: ask Flashbots team about enabling CORS or whitelisting Zeneth
Want to add:
For each token, need to:
Using a contract will allow us to make the tx atomic, which should provide a bit of protection from uncle leak attacks of any kind.
Possible function signature:
function transferAndBribe(address _token, uint256 _tokenAmount, address _receiver, uint256 _ethBribe);
Possible function state vars:
uint256 fee
address owner
Function logic:
transferFrom
of _tokenAmount
of _token
(implies pre-approval)_ethBribe + fee
(via uniswap v2 router)transfer
amount of fee
to owner
transfer
amount of _ethBribe
to coinbasetransfer
remaining tokens to _receiver
Overall this would only need 2 txs, right?
transferAndBribe
function callOther thoughts/questions
owner
should be able to update fee
fee
somehow be dynamic, calculated as percentage of send, etc...?Max gas costs for:
Add to cacher
Create a token list for initial launch tokens that includes fields for gas estimation for each of these actions.
I am just playing around this project, further gas optimizations and flashbots. I am new with ethers-hardhat-typechain stack
While running npm build I am running into below type errors. Can you please suggest how to solve these issues
volta is installed
volta pin [email protected]
node -v v14.16.1
tsc -v
Volta error: Could not locate executable tsc
in your project.
Please ensure that all project dependencies are installed with npm install
or yarn install
volta pin yarn
yarn
yarn install v1.22.10 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... [2/4] Fetching packages... info [email protected]: The platform "linux" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. info [email protected]: The platform "linux" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-js > @flashbots/[email protected]" has incorrect peer dependency "ethers@^5.1.4". warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-frontend > [email protected]" has incorrect peer dependency "ethers@^4". warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-frontend > [email protected]" has incorrect peer dependency "react@^16.8". warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-frontend > [email protected]" has incorrect peer dependency "react-dom@^16.8". warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-contracts > hardhat-gas-reporter > [email protected]" has unmet peer dependency "@codechecks/client@^0.1.0". warning "workspace-aggregator-ab8edd8e-278f-40ee-9168-559e4c7ad63d > @scopelift/zeneth-frontend > web3-react > @0x/subproviders > eth-lightwallet > [email protected]" has incorrect peer dependency "bitcore-lib@^0.16.0". [############################################################################################################################################################---------------------------------] 53463/64956^[4/4] Building fresh packages... [8/16] ⠈ keccak [-/16] ⠈ waiting... [-/16] ⠈ waiting... [15/16] ⠈ node-hid
$ husky install && lerna run prepare husky - Git hooks installed lerna notice cli v4.0.0 lerna info versioning independent lerna info Executing command in 1 package: "yarn run prepare" @scopelift/zeneth-js: yarn run v1.22.10 @scopelift/zeneth-js: $ yarn build @scopelift/zeneth-js: $ tsc --build @scopelift/zeneth-js: Done in 0.70s. lerna success run Ran npm script 'prepare' in 1 package in 1.1s: lerna success - @scopelift/zeneth-js Done in 226.56s.
tsc -v
Version 4.2.4
yarn build
yarn run v1.22.10 $ lerna run build lerna notice cli v4.0.0 lerna info versioning independent lerna info Executing command in 3 packages: "yarn run build" @scopelift/zeneth-contracts: $ hardhat compile @scopelift/zeneth-js: $ tsc --build @scopelift/zeneth-frontend: $ next build @scopelift/zeneth-frontend: info - Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5 @scopelift/zeneth-frontend: info - Checking validity of types... @scopelift/zeneth-contracts: Solidity 0.8.4 is not fully supported yet. You can still use Hardhat, but some features, like stack traces, might not work correctly. @scopelift/zeneth-contracts: Learn more at https://hardhat.org/reference/solidity-support" @scopelift/zeneth-contracts: Nothing to compile @scopelift/zeneth-frontend: Failed to compile. @scopelift/zeneth-frontend: ./src/components/Connection.tsx:37:28 @scopelift/zeneth-frontend: Type error: Binding element 'props' implicitly has an 'any' type. @scopelift/zeneth-frontend: 35 | } @scopelift/zeneth-frontend: 36 | @scopelift/zeneth-frontend: > 37 | const ConnectionModal = ({ props }) => { @scopelift/zeneth-frontend: | ^ @scopelift/zeneth-frontend: 38 | const { clearModal } = useContext(ModalContext); @scopelift/zeneth-frontend: 39 | const { connector, chainId, activate, deactivate, error } = useWeb3React<Web3Provider>(); @scopelift/zeneth-frontend: 40 | const { activatingConnector, setActivatingConnector, triedEager } = props; @scopelift/zeneth-contracts: Creating Typechain artifacts in directory typechain for target ethers-v5 @scopelift/zeneth-frontend: error Command failed with exit code 1. @scopelift/zeneth-frontend: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. lerna ERR! yarn run build exited 1 in '@scopelift/zeneth-frontend' lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Hard requirements for the absolute MVP to get to mainnet:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.