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

Idrisssystem master #3

Merged
merged 156 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
1e8c5c1
renaming to sendToAnyone
deliriusz Aug 4, 2022
034dba6
WIP sendToAnyone
deliriusz Aug 4, 2022
44a8052
adding webpack varialbe injection to test on testnet
deliriusz Aug 4, 2022
05ebdf8
working example for native currency
deliriusz Aug 5, 2022
1d04b33
update import
idrisssystem Aug 8, 2022
9e4b65e
adding support for ERC20 & NFTs
deliriusz Aug 10, 2022
3ab6052
adding separate messages for tokens and NFTs
deliriusz Aug 10, 2022
14d1566
Merge remote-tracking branch 'origin/master'
idrisssystem Aug 10, 2022
9185bdb
local import core
idrisssystem Aug 10, 2022
18eb6a2
reading NFTs from user account
deliriusz Aug 11, 2022
c5bf356
Merge remote-tracking branch 'origin/master'
idrisssystem Aug 11, 2022
089363a
local import core & nfts loading fix
idrisssystem Aug 11, 2022
d96ab56
local import core & nfts loading fix
idrisssystem Aug 11, 2022
f0258af
add filter to nft selection
idrisssystem Aug 11, 2022
5984a5a
adding token info
deliriusz Aug 12, 2022
19611f3
Merge remote-tracking branch 'origin/master'
deliriusz Aug 12, 2022
a36e4d7
add event handling for nft flow
idrisssystem Aug 12, 2022
8d057ee
add nft Name to event listener and display
idrisssystem Aug 13, 2022
d651905
logging of parameters for tests
idrisssystem Aug 13, 2022
1325cb4
add block number to url
idrisssystem Aug 14, 2022
c12a9ad
version bump
idrisssystem Aug 15, 2022
c6b58e0
version import bump
idrisssystem Aug 15, 2022
77c2555
version import bump
idrisssystem Aug 16, 2022
06361a7
version import bump
idrisssystem Aug 18, 2022
d352397
version import bump
idrisssystem Aug 18, 2022
e6c63b8
injected provider version update fix and error handling improvements
idrisssystem Aug 21, 2022
7408340
fix metamask detection on firefox
idrisssystem Aug 22, 2022
282ed02
add notifications
idrisssystem Aug 24, 2022
3ddcdd1
local version
idrisssystem Aug 24, 2022
0798c0a
version updates
idrisssystem Aug 31, 2022
383703e
removing unused files
deliriusz Oct 18, 2022
71a2372
adding support for ERC1155
deliriusz Oct 18, 2022
6c467c8
Updating send-to-anyone-core version
deliriusz Oct 19, 2022
c170efa
Merge pull request #2 from deliriusz/erc1155
deliriusz Oct 19, 2022
37f0816
1. Changed tab name
geoist1 Nov 11, 2022
66732c8
add trigger success button with demo data
lennardevertz Nov 12, 2022
4985cf8
add error button for testing
lennardevertz Nov 12, 2022
9ed5ee0
1. added footer
geoist1 Nov 14, 2022
b68042c
update file paths for webpack
lennardevertz Nov 14, 2022
9a6020f
1. added navbar
geoist1 Nov 14, 2022
b90e64e
1. centered modal
geoist1 Nov 14, 2022
8db7d48
config .html path
lennardevertz Nov 14, 2022
ccd581d
main preparation tab menu
lennardevertz Nov 15, 2022
c52ec91
1. UI changes
geoist1 Nov 15, 2022
db76a65
changes in event handling
lennardevertz Nov 15, 2022
0bcdb37
prep for demo
lennardevertz Nov 17, 2022
f9bde74
error handling helper
lennardevertz Nov 17, 2022
cf3be57
updateing core version + minor updates
deliriusz Nov 21, 2022
9fbeb24
Merge pull request #1 from deliriusz/tipping-merge
lennardevertz Nov 21, 2022
8c9ffe7
cleanup js files, paths, and minor fixes
lennardevertz Nov 21, 2022
388a897
erc1155 and multi send prep
lennardevertz Nov 23, 2022
ebde8d4
add nft support
lennardevertz Nov 24, 2022
c15af00
start of multi Send support
lennardevertz Nov 28, 2022
d99e7ec
hidden nav bar
lennardevertz Nov 28, 2022
05b369e
ipfs load error fix
lennardevertz Nov 29, 2022
24b00d3
1. Connected wallet address widget
geoist1 Nov 29, 2022
38a76e8
plug connect wallet
lennardevertz Nov 30, 2022
427a434
add disconnect and polygon scan reference
lennardevertz Nov 30, 2022
1a96273
fix block number and txn hash retrieval
lennardevertz Dec 8, 2022
fcaad9c
trial events for multi send
lennardevertz Dec 14, 2022
b341caf
fix nft widget error when clicking multi send
lennardevertz Dec 14, 2022
e00837f
comments for flow of multi send
lennardevertz Dec 15, 2022
a170d48
simple definitions and formatting
lennardevertz Dec 16, 2022
3dc8b5f
fixed multiple event trigger bug and add multisend handling
lennardevertz Dec 20, 2022
8c068ce
fix success message
lennardevertz Dec 20, 2022
0759b8d
handle tipping and STA in one function (blockNumber, txnHash)
lennardevertz Dec 21, 2022
7ab3263
class name clean up
lennardevertz Jan 4, 2023
856aaf8
pass selectedAccount to multi send
lennardevertz Jan 4, 2023
45e53d9
add success page test cases
lennardevertz Jan 13, 2023
b590cbb
error handling for transaction call
lennardevertz Jan 13, 2023
a7e1f8f
error handling and bug fixing
lennardevertz Jan 17, 2023
0275aa6
fix txnHashdefinition in multiSend, nav bar button actions and multiS…
lennardevertz Jan 19, 2023
b93008a
tab selection
lennardevertz Jan 20, 2023
50a3276
minor change
lennardevertz Jan 20, 2023
6ef0724
log cleanup
lennardevertz Jan 23, 2023
d7facca
1. Meta description
geoist1 Jan 27, 2023
dbbf236
cleanup
lennardevertz Jan 27, 2023
70ef7a0
add reverse registry handle
lennardevertz Jan 27, 2023
711ed4e
close event handler
lennardevertz Jan 27, 2023
6589dd4
add nav button deep link support
lennardevertz Jan 30, 2023
73bb9c9
add nft balance on multi send
lennardevertz Jan 30, 2023
6397e47
error logging
lennardevertz Feb 1, 2023
d08e38d
error handling, nav button click fixes and revert button prep
lennardevertz Feb 11, 2023
88bb37e
amount calculation fix
lennardevertz Feb 23, 2023
669952d
bring back buttons
lennardevertz Feb 27, 2023
e1f403e
experiment with dropdown menu on mobile
lennardevertz Feb 28, 2023
4b517e9
hide revert send and add small margin above dropdown
lennardevertz Feb 28, 2023
ad7acc2
adjustButtonClick fixed for token case
lennardevertz Feb 28, 2023
b86e117
add event listeners for dropdown elements
lennardevertz Feb 28, 2023
37883ef
hide dropdown on click
lennardevertz Feb 28, 2023
68dd3e3
1. Navigation menu on mobile
geoist1 Feb 28, 2023
a10e8fd
Merge remote-tracking branch 'origin/ui_fix' into demoFix
lennardevertz Feb 28, 2023
018c766
1. Covered MultiSend button fixed
geoist1 Mar 4, 2023
648b49e
Merge branch 'ui_fix' into demoFix
lennardevertz Mar 4, 2023
24ca61d
feat: tipping with query params
Mar 17, 2023
667b9a0
feat: tipping with query params
Apr 4, 2023
37ae6ee
refactor: fix code formatting
Apr 4, 2023
a44e8d6
prepare zkSync network
lennardevertz Apr 10, 2023
4ea9de9
fix param handling bugs
lennardevertz Apr 11, 2023
fd1af40
Merge pull request #3 from idrisssystem/tipping-with-query-params
idrisssystem Apr 11, 2023
3442db8
add zkSync Mainnet
lennardevertz Apr 26, 2023
8de74d9
registered people fix
lennardevertz Apr 28, 2023
abb97a8
message box fix
lennardevertz Apr 29, 2023
868a1c8
mainnet zkSync explorer link added
lennardevertz Apr 29, 2023
6648f33
add linea support
lennardevertz Jun 1, 2023
99ea52b
WC migration attempt
lennardevertz Jun 22, 2023
dfd86fe
include tokenFilter and option to only skip input step
lennardevertz Jun 23, 2023
9784b8c
generate button link adjustments
lennardevertz Jun 29, 2023
77c12ff
Merge branch 'custom-twitter' into demoFix
lennardevertz Jun 29, 2023
e403fb3
link adjustment
lennardevertz Jun 29, 2023
1ee7789
filtertoken adjustments that enable choice of token filter vs no toke…
lennardevertz Jun 29, 2023
41c9745
make sta work again
lennardevertz Jul 4, 2023
b3b1ba3
fix isIDrissRegistered for undefined
lennardevertz Jul 4, 2023
6252bee
tabs
lennardevertz Jul 9, 2023
6f07230
linea mainnet
lennardevertz Jul 15, 2023
70f94fe
optimism support
lennardevertz Aug 7, 2023
4bfeb51
add vote() function
lennardevertz Aug 9, 2023
1c16a3f
move encoding to sendtoanyonelogic
lennardevertz Aug 9, 2023
d353fd3
wording
lennardevertz Aug 9, 2023
513ed6f
use custom waiting screen
lennardevertz Aug 9, 2023
fb06d99
add roundIndex as param and png
lennardevertz Aug 17, 2023
bb80088
add message in pg case and change polygon rpc
lennardevertz Oct 6, 2023
6bce8ea
add mantle support
lennardevertz Oct 19, 2023
1a521af
Create LICENSE
lennardevertz Oct 31, 2023
a0d6752
Update README.md
lennardevertz Oct 31, 2023
9e25823
add base support
lennardevertz Nov 6, 2023
fb712e6
add arb support for GG19
lennardevertz Nov 14, 2023
578192d
Merge branch 'demoFix' into base
lennardevertz Nov 22, 2023
4b8ea03
Merge branch 'mantle' into demoFix
lennardevertz Dec 9, 2023
cc9eaec
Merge branch 'demoFix'
lennardevertz Dec 14, 2023
4fcf4c1
uncomment mode === 'none' values
lennardevertz Dec 14, 2023
82104b2
Merge remote-tracking branch 'origin/master'
lennardevertz Dec 14, 2023
babbf08
webpack configs
lennardevertz Dec 20, 2023
23096aa
- add NodePolyfillPlugin
lennardevertz Dec 21, 2023
fc3ea3e
- add SpaceID integration
lennardevertz Jan 2, 2024
a529ee9
feat: upgrade yarn lock
nemmtor Jan 6, 2024
27393f9
fix: import dependency
nemmtor Jan 19, 2024
dbfde4e
Merge pull request #7 from nemmtor/fix/import-dependency
lennardevertz Jan 19, 2024
9c8d470
Merge remote-tracking branch 'origin/master'
lennardevertz Jan 19, 2024
991f1f0
add scroll support
lennardevertz Oct 23, 2023
21f40fc
Merge branch 'master' into chore/upgrade-lockfile
lennardevertz Feb 2, 2024
e953c1a
Merge pull request #6 from nemmtor/chore/upgrade-lockfile
lennardevertz Feb 2, 2024
2c2fee2
- update explorer url
lennardevertz Feb 2, 2024
cfdbdab
- update deps
lennardevertz Feb 2, 2024
b3e9df5
Merge branch 'master' into scroll
lennardevertz Feb 2, 2024
0d6cda6
Merge pull request #8 from idrisssystem/scroll
lennardevertz Feb 2, 2024
7f0acda
- update deps
lennardevertz Feb 9, 2024
f5f67c9
- manually rebase master on revert
lennardevertz Feb 12, 2024
9f168e2
- use local -core build
lennardevertz Feb 12, 2024
a4114d5
- fix button click area
lennardevertz Feb 12, 2024
78cd2b3
flyout menu positioning correction
geoist1 Feb 13, 2024
a61f4b3
- update deps
lennardevertz Feb 13, 2024
e1cf1db
- rm unused comments
lennardevertz Feb 13, 2024
13fb62b
Merge pull request #9 from idrisssystem/revertv2
lennardevertz Feb 13, 2024
b288477
- rm console.logs
lennardevertz Feb 13, 2024
38a0e3d
merge send-to-anyone-page
lennardevertz Feb 15, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.idea/
buildResults/
dist/
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This webpage is meant to handle tipping by web3
This webpage is meant to handle sendToAnyone by web3
## build
To compile plugin install [yarn](https://yarnpkg.com/) and then from CLI

Expand All @@ -8,3 +8,7 @@ yarn buildOnce
```

Results will appear in buildResults directory.

## License

This project is licensed under [GPLv3](https://github.com/idrisssystem/send-to-anyone-page/blob/master/LICENSE).
17 changes: 12 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
{
"scripts": {
"build": "webpack --watch",
"buildOnce": "webpack",
"dev": "webpack-dev-server"
"build": "webpack --watch --mode none",
"build-local": "webpack --mode none",
"build-dev": "webpack --mode development",
"build-prod": "webpack --mode production --watch",
"buildOnce": "webpack --mode production",
"dev": "webpack-dev-server --mode none"
},
"dependencies": {
"@idriss-crypto/tipping-core": "^2.2.4",
"@walletconnect/web3-provider": "^1.7.8",
"@idriss-crypto/send-to-anyone-core": "^0.4.12",
"@web3-name-sdk/core": "^0.1.13",
"fast-creator": "^1.6.0",
"viem": "^1.21.4",
"web3": "^1.7.0",
"web3modal": "^1.9.7"
},
"devDependencies": {
"copy-webpack-plugin": "^9.0.1",
"css-loader": "^6.4.0",
"ethers": "^5.6.9",
"html-webpack-plugin": "^5.5.0",
"mpts-loader": "^1.0.0",
"node-polyfill-webpack-plugin": "^3.0.0",
"sass": "^1.43.2",
"sass-loader": "^12.2.0",
"style-loader": "^3.3.1",
Expand Down
30 changes: 30 additions & 0 deletions src/generateSendToAnyoneCode.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Generate IDriss Send Icon - IDriss.xyz</title>
</head>
<body>
<h2>Generate button for IDriss Send</h2>
<label>
<span>Name to be shown</span>
<input name="identifier" type="text">
</label>
<label>
<span>Wallet address</span>
<input name="recipient" type="text">
</label>

<div class="result link">
<h3>Link</h3>
<div>https://www.idriss.xyz/send</div>
</div>
<div class="result html">
<h3>Html</h3>
<div>&lt;script src="https://www.idriss.xyz/static/js/send/idrissSendToAnyoneSDK.js">&lt;/script>&lt;a href=&quot;https://www.idriss.xyz/send&quot; onclick=&quot;idrissShowSendToAnyonePopup({},event)&quot;&gt;Send me crypto&lt;/a&gt;</div>
</div>
<p>For more advanced users see <a href="https://github.com/idriss-crypto/send-to-anyone-core">our SDK</a></p>

<script src="../static/js/send/generateSendToAnyoneCode.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions src/generateTipCode.js → src/generateSendToAnyoneCode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import css from "!!style-loader!css-loader!sass-loader!./generateTipCode.scss";
import css from "!!style-loader!css-loader!sass-loader!./generateSendToAnyoneCode.scss";

addEventListener('input', e => {
let link = 'https://idriss.xyz/tip';
let link = 'https://idriss.xyz/send';
let params = {};
if (document.querySelector('input[name="identifier"]').value) {
params.identifier = document.querySelector('input[name="identifier"]').value;
Expand All @@ -15,7 +15,7 @@ addEventListener('input', e => {
if (Object.values(params).length) {
link += '?' + Object.entries(params).map(([k, v]) => encodeURIComponent(k) + '=' + encodeURIComponent(v)).join('&');
}
let html = `<script src="https://idriss.xyz/static/js/idrissTippingSDK.js"></script><a href="${link}" onclick='idrissShowTippingPopup(${JSON.stringify(params)},event)'>Send me crypto</a>`;
let html = `<script src="https://idriss.xyz/static/js/send/idrissSendToAnyoneSDK.js"></script><a href="${link}" onclick='idrissShowSendToAnyonePopup(${JSON.stringify(params)},event)'>Send me crypto</a>`;
document.querySelector('.result.link>div').textContent = link
document.querySelector('.result.html>div').textContent = html
})
File renamed without changes.
30 changes: 0 additions & 30 deletions src/generateTipCode.html

This file was deleted.

14 changes: 14 additions & 0 deletions src/idrissSendToAnyoneSDK/idrissSendToAnyoneSDK.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
console.log('Idriss sendToAnyone script')

export async function idrissShowSendToAnyonePopup(config, e) {
e.preventDefault();
const {idrissShowSendToAnyonePopup} = await import(/* webpackPrefetch: true */"@idriss-crypto/send-to-anyone-core");
return idrissShowSendToAnyonePopup(config, e);
}

export async function idrissLoadSendToAnyoneWidget() {
return (await import(/* webpackPrefetch: true */"@idriss-crypto/send-to-anyone-core")).IdrissSendToAnyoneWidget;
}

window.idrissShowSendToAnyonePopup = idrissShowSendToAnyonePopup;
window.idrissLoadSendToAnyoneWidget = idrissLoadSendToAnyoneWidget;
14 changes: 0 additions & 14 deletions src/idrissTippingSDK/idrissTippingSDK.js

This file was deleted.

Loading
Loading