@xyo-network/xl1-protocol-sdk 1.16.5 → 1.16.7
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/dist/neutral/ChainServiceCollectionV2.d.ts +3 -3
- package/dist/neutral/ChainServiceCollectionV2.d.ts.map +1 -1
- package/dist/neutral/block/primitives/transfers/transfersSummary.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +1 -1
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +17 -16
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/primitives/summary/balances/balancesSummary.d.ts.map +1 -1
- package/dist/neutral/primitives/summary/transfers/transfersSummary.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/XyoViewer.d.ts +1 -1
- package/dist/neutral/provider/viewer/XyoViewer.d.ts.map +1 -1
- package/dist/neutral/services/AccountBalanceService.d.ts +2 -13
- package/dist/neutral/services/AccountBalanceService.d.ts.map +1 -1
- package/dist/neutral/services/Chain/ChainService.d.ts +1 -1
- package/dist/neutral/services/Chain/ChainService.d.ts.map +1 -1
- package/dist/neutral/services/Chain/interfaces/ChainStakeViewer.d.ts +1 -1
- package/dist/neutral/services/Chain/interfaces/ChainStakeViewer.d.ts.map +1 -1
- package/dist/neutral/services/NetworkStakeService.d.ts +1 -1
- package/dist/neutral/services/NetworkStakeService.d.ts.map +1 -1
- package/dist/neutral/services/StepStakeService.d.ts +1 -1
- package/dist/neutral/services/StepStakeService.d.ts.map +1 -1
- package/dist/neutral/services/TimeSyncService.d.ts +1 -1
- package/dist/neutral/services/TimeSyncService.d.ts.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts +1 -0
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +1 -1
- package/dist/neutral/validation/block/HydratedBlockStateValidationFunction.d.ts +1 -4
- package/dist/neutral/validation/block/HydratedBlockStateValidationFunction.d.ts.map +1 -1
- package/dist/neutral/viewers/AccountBalance.d.ts +25 -0
- package/dist/neutral/viewers/AccountBalance.d.ts.map +1 -0
- package/dist/neutral/viewers/Block.d.ts.map +1 -0
- package/dist/neutral/viewers/Chain.d.ts.map +1 -0
- package/dist/neutral/viewers/ChainContract.d.ts.map +1 -0
- package/dist/neutral/viewers/Fork.d.ts.map +1 -0
- package/dist/neutral/viewers/NetworkStakeStepReward.d.ts.map +1 -0
- package/dist/neutral/{interfaces/viewers/StakeViewer.d.ts → viewers/Stake.d.ts} +2 -2
- package/dist/neutral/viewers/Stake.d.ts.map +1 -0
- package/dist/neutral/{interfaces/viewers/StakeTotalsViewer.d.ts → viewers/StakeTotals.d.ts} +1 -1
- package/dist/neutral/viewers/StakeTotals.d.ts.map +1 -0
- package/dist/neutral/viewers/StepStake.d.ts.map +1 -0
- package/dist/neutral/viewers/TimeSync.d.ts.map +1 -0
- package/dist/neutral/viewers/Transaction.d.ts.map +1 -0
- package/dist/neutral/viewers/TransferBalance.d.ts.map +1 -0
- package/dist/neutral/{interfaces/viewers → viewers}/index.d.ts +2 -2
- package/dist/neutral/viewers/index.d.ts.map +1 -0
- package/package.json +27 -27
- package/src/ChainServiceCollectionV2.ts +3 -3
- package/src/block/primitives/frames/calculateFramesFromRange.ts +3 -3
- package/src/block/primitives/frames/spec/calculateFramesFromRange.spec.ts +7 -8
- package/src/block/primitives/frames/spec/deepCalculateFramesFromRange.spec.ts +9 -9
- package/src/block/primitives/transfers/transfersSummary.ts +4 -2
- package/src/index.ts +1 -1
- package/src/primitives/step/spec/completedStepRewardAddress.spec.ts +4 -4
- package/src/primitives/step/stepBlockRange.ts +1 -1
- package/src/primitives/summary/balances/balancesSummary.ts +4 -2
- package/src/primitives/summary/transfers/transfersSummary.ts +4 -2
- package/src/provider/viewer/XyoViewer.ts +1 -1
- package/src/services/AccountBalanceService.ts +2 -19
- package/src/services/Chain/ChainService.ts +1 -1
- package/src/services/Chain/interfaces/ChainStakeViewer.ts +1 -1
- package/src/services/NetworkStakeService.ts +1 -1
- package/src/services/StepStakeService.ts +1 -1
- package/src/services/TimeSyncService.ts +1 -1
- package/src/simple/gateway/SimpleXyoGatewayRunner.ts +2 -1
- package/src/validation/block/HydratedBlockStateValidationFunction.ts +1 -7
- package/src/viewers/AccountBalance.ts +31 -0
- package/src/{interfaces/viewers/StakeViewer.ts → viewers/Stake.ts} +1 -1
- package/src/{interfaces/viewers → viewers}/index.ts +2 -2
- package/dist/neutral/interfaces/index.d.ts +0 -2
- package/dist/neutral/interfaces/index.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/AccountBalance.d.ts +0 -19
- package/dist/neutral/interfaces/viewers/AccountBalance.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/Block.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/Chain.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/ChainContract.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/Fork.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/NetworkStakeStepReward.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/StakeTotalsViewer.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/StakeViewer.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/StepStake.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/TimeSync.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/Transaction.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/TransferBalance.d.ts.map +0 -1
- package/dist/neutral/interfaces/viewers/index.d.ts.map +0 -1
- package/src/interfaces/index.ts +0 -1
- package/src/interfaces/viewers/AccountBalance.ts +0 -25
- /package/dist/neutral/{interfaces/viewers → viewers}/Block.d.ts +0 -0
- /package/dist/neutral/{interfaces/viewers → viewers}/Chain.d.ts +0 -0
- /package/dist/neutral/{interfaces/viewers → viewers}/ChainContract.d.ts +0 -0
- /package/dist/neutral/{interfaces/viewers → viewers}/Fork.d.ts +0 -0
- /package/dist/neutral/{interfaces/viewers → viewers}/NetworkStakeStepReward.d.ts +0 -0
- /package/dist/neutral/{interfaces/viewers → viewers}/StepStake.d.ts +0 -0
- /package/dist/neutral/{interfaces/viewers → viewers}/TimeSync.d.ts +0 -0
- /package/dist/neutral/{interfaces/viewers → viewers}/Transaction.d.ts +0 -0
- /package/dist/neutral/{interfaces/viewers → viewers}/TransferBalance.d.ts +0 -0
- /package/src/{interfaces/viewers → viewers}/Block.ts +0 -0
- /package/src/{interfaces/viewers → viewers}/Chain.ts +0 -0
- /package/src/{interfaces/viewers → viewers}/ChainContract.ts +0 -0
- /package/src/{interfaces/viewers → viewers}/Fork.ts +0 -0
- /package/src/{interfaces/viewers → viewers}/NetworkStakeStepReward.ts +0 -0
- /package/src/{interfaces/viewers/StakeTotalsViewer.ts → viewers/StakeTotals.ts} +0 -0
- /package/src/{interfaces/viewers → viewers}/StepStake.ts +0 -0
- /package/src/{interfaces/viewers → viewers}/TimeSync.ts +0 -0
- /package/src/{interfaces/viewers → viewers}/Transaction.ts +0 -0
- /package/src/{interfaces/viewers → viewers}/TransferBalance.ts +0 -0
|
@@ -7,22 +7,22 @@ import { completedStepRewardAddress } from '../completedStepRewardAddress.ts'
|
|
|
7
7
|
|
|
8
8
|
describe('completedStepRewardAddress', () => {
|
|
9
9
|
it('should get index [single entry - step size]', () => {
|
|
10
|
-
const address = completedStepRewardAddress({ block: asXL1BlockNumber(2311), step: 2311 })
|
|
10
|
+
const address = completedStepRewardAddress({ block: asXL1BlockNumber(2311, true), step: 2311 })
|
|
11
11
|
expect (address).toBe('93d321ab2e01ce14bbe601d3c49b330d250c5ab1')
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
it('should get index [single entry - step ordinal]', () => {
|
|
15
|
-
const address = completedStepRewardAddress({ block: asXL1BlockNumber(2311), step: 3 })
|
|
15
|
+
const address = completedStepRewardAddress({ block: asXL1BlockNumber(2311, true), step: 3 })
|
|
16
16
|
expect (address).toBe('93d321ab2e01ce14bbe601d3c49b330d250c5ab1')
|
|
17
17
|
})
|
|
18
18
|
|
|
19
19
|
it('should get index [single entry - step size]', () => {
|
|
20
|
-
const address = completedStepRewardAddress({ block: asXL1BlockNumber(2311 * 2), step: 2311 })
|
|
20
|
+
const address = completedStepRewardAddress({ block: asXL1BlockNumber(2311 * 2, true), step: 2311 })
|
|
21
21
|
expect (address).toBe('04c602f975a00794efd01e5fe07266cc1945f321')
|
|
22
22
|
})
|
|
23
23
|
|
|
24
24
|
it('should get index [single entry - step ordinal]', () => {
|
|
25
|
-
const address = completedStepRewardAddress({ block: asXL1BlockNumber(2311 * 2), step: 3 })
|
|
25
|
+
const address = completedStepRewardAddress({ block: asXL1BlockNumber(2311 * 2, true), step: 3 })
|
|
26
26
|
expect (address).toBe('04c602f975a00794efd01e5fe07266cc1945f321')
|
|
27
27
|
})
|
|
28
28
|
})
|
|
@@ -4,5 +4,5 @@ import { asXL1BlockRange, StepSizes } from '@xyo-network/xl1-protocol'
|
|
|
4
4
|
export function stepBlockRange({ block, step }: StepIdentity): XL1BlockRange {
|
|
5
5
|
const stepSize = StepSizes[step]
|
|
6
6
|
const start = block - stepSize
|
|
7
|
-
return asXL1BlockRange([start, start + stepSize - 1])
|
|
7
|
+
return asXL1BlockRange([start, start + stepSize - 1], true)
|
|
8
8
|
}
|
|
@@ -2,7 +2,9 @@ import type { Address } from '@xylabs/hex'
|
|
|
2
2
|
import { asAddress } from '@xylabs/hex'
|
|
3
3
|
import { spanRootAsync } from '@xylabs/telemetry'
|
|
4
4
|
import { isDefined } from '@xylabs/typeof'
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
asBlockBoundWitnessWithStorageMeta, asXL1BlockNumber, asXL1BlockRange,
|
|
7
|
+
} from '@xyo-network/xl1-protocol'
|
|
6
8
|
|
|
7
9
|
import { deepCalculateFramesFromRange } from '../../../block/index.ts'
|
|
8
10
|
import type { BalanceStepSummaryContext } from '../../../model/index.ts'
|
|
@@ -17,7 +19,7 @@ export async function balancesSummary(
|
|
|
17
19
|
const headResult = await context.store.chainMap.get(headHash)
|
|
18
20
|
const headBoundWitness = asBlockBoundWitnessWithStorageMeta(headResult, () => `Head block not found for hash: ${headHash}`, { required: true })
|
|
19
21
|
const rangeStart = asXL1BlockNumber(isDefined(context.windowSize) ? Math.max(headBoundWitness.block - context.windowSize + 1, 0) : 0)
|
|
20
|
-
const ranges = deepCalculateFramesFromRange([rangeStart,
|
|
22
|
+
const ranges = deepCalculateFramesFromRange(asXL1BlockRange([rangeStart, headBoundWitness.block], true))
|
|
21
23
|
const summaries = await Promise.all(ranges.map(range => balancesStepSummaryFromRange(context, range)))
|
|
22
24
|
const balances: Partial<Record<Address, bigint>> = {}
|
|
23
25
|
for (let summary of summaries) {
|
|
@@ -2,7 +2,9 @@ import type { Address } from '@xylabs/hex'
|
|
|
2
2
|
import { asAddress } from '@xylabs/hex'
|
|
3
3
|
import { spanRootAsync } from '@xylabs/telemetry'
|
|
4
4
|
import { isDefined } from '@xylabs/typeof'
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
asBlockBoundWitnessWithStorageMeta, asXL1BlockNumber, asXL1BlockRange,
|
|
7
|
+
} from '@xyo-network/xl1-protocol'
|
|
6
8
|
|
|
7
9
|
import { deepCalculateFramesFromRange } from '../../../block/index.ts'
|
|
8
10
|
import type { TransfersStepSummaryContext } from '../../../model/index.ts'
|
|
@@ -18,7 +20,7 @@ export async function transfersSummary(
|
|
|
18
20
|
const headResult = await context.store.chainMap.get(headHash)
|
|
19
21
|
const headBoundWitness = asBlockBoundWitnessWithStorageMeta(headResult, () => `Head block not found for hash: ${headHash}`, { required: true })
|
|
20
22
|
const rangeStart = asXL1BlockNumber(isDefined(context.windowSize) ? Math.max(headBoundWitness.block - context.windowSize + 1, 0) : 0)
|
|
21
|
-
const ranges = deepCalculateFramesFromRange([rangeStart,
|
|
23
|
+
const ranges = deepCalculateFramesFromRange(asXL1BlockRange([rangeStart, headBoundWitness.block], true))
|
|
22
24
|
const summaries = await Promise.all(ranges.map(range => transfersStepSummaryFromRange(context, range)))
|
|
23
25
|
const transfers: Partial<Record<Address, Partial<Record<Address, bigint>>>> = {}
|
|
24
26
|
for (let summary of summaries) {
|
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
StakeViewerMethods,
|
|
8
8
|
TransactionViewerMethods,
|
|
9
9
|
TransferBalanceViewerMethods,
|
|
10
|
-
} from '../../
|
|
10
|
+
} from '../../viewers/index.ts'
|
|
11
11
|
import type { NetworkStakeViewer } from './NetworkStake/index.ts'
|
|
12
12
|
import type { StepViewer } from './StepViewer.ts'
|
|
13
13
|
|
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
Address, Hash, Hex,
|
|
3
|
-
} from '@xylabs/hex'
|
|
4
|
-
import type { Promisable } from '@xylabs/promise'
|
|
5
|
-
import type { AttoXL1 } from '@xyo-network/xl1-protocol'
|
|
6
|
-
|
|
1
|
+
import type { AccountBalancesViewerMethods, AccountBalanceViewerMethods } from '../viewers/index.ts'
|
|
7
2
|
import type { ServiceInterface } from './Service.ts'
|
|
8
3
|
|
|
9
|
-
export interface
|
|
10
|
-
getBalanceValue: (address: Address) => bigint
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface AccountBalanceService extends AccountBalanceProvider, ServiceInterface {
|
|
14
|
-
getBalanceValues?: Record<Address, bigint>
|
|
15
|
-
|
|
16
|
-
getBalance(address: Address): Hex
|
|
17
|
-
getBalances(): Record<Address, Hex>
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface AccountBalanceServiceV2 extends ServiceInterface {
|
|
21
|
-
balances(head: Hash, addresses: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>
|
|
4
|
+
export interface AccountBalanceService extends AccountBalancesViewerMethods, AccountBalanceViewerMethods, ServiceInterface {
|
|
22
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChainContractViewer } from '../../
|
|
1
|
+
import type { ChainContractViewer } from '../../viewers/index.ts'
|
|
2
2
|
import type { BaseChainService } from './BaseChainService.ts'
|
|
3
3
|
import type { ChainStaker, ChainStakeViewer } from './interfaces/index.ts'
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NetworkStakeStepRewardViewer } from '../
|
|
1
|
+
import type { NetworkStakeStepRewardViewer } from '../viewers/index.ts'
|
|
2
2
|
import type { ServiceInterface } from './Service.ts'
|
|
3
3
|
|
|
4
4
|
export interface NetworkStakeStepRewardService extends NetworkStakeStepRewardViewer, ServiceInterface {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TimeSyncViewerMethods } from '../
|
|
1
|
+
import type { TimeSyncViewerMethods } from '../viewers/index.ts'
|
|
2
2
|
import type { ServiceInterface } from './Service.ts'
|
|
3
3
|
|
|
4
4
|
export interface TimeSyncService extends ServiceInterface, TimeSyncViewerMethods {}
|
|
@@ -86,8 +86,9 @@ export class SimpleXyoGatewayRunner implements XyoGatewayRunner {
|
|
|
86
86
|
), signedTx]
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
/** @deprecated use connectionInstance instead */
|
|
89
90
|
connection(): Promisable<XyoConnection> {
|
|
90
|
-
|
|
91
|
+
return this.gateway.connection()
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
removeDataLake(index: number): void {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise'
|
|
2
2
|
import type { ChainId, HydratedBlock } from '@xyo-network/xl1-protocol'
|
|
3
3
|
|
|
4
|
-
import type { AccountBalanceService
|
|
4
|
+
import type { AccountBalanceService } from '../../services/index.ts'
|
|
5
5
|
import type { HydratedBlockStateValidationError } from './error.ts'
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -16,9 +16,3 @@ export type HydratedBlockStateValidationFunction = (
|
|
|
16
16
|
chainId: ChainId,
|
|
17
17
|
services: { accountBalance: AccountBalanceService },
|
|
18
18
|
) => Promisable<HydratedBlockStateValidationError[]>
|
|
19
|
-
|
|
20
|
-
export type HydratedBlockStateValidationFunctionV2 = (
|
|
21
|
-
hydratedBlock: HydratedBlock,
|
|
22
|
-
chainId: ChainId,
|
|
23
|
-
services: { accountBalance: AccountBalanceServiceV2 },
|
|
24
|
-
) => Promisable<HydratedBlockStateValidationError[]>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Address, Hash } from '@xylabs/hex'
|
|
2
|
+
import type { Promisable } from '@xylabs/promise'
|
|
3
|
+
import type { Signed } from '@xyo-network/boundwitness-model'
|
|
4
|
+
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
5
|
+
import type {
|
|
6
|
+
AttoXL1,
|
|
7
|
+
BlockBoundWitness, TransactionBoundWitness, Transfer,
|
|
8
|
+
XL1BlockRange,
|
|
9
|
+
} from '@xyo-network/xl1-protocol'
|
|
10
|
+
|
|
11
|
+
export type AccountBalanceHistoryItem = [
|
|
12
|
+
WithStorageMeta<Signed<BlockBoundWitness>> /* block */,
|
|
13
|
+
WithStorageMeta<Signed<TransactionBoundWitness>> | null,
|
|
14
|
+
WithStorageMeta<Transfer>, /* the actual transfer payload */
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
export interface AccountBalancesViewerMethods {
|
|
18
|
+
accountBalances(address: Address[], head?: Hash): Promisable<Partial<Record<Address, AttoXL1>>>
|
|
19
|
+
accountBalances(address: Address[], range?: XL1BlockRange): Promisable<Partial<Record<Address, AttoXL1>>>
|
|
20
|
+
accountBalancesHistories(address: Address[], head?: Hash): Promisable<Partial<Record<Address, AccountBalanceHistoryItem[]>>>
|
|
21
|
+
accountBalancesHistories(address: Address[], range?: XL1BlockRange): Promisable<Partial<Record<Address, AccountBalanceHistoryItem[]>>>
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface AccountBalanceViewerMethods {
|
|
25
|
+
accountBalance(address: Address, head?: Hash): Promisable<AttoXL1>
|
|
26
|
+
accountBalance(address: Address, range?: XL1BlockRange): Promisable<AttoXL1>
|
|
27
|
+
accountBalanceHistory(address: Address, head?: Hash): Promisable<AccountBalanceHistoryItem[]>
|
|
28
|
+
accountBalanceHistory(address: Address, range?: XL1BlockRange): Promisable<AccountBalanceHistoryItem[]>
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface AccountBalanceViewer extends AccountBalanceViewerMethods {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
-
import type { Position } from '
|
|
4
|
+
import type { Position } from '../model/index.ts'
|
|
5
5
|
|
|
6
6
|
export interface StakeViewerMethods {
|
|
7
7
|
stakeById(id: number): Promisable<Position>
|
|
@@ -4,8 +4,8 @@ export * from './Chain.ts'
|
|
|
4
4
|
export * from './ChainContract.ts'
|
|
5
5
|
export * from './Fork.ts'
|
|
6
6
|
export * from './NetworkStakeStepReward.ts'
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
7
|
+
export * from './Stake.ts'
|
|
8
|
+
export * from './StakeTotals.ts'
|
|
9
9
|
export * from './StepStake.ts'
|
|
10
10
|
export * from './TimeSync.ts'
|
|
11
11
|
export * from './Transaction.ts'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/hex';
|
|
2
|
-
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { Signed } from '@xyo-network/boundwitness-model';
|
|
4
|
-
import type { WithStorageMeta } from '@xyo-network/payload-model';
|
|
5
|
-
import type { AttoXL1, BlockBoundWitness, TransactionBoundWitness, Transfer, XL1BlockRange } from '@xyo-network/xl1-protocol';
|
|
6
|
-
export type AccountBalanceHistoryItem = [
|
|
7
|
-
WithStorageMeta<Signed<BlockBoundWitness>>,
|
|
8
|
-
WithStorageMeta<Signed<TransactionBoundWitness>> | null,
|
|
9
|
-
WithStorageMeta<Transfer>
|
|
10
|
-
];
|
|
11
|
-
export interface AccountBalancesViewerMethods {
|
|
12
|
-
accountBalances(address: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>;
|
|
13
|
-
accountBalancesHistories(address: Address[]): Promisable<Partial<Record<Address, AccountBalanceHistoryItem[]>>>;
|
|
14
|
-
}
|
|
15
|
-
export interface AccountBalanceViewerMethods {
|
|
16
|
-
accountBalance(address: Address): Promisable<AttoXL1>;
|
|
17
|
-
accountBalanceHistory(address: Address, range?: XL1BlockRange): Promisable<AccountBalanceHistoryItem[]>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=AccountBalance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountBalance.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/AccountBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EACV,OAAO,EACP,iBAAiB,EAAE,uBAAuB,EAAE,QAAQ,EACpD,aAAa,EACd,MAAM,2BAA2B,CAAA;AAElC,MAAM,MAAM,yBAAyB,GAAG;IACtC,eAAe,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC1C,eAAe,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,GAAG,IAAI;IACvD,eAAe,CAAC,QAAQ,CAAC;CAC1B,CAAA;AAED,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO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ot":"","sources":["../../../../src/interfaces/viewers/Chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,WAAW,kBAAkB;IACjC,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;CAC/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChainContract.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/ChainContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,WAAW,0BAA0B;IACzC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACtC,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACjC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACtC,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAClC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACvC;AAED,MAAM,WAAW,mBAAoB,SAAQ,0BAA0B;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Fork.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/Fork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IACpE,WAAW,IAAI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AAC,MAAM,CAAC,CAAA;CACpG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StakeTotalsViewer.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StakeTotalsViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,wBAAwB;IACvC,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5B,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACnD,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACpD,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC7B,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACpD,SAAS,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC/B,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACvD;AAED,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StakeViewer.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StakeViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;IAC3C,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;IAElE,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IACtD,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA;IACvD,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA;CACxD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepStake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StepStake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,MAAM,WAAW,sBAAsB;IAErC,SAAS,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGtE,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CAClF;AAUD,MAAM,WAAW,eAAgB,SAAQ,sBAAsB;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSync.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/TimeSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAExE,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAE3F,8CAA8C;IAC9C,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAE7D,8CAA8C;IAC9C,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC,CAAA;IAEzE,6EAA6E;IAC7E,kBAAkB,IAAI,UAAU,CAAC,WAAW,CAAC,CAAA;CAC9C;AAED,MAAM,WAAW,cAAe,SAAQ,qBAAqB;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AAE1E,MAAM,WAAW,wBAAwB;IACvC,8BAA8B,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IACvH,gCAAgC,CAAC,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IAC7H,iBAAiB,CAAC,eAAe,EAAE,IAAI,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;CACvF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransferBalance.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/TransferBalance.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IAC3C,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACtD,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;IACzG,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IAC/D,0BAA0B,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;CAC5F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA"}
|
package/src/interfaces/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './viewers/index.ts'
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/hex'
|
|
2
|
-
import type { Promisable } from '@xylabs/promise'
|
|
3
|
-
import type { Signed } from '@xyo-network/boundwitness-model'
|
|
4
|
-
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
5
|
-
import type {
|
|
6
|
-
AttoXL1,
|
|
7
|
-
BlockBoundWitness, TransactionBoundWitness, Transfer,
|
|
8
|
-
XL1BlockRange,
|
|
9
|
-
} from '@xyo-network/xl1-protocol'
|
|
10
|
-
|
|
11
|
-
export type AccountBalanceHistoryItem = [
|
|
12
|
-
WithStorageMeta<Signed<BlockBoundWitness>> /* block */,
|
|
13
|
-
WithStorageMeta<Signed<TransactionBoundWitness>> | null,
|
|
14
|
-
WithStorageMeta<Transfer>, /* the actual transfer payload */
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
export interface AccountBalancesViewerMethods {
|
|
18
|
-
accountBalances(address: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>
|
|
19
|
-
accountBalancesHistories(address: Address[]): Promisable<Partial<Record<Address, AccountBalanceHistoryItem[]>>>
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface AccountBalanceViewerMethods {
|
|
23
|
-
accountBalance(address: Address): Promisable<AttoXL1>
|
|
24
|
-
accountBalanceHistory(address: Address, range?: XL1BlockRange): Promisable<AccountBalanceHistoryItem[]>
|
|
25
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|