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

Initial Refactor #3

Merged
merged 20 commits into from
Aug 10, 2024
Merged

Initial Refactor #3

merged 20 commits into from
Aug 10, 2024

Conversation

dirtycajunrice
Copy link
Collaborator

Overview:

  • restructure repository to plugin as root
  • Build.cs: remove redundant definitions, simplify library import, format
  • uplugin: remove engine version in source code
  • module.h/cpp: remove empty .h file definition and set cpp file as defaultmoduleimpl
  • converted from actor to handle + subsystem + function library
  • general cleanup of deprecated functions
  • Helpers added in many places to simplify execution flow
  • async task created for oauth login
  • many inputs migrated to native

- Build.cs: remove redundant definitions, simplify library import, format
- uplugin: remove engine version in source code
- module.h/cpp: remove empty .h file definition and set cpp file as defaultmoduleimpl
* move FFIResult helper to struct
* chain result
* replace deprecated character conversion macros
Migrated handle to actual handle
created separate bp / cpp functions with bp split enum returns
Created async task for oauth login
Refsctored many inputs to unreal native
* Proper pure/callable flags per type
* Some cpp functions moved to handle
* bp wrappers of handle functions moved to function library
* function library created to interface with standard UE nodes
* example actors cleaned up
* Root macro library created for expansion
@0xFirekeeper
Copy link
Member

Hey @dirtycajunrice - first of all I want to say this is a fantastic refactor, highly appreciated!

To get this to the finish line I added a few things I noticed in here while testing.

Furthermore, in BP_ThirdwebActor wise I think we're not reusing this email variable, probably should be like this
3f0d55ebaf607400bf067262938bbe24

The Level_Thirdweb_OAuth also appears to always throw invalid wallet type for me, were you able to run the levels successfully?

Thanks again!

Source/Thirdweb/Public/Thirdweb.h Outdated Show resolved Hide resolved
Source/Thirdweb/Public/ThirdwebFunctionLibrary.h Outdated Show resolved Hide resolved
Source/Thirdweb/Private/ThirdwebWalletHandle.cpp Outdated Show resolved Hide resolved
Source/Thirdweb/Private/ThirdwebWalletHandle.cpp Outdated Show resolved Hide resolved
Source/Thirdweb/Private/ThirdwebFunctionLibrary.cpp Outdated Show resolved Hide resolved
* UTF8 string cast fixed
* Generated copyright fixed
* Error message for wallet type revised
* SignMessage Generalized
* `LocalWallet` param renamed to `PersonalWallet`
Added:
* Widget interactive examples started
@dirtycajunrice
Copy link
Collaborator Author

Addressed all review points, and added beginnings of widget example

ThirdwebExamplesClip.mp4

dirtycajunrice and others added 12 commits July 30, 2024 17:04
* Wrap runtime settings in trimmed empty or null check
Enhance:
* Create textbox widget for OTP entry
* Create otp widget for managing all numbers with validation
* resurface the otp verification widget to match new style
* Added remaining smart wallet logic
* created bp functions for new rust calls
* (regression) reverted encoding back to old macro until additional info can be gleaned
* attach validators to private key page
* various minor things
Fixed typo for gasless and authenticate
Update otp to use single input monospaced
@0xFirekeeper 0xFirekeeper merged commit ce44166 into thirdweb-dev:main Aug 10, 2024
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.

2 participants