@argonprotocol/localchain 1.0.11 → 1.0.12
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/index.d.ts +6 -0
- package/index.js +1 -0
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -278,6 +278,7 @@ export class NotaryClient {
|
|
|
278
278
|
isConnected(): Promise<boolean>
|
|
279
279
|
static connect(notaryId: number, publicKey: Uint8Array, host: string, autoVerifyHeaderSignatures: boolean): Promise<NotaryClient>
|
|
280
280
|
getBalanceTip(address: string, accountType: AccountType): Promise<BalanceTipResult>
|
|
281
|
+
subscribeHeaders(callback: (arg0: NotebookNumber, arg1: Tick) => any): Promise<Subscription>
|
|
281
282
|
get metadata(): Promise<NotebookMeta>
|
|
282
283
|
}
|
|
283
284
|
|
|
@@ -309,6 +310,11 @@ export class OverviewStore {
|
|
|
309
310
|
get(): Promise<LocalchainOverview>
|
|
310
311
|
}
|
|
311
312
|
|
|
313
|
+
export class Subscription {
|
|
314
|
+
/** Cancels the subscription. */
|
|
315
|
+
cancel(): Promise<void>
|
|
316
|
+
}
|
|
317
|
+
|
|
312
318
|
export class TickerRef {
|
|
313
319
|
get current(): number
|
|
314
320
|
tickForTime(timestampMillis: number): bigint
|
package/index.js
CHANGED
|
@@ -386,6 +386,7 @@ module.exports.NotaryClients = nativeBinding.NotaryClients
|
|
|
386
386
|
module.exports.OpenChannelHold = nativeBinding.OpenChannelHold
|
|
387
387
|
module.exports.OpenChannelHoldsStore = nativeBinding.OpenChannelHoldsStore
|
|
388
388
|
module.exports.OverviewStore = nativeBinding.OverviewStore
|
|
389
|
+
module.exports.Subscription = nativeBinding.Subscription
|
|
389
390
|
module.exports.TickerRef = nativeBinding.TickerRef
|
|
390
391
|
module.exports.Transactions = nativeBinding.Transactions
|
|
391
392
|
module.exports.AccountType = nativeBinding.AccountType
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/localchain",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "A nodejs binding to the Argon Localchain",
|
|
5
5
|
"bin": "cli.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@argonprotocol/mainchain": "1.0.
|
|
43
|
+
"@argonprotocol/mainchain": "1.0.12",
|
|
44
44
|
"@napi-rs/cli": "3.0.0-alpha.55",
|
|
45
45
|
"@types/http-proxy": "^1.17.14",
|
|
46
46
|
"@types/jest": "^29.5.11",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
},
|
|
78
78
|
"packageManager": "yarn@4.1.0",
|
|
79
79
|
"optionalDependencies": {
|
|
80
|
-
"@argonprotocol/localchain-darwin-x64": "1.0.
|
|
81
|
-
"@argonprotocol/localchain-darwin-arm64": "1.0.
|
|
82
|
-
"@argonprotocol/localchain-win32-x64-msvc": "1.0.
|
|
83
|
-
"@argonprotocol/localchain-linux-x64-gnu": "1.0.
|
|
84
|
-
"@argonprotocol/localchain-linux-arm64-gnu": "1.0.
|
|
80
|
+
"@argonprotocol/localchain-darwin-x64": "1.0.12",
|
|
81
|
+
"@argonprotocol/localchain-darwin-arm64": "1.0.12",
|
|
82
|
+
"@argonprotocol/localchain-win32-x64-msvc": "1.0.12",
|
|
83
|
+
"@argonprotocol/localchain-linux-x64-gnu": "1.0.12",
|
|
84
|
+
"@argonprotocol/localchain-linux-arm64-gnu": "1.0.12"
|
|
85
85
|
}
|
|
86
86
|
}
|