Skip to content

Ctzn token and publish #59

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

Open
wants to merge 195 commits into
base: release/1.2.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
f430a7f
install transak-sdk
Rdilshan Apr 10, 2025
d0f62ac
simple page create for onramp
Rdilshan Apr 10, 2025
05881da
add the user account
Rdilshan Apr 11, 2025
d02d795
add new route for onramp
Rdilshan Apr 11, 2025
08689ee
remove the old onramp route
Rdilshan Apr 11, 2025
3627380
fixing the building error
Rdilshan Apr 11, 2025
738c8a6
create success screen for the onramp
Rdilshan Apr 16, 2025
2678012
add Developer section with Webhooks link
Rdilshan Apr 29, 2025
6823e46
refactor NavProjects component
Rdilshan Apr 29, 2025
6f0fc3d
Create a sample page
Rdilshan Apr 29, 2025
13f997e
Add webhooks service with Read and create
Rdilshan Apr 29, 2025
7b34521
Implement webhooks data fetching and creation functionality
Rdilshan Apr 29, 2025
d05888b
Add createWebhookAction function to handle webhook creation in the da…
Rdilshan Apr 29, 2025
be62b22
Add deleteWebhook function
Rdilshan Apr 29, 2025
760beca
Add deleteWebhookAction function
Rdilshan Apr 29, 2025
32b45ee
Refactor webhooks component to use createColumns for DataTable and im…
Rdilshan Apr 29, 2025
3cbd496
Add getWebhookSecret function
Rdilshan Apr 30, 2025
055f786
Enhance webhooks page to fetch and display webhook secret, and add co…
Rdilshan Apr 30, 2025
15f23bb
Update skeleton loading states
Rdilshan Apr 30, 2025
db179ed
Add link to event topic in webhooks columns for easy editing
Rdilshan Apr 30, 2025
d3b4189
Add getWebhookById function
Rdilshan Apr 30, 2025
d69787b
Add webhook edit page with form
Rdilshan Apr 30, 2025
2062a3f
Add updateWebhook function and action for modifying existing webhooks
Rdilshan Apr 30, 2025
d6f2159
Enhance webhook deletion and update actions
Rdilshan Apr 30, 2025
d2348c5
fix the building error
Rdilshan Apr 30, 2025
ae18139
Update CreateWebhook type to include event_contract field
Rdilshan Apr 30, 2025
0c0ac16
getEvents function
Rdilshan Apr 30, 2025
9e2c1ac
Add event selection to webhooks component and integrate getEvents data
Rdilshan Apr 30, 2025
a37a02a
Enhance getEvents function to include alias parameter
Rdilshan May 2, 2025
0a17ed3
Refactor and extend event retrieval functions to include getEventByCo…
Rdilshan May 2, 2025
e03d077
Refactor event retrieval in webhooks page to use getEventsByChainId f…
Rdilshan May 2, 2025
95df0dc
Integrate event selection into webhook form, allowing users to choose…
Rdilshan May 2, 2025
56d9d28
Format event topic display in webhooks table
Rdilshan May 2, 2025
ad912fe
Enhance webhooks functionality by adding alias parameter to PageLoade…
Rdilshan May 5, 2025
a8fbf71
Add revalidation for webhook path after deletion to ensure up-to-date UI
Rdilshan May 5, 2025
7ba1318
Refactor event_topic field rendering in webhook form for improved cla…
Rdilshan May 5, 2025
74384d9
isTransakOne
Rdilshan May 7, 2025
7031900
Update Transak integration with fiat currency and amount
Rdilshan May 7, 2025
e23bd5c
Refactor onramp page to remove Transak integration and simplify struc…
Rdilshan May 8, 2025
1445fc2
Add Transak integration to onramp pay page with async loading and wid…
Rdilshan May 8, 2025
f033efa
Merge branch 'main' into onramp
Rdilshan May 8, 2025
02313ff
update community json
Rdilshan May 8, 2025
bcd1076
Enhance email form schema by adding type validation for email
Rdilshan May 8, 2025
6f31fd0
Refactor email form submission logic
Rdilshan May 8, 2025
325ac1b
Add StorageService for localStorage management with key handling
Rdilshan May 8, 2025
cb71cdb
Add session management logic with Zustand for state handling and stor…
Rdilshan May 8, 2025
c8d230e
Integrate session management into email form submission
Rdilshan May 8, 2025
5294937
Fix TransakWidget
Rdilshan May 8, 2025
779c97b
Add Onramp page component
Rdilshan May 8, 2025
658114f
Add asset hostname to Next.js configuration for API access
Rdilshan May 8, 2025
54f6044
Enhance Onramp component
Rdilshan May 8, 2025
e793930
Add IPFS domain configuration to Next.js settings
Rdilshan May 8, 2025
2552e68
Refactor Onramp component to support connected account and profile in…
Rdilshan May 8, 2025
0fcc0ba
Refactor Onramp component to remove unused props and simplify form su…
Rdilshan May 8, 2025
fd6a9ce
Refactor TransakWidget to streamline widget management and cleanup logic
Rdilshan May 8, 2025
917dbe2
Add OTP form submission action with session management logic
Rdilshan May 14, 2025
b9efaee
Refactor email form submission to ensure OTP action is executed and s…
Rdilshan May 14, 2025
5ea27eb
Enhance OTP form schema
Rdilshan May 14, 2025
34b86b4
Update OTP login process to include address validation and enhance us…
Rdilshan May 14, 2025
f1e4e5d
Add sign-in functionality without OTP and update email form to handle…
Rdilshan May 14, 2025
676dab4
Update ALIAS constant
Rdilshan May 14, 2025
ca0bf53
Refactor layout component to remove user authentication and redirecti…
Rdilshan May 14, 2025
dd2001f
Update community actions to replace fetchCommunitiesAction with fetch…
Rdilshan May 14, 2025
9e19901
Add login functionality with email and OTP verification, including fo…
Rdilshan May 15, 2025
91511b6
Update redirection logic in DashboardLayout to use dynamic alias for …
Rdilshan May 15, 2025
956c725
Refactor authentication logic to replace OTP verification with alias …
Rdilshan May 15, 2025
b5e2eed
Add JWT utility functions for token creation and verification
Rdilshan May 15, 2025
8f6e147
Implement JWT session strategy and enhance token handling in authenti…
Rdilshan May 15, 2025
5ebe791
Add price fetching functions for WPOL/USDC and CTZN/WPOL pairs in Onr…
Rdilshan May 16, 2025
9b7cd0f
Add ABI files for CTZN and WPOL contracts in Onramp module
Rdilshan May 16, 2025
ce5fee1
Implement token price fetching in Onramp component and update preset …
Rdilshan May 16, 2025
b73fc11
Refactor price fetching functions to create provider instances locall…
Rdilshan May 16, 2025
4102bb2
Add cost estimation feature in Onramp component with loading state
Rdilshan May 16, 2025
fec1343
Refactor price fetching functions
Rdilshan May 16, 2025
dc095a7
Enhance Onramp component with debounced cost estimation and refactor …
Rdilshan May 16, 2025
a73208b
Update dependencies
Rdilshan May 16, 2025
61a1fce
navigation after payment amount selection
Rdilshan May 16, 2025
7692fa0
Integrate payment amount into Onramp component and update token price…
Rdilshan May 16, 2025
991b101
Enhance authentication configuration by adding custom JWT
Rdilshan May 19, 2025
51bc418
authorization checks based on chain ID
Rdilshan May 19, 2025
3174756
Refactor community fetching and authentication logic to utilize alias…
Rdilshan May 19, 2025
c2a79e6
Update authentication configuration to change chainIds type to number[]
Rdilshan May 19, 2025
6869901
Add session handling in sign-in action to include user chain IDs
Rdilshan May 19, 2025
3e87bbc
update session maxAge to 365 days
Rdilshan May 19, 2025
fa72386
Refactor access control logic
Rdilshan May 19, 2025
a9855f6
Update getAuthUserAction to use chain_id parameter
Rdilshan May 19, 2025
9f10eff
Refactor fetchCommunitiesAction to retrieve user data using community…
Rdilshan May 19, 2025
219616d
Enhance AppSidebar component to include access control for project vi…
Rdilshan May 19, 2025
8148e58
removing unused imports
Rdilshan May 19, 2025
57b58bf
fixing string convert to number array
Rdilshan May 20, 2025
bab8910
Check if the user is an admin of that community.
Rdilshan May 20, 2025
5c542b3
remove error logging
Rdilshan May 20, 2025
94fae14
Enhance session updates and include trigger parameter
Rdilshan May 20, 2025
7c5fc43
pass selectedCommunity config to NavUser
Rdilshan May 20, 2025
30c8f0c
clearing local storage and update the session
Rdilshan May 20, 2025
d4a8354
Add useSession hook to manage session logic and state
Rdilshan May 20, 2025
ead0aed
update session saving
Rdilshan May 20, 2025
048d897
remove unused import and variable
Rdilshan May 21, 2025
f04b478
Merge branch 'main' into improvement_login
Rdilshan May 21, 2025
734677c
remove jwt
Rdilshan May 21, 2025
19ca72a
update the package
Rdilshan May 21, 2025
b2d0604
pass the config
Rdilshan May 21, 2025
e457e32
On signout, clear local storage, remove chainId from the session, and…
Rdilshan May 21, 2025
918ee4b
Improve error handling in email and OTP forms by providing user-frien…
Rdilshan May 21, 2025
275a57d
Enhance error handling
Rdilshan May 21, 2025
04a17fe
update resending OTP function
Rdilshan May 21, 2025
b4630ef
signer and signature function getting to client side
Rdilshan May 22, 2025
09c0227
otp checking part, signer and signature function getting to client side
Rdilshan May 22, 2025
e1043f0
remove unused imports
Rdilshan May 22, 2025
77012ab
Fixing logout issues in the Brussels-Pay community.
Rdilshan May 22, 2025
443553d
Check user permissions before executing the function.
Rdilshan May 27, 2025
872b814
Merge branch 'main' into Webhook_event
Rdilshan May 27, 2025
1bc94db
Merge pull request #44 from citizenwallet/Webhook_event
kevtechi Jun 2, 2025
74af66d
Export wpolUsdcPriceAction function for improved accessibility in Onr…
Rdilshan Jun 7, 2025
7542013
Add OnRampSwapper ABI file to define contract interactions and events
Rdilshan Jun 7, 2025
d6a1288
Enhance Onramp component by integrating wpolUsdc price fetching, upda…
Rdilshan Jun 7, 2025
42e567c
building error fix
Rdilshan Jun 9, 2025
1ce2768
Merge branch 'main' of https://github.com/citizenwallet/dashboard int…
kevtechi Jun 12, 2025
7bb1751
linting
kevtechi Jun 13, 2025
7bcb1dc
add api key
kevtechi Jun 13, 2025
77e4a64
trigger auto-close in app
kevtechi Jun 13, 2025
1d8b14d
adjust preset amounts
kevtechi Jun 13, 2025
38346d6
fix hook error and remove unused imports
kevtechi Jun 13, 2025
c4e6bed
only display error when cost is set
kevtechi Jun 13, 2025
624b7ce
fix error
Rdilshan Jun 24, 2025
f6e6827
create sample page for checkout
Rdilshan Jun 24, 2025
7166a8d
Refactor CheckoutFlow component to simplify state management and impr…
Rdilshan Jun 24, 2025
fd05e91
Merge pull request #47 from citizenwallet/improvement_login
kevtechi Jun 24, 2025
de502f8
fix for missing variable
kevtechi Jun 24, 2025
090645b
Merge branch 'main' of https://github.com/citizenwallet/dashboard int…
kevtechi Jun 24, 2025
9a793d3
fixes from merge
kevtechi Jun 24, 2025
2033bbd
Refactor communities table and dashboard components to use new servic…
Rdilshan Jun 24, 2025
5f3dd9e
Refactor authentication logic to use getCommunityByAlias service for …
Rdilshan Jun 24, 2025
b5c140e
Refactor dashboard page
Rdilshan Jun 24, 2025
7cd44d6
code formatting
Rdilshan Jun 24, 2025
f90dae0
Refactor community data retrieval in members pages
Rdilshan Jun 24, 2025
b709e12
now this login did not used
Rdilshan Jun 24, 2025
f94340f
refactor pages
Rdilshan Jun 24, 2025
37e9391
refactor pages
Rdilshan Jun 24, 2025
3708642
refactor treasury page
Rdilshan Jun 25, 2025
ad25158
Refactor community data retrieval across dashboard pages to utilize g…
Rdilshan Jun 25, 2025
28222bd
not used those functions
Rdilshan Jun 25, 2025
c381ef6
Add react-qr-code package
Rdilshan Jun 25, 2025
b03f4db
Enhance checkout page to retrieve community data using getCommunityBy…
Rdilshan Jun 25, 2025
0c5031c
Refactor CheckoutFlow component to integrate account balance retrieva…
Rdilshan Jun 25, 2025
341884b
Add Progress component using @radix-ui/react-progress
Rdilshan Jun 30, 2025
02cc940
Add ERC1967 and Profile contract ABIs and bytecodes for smart contrac…
Rdilshan Jun 30, 2025
8096841
wallet creation and update deployment process
Rdilshan Jun 30, 2025
d46b94b
Add deployProfileAction function to handle profile contract deploymen…
Rdilshan Jun 30, 2025
75f358d
Refactor CHAIN_ID_TO_RPC_URL function to improve readability and chan…
Rdilshan Jun 30, 2025
aefe41b
Add Paymaster contract ABI and bytecode for smart contract interactions
Rdilshan Jun 30, 2025
d7c2fcb
Add deployPaymasterAction function , including initialization with wh…
Rdilshan Jun 30, 2025
4d8ee3c
Add Token contract ABI and bytecode for smart contract interactions
Rdilshan Jun 30, 2025
dac12d2
Add deployTokenAction function for deploying token contracts
Rdilshan Jun 30, 2025
ad76673
Add updateCommunityConfigAction
Rdilshan Jul 1, 2025
6197806
Refactor CheckoutFlow to utilize userAddress instead of wallet, integ…
Rdilshan Jul 1, 2025
b84f7b3
Update CheckoutFlow to change topup URL format for Ethereum transacti…
Rdilshan Jul 1, 2025
d6cb3bd
Merge branch 'release/1.2.0' into ctzn-token-and-publish
Rdilshan Jul 1, 2025
d1fe030
Refactor event and community services to improve type definitions and…
Rdilshan Jul 1, 2025
e30fb2e
Update @citizenwallet/sdk dependency to version 2.0.103 in package-lo…
Rdilshan Jul 1, 2025
d1e042c
update user add
Rdilshan Jul 1, 2025
739a743
Refactor community data fetching in BYOC and Create pages
Rdilshan Jul 1, 2025
73c3b36
building error
Rdilshan Jul 1, 2025
0ec3637
Refactor StorageService to use chainId instead of alias for localStorage
Rdilshan Jul 1, 2025
98905d6
Refactor DashboardLayout and SessionLogic to streamline community cha…
Rdilshan Jul 2, 2025
f489113
Add isEmpty utility function to utils.ts for value validation
Rdilshan Jul 2, 2025
2580144
dynamic icons for profile and currency states.
Rdilshan Jul 2, 2025
4a0284c
Update title and sub title checkout and configuration pages
Rdilshan Jul 2, 2025
af25134
Refactor profileActive condition in AppSidebar to simplify community …
Rdilshan Jul 2, 2025
4fa4ffc
Add supported chains for token validation in BYOCForm and improve err…
Rdilshan Jul 2, 2025
2dde4b7
Add chain details for community creation and update account handling …
Rdilshan Jul 2, 2025
8b93137
showcasing token name and symbol with icons
Rdilshan Jul 2, 2025
bf0cb16
Remove hardcoded chain details from createCommunityAction
Rdilshan Jul 2, 2025
4f5e5db
Implement conditional navigation after profile update based on curren…
Rdilshan Jul 2, 2025
2d399a5
Update CommunitySwitcher to reflect inactive state with a new badge s…
Rdilshan Jul 2, 2025
57f7298
Add createTokenAction to handle token creation and update community json
Rdilshan Jul 2, 2025
0222d94
Add getTokenMetadataAction to retrieve token metadata and integrate i…
Rdilshan Jul 2, 2025
dda95ea
Update getTokenMetadataAction to use chain_id from community profile …
Rdilshan Jul 2, 2025
3b91d00
Integrate navigation after successful configuration creation in BYOCForm
Rdilshan Jul 2, 2025
9cc2ee3
Add CTZN community data retrieval and integrate into CheckoutLoader
Rdilshan Jul 2, 2025
0aa17ca
Refactor CheckoutFlow to utilize ctzn_config for session management a…
Rdilshan Jul 2, 2025
11d2834
Fix logic for profile and currency activity states in AppSidebar comp…
Rdilshan Jul 2, 2025
25bd58d
fix the building error
Rdilshan Jul 2, 2025
136c9c7
balance in sidebar
kevtechi Jul 2, 2025
4fa9b6c
Refactor getting token name and symbol.
Rdilshan Jul 3, 2025
3d32e66
Fetch user account address and balance on the server side
Rdilshan Jul 3, 2025
bc4e756
Update TOKEN_BYTECODE
Rdilshan Jul 3, 2025
82ea3c6
Add activeCommunity function to update community status in top-db
Rdilshan Jul 3, 2025
f4e8c8a
community configuration updates and ensure active community status
Rdilshan Jul 3, 2025
47b8f7f
code formatting commit
SajeeTechi Jul 23, 2025
2259a47
button styling
SajeeTechi Jul 23, 2025
78616e3
update button styling
SajeeTechi Jul 23, 2025
d974344
create community in Mainnets or Testnets
SajeeTechi Jul 23, 2025
333de6a
add chain id of new community to user's auth session
SajeeTechi Jul 23, 2025
759ee67
Merge pull request #63 from citizenwallet/community-in-testnet
SajeeTechi Jul 23, 2025
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
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ SERVER_42220_WALLET_PRIVATE_KEY=
# Supabase for chain 8453 (Base)
SUPABASE_8453_URL=https://...
SUPABASE_8453_ANON_KEY=...
SUPABASE_8453_SERVICE_ROLE_KEY=...
SUPABASE_8453_SERVICE_ROLE_KEY=...

# ONRAMP
TRANSAK_API_KEY=...
Loading