@bsv/wallet-toolbox 1.1.3 → 1.1.4

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.
@@ -1,20 +1,20 @@
1
1
  import { InternalizeActionArgs, PrivateKey, Utils } from '@bsv/sdk'
2
2
  import { Setup } from '../../src'
3
3
 
4
- describe.skip('examples README tests', () => {
4
+ describe('examples README tests', () => {
5
5
  jest.setTimeout(99999999)
6
6
 
7
- it('0', async () => {
8
- const rootKeyHex = PrivateKey.fromRandom().toString()
9
- console.log(
10
- `MAKE A SECURE COPY OF YOUR WALLET PRIVATE ROOT KEY: ${rootKeyHex}`
11
- )
7
+ it('0 makeEnv', async () => {
8
+ const envString = Setup.makeEnv()
9
+ })
10
+
11
+ it('1 internalize wallet payment', async () => {
12
+ const env = Setup.getEnv('test')
12
13
 
13
14
  const { wallet } = await Setup.createSQLiteWallet({
15
+ env,
14
16
  filePath: './myTestWallet.sqlite',
15
- databaseName: 'myTestWallet',
16
- chain: 'test',
17
- rootKeyHex
17
+ databaseName: 'myTestWallet'
18
18
  })
19
19
 
20
20
  // Obtain a Wallet Payment for your new wallet from a testnet funding faucet.
package/ts2md.json CHANGED
@@ -1,13 +1,5 @@
1
1
  {
2
2
  "options": [
3
- {
4
- "inputFilename": "src/index.ts",
5
- "outputFilename": "docs/setup.md",
6
- "firstHeadingLevel": 1,
7
- "filenameSubString": "Setup"
8
- }
9
- ],
10
- "options2": [
11
3
  {
12
4
  "inputFilename": "src/index.ts",
13
5
  "outputFilename": "docs/setup.md",