@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.
- package/docs/README.md +1 -0
- package/docs/client.md +324 -84
- package/docs/setup.md +358 -67
- package/docs/wallet.md +324 -84
- package/out/src/Setup.d.ts +28 -30
- package/out/src/Setup.d.ts.map +1 -1
- package/out/src/Setup.js +14 -10
- package/out/src/Setup.js.map +1 -1
- package/out/src/SetupClient.d.ts +99 -41
- package/out/src/SetupClient.d.ts.map +1 -1
- package/out/src/SetupClient.js +124 -90
- package/out/src/SetupClient.js.map +1 -1
- package/out/src/Wallet.d.ts +10 -0
- package/out/src/Wallet.d.ts.map +1 -1
- package/out/src/Wallet.js.map +1 -1
- package/out/src/index.all.d.ts +1 -1
- package/out/src/index.all.d.ts.map +1 -1
- package/out/src/index.all.js +3 -2
- package/out/src/index.all.js.map +1 -1
- package/out/src/sdk/types.d.ts +5 -0
- package/out/src/sdk/types.d.ts.map +1 -1
- package/out/src/sdk/types.js.map +1 -1
- package/out/test/examples/README.man.test.js +8 -7
- package/out/test/examples/README.man.test.js.map +1 -1
- package/out/tsconfig.all.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/Setup.ts +41 -54
- package/src/SetupClient.ts +219 -150
- package/src/Wallet.ts +10 -0
- package/src/index.all.ts +9 -1
- package/src/sdk/types.ts +7 -0
- package/test/examples/README.man.test.ts +9 -9
- package/ts2md.json +0 -8
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { InternalizeActionArgs, PrivateKey, Utils } from '@bsv/sdk'
|
|
2
2
|
import { Setup } from '../../src'
|
|
3
3
|
|
|
4
|
-
describe
|
|
4
|
+
describe('examples README tests', () => {
|
|
5
5
|
jest.setTimeout(99999999)
|
|
6
6
|
|
|
7
|
-
it('0', async () => {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
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