Commit Graph
167 Commits
Author SHA1 Message Date
Yash 9db9ba95ee Remove import contract (#2128)
* Remove import contract

* fix

* cleanup

* fix
2024-01-18 19:13:52 +00:00
Gerry Saporito 937191dfb4 chore: update payments to include rarichain testnet, frame testnet, xai, and xai testnet (#2103)
* chore: update payments to include rarichain testnet and frame testnet

* merge

* bumped chains version

* updated chain

* added xai

* updated chains

* build

* updated yarn.lock

* bump chains

* removed comments

* added supported currencies
2024-01-17 18:59:02 +00:00
Isaac Dubuque 109743c767 remove lowercasing contracts for payments register (#2112) 2024-01-11 02:02:16 +00:00
Tair Asim 44a424072b feat: account linking (#2092)
completes PROD-479
2024-01-10 11:08:08 +00:00
Nacho Iacovino 15c2411a18 Update naming record (#2102) 2024-01-09 20:07:09 +00:00
Phillip Ho 2637182ce4 feat: add labels to backend wallet UI; add copy relayer URL (#2096)
* feat: add labels to backend wallet UI; add copy relayer URL

* fix: missing buttons in engine list

* use TrackedCopyButton

* mobile friendlier
2024-01-05 23:24:32 +00:00
Nacho Iacovino 73738cee9c Fix bearer null on payments (#2089)
* Fix bearer null on payments

* Refetch when token changes
2024-01-03 21:42:44 +00:00
Tair Asim bf89576939 chore: handle payment failure attempt (#2068)
fixes PROD-452
2024-01-02 09:49:33 +00:00
Phillip Ho 72f5d27e63 feat: Relayer table, send/receive funds, other Engine polish (#2004)
* feat: add relayer page; lots of styling

* add send/receive funds

* add missing files

* fix build

* update webhooks table

* destructive

* allow float send amount
2023-12-16 00:13:55 +00:00
Isaac Dubuque 6c9c553cd3 Payments Bug Fix: showing deleted checkouts (#2071)
query only valid checkouts
2023-12-15 19:31:43 +00:00
Edward Sun bb71bb5425 Use paymentsSellerId for payments-related actions (#2066)
* Use paymentsSellerId for payments-related actions

* Remove use of account.id in payments related flows

* One more place

* Fix null check
2023-12-15 03:49:03 +00:00
Isaac Dubuque a096e20fb8 Payments Bug Fix: Register Wrong Contract Type (#2060)
* fix incorrect payment contract type

* register payments contract with name
2023-12-13 22:02:51 +00:00
Winston Yeo 9b3e8234c1 Winston/custom auth dashboard update (#2051)
* chore: sort imports

* feat: add custom auth settings to dashboard

* feat: add detail display for custom auth detail

* chore: sort imports and remove console log

* feat: add custom authentication endpoint config to the embedded wallet tabs as well

* fix: dashboard form not updating
2023-12-13 16:57:08 +00:00
Isaac Dubuque 36d03c256c Isaac/payments_test_webhooks (#2038)
* add test webhook to payments

* beautify fixes

* fix loading
2023-12-08 18:19:58 +00:00
Isaac DubuqueandNacho Iacovino f2e9bf1014 Add modal create/edit for payments webhooks (#2029)
* fixing the modal stuff

* Small stuff

* Skeleton

* Small improvements

---------

Co-authored-by: Nacho Iacovino <[email protected]>
2023-12-01 18:13:22 +00:00
Isaac Dubuque 2e7d3397ae Isaac/payment webhooks (#2022)
* merge

* testing table

* crud webhooks works

* add confirm delete modal

* add secret key

* add alerts

* need to change this to fix webhook issues

* new webhook table

* updating with nachos comments

* cleaning up

* adding api key

* prettier

* minor changes

* update type

* cleanup

* cleanup
2023-11-30 23:06:11 +00:00
Nacho Iacovino 7655cde2d9 Enable custom contracts for checkouts (#2008)
* Inputs wip

* Its working bbbyyy

* Both ways

* This should work but it's ugly

* Welp, a lot of stuff happened here

* Make it possible to enable custom contracts

* Fix copy

* Better wording
2023-11-23 03:56:31 +00:00
04ad22c250 Migrate checkouts v0 (#1986)
* feature(payments): initialize GQL and page structure

* initialize apollo provider

* port over .graphql files and fix up generation

* fix codegen

* .ts files are fine for hooks

* feat: add credentials option to ApolloClient

* .env.example update

* Get payments seller id from api server in fetchAuthToken (#1839)

Get paymentsSellerId from api server in fetchAuthToken

* Push up example with `paymentsSellerId`

* Remove console.logs

* Move to component to compile

* Render all contracts table (filtered)

* Enable payments button

* Abstract a bit

* Add graphql query to usePayments

* Get analytics

* Add parsedOverview

* Fix prettier

* Create checkout logic

* Create checkout form shenanigans

* Some UI massaging

* A bit more

* Enable payments redirect

* Work for erc1155, disable cache

* yes

* Some progress with cache? :D

* loglog

* Fix tracking

* Abstract remove button

* We're doing it backwards

* Cast to number

* whoops

* Edit checkout logic plz

* Empty state

* plz

* Fix for real

* Default

* Filter contracts, some more empty states

* Moar empty states

* Error flow

* More empty states, less foot shooting

* Get contract name for payment-enabled contracts

* Filter default checkout, show contractId

* Fix url redirect

* whoops

* Fix logic

* feature: added checkout seller account settings to dashboard (#1931)

Signed-off-by: Juan Leal <[email protected]>

Signed-off-by: Juan Leal <[email protected]>

Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: easyrun42 <[email protected]>

Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: Juan Leal <[email protected]>
Co-authored-by: easyrun42 <[email protected]>

* invalidateQueries onSuccess

* Revert prior change and add apollo refetch()

* Try network-only

* Add for contracts as well

* wip

* API Keys capabilities yay

* Remove network-only policy

* Use lazy queries

* Fix api keys

* isLoading states

* All the cache

* now

* Rename

* Big wip

* Fix date picker

* chore: added thirdweb_client_id to checkout fragment (#1957)

* stuff

* Ensure accountId

* Copy

* Fix mutation

* Fix loading states

* wip

* Kyb shenanigans

* Kyc shenanigans :D

* More kyc shenanigans

* Fix file uploader?

* Annoying response

* RPC url pls

* Remove unused imports

* Nope

* Lots of checks

* Fix kyb check

* Kyc improvements

* Moar

* hid hid

* Move around

* Nope

* Cache?

* Lowercase

* Webhooks file

* Add more supported chains

* Full

* Fix RPC url

* Update contractArgs

* Much better

* Error state

* Validation for URL

* Allow empty string

* Improve KYB experience

* Add compliance email

* Fix upload to cloudflare

* Add preview button

* Improve preview

* Okay

* Fix font weight

* Just because

* Use the Preview environment for workflows

* Pass environment var name context through

* syntax update

* Test - show public env var

* syntax

* See if public variable makes it through

* Add public api

* Use secrets instead of vars

* Remove test

---------

Signed-off-by: Jonas Daniels <[email protected]>
Signed-off-by: Edward Sun <[email protected]>
Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Edward Sun <[email protected]>
Co-authored-by: gerrysaporito <[email protected]>
Co-authored-by: Juan Leal <[email protected]>
Co-authored-by: easyrun42 <[email protected]>
2023-11-22 23:21:53 +00:00
iketw a856457f60 Adds app name and image url to ews (#1987)
* Adds app name and image url to ews

* fix fetch
2023-11-20 23:32:27 +00:00
Jake Loo 79bb24deac Support dev env (#1959)
* dev RPC url

* Support thirdwebstorage-dev.com

* More dev env url

* format prettier
2023-11-15 16:42:38 +00:00
Phillip Ho 2e123978e3 feat: Add read/update labels for Engine tables (#1953)
* add label view/edit support for admins and access tokens

* add labels for backend wallets
2023-11-14 19:53:50 +00:00
Phillip Ho e2385a5d85 chore: refactor Engine onboarding page (#1943)
* chore: refactor Engine onboarding page

* fix build, more polish

* add tracking

* use address in instances cache key
2023-11-13 06:06:43 +00:00
Tair Asim d616bec219 fix: ews email confirmation (#1926) 2023-11-08 15:07:12 +00:00
Tair Asim 170720bcce fix: useApi error handling (#1918) 2023-11-07 16:53:42 +00:00
Tair Asim a3f3f57e39 Revert "tmp: account form error debug (#1915)" (#1917)
This reverts commit 7d5544c805.
2023-11-07 15:16:02 +00:00
Tair Asim eafaad8058 chore: simplify api keys creation & editing (#1841)
fixes FTD-2219
2023-10-31 21:42:31 +00:00
ffe85aa3df feat(dashboard): Manage embeddedWallet recovery share management preferences (#1796)
* feat(dashboard): Add stub to manage embeddedWallet recoveryShareManagement preferences

* docs: add explanation for where the magic values came from

* ew: custom auth added to form

* adding auth fields

* custom auth: form checkbox + state handling

* add create api key to embedded tab

* fix validation error when unchecked

* Add custom JWT into selector and update names

* Update default

* Update zod type for url

* Disable being able to edit recovery share management

* chore: fix lint issues

* fix: typings for recoveryShareManagement type

* chore: fix up custom jwt

* chore: revert dev confirmation email

* chore: remove console log

* only show in edit mode

---------

Signed-off-by: Joaquim Verges <[email protected]>
Co-authored-by: Isaac Dubuque <[email protected]>
Co-authored-by: Edward Sun <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
2023-10-26 22:57:44 +00:00
Nacho Iacovino 9cc693a8fa Refetch on address change (#1850)
* Refetch on address change

* Remove log
2023-10-26 21:47:42 +00:00
Phillip Ho d77c1baf4d fix: Engine request body must be provided even if empty (#1840)
* fix: Engine request body

* content-type
2023-10-25 23:24:49 -07:00
Nacho IacovinoandPhillip Ho dd97b474dc Engine iterations (#1836)
* Improvements

* More stuff

* Config stuff

* Request interceptor

* Swagger UI CSS shenanigans

* Actually disable

* Uncomment button

* Some more css

* Checks for failed to fetch and no authorized wallet

* Remove log

* Make network selector switch your chain

* Copy update

* Copy

* remove unneeded import

---------

Co-authored-by: Phillip Ho <[email protected]>
2023-10-26 01:54:08 +00:00
Phillip Ho ec7b6c92ee Engine transactions table polish (#1838)
* chore: transactions table polish

* undo package changes
2023-10-25 18:40:54 -07:00
Phillip Ho 15171a6f7e feat: autoupdate txn table toggle (#1831) 2023-10-24 23:09:33 -07:00
Nacho Iacovino 3a590e3b25 Engine followups (#1828)
* Backend wallets overview changes

* Transactions table updates

* Copy fix

* Exploration of swagger css commented

* Copy changes

* use magic hook

* Better flow for when wallet is not connected
2023-10-25 03:14:37 +00:00
ebea69352b Add engine dashboard (#1815)
* feat: Add Engine tab to dashboard

* A lot of stuff? Config done

* Backend wallets table

* Add import/create backend wallet capabilities

* Update margin

* Filter txns by chain id

* Add balance check

* Fix build

* Add functions

* Only show remove config if not on local

* whoops

* Add tracking for set wallet config

* Try again

* Update schema for txns

* Update design, save URL in local storage

* Add trailing slash always

* Always simplify url

* Auth works

* Add admin grant/revoke

* Reshuffle stuff

* Add access tokens capabilities

* Add webhooks capabilities

* General updates

* Add local config

* Renaming and moving stuff around

* Hide tab

---------

Co-authored-by: Phillip Ho <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2023-10-25 00:05:31 +00:00
Jonas Daniels 2af15ef5ea refactor(chains): use the api to fetch chains instead of relying on chains package (#1826)
* feat: Add fetchChainsFromApi and fetchChain functions

* feat: add fetchChain and fetchAllChains functions

* make homepage work again with middleware changes

* fix(utils): fix fetchChain parameter type
2023-10-24 19:36:44 +00:00
Tair Asim e6827d15f0 feat: confirm paper wallet email on auth success (#1813)
feat: confirm paper wallet email

fixes PROD-314
2023-10-23 18:51:06 +00:00
Jake Loo e34de562e4 Update contract-importer URL (#1816)
Signed-off-by: Jake Loo <[email protected]>
2023-10-21 04:42:32 +00:00
Tair Asim ad2bc992a4 feat: resend email confirmation (#1805)
fixes FTD-2211
2023-10-19 17:47:38 +00:00
Tair Asim 84128a91f5 chore: email is now required (#1803)
fixes PROD-344
2023-10-19 07:54:53 +00:00
Tair Asim 48e9c9a119 feat: support ach + payment verification (#1801)
fixes FTD-2200
2023-10-19 07:47:08 +00:00
Joaquim Verges b12e36fc15 Wallet analytics tab (#1800)
* WIP wallet stats

* UI polish

* empty states

* fix merge
2023-10-18 21:57:56 +00:00
Jonas Daniels 4837c95a09 feat: add YourFilesSection to DashboardStorage page (#1788)
* feat: add YourFilesSection to DashboardStorage page

* refactor: remove file preview column

* style: add monospace font to file size text

* fix(components): fix YourFilesSection pagination and data fetching

* fix(dropzone): Invalidate pinned files query on file upload

* feat(storage): add file list refetch on upload

* chore(useApi): keep the promise around to avoid multiple fetches

* feat: Add AccountPermissionsV1 to guides and templates
2023-10-18 06:15:24 +00:00
Tair AsimandJonas Daniels 12f92a9508 fix: useApi caching (#1778)
* fix: useApi caching

- misc change to yarn as bun failing

* chore(ci): setup bun for testing

---------

Co-authored-by: Jonas Daniels <[email protected]>
2023-10-13 19:59:45 +00:00
Jonas DanielsandElasticBottle 33e7a9e729 feat(api): add redirectUrls field to ApiKey (#1755)
* fix(api): add redirectUrls field to ApiKey

* test: add redirectUrls validation test

* feat: display redirecrURIs on dashboard

* chore: update helper text for redirectURIs

---------

Co-authored-by: ElasticBottle <[email protected]>
2023-10-11 20:18:53 +00:00
Jonas Daniels 5b32c3d05e refactor(solana): remove support for solana (#1733)
* refactor(solana): remove support for solana

* chore: update @thirdweb-dev/react and @thirdweb-dev/sdk versions

* remove unused code & re-update-next-versions

* refactor: Remove unused Solana currency metadata

* fix build
2023-10-09 19:46:47 +00:00
Tair Asim d500b40959 fix: useAddress for caching api keys & account (#1652)
fixes FTD-2137
2023-10-02 19:38:59 +00:00
Tair Asim b29f24a74e feat: onboarding with email + billing (#1714)
completes FTD-2170, PROD-238
2023-10-02 12:47:10 +00:00
Tair Asim 64371d395b feat: embedded wallets (#1696)
* feat: embedded wallets

completes FTD-2165

* chore: smart wallets show factory deploy
2023-09-28 15:49:27 +00:00
Tair Asim 32774e47c4 feat: show rate limit alerts (#1651)
feat: show rate limit and invalid payment alerts

fixes FTD-2074, PROD-121

show invalid payment alert
2023-09-13 10:11:04 +00:00
Tair Asim 51085ef5db feat: notification preferences (#1628)
feat: notification preferences + onboarding opt-in to email updates

fixes FTD-2101
2023-09-08 10:53:32 +00:00