https://github.com/wharfkit/transact-plugin-autocorrect
TransactPlugin for the Wharf Session Kit. Attempt to automatically correct resource issues (CPU/NET/RAM) before a transaction is signed.
https://github.com/wharfkit/transact-plugin-autocorrect
autocorrect transact-plugin
Last synced: 4 months ago
JSON representation
TransactPlugin for the Wharf Session Kit. Attempt to automatically correct resource issues (CPU/NET/RAM) before a transaction is signed.
- Host: GitHub
- URL: https://github.com/wharfkit/transact-plugin-autocorrect
- Owner: wharfkit
- License: other
- Created: 2023-02-21T02:36:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2026-02-11T00:02:18.000Z (5 months ago)
- Last Synced: 2026-02-11T01:32:36.429Z (5 months ago)
- Topics: autocorrect, transact-plugin
- Language: TypeScript
- Homepage: https://wharfkit.com/
- Size: 107 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# @wharfkit/transact-plugin-autocorrect
A plugin to correct common issues users experience while performing transactions.
## Usage
Install plugin.
```
yarn add @wharfkit/transact-plugin-autocorrect
```
Include when configuring the Session Kit:
```ts
import {TransactPluginAutoCorrect} from '@wharfkit/transact-plugin-autocorrect'
const kit = new SessionKit(
{
// ... your other SessionKit args (appName, chains, ui, walletPlugins)
},
{
transactPlugins: [new TransactPluginAutoCorrect()],
}
)
```
Or when you are manually configuring a Session:
```ts
import {TransactPluginAutoCorrect} from '@wharfkit/transact-plugin-autocorrect'
const session = new Session(
{
// ... your other Session args (chain, walletPlugin, permissionLevel)
},
{
transactPlugins: [new TransactPluginAutoCorrect()],
}
)
```
## Developing
You need [Make](https://www.gnu.org/software/make/), [node.js](https://nodejs.org/en/) and [yarn](https://classic.yarnpkg.com/en/docs/install) installed.
Clone the repository and run `make` to checkout all dependencies and build the project. See the [Makefile](./Makefile) for other useful targets. Before submitting a pull request make sure to run `make lint`.
---
Made with ☕️ & ❤️ by [Greymass](https://greymass.com), if you find this useful please consider [supporting us](https://greymass.com/support-us).