-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add brc 20 transfer hook to core (#199)
* feat: implement required calls to inscribe service * feat: do full BRC-20 transfer in 1 call * fix: import/export names * fix: fee calc and utxo select * fix: type issue * feat: Add all brc-20 api calls * feat: implement 1 step transfer generator * chore: add btc functions for brc-20 transfer * chore: add brc-20 tests * oopsie * feat: added mint functions and exponential backoff for retries * chore: add unit tests for mint * feat: add react dependencies * feat: add estimate hook * chore: make bignumber a peer dependency * feat: add brc-20 transfer execute hook * doc: add docstring for transfer hook * chore: tie bignumber to v 9 * fix: make arguments an object instead of multiple arguments * Change args to obj instead of multiple args * chore: move props to object * chore: extract validation to method * chore: move validation to function in other hook * chore: make complete flag better * chore: use useCallback instead of effect * fix: the callback dependencies for executing transfer * export hooks * build kick off * fix: fee calc resulting in fee higher than input * fix: tests * allow undefined UTXOs in fee estimate until loaded * fee hook, don't show error code if not initialised * Add missing return types and add comment * Add transfer finalize call * AAdd finalize call to transfer script and fix tests * implement CoreError * Fix coreerror import path * fix issues form merge * fix: tests * fix: extract finalize retry to utils * Fix callback deps * fix: remove retry since all txns broadcast in finalise * review feedback: move error codes to function * export CoreError * fix: remove isInitialised output and return fees if insufficient funds * fix: import * remove execute validation in favor of validation in transaction section * remove unused error codes and fix tests * fix import path * add skipInitialFetch to brc20 fee estimate hook and fix docstrings * redo PR review fix
- Loading branch information
1 parent
2120d9c
commit 3036ee5
Showing
6 changed files
with
324 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.