-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blockchain.getRawMempool, wallet.getNewAddress, wallet.getAddressInfo, wallet.validateAddress, wallet.listAddressGroupings, wallet.getWalletInfo, wallet.setWalletFlag, wallet.sendToAddress, wallet.createWallet #112
Conversation
Deploy preview for jellyfish-defi ready! Built with commit 7a45c00 |
size-limit report 📦
|
Codecov Report
@@ Coverage Diff @@
## main #112 +/- ##
==========================================
+ Coverage 94.46% 94.70% +0.24%
==========================================
Files 40 40
Lines 831 888 +57
Branches 95 108 +13
==========================================
+ Hits 785 841 +56
- Misses 44 45 +1
Partials 2 2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, nice tests. Added a few minor details you should consider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments but I think this is good enough to be merged into main.
* @param {CreateRawTxOptions=} options | ||
* @param {number=} options.locktime Non-0 value also locktime-activates inputs | ||
* @param {boolean=} options.replaceable Marks this transaction as BIP125-replaceable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use this syntax instead, we can standard this in the future
* @param {number} [options.locktime=0] Non-0 value...
|
||
```ts title="client.wallet.setWalletFlag()" | ||
interface wallet { | ||
setWalletFlag (flag: WalletFlag, value: boolean = true): Promise<WalletFlagResult> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WalletFlag enum missing in docs.
|
||
```ts title="client.wallet.getNewAddress()" | ||
interface wallet { | ||
getNewAddress (label: string = '', addressType = AddressType.BECH32): Promise<string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AddressType enum missing in docs
['witness_version']: number | ||
['witness_program']: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
witness_version: number
witness_program: string
return await waitForExpect(async () => { | ||
const aliceAddress = await client.wallet.getNewAddress('alice') | ||
|
||
expect(typeof aliceAddress).toBe('string') | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why you wrap everything in waitForExpect
?
What kind of PR is this?:
/kind feature
What this PR does / why we need it:
Implemented type for RPC: #48