@argonprotocol/localchain 0.0.8 → 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.
Files changed (2) hide show
  1. package/index.d.ts +10 -8
  2. 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 data domain. Domain leases are converted in full to tax. */
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(options?: ChannelHoldCloseOptions | undefined | null): Promise<Array<NotarizationBuilder>>
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 data domain used to create this vote */
411
+ /** The domain used to create this vote */
410
412
  domainHash: Array<number>
411
- /** The data domain payment address used to create this vote */
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
@@ -464,10 +466,10 @@ export interface Domain {
464
466
  topLevel: DomainTopLevel
465
467
  }
466
468
 
467
- /** Cost to lease a data domain for 1 year */
469
+ /** Cost to lease a domain for 1 year */
468
470
  export const DOMAIN_LEASE_COST: bigint
469
471
 
470
- /** Minimum data domain name length */
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 data domain. */
634
+ /** Datastore id is a 2-50 char string that uniquely identifies a domain. */
633
635
  datastoreId: string
634
- /** The host address where the data domain can be accessed. */
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.8",
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.8",
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.8",
68
- "@argonprotocol/localchain-darwin-arm64": "0.0.8",
69
- "@argonprotocol/localchain-win32-x64-msvc": "0.0.8",
70
- "@argonprotocol/localchain-linux-x64-gnu": "0.0.8",
71
- "@argonprotocol/localchain-linux-arm64-gnu": "0.0.8"
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
  }