⚠️ Deprecation Notice
ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.
getSetAutoSavingConfigAction
Get the action to set the auto-save configuration for a token.
Usage
const action = getSetAutoSavingConfigAction({
token: '0x123...',
config: {
percentage: BigInt(10),
vault: '0x123...',
},
})Parameters
token
The address of the token to set the auto-save configuration for.
config
- Type:
{ percentage: number, vault: Address, }
The configuration for the auto-save module for the token.
Returns
action
- Type:
Action
The action to set the auto-savings configuration.