@argent/x-shared 1.33.1 → 1.33.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.mjs +424 -423
- package/dist/transactions/service/implementation.d.ts +1 -1
- package/dist/transactions/service/interface.d.ts +1 -1
- package/dist/transactions/types.d.ts +2 -0
- package/dist/transactions/useTransactionReviewV2web.d.ts +2 -2
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ export declare class TransactionReviewServiceWeb implements ITransactionReviewSe
|
|
|
24
24
|
* @returns {Promise<TransactionReviewWarning[] | undefined>} The account activities.
|
|
25
25
|
*/
|
|
26
26
|
getWarnings(): Promise<ITransactionReviewWarning[] | undefined>;
|
|
27
|
-
simulateAndReview(account: Account, transactions: TransactionReviewTransactions[], feeTokenAddress: Address, appDomain?: string, accountDeployTransaction?: AccountDeployTransaction): Promise<EnrichedSimulateAndReview | undefined>;
|
|
27
|
+
simulateAndReview(account: Account, transactions: TransactionReviewTransactions[], feeTokenAddress: Address, appDomain?: string, accountDeployTransaction?: AccountDeployTransaction, isDelayedTransaction?: boolean): Promise<EnrichedSimulateAndReview | undefined>;
|
|
28
28
|
private getCallsFromTx;
|
|
29
29
|
fallbackToOnchainFeeEstimation({ transactions, account, isDeploymentTransaction, feeTokenAddress, accountDeployTransaction, }: {
|
|
30
30
|
transactions: TransactionReviewTransactions[];
|
|
@@ -10,5 +10,5 @@ export interface ITransactionReviewBase {
|
|
|
10
10
|
getWarnings(): Promise<ITransactionReviewWarning[] | undefined>;
|
|
11
11
|
}
|
|
12
12
|
export interface ITransactionReviewServiceWeb extends ITransactionReviewBase {
|
|
13
|
-
simulateAndReview(account: Account, transactions: TransactionReviewTransactions[], feeTokenAddress: Address, appDomain?: string, accountDeployTransaction?: AccountDeployTransaction): Promise<EnrichedSimulateAndReview | undefined>;
|
|
13
|
+
simulateAndReview(account: Account, transactions: TransactionReviewTransactions[], feeTokenAddress: Address, appDomain?: string, accountDeployTransaction?: AccountDeployTransaction, isDelayedTransaction?: boolean): Promise<EnrichedSimulateAndReview | undefined>;
|
|
14
14
|
}
|
|
@@ -11,6 +11,7 @@ export interface IuseTransactionReviewV2web {
|
|
|
11
11
|
appDomain?: string;
|
|
12
12
|
accountDeployPayload?: AccountDeploymentData;
|
|
13
13
|
provider: Pick<ProviderInterface, "callContract">;
|
|
14
|
+
isDelayedTransaction?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export type AccountDeployTransaction = {
|
|
16
17
|
type: "DEPLOY_ACCOUNT";
|
|
@@ -26,4 +27,5 @@ export interface IGetReviewForTransactions {
|
|
|
26
27
|
appDomain?: string;
|
|
27
28
|
transactionReviewService: ITransactionReviewServiceWeb;
|
|
28
29
|
accountDeployTransaction: AccountDeployTransaction | undefined;
|
|
30
|
+
isDelayedTransaction?: boolean;
|
|
29
31
|
}
|
|
@@ -4,7 +4,7 @@ import { Address } from '../chains/starknet';
|
|
|
4
4
|
import { EnrichedSimulateAndReview } from '../features/simulation';
|
|
5
5
|
import { AccountDeployTransaction, IGetReviewForTransactions, IuseTransactionReviewV2web } from './types';
|
|
6
6
|
|
|
7
|
-
export declare const getReviewForTransactions: ({ feeTokenAddress, calls, selectedAccount, transactionReviewService, appDomain, accountDeployTransaction, }: IGetReviewForTransactions) => Promise<{
|
|
7
|
+
export declare const getReviewForTransactions: ({ feeTokenAddress, calls, selectedAccount, transactionReviewService, appDomain, accountDeployTransaction, isDelayedTransaction, }: IGetReviewForTransactions) => Promise<{
|
|
8
8
|
result: {
|
|
9
9
|
transactions: ({
|
|
10
10
|
simulation: {
|
|
@@ -504,7 +504,7 @@ export declare const getReviewForTransactions: ({ feeTokenAddress, calls, select
|
|
|
504
504
|
} | undefined;
|
|
505
505
|
} | undefined>;
|
|
506
506
|
export declare const checkGasFeeBalance: (accountAddress: string, result: EnrichedSimulateAndReview, feeTokenAddress: Address, provider: Pick<ProviderInterface, "callContract">) => Promise<boolean>;
|
|
507
|
-
export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress, calls, selectedAccount, transactionReviewService, appDomain, accountDeployPayload, provider, }: IuseTransactionReviewV2web) => Promise<{
|
|
507
|
+
export declare const useTransactionReviewV2webFetcher: () => ({ feeTokenAddress, calls, selectedAccount, transactionReviewService, appDomain, accountDeployPayload, provider, isDelayedTransaction, }: IuseTransactionReviewV2web) => Promise<{
|
|
508
508
|
isSendingMoreThanBalanceAndGas: boolean;
|
|
509
509
|
transactions: ({
|
|
510
510
|
simulation: {
|