@argonprotocol/localchain 0.0.3 → 0.0.5
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 +84 -85
- package/index.js +11 -11
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export class BalanceChange {
|
|
|
18
18
|
changeNumber: number
|
|
19
19
|
balance: string
|
|
20
20
|
netBalanceChange: string
|
|
21
|
-
|
|
21
|
+
channelHoldNoteJson?: string
|
|
22
22
|
notaryId: number
|
|
23
23
|
notesJson: string
|
|
24
24
|
proofJson?: string
|
|
@@ -42,14 +42,13 @@ export class BalanceChangeBuilder {
|
|
|
42
42
|
isPendingClaim(): Promise<boolean>
|
|
43
43
|
send(amount: bigint, restrictToAddresses?: Array<string> | undefined | null): Promise<void>
|
|
44
44
|
claim(amount: bigint): Promise<ClaimResult>
|
|
45
|
-
|
|
45
|
+
claimChannelHold(amount: bigint): Promise<ClaimResult>
|
|
46
46
|
claimFromMainchain(transfer: LocalchainTransfer): Promise<void>
|
|
47
47
|
sendToMainchain(amount: bigint): Promise<void>
|
|
48
|
-
|
|
49
|
-
createPrivateServerEscrowHold(amount: bigint, paymentAddress: string, delegatedSignerAddress?: string | undefined | null): Promise<void>
|
|
48
|
+
createChannelHold(amount: bigint, paymentAddress: string, domain?: string | undefined | null, delegatedSignerAddress?: string | undefined | null): Promise<void>
|
|
50
49
|
sendToVote(amount: bigint): Promise<void>
|
|
51
|
-
/** Lease a data domain.
|
|
52
|
-
|
|
50
|
+
/** Lease a data domain. Domain leases are converted in full to tax. */
|
|
51
|
+
leaseDomain(): Promise<bigint>
|
|
53
52
|
/** Create scale encoded signature message for the balance change. */
|
|
54
53
|
static toSigningMessage(balanceChangeJson: string): Uint8Array
|
|
55
54
|
}
|
|
@@ -64,17 +63,17 @@ export class BalanceChangeStore {
|
|
|
64
63
|
|
|
65
64
|
export class BalanceSync {
|
|
66
65
|
constructor(localchain: Localchain)
|
|
67
|
-
sync(options?:
|
|
66
|
+
sync(options?: ChannelHoldCloseOptions | undefined | null): Promise<BalanceSyncResult>
|
|
68
67
|
consolidateJumpAccounts(): Promise<Array<NotarizationTracker>>
|
|
69
68
|
syncUnsettledBalances(): Promise<Array<BalanceChange>>
|
|
70
69
|
syncMainchainTransfers(): Promise<Array<NotarizationTracker>>
|
|
71
70
|
syncBalanceChange(balanceChange: BalanceChange): Promise<BalanceChange>
|
|
72
|
-
|
|
71
|
+
processPendingChannelHolds(options?: ChannelHoldCloseOptions | undefined | null): Promise<Array<NotarizationBuilder>>
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
export class BalanceSyncResult {
|
|
76
75
|
get balanceChanges(): Array<BalanceChange>
|
|
77
|
-
get
|
|
76
|
+
get channelHoldNotarizations(): Array<NotarizationBuilder>
|
|
78
77
|
get mainchainTransfers(): Array<NotarizationTracker>
|
|
79
78
|
get jumpAccountConsolidations(): Array<NotarizationTracker>
|
|
80
79
|
}
|
|
@@ -85,33 +84,14 @@ export class BalanceTipResult {
|
|
|
85
84
|
tick: number
|
|
86
85
|
}
|
|
87
86
|
|
|
88
|
-
export class
|
|
89
|
-
id: number
|
|
90
|
-
name: string
|
|
91
|
-
tld: string
|
|
92
|
-
registeredToAddress: string
|
|
93
|
-
notarizationId: number
|
|
94
|
-
registeredAtTick: number
|
|
95
|
-
}
|
|
96
|
-
export type DataDomainRow = DataDomainLease
|
|
97
|
-
|
|
98
|
-
export class DataDomainStore {
|
|
99
|
-
static tldFromString(tld: string): DataTLD
|
|
100
|
-
get list(): Promise<Array<DataDomainLease>>
|
|
101
|
-
hashDomain(domain: JsDataDomain): Uint8Array
|
|
102
|
-
static getHash(domain: string): Uint8Array
|
|
103
|
-
static parse(domain: string): DataDomain
|
|
104
|
-
get(id: number): Promise<DataDomainLease>
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export class Escrow {
|
|
87
|
+
export class ChannelHold {
|
|
108
88
|
id: string
|
|
109
89
|
initialBalanceChangeJson: string
|
|
110
90
|
notaryId: number
|
|
111
91
|
fromAddress: string
|
|
112
92
|
delegatedSignerAddress?: string
|
|
113
93
|
toAddress: string
|
|
114
|
-
|
|
94
|
+
domainHash?: Array<number>
|
|
115
95
|
expirationTick: number
|
|
116
96
|
balanceChangeNumber: number
|
|
117
97
|
notarizationId?: number
|
|
@@ -123,6 +103,25 @@ export class Escrow {
|
|
|
123
103
|
isPastClaimPeriod(currentTick: number): boolean
|
|
124
104
|
}
|
|
125
105
|
|
|
106
|
+
export class DomainLease {
|
|
107
|
+
id: number
|
|
108
|
+
name: string
|
|
109
|
+
topLevel: string
|
|
110
|
+
registeredToAddress: string
|
|
111
|
+
notarizationId: number
|
|
112
|
+
registeredAtTick: number
|
|
113
|
+
}
|
|
114
|
+
export type DomainRow = DomainLease
|
|
115
|
+
|
|
116
|
+
export class DomainStore {
|
|
117
|
+
static tldFromString(topLevel: string): DomainTopLevel
|
|
118
|
+
get list(): Promise<Array<DomainLease>>
|
|
119
|
+
hashDomain(domain: JsDomain): Uint8Array
|
|
120
|
+
static getHash(domain: string): Uint8Array
|
|
121
|
+
static parse(domain: string): Domain
|
|
122
|
+
get(id: number): Promise<DomainLease>
|
|
123
|
+
}
|
|
124
|
+
|
|
126
125
|
export class Keystore {
|
|
127
126
|
useExternal(defaultAddress: string, sign: (address: string, signatureMessage: Uint8Array) => Promise<Uint8Array>, derive: (hdPath: string) => Promise<string>): Promise<void>
|
|
128
127
|
/** Bootstrap this localchain with a new key. Must be empty or will throw an error! Defaults to SR25519 if no scheme is provided. */
|
|
@@ -170,8 +169,8 @@ export class Localchain {
|
|
|
170
169
|
get notaryClients(): NotaryClients
|
|
171
170
|
get accounts(): AccountStore
|
|
172
171
|
get balanceChanges(): BalanceChangeStore
|
|
173
|
-
get
|
|
174
|
-
get
|
|
172
|
+
get domains(): DomainStore
|
|
173
|
+
get openChannelHolds(): OpenChannelHoldsStore
|
|
175
174
|
get balanceSync(): BalanceSync
|
|
176
175
|
get transactions(): Transactions
|
|
177
176
|
beginChange(): NotarizationBuilder
|
|
@@ -184,11 +183,11 @@ export class MainchainClient {
|
|
|
184
183
|
getTicker(): Promise<Ticker>
|
|
185
184
|
getBestBlockHash(): Promise<Uint8Array>
|
|
186
185
|
getVoteBlockHash(currentTick: number): Promise<BestBlockForVote | null>
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
getDomainRegistration(domainName: string, topLevel: DomainTopLevel): Promise<DomainRegistration | null>
|
|
187
|
+
getDomainZoneRecord(domainName: string, topLevel: DomainTopLevel): Promise<ZoneRecord | null>
|
|
189
188
|
getNotaryDetails(notaryId: number): Promise<NotaryDetails | null>
|
|
190
189
|
getAccount(address: string): Promise<AccountInfo>
|
|
191
|
-
|
|
190
|
+
getOwnership(address: string): Promise<BalancesAccountData>
|
|
192
191
|
getTransferToLocalchainFinalizedBlock(transferId: number): Promise<number | null>
|
|
193
192
|
waitForLocalchainTransfer(transferId: number): Promise<LocalchainTransfer | null>
|
|
194
193
|
getAccountChangesRoot(notaryId: number, notebookNumber: number): Promise<Uint8Array | null>
|
|
@@ -207,7 +206,7 @@ export class NotarizationBuilder {
|
|
|
207
206
|
get transaction(): Promise<LocalchainTransaction | null>
|
|
208
207
|
get isFinalized(): Promise<boolean>
|
|
209
208
|
get unclaimedTax(): Promise<bigint>
|
|
210
|
-
get
|
|
209
|
+
get channelHolds(): Promise<Array<ChannelHold>>
|
|
211
210
|
get accounts(): Promise<Array<LocalAccount>>
|
|
212
211
|
get balanceChangeBuilders(): Promise<Array<BalanceChangeBuilder>>
|
|
213
212
|
get unusedVoteFunds(): Promise<bigint>
|
|
@@ -220,16 +219,16 @@ export class NotarizationBuilder {
|
|
|
220
219
|
defaultDepositAccount(): Promise<BalanceChangeBuilder>
|
|
221
220
|
defaultTaxAccount(): Promise<BalanceChangeBuilder>
|
|
222
221
|
loadAccount(account: LocalAccount): Promise<BalanceChangeBuilder>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
222
|
+
canAddChannelHold(channelHold: OpenChannelHold): Promise<boolean>
|
|
223
|
+
cancelChannelHold(openChannelHold: OpenChannelHold): Promise<void>
|
|
224
|
+
claimChannelHold(openChannelHold: OpenChannelHold): Promise<void>
|
|
226
225
|
addVote(vote: BlockVote): Promise<void>
|
|
227
|
-
|
|
226
|
+
leaseDomain(domain: string, registerToAddress: string): Promise<void>
|
|
228
227
|
/** Calculates the transfer tax on the given amount */
|
|
229
228
|
getTransferTaxAmount(amount: bigint): bigint
|
|
230
229
|
/** Calculates the total needed to end up with the given balance */
|
|
231
230
|
getTotalForAfterTaxBalance(finalBalance: bigint): bigint
|
|
232
|
-
|
|
231
|
+
getChannelHoldTaxAmount(amount: bigint): bigint
|
|
233
232
|
claimFromMainchain(transfer: LocalchainTransfer): Promise<BalanceChangeBuilder>
|
|
234
233
|
claimAndPayTax(milligonsPlusTax: bigint, depositAccountId: number | undefined | null, useDefaultTaxAccount: boolean): Promise<BalanceChangeBuilder>
|
|
235
234
|
fundJumpAccount(milligons: bigint): Promise<BalanceChangeBuilder>
|
|
@@ -279,21 +278,21 @@ export class NotaryClients {
|
|
|
279
278
|
get(notaryId: number): Promise<NotaryClient>
|
|
280
279
|
}
|
|
281
280
|
|
|
282
|
-
export class
|
|
283
|
-
get
|
|
281
|
+
export class OpenChannelHold {
|
|
282
|
+
get channelHold(): Promise<ChannelHold>
|
|
284
283
|
sign(settledAmount: bigint): Promise<SignatureResult>
|
|
285
284
|
exportForSend(): Promise<string>
|
|
286
285
|
recordUpdatedSettlement(milligons: bigint, signature: Uint8Array): Promise<void>
|
|
287
286
|
}
|
|
288
287
|
|
|
289
|
-
export class
|
|
290
|
-
get(id: string): Promise<
|
|
291
|
-
open(
|
|
292
|
-
getClaimable(): Promise<Array<
|
|
293
|
-
/** Import
|
|
294
|
-
|
|
295
|
-
/** Create a new
|
|
296
|
-
|
|
288
|
+
export class OpenChannelHoldsStore {
|
|
289
|
+
get(id: string): Promise<OpenChannelHold>
|
|
290
|
+
open(channelHold: ChannelHold): OpenChannelHold
|
|
291
|
+
getClaimable(): Promise<Array<OpenChannelHold>>
|
|
292
|
+
/** Import a channel_hold from a JSON string. Verifies with the notary that the channel hold is valid. */
|
|
293
|
+
importChannelHold(channelHoldJson: string): Promise<OpenChannelHold>
|
|
294
|
+
/** Create a new channel_hold as a client. You must first notarize a channel hold note to the notary for the `client_address`. */
|
|
295
|
+
openClientChannelHold(accountId: number): Promise<OpenChannelHold>
|
|
297
296
|
}
|
|
298
297
|
|
|
299
298
|
export class OverviewStore {
|
|
@@ -305,13 +304,13 @@ export class TickerRef {
|
|
|
305
304
|
tickForTime(timestampMillis: number): number
|
|
306
305
|
timeForTick(tick: number): bigint
|
|
307
306
|
millisToNextTick(): bigint
|
|
308
|
-
get
|
|
307
|
+
get channelHoldExpirationTicks(): Tick
|
|
309
308
|
}
|
|
310
309
|
|
|
311
310
|
export class Transactions {
|
|
312
311
|
create(transactionType: TransactionType): Promise<LocalchainTransaction>
|
|
313
312
|
request(milligons: bigint): Promise<string>
|
|
314
|
-
|
|
313
|
+
createChannelHold(channelHoldMilligons: bigint, recipientAddress: string, domain?: string | undefined | null, notaryId?: number | undefined | null, delegatedSignerAddress?: string | undefined | null): Promise<OpenChannelHold>
|
|
315
314
|
send(milligons: bigint, to?: Array<string> | undefined | null): Promise<string>
|
|
316
315
|
importArgons(argonFile: string): Promise<NotarizationTracker>
|
|
317
316
|
acceptArgonRequest(argonFile: string): Promise<NotarizationTracker>
|
|
@@ -366,7 +365,7 @@ export enum BalanceChangeStatus {
|
|
|
366
365
|
Immortalized = 'Immortalized',
|
|
367
366
|
/** A balance change has been sent to another user to claim. Keep checking until it is claimed. */
|
|
368
367
|
WaitingForSendClaim = 'WaitingForSendClaim',
|
|
369
|
-
/** A pending balance change that was canceled before being claimed by another user (
|
|
368
|
+
/** A pending balance change that was canceled before being claimed by another user (channel_hold or send). */
|
|
370
369
|
Canceled = 'Canceled'
|
|
371
370
|
}
|
|
372
371
|
|
|
@@ -407,15 +406,27 @@ export interface BlockVote {
|
|
|
407
406
|
/** The voting power of this vote, determined from the amount of tax */
|
|
408
407
|
power: bigint
|
|
409
408
|
/** The data domain used to create this vote */
|
|
410
|
-
|
|
409
|
+
domainHash: Array<number>
|
|
411
410
|
/** The data domain payment address used to create this vote */
|
|
412
|
-
|
|
411
|
+
domainAddress: string
|
|
413
412
|
/** The mainchain address where rewards will be sent */
|
|
414
413
|
blockRewardsAddress: string
|
|
415
414
|
/** A signature of the vote by the account_id */
|
|
416
415
|
signature: Array<number>
|
|
417
416
|
}
|
|
418
417
|
|
|
418
|
+
/** Number of ticks past the expiration of a channel_hold that a recipient has to claim. After this point, sender can recoup the channel_holded funds */
|
|
419
|
+
export const CHANNEL_HOLD_CLAWBACK_TICKS: number
|
|
420
|
+
|
|
421
|
+
/** Minimum milligons that can be settled in a channel_hold */
|
|
422
|
+
export const CHANNEL_HOLD_MINIMUM_SETTLEMENT: bigint
|
|
423
|
+
|
|
424
|
+
export interface ChannelHoldCloseOptions {
|
|
425
|
+
votesAddress?: string
|
|
426
|
+
/** What's the minimum amount of tax we should wait for before voting on blocks */
|
|
427
|
+
minimumVoteAmount?: number
|
|
428
|
+
}
|
|
429
|
+
|
|
419
430
|
export interface ClaimResult {
|
|
420
431
|
claimed: bigint
|
|
421
432
|
tax: bigint
|
|
@@ -427,26 +438,26 @@ export enum CryptoScheme {
|
|
|
427
438
|
Ecdsa = 2
|
|
428
439
|
}
|
|
429
440
|
|
|
441
|
+
/** Max versions that can be in a datastore zone record */
|
|
442
|
+
export const DATASTORE_MAX_VERSIONS: number
|
|
443
|
+
|
|
444
|
+
export interface Domain {
|
|
445
|
+
name: string
|
|
446
|
+
topLevel: DomainTopLevel
|
|
447
|
+
}
|
|
448
|
+
|
|
430
449
|
/** Cost to lease a data domain for 1 year */
|
|
431
|
-
export const
|
|
450
|
+
export const DOMAIN_LEASE_COST: bigint
|
|
432
451
|
|
|
433
452
|
/** Minimum data domain name length */
|
|
434
|
-
export const
|
|
435
|
-
|
|
436
|
-
export interface DataDomain {
|
|
437
|
-
domainName: string
|
|
438
|
-
topLevelDomain: DataTLD
|
|
439
|
-
}
|
|
453
|
+
export const DOMAIN_MIN_NAME_LENGTH: number
|
|
440
454
|
|
|
441
|
-
export interface
|
|
455
|
+
export interface DomainRegistration {
|
|
442
456
|
registeredToAddress: string
|
|
443
457
|
registeredAtTick: number
|
|
444
458
|
}
|
|
445
459
|
|
|
446
|
-
|
|
447
|
-
export const DATASTORE_MAX_VERSIONS: number
|
|
448
|
-
|
|
449
|
-
export enum DataTLD {
|
|
460
|
+
export enum DomainTopLevel {
|
|
450
461
|
Analytics = 0,
|
|
451
462
|
Automotive = 1,
|
|
452
463
|
Bikes = 2,
|
|
@@ -469,18 +480,6 @@ export enum DataTLD {
|
|
|
469
480
|
Weather = 19
|
|
470
481
|
}
|
|
471
482
|
|
|
472
|
-
/** Number of ticks past the expiration of an escrow that a recipient has to claim. After this point, sender can recoup the escrowed funds */
|
|
473
|
-
export const ESCROW_CLAWBACK_TICKS: number
|
|
474
|
-
|
|
475
|
-
/** Minimum milligons that can be settled in an escrow */
|
|
476
|
-
export const ESCROW_MINIMUM_SETTLEMENT: bigint
|
|
477
|
-
|
|
478
|
-
export interface EscrowCloseOptions {
|
|
479
|
-
votesAddress?: string
|
|
480
|
-
/** What's the minimum amount of tax we should wait for before voting on blocks */
|
|
481
|
-
minimumVoteAmount?: number
|
|
482
|
-
}
|
|
483
|
-
|
|
484
483
|
export interface ImmortalizedBlock {
|
|
485
484
|
immortalizedBlock: number
|
|
486
485
|
accountChangesMerkleRoot: Uint8Array
|
|
@@ -515,7 +514,7 @@ export interface LocalchainOverview {
|
|
|
515
514
|
balance: bigint
|
|
516
515
|
/** The net pending balance change acceptance/confirmation */
|
|
517
516
|
pendingBalanceChange: bigint
|
|
518
|
-
/** Balance held in
|
|
517
|
+
/** Balance held in channel_hold */
|
|
519
518
|
heldBalance: bigint
|
|
520
519
|
/** Tax accumulated for the account */
|
|
521
520
|
tax: bigint
|
|
@@ -548,7 +547,7 @@ export const NOTARIZATION_MAX_BALANCE_CHANGES: number
|
|
|
548
547
|
/** Max notarizations that can be in a single notarization */
|
|
549
548
|
export const NOTARIZATION_MAX_BLOCK_VOTES: number
|
|
550
549
|
|
|
551
|
-
/** Max
|
|
550
|
+
/** Max domains that can be in a single notarization */
|
|
552
551
|
export const NOTARIZATION_MAX_DOMAINS: number
|
|
553
552
|
|
|
554
553
|
export interface NotaryAccountOrigin {
|
|
@@ -577,7 +576,7 @@ export interface NotebookProof {
|
|
|
577
576
|
balanceTip: Uint8Array
|
|
578
577
|
changeNumber: number
|
|
579
578
|
accountOrigin: NotaryAccountOrigin
|
|
580
|
-
|
|
579
|
+
channelHoldNoteJson?: string
|
|
581
580
|
leafIndex: number
|
|
582
581
|
numberOfLeaves: number
|
|
583
582
|
proof: Array<Uint8Array>
|
|
@@ -598,14 +597,14 @@ export interface Ticker {
|
|
|
598
597
|
export interface TickerConfig {
|
|
599
598
|
tickDurationMillis: number
|
|
600
599
|
genesisUtcTime: number
|
|
601
|
-
|
|
600
|
+
channelHoldExpirationTicks: number
|
|
602
601
|
ntpPoolUrl?: string
|
|
603
602
|
}
|
|
604
603
|
|
|
605
604
|
export enum TransactionType {
|
|
606
605
|
Send = 0,
|
|
607
606
|
Request = 1,
|
|
608
|
-
|
|
607
|
+
OpenChannelHold = 2,
|
|
609
608
|
Consolidation = 3
|
|
610
609
|
}
|
|
611
610
|
|
package/index.js
CHANGED
|
@@ -369,10 +369,10 @@ module.exports.BalanceChangeStore = nativeBinding.BalanceChangeStore
|
|
|
369
369
|
module.exports.BalanceSync = nativeBinding.BalanceSync
|
|
370
370
|
module.exports.BalanceSyncResult = nativeBinding.BalanceSyncResult
|
|
371
371
|
module.exports.BalanceTipResult = nativeBinding.BalanceTipResult
|
|
372
|
-
module.exports.
|
|
373
|
-
module.exports.
|
|
374
|
-
module.exports.
|
|
375
|
-
module.exports.
|
|
372
|
+
module.exports.ChannelHold = nativeBinding.ChannelHold
|
|
373
|
+
module.exports.DomainLease = nativeBinding.DomainLease
|
|
374
|
+
module.exports.DomainRow = nativeBinding.DomainRow
|
|
375
|
+
module.exports.DomainStore = nativeBinding.DomainStore
|
|
376
376
|
module.exports.Keystore = nativeBinding.Keystore
|
|
377
377
|
module.exports.LocalAccount = nativeBinding.LocalAccount
|
|
378
378
|
module.exports.Localchain = nativeBinding.Localchain
|
|
@@ -382,8 +382,8 @@ module.exports.NotarizationBuilder = nativeBinding.NotarizationBuilder
|
|
|
382
382
|
module.exports.NotarizationTracker = nativeBinding.NotarizationTracker
|
|
383
383
|
module.exports.NotaryClient = nativeBinding.NotaryClient
|
|
384
384
|
module.exports.NotaryClients = nativeBinding.NotaryClients
|
|
385
|
-
module.exports.
|
|
386
|
-
module.exports.
|
|
385
|
+
module.exports.OpenChannelHold = nativeBinding.OpenChannelHold
|
|
386
|
+
module.exports.OpenChannelHoldsStore = nativeBinding.OpenChannelHoldsStore
|
|
387
387
|
module.exports.OverviewStore = nativeBinding.OverviewStore
|
|
388
388
|
module.exports.TickerRef = nativeBinding.TickerRef
|
|
389
389
|
module.exports.Transactions = nativeBinding.Transactions
|
|
@@ -392,13 +392,13 @@ module.exports.ADDRESS_PREFIX = nativeBinding.ADDRESS_PREFIX
|
|
|
392
392
|
module.exports.ARGON_FILE_VERSION = nativeBinding.ARGON_FILE_VERSION
|
|
393
393
|
module.exports.ArgonFileType = nativeBinding.ArgonFileType
|
|
394
394
|
module.exports.BalanceChangeStatus = nativeBinding.BalanceChangeStatus
|
|
395
|
+
module.exports.CHANNEL_HOLD_CLAWBACK_TICKS = nativeBinding.CHANNEL_HOLD_CLAWBACK_TICKS
|
|
396
|
+
module.exports.CHANNEL_HOLD_MINIMUM_SETTLEMENT = nativeBinding.CHANNEL_HOLD_MINIMUM_SETTLEMENT
|
|
395
397
|
module.exports.CryptoScheme = nativeBinding.CryptoScheme
|
|
396
|
-
module.exports.DATA_DOMAIN_LEASE_COST = nativeBinding.DATA_DOMAIN_LEASE_COST
|
|
397
|
-
module.exports.DATA_DOMAIN_MIN_NAME_LENGTH = nativeBinding.DATA_DOMAIN_MIN_NAME_LENGTH
|
|
398
398
|
module.exports.DATASTORE_MAX_VERSIONS = nativeBinding.DATASTORE_MAX_VERSIONS
|
|
399
|
-
module.exports.
|
|
400
|
-
module.exports.
|
|
401
|
-
module.exports.
|
|
399
|
+
module.exports.DOMAIN_LEASE_COST = nativeBinding.DOMAIN_LEASE_COST
|
|
400
|
+
module.exports.DOMAIN_MIN_NAME_LENGTH = nativeBinding.DOMAIN_MIN_NAME_LENGTH
|
|
401
|
+
module.exports.DomainTopLevel = nativeBinding.DomainTopLevel
|
|
402
402
|
module.exports.NOTARIZATION_MAX_BALANCE_CHANGES = nativeBinding.NOTARIZATION_MAX_BALANCE_CHANGES
|
|
403
403
|
module.exports.NOTARIZATION_MAX_BLOCK_VOTES = nativeBinding.NOTARIZATION_MAX_BLOCK_VOTES
|
|
404
404
|
module.exports.NOTARIZATION_MAX_DOMAINS = nativeBinding.NOTARIZATION_MAX_DOMAINS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/localchain",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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": "0.0.
|
|
43
|
+
"@argonprotocol/mainchain": "0.0.5",
|
|
44
44
|
"@napi-rs/cli": "3.0.0-alpha.55",
|
|
45
45
|
"@polkadot/util": "^13.0.2",
|
|
46
46
|
"@polkadot/util-crypto": "^13.0.2",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
},
|
|
65
65
|
"packageManager": "yarn@4.1.0",
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"@argonprotocol/localchain-darwin-x64": "0.0.
|
|
68
|
-
"@argonprotocol/localchain-darwin-arm64": "0.0.
|
|
69
|
-
"@argonprotocol/localchain-win32-x64-msvc": "0.0.
|
|
70
|
-
"@argonprotocol/localchain-linux-x64-gnu": "0.0.
|
|
71
|
-
"@argonprotocol/localchain-linux-arm64-gnu": "0.0.
|
|
67
|
+
"@argonprotocol/localchain-darwin-x64": "0.0.5",
|
|
68
|
+
"@argonprotocol/localchain-darwin-arm64": "0.0.5",
|
|
69
|
+
"@argonprotocol/localchain-win32-x64-msvc": "0.0.5",
|
|
70
|
+
"@argonprotocol/localchain-linux-x64-gnu": "0.0.5",
|
|
71
|
+
"@argonprotocol/localchain-linux-arm64-gnu": "0.0.5"
|
|
72
72
|
}
|
|
73
73
|
}
|