Revert to working version (ede2dbf)

This commit is contained in:
JohnGuilding
2022-11-04 20:23:22 +00:00
parent 64a2d9f4be
commit 32f84e622a
2 changed files with 86 additions and 77 deletions

View File

@@ -4,20 +4,28 @@
This dApp was based off Challenge 3: Single Pool DEX from Speed Run Ethereum. It has been integrated with BLS Wallet, for more information see:
[BLS Wallet Github](https://github.com/web3well/bls-wallet)
[BLS Wallet homepage](https://blswallet.org/)
## Getting started
`yarn install`
`yarn start`
A new browser wallet is generated when you visit the site (just like Punk Wallet) and everything is deployed to Arbitrum Goerli.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
To get started you just need to transfer a tiny amount of testnet eth (like 0.01) to the browser wallet address. Then click the ethToToken function in the UI.
A new browser wallet is generated when you visit the site (just like [Punk Wallet](https://punkwallet.io/)) and everything is deployed to Arbitrum Goerli.
To get started you just need to transfer a tiny amount of testnet eth (like 0.01) to the browser wallet address. Then click the `ethToToken` function in the UI.
## Running locally
Coming soon... Instructions are not straightforward due to having to spin up two local aggregators (BLS Wallet components)
### BLS Wallet features
1. **Multi-action transactions** - seperate transactions can be bundled together into one e.g. approve and transferFrom. If you want to test that out, you can call the tokenToEth function after you've swapped eth for the erc20 token which includes approve and transferFrom function calls.
1. **Multi-action transactions** - separate transactions can be bundled together into one e.g. `approve` and `transferFrom`. If you want to test that out, you can call the `tokenToEth` function after you've swapped eth for the erc20 token which includes `approve` and `transferFrom` function calls.
2. **dApp-sponsored transactions** - all transactions are sponsored so the end user doesn't have to pay any transaction fees.
💬 If you have any questions, suggestions or comments then please reach out to me on Telegram: @JohnGuilding

View File

@@ -1,76 +1,77 @@
{
"name": "@scaffold-eth/monorepo",
"version": "1.0.0",
"keywords": [
"ethereum",
"react",
"uniswap",
"workspaces",
"yarn"
],
"private": true,
"scripts": {
"react-app:build": "yarn workspace @scaffold-eth/react-app build --max-old-space-size=12288",
"react-app:eject": "yarn workspace @scaffold-eth/react-app eject",
"react-app:start": "yarn workspace @scaffold-eth/react-app start",
"react-app:test": "yarn workspace @scaffold-eth/react-app test",
"build": "yarn workspace @scaffold-eth/react-app build --max-old-space-size=12288",
"prettier": "yarn workspace @scaffold-eth/react-app prettier",
"chain": "yarn workspace @scaffold-eth/hardhat chain",
"fork": "yarn workspace @scaffold-eth/hardhat fork",
"node": "yarn workspace @scaffold-eth/hardhat chain",
"test": "yarn workspace @scaffold-eth/hardhat test",
"start": "yarn workspace @scaffold-eth/react-app start",
"proxy": "yarn workspace @scaffold-eth/react-app proxy-aggregator",
"init-proxy": "yarn workspace @scaffold-eth/react-app init-proxy",
"compile": "yarn workspace @scaffold-eth/hardhat compile",
"deploy": "yarn workspace @scaffold-eth/hardhat deploy",
"verify": "yarn workspace @scaffold-eth/hardhat verify",
"watch": "yarn workspace @scaffold-eth/hardhat watch",
"accounts": "yarn workspace @scaffold-eth/hardhat accounts",
"balance": "yarn workspace @scaffold-eth/hardhat balance",
"send": "yarn workspace @scaffold-eth/hardhat send",
"ipfs": "yarn workspace @scaffold-eth/react-app ipfs",
"surge": "yarn workspace @scaffold-eth/react-app surge",
"s3": "yarn workspace @scaffold-eth/react-app s3",
"ship": "yarn workspace @scaffold-eth/react-app ship",
"generate": "yarn workspace @scaffold-eth/hardhat generate",
"account": "yarn workspace @scaffold-eth/hardhat account",
"mineContractAddress": "cd packages/hardhat && npx hardhat mineContractAddress",
"wallet": "cd packages/hardhat && npx hardhat wallet",
"fundedwallet": "cd packages/hardhat && npx hardhat fundedwallet",
"flatten": "cd packages/hardhat && npx hardhat flatten",
"clean": "cd packages/hardhat && npx hardhat clean",
"run-graph-node": "yarn workspace @scaffold-eth/services run-graph-node",
"remove-graph-node": "yarn workspace @scaffold-eth/services remove-graph-node",
"clean-graph-node": "yarn workspace @scaffold-eth/services clean-graph-node",
"graph-prepare": "mustache packages/subgraph/config/config.json packages/subgraph/src/subgraph.template.yaml > packages/subgraph/subgraph.yaml",
"graph-codegen": "yarn workspace @scaffold-eth/subgraph graph codegen",
"graph-build": "yarn workspace @scaffold-eth/subgraph graph build",
"graph-create-local": "yarn workspace @scaffold-eth/subgraph graph create --node http://localhost:8020/ scaffold-eth/your-contract",
"graph-remove-local": "yarn workspace @scaffold-eth/subgraph graph remove --node http://localhost:8020/ scaffold-eth/your-contract",
"graph-deploy-local": "yarn workspace @scaffold-eth/subgraph graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 scaffold-eth/your-contract",
"graph-ship-local": "yarn graph-prepare && yarn graph-codegen && yarn graph-deploy-local",
"deploy-and-graph": "yarn deploy && yarn graph-ship-local",
"theme": "yarn workspace @scaffold-eth/react-app theme",
"watch-theme": "yarn workspace @scaffold-eth/react-app watch",
"postinstall": "husky install"
},
"workspaces": {
"packages": [
"packages/*"
"name": "@scaffold-eth/monorepo",
"version": "1.0.0",
"keywords": [
"ethereum",
"react",
"uniswap",
"workspaces",
"yarn"
],
"nohoist": [
"**/@graphprotocol/graph-ts",
"**/@graphprotocol/graph-ts/**",
"**/hardhat",
"**/hardhat/**",
"**/hardhat-ts",
"**/hardhat-ts/**"
]
},
"dependencies": {},
"devDependencies": {
"husky": "^7.0.2"
}
"private": true,
"scripts": {
"react-app:build": "yarn workspace @scaffold-eth/react-app build --max-old-space-size=12288",
"react-app:eject": "yarn workspace @scaffold-eth/react-app eject",
"react-app:start": "yarn workspace @scaffold-eth/react-app start",
"react-app:test": "yarn workspace @scaffold-eth/react-app test",
"build": "yarn workspace @scaffold-eth/react-app build --max-old-space-size=12288",
"prettier": "yarn workspace @scaffold-eth/react-app prettier",
"chain": "yarn workspace @scaffold-eth/hardhat chain",
"fork": "yarn workspace @scaffold-eth/hardhat fork",
"node": "yarn workspace @scaffold-eth/hardhat chain",
"test": "yarn workspace @scaffold-eth/hardhat test",
"install": "yarn workspace @scaffold-eth/react-app install",
"start": "yarn workspace @scaffold-eth/react-app start",
"proxy": "yarn workspace @scaffold-eth/react-app proxy-aggregator",
"init-proxy": "yarn workspace @scaffold-eth/react-app init-proxy",
"compile": "yarn workspace @scaffold-eth/hardhat compile",
"deploy": "yarn workspace @scaffold-eth/hardhat deploy",
"verify": "yarn workspace @scaffold-eth/hardhat verify",
"watch": "yarn workspace @scaffold-eth/hardhat watch",
"accounts": "yarn workspace @scaffold-eth/hardhat accounts",
"balance": "yarn workspace @scaffold-eth/hardhat balance",
"send": "yarn workspace @scaffold-eth/hardhat send",
"ipfs": "yarn workspace @scaffold-eth/react-app ipfs",
"surge": "yarn workspace @scaffold-eth/react-app surge",
"s3": "yarn workspace @scaffold-eth/react-app s3",
"ship": "yarn workspace @scaffold-eth/react-app ship",
"generate": "yarn workspace @scaffold-eth/hardhat generate",
"account": "yarn workspace @scaffold-eth/hardhat account",
"mineContractAddress": "cd packages/hardhat && npx hardhat mineContractAddress",
"wallet": "cd packages/hardhat && npx hardhat wallet",
"fundedwallet": "cd packages/hardhat && npx hardhat fundedwallet",
"flatten": "cd packages/hardhat && npx hardhat flatten",
"clean": "cd packages/hardhat && npx hardhat clean",
"run-graph-node": "yarn workspace @scaffold-eth/services run-graph-node",
"remove-graph-node": "yarn workspace @scaffold-eth/services remove-graph-node",
"clean-graph-node": "yarn workspace @scaffold-eth/services clean-graph-node",
"graph-prepare": "mustache packages/subgraph/config/config.json packages/subgraph/src/subgraph.template.yaml > packages/subgraph/subgraph.yaml",
"graph-codegen": "yarn workspace @scaffold-eth/subgraph graph codegen",
"graph-build": "yarn workspace @scaffold-eth/subgraph graph build",
"graph-create-local": "yarn workspace @scaffold-eth/subgraph graph create --node http://localhost:8020/ scaffold-eth/your-contract",
"graph-remove-local": "yarn workspace @scaffold-eth/subgraph graph remove --node http://localhost:8020/ scaffold-eth/your-contract",
"graph-deploy-local": "yarn workspace @scaffold-eth/subgraph graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 scaffold-eth/your-contract",
"graph-ship-local": "yarn graph-prepare && yarn graph-codegen && yarn graph-deploy-local",
"deploy-and-graph": "yarn deploy && yarn graph-ship-local",
"theme": "yarn workspace @scaffold-eth/react-app theme",
"watch-theme": "yarn workspace @scaffold-eth/react-app watch",
"postinstall": "husky install"
},
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"**/@graphprotocol/graph-ts",
"**/@graphprotocol/graph-ts/**",
"**/hardhat",
"**/hardhat/**",
"**/hardhat-ts",
"**/hardhat-ts/**"
]
},
"dependencies": {},
"devDependencies": {
"husky": "^7.0.2"
}
}