Skip to content

Commit 1e5ca04

Browse files
committed
change property name to simulateOnChainActions
1 parent b3fcd14 commit 1e5ca04

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

packages/snaps-rpc-methods/src/restricted/getPreferences.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('snap_getPreferences', () => {
3131
currency: 'usd',
3232
hideBalances: false,
3333
useSecurityAlerts: true,
34-
useSimulations: true,
34+
simulateOnChainActions: true,
3535
useTokenDetection: true,
3636
batchCheckBalances: true,
3737
displayNftMedia: false,
@@ -54,7 +54,7 @@ describe('snap_getPreferences', () => {
5454
currency: 'usd',
5555
hideBalances: false,
5656
useSecurityAlerts: true,
57-
useSimulations: true,
57+
simulateOnChainActions: true,
5858
useTokenDetection: true,
5959
batchCheckBalances: true,
6060
displayNftMedia: false,

packages/snaps-sdk/src/types/methods/get-preferences.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type GetPreferencesParams = never;
1414
* @property currency - The user's selected currency.
1515
* @property hideBalances - Whether the user has chosen to hide balances.
1616
* @property useSecurityAlerts - Whether to run transactions and signatures through security providers.
17-
* @property useSimulations - Whether to simulate transactions and signatures.
17+
* @property simulateOnChainActions - Whether to simulate transactions and signatures.
1818
* @property useTokenDetection - Whether to auto-detect tokens.
1919
* @property batchCheckBalances - Whether to fetch balances in an aggregated manner.
2020
* @property displayNftMedia - Whether to display NFT media.
@@ -26,7 +26,7 @@ export type GetPreferencesResult = {
2626
currency: string;
2727
hideBalances: boolean;
2828
useSecurityAlerts: boolean;
29-
useSimulations: boolean;
29+
simulateOnChainActions: boolean;
3030
useTokenDetection: boolean;
3131
batchCheckBalances: boolean;
3232
displayNftMedia: boolean;

packages/snaps-simulation/src/methods/hooks/get-preferences.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('getGetPreferencesMethodImplementation', () => {
1414
locale: 'en',
1515
hideBalances: false,
1616
useSecurityAlerts: true,
17-
useSimulations: true,
17+
simulateOnChainActions: true,
1818
useTokenDetection: true,
1919
batchCheckBalances: true,
2020
displayNftMedia: true,
@@ -35,7 +35,7 @@ describe('getGetPreferencesMethodImplementation', () => {
3535
locale: 'nl',
3636
hideBalances: false,
3737
useSecurityAlerts: true,
38-
useSimulations: true,
38+
simulateOnChainActions: true,
3939
useTokenDetection: true,
4040
batchCheckBalances: true,
4141
displayNftMedia: true,
@@ -56,7 +56,7 @@ describe('getGetPreferencesMethodImplementation', () => {
5656
locale: 'en',
5757
hideBalances: false,
5858
useSecurityAlerts: true,
59-
useSimulations: true,
59+
simulateOnChainActions: true,
6060
useTokenDetection: true,
6161
batchCheckBalances: true,
6262
displayNftMedia: true,
@@ -77,7 +77,7 @@ describe('getGetPreferencesMethodImplementation', () => {
7777
locale: 'en',
7878
hideBalances: true,
7979
useSecurityAlerts: true,
80-
useSimulations: true,
80+
simulateOnChainActions: true,
8181
useTokenDetection: true,
8282
batchCheckBalances: true,
8383
displayNftMedia: true,

packages/snaps-simulation/src/methods/hooks/get-preferences.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { SimulationOptions } from '../../options';
88
* @param options.locale - The locale to use.
99
* @param options.hideBalances - Whether to hide balances.
1010
* @param options.useSecurityAlerts - Whether to run transactions and signatures through security providers.
11-
* @param options.useSimulations - Whether to simulate transactions and signatures.
11+
* @param options.simulateOnChainActions - Whether to simulate transactions and signatures.
1212
* @param options.useTokenDetection - Whether to auto-detect tokens.
1313
* @param options.batchCheckBalances - Whether to fetch balances in an aggregated manner.
1414
* @param options.displayNftMedia - Whether to display NFT media.
@@ -21,7 +21,7 @@ export function getGetPreferencesMethodImplementation({
2121
locale,
2222
hideBalances,
2323
useSecurityAlerts,
24-
useSimulations,
24+
simulateOnChainActions,
2525
useTokenDetection,
2626
batchCheckBalances,
2727
displayNftMedia,
@@ -34,7 +34,7 @@ export function getGetPreferencesMethodImplementation({
3434
locale,
3535
hideBalances,
3636
useSecurityAlerts,
37-
useSimulations,
37+
simulateOnChainActions,
3838
useTokenDetection,
3939
batchCheckBalances,
4040
displayNftMedia,

packages/snaps-simulation/src/options.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('getOptions', () => {
1717
"useNftDetection": true,
1818
"useExternalPricingData": true,
1919
"useSecurityAlerts": true,
20-
"useSimulations": true,
20+
"simulateOnChainActions": true,
2121
"useTokenDetection": true,
2222
}
2323
`);
@@ -42,7 +42,7 @@ describe('getOptions', () => {
4242
"useNftDetection": true,
4343
"useExternalPricingData": true,
4444
"useSecurityAlerts": true,
45-
"useSimulations": true,
45+
"simulateOnChainActions": true,
4646
"useTokenDetection": true,
4747
}
4848
`);

packages/snaps-simulation/src/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const SimulationOptionsStruct = object({
2424
),
2525
hideBalances: defaulted(optional(boolean()), false),
2626
useSecurityAlerts: defaulted(optional(boolean()), true),
27-
useSimulations: defaulted(optional(boolean()), true),
27+
simulateOnChainActions: defaulted(optional(boolean()), true),
2828
useTokenDetection: defaulted(optional(boolean()), true),
2929
batchCheckBalances: defaulted(optional(boolean()), true),
3030
displayNftMedia: defaulted(optional(boolean()), true),
@@ -42,7 +42,7 @@ const SimulationOptionsStruct = object({
4242
* @property locale - The locale to use. Defaults to `en`.
4343
* @property state - The initial state of the Snap, if any. Defaults to `null`.
4444
* @property useSecurityAlerts - Whether to run transactions and signatures through security providers.
45-
* @property useSimulations - Whether to simulate transactions and signatures.
45+
* @property simulateOnChainActions - Whether to simulate transactions and signatures.
4646
* @property useTokenDetection - Whether to auto-detect tokens.
4747
* @property batchCheckBalances - Whether to fetch balances in an aggregated manner.
4848
* @property displayNftMedia - Whether to display NFT media.

packages/snaps-simulation/src/test-utils/options.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { SimulationOptions } from '../options';
1212
* @param options.unencryptedState - The unencrypted state to use.
1313
* @param options.hideBalances - Whether to hide balances.
1414
* @param options.useSecurityAlerts - Whether to run transactions and signatures through security providers.
15-
* @param options.useSimulations - Whether to simulate transactions and signatures.
15+
* @param options.simulateOnChainActions - Whether to simulate transactions and signatures.
1616
* @param options.useTokenDetection - Whether to auto-detect tokens.
1717
* @param options.batchCheckBalances - Whether to fetch balances in an aggregated manner.
1818
* @param options.displayNftMedia - Whether to display NFT media.
@@ -28,7 +28,7 @@ export function getMockOptions({
2828
state = null,
2929
unencryptedState = null,
3030
useSecurityAlerts = true,
31-
useSimulations = true,
31+
simulateOnChainActions = true,
3232
useTokenDetection = true,
3333
batchCheckBalances = true,
3434
displayNftMedia = true,
@@ -43,7 +43,7 @@ export function getMockOptions({
4343
unencryptedState,
4444
hideBalances,
4545
useSecurityAlerts,
46-
useSimulations,
46+
simulateOnChainActions,
4747
useTokenDetection,
4848
batchCheckBalances,
4949
displayNftMedia,

packages/snaps-simulator/src/features/simulation/sagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export function* initSaga({ payload }: PayloadAction<string>) {
132132
currency: 'usd',
133133
hideBalances: false,
134134
useSecurityAlerts: true,
135-
useSimulations: true,
135+
simulateOnChainActions: true,
136136
useTokenDetection: true,
137137
batchCheckBalances: true,
138138
displayNftMedia: true,

0 commit comments

Comments
 (0)