Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:feat add send logic #2173

Merged
merged 162 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from 158 commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
a7c7ce0
feat(swap): add swap view
Cali93 Nov 21, 2023
9693a2a
refactor: update swap view ui (#1492)
enesozturk Nov 22, 2023
fff2914
chore: fix ts issues
enesozturk Nov 22, 2023
e3eca53
feat(1inch-api): request data from 1inch swap API (#1497)
Cali93 Nov 24, 2023
fedbb87
fix(multiple-requests): fix multiple requests issue
Cali93 Nov 24, 2023
9cf5b70
feat: implement remaining pages and ui components (#1493)
enesozturk Nov 24, 2023
d5ee070
refactor: update swap token state logics
enesozturk Nov 24, 2023
66061e9
fix(swaps): fix input onChange
Cali93 Nov 24, 2023
7bf805c
refactor: update all swap comps
enesozturk Mar 5, 2024
671cdd7
chore: update styles, remove unused functions
enesozturk Mar 5, 2024
b00813d
refactor: add amount input validation and formatting
enesozturk Mar 5, 2024
a93aaf7
chore: comment client methods
enesozturk Mar 5, 2024
ffaa666
chore: update lock file
enesozturk Mar 5, 2024
bf39179
refactor: ui changes, add gas price API
enesozturk Mar 6, 2024
7c4a76f
fix: build issues
enesozturk Mar 6, 2024
8781d6b
fix: linter issues
enesozturk Mar 6, 2024
82ebc55
fix: type error
enesozturk Mar 6, 2024
83ff610
refactor: update controller values, calculations, separate components
enesozturk Mar 7, 2024
ae8eed4
fix: build issues
enesozturk Mar 7, 2024
fac33b5
refactor: handle TX success
enesozturk Mar 8, 2024
452e158
feat: calculate price impact and slippage values
enesozturk Mar 11, 2024
25bca0b
chore: remove unused variables
enesozturk Mar 11, 2024
c1d511d
feat: add search, separate utils
enesozturk Mar 11, 2024
a7ec5b9
fix: linter issues
enesozturk Mar 11, 2024
554bc85
refactor: separate convert controllers
enesozturk Mar 15, 2024
5d1ca7d
chore: remove convert from default account view
enesozturk Mar 15, 2024
7ded284
refactor: improve business logics
enesozturk Mar 15, 2024
0144050
refactor: linter and build issues
enesozturk Mar 15, 2024
4c49f3b
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Mar 18, 2024
2836515
Merge branch 'V4' into feat/1inch-swaps
enesozturk Mar 19, 2024
a4f6d95
refactor: update token button usage
enesozturk Mar 19, 2024
4e2b47c
feat: add gas price checking
enesozturk Mar 21, 2024
0d66179
feat: add bignumber.js, refactor convert business logics
enesozturk Mar 22, 2024
f07dfdf
refactor: update price impact calculation method
enesozturk Mar 22, 2024
3cf32e3
chore: add suggested tokens list
enesozturk Mar 22, 2024
8ea56d7
chore: linter issues
enesozturk Mar 22, 2024
c63f4e6
fix: build and linter issues
enesozturk Mar 22, 2024
7f6e739
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Mar 27, 2024
8c3d915
feat: add new ui components for different variations of transaction UIs
enesozturk Mar 28, 2024
b8eb024
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Mar 28, 2024
877dee8
Merge branch 'V4' into feat/1inch-swaps
enesozturk Mar 28, 2024
a80ec50
feat: ui/styling improvements
enesozturk Apr 1, 2024
220a2d2
refactor: approve transaction view opening business logic
enesozturk Apr 1, 2024
af14fbc
chore: convert details section styling
enesozturk Apr 1, 2024
e249bd3
Merge branch 'V4' into feat/1inch-swaps
enesozturk Apr 2, 2024
c37cf68
chore: set native token as source token when reset state
enesozturk Apr 2, 2024
b8750a3
refactor: approve transaction iframe position stylings
enesozturk Apr 2, 2024
ddcdaa0
chore: update lock file
enesozturk Apr 2, 2024
9cf0ca0
feat: implement new lab with tailwind and shadcn comps
enesozturk Apr 2, 2024
bd165ae
chore: update lock file
enesozturk Apr 2, 2024
00e0d0f
chore: w3m color variables
enesozturk Apr 2, 2024
e5916f9
chore: fix package versions and format files
enesozturk Apr 2, 2024
63a6cf1
chore: add sonner
enesozturk Apr 2, 2024
1d75013
fix: toast call
enesozturk Apr 2, 2024
d11964a
chore: remove brackets for string props
enesozturk Apr 2, 2024
0c00a32
chore: remove loose dependency
enesozturk Apr 2, 2024
56db6d2
chore: hydration and styling issues
enesozturk Apr 2, 2024
6e7f04e
chore: svg props
enesozturk Apr 2, 2024
5ac15e5
chore: remove classname from the lit elements
enesozturk Apr 2, 2024
b2f4eb3
chore: remove lucid, refactor class names
enesozturk Apr 2, 2024
13d8dac
fix: dialog forwarded comps
enesozturk Apr 2, 2024
1888fc7
chore: update comp locations, refactor class names
enesozturk Apr 2, 2024
ed9e434
Merge branch 'refactor/lab-ui-update-design-system-vars' into feat/1i…
enesozturk Apr 2, 2024
fc5d5f8
chore: list more polygon tokens, add token balance watcher
enesozturk Apr 2, 2024
6b2ae0d
chore: build issues
enesozturk Apr 2, 2024
678fdb3
chore: code review updates
enesozturk Apr 3, 2024
befc141
chore: move convert api to utils, export missing comps
enesozturk Apr 3, 2024
4712c6a
fix: imports
enesozturk Apr 3, 2024
1767677
Revert "Merge branch 'refactor/lab-ui-update-design-system-vars' into…
enesozturk Apr 3, 2024
cf5665b
Merge branch 'V4' into feat/1inch-swaps
enesozturk Apr 3, 2024
4bb1008
chore: remove ts ignores, add mock functions for solana client
enesozturk Apr 3, 2024
a07300c
chore: export missing comps
enesozturk Apr 3, 2024
726e30e
chore: convert controller tests
enesozturk Apr 3, 2024
47b1ca8
chore: linter issues
enesozturk Apr 3, 2024
8b8b4d2
Merge branch 'V4' into feat/1inch-swaps
enesozturk Apr 3, 2024
74486a1
refactor: update transaction and router logics
enesozturk Apr 3, 2024
b738d98
chore: make sure about component exports
enesozturk Apr 3, 2024
25b1a7d
chore: update transaction stack callbacks
enesozturk Apr 3, 2024
4258418
chore: add missing exported composites
enesozturk Apr 3, 2024
d054a5c
chore: update lock file
enesozturk Apr 3, 2024
32e5d57
Merge branch 'V4' into feat/1inch-swaps
enesozturk Apr 4, 2024
9826cd7
wip
svenvoskamp Apr 4, 2024
a4c9677
wip
svenvoskamp Apr 5, 2024
0f43f7b
chore: update token fetch listeners
enesozturk Apr 5, 2024
7a21054
chore: update intervals
enesozturk Apr 5, 2024
17701e2
Merge branch 'V4' into feat/convert
enesozturk Apr 8, 2024
b97d069
chore: fix ui comp exports and conflicts
enesozturk Apr 8, 2024
e52483b
chore: remove scaffold components from ui package
enesozturk Apr 8, 2024
d6a7900
fix: convert components and styles
enesozturk Apr 8, 2024
18baf26
feat: add unit tests for convert, fix router controller tests
enesozturk Apr 8, 2024
ca72aed
chore: linter issues
enesozturk Apr 8, 2024
649e503
wip
svenvoskamp Apr 9, 2024
7618a2b
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 9, 2024
0460fec
Merge branch 'V4' into feat/convert
enesozturk Apr 9, 2024
9cb5189
add sending logic + sending erc20 logic
svenvoskamp Apr 9, 2024
32303ff
Merge branch 'feat/convert' of github.com:WalletConnect/web3modal int…
svenvoskamp Apr 9, 2024
92f9afe
type safe ethers write contract
svenvoskamp Apr 9, 2024
a1c55d1
add solana method
svenvoskamp Apr 9, 2024
4fde66d
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 11, 2024
cbc1869
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 11, 2024
1a1b534
wip
svenvoskamp Apr 11, 2024
17b0bdb
Merge branch 'V4' into feat/convert
enesozturk Apr 11, 2024
2dcfaf5
Merge branch 'V4' into feat/convert
enesozturk Apr 11, 2024
1f53b1c
Merge branch 'feat/convert' of https://github.com/WalletConnect/web3m…
enesozturk Apr 11, 2024
46c986e
Merge branch 'V4' into feat/convert
enesozturk Apr 14, 2024
43c29c6
chore: remove swap from default w3m and remove toast on cancel transa…
enesozturk Apr 15, 2024
63c3b61
fix typo
svenvoskamp Apr 15, 2024
d642884
Merge branch 'feat/convert' into feat/send-tx-preview
svenvoskamp Apr 15, 2024
dfebaa7
remove hardcoded gas price
svenvoskamp Apr 15, 2024
0cfbdc9
Merge branch 'feat/send-tx-preview' of github.com:WalletConnect/web3m…
svenvoskamp Apr 15, 2024
5013d46
merge feat/convert into feat/send-tx-preview
svenvoskamp Apr 15, 2024
7355047
wip
svenvoskamp Apr 15, 2024
dccb3f0
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 15, 2024
56babc9
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 16, 2024
aff052a
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 16, 2024
bbc59b3
wip
svenvoskamp Apr 18, 2024
1bbb446
wip
svenvoskamp Apr 18, 2024
1c37b73
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 19, 2024
06e91a8
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 19, 2024
5c01dcb
wip
svenvoskamp Apr 22, 2024
202bef0
merge v4 into feat/send-tx-preview
svenvoskamp Apr 22, 2024
efeb105
Merge branch 'V4' into feat/send-tx-preview
svenvoskamp Apr 22, 2024
be3a6d5
Merge branch 'feat/send-tx-preview' of github.com:WalletConnect/web3m…
svenvoskamp Apr 22, 2024
5cbfd1a
use standard network fee
svenvoskamp Apr 22, 2024
08a649d
Merge branch 'V4' into feat/send-tx-preview
svenvoskamp Apr 22, 2024
9350244
feedback
svenvoskamp Apr 22, 2024
15a517c
Merge branch 'feat/send-tx-preview' of github.com:WalletConnect/web3m…
svenvoskamp Apr 22, 2024
a59d46e
Merge branch 'V4' of github.com:WalletConnect/web3modal into feat/sen…
svenvoskamp Apr 23, 2024
a99356e
feedback
svenvoskamp Apr 23, 2024
6a26900
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 23, 2024
bba303b
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 23, 2024
1b09506
add send logic to sendcontroller
svenvoskamp Apr 23, 2024
551e67f
Merge branch 'V4' into feat/send-tx-preview
svenvoskamp Apr 23, 2024
f6f40ec
Merge branch 'V4' into feat/send-tx-preview
svenvoskamp Apr 23, 2024
9421b27
Merge branch 'V4' into feat/send-tx-preview
svenvoskamp Apr 24, 2024
a9e6bf5
small ui fix when allow for pasting
svenvoskamp Apr 24, 2024
96ab62c
Merge branch 'feat/send-tx-preview' of github.com:WalletConnect/web3m…
svenvoskamp Apr 24, 2024
75f572c
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 24, 2024
38095b0
merge V4 into feat/send-tx-preview
svenvoskamp Apr 26, 2024
c6930e5
addressing issues bug bash
svenvoskamp Apr 26, 2024
ca7b7a0
fix tx send with ethers & wagmi smart acc
svenvoskamp Apr 26, 2024
f657df5
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp Apr 26, 2024
ad34a0c
switch account text fix
svenvoskamp Apr 26, 2024
67d211e
Merge branch 'V4' of github.com:WalletConnect/web3modal into feat/sen…
svenvoskamp Apr 26, 2024
0d65c3e
fix lint
svenvoskamp Apr 26, 2024
8794a29
Merge branch 'V4' of github.com:WalletConnect/web3modal into V4
svenvoskamp May 6, 2024
5ddf053
feedback
svenvoskamp May 6, 2024
7375fa3
update lock
svenvoskamp May 6, 2024
750fa06
Merge branch 'V4' into feat/send-tx-preview
svenvoskamp May 6, 2024
e9db5fc
merge v4 into feat/send-tx-preview
svenvoskamp May 6, 2024
543ce90
wip
svenvoskamp May 6, 2024
3adcada
update package lock
svenvoskamp May 6, 2024
82e377b
add ens support
svenvoskamp May 6, 2024
f1b06bc
fix lint
svenvoskamp May 6, 2024
84c411d
fix test
svenvoskamp May 6, 2024
b03ff5b
remove numberutil
svenvoskamp May 6, 2024
e9a8145
Merge branch 'V4' of github.com:WalletConnect/web3modal into feat/sen…
svenvoskamp May 6, 2024
1104a5d
Merge branch 'V4' into feat/send-tx-preview
svenvoskamp May 7, 2024
fddde15
Merge branch 'V4' of github.com:WalletConnect/web3modal into feat/sen…
svenvoskamp May 7, 2024
d06cab3
resolve feedback
svenvoskamp May 7, 2024
35835e2
Merge branch 'feat/send-tx-preview' of github.com:WalletConnect/web3m…
svenvoskamp May 7, 2024
fe90733
Merge branch 'V4' into feat/send-tx-preview
svenvoskamp May 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 33 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
export { DateUtil } from './src/utils/DateUtil.js'
export { NetworkUtil } from './src/utils/NetworkUtil.js'
export { NumberUtil } from './src/utils/NumberUtil.js'
export { default as erc20ABI } from './src/contracts/erc20.json'
export * from './src/utils/ThemeUtil.js'

export type * from './src/utils/TypeUtil.js'
222 changes: 222 additions & 0 deletions packages/common/src/contracts/erc20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_spender",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_from",
"type": "address"
},
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "balance",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
},
{
"name": "_spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "owner",
"type": "address"
},
{
"indexed": true,
"name": "spender",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
}
]
2 changes: 1 addition & 1 deletion packages/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"declarationDir": "./dist/types"
},
"extends": "../../tsconfig.json",
"include": ["index.ts", "src", "tests"]
"include": ["index.ts", "src", "tests", "src/**/*.json"]
}
Loading
Loading