@xyo-network/xl1-protocol 1.12.66 → 1.12.67
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/block/BlockBoundWitness.d.ts +1 -1
- package/dist/neutral/block/BlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/fields/ChainReference.d.ts +1 -1
- package/dist/neutral/fields/ChainReference.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.map +1 -1
- package/dist/neutral/interfaces/index.d.ts +1 -1
- package/dist/neutral/interfaces/index.d.ts.map +1 -1
- package/dist/neutral/interfaces/viewers/AccountBalance.d.ts.map +1 -0
- package/dist/neutral/interfaces/viewers/Block.d.ts.map +1 -0
- package/dist/neutral/interfaces/{view → viewers}/Chain.d.ts +1 -1
- package/dist/neutral/interfaces/viewers/Chain.d.ts.map +1 -0
- package/dist/neutral/interfaces/viewers/ChainContract.d.ts.map +1 -0
- package/dist/neutral/interfaces/{view → viewers}/Fork.d.ts +2 -2
- package/dist/neutral/interfaces/viewers/Fork.d.ts.map +1 -0
- package/dist/neutral/interfaces/viewers/NetworkStakeStepReward.d.ts +26 -0
- package/dist/neutral/interfaces/viewers/NetworkStakeStepReward.d.ts.map +1 -0
- package/dist/neutral/interfaces/viewers/NetworkStakeStepRewardViewer.d.ts +35 -0
- package/dist/neutral/interfaces/viewers/NetworkStakeStepRewardViewer.d.ts.map +1 -0
- package/dist/neutral/interfaces/viewers/Stake.d.ts +11 -0
- package/dist/neutral/interfaces/viewers/Stake.d.ts.map +1 -0
- package/dist/neutral/interfaces/viewers/StakeTotalsViewer.d.ts +12 -0
- package/dist/neutral/interfaces/viewers/StakeTotalsViewer.d.ts.map +1 -0
- package/dist/neutral/interfaces/{view/Stake.d.ts → viewers/StakeViewer.d.ts} +3 -11
- package/dist/neutral/interfaces/viewers/StakeViewer.d.ts.map +1 -0
- package/dist/neutral/interfaces/viewers/StepStake.d.ts +8 -0
- package/dist/neutral/interfaces/viewers/StepStake.d.ts.map +1 -0
- package/dist/neutral/interfaces/viewers/TimeSync.d.ts.map +1 -0
- package/dist/neutral/interfaces/viewers/Transaction.d.ts.map +1 -0
- package/dist/neutral/interfaces/viewers/TransferBalance.d.ts.map +1 -0
- package/dist/neutral/interfaces/{view → viewers}/index.d.ts +3 -2
- package/dist/neutral/interfaces/viewers/index.d.ts.map +1 -0
- package/dist/neutral/model/BlockRange.d.ts +2 -0
- package/dist/neutral/model/BlockRange.d.ts.map +1 -0
- package/dist/neutral/model/ChainId.d.ts +3 -0
- package/dist/neutral/model/ChainId.d.ts.map +1 -0
- package/dist/neutral/model/RewardShare.d.ts +2 -0
- package/dist/neutral/model/RewardShare.d.ts.map +1 -0
- package/dist/neutral/model/StakeShare.d.ts +2 -0
- package/dist/neutral/model/StakeShare.d.ts.map +1 -0
- package/dist/neutral/model/StepHash.d.ts +10 -0
- package/dist/neutral/model/StepHash.d.ts.map +1 -0
- package/dist/neutral/model/StepIdentity.d.ts +12 -0
- package/dist/neutral/model/StepIdentity.d.ts.map +1 -0
- package/dist/neutral/model/index.d.ts +6 -0
- package/dist/neutral/model/index.d.ts.map +1 -0
- package/dist/neutral/provider/XyoSigner.d.ts +1 -1
- package/dist/neutral/provider/XyoSigner.d.ts.map +1 -1
- package/dist/neutral/provider/XyoViewer.d.ts +2 -2
- package/dist/neutral/provider/XyoViewer.d.ts.map +1 -1
- package/dist/neutral/provider/XyoWallet.d.ts +1 -1
- package/dist/neutral/provider/XyoWallet.d.ts.map +1 -1
- package/dist/neutral/services/Chain/BaseChainService.d.ts +1 -1
- package/dist/neutral/services/Chain/BaseChainService.d.ts.map +1 -1
- package/dist/neutral/services/Chain/interfaces/ChainStakeViewer.d.ts +2 -2
- package/dist/neutral/services/Chain/interfaces/ChainStakeViewer.d.ts.map +1 -1
- package/dist/neutral/services/ChainIterator/ChainIteratorService.d.ts +1 -1
- package/dist/neutral/services/ChainIterator/ChainIteratorService.d.ts.map +1 -1
- package/dist/neutral/validation/block/BlockValidationFunction.d.ts +1 -1
- package/dist/neutral/validation/block/BlockValidationFunction.d.ts.map +1 -1
- package/dist/neutral/validation/block/HydratedBlockStateValidationFunction.d.ts +1 -1
- package/dist/neutral/validation/block/HydratedBlockStateValidationFunction.d.ts.map +1 -1
- package/dist/neutral/validation/block/HydratedBlockValidationFunction.d.ts +1 -1
- package/dist/neutral/validation/block/HydratedBlockValidationFunction.d.ts.map +1 -1
- package/dist/neutral/validation/block/error.d.ts +1 -1
- package/dist/neutral/validation/block/error.d.ts.map +1 -1
- package/dist/neutral/validation/transaction/HydratedTransactionStateValidationFunction.d.ts +1 -1
- package/dist/neutral/validation/transaction/HydratedTransactionStateValidationFunction.d.ts.map +1 -1
- package/dist/neutral/validation/transaction/HydratedTransactionValidationFunction.d.ts +1 -1
- package/dist/neutral/validation/transaction/HydratedTransactionValidationFunction.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/block/BlockBoundWitness.ts +1 -1
- package/src/fields/ChainReference.ts +1 -1
- package/src/index.ts +1 -1
- package/src/interfaces/index.ts +1 -1
- package/src/interfaces/{view → viewers}/Chain.ts +1 -1
- package/src/interfaces/{view → viewers}/Fork.ts +2 -2
- package/src/interfaces/{view → viewers}/NetworkStakeStepReward.ts +13 -16
- package/src/interfaces/viewers/NetworkStakeStepRewardViewer.ts +70 -0
- package/src/interfaces/{view → viewers}/Stake.ts +0 -9
- package/src/interfaces/viewers/StakeTotalsViewer.ts +12 -0
- package/src/interfaces/viewers/StakeViewer.ts +13 -0
- package/src/interfaces/{view → viewers}/StepStake.ts +3 -3
- package/src/interfaces/{view → viewers}/index.ts +3 -2
- package/src/model/BlockRange.ts +1 -0
- package/src/model/ChainId.ts +3 -0
- package/src/model/RewardShare.ts +1 -0
- package/src/model/StakeShare.ts +1 -0
- package/src/model/StepHash.ts +10 -0
- package/src/model/StepIdentity.ts +12 -0
- package/src/model/index.ts +5 -0
- package/src/payload/elevatable/Bridge/spec/Bridge.test.ts +1 -1
- package/src/provider/XyoSigner.ts +1 -1
- package/src/provider/XyoViewer.ts +3 -3
- package/src/provider/XyoWallet.ts +1 -1
- package/src/services/Chain/BaseChainService.ts +1 -1
- package/src/services/Chain/interfaces/ChainStakeViewer.ts +2 -2
- package/src/services/ChainIterator/ChainIteratorService.ts +1 -1
- package/src/validation/block/BlockValidationFunction.ts +1 -1
- package/src/validation/block/HydratedBlockStateValidationFunction.ts +1 -1
- package/src/validation/block/HydratedBlockValidationFunction.ts +1 -1
- package/src/validation/block/error.ts +1 -1
- package/src/validation/transaction/HydratedTransactionStateValidationFunction.ts +1 -1
- package/src/validation/transaction/HydratedTransactionValidationFunction.ts +1 -1
- package/dist/neutral/interfaces/view/AccountBalance.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/Block.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/Chain.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/ChainContract.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/ChainStake.d.ts +0 -10
- package/dist/neutral/interfaces/view/ChainStake.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/Fork.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/NetworkStakeStepReward.d.ts +0 -29
- package/dist/neutral/interfaces/view/NetworkStakeStepReward.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/Stake.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/StakeTotals.d.ts +0 -16
- package/dist/neutral/interfaces/view/StakeTotals.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/StepStake.d.ts +0 -8
- package/dist/neutral/interfaces/view/StepStake.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/TimeSync.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/Transaction.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/TransferBalance.d.ts.map +0 -1
- package/dist/neutral/interfaces/view/index.d.ts.map +0 -1
- package/dist/neutral/model.d.ts +0 -9
- package/dist/neutral/model.d.ts.map +0 -1
- package/src/interfaces/view/ChainStake.ts +0 -9
- package/src/interfaces/view/StakeTotals.ts +0 -26
- package/src/model.ts +0 -15
- /package/dist/neutral/interfaces/{view → viewers}/AccountBalance.d.ts +0 -0
- /package/dist/neutral/interfaces/{view → viewers}/Block.d.ts +0 -0
- /package/dist/neutral/interfaces/{view → viewers}/ChainContract.d.ts +0 -0
- /package/dist/neutral/interfaces/{view → viewers}/TimeSync.d.ts +0 -0
- /package/dist/neutral/interfaces/{view → viewers}/Transaction.d.ts +0 -0
- /package/dist/neutral/interfaces/{view → viewers}/TransferBalance.d.ts +0 -0
- /package/src/interfaces/{view → viewers}/AccountBalance.ts +0 -0
- /package/src/interfaces/{view → viewers}/Block.ts +0 -0
- /package/src/interfaces/{view → viewers}/ChainContract.ts +0 -0
- /package/src/interfaces/{view → viewers}/TimeSync.ts +0 -0
- /package/src/interfaces/{view → viewers}/Transaction.ts +0 -0
- /package/src/interfaces/{view → viewers}/TransferBalance.ts +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex'
|
|
2
|
-
import type { Promisable } from '@xylabs/promise'
|
|
3
2
|
|
|
4
3
|
export type Stake = {
|
|
5
4
|
// the block number when the stake was added
|
|
@@ -17,11 +16,3 @@ export type Stake = {
|
|
|
17
16
|
// the block number when the stake was withdrawn (set to 0 if not withdrawn)
|
|
18
17
|
withdrawBlock: number
|
|
19
18
|
}
|
|
20
|
-
|
|
21
|
-
export interface StakeViewInterface {
|
|
22
|
-
stakeById(id: number): Promisable<Stake>
|
|
23
|
-
stakeByStaker(staker: Address, slot: number): Promisable<Stake>
|
|
24
|
-
stakedByStaker(staker: Address): Promisable<Address[]>
|
|
25
|
-
stakesByStaked(staked: Address): Promisable<Stake[]>
|
|
26
|
-
stakesByStaker(staker: Address): Promisable<Stake[]>
|
|
27
|
-
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
|
+
import type { Promisable } from '@xylabs/promise'
|
|
3
|
+
|
|
4
|
+
export interface StakeTotalsViewer {
|
|
5
|
+
active(): Promisable<bigint>
|
|
6
|
+
activeByStaked(staked: Address): Promisable<bigint>
|
|
7
|
+
activeByStaker(address: Address): Promisable<bigint>
|
|
8
|
+
pending(): Promisable<bigint>
|
|
9
|
+
pendingByStaker(staker: Address): Promisable<bigint>
|
|
10
|
+
withdrawn(): Promisable<bigint>
|
|
11
|
+
withdrawnByStaker(staker: Address): Promisable<bigint>
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
|
+
import type { Promisable } from '@xylabs/promise'
|
|
3
|
+
|
|
4
|
+
import type { Stake } from './Stake.ts'
|
|
5
|
+
|
|
6
|
+
export interface StakeViewer {
|
|
7
|
+
stakeById(id: number): Promisable<Stake>
|
|
8
|
+
stakeByStaker(staker: Address, slot: number): Promisable<Stake>
|
|
9
|
+
/* @deprecated use stakesByStaker */
|
|
10
|
+
stakedByStaker(staker: Address): Promisable<Address[]>
|
|
11
|
+
stakesByStaked(staked: Address): Promisable<Stake[]>
|
|
12
|
+
stakesByStaker(staker: Address): Promisable<Stake[]>
|
|
13
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
-
import type {
|
|
4
|
+
import type { StepIdentity } from '../../model/index.ts'
|
|
5
5
|
|
|
6
6
|
export interface StepStakeViewInterface {
|
|
7
7
|
// this is the prorated stake for all addresses in the step
|
|
8
|
-
stepStake: (step:
|
|
8
|
+
stepStake: (step: StepIdentity) => Promisable<Record<Address, bigint>>
|
|
9
9
|
|
|
10
10
|
// this is the prorated stake for a specific address in the step
|
|
11
|
-
stepStakeForAddress: (address: Address, step:
|
|
11
|
+
stepStakeForAddress: (address: Address, step: StepIdentity) => Promisable<bigint>
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/* Prorated stake is the amount of stake that is allocated to a specific step
|
|
@@ -2,11 +2,12 @@ export * from './AccountBalance.ts'
|
|
|
2
2
|
export * from './Block.ts'
|
|
3
3
|
export * from './Chain.ts'
|
|
4
4
|
export * from './ChainContract.ts'
|
|
5
|
-
export * from './ChainStake.ts'
|
|
6
5
|
export * from './Fork.ts'
|
|
7
6
|
export * from './NetworkStakeStepReward.ts'
|
|
7
|
+
export * from './NetworkStakeStepRewardViewer.ts'
|
|
8
8
|
export * from './Stake.ts'
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './StakeTotalsViewer.ts'
|
|
10
|
+
export * from './StakeViewer.ts'
|
|
10
11
|
export * from './StepStake.ts'
|
|
11
12
|
export * from './TimeSync.ts'
|
|
12
13
|
export * from './Transaction.ts'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type BlockRange = [number, number]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RewardShare = [bigint, bigint] // [share, total]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type StakeShare = [bigint, bigint] // [share, total]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex'
|
|
2
|
+
import type { Brand } from '@xylabs/typeof'
|
|
3
|
+
|
|
4
|
+
export interface StepHash {
|
|
5
|
+
block: Hash
|
|
6
|
+
step: number
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// this string is the hash and the step separated by a pipe
|
|
10
|
+
export type StepHashString = Brand<string, { readonly __stepHashString: true }>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Brand } from '@xylabs/typeof'
|
|
2
|
+
|
|
3
|
+
export interface StepIdentity {
|
|
4
|
+
block: number
|
|
5
|
+
step: number
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/** @deprecated use StepIdentity instead */
|
|
9
|
+
export interface StepContext extends StepIdentity {}
|
|
10
|
+
|
|
11
|
+
// this string is the block and the step separated by a pipe
|
|
12
|
+
export type StepIdentityString = Brand<string, { readonly __stepIdentityString: true }>
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
describe, expect, it,
|
|
4
4
|
} from 'vitest'
|
|
5
5
|
|
|
6
|
-
import type { ChainId } from '../../../../model.ts'
|
|
6
|
+
import type { ChainId } from '../../../../model/index.ts'
|
|
7
7
|
import { AttoXL1ConvertFactor } from '../../../../xl1/index.ts'
|
|
8
8
|
import type { BridgeDestinationObservationFields } from '../BridgeDestinationObservation.ts'
|
|
9
9
|
import type { BridgeIntentFields } from '../BridgeIntent.ts'
|
|
@@ -4,7 +4,7 @@ import type { Signed, UnsignedBoundWitness } from '@xyo-network/boundwitness-mod
|
|
|
4
4
|
import type { Payload } from '@xyo-network/payload-model'
|
|
5
5
|
|
|
6
6
|
import type { AllowedBlockPayload } from '../block/index.ts'
|
|
7
|
-
import type { ChainId } from '../model.ts'
|
|
7
|
+
import type { ChainId } from '../model/index.ts'
|
|
8
8
|
import type { TransactionBoundWitness, TransactionFeesBigInt } from '../transaction/index.ts'
|
|
9
9
|
|
|
10
10
|
export interface XyoSigner {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
AccountBalanceViewInterface, BlockViewInterface, ChainViewInterface,
|
|
3
|
-
|
|
3
|
+
ForkViewer,
|
|
4
4
|
NetworkStakeStepRewardViewInterface,
|
|
5
|
-
|
|
5
|
+
StakeViewer,
|
|
6
6
|
TransactionViewInterface, TransferBalanceViewInterface,
|
|
7
7
|
} from '../interfaces/index.ts'
|
|
8
8
|
|
|
9
9
|
export interface XyoViewer extends AccountBalanceViewInterface, TransferBalanceViewInterface, NetworkStakeStepRewardViewInterface,
|
|
10
|
-
ChainViewInterface, BlockViewInterface, TransactionViewInterface,
|
|
10
|
+
ChainViewInterface, BlockViewInterface, TransactionViewInterface, StakeViewer, ForkViewer {}
|
|
@@ -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 { ChainId } from '../model.ts'
|
|
4
|
+
import type { ChainId } from '../model/index.ts'
|
|
5
5
|
|
|
6
6
|
/** @deprecated - use XyoClient instead */
|
|
7
7
|
export interface XyoWallet {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StakeTotalsViewer } from '../../../interfaces/index.ts'
|
|
2
2
|
import type { ChainContractViewer } from './ChainContractViewer.ts'
|
|
3
3
|
|
|
4
|
-
export interface ChainStakeViewer extends ChainContractViewer,
|
|
4
|
+
export interface ChainStakeViewer extends ChainContractViewer, StakeTotalsViewer {
|
|
5
5
|
|
|
6
6
|
}
|
|
@@ -4,7 +4,7 @@ import type { Hash } from '@xylabs/hex'
|
|
|
4
4
|
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
5
5
|
|
|
6
6
|
import type { BlockBoundWitness } from '../../block/index.ts'
|
|
7
|
-
import type { ChainId } from '../../model.ts'
|
|
7
|
+
import type { ChainId } from '../../model/index.ts'
|
|
8
8
|
import type { IterableRepository, ReadRepository } from '../../repository/index.ts'
|
|
9
9
|
import type { ChainIteratorServiceEventData } from './ChainIteratorServiceEventData.ts'
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise'
|
|
2
2
|
|
|
3
3
|
import type { BlockBoundWitness } from '../../block/index.ts'
|
|
4
|
-
import type { ChainId } from '../../model.ts'
|
|
4
|
+
import type { ChainId } from '../../model/index.ts'
|
|
5
5
|
import type { BlockValidationError } from './error.ts'
|
|
6
6
|
|
|
7
7
|
export type BlockValidatorFunction = (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise'
|
|
2
2
|
|
|
3
3
|
import type { HydratedBlock } from '../../block/index.ts'
|
|
4
|
-
import type { ChainId } from '../../model.ts'
|
|
4
|
+
import type { ChainId } from '../../model/index.ts'
|
|
5
5
|
import type { AccountBalanceService, AccountBalanceServiceV2 } from '../../services/index.ts'
|
|
6
6
|
import type { HydratedBlockStateValidationError } from './error.ts'
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise'
|
|
2
2
|
|
|
3
3
|
import type { HydratedBlock } from '../../block/index.ts'
|
|
4
|
-
import type { ChainId } from '../../model.ts'
|
|
4
|
+
import type { ChainId } from '../../model/index.ts'
|
|
5
5
|
import type { HydratedBlockValidationError } from './error.ts'
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex'
|
|
2
2
|
|
|
3
3
|
import { type BlockBoundWitness, type HydratedBlock } from '../../block/index.ts'
|
|
4
|
-
import type { ChainId } from '../../model.ts'
|
|
4
|
+
import type { ChainId } from '../../model/index.ts'
|
|
5
5
|
import { isValidationError, ValidationError } from '../error.ts'
|
|
6
6
|
|
|
7
7
|
export class BlockValidationError extends ValidationError<BlockBoundWitness> {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise'
|
|
2
2
|
import type { ReadArchivist } from '@xyo-network/archivist-model'
|
|
3
3
|
|
|
4
|
-
import type { ChainId } from '../../model.ts'
|
|
4
|
+
import type { ChainId } from '../../model/index.ts'
|
|
5
5
|
import type { HydratedTransactionWithStorageMeta, TransactionBoundWitness } from '../../transaction/index.ts'
|
|
6
6
|
import type { HydratedTransactionValidationError } from './error.ts'
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise'
|
|
2
2
|
|
|
3
|
-
import type { ChainId } from '../../model.ts'
|
|
3
|
+
import type { ChainId } from '../../model/index.ts'
|
|
4
4
|
import type { HydratedTransactionWithStorageMeta, TransactionBoundWitness } from '../../transaction/index.ts'
|
|
5
5
|
import type { HydratedTransactionValidationError } from './error.ts'
|
|
6
6
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountBalance.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/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,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,MAAM,yBAAyB,GAAG,CAAC,IAAI,EAAc,IAAI,EAAoB,QAAQ,CAAmC,CAAA;AAE9H,MAAM,WAAW,4BAA4B;IAC3C,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,GAAG,UAAU,CAAC,yBAAyB,EAAE,CAAC,CAAA;CACjF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/Block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACzD,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACpE,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,aAAa,EAAE,CAAC,CAAA;IAErE,YAAY,IAAI,UAAU,CAAC,aAAa,CAAC,CAAA;IACzC,gBAAgB,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IACpC,kBAAkB,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;CACzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chain.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/Chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,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/view/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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface ChainStakeViewInterface {
|
|
2
|
-
active(): Promise<bigint>;
|
|
3
|
-
activeByAddressStaked(address: string): Promise<bigint>;
|
|
4
|
-
activeByStaker(address: string): Promise<bigint>;
|
|
5
|
-
pending(): Promise<bigint>;
|
|
6
|
-
pendingByStaker(staker: string): Promise<bigint>;
|
|
7
|
-
withdrawn(): Promise<bigint>;
|
|
8
|
-
withdrawnByStaker(staker: string): Promise<bigint>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=ChainStake.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChainStake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/ChainStake.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACzB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACvD,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAChD,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC1B,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAChD,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC5B,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CACnD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Fork.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/Fork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,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,UAAU,CAAC,WAAW,CAAC,CAAA;CACvC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/hex';
|
|
2
|
-
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
export interface StepContext {
|
|
4
|
-
block: number;
|
|
5
|
-
step: number;
|
|
6
|
-
}
|
|
7
|
-
export interface NetworkStakeStepAddressRewardViewInterface {
|
|
8
|
-
networkStakeStepRewardAddressHistory(address: Address): Promisable<Record<Address, bigint>>;
|
|
9
|
-
networkStakeStepRewardAddressReward(context: StepContext, address: Address): Promisable<Record<Address, bigint>>;
|
|
10
|
-
networkStakeStepRewardAddressShare(context: StepContext, address: Address): Promisable<[/* address shares */ bigint, /* total shares */ bigint]>;
|
|
11
|
-
networkStakeStepRewardWeightForAddress(context: StepContext, address: Address): Promisable<bigint>;
|
|
12
|
-
}
|
|
13
|
-
export interface NetworkStakeStepPoolRewardViewInterface {
|
|
14
|
-
networkStakeStepRewardPoolRewards(context: StepContext): Promisable<Record<Address, bigint>>;
|
|
15
|
-
networkStakeStepRewardPoolShares(context: StepContext): Promisable<Record<Address, bigint>>;
|
|
16
|
-
}
|
|
17
|
-
export interface NetworkStakeStepRewardPositionViewInterface {
|
|
18
|
-
networkStakeStepRewardPositionWeight(context: StepContext, position: number): Promisable<bigint>;
|
|
19
|
-
networkStakeStepRewardPotentialPositionLoss(context: StepContext, position: number): Promisable<bigint>;
|
|
20
|
-
}
|
|
21
|
-
export interface NetworkStakeStepRewardViewInterface extends NetworkStakeStepPoolRewardViewInterface, NetworkStakeStepAddressRewardViewInterface, NetworkStakeStepRewardPositionViewInterface {
|
|
22
|
-
networkStakeStepRewardClaimedByAddress(address: Address): Promisable<bigint>;
|
|
23
|
-
networkStakeStepRewardForStep(context: StepContext): Promisable<bigint>;
|
|
24
|
-
networkStakeStepRewardForStepForPosition(context: StepContext, position: number): Promisable<[bigint, bigint]>;
|
|
25
|
-
networkStakeStepRewardRandomizer(context: StepContext): Promisable<bigint>;
|
|
26
|
-
networkStakeStepRewardStakerCount(context: StepContext): Promisable<number>;
|
|
27
|
-
networkStakeStepRewardUnclaimedByAddress(address: Address): Promisable<bigint>;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=NetworkStakeStepReward.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkStakeStepReward.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/NetworkStakeStepReward.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,0CAA0C;IAEzD,oCAAoC,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAG3F,mCAAmC,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGhH,kCAAkC,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC,oBAAoB,CAAA,MAAM,EAAE,kBAAkB,CAAA,MAAM,CAAC,CAAC,CAAA;IAG9I,sCAAsC,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACnG;AAED,MAAM,WAAW,uCAAuC;IAGtD,iCAAiC,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAG5F,gCAAgC,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;CAC5F;AAED,MAAM,WAAW,2CAA2C;IAE1D,oCAAoC,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGhG,2CAA2C,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACxG;AAED,MAAM,WAAW,mCAAoC,SACnD,uCAAuC,EACvC,0CAA0C,EAC1C,2CAA2C;IAE3C,sCAAsC,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAG5E,6BAA6B,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGvE,wCAAwC,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAG9G,gCAAgC,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAG1E,iCAAiC,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAE3E,wCAAwC,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CAC/E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/Stake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,MAAM,KAAK,GAAG;IAElB,QAAQ,EAAE,MAAM,CAAA;IAEhB,MAAM,EAAE,MAAM,CAAA;IAEd,EAAE,EAAE,MAAM,CAAA;IAEV,WAAW,EAAE,MAAM,CAAA;IAEnB,MAAM,EAAE,OAAO,CAAA;IAEf,MAAM,EAAE,OAAO,CAAA;IAEf,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;IACxC,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;IAC/D,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IACtD,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA;IACpD,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA;CACrD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/hex';
|
|
2
|
-
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
export interface StakeScope {
|
|
4
|
-
staked?: Address;
|
|
5
|
-
staker?: Address;
|
|
6
|
-
status?: 'active' | 'pending' | 'withdrawn' | 'all';
|
|
7
|
-
type?: 'all' | 'network' | 'address';
|
|
8
|
-
}
|
|
9
|
-
export interface StakeTotalsViewInterface {
|
|
10
|
-
stakeAmount(scope?: StakeScope): Promisable<[bigint, number]>;
|
|
11
|
-
stakeCount(scope?: StakeScope): Promisable<[number, number]>;
|
|
12
|
-
stakedCount(scope?: StakeScope): Promisable<[number, number]>;
|
|
13
|
-
stakerCount(scope?: StakeScope): Promisable<[number, number]>;
|
|
14
|
-
stakes(scope?: StakeScope): Promisable<[bigint, number]>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=StakeTotals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StakeTotals.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/StakeTotals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,KAAK,CAAA;IACnD,IAAI,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,CAAA;CACrC;AAED,MAAM,WAAW,wBAAwB;IAEvC,WAAW,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAe,MAAM,CAA6B,CAAC,CAAA;IAGtG,UAAU,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAe,MAAM,CAA6B,CAAC,CAAA;IAGrG,WAAW,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAe,MAAM,CAA6B,CAAC,CAAA;IAGtG,WAAW,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAe,MAAM,CAA6B,CAAC,CAAA;IAGtG,MAAM,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAe,MAAM,CAA6B,CAAC,CAAA;CAClG"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/hex';
|
|
2
|
-
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { CompletedStep } from '../../model.ts';
|
|
4
|
-
export interface StepStakeViewInterface {
|
|
5
|
-
stepStake: (step: CompletedStep) => Promisable<Record<Address, bigint>>;
|
|
6
|
-
stepStakeForAddress: (address: Address, step: CompletedStep) => Promisable<bigint>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=StepStake.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepStake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/StepStake.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,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD,MAAM,WAAW,sBAAsB;IAErC,SAAS,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGvE,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CACnF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimeSync.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/TimeSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAErE,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;CAC9D;AAED,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,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/view/TransferBalance.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,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,MAAM,0BAA0B,GAAG,CAAC,IAAI,EAAc,IAAI,EAAoB,QAAQ,CAAmC,CAAA;AAC/H,MAAM,MAAM,YAAY,GAAG,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAA,OAAO,CAAC,CAAA;AAEhE,MAAM,WAAW,6BAA6B;IAC5C,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;IACpG,yBAAyB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,0BAA0B,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;IAClI,oBAAoB,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7G,6BAA6B,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,0BAA0B,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;CAC5I;AAED,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACtD,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;IAClF,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/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA"}
|
package/dist/neutral/model.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAAE,IAAI,EAAE,GAAG,EACnB,MAAM,aAAa,CAAA;AAEpB,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,GAAG,CAAA;AAEnC,sCAAsC;AACtC,MAAM,MAAM,KAAK,GAAG,OAAO,CAAA;AAE3B,MAAM,MAAM,aAAa,GAAG;IAE1B,IAAI;IAEJ,MAAM;CACP,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface ChainStakeViewInterface {
|
|
2
|
-
active(): Promise<bigint>
|
|
3
|
-
activeByAddressStaked(address: string): Promise<bigint>
|
|
4
|
-
activeByStaker(address: string): Promise<bigint>
|
|
5
|
-
pending(): Promise<bigint>
|
|
6
|
-
pendingByStaker(staker: string): Promise<bigint>
|
|
7
|
-
withdrawn(): Promise<bigint>
|
|
8
|
-
withdrawnByStaker(staker: string): Promise<bigint>
|
|
9
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Address } from '@xylabs/hex'
|
|
2
|
-
import type { Promisable } from '@xylabs/promise'
|
|
3
|
-
|
|
4
|
-
export interface StakeScope {
|
|
5
|
-
staked?: Address
|
|
6
|
-
staker?: Address
|
|
7
|
-
status?: 'active' | 'pending' | 'withdrawn' | 'all'
|
|
8
|
-
type?: 'all' | 'network' | 'address'
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface StakeTotalsViewInterface {
|
|
12
|
-
// the total amount that is staked in a given scope
|
|
13
|
-
stakeAmount(scope?: StakeScope): Promisable<[bigint /* amount */, number /* external block number */]>
|
|
14
|
-
|
|
15
|
-
// the total number of stakes in a given scope
|
|
16
|
-
stakeCount(scope?: StakeScope): Promisable<[number /* amount */, number /* external block number */]>
|
|
17
|
-
|
|
18
|
-
// the total number of unique addresses staked in a given scope
|
|
19
|
-
stakedCount(scope?: StakeScope): Promisable<[number /* amount */, number /* external block number */]>
|
|
20
|
-
|
|
21
|
-
// the total number of unique stakers in a given scope
|
|
22
|
-
stakerCount(scope?: StakeScope): Promisable<[number /* amount */, number /* external block number */]>
|
|
23
|
-
|
|
24
|
-
// the total number of unique stake positions in a given scope
|
|
25
|
-
stakes(scope?: StakeScope): Promisable<[bigint /* amount */, number /* external block number */]>
|
|
26
|
-
}
|
package/src/model.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
Address, Hash, Hex,
|
|
3
|
-
} from '@xylabs/hex'
|
|
4
|
-
|
|
5
|
-
export type ChainId = Address | Hex
|
|
6
|
-
|
|
7
|
-
/** @deprecated use ChainId instead */
|
|
8
|
-
export type Chain = ChainId
|
|
9
|
-
|
|
10
|
-
export type CompletedStep = [
|
|
11
|
-
/* Hash of the block whose previous hash is the last item in the step */
|
|
12
|
-
Hash,
|
|
13
|
-
/* Step number [index into StepSizes] */
|
|
14
|
-
number,
|
|
15
|
-
]
|
|
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
|