@metamask-previews/delegation-controller 2.0.2-preview-2d89a26 → 2.0.2-preview-a0caca0c0
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/DelegationController-method-action-types.cjs +1 -1
- package/dist/DelegationController-method-action-types.cjs.map +1 -1
- package/dist/DelegationController-method-action-types.d.cts +1 -1
- package/dist/DelegationController-method-action-types.d.mts +1 -1
- package/dist/DelegationController-method-action-types.mjs +1 -1
- package/dist/DelegationController-method-action-types.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DelegationController-method-action-types.cjs","sourceRoot":"","sources":["../src/DelegationController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated
|
|
1
|
+
{"version":3,"file":"DelegationController-method-action-types.cjs","sourceRoot":"","sources":["../src/DelegationController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { DelegationController } from './DelegationController';\n\n/**\n * Signs a delegation.\n *\n * @param params - The parameters for signing the delegation.\n * @param params.delegation - The delegation to sign.\n * @param params.chainId - The chainId of the chain to sign the delegation for.\n * @returns The signature of the delegation.\n */\nexport type DelegationControllerSignDelegationAction = {\n type: `DelegationController:signDelegation`;\n handler: DelegationController['signDelegation'];\n};\n\n/**\n * Stores a delegation in storage.\n *\n * @param params - The parameters for storing the delegation.\n * @param params.entry - The delegation entry to store.\n */\nexport type DelegationControllerStoreAction = {\n type: `DelegationController:store`;\n handler: DelegationController['store'];\n};\n\n/**\n * Lists delegation entries.\n *\n * @param filter - The filter to use to list the delegation entries.\n * @returns A list of delegation entries that match the filter.\n */\nexport type DelegationControllerListAction = {\n type: `DelegationController:list`;\n handler: DelegationController['list'];\n};\n\n/**\n * Retrieves the delegation entry for a given delegation hash.\n *\n * @param hash - The hash of the delegation to retrieve.\n * @returns The delegation entry, or null if not found.\n */\nexport type DelegationControllerRetrieveAction = {\n type: `DelegationController:retrieve`;\n handler: DelegationController['retrieve'];\n};\n\n/**\n * Retrieves a delegation chain from a delegation hash.\n *\n * @param hash - The hash of the delegation to retrieve.\n * @returns The delegation chain, or null if not found.\n */\nexport type DelegationControllerChainAction = {\n type: `DelegationController:chain`;\n handler: DelegationController['chain'];\n};\n\n/**\n * Deletes a delegation entrie from storage, along with any other entries\n * that are redelegated from it.\n *\n * @param hash - The hash of the delegation to delete.\n * @returns The number of entries deleted.\n */\nexport type DelegationControllerDeleteAction = {\n type: `DelegationController:delete`;\n handler: DelegationController['delete'];\n};\n\n/**\n * Union of all DelegationController action types.\n */\nexport type DelegationControllerMethodActions =\n | DelegationControllerSignDelegationAction\n | DelegationControllerStoreAction\n | DelegationControllerListAction\n | DelegationControllerRetrieveAction\n | DelegationControllerChainAction\n | DelegationControllerDeleteAction;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DelegationController-method-action-types.mjs","sourceRoot":"","sources":["../src/DelegationController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated
|
|
1
|
+
{"version":3,"file":"DelegationController-method-action-types.mjs","sourceRoot":"","sources":["../src/DelegationController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { DelegationController } from './DelegationController';\n\n/**\n * Signs a delegation.\n *\n * @param params - The parameters for signing the delegation.\n * @param params.delegation - The delegation to sign.\n * @param params.chainId - The chainId of the chain to sign the delegation for.\n * @returns The signature of the delegation.\n */\nexport type DelegationControllerSignDelegationAction = {\n type: `DelegationController:signDelegation`;\n handler: DelegationController['signDelegation'];\n};\n\n/**\n * Stores a delegation in storage.\n *\n * @param params - The parameters for storing the delegation.\n * @param params.entry - The delegation entry to store.\n */\nexport type DelegationControllerStoreAction = {\n type: `DelegationController:store`;\n handler: DelegationController['store'];\n};\n\n/**\n * Lists delegation entries.\n *\n * @param filter - The filter to use to list the delegation entries.\n * @returns A list of delegation entries that match the filter.\n */\nexport type DelegationControllerListAction = {\n type: `DelegationController:list`;\n handler: DelegationController['list'];\n};\n\n/**\n * Retrieves the delegation entry for a given delegation hash.\n *\n * @param hash - The hash of the delegation to retrieve.\n * @returns The delegation entry, or null if not found.\n */\nexport type DelegationControllerRetrieveAction = {\n type: `DelegationController:retrieve`;\n handler: DelegationController['retrieve'];\n};\n\n/**\n * Retrieves a delegation chain from a delegation hash.\n *\n * @param hash - The hash of the delegation to retrieve.\n * @returns The delegation chain, or null if not found.\n */\nexport type DelegationControllerChainAction = {\n type: `DelegationController:chain`;\n handler: DelegationController['chain'];\n};\n\n/**\n * Deletes a delegation entrie from storage, along with any other entries\n * that are redelegated from it.\n *\n * @param hash - The hash of the delegation to delete.\n * @returns The number of entries deleted.\n */\nexport type DelegationControllerDeleteAction = {\n type: `DelegationController:delete`;\n handler: DelegationController['delete'];\n};\n\n/**\n * Union of all DelegationController action types.\n */\nexport type DelegationControllerMethodActions =\n | DelegationControllerSignDelegationAction\n | DelegationControllerStoreAction\n | DelegationControllerListAction\n | DelegationControllerRetrieveAction\n | DelegationControllerChainAction\n | DelegationControllerDeleteAction;\n"]}
|