Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
150 changes: 107 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"nprogress": "^0.2.0",
"numeral": "^2.0.6",
"pbkdf2": "^3.1.2",
"permissionless": "^0.2.47",
"react": "^18.2.0",
"react-apexcharts": "^1.7.0",
"react-dom": "^18.2.0",
Expand All @@ -124,7 +125,7 @@
"stylis-plugin-rtl": "^2.0.2",
"swr": "^2.2.0",
"uuid": "^10.0.0",
"viem": "^2.21.53",
"viem": "^2.31.4",
"worker-loader": "^3.0.8",
"yet-another-react-lightbox": "^3.11.4",
"yup": "^1.4.0"
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/protocol/use-authorize-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { Calls, WaitForUserOperationReceiptReturnType } from '@src/hooks/types.t
import { ERRORS } from '@src/libs/notifications/errors.ts';
import { GLOBAL_CONSTANTS } from '@src/config-global.ts';
import { useWeb3Auth } from '@src/hooks/use-web3-auth.ts';
import { getNonce } from '@src/utils/wallet.ts';

// ----------------------------------------------------------------------

Expand Down Expand Up @@ -73,6 +74,7 @@ export const useAuthorizePolicy = (): UseAuthorizePolicyHook => {
const userOpHash = await bundlerClient?.sendUserOperation({
account: smartAccount,
calls: calls,
nonce: await getNonce(smartAccount)
});

// Wait for the user operation receipt
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/protocol/use-campaign-pause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {UseCampaignPauseHook, UseCampaignPauseResult} from '@src/hooks/protocol/
import { Calls, WaitForUserOperationReceiptReturnType } from '@src/hooks/types.ts'
import { useAuth } from '@src/hooks/use-auth.ts';
import { useWeb3Auth } from '@src/hooks/use-web3-auth.ts';
import { getNonce } from '@src/utils/wallet.ts';

export const useCampaignPause = (): UseCampaignPauseHook => {
const [data, setData] = useState<UseCampaignPauseResult | null>(null);
Expand Down Expand Up @@ -45,6 +46,7 @@ export const useCampaignPause = (): UseCampaignPauseHook => {
const userOpHash = await bundlerClient?.sendUserOperation({
account: smartAccount,
calls,
nonce: await getNonce(smartAccount)
});
const receipt: WaitForUserOperationReceiptReturnType = await bundlerClient?.waitForUserOperationReceipt({
hash: userOpHash,
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/protocol/use-campaign-remove-funds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import { Calls, WaitForUserOperationReceiptReturnType } from '@src/hooks/types.ts'
import { useAuth } from '@src/hooks/use-auth.ts';
import { useWeb3Auth } from '@src/hooks/use-web3-auth.ts';
import { getNonce } from '@src/utils/wallet.ts';

export const useCampaignRemoveFunds = (): UseCampaignRemoveFundsHook => {
const [data, setData] = useState<UseCampaignRemoveFundsResult | null>(null);
Expand Down Expand Up @@ -52,6 +53,7 @@ export const useCampaignRemoveFunds = (): UseCampaignRemoveFundsHook => {
const userOpHash = await bundlerClient.sendUserOperation({
account: smartAccount,
calls,
nonce: await getNonce(smartAccount)
});
const receipt: WaitForUserOperationReceiptReturnType = await bundlerClient.waitForUserOperationReceipt({
hash: userOpHash,
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/protocol/use-campaign-unpause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {CampaignUnpauseResult, UseCampaignUnPauseHook} from '@src/hooks/protocol
import { useAuth } from '@src/hooks/use-auth.ts';
import { useWeb3Auth } from '@src/hooks/use-web3-auth.ts';
import { Calls, WaitForUserOperationReceiptReturnType } from '@src/hooks/types.ts'
import { getNonce } from '@src/utils/wallet.ts';

export const useCampaignUnPause = (): UseCampaignUnPauseHook => {
const [data, setData] = useState<CampaignUnpauseResult | null>(null);
Expand Down Expand Up @@ -45,6 +46,7 @@ export const useCampaignUnPause = (): UseCampaignUnPauseHook => {
const userOpHash = await bundlerClient.sendUserOperation({
account: smartAccount,
calls,
nonce: await getNonce(smartAccount)
});
const receipt: WaitForUserOperationReceiptReturnType = await bundlerClient.waitForUserOperationReceipt({
hash: userOpHash,
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/protocol/use-configure-campaign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { notifyError } from '@src/libs/notifications/internal-notifications.ts';
import { useAuth } from '@src/hooks/use-auth.ts';
import { useWeb3Auth } from '@src/hooks/use-web3-auth.ts';
import { Calls, WaitForUserOperationReceiptReturnType } from '@src/hooks/types.ts'
import { getNonce } from '@src/utils/wallet.ts';

export const useConfigureCampaign = (): UseConfigureCampaignHook => {
const [data, setData] = useState<ConfigureCampaignResult | null>(null);
Expand Down Expand Up @@ -90,6 +91,7 @@ export const useConfigureCampaign = (): UseConfigureCampaignHook => {
const userOpHash = await bundlerClient.sendUserOperation({
account: smartAccount,
calls,
nonce: await getNonce(smartAccount)
});

// Wait for the transaction receipt
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/protocol/use-create-campaign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { notifyError } from '@src/libs/notifications/internal-notifications.ts';
import { useAuth } from '@src/hooks/use-auth.ts';
import { useWeb3Auth } from '@src/hooks/use-web3-auth.ts';
import { Calls, WaitForUserOperationReceiptReturnType } from '@src/hooks/types.ts'
import { getNonce } from '@src/utils/wallet.ts';

export const useCreateCampaign = (): UseCreateCampaignHook => {
const [data, setData] = useState<CreateCampaignResult |null>(null);
Expand Down Expand Up @@ -51,6 +52,7 @@ export const useCreateCampaign = (): UseCreateCampaignHook => {
const userOpHash = await bundlerClient.sendUserOperation({
account: smartAccount,
calls,
nonce: await getNonce(smartAccount)
});

const receipt: WaitForUserOperationReceiptReturnType = await bundlerClient.waitForUserOperationReceipt({
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/protocol/use-deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ERRORS } from '@src/libs/notifications/errors.ts';
import { GLOBAL_CONSTANTS } from '@src/config-global.ts';
import { useWeb3Auth } from '@src/hooks/use-web3-auth.ts';
import { Calls, WaitForUserOperationReceiptReturnType } from '@src/hooks/types.ts'
import { getNonce } from '@src/utils/wallet.ts';

export const useDeposit = (): UseDepositHook => {
const [data, setData] = useState<UseDepositResult | null>(null);
Expand Down Expand Up @@ -85,6 +86,7 @@ export const useDeposit = (): UseDepositHook => {
const userOpHash = await bundlerClient.sendUserOperation({
account: smartAccount,
calls,
nonce: await getNonce(smartAccount)
});

// Wait for the operation receipt
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/protocol/use-register-asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { GLOBAL_CONSTANTS } from '@src/config-global.ts';
import { ERRORS } from '@src/libs/notifications/errors.ts';
import { useWeb3Auth } from '@src/hooks/use-web3-auth.ts';
import { Calls } from '@src/hooks/types.ts'
import { getNonce } from '@src/utils/wallet.ts';

// ----------------------------------------------------------------------

Expand Down Expand Up @@ -69,6 +70,7 @@ export const useRegisterAsset = (): UseRegisterAssetHook => {
const userOpHash = await bundlerClient.sendUserOperation({
account: smartAccount,
calls,
nonce: await getNonce(smartAccount)
});

const receipt = await bundlerClient.waitForUserOperationReceipt({
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/protocol/use-sponsored-access-agreement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { notifyError } from '@src/libs/notifications/internal-notifications.ts';
import { useAuth } from '@src/hooks/use-auth.ts';
import { useWeb3Auth } from '@src/hooks/use-web3-auth.ts';
import { Calls, WaitForUserOperationReceiptReturnType } from '@src/hooks/types.ts'
import { getNonce } from '@src/utils/wallet.ts';

export const useSponsoredAccessAgreement = (): UseSponsoredAccessAgreementHook => {
const [data, setData] = useState<SponsoredAccessAgreementDetailsReturn | null>(null);
Expand Down Expand Up @@ -57,6 +58,7 @@ export const useSponsoredAccessAgreement = (): UseSponsoredAccessAgreementHook =
const userOpHash = await bundlerClient.sendUserOperation({
account: smartAccount,
calls,
nonce: await getNonce(smartAccount)
});

const receipt: WaitForUserOperationReceiptReturnType = await bundlerClient.waitForUserOperationReceipt({
Expand Down
Loading
Loading