@argonprotocol/localchain 0.0.7 → 0.0.9
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 +14 -12
- package/package.json +7 -10
package/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export class BalanceChangeBuilder {
|
|
|
47
47
|
sendToMainchain(amount: bigint): Promise<void>
|
|
48
48
|
createChannelHold(amount: bigint, paymentAddress: string, domain?: string | undefined | null, delegatedSignerAddress?: string | undefined | null): Promise<void>
|
|
49
49
|
sendToVote(amount: bigint): Promise<void>
|
|
50
|
-
/** Lease a
|
|
50
|
+
/** Lease a Domain. Domain leases are converted in full to tax. */
|
|
51
51
|
leaseDomain(): Promise<bigint>
|
|
52
52
|
/** Create scale encoded signature message for the balance change. */
|
|
53
53
|
static toSigningMessage(balanceChangeJson: string): Uint8Array
|
|
@@ -67,8 +67,9 @@ export class BalanceSync {
|
|
|
67
67
|
consolidateJumpAccounts(): Promise<Array<NotarizationTracker>>
|
|
68
68
|
syncUnsettledBalances(): Promise<Array<BalanceChange>>
|
|
69
69
|
syncMainchainTransfers(): Promise<Array<NotarizationTracker>>
|
|
70
|
+
convertTaxToVotes(options: ChannelHoldCloseOptions): Promise<Array<NotarizationTracker>>
|
|
70
71
|
syncBalanceChange(balanceChange: BalanceChange): Promise<BalanceChange>
|
|
71
|
-
processPendingChannelHolds(
|
|
72
|
+
processPendingChannelHolds(): Promise<Array<NotarizationBuilder>>
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
export class BalanceSyncResult {
|
|
@@ -76,6 +77,7 @@ export class BalanceSyncResult {
|
|
|
76
77
|
get channelHoldNotarizations(): Array<NotarizationBuilder>
|
|
77
78
|
get mainchainTransfers(): Array<NotarizationTracker>
|
|
78
79
|
get jumpAccountConsolidations(): Array<NotarizationTracker>
|
|
80
|
+
get blockVotes(): Array<NotarizationTracker>
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
export class BalanceTipResult {
|
|
@@ -406,9 +408,9 @@ export interface BlockVote {
|
|
|
406
408
|
index: number
|
|
407
409
|
/** The voting power of this vote, determined from the amount of tax */
|
|
408
410
|
power: bigint
|
|
409
|
-
/** The
|
|
411
|
+
/** The domain used to create this vote */
|
|
410
412
|
domainHash: Array<number>
|
|
411
|
-
/** The
|
|
413
|
+
/** The domain payment address used to create this vote */
|
|
412
414
|
domainAddress: string
|
|
413
415
|
/** The mainchain address where rewards will be sent */
|
|
414
416
|
blockRewardsAddress: string
|
|
@@ -417,10 +419,10 @@ export interface BlockVote {
|
|
|
417
419
|
}
|
|
418
420
|
|
|
419
421
|
export enum Chain {
|
|
420
|
-
Mainnet =
|
|
421
|
-
Testnet =
|
|
422
|
-
LocalTestnet =
|
|
423
|
-
Devnet =
|
|
422
|
+
Mainnet = 'mainnet',
|
|
423
|
+
Testnet = 'testnet',
|
|
424
|
+
LocalTestnet = 'local-testnet',
|
|
425
|
+
Devnet = 'devnet'
|
|
424
426
|
}
|
|
425
427
|
|
|
426
428
|
export interface ChainIdentity {
|
|
@@ -464,10 +466,10 @@ export interface Domain {
|
|
|
464
466
|
topLevel: DomainTopLevel
|
|
465
467
|
}
|
|
466
468
|
|
|
467
|
-
/** Cost to lease a
|
|
469
|
+
/** Cost to lease a domain for 1 year */
|
|
468
470
|
export const DOMAIN_LEASE_COST: bigint
|
|
469
471
|
|
|
470
|
-
/** Minimum
|
|
472
|
+
/** Minimum domain name length */
|
|
471
473
|
export const DOMAIN_MIN_NAME_LENGTH: number
|
|
472
474
|
|
|
473
475
|
export interface DomainRegistration {
|
|
@@ -629,9 +631,9 @@ export enum TransactionType {
|
|
|
629
631
|
}
|
|
630
632
|
|
|
631
633
|
export interface VersionHost {
|
|
632
|
-
/** Datastore id is a 2-50 char string that uniquely identifies a
|
|
634
|
+
/** Datastore id is a 2-50 char string that uniquely identifies a domain. */
|
|
633
635
|
datastoreId: string
|
|
634
|
-
/** The host address where the
|
|
636
|
+
/** The host address where the domain can be accessed. */
|
|
635
637
|
host: string
|
|
636
638
|
}
|
|
637
639
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/localchain",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "A nodejs binding to the Argon Localchain",
|
|
5
5
|
"bin": "cli.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,11 +40,8 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@argonprotocol/mainchain": "0.0.
|
|
43
|
+
"@argonprotocol/mainchain": "0.0.9",
|
|
44
44
|
"@napi-rs/cli": "3.0.0-alpha.55",
|
|
45
|
-
"@polkadot/util": "^13.0.2",
|
|
46
|
-
"@polkadot/util-crypto": "^13.0.2",
|
|
47
|
-
"@polkadot/wasm-crypto": "^7.3.2",
|
|
48
45
|
"@types/http-proxy": "^1.17.14",
|
|
49
46
|
"@types/jest": "^29.5.11",
|
|
50
47
|
"@types/node": "^18.19.6",
|
|
@@ -64,10 +61,10 @@
|
|
|
64
61
|
},
|
|
65
62
|
"packageManager": "yarn@4.1.0",
|
|
66
63
|
"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.
|
|
64
|
+
"@argonprotocol/localchain-darwin-x64": "0.0.9",
|
|
65
|
+
"@argonprotocol/localchain-darwin-arm64": "0.0.9",
|
|
66
|
+
"@argonprotocol/localchain-win32-x64-msvc": "0.0.9",
|
|
67
|
+
"@argonprotocol/localchain-linux-x64-gnu": "0.0.9",
|
|
68
|
+
"@argonprotocol/localchain-linux-arm64-gnu": "0.0.9"
|
|
72
69
|
}
|
|
73
70
|
}
|