@xyo-network/xl1-protocol 1.12.8 → 1.12.10
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/constants/addresses.d.ts +5 -0
- package/dist/neutral/constants/addresses.d.ts.map +1 -0
- package/dist/neutral/constants/index.d.ts +1 -1
- package/dist/neutral/constants/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +7 -3
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/interfaces/index.d.ts +1 -11
- package/dist/neutral/interfaces/index.d.ts.map +1 -1
- package/dist/neutral/interfaces/{AccountBalance.d.ts → view/AccountBalance.d.ts} +4 -4
- package/dist/neutral/interfaces/view/AccountBalance.d.ts.map +1 -0
- package/dist/neutral/interfaces/{Block.d.ts → view/Block.d.ts} +2 -2
- package/dist/neutral/interfaces/view/Block.d.ts.map +1 -0
- package/dist/neutral/interfaces/view/Bridge.d.ts +9 -0
- package/dist/neutral/interfaces/view/Bridge.d.ts.map +1 -0
- package/dist/neutral/interfaces/view/Chain.d.ts +6 -0
- package/dist/neutral/interfaces/view/Chain.d.ts.map +1 -0
- package/dist/neutral/interfaces/{ChainContract.d.ts → view/ChainContract.d.ts} +1 -1
- package/dist/neutral/interfaces/view/ChainContract.d.ts.map +1 -0
- package/dist/neutral/interfaces/{ChainStake.d.ts → view/ChainStake.d.ts} +1 -1
- package/dist/neutral/interfaces/view/ChainStake.d.ts.map +1 -0
- package/dist/neutral/interfaces/{Fork.d.ts → view/Fork.d.ts} +1 -1
- package/dist/neutral/interfaces/view/Fork.d.ts.map +1 -0
- package/dist/neutral/interfaces/{NetworkStakeStepReward.d.ts → view/NetworkStakeStepReward.d.ts} +3 -3
- package/dist/neutral/interfaces/view/NetworkStakeStepReward.d.ts.map +1 -0
- package/dist/neutral/interfaces/{Stake.d.ts → view/Stake.d.ts} +1 -1
- package/dist/neutral/interfaces/view/Stake.d.ts.map +1 -0
- package/dist/neutral/interfaces/{StakeTotals.d.ts → view/StakeTotals.d.ts} +1 -1
- package/dist/neutral/interfaces/view/StakeTotals.d.ts.map +1 -0
- package/dist/neutral/interfaces/{StepStake.d.ts → view/StepStake.d.ts} +2 -2
- package/dist/neutral/interfaces/view/StepStake.d.ts.map +1 -0
- package/dist/neutral/interfaces/view/TimeSync.d.ts +6 -0
- package/dist/neutral/interfaces/view/TimeSync.d.ts.map +1 -0
- package/dist/neutral/interfaces/{Transaction.d.ts → view/Transaction.d.ts} +2 -2
- package/dist/neutral/interfaces/view/Transaction.d.ts.map +1 -0
- package/dist/neutral/interfaces/view/index.d.ts +14 -0
- package/dist/neutral/interfaces/view/index.d.ts.map +1 -0
- package/dist/neutral/provider/XyoViewer.d.ts +2 -2
- package/dist/neutral/provider/XyoViewer.d.ts.map +1 -1
- package/dist/neutral/services/BridgeService.d.ts +5 -0
- package/dist/neutral/services/BridgeService.d.ts.map +1 -0
- package/dist/neutral/services/Chain/interfaces/ChainContractViewer.d.ts +2 -2
- package/dist/neutral/services/Chain/interfaces/ChainContractViewer.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/StepStakeService.d.ts +5 -0
- package/dist/neutral/services/StepStakeService.d.ts.map +1 -0
- package/dist/neutral/services/index.d.ts +2 -2
- package/dist/neutral/services/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/constants/addresses.ts +6 -0
- package/src/constants/index.ts +1 -1
- package/src/interfaces/index.ts +1 -11
- package/src/interfaces/{AccountBalance.ts → view/AccountBalance.ts} +4 -4
- package/src/interfaces/{Block.ts → view/Block.ts} +2 -2
- package/src/interfaces/view/Bridge.ts +13 -0
- package/src/interfaces/{Chain.ts → view/Chain.ts} +2 -2
- package/src/interfaces/{ChainContract.ts → view/ChainContract.ts} +1 -1
- package/src/interfaces/{ChainStake.ts → view/ChainStake.ts} +1 -1
- package/src/interfaces/{Fork.ts → view/Fork.ts} +1 -1
- package/src/interfaces/{NetworkStakeStepReward.ts → view/NetworkStakeStepReward.ts} +3 -3
- package/src/interfaces/{Stake.ts → view/Stake.ts} +1 -1
- package/src/interfaces/{StakeTotals.ts → view/StakeTotals.ts} +1 -1
- package/src/interfaces/{StepStake.ts → view/StepStake.ts} +2 -2
- package/src/interfaces/{TimeSync.ts → view/TimeSync.ts} +2 -2
- package/src/interfaces/{Transaction.ts → view/Transaction.ts} +2 -2
- package/src/interfaces/view/index.ts +13 -0
- package/src/provider/XyoViewer.ts +6 -5
- package/src/services/BridgeService.ts +4 -0
- package/src/services/Chain/interfaces/ChainContractViewer.ts +2 -2
- package/src/services/Chain/interfaces/ChainStakeViewer.ts +2 -2
- package/src/services/StepStakeService.ts +4 -0
- package/src/services/index.ts +2 -2
- package/dist/neutral/constants/zeroAddress.d.ts +0 -3
- package/dist/neutral/constants/zeroAddress.d.ts.map +0 -1
- package/dist/neutral/interfaces/AccountBalance.d.ts.map +0 -1
- package/dist/neutral/interfaces/Block.d.ts.map +0 -1
- package/dist/neutral/interfaces/Chain.d.ts +0 -6
- package/dist/neutral/interfaces/Chain.d.ts.map +0 -1
- package/dist/neutral/interfaces/ChainContract.d.ts.map +0 -1
- package/dist/neutral/interfaces/ChainStake.d.ts.map +0 -1
- package/dist/neutral/interfaces/Fork.d.ts.map +0 -1
- package/dist/neutral/interfaces/NetworkStakeStepReward.d.ts.map +0 -1
- package/dist/neutral/interfaces/Stake.d.ts.map +0 -1
- package/dist/neutral/interfaces/StakeTotals.d.ts.map +0 -1
- package/dist/neutral/interfaces/StepStake.d.ts.map +0 -1
- package/dist/neutral/interfaces/TimeSync.d.ts +0 -6
- package/dist/neutral/interfaces/TimeSync.d.ts.map +0 -1
- package/dist/neutral/interfaces/Transaction.d.ts.map +0 -1
- package/dist/neutral/services/ChainServiceCollection.d.ts +0 -67
- package/dist/neutral/services/ChainServiceCollection.d.ts.map +0 -1
- package/dist/neutral/services/ChainServiceCollectionV2.d.ts +0 -67
- package/dist/neutral/services/ChainServiceCollectionV2.d.ts.map +0 -1
- package/src/constants/zeroAddress.ts +0 -3
- package/src/services/ChainServiceCollection.ts +0 -71
- package/src/services/ChainServiceCollectionV2.ts +0 -71
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
-
import type { SignedHydratedTransaction } from '
|
|
4
|
-
export interface
|
|
3
|
+
import type { SignedHydratedTransaction } from '../../transaction/index.ts';
|
|
4
|
+
export interface TransactionViewInterface {
|
|
5
5
|
transactionByBlockHashAndIndex(blockHash: Hash, transactionIndex: number): Promisable<SignedHydratedTransaction | null>;
|
|
6
6
|
transactionByBlockNumberAndIndex(blockNumber: number, transactionIndex: number): Promisable<SignedHydratedTransaction | null>;
|
|
7
7
|
transactionByHash(transactionHash: Hash): Promisable<SignedHydratedTransaction | null>;
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './AccountBalance.ts';
|
|
2
|
+
export * from './Block.ts';
|
|
3
|
+
export * from './Bridge.ts';
|
|
4
|
+
export * from './Chain.ts';
|
|
5
|
+
export * from './ChainContract.ts';
|
|
6
|
+
export * from './ChainStake.ts';
|
|
7
|
+
export * from './Fork.ts';
|
|
8
|
+
export * from './NetworkStakeStepReward.ts';
|
|
9
|
+
export * from './Stake.ts';
|
|
10
|
+
export * from './StakeTotals.ts';
|
|
11
|
+
export * from './StepStake.ts';
|
|
12
|
+
export * from './TimeSync.ts';
|
|
13
|
+
export * from './Transaction.ts';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,aAAa,CAAA;AAC3B,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface XyoViewer extends
|
|
1
|
+
import type { AccountBalanceViewInterface, BlockViewInterface, ChainViewInterface, ForkViewInterface, StakeViewInterface, TransactionViewInterface } from '../interfaces/index.ts';
|
|
2
|
+
export interface XyoViewer extends AccountBalanceViewInterface, ChainViewInterface, BlockViewInterface, TransactionViewInterface, StakeViewInterface, ForkViewInterface {
|
|
3
3
|
}
|
|
4
4
|
//# sourceMappingURL=XyoViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoViewer.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"XyoViewer.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAAE,kBAAkB,EAAE,kBAAkB,EACnE,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,SAAU,SAAQ,2BAA2B,EAC5D,kBAAkB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,iBAAiB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BridgeService.d.ts","sourceRoot":"","sources":["../../../src/services/BridgeService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,aAAc,SAAQ,gBAAgB,EAAE,mBAAmB;CAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface ChainContractViewer extends
|
|
1
|
+
import type { ChainContractViewInterface } from '../../../interfaces/index.ts';
|
|
2
|
+
export interface ChainContractViewer extends ChainContractViewInterface {
|
|
3
3
|
}
|
|
4
4
|
//# sourceMappingURL=ChainContractViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainContractViewer.d.ts","sourceRoot":"","sources":["../../../../../src/services/Chain/interfaces/ChainContractViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ChainContractViewer.d.ts","sourceRoot":"","sources":["../../../../../src/services/Chain/interfaces/ChainContractViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAE9E,MAAM,WAAW,mBAAoB,SAAQ,0BAA0B;CAEtE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChainStakeViewInterface } from '../../../interfaces/index.ts';
|
|
2
2
|
import type { ChainContractViewer } from './ChainContractViewer.ts';
|
|
3
|
-
export interface ChainStakeViewer extends ChainContractViewer,
|
|
3
|
+
export interface ChainStakeViewer extends ChainContractViewer, ChainStakeViewInterface {
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=ChainStakeViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainStakeViewer.d.ts","sourceRoot":"","sources":["../../../../../src/services/Chain/interfaces/ChainStakeViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ChainStakeViewer.d.ts","sourceRoot":"","sources":["../../../../../src/services/Chain/interfaces/ChainStakeViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,EAAE,uBAAuB;CAErF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepStakeService.d.ts","sourceRoot":"","sources":["../../../src/services/StepStakeService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB,EAAE,sBAAsB;CAAG"}
|
|
@@ -2,13 +2,13 @@ export * from './AccountBalanceService.ts';
|
|
|
2
2
|
export * from './BlockProducerService.ts';
|
|
3
3
|
export * from './BlockRewardService.ts';
|
|
4
4
|
export * from './BlockRewardServiceV2.ts';
|
|
5
|
+
export * from './BridgeService.ts';
|
|
5
6
|
export * from './Chain/index.ts';
|
|
6
7
|
export * from './ChainIterator/index.ts';
|
|
7
|
-
export * from './ChainServiceCollection.ts';
|
|
8
|
-
export * from './ChainServiceCollectionV2.ts';
|
|
9
8
|
export * from './Election.ts';
|
|
10
9
|
export * from './NetworkStakeService.ts';
|
|
11
10
|
export * from './PendingTransactionsService.ts';
|
|
12
11
|
export * from './Service.ts';
|
|
13
12
|
export * from './StakeIntentService/index.ts';
|
|
13
|
+
export * from './StepStakeService.ts';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,cAAc,CAAA;AAC5B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uBAAuB,CAAA"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
|
+
|
|
3
|
+
export const XYO_ZERO_ADDRESS = '0000000000000000000000000000000000000000' as const as Address
|
|
4
|
+
|
|
5
|
+
export const XYO_STEP_REWARD_ADDRESS = '1216197612161976121619761216197612161976' as const as Address
|
|
6
|
+
export const XYO_BRIDGE_ADDRESS = '3012193230121932301219323012193230121932' as const as Address
|
package/src/constants/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export * from './addresses.ts'
|
|
1
2
|
export * from './defaultRewardRatio.ts'
|
|
2
3
|
export * from './defaultTransactionFees.ts'
|
|
3
4
|
export * from './minTransactionFees.ts'
|
|
4
5
|
export * from './StepSizes.ts'
|
|
5
6
|
export * from './TransactionGasCosts.ts'
|
|
6
7
|
export * from './version.ts'
|
|
7
|
-
export * from './zeroAddress.ts'
|
package/src/interfaces/index.ts
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './Block.ts'
|
|
3
|
-
export * from './Chain.ts'
|
|
4
|
-
export * from './ChainContract.ts'
|
|
5
|
-
export * from './ChainStake.ts'
|
|
6
|
-
export * from './Fork.ts'
|
|
7
|
-
export * from './NetworkStakeStepReward.ts'
|
|
8
|
-
export * from './Stake.ts'
|
|
9
|
-
export * from './StakeTotals.ts'
|
|
10
|
-
export * from './StepStake.ts'
|
|
11
|
-
export * from './Transaction.ts'
|
|
1
|
+
export * from './view/index.ts'
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { Address, Hash } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
-
import type { Transfer } from '
|
|
5
|
-
import type { AttoXL1 } from '
|
|
4
|
+
import type { Transfer } from '../../payload/index.ts'
|
|
5
|
+
import type { AttoXL1 } from '../../xl1/index.ts'
|
|
6
6
|
|
|
7
7
|
export type AccountBalanceHistoryItem = [Hash /* block */, Hash /* transaction */, Transfer /* the actual transfer payload */]
|
|
8
8
|
|
|
9
|
-
export interface
|
|
9
|
+
export interface AccountBalancesViewInterface {
|
|
10
10
|
accountBalanceHistories(address: Address): Promisable<Partial<Record<Address, AccountBalanceHistoryItem[]>>>
|
|
11
11
|
accountBalances(address: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface
|
|
14
|
+
export interface AccountBalanceViewInterface {
|
|
15
15
|
accountBalance(address: Address): Promisable<AttoXL1>
|
|
16
16
|
accountBalanceHistory(address: Address): Promisable<AccountBalanceHistoryItem[]>
|
|
17
17
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
-
import type { HydratedBlock } from '
|
|
4
|
+
import type { HydratedBlock } from '../../block/index.ts'
|
|
5
5
|
|
|
6
|
-
export interface
|
|
6
|
+
export interface BlockViewInterface {
|
|
7
7
|
blockByHash(hash: Hash): Promisable<HydratedBlock | null>
|
|
8
8
|
blockByNumber(blockNumber: number): Promisable<HydratedBlock | null>
|
|
9
9
|
blocksByHash(hash: Hash, limit?: number): Promisable<HydratedBlock[]>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Promisable } from '@xylabs/promise'
|
|
2
|
+
|
|
3
|
+
import type {
|
|
4
|
+
BridgeBack, BridgeComplete, BridgeRequest,
|
|
5
|
+
} from '../../payload/index.ts'
|
|
6
|
+
|
|
7
|
+
export interface BridgeViewInterface {
|
|
8
|
+
completedBridgeBack(): Promisable<BridgeBack[]>
|
|
9
|
+
completedBridgeRequests(): Promisable<[BridgeRequest, BridgeComplete][]>
|
|
10
|
+
// the from field in these will be 0 since they have not been completed yet
|
|
11
|
+
pendingBridgeBack(): Promisable<BridgeBack[]>
|
|
12
|
+
pendingBridgeRequests(): Promisable<BridgeRequest[]>
|
|
13
|
+
}
|
|
@@ -3,7 +3,7 @@ import type { Promisable } from '@xylabs/promise'
|
|
|
3
3
|
|
|
4
4
|
export type ForkHistory = Record<number, Address>
|
|
5
5
|
|
|
6
|
-
export interface
|
|
6
|
+
export interface ForkViewInterface {
|
|
7
7
|
chainIdAtBlock(blockNumber: number): Promisable<Address>
|
|
8
8
|
forkHistory(): Promisable<ForkHistory>
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
-
export interface
|
|
4
|
+
export interface NetworkStakeStepAddressRewardViewInterface {
|
|
5
5
|
claimedRewards(address: Address): Promisable<bigint>
|
|
6
6
|
|
|
7
7
|
// the step rewards for a specific network stakers for a given step and block
|
|
@@ -16,7 +16,7 @@ export interface NetworkStakeStepAddressReward {
|
|
|
16
16
|
unclaimedRewards(address: Address): Promisable<bigint>
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export interface
|
|
19
|
+
export interface NetworkStakeStepPoolRewardViewInterface {
|
|
20
20
|
|
|
21
21
|
// all the shares for all the network stakers for a given step and block
|
|
22
22
|
networkStakeStepPoolRewardShares(step: number, block: number): Promisable<Record<Address, bigint>>
|
|
@@ -25,7 +25,7 @@ export interface NetworkStakeStepPoolReward {
|
|
|
25
25
|
networkStakeStepPoolRewards(step: number, block: number): Promisable<Record<Address, bigint>>
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export interface
|
|
28
|
+
export interface NetworkStakeStepRewardViewInterface extends NetworkStakeStepPoolRewardViewInterface, NetworkStakeStepAddressRewardViewInterface {
|
|
29
29
|
// the predictable random number for a given step and block
|
|
30
30
|
networkStakeStepRewardRandomizer(step: number, block: number): Promisable<bigint>
|
|
31
31
|
}
|
|
@@ -8,7 +8,7 @@ export interface StakeScope {
|
|
|
8
8
|
type?: 'all' | 'network' | 'address'
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export interface
|
|
11
|
+
export interface StakeTotalsViewInterface {
|
|
12
12
|
// the total amount that is staked in a given scope
|
|
13
13
|
stakeAmount(scope?: StakeScope): Promisable<[bigint /* amount */, number /* external block number */]>
|
|
14
14
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
-
import type { CompletedStep } from '
|
|
4
|
+
import type { CompletedStep } from '../../model.ts'
|
|
5
5
|
|
|
6
|
-
export interface
|
|
6
|
+
export interface StepStakeViewInterface {
|
|
7
7
|
// this is the prorated stake for all addresses in the step
|
|
8
8
|
stepStake: (step: CompletedStep) => Promisable<Record<Address, bigint>>
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise'
|
|
2
2
|
|
|
3
|
-
import type { TimeDomain } from '
|
|
3
|
+
import type { TimeDomain } from '../../payload/index.ts'
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface TimeSyncViewInterface {
|
|
6
6
|
convertTime: (from: TimeDomain, to: TimeDomain) => Promisable<number>
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
-
import type { SignedHydratedTransaction } from '
|
|
4
|
+
import type { SignedHydratedTransaction } from '../../transaction/index.ts'
|
|
5
5
|
|
|
6
|
-
export interface
|
|
6
|
+
export interface TransactionViewInterface {
|
|
7
7
|
transactionByBlockHashAndIndex(blockHash: Hash, transactionIndex: number): Promisable<SignedHydratedTransaction | null>
|
|
8
8
|
transactionByBlockNumberAndIndex(blockNumber: number, transactionIndex: number): Promisable<SignedHydratedTransaction | null>
|
|
9
9
|
transactionByHash(transactionHash: Hash): Promisable<SignedHydratedTransaction | null>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './AccountBalance.ts'
|
|
2
|
+
export * from './Block.ts'
|
|
3
|
+
export * from './Bridge.ts'
|
|
4
|
+
export * from './Chain.ts'
|
|
5
|
+
export * from './ChainContract.ts'
|
|
6
|
+
export * from './ChainStake.ts'
|
|
7
|
+
export * from './Fork.ts'
|
|
8
|
+
export * from './NetworkStakeStepReward.ts'
|
|
9
|
+
export * from './Stake.ts'
|
|
10
|
+
export * from './StakeTotals.ts'
|
|
11
|
+
export * from './StepStake.ts'
|
|
12
|
+
export * from './TimeSync.ts'
|
|
13
|
+
export * from './Transaction.ts'
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
AccountBalanceViewInterface, BlockViewInterface, ChainViewInterface,
|
|
3
|
+
ForkViewInterface,
|
|
4
|
+
StakeViewInterface,
|
|
5
|
+
TransactionViewInterface,
|
|
6
6
|
} from '../interfaces/index.ts'
|
|
7
7
|
|
|
8
|
-
export interface XyoViewer extends
|
|
8
|
+
export interface XyoViewer extends AccountBalanceViewInterface,
|
|
9
|
+
ChainViewInterface, BlockViewInterface, TransactionViewInterface, StakeViewInterface, ForkViewInterface {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChainContractViewInterface } from '../../../interfaces/index.ts'
|
|
2
2
|
|
|
3
|
-
export interface ChainContractViewer extends
|
|
3
|
+
export interface ChainContractViewer extends ChainContractViewInterface {
|
|
4
4
|
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChainStakeViewInterface } 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, ChainStakeViewInterface {
|
|
5
5
|
|
|
6
6
|
}
|
package/src/services/index.ts
CHANGED
|
@@ -2,12 +2,12 @@ export * from './AccountBalanceService.ts'
|
|
|
2
2
|
export * from './BlockProducerService.ts'
|
|
3
3
|
export * from './BlockRewardService.ts'
|
|
4
4
|
export * from './BlockRewardServiceV2.ts'
|
|
5
|
+
export * from './BridgeService.ts'
|
|
5
6
|
export * from './Chain/index.ts'
|
|
6
7
|
export * from './ChainIterator/index.ts'
|
|
7
|
-
export * from './ChainServiceCollection.ts'
|
|
8
|
-
export * from './ChainServiceCollectionV2.ts'
|
|
9
8
|
export * from './Election.ts'
|
|
10
9
|
export * from './NetworkStakeService.ts'
|
|
11
10
|
export * from './PendingTransactionsService.ts'
|
|
12
11
|
export * from './Service.ts'
|
|
13
12
|
export * from './StakeIntentService/index.ts'
|
|
13
|
+
export * from './StepStakeService.ts'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zeroAddress.d.ts","sourceRoot":"","sources":["../../../src/constants/zeroAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,eAAO,MAAM,gBAAgB,EAAiD,OAAO,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountBalance.d.ts","sourceRoot":"","sources":["../../../src/interfaces/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,qBAAqB,CAAA;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C,MAAM,MAAM,yBAAyB,GAAG,CAAC,IAAI,EAAc,IAAI,EAAoB,QAAQ,CAAmC,CAAA;AAE9H,MAAM,WAAW,wBAAwB;IACvC,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,yBAAyB,EAAE,CAAC,CAAC,CAAC,CAAA;IAC5G,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;CACnF;AAED,MAAM,WAAW,uBAAuB;IACtC,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/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,mBAAmB,CAAA;AAEtD,MAAM,WAAW,cAAc;IAC7B,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/Chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,MAAM,WAAW,cAAc;IAC7B,OAAO,IAAI,UAAU,CAAC,KAAK,CAAC,CAAA;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChainContract.d.ts","sourceRoot":"","sources":["../../../src/interfaces/ChainContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,WAAW,sBAAsB;IACrC,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChainStake.d.ts","sourceRoot":"","sources":["../../../src/interfaces/ChainStake.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,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/Fork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjD,MAAM,WAAW,aAAa;IAC5B,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACxD,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,CAAA;CACvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkStakeStepReward.d.ts","sourceRoot":"","sources":["../../../src/interfaces/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,6BAA6B;IAC5C,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGpD,6BAA6B,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGjH,oCAAoC,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAG3F,kCAAkC,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,oBAAoB,CAAA,MAAM,EAAE,kBAAkB,CAAA,MAAM,CAAC,CAAC,CAAA;IAErJ,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACvD;AAED,MAAM,WAAW,0BAA0B;IAGzC,gCAAgC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGlG,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;CAC9F;AAED,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B,EAAE,6BAA6B;IAEvG,gCAAgC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CAClF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../src/interfaces/Stake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,MAAM,KAAK,GAAG;IAElB,QAAQ,EAAE,MAAM,CAAA;IAEhB,MAAM,EAAE,GAAG,CAAA;IAEX,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,cAAc;IAC7B,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;IACjE,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;CACzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StakeTotals.d.ts","sourceRoot":"","sources":["../../../src/interfaces/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,oBAAoB;IAEnC,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepStake.d.ts","sourceRoot":"","sources":["../../../src/interfaces/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,aAAa,CAAA;AAEhD,MAAM,WAAW,kBAAkB;IAEjC,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/TimeSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CACtE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/interfaces/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,yBAAyB,CAAA;AAExE,MAAM,WAAW,oBAAoB;IACnC,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,67 +0,0 @@
|
|
|
1
|
-
import type { ArchivistInstance, WriteArchivist } from '@xyo-network/archivist-model';
|
|
2
|
-
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
3
|
-
import type { AccountBalanceService } from './AccountBalanceService.ts';
|
|
4
|
-
import type { BlockProducerService } from './BlockProducerService.ts';
|
|
5
|
-
import type { BlockRewardService } from './BlockRewardService.ts';
|
|
6
|
-
import type { ChainContractViewer, ChainStaker, ChainStakeViewer } from './Chain/index.ts';
|
|
7
|
-
import type { EventingChainBlockNumberIteratorService } from './ChainIterator/index.ts';
|
|
8
|
-
import type { ElectionService } from './Election.ts';
|
|
9
|
-
import type { StakeIntentService } from './StakeIntentService/index.ts';
|
|
10
|
-
/** @deprecated use from @xyo-network/xl1-protocol-sdk instead */
|
|
11
|
-
export interface ChainServiceCollection {
|
|
12
|
-
/**
|
|
13
|
-
* The account which is used to sign transactions
|
|
14
|
-
*/
|
|
15
|
-
account: WalletInstance;
|
|
16
|
-
/**
|
|
17
|
-
* Services for working with account balances
|
|
18
|
-
*/
|
|
19
|
-
balanceService: AccountBalanceService;
|
|
20
|
-
/**
|
|
21
|
-
* The archivist which the chain data is stored in
|
|
22
|
-
*/
|
|
23
|
-
chainArchivist: ArchivistInstance;
|
|
24
|
-
/**
|
|
25
|
-
* Service for viewing codified chain information
|
|
26
|
-
* from a contract
|
|
27
|
-
*/
|
|
28
|
-
chainContractViewer: ChainContractViewer;
|
|
29
|
-
/**
|
|
30
|
-
* The chain iterator
|
|
31
|
-
*/
|
|
32
|
-
chainIterator?: EventingChainBlockNumberIteratorService;
|
|
33
|
-
/**
|
|
34
|
-
* Service for viewing stake information
|
|
35
|
-
*/
|
|
36
|
-
chainStakeViewer: ChainStakeViewer;
|
|
37
|
-
/**
|
|
38
|
-
* Service for staking
|
|
39
|
-
*/
|
|
40
|
-
chainStaker: ChainStaker;
|
|
41
|
-
/**
|
|
42
|
-
* The archivist which the chain submissions are stored in
|
|
43
|
-
*/
|
|
44
|
-
chainSubmissionsArchivistWrite: WriteArchivist;
|
|
45
|
-
/**
|
|
46
|
-
* Service for determining leader election
|
|
47
|
-
*/
|
|
48
|
-
electionService: ElectionService;
|
|
49
|
-
/**
|
|
50
|
-
* The archivist which the pending transactions are stored
|
|
51
|
-
* as bundled transactions
|
|
52
|
-
*/
|
|
53
|
-
pendingBundledTransactionsArchivistWrite: ArchivistInstance;
|
|
54
|
-
/**
|
|
55
|
-
* The block producer service
|
|
56
|
-
*/
|
|
57
|
-
producer: BlockProducerService;
|
|
58
|
-
/**
|
|
59
|
-
* Service response for calculating block rewards
|
|
60
|
-
*/
|
|
61
|
-
rewardService: BlockRewardService;
|
|
62
|
-
/**
|
|
63
|
-
* Services for working with staked intents
|
|
64
|
-
*/
|
|
65
|
-
stakeIntentService: StakeIntentService;
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=ChainServiceCollection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChainServiceCollection.d.ts","sourceRoot":"","sources":["../../../src/services/ChainServiceCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EACV,mBAAmB,EAAE,WAAW,EAAE,gBAAgB,EACnD,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,0BAA0B,CAAA;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAEvE,iEAAiE;AACjE,MAAM,WAAW,sBAAsB;IAErC;;OAEG;IACH,OAAO,EAAE,cAAc,CAAA;IACvB;;OAEG;IACH,cAAc,EAAE,qBAAqB,CAAA;IACrC;;OAEG;IACH,cAAc,EAAE,iBAAiB,CAAA;IACjC;;;OAGG;IACH,mBAAmB,EAAE,mBAAmB,CAAA;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,uCAAuC,CAAA;IACvD;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,CAAA;IAClC;;OAEG;IACH,WAAW,EAAE,WAAW,CAAA;IACxB;;OAEG;IACH,8BAA8B,EAAE,cAAc,CAAA;IAC9C;;OAEG;IACH,eAAe,EAAE,eAAe,CAAA;IAChC;;;OAGG;IACH,wCAAwC,EAAE,iBAAiB,CAAA;IAC3D;;OAEG;IACH,QAAQ,EAAE,oBAAoB,CAAA;IAC9B;;OAEG;IACH,aAAa,EAAE,kBAAkB,CAAA;IACjC;;OAEG;IACH,kBAAkB,EAAE,kBAAkB,CAAA;CACvC"}
|