Skip to content

Refactor, Cleanup and Sample Import Dependency Fixes 699#682

Merged
robGG1997 merged 214 commits into
mainfrom
rob/samples-import-fixes-642
Oct 31, 2023
Merged

Refactor, Cleanup and Sample Import Dependency Fixes 699#682
robGG1997 merged 214 commits into
mainfrom
rob/samples-import-fixes-642

Conversation

@robGG1997
Copy link
Copy Markdown
Contributor

Closes #642, #641

robGG1997 and others added 30 commits September 14, 2023 11:30
@robGG1997 robGG1997 requested a review from kantagara October 30, 2023 11:06
@robGG1997 robGG1997 linked an issue Oct 30, 2023 that may be closed by this pull request
@kantagara
Copy link
Copy Markdown
Contributor

kantagara commented Oct 30, 2023

@robGG1997 For me the login buttons for web3auth don't seem to work in editor.

@robGG1997
Copy link
Copy Markdown
Contributor Author

@robGG1997 For me the login buttons for web3auth don't seem to work in editor.

works on my end, what's the issue?

@kantagara
Copy link
Copy Markdown
Contributor

@juans-chainsafe
Copy link
Copy Markdown
Contributor

@robGG1997 https://www.dropbox.com/scl/fi/03iobhtiqmftb62jh5w5q/explorer_9NxrtdOWvD.mp4?rlkey=qsip18ojc0dyjk0ihpy4gii5f&dl=0 nothing happens

works for me too, did you run the setup.sh? I needed to run it in this PR at least

@robGG1997
Copy link
Copy Markdown
Contributor Author

@robGG1997 robGG1997 closed this Oct 30, 2023
@robGG1997 robGG1997 reopened this Oct 30, 2023
Copy link
Copy Markdown
Contributor

@juans-chainsafe juans-chainsafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! working correctly and is fetching only the supported networks by wallet connect.
Because these wallets only have support for mainnet, I connected to those using eth mainnet, couldn't test stuff that needs balance on the wallet.

The only thing that is failing, is trying to login in WebGL because is not supported yet, do we need to add some clarification to users about this? cc @kalambet

Copy link
Copy Markdown
Member

@kalambet kalambet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kalambet
Copy link
Copy Markdown
Member

The only thing that is failing, is trying to login in WebGL because is not supported yet, do we need to add some clarification to users about this?

Yes, this is going to be known limitation. We'll add it as a disclaimer into the release notes.

@juans-chainsafe
Copy link
Copy Markdown
Contributor

Fix for:

  • GetNonce ✅
  • GetTransactionStatus ✅
  • SendTransaction ✅

In Remote wallet login has been made in this PR

@robGG1997
Copy link
Copy Markdown
Contributor Author

@robGG1997 robGG1997 closed this Oct 31, 2023
@robGG1997 robGG1997 reopened this Oct 31, 2023
@kantagara
Copy link
Copy Markdown
Contributor

LGTM

@robGG1997 robGG1997 merged commit dfc592f into main Oct 31, 2023
@robGG1997 robGG1997 deleted the rob/samples-import-fixes-642 branch October 31, 2023 19:06
robGG1997 added a commit that referenced this pull request Nov 3, 2023
* Revert "automated duplicating imported samples modifications (#595)"

This reverts commit a555894.

* wc integration working

* signing/transacting implemented

* switched QrCoder with ZXing for generating QrCode Images

* chain selection working

* main thread dispatcher simplified and WalletConnectModal.cs login error fix

* updated scripts path and added remove extra dll before moving to package lib

* more path updates and refactor to support testing

* Auto-duplicate Package Samples

* made some lint changes

* more lint fixes

* even more lint fixes

* disconnect and logout implemented

* Changes Made
+ chain selection reverted/fetched from project config
+ wallet disconnected if application exits mid run
+ disconnect method for wallet now async

* Auto-duplicate Package Samples

* sign typed data checkpoint

* sign typed data implemented with Wallet Connect

* reverted unwanted changes

* error fixes
- SceneIndexer.cs doesn't double up scenes
- WalletConnectUnity.cs error fix on trust wallet

* sign typed data successful

* Auto-duplicate Package Samples

* Requested Changes Made
+ WebPageWallet refactored into WalletConnectWallet
+ Small refactors and renames based on requested PR changes

* Auto-duplicate Package Samples

* fix path on publish-to-unity-package.bat

* wallet model refactor

* Auto-duplicate Package Samples

* More requested changes made
+ moved WCLogger to src and used ILogWriter to pass logs

* Auto-duplicate Package Samples

* requested changes, method order

* Auto-duplicate Package Samples

* lint fix

* updated Logout based on requested changes

* Auto-duplicate Package Samples

* android build fix

* Android Wallet Linking Implemented

* Auto-duplicate Package Samples

* WalletConnectWallet split into WalletConnectSigner, this is a prelude to separation between ISigner and ITransactionExecutor

* Auto-duplicate Package Samples

* Changes Made
+ Added IOS implementation
+ refactored Unity specific implementations except [preserve]
+ implemented redirect to wallet option for mobile on Login

* Auto-duplicate Package Samples

* Lint fix

* refactored WalletConnectSigner.cs with optimizations and removed comments

* Changes Made
+ WalletConnectTransactionExecutor Implemented
+ WC transaction Models and Methods implemented
+ small fixes and refactors to Web3Accessor and Login

* Moved/Refactored UnityEngine.dll from ChainSafe.Gaming.WalletConnect.csproj and used link.xml for preserving types

* replaced preserved type with namespace

* Auto-duplicate Package Samples

* Passing transaction tests

* requested changes made

* Auto-duplicate Package Samples

* made more requested changes

* Auto-duplicate Package Samples

* signTransaction implemented

* Auto-duplicate Package Samples

* checkpoint: working android save session

* remember me implemented for IOS

* Auto-duplicate Package Samples

* Refactored a new Service IWalletConnectProvider and move connecting and request out if WalletConnectSigner

* removed redundant check

* Auto-duplicate Package Samples

* more edits opening wallet

* Desktop redirecting and linking Implemented

* lint fix

* removed unnecessary/unused field

* Auto-duplicate Package Samples

* deeplink uri building fix

* checkpoint

* bash script files fix
## added a directory check

* uptdae scripts

* remove scripts merge conflicts

* checkpoint

* Changes Made
+ updated wallet connect to v2.1.1 for better Pairing topic and session matching
+ Renames for WalletConnectProvider based on requested changes

* checkpoint

* samples added and test duplicate GH action

* syntax fix

* removed with branch from checkout in duplicate_samples.yml

* syntax fix attempt 0

* syntax fix attempt 1

* syntax fix attempt 2

* syntax fix attempt 3

* syntax fix attempt 4

* syntax fix attempt 5

* syntax fix attempt 6

* syntax fix attempt 7

* syntax fix attempt 8

* syntax fix attempt 9

* syntax fix attempt 10

* give permission to run bash script

* variable path for version implemented

* removed path agnostic implementation

* path updates

* more path updates

* more path changes

* more path changes

* git add path changes

* git add path changes

* script updated and tested locally

* git add path updates

* changed GITHUB_WORKSPACE to github.workspace

* more git add path updates

* more git add path updates, tested locally

* more git add path updates, tested locally

* echo ls test

* more git add path updates

* more git add path updates

* added github.workspace to path prefixes

* echos and path changes

* path updates

* echos updated

* removed echos and adding web3auth samples

* small path updates

* updated paths

* reverted back to old implementation with variable version support and samples duplicate

* path issue fix

* web3 auth duplication added

* check and create directory

* polished CI action and removed duplicate-sample.sh

* Changes Made
- Added Scene Indexer for Web3 Auth and refactored SceneIndexer
- Tested Login with Existing Wallet

* Updated web3auth values

* refactor and cleanup

* testing CI refactor into loop

* path substitution fix

* path substitution fix

* added echos for debugging

* added echos for debugging

* loop path fix

* more path changes

* more path updates, hopefully last

* even more path updates, gotta work now

* even more path updates, must work now

* changed trigger from on push to on PR to main, it worked

* MiscTests logs updated.

* updated mint721 test response

* Replaced path strings on CI with repository environment variables

* commit path update

* moved git config and add into duplicate step

* moved git email env variable to duplicate step

* added branch checkout

* git change * to .

* path change to git add

* moved commit and push into duplicate step and updated git add path

* echo ls copied files

* more path updates

* git add path update

* small git add path update

* always try commit

* var declaration and ls log moved out of loop

* logs added

* env variable correct reference

* more env var ref fix

* syntax fix

* log env var

* changed env. ref to vars.

* updated source copy path

* Auto-duplicate Packages Samples

* Wallet Dropdown in ExistingWalletLogin now only lists wallets available for current platform.

* Auto-duplicate Packages Samples

* lint fix

* fixed missing namespace issue

* Auto-duplicate Packages Samples

* small nonce and send transaction bug fix

* fixed WebGL login issue

* Auto-duplicate Packages Samples

---------

Co-authored-by: robGG1997 <robGG1997@users.noreply.github.com>
Co-authored-by: Peter Kalambet <peter@kalambet.dev>
rob1997 pushed a commit that referenced this pull request Jan 16, 2025
* Revert "automated duplicating imported samples modifications (#595)"

This reverts commit a555894.

* wc integration working

* signing/transacting implemented

* switched QrCoder with ZXing for generating QrCode Images

* chain selection working

* main thread dispatcher simplified and WalletConnectModal.cs login error fix

* updated scripts path and added remove extra dll before moving to package lib

* more path updates and refactor to support testing

* Auto-duplicate Package Samples

* made some lint changes

* more lint fixes

* even more lint fixes

* disconnect and logout implemented

* Changes Made
+ chain selection reverted/fetched from project config
+ wallet disconnected if application exits mid run
+ disconnect method for wallet now async

* Auto-duplicate Package Samples

* sign typed data checkpoint

* sign typed data implemented with Wallet Connect

* reverted unwanted changes

* error fixes
- SceneIndexer.cs doesn't double up scenes
- WalletConnectUnity.cs error fix on trust wallet

* sign typed data successful

* Auto-duplicate Package Samples

* Requested Changes Made
+ WebPageWallet refactored into WalletConnectWallet
+ Small refactors and renames based on requested PR changes

* Auto-duplicate Package Samples

* fix path on publish-to-unity-package.bat

* wallet model refactor

* Auto-duplicate Package Samples

* More requested changes made
+ moved WCLogger to src and used ILogWriter to pass logs

* Auto-duplicate Package Samples

* requested changes, method order

* Auto-duplicate Package Samples

* lint fix

* updated Logout based on requested changes

* Auto-duplicate Package Samples

* android build fix

* Android Wallet Linking Implemented

* Auto-duplicate Package Samples

* WalletConnectWallet split into WalletConnectSigner, this is a prelude to separation between ISigner and ITransactionExecutor

* Auto-duplicate Package Samples

* Changes Made
+ Added IOS implementation
+ refactored Unity specific implementations except [preserve]
+ implemented redirect to wallet option for mobile on Login

* Auto-duplicate Package Samples

* Lint fix

* refactored WalletConnectSigner.cs with optimizations and removed comments

* Changes Made
+ WalletConnectTransactionExecutor Implemented
+ WC transaction Models and Methods implemented
+ small fixes and refactors to Web3Accessor and Login

* Moved/Refactored UnityEngine.dll from ChainSafe.Gaming.WalletConnect.csproj and used link.xml for preserving types

* replaced preserved type with namespace

* Auto-duplicate Package Samples

* Passing transaction tests

* requested changes made

* Auto-duplicate Package Samples

* made more requested changes

* Auto-duplicate Package Samples

* signTransaction implemented

* Auto-duplicate Package Samples

* checkpoint: working android save session

* remember me implemented for IOS

* Auto-duplicate Package Samples

* Refactored a new Service IWalletConnectProvider and move connecting and request out if WalletConnectSigner

* removed redundant check

* Auto-duplicate Package Samples

* more edits opening wallet

* Desktop redirecting and linking Implemented

* lint fix

* removed unnecessary/unused field

* Auto-duplicate Package Samples

* deeplink uri building fix

* checkpoint

* bash script files fix
## added a directory check

* uptdae scripts

* remove scripts merge conflicts

* checkpoint

* Changes Made
+ updated wallet connect to v2.1.1 for better Pairing topic and session matching
+ Renames for WalletConnectProvider based on requested changes

* checkpoint

* samples added and test duplicate GH action

* syntax fix

* removed with branch from checkout in duplicate_samples.yml

* syntax fix attempt 0

* syntax fix attempt 1

* syntax fix attempt 2

* syntax fix attempt 3

* syntax fix attempt 4

* syntax fix attempt 5

* syntax fix attempt 6

* syntax fix attempt 7

* syntax fix attempt 8

* syntax fix attempt 9

* syntax fix attempt 10

* give permission to run bash script

* variable path for version implemented

* removed path agnostic implementation

* path updates

* more path updates

* more path changes

* more path changes

* git add path changes

* git add path changes

* script updated and tested locally

* git add path updates

* changed GITHUB_WORKSPACE to github.workspace

* more git add path updates

* more git add path updates, tested locally

* more git add path updates, tested locally

* echo ls test

* more git add path updates

* more git add path updates

* added github.workspace to path prefixes

* echos and path changes

* path updates

* echos updated

* removed echos and adding web3auth samples

* small path updates

* updated paths

* reverted back to old implementation with variable version support and samples duplicate

* path issue fix

* web3 auth duplication added

* check and create directory

* polished CI action and removed duplicate-sample.sh

* Changes Made
- Added Scene Indexer for Web3 Auth and refactored SceneIndexer
- Tested Login with Existing Wallet

* Updated web3auth values

* refactor and cleanup

* testing CI refactor into loop

* path substitution fix

* path substitution fix

* added echos for debugging

* added echos for debugging

* loop path fix

* more path changes

* more path updates, hopefully last

* even more path updates, gotta work now

* even more path updates, must work now

* changed trigger from on push to on PR to main, it worked

* MiscTests logs updated.

* updated mint721 test response

* Replaced path strings on CI with repository environment variables

* commit path update

* moved git config and add into duplicate step

* moved git email env variable to duplicate step

* added branch checkout

* git change * to .

* path change to git add

* moved commit and push into duplicate step and updated git add path

* echo ls copied files

* more path updates

* git add path update

* small git add path update

* always try commit

* var declaration and ls log moved out of loop

* logs added

* env variable correct reference

* more env var ref fix

* syntax fix

* log env var

* changed env. ref to vars.

* updated source copy path

* Auto-duplicate Packages Samples

* Wallet Dropdown in ExistingWalletLogin now only lists wallets available for current platform.

* Auto-duplicate Packages Samples

* lint fix

* fixed missing namespace issue

* Auto-duplicate Packages Samples

* small nonce and send transaction bug fix

* fixed WebGL login issue

* Auto-duplicate Packages Samples

---------

Co-authored-by: robGG1997 <robGG1997@users.noreply.github.com>
Co-authored-by: Peter Kalambet <peter@kalambet.dev>
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* Revert "automated duplicating imported samples modifications (ChainSafe#595)"

This reverts commit a555894.

* wc integration working

* signing/transacting implemented

* switched QrCoder with ZXing for generating QrCode Images

* chain selection working

* main thread dispatcher simplified and WalletConnectModal.cs login error fix

* updated scripts path and added remove extra dll before moving to package lib

* more path updates and refactor to support testing

* Auto-duplicate Package Samples

* made some lint changes

* more lint fixes

* even more lint fixes

* disconnect and logout implemented

* Changes Made
+ chain selection reverted/fetched from project config
+ wallet disconnected if application exits mid run
+ disconnect method for wallet now async

* Auto-duplicate Package Samples

* sign typed data checkpoint

* sign typed data implemented with Wallet Connect

* reverted unwanted changes

* error fixes
- SceneIndexer.cs doesn't double up scenes
- WalletConnectUnity.cs error fix on trust wallet

* sign typed data successful

* Auto-duplicate Package Samples

* Requested Changes Made
+ WebPageWallet refactored into WalletConnectWallet
+ Small refactors and renames based on requested PR changes

* Auto-duplicate Package Samples

* fix path on publish-to-unity-package.bat

* wallet model refactor

* Auto-duplicate Package Samples

* More requested changes made
+ moved WCLogger to src and used ILogWriter to pass logs

* Auto-duplicate Package Samples

* requested changes, method order

* Auto-duplicate Package Samples

* lint fix

* updated Logout based on requested changes

* Auto-duplicate Package Samples

* android build fix

* Android Wallet Linking Implemented

* Auto-duplicate Package Samples

* WalletConnectWallet split into WalletConnectSigner, this is a prelude to separation between ISigner and ITransactionExecutor

* Auto-duplicate Package Samples

* Changes Made
+ Added IOS implementation
+ refactored Unity specific implementations except [preserve]
+ implemented redirect to wallet option for mobile on Login

* Auto-duplicate Package Samples

* Lint fix

* refactored WalletConnectSigner.cs with optimizations and removed comments

* Changes Made
+ WalletConnectTransactionExecutor Implemented
+ WC transaction Models and Methods implemented
+ small fixes and refactors to Web3Accessor and Login

* Moved/Refactored UnityEngine.dll from ChainSafe.Gaming.WalletConnect.csproj and used link.xml for preserving types

* replaced preserved type with namespace

* Auto-duplicate Package Samples

* Passing transaction tests

* requested changes made

* Auto-duplicate Package Samples

* made more requested changes

* Auto-duplicate Package Samples

* signTransaction implemented

* Auto-duplicate Package Samples

* checkpoint: working android save session

* remember me implemented for IOS

* Auto-duplicate Package Samples

* Refactored a new Service IWalletConnectProvider and move connecting and request out if WalletConnectSigner

* removed redundant check

* Auto-duplicate Package Samples

* more edits opening wallet

* Desktop redirecting and linking Implemented

* lint fix

* removed unnecessary/unused field

* Auto-duplicate Package Samples

* deeplink uri building fix

* checkpoint

* bash script files fix
## added a directory check

* uptdae scripts

* remove scripts merge conflicts

* checkpoint

* Changes Made
+ updated wallet connect to v2.1.1 for better Pairing topic and session matching
+ Renames for WalletConnectProvider based on requested changes

* checkpoint

* samples added and test duplicate GH action

* syntax fix

* removed with branch from checkout in duplicate_samples.yml

* syntax fix attempt 0

* syntax fix attempt 1

* syntax fix attempt 2

* syntax fix attempt 3

* syntax fix attempt 4

* syntax fix attempt 5

* syntax fix attempt 6

* syntax fix attempt 7

* syntax fix attempt 8

* syntax fix attempt 9

* syntax fix attempt 10

* give permission to run bash script

* variable path for version implemented

* removed path agnostic implementation

* path updates

* more path updates

* more path changes

* more path changes

* git add path changes

* git add path changes

* script updated and tested locally

* git add path updates

* changed GITHUB_WORKSPACE to github.workspace

* more git add path updates

* more git add path updates, tested locally

* more git add path updates, tested locally

* echo ls test

* more git add path updates

* more git add path updates

* added github.workspace to path prefixes

* echos and path changes

* path updates

* echos updated

* removed echos and adding web3auth samples

* small path updates

* updated paths

* reverted back to old implementation with variable version support and samples duplicate

* path issue fix

* web3 auth duplication added

* check and create directory

* polished CI action and removed duplicate-sample.sh

* Changes Made
- Added Scene Indexer for Web3 Auth and refactored SceneIndexer
- Tested Login with Existing Wallet

* Updated web3auth values

* refactor and cleanup

* testing CI refactor into loop

* path substitution fix

* path substitution fix

* added echos for debugging

* added echos for debugging

* loop path fix

* more path changes

* more path updates, hopefully last

* even more path updates, gotta work now

* even more path updates, must work now

* changed trigger from on push to on PR to main, it worked

* MiscTests logs updated.

* updated mint721 test response

* Replaced path strings on CI with repository environment variables

* commit path update

* moved git config and add into duplicate step

* moved git email env variable to duplicate step

* added branch checkout

* git change * to .

* path change to git add

* moved commit and push into duplicate step and updated git add path

* echo ls copied files

* more path updates

* git add path update

* small git add path update

* always try commit

* var declaration and ls log moved out of loop

* logs added

* env variable correct reference

* more env var ref fix

* syntax fix

* log env var

* changed env. ref to vars.

* updated source copy path

* Auto-duplicate Packages Samples

* Wallet Dropdown in ExistingWalletLogin now only lists wallets available for current platform.

* Auto-duplicate Packages Samples

* lint fix

* fixed missing namespace issue

* Auto-duplicate Packages Samples

* small nonce and send transaction bug fix

* fixed WebGL login issue

* Auto-duplicate Packages Samples

---------

Co-authored-by: robGG1997 <robGG1997@users.noreply.github.com>
Co-authored-by: Peter Kalambet <peter@kalambet.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sample Dependency and Import fix Login.cs Refactor Use Json for saving login detail Persistently (Remember Me)

5 participants