@metamask-previews/smart-transactions-controller 19.2.1-preview-520a56d → 24.2.1-preview-be04faa3e
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/CHANGELOG.md +2 -703
- package/README.md +36 -77
- package/dist/SmartTransactionsController-method-action-types.cjs +7 -0
- package/dist/SmartTransactionsController-method-action-types.cjs.map +1 -0
- package/dist/SmartTransactionsController-method-action-types.d.cts +94 -0
- package/dist/SmartTransactionsController-method-action-types.d.cts.map +1 -0
- package/dist/SmartTransactionsController-method-action-types.d.mts +94 -0
- package/dist/SmartTransactionsController-method-action-types.d.mts.map +1 -0
- package/dist/SmartTransactionsController-method-action-types.mjs +6 -0
- package/dist/SmartTransactionsController-method-action-types.mjs.map +1 -0
- package/dist/SmartTransactionsController.cjs +164 -120
- package/dist/SmartTransactionsController.cjs.map +1 -1
- package/dist/SmartTransactionsController.d.cts +45 -25
- package/dist/SmartTransactionsController.d.cts.map +1 -1
- package/dist/SmartTransactionsController.d.mts +45 -25
- package/dist/SmartTransactionsController.d.mts.map +1 -1
- package/dist/SmartTransactionsController.mjs +167 -123
- package/dist/SmartTransactionsController.mjs.map +1 -1
- package/dist/constants.cjs +26 -4
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +22 -1
- package/dist/constants.d.cts.map +1 -1
- package/dist/constants.d.mts +22 -1
- package/dist/constants.d.mts.map +1 -1
- package/dist/constants.mjs +25 -3
- package/dist/constants.mjs.map +1 -1
- package/dist/featureFlags/feature-flags.cjs +121 -0
- package/dist/featureFlags/feature-flags.cjs.map +1 -0
- package/dist/featureFlags/feature-flags.d.cts +76 -0
- package/dist/featureFlags/feature-flags.d.cts.map +1 -0
- package/dist/featureFlags/feature-flags.d.mts +76 -0
- package/dist/featureFlags/feature-flags.d.mts.map +1 -0
- package/dist/featureFlags/feature-flags.mjs +114 -0
- package/dist/featureFlags/feature-flags.mjs.map +1 -0
- package/dist/featureFlags/index.cjs +14 -0
- package/dist/featureFlags/index.cjs.map +1 -0
- package/dist/featureFlags/index.d.cts +3 -0
- package/dist/featureFlags/index.d.cts.map +1 -0
- package/dist/featureFlags/index.d.mts +3 -0
- package/dist/featureFlags/index.d.mts.map +1 -0
- package/dist/featureFlags/index.mjs +3 -0
- package/dist/featureFlags/index.mjs.map +1 -0
- package/dist/featureFlags/validators.cjs +128 -0
- package/dist/featureFlags/validators.cjs.map +1 -0
- package/dist/featureFlags/validators.d.cts +148 -0
- package/dist/featureFlags/validators.d.cts.map +1 -0
- package/dist/featureFlags/validators.d.mts +148 -0
- package/dist/featureFlags/validators.d.mts.map +1 -0
- package/dist/featureFlags/validators.mjs +123 -0
- package/dist/featureFlags/validators.mjs.map +1 -0
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/selectors.cjs +66 -0
- package/dist/selectors.cjs.map +1 -0
- package/dist/selectors.d.cts +181 -0
- package/dist/selectors.d.cts.map +1 -0
- package/dist/selectors.d.mts +181 -0
- package/dist/selectors.d.mts.map +1 -0
- package/dist/selectors.mjs +63 -0
- package/dist/selectors.mjs.map +1 -0
- package/dist/types.cjs +46 -6
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +85 -11
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +85 -11
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +45 -5
- package/dist/types.mjs.map +1 -1
- package/dist/utils.cjs +57 -78
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +9 -30
- package/dist/utils.d.cts.map +1 -1
- package/dist/utils.d.mts +9 -30
- package/dist/utils.d.mts.map +1 -1
- package/dist/utils.mjs +56 -75
- package/dist/utils.mjs.map +1 -1
- package/package.json +57 -100
package/README.md
CHANGED
|
@@ -10,94 +10,53 @@ or
|
|
|
10
10
|
|
|
11
11
|
`npm install @metamask/smart-transactions-controller`
|
|
12
12
|
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
### Setup
|
|
16
|
-
|
|
17
|
-
- Install the current LTS version of [Node.js](https://nodejs.org)
|
|
18
|
-
- If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm install` will install the latest suitable version and running `nvm use` will automatically choose the right node version for you.
|
|
19
|
-
- Install [Yarn v3](https://yarnpkg.com/getting-started/install)
|
|
20
|
-
- Run `yarn install` to install dependencies and run any required post-install scripts
|
|
21
|
-
|
|
22
|
-
### Testing and Linting
|
|
23
|
-
|
|
24
|
-
Run `yarn test` to run the tests once. To run tests on file changes, run `yarn test:watch`.
|
|
25
|
-
|
|
26
|
-
Run `yarn lint` to run the linter, or run `yarn lint:fix` to run the linter and fix any automatically fixable issues.
|
|
27
|
-
|
|
28
|
-
### Release & Publishing
|
|
29
|
-
|
|
30
|
-
The project follows the same release process as the other libraries in the MetaMask organization. The GitHub Actions [`action-create-release-pr`](https://github.com/MetaMask/action-create-release-pr) and [`action-publish-release`](https://github.com/MetaMask/action-publish-release) are used to automate the release process; see those repositories for more information about how they work.
|
|
31
|
-
|
|
32
|
-
1. Choose a release version.
|
|
33
|
-
|
|
34
|
-
- The release version should be chosen according to SemVer. Analyze the changes to see whether they include any breaking changes, new features, or deprecations, then choose the appropriate SemVer version. See [the SemVer specification](https://semver.org/) for more information.
|
|
13
|
+
## Feature Flags
|
|
35
14
|
|
|
36
|
-
|
|
15
|
+
Smart transactions feature flags are managed via `RemoteFeatureFlagController` (LaunchDarkly). The configuration uses a `default` remote object for global settings and chain-specific overrides keyed by hex chain ID.
|
|
37
16
|
|
|
38
|
-
|
|
17
|
+
The flag in LaunchDarkly is named `smartTransactionsNetworks`.
|
|
39
18
|
|
|
40
|
-
|
|
19
|
+
### Adding a New Flag
|
|
41
20
|
|
|
42
|
-
|
|
43
|
-
- This should trigger the [`action-create-release-pr`](https://github.com/MetaMask/action-create-release-pr) workflow to create the release PR.
|
|
21
|
+
1. **Add the field to the schema** in `src/utils/validators.ts`:
|
|
44
22
|
|
|
45
|
-
|
|
23
|
+
```typescript
|
|
24
|
+
export const SmartTransactionsNetworkConfigSchema = type({
|
|
25
|
+
// ... existing fields
|
|
26
|
+
myNewFlag: optional(boolean()),
|
|
27
|
+
});
|
|
28
|
+
```
|
|
46
29
|
|
|
47
|
-
|
|
48
|
-
- Try to explain each change in terms that users of the package would understand (e.g. avoid referencing internal variables/concepts).
|
|
49
|
-
- Consolidate related changes into one change entry if it makes it easier to explain.
|
|
50
|
-
- Run `yarn auto-changelog validate --rc` to check that the changelog is correctly formatted.
|
|
30
|
+
The `SmartTransactionsNetworkConfig` type is automatically inferred from this schema.
|
|
51
31
|
|
|
52
|
-
|
|
32
|
+
2. **Add default value** in `src/constants.ts` under `DEFAULT_DISABLED_SMART_TRANSACTIONS_FEATURE_FLAGS`:
|
|
53
33
|
|
|
54
|
-
|
|
34
|
+
These values should be defensive. They are applied when the remote config is invalid or does not exist for a network.
|
|
35
|
+
It disables smart transaction.
|
|
55
36
|
|
|
56
|
-
|
|
37
|
+
```typescript
|
|
38
|
+
export const DEFAULT_DISABLED_SMART_TRANSACTIONS_FEATURE_FLAGS = {
|
|
39
|
+
default: {
|
|
40
|
+
// ... existing defaults
|
|
41
|
+
myNewFlag: false,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
```
|
|
57
45
|
|
|
58
|
-
|
|
46
|
+
3. **Use in clients** via the exported selectors:
|
|
59
47
|
|
|
60
|
-
|
|
48
|
+
```typescript
|
|
49
|
+
import { selectSmartTransactionsFeatureFlagsForChain } from '@metamask/smart-transactions-controller';
|
|
61
50
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
51
|
+
const chainConfig = selectSmartTransactionsFeatureFlagsForChain(
|
|
52
|
+
state,
|
|
53
|
+
'0x1',
|
|
54
|
+
);
|
|
55
|
+
if (chainConfig.myNewFlag) {
|
|
56
|
+
// Feature is enabled
|
|
57
|
+
}
|
|
58
|
+
```
|
|
65
59
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
If you are working on a pull request and want to test changes in another project before you publish them, you can create a _preview build_ and then configure your project to use it.
|
|
69
|
-
|
|
70
|
-
#### Creating a preview build
|
|
71
|
-
|
|
72
|
-
1. Within your pull request, post a comment with the text `@metamaskbot publish-preview`. This starts the `publish-preview` GitHub action, which will create a preview build and publish it to NPM.
|
|
73
|
-
2. After a few minutes, the action should complete and you will see a new comment. Note two things:
|
|
74
|
-
- The name is scoped to `@metamask-previews` instead of `@metamask`.
|
|
75
|
-
- The ID of the last commit in the branch is appended to the version, e.g. `1.2.3-preview-e2df9b4` instead of `1.2.3`.
|
|
76
|
-
|
|
77
|
-
#### Using a preview build
|
|
78
|
-
|
|
79
|
-
To use a preview build within a project, you need to override the resolution logic for your package manager so that the "production" version of that package is replaced with the preview version. Here's how you do that:
|
|
80
|
-
|
|
81
|
-
1. Open `package.json` in the project and locate the entry for this package in `dependencies`.
|
|
82
|
-
2. Locate the section responsible for resolution overrides (or create it if it doesn't exist). If you're using Yarn, this is `resolutions`; if you're using NPM or any other package manager, this is `overrides`.
|
|
83
|
-
3. Add a line to this section that mirrors the dependency entry on the left-hand side and points to the preview version on the right-hand side. Note the exact format of the left-hand side will differ based on which version of Yarn or NPM you are using. For example:
|
|
84
|
-
- For Yarn Modern, you will add something like this to `resolutions`:
|
|
85
|
-
```
|
|
86
|
-
"@metamask/smart-transactions-controller@^1.2.3": "npm:@metamask-previews/smart-transactions-controller@1.2.3-preview-abcdefg"
|
|
87
|
-
```
|
|
88
|
-
- For Yarn Classic, you will add something like this to `resolutions`:
|
|
89
|
-
```
|
|
90
|
-
"@metamask/smart-transactions-controller": "npm:@metamask-previews/smart-transactions-controller@1.2.3-preview-abcdefg"
|
|
91
|
-
```
|
|
92
|
-
- For NPM, you will add something like this to `overrides`:
|
|
93
|
-
```
|
|
94
|
-
"@metamask/smart-transactions-controller": "npm:@metamask-previews/smart-transactions-controller@1.2.3-preview-abcdefg"
|
|
95
|
-
```
|
|
96
|
-
4. Run `yarn install`.
|
|
97
|
-
|
|
98
|
-
#### Updating a preview build
|
|
99
|
-
|
|
100
|
-
If you make more changes to your pull request and want to create a new preview build:
|
|
60
|
+
## Contributing
|
|
101
61
|
|
|
102
|
-
|
|
103
|
-
2. Update the version of the preview build in your project's `package.json`. Make sure to re-run `yarn install`!
|
|
62
|
+
This package is part of a monorepo. Instructions for contributing can be found in the [monorepo README](https://github.com/MetaMask/core#readme).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmartTransactionsController-method-action-types.cjs","sourceRoot":"","sources":["../src/SmartTransactionsController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { SmartTransactionsController } from './SmartTransactionsController';\n\nexport type SmartTransactionsControllerCheckPollAction = {\n type: `SmartTransactionsController:checkPoll`;\n handler: SmartTransactionsController['checkPoll'];\n};\n\nexport type SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction =\n {\n type: `SmartTransactionsController:initializeSmartTransactionsForChainId`;\n handler: SmartTransactionsController['initializeSmartTransactionsForChainId'];\n };\n\nexport type SmartTransactionsControllerPollAction = {\n type: `SmartTransactionsController:poll`;\n handler: SmartTransactionsController['poll'];\n};\n\nexport type SmartTransactionsControllerStopAction = {\n type: `SmartTransactionsController:stop`;\n handler: SmartTransactionsController['stop'];\n};\n\nexport type SmartTransactionsControllerSetOptInStateAction = {\n type: `SmartTransactionsController:setOptInState`;\n handler: SmartTransactionsController['setOptInState'];\n};\n\nexport type SmartTransactionsControllerTrackStxStatusChangeAction = {\n type: `SmartTransactionsController:trackStxStatusChange`;\n handler: SmartTransactionsController['trackStxStatusChange'];\n};\n\nexport type SmartTransactionsControllerIsNewSmartTransactionAction = {\n type: `SmartTransactionsController:isNewSmartTransaction`;\n handler: SmartTransactionsController['isNewSmartTransaction'];\n};\n\nexport type SmartTransactionsControllerUpdateSmartTransactionAction = {\n type: `SmartTransactionsController:updateSmartTransaction`;\n handler: SmartTransactionsController['updateSmartTransaction'];\n};\n\nexport type SmartTransactionsControllerUpdateSmartTransactionsAction = {\n type: `SmartTransactionsController:updateSmartTransactions`;\n handler: SmartTransactionsController['updateSmartTransactions'];\n};\n\nexport type SmartTransactionsControllerFetchSmartTransactionsStatusAction = {\n type: `SmartTransactionsController:fetchSmartTransactionsStatus`;\n handler: SmartTransactionsController['fetchSmartTransactionsStatus'];\n};\n\nexport type SmartTransactionsControllerClearFeesAction = {\n type: `SmartTransactionsController:clearFees`;\n handler: SmartTransactionsController['clearFees'];\n};\n\nexport type SmartTransactionsControllerGetFeesAction = {\n type: `SmartTransactionsController:getFees`;\n handler: SmartTransactionsController['getFees'];\n};\n\nexport type SmartTransactionsControllerSubmitSignedTransactionsAction = {\n type: `SmartTransactionsController:submitSignedTransactions`;\n handler: SmartTransactionsController['submitSignedTransactions'];\n};\n\nexport type SmartTransactionsControllerCancelSmartTransactionAction = {\n type: `SmartTransactionsController:cancelSmartTransaction`;\n handler: SmartTransactionsController['cancelSmartTransaction'];\n};\n\n/**\n * Fetches the liveness status of Smart Transactions for a given chain.\n *\n * @param options - The options object.\n * @param options.chainId - The chain ID to fetch liveness for. Preferred over networkClientId.\n * @param options.networkClientId - The network client ID to derive chain ID from.\n * @returns A promise that resolves to the liveness status.\n */\nexport type SmartTransactionsControllerFetchLivenessAction = {\n type: `SmartTransactionsController:fetchLiveness`;\n handler: SmartTransactionsController['fetchLiveness'];\n};\n\nexport type SmartTransactionsControllerSetStatusRefreshIntervalAction = {\n type: `SmartTransactionsController:setStatusRefreshInterval`;\n handler: SmartTransactionsController['setStatusRefreshInterval'];\n};\n\nexport type SmartTransactionsControllerGetTransactionsAction = {\n type: `SmartTransactionsController:getTransactions`;\n handler: SmartTransactionsController['getTransactions'];\n};\n\nexport type SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction =\n {\n type: `SmartTransactionsController:getSmartTransactionByMinedTxHash`;\n handler: SmartTransactionsController['getSmartTransactionByMinedTxHash'];\n };\n\nexport type SmartTransactionsControllerWipeSmartTransactionsAction = {\n type: `SmartTransactionsController:wipeSmartTransactions`;\n handler: SmartTransactionsController['wipeSmartTransactions'];\n};\n\n/**\n * Union of all SmartTransactionsController action types.\n */\nexport type SmartTransactionsControllerMethodActions =\n | SmartTransactionsControllerCheckPollAction\n | SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction\n | SmartTransactionsControllerPollAction\n | SmartTransactionsControllerStopAction\n | SmartTransactionsControllerSetOptInStateAction\n | SmartTransactionsControllerTrackStxStatusChangeAction\n | SmartTransactionsControllerIsNewSmartTransactionAction\n | SmartTransactionsControllerUpdateSmartTransactionAction\n | SmartTransactionsControllerUpdateSmartTransactionsAction\n | SmartTransactionsControllerFetchSmartTransactionsStatusAction\n | SmartTransactionsControllerClearFeesAction\n | SmartTransactionsControllerGetFeesAction\n | SmartTransactionsControllerSubmitSignedTransactionsAction\n | SmartTransactionsControllerCancelSmartTransactionAction\n | SmartTransactionsControllerFetchLivenessAction\n | SmartTransactionsControllerSetStatusRefreshIntervalAction\n | SmartTransactionsControllerGetTransactionsAction\n | SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction\n | SmartTransactionsControllerWipeSmartTransactionsAction;\n"]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is auto generated.
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
import type { SmartTransactionsController } from "./SmartTransactionsController.cjs";
|
|
6
|
+
export type SmartTransactionsControllerCheckPollAction = {
|
|
7
|
+
type: `SmartTransactionsController:checkPoll`;
|
|
8
|
+
handler: SmartTransactionsController['checkPoll'];
|
|
9
|
+
};
|
|
10
|
+
export type SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction = {
|
|
11
|
+
type: `SmartTransactionsController:initializeSmartTransactionsForChainId`;
|
|
12
|
+
handler: SmartTransactionsController['initializeSmartTransactionsForChainId'];
|
|
13
|
+
};
|
|
14
|
+
export type SmartTransactionsControllerPollAction = {
|
|
15
|
+
type: `SmartTransactionsController:poll`;
|
|
16
|
+
handler: SmartTransactionsController['poll'];
|
|
17
|
+
};
|
|
18
|
+
export type SmartTransactionsControllerStopAction = {
|
|
19
|
+
type: `SmartTransactionsController:stop`;
|
|
20
|
+
handler: SmartTransactionsController['stop'];
|
|
21
|
+
};
|
|
22
|
+
export type SmartTransactionsControllerSetOptInStateAction = {
|
|
23
|
+
type: `SmartTransactionsController:setOptInState`;
|
|
24
|
+
handler: SmartTransactionsController['setOptInState'];
|
|
25
|
+
};
|
|
26
|
+
export type SmartTransactionsControllerTrackStxStatusChangeAction = {
|
|
27
|
+
type: `SmartTransactionsController:trackStxStatusChange`;
|
|
28
|
+
handler: SmartTransactionsController['trackStxStatusChange'];
|
|
29
|
+
};
|
|
30
|
+
export type SmartTransactionsControllerIsNewSmartTransactionAction = {
|
|
31
|
+
type: `SmartTransactionsController:isNewSmartTransaction`;
|
|
32
|
+
handler: SmartTransactionsController['isNewSmartTransaction'];
|
|
33
|
+
};
|
|
34
|
+
export type SmartTransactionsControllerUpdateSmartTransactionAction = {
|
|
35
|
+
type: `SmartTransactionsController:updateSmartTransaction`;
|
|
36
|
+
handler: SmartTransactionsController['updateSmartTransaction'];
|
|
37
|
+
};
|
|
38
|
+
export type SmartTransactionsControllerUpdateSmartTransactionsAction = {
|
|
39
|
+
type: `SmartTransactionsController:updateSmartTransactions`;
|
|
40
|
+
handler: SmartTransactionsController['updateSmartTransactions'];
|
|
41
|
+
};
|
|
42
|
+
export type SmartTransactionsControllerFetchSmartTransactionsStatusAction = {
|
|
43
|
+
type: `SmartTransactionsController:fetchSmartTransactionsStatus`;
|
|
44
|
+
handler: SmartTransactionsController['fetchSmartTransactionsStatus'];
|
|
45
|
+
};
|
|
46
|
+
export type SmartTransactionsControllerClearFeesAction = {
|
|
47
|
+
type: `SmartTransactionsController:clearFees`;
|
|
48
|
+
handler: SmartTransactionsController['clearFees'];
|
|
49
|
+
};
|
|
50
|
+
export type SmartTransactionsControllerGetFeesAction = {
|
|
51
|
+
type: `SmartTransactionsController:getFees`;
|
|
52
|
+
handler: SmartTransactionsController['getFees'];
|
|
53
|
+
};
|
|
54
|
+
export type SmartTransactionsControllerSubmitSignedTransactionsAction = {
|
|
55
|
+
type: `SmartTransactionsController:submitSignedTransactions`;
|
|
56
|
+
handler: SmartTransactionsController['submitSignedTransactions'];
|
|
57
|
+
};
|
|
58
|
+
export type SmartTransactionsControllerCancelSmartTransactionAction = {
|
|
59
|
+
type: `SmartTransactionsController:cancelSmartTransaction`;
|
|
60
|
+
handler: SmartTransactionsController['cancelSmartTransaction'];
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Fetches the liveness status of Smart Transactions for a given chain.
|
|
64
|
+
*
|
|
65
|
+
* @param options - The options object.
|
|
66
|
+
* @param options.chainId - The chain ID to fetch liveness for. Preferred over networkClientId.
|
|
67
|
+
* @param options.networkClientId - The network client ID to derive chain ID from.
|
|
68
|
+
* @returns A promise that resolves to the liveness status.
|
|
69
|
+
*/
|
|
70
|
+
export type SmartTransactionsControllerFetchLivenessAction = {
|
|
71
|
+
type: `SmartTransactionsController:fetchLiveness`;
|
|
72
|
+
handler: SmartTransactionsController['fetchLiveness'];
|
|
73
|
+
};
|
|
74
|
+
export type SmartTransactionsControllerSetStatusRefreshIntervalAction = {
|
|
75
|
+
type: `SmartTransactionsController:setStatusRefreshInterval`;
|
|
76
|
+
handler: SmartTransactionsController['setStatusRefreshInterval'];
|
|
77
|
+
};
|
|
78
|
+
export type SmartTransactionsControllerGetTransactionsAction = {
|
|
79
|
+
type: `SmartTransactionsController:getTransactions`;
|
|
80
|
+
handler: SmartTransactionsController['getTransactions'];
|
|
81
|
+
};
|
|
82
|
+
export type SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction = {
|
|
83
|
+
type: `SmartTransactionsController:getSmartTransactionByMinedTxHash`;
|
|
84
|
+
handler: SmartTransactionsController['getSmartTransactionByMinedTxHash'];
|
|
85
|
+
};
|
|
86
|
+
export type SmartTransactionsControllerWipeSmartTransactionsAction = {
|
|
87
|
+
type: `SmartTransactionsController:wipeSmartTransactions`;
|
|
88
|
+
handler: SmartTransactionsController['wipeSmartTransactions'];
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Union of all SmartTransactionsController action types.
|
|
92
|
+
*/
|
|
93
|
+
export type SmartTransactionsControllerMethodActions = SmartTransactionsControllerCheckPollAction | SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction | SmartTransactionsControllerPollAction | SmartTransactionsControllerStopAction | SmartTransactionsControllerSetOptInStateAction | SmartTransactionsControllerTrackStxStatusChangeAction | SmartTransactionsControllerIsNewSmartTransactionAction | SmartTransactionsControllerUpdateSmartTransactionAction | SmartTransactionsControllerUpdateSmartTransactionsAction | SmartTransactionsControllerFetchSmartTransactionsStatusAction | SmartTransactionsControllerClearFeesAction | SmartTransactionsControllerGetFeesAction | SmartTransactionsControllerSubmitSignedTransactionsAction | SmartTransactionsControllerCancelSmartTransactionAction | SmartTransactionsControllerFetchLivenessAction | SmartTransactionsControllerSetStatusRefreshIntervalAction | SmartTransactionsControllerGetTransactionsAction | SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction | SmartTransactionsControllerWipeSmartTransactionsAction;
|
|
94
|
+
//# sourceMappingURL=SmartTransactionsController-method-action-types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmartTransactionsController-method-action-types.d.cts","sourceRoot":"","sources":["../src/SmartTransactionsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,2BAA2B,EAAE,0CAAsC;AAEjF,MAAM,MAAM,0CAA0C,GAAG;IACvD,IAAI,EAAE,uCAAuC,CAAC;IAC9C,OAAO,EAAE,2BA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AC1C,sEAAsE,GACtE,qCAAqC,GACrC,qCAAqC,GACrC,8CAA8C,GAC9C,qDAAqD,GACrD,sDAAsD,GACtD,uDAAuD,GACvD,wDAAwD,GACxD,6DAA6D,GAC7D,0CAA0C,GAC1C,wCAAwC,GACxC,yDAAyD,GACzD,uDAAuD,GACvD,8CAA8C,GAC9C,yDAAyD,GACzD,gDAAgD,GAChD,iEAAiE,GACjE,sDAAsD,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is auto generated.
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
import type { SmartTransactionsController } from "./SmartTransactionsController.mjs";
|
|
6
|
+
export type SmartTransactionsControllerCheckPollAction = {
|
|
7
|
+
type: `SmartTransactionsController:checkPoll`;
|
|
8
|
+
handler: SmartTransactionsController['checkPoll'];
|
|
9
|
+
};
|
|
10
|
+
export type SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction = {
|
|
11
|
+
type: `SmartTransactionsController:initializeSmartTransactionsForChainId`;
|
|
12
|
+
handler: SmartTransactionsController['initializeSmartTransactionsForChainId'];
|
|
13
|
+
};
|
|
14
|
+
export type SmartTransactionsControllerPollAction = {
|
|
15
|
+
type: `SmartTransactionsController:poll`;
|
|
16
|
+
handler: SmartTransactionsController['poll'];
|
|
17
|
+
};
|
|
18
|
+
export type SmartTransactionsControllerStopAction = {
|
|
19
|
+
type: `SmartTransactionsController:stop`;
|
|
20
|
+
handler: SmartTransactionsController['stop'];
|
|
21
|
+
};
|
|
22
|
+
export type SmartTransactionsControllerSetOptInStateAction = {
|
|
23
|
+
type: `SmartTransactionsController:setOptInState`;
|
|
24
|
+
handler: SmartTransactionsController['setOptInState'];
|
|
25
|
+
};
|
|
26
|
+
export type SmartTransactionsControllerTrackStxStatusChangeAction = {
|
|
27
|
+
type: `SmartTransactionsController:trackStxStatusChange`;
|
|
28
|
+
handler: SmartTransactionsController['trackStxStatusChange'];
|
|
29
|
+
};
|
|
30
|
+
export type SmartTransactionsControllerIsNewSmartTransactionAction = {
|
|
31
|
+
type: `SmartTransactionsController:isNewSmartTransaction`;
|
|
32
|
+
handler: SmartTransactionsController['isNewSmartTransaction'];
|
|
33
|
+
};
|
|
34
|
+
export type SmartTransactionsControllerUpdateSmartTransactionAction = {
|
|
35
|
+
type: `SmartTransactionsController:updateSmartTransaction`;
|
|
36
|
+
handler: SmartTransactionsController['updateSmartTransaction'];
|
|
37
|
+
};
|
|
38
|
+
export type SmartTransactionsControllerUpdateSmartTransactionsAction = {
|
|
39
|
+
type: `SmartTransactionsController:updateSmartTransactions`;
|
|
40
|
+
handler: SmartTransactionsController['updateSmartTransactions'];
|
|
41
|
+
};
|
|
42
|
+
export type SmartTransactionsControllerFetchSmartTransactionsStatusAction = {
|
|
43
|
+
type: `SmartTransactionsController:fetchSmartTransactionsStatus`;
|
|
44
|
+
handler: SmartTransactionsController['fetchSmartTransactionsStatus'];
|
|
45
|
+
};
|
|
46
|
+
export type SmartTransactionsControllerClearFeesAction = {
|
|
47
|
+
type: `SmartTransactionsController:clearFees`;
|
|
48
|
+
handler: SmartTransactionsController['clearFees'];
|
|
49
|
+
};
|
|
50
|
+
export type SmartTransactionsControllerGetFeesAction = {
|
|
51
|
+
type: `SmartTransactionsController:getFees`;
|
|
52
|
+
handler: SmartTransactionsController['getFees'];
|
|
53
|
+
};
|
|
54
|
+
export type SmartTransactionsControllerSubmitSignedTransactionsAction = {
|
|
55
|
+
type: `SmartTransactionsController:submitSignedTransactions`;
|
|
56
|
+
handler: SmartTransactionsController['submitSignedTransactions'];
|
|
57
|
+
};
|
|
58
|
+
export type SmartTransactionsControllerCancelSmartTransactionAction = {
|
|
59
|
+
type: `SmartTransactionsController:cancelSmartTransaction`;
|
|
60
|
+
handler: SmartTransactionsController['cancelSmartTransaction'];
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Fetches the liveness status of Smart Transactions for a given chain.
|
|
64
|
+
*
|
|
65
|
+
* @param options - The options object.
|
|
66
|
+
* @param options.chainId - The chain ID to fetch liveness for. Preferred over networkClientId.
|
|
67
|
+
* @param options.networkClientId - The network client ID to derive chain ID from.
|
|
68
|
+
* @returns A promise that resolves to the liveness status.
|
|
69
|
+
*/
|
|
70
|
+
export type SmartTransactionsControllerFetchLivenessAction = {
|
|
71
|
+
type: `SmartTransactionsController:fetchLiveness`;
|
|
72
|
+
handler: SmartTransactionsController['fetchLiveness'];
|
|
73
|
+
};
|
|
74
|
+
export type SmartTransactionsControllerSetStatusRefreshIntervalAction = {
|
|
75
|
+
type: `SmartTransactionsController:setStatusRefreshInterval`;
|
|
76
|
+
handler: SmartTransactionsController['setStatusRefreshInterval'];
|
|
77
|
+
};
|
|
78
|
+
export type SmartTransactionsControllerGetTransactionsAction = {
|
|
79
|
+
type: `SmartTransactionsController:getTransactions`;
|
|
80
|
+
handler: SmartTransactionsController['getTransactions'];
|
|
81
|
+
};
|
|
82
|
+
export type SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction = {
|
|
83
|
+
type: `SmartTransactionsController:getSmartTransactionByMinedTxHash`;
|
|
84
|
+
handler: SmartTransactionsController['getSmartTransactionByMinedTxHash'];
|
|
85
|
+
};
|
|
86
|
+
export type SmartTransactionsControllerWipeSmartTransactionsAction = {
|
|
87
|
+
type: `SmartTransactionsController:wipeSmartTransactions`;
|
|
88
|
+
handler: SmartTransactionsController['wipeSmartTransactions'];
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Union of all SmartTransactionsController action types.
|
|
92
|
+
*/
|
|
93
|
+
export type SmartTransactionsControllerMethodActions = SmartTransactionsControllerCheckPollAction | SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction | SmartTransactionsControllerPollAction | SmartTransactionsControllerStopAction | SmartTransactionsControllerSetOptInStateAction | SmartTransactionsControllerTrackStxStatusChangeAction | SmartTransactionsControllerIsNewSmartTransactionAction | SmartTransactionsControllerUpdateSmartTransactionAction | SmartTransactionsControllerUpdateSmartTransactionsAction | SmartTransactionsControllerFetchSmartTransactionsStatusAction | SmartTransactionsControllerClearFeesAction | SmartTransactionsControllerGetFeesAction | SmartTransactionsControllerSubmitSignedTransactionsAction | SmartTransactionsControllerCancelSmartTransactionAction | SmartTransactionsControllerFetchLivenessAction | SmartTransactionsControllerSetStatusRefreshIntervalAction | SmartTransactionsControllerGetTransactionsAction | SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction | SmartTransactionsControllerWipeSmartTransactionsAction;
|
|
94
|
+
//# sourceMappingURL=SmartTransactionsController-method-action-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmartTransactionsController-method-action-types.d.mts","sourceRoot":"","sources":["../src/SmartTransactionsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,2BAA2B,EAAE,0CAAsC;AAEjF,MAAM,MAAM,0CAA0C,GAAG;IACvD,IAAI,EAAE,uCAAuC,CAAC;IAC9C,OAAO,EAAE,2BAA2B,CAAC,WAAW,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,sEAAsE,GAChF;IACE,IAAI,EAAE,mEAAmE,CAAC;IAC1E,OAAO,EAAE,2BAA2B,CAAC,uCAAuC,CAAC,CAAC;CAC/E,CAAC;AAEJ,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,EAAE,kCAAkC,CAAC;IACzC,OAAO,EAAE,2BAA2B,CAAC,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,EAAE,kCAAkC,CAAC;IACzC,OAAO,EAAE,2BAA2B,CAAC,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,2CAA2C,CAAC;IAClD,OAAO,EAAE,2BAA2B,CAAC,eAAe,CAAC,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,qDAAqD,GAAG;IA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OAAO,EAAE,2BAA2B,CAAC,eAAe,CAAC,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,yDAAyD,GAAG;IACtE,IAAI,EAAE,sDAAsD,CAAC;IAC7D,OAAO,EAAE,2BAA2B,CAAC,0BAA0B,CAAC,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,gDAAgD,GAAG;IAC7D,IAAI,EAAE,6CAA6C,CAAC;IACpD,OAAO,EAAE,2BAA2B,CAAC,iBAAiB,CAAC,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,iEAAiE,GAC3E;IACE,IAAI,EAAE,8DAA8D,CAAC;IACrE,OAAO,EAAE,2BAA2B,CAAC,kCAAkC,CAAC,CAAC;CAC1E,CAAC;AAEJ,MAAM,MAAM,sDAAsD,GAAG;IACnE,IAAI,EAAE,mDAAmD,CAAC;IAC1D,OAAO,EAAE,2BAA2B,CAAC,uBAAuB,CAAC,CAAC;CAC/D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAChD,0CAA0C,GAC1C,sEAAsE,GACtE,qCAAqC,GACrC,qCAAqC,GACrC,8CAA8C,GAC9C,qDAAqD,GACrD,sDAAsD,GACtD,uDAAuD,GACvD,wDAAwD,GACxD,6DAA6D,GAC7D,0CAA0C,GAC1C,wCAAwC,GACxC,yDAAyD,GACzD,uDAAuD,GACvD,8CAA8C,GAC9C,yDAAyD,GACzD,gDAAgD,GAChD,iEAAiE,GACjE,sDAAsD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmartTransactionsController-method-action-types.mjs","sourceRoot":"","sources":["../src/SmartTransactionsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { SmartTransactionsController } from './SmartTransactionsController';\n\nexport type SmartTransactionsControllerCheckPollAction = {\n type: `SmartTransactionsController:checkPoll`;\n handler: SmartTransactionsController['checkPoll'];\n};\n\nexport type SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction =\n {\n type: `SmartTransactionsController:initializeSmartTransactionsForChainId`;\n handler: SmartTransactionsController['initializeSmartTransactionsForChainId'];\n };\n\nexport type SmartTransactionsControllerPollAction = {\n type: `SmartTransactionsController:poll`;\n handler: SmartTransactionsController['poll'];\n};\n\nexport type SmartTransactionsControllerStopAction = {\n type: `SmartTransactionsController:stop`;\n handler: SmartTransactionsController['stop'];\n};\n\nexport type SmartTransactionsControllerSetOptInStateAction = {\n type: `SmartTransactionsController:setOptInState`;\n handler: SmartTransactionsController['setOptInState'];\n};\n\nexport type SmartTransactionsControllerTrackStxStatusChangeAction = {\n type: `SmartTransactionsController:trackStxStatusChange`;\n handler: SmartTransactionsController['trackStxStatusChange'];\n};\n\nexport type SmartTransactionsControllerIsNewSmartTransactionAction = {\n type: `SmartTransactionsController:isNewSmartTransaction`;\n handler: SmartTransactionsController['isNewSmartTransaction'];\n};\n\nexport type SmartTransactionsControllerUpdateSmartTransactionAction = {\n type: `SmartTransactionsController:updateSmartTransaction`;\n handler: SmartTransactionsController['updateSmartTransaction'];\n};\n\nexport type SmartTransactionsControllerUpdateSmartTransactionsAction = {\n type: `SmartTransactionsController:updateSmartTransactions`;\n handler: SmartTransactionsController['updateSmartTransactions'];\n};\n\nexport type SmartTransactionsControllerFetchSmartTransactionsStatusAction = {\n type: `SmartTransactionsController:fetchSmartTransactionsStatus`;\n handler: SmartTransactionsController['fetchSmartTransactionsStatus'];\n};\n\nexport type SmartTransactionsControllerClearFeesAction = {\n type: `SmartTransactionsController:clearFees`;\n handler: SmartTransactionsController['clearFees'];\n};\n\nexport type SmartTransactionsControllerGetFeesAction = {\n type: `SmartTransactionsController:getFees`;\n handler: SmartTransactionsController['getFees'];\n};\n\nexport type SmartTransactionsControllerSubmitSignedTransactionsAction = {\n type: `SmartTransactionsController:submitSignedTransactions`;\n handler: SmartTransactionsController['submitSignedTransactions'];\n};\n\nexport type SmartTransactionsControllerCancelSmartTransactionAction = {\n type: `SmartTransactionsController:cancelSmartTransaction`;\n handler: SmartTransactionsController['cancelSmartTransaction'];\n};\n\n/**\n * Fetches the liveness status of Smart Transactions for a given chain.\n *\n * @param options - The options object.\n * @param options.chainId - The chain ID to fetch liveness for. Preferred over networkClientId.\n * @param options.networkClientId - The network client ID to derive chain ID from.\n * @returns A promise that resolves to the liveness status.\n */\nexport type SmartTransactionsControllerFetchLivenessAction = {\n type: `SmartTransactionsController:fetchLiveness`;\n handler: SmartTransactionsController['fetchLiveness'];\n};\n\nexport type SmartTransactionsControllerSetStatusRefreshIntervalAction = {\n type: `SmartTransactionsController:setStatusRefreshInterval`;\n handler: SmartTransactionsController['setStatusRefreshInterval'];\n};\n\nexport type SmartTransactionsControllerGetTransactionsAction = {\n type: `SmartTransactionsController:getTransactions`;\n handler: SmartTransactionsController['getTransactions'];\n};\n\nexport type SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction =\n {\n type: `SmartTransactionsController:getSmartTransactionByMinedTxHash`;\n handler: SmartTransactionsController['getSmartTransactionByMinedTxHash'];\n };\n\nexport type SmartTransactionsControllerWipeSmartTransactionsAction = {\n type: `SmartTransactionsController:wipeSmartTransactions`;\n handler: SmartTransactionsController['wipeSmartTransactions'];\n};\n\n/**\n * Union of all SmartTransactionsController action types.\n */\nexport type SmartTransactionsControllerMethodActions =\n | SmartTransactionsControllerCheckPollAction\n | SmartTransactionsControllerInitializeSmartTransactionsForChainIdAction\n | SmartTransactionsControllerPollAction\n | SmartTransactionsControllerStopAction\n | SmartTransactionsControllerSetOptInStateAction\n | SmartTransactionsControllerTrackStxStatusChangeAction\n | SmartTransactionsControllerIsNewSmartTransactionAction\n | SmartTransactionsControllerUpdateSmartTransactionAction\n | SmartTransactionsControllerUpdateSmartTransactionsAction\n | SmartTransactionsControllerFetchSmartTransactionsStatusAction\n | SmartTransactionsControllerClearFeesAction\n | SmartTransactionsControllerGetFeesAction\n | SmartTransactionsControllerSubmitSignedTransactionsAction\n | SmartTransactionsControllerCancelSmartTransactionAction\n | SmartTransactionsControllerFetchLivenessAction\n | SmartTransactionsControllerSetStatusRefreshIntervalAction\n | SmartTransactionsControllerGetTransactionsAction\n | SmartTransactionsControllerGetSmartTransactionByMinedTxHashAction\n | SmartTransactionsControllerWipeSmartTransactionsAction;\n"]}
|