@1sat/wallet 0.0.1
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/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -0
- package/package.json +36 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @1sat/wallet - BRC-100 Wallet Engine for 1Sat Ordinals SDK
|
|
3
|
+
*
|
|
4
|
+
* This package provides the wallet functionality for the 1Sat SDK,
|
|
5
|
+
* wrapping 1sat-wallet-toolbox with SDK-specific integrations.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { OneSatWallet, WalletStorageManager, StorageIdb } from '@1sat/wallet'
|
|
10
|
+
*
|
|
11
|
+
* // Create storage
|
|
12
|
+
* const storage = await WalletStorageManager.createWithProviders(
|
|
13
|
+
* new StorageIdb({ name: 'my-wallet' })
|
|
14
|
+
* )
|
|
15
|
+
*
|
|
16
|
+
* // Initialize wallet (read-only with public key)
|
|
17
|
+
* const wallet = new OneSatWallet({
|
|
18
|
+
* rootKey: publicKeyHex,
|
|
19
|
+
* storage,
|
|
20
|
+
* chain: 'main',
|
|
21
|
+
* owners: new Set([address1, address2])
|
|
22
|
+
* })
|
|
23
|
+
*
|
|
24
|
+
* // Or with full signing capability
|
|
25
|
+
* const signingWallet = new OneSatWallet({
|
|
26
|
+
* rootKey: privateKey,
|
|
27
|
+
* storage,
|
|
28
|
+
* chain: 'main'
|
|
29
|
+
* })
|
|
30
|
+
*
|
|
31
|
+
* // Sync and use
|
|
32
|
+
* await wallet.syncAll()
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export { OneSatWallet, type OneSatWalletArgs, type OneSatWalletEvents, type SyncCompleteEvent, type SyncErrorEvent, type SyncProgressEvent, type SyncStartEvent, type SyncTxEvent, } from '@1sat/wallet-toolbox';
|
|
36
|
+
export { OneSatServices, type OrdfsMetadata } from '@1sat/wallet-toolbox';
|
|
37
|
+
export { ReadOnlySigner } from '@1sat/wallet-toolbox';
|
|
38
|
+
export { Bsv21Indexer, CosignIndexer, deriveFundAddress, FundIndexer, Indexer, InscriptionIndexer, LockIndexer, Listing, MAP_PROTO, MapIndexer, OpNSIndexer, OrdLockIndexer, OriginIndexer, Outpoint, parseAddress, SigmaIndexer, TransactionParser, type Bsv21, type Bsv21OutputData, type Bsv21TokenData, type Bsv21TransactionData, type Cosign, type File, type IndexData, type IndexSummary, type Inscription, type Origin, type ParseContext, type ParsedOutput, type ParseResult, type Sigma, type Txo, } from '@1sat/wallet-toolbox';
|
|
39
|
+
export { StorageIdb, WalletStorageManager, type Chain, } from '@1sat/wallet-toolbox';
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAGH,OAAO,EACN,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,WAAW,GAChB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAGrD,OAAO,EACN,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX,OAAO,EACP,SAAS,EACT,UAAU,EACV,WAAW,EACX,cAAc,EACd,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,KAAK,GAAG,GACR,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EACN,UAAU,EACV,oBAAoB,EACpB,KAAK,KAAK,GACV,MAAM,sBAAsB,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @1sat/wallet - BRC-100 Wallet Engine for 1Sat Ordinals SDK
|
|
3
|
+
*
|
|
4
|
+
* This package provides the wallet functionality for the 1Sat SDK,
|
|
5
|
+
* wrapping 1sat-wallet-toolbox with SDK-specific integrations.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { OneSatWallet, WalletStorageManager, StorageIdb } from '@1sat/wallet'
|
|
10
|
+
*
|
|
11
|
+
* // Create storage
|
|
12
|
+
* const storage = await WalletStorageManager.createWithProviders(
|
|
13
|
+
* new StorageIdb({ name: 'my-wallet' })
|
|
14
|
+
* )
|
|
15
|
+
*
|
|
16
|
+
* // Initialize wallet (read-only with public key)
|
|
17
|
+
* const wallet = new OneSatWallet({
|
|
18
|
+
* rootKey: publicKeyHex,
|
|
19
|
+
* storage,
|
|
20
|
+
* chain: 'main',
|
|
21
|
+
* owners: new Set([address1, address2])
|
|
22
|
+
* })
|
|
23
|
+
*
|
|
24
|
+
* // Or with full signing capability
|
|
25
|
+
* const signingWallet = new OneSatWallet({
|
|
26
|
+
* rootKey: privateKey,
|
|
27
|
+
* storage,
|
|
28
|
+
* chain: 'main'
|
|
29
|
+
* })
|
|
30
|
+
*
|
|
31
|
+
* // Sync and use
|
|
32
|
+
* await wallet.syncAll()
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
// Core wallet exports
|
|
36
|
+
export { OneSatWallet, } from '@1sat/wallet-toolbox';
|
|
37
|
+
// Services
|
|
38
|
+
export { OneSatServices } from '@1sat/wallet-toolbox';
|
|
39
|
+
// Signers
|
|
40
|
+
export { ReadOnlySigner } from '@1sat/wallet-toolbox';
|
|
41
|
+
// Indexers
|
|
42
|
+
export { Bsv21Indexer, CosignIndexer, deriveFundAddress, FundIndexer, Indexer, InscriptionIndexer, LockIndexer, Listing, MAP_PROTO, MapIndexer, OpNSIndexer, OrdLockIndexer, OriginIndexer, Outpoint, parseAddress, SigmaIndexer, TransactionParser, } from '@1sat/wallet-toolbox';
|
|
43
|
+
// Storage (from @bsv/wallet-toolbox/mobile for browser compatibility)
|
|
44
|
+
export { StorageIdb, WalletStorageManager, } from '@1sat/wallet-toolbox';
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,sBAAsB;AACtB,OAAO,EACN,YAAY,GAQZ,MAAM,sBAAsB,CAAA;AAE7B,WAAW;AACX,OAAO,EAAE,cAAc,EAAsB,MAAM,sBAAsB,CAAA;AAEzE,UAAU;AACV,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,WAAW;AACX,OAAO,EACN,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX,OAAO,EACP,SAAS,EACT,UAAU,EACV,WAAW,EACX,cAAc,EACd,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,iBAAiB,GAgBjB,MAAM,sBAAsB,CAAA;AAE7B,sEAAsE;AACtE,OAAO,EACN,UAAU,EACV,oBAAoB,GAEpB,MAAM,sBAAsB,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@1sat/wallet",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "BRC-100 wallet engine for 1Sat Ordinals SDK",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": ["dist"],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"dev": "tsc --watch",
|
|
18
|
+
"clean": "rm -rf dist"
|
|
19
|
+
},
|
|
20
|
+
"keywords": ["1sat", "bsv", "ordinals", "wallet", "brc-100"],
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@1sat/types": "workspace:*",
|
|
24
|
+
"@1sat/constants": "workspace:*",
|
|
25
|
+
"@1sat/wallet-toolbox": "file:../../../1sat-wallet-toolbox"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@bsv/sdk": "^1.9.0",
|
|
29
|
+
"@bsv/wallet-toolbox": "^1.7.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@bsv/sdk": "^1.9.24",
|
|
33
|
+
"@bsv/wallet-toolbox": "^1.7.14",
|
|
34
|
+
"typescript": "^5.9.3"
|
|
35
|
+
}
|
|
36
|
+
}
|