@xyo-network/xl1-protocol 1.12.105 → 1.12.106

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.
@@ -1,9 +1,16 @@
1
- import type { Address, Hash } from '@xylabs/hex';
1
+ import type { Address } from '@xylabs/hex';
2
2
  import type { Promisable } from '@xylabs/promise';
3
+ import type { WithHashMeta } from '@xyo-network/payload-model';
4
+ import type { BlockBoundWitness } from '../../block/index.ts';
3
5
  import type { XL1BlockRange } from '../../model/index.ts';
4
6
  import type { Transfer } from '../../payload/index.ts';
7
+ import type { TransactionBoundWitness } from '../../transaction/index.ts';
5
8
  import type { AttoXL1 } from '../../xl1/index.ts';
6
- export type AccountBalanceHistoryItem = [Hash, Transfer];
9
+ export type AccountBalanceHistoryItem = [
10
+ WithHashMeta<BlockBoundWitness>,
11
+ WithHashMeta<TransactionBoundWitness> | null,
12
+ WithHashMeta<Transfer>
13
+ ];
7
14
  export interface AccountBalancesViewInterface {
8
15
  accountBalances(address: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>;
9
16
  accountBalancesHistories(address: Address[]): Promisable<Partial<Record<Address, AccountBalanceHistoryItem[]>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"AccountBalance.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/AccountBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,MAAM,yBAAyB,GAAG,CAAC,IAAI,EAAc,QAAQ,CAAmC,CAAA;AAEtG,MAAM,WAAW,4BA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3C,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;IAClF,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,yBAAyB,EAAE,CAAC,CAAC,CAAC,CAAA;CAChH;AAED,MAAM,WAAW,2BAA2B;IAC1C,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACrD,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,yBAAyB,EAAE,CAAC,CAAA;CACxG"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/xl1-protocol",
4
- "version": "1.12.105",
4
+ "version": "1.12.106",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -1,11 +1,18 @@
1
- import type { Address, Hash } from '@xylabs/hex'
1
+ import type { Address } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
+ import type { WithHashMeta } from '@xyo-network/payload-model'
3
4
 
5
+ import type { BlockBoundWitness } from '../../block/index.ts'
4
6
  import type { XL1BlockRange } from '../../model/index.ts'
5
7
  import type { Transfer } from '../../payload/index.ts'
8
+ import type { TransactionBoundWitness } from '../../transaction/index.ts'
6
9
  import type { AttoXL1 } from '../../xl1/index.ts'
7
10
 
8
- export type AccountBalanceHistoryItem = [Hash /* block */, Transfer /* the actual transfer payload */]
11
+ export type AccountBalanceHistoryItem = [
12
+ WithHashMeta<BlockBoundWitness> /* block */,
13
+ WithHashMeta<TransactionBoundWitness> | null,
14
+ WithHashMeta<Transfer>, /* the actual transfer payload */
15
+ ]
9
16
 
10
17
  export interface AccountBalancesViewInterface {
11
18
  accountBalances(address: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>