@xyo-network/xl1-protocol-sdk 1.16.7 → 1.16.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/neutral/services/AccountBalanceService.d.ts +1 -2
  2. package/dist/neutral/services/AccountBalanceService.d.ts.map +1 -1
  3. package/dist/neutral/services/AccountTransfersService.d.ts +1 -2
  4. package/dist/neutral/services/AccountTransfersService.d.ts.map +1 -1
  5. package/dist/neutral/services/BlockProducerService.d.ts +1 -2
  6. package/dist/neutral/services/BlockProducerService.d.ts.map +1 -1
  7. package/dist/neutral/services/BlockRewardService.d.ts +1 -2
  8. package/dist/neutral/services/BlockRewardService.d.ts.map +1 -1
  9. package/dist/neutral/services/Chain/BaseChainService.d.ts +1 -2
  10. package/dist/neutral/services/Chain/BaseChainService.d.ts.map +1 -1
  11. package/dist/neutral/services/Election.d.ts +1 -2
  12. package/dist/neutral/services/Election.d.ts.map +1 -1
  13. package/dist/neutral/services/NetworkStakeService.d.ts +1 -2
  14. package/dist/neutral/services/NetworkStakeService.d.ts.map +1 -1
  15. package/dist/neutral/services/PendingTransactionsService.d.ts +1 -2
  16. package/dist/neutral/services/PendingTransactionsService.d.ts.map +1 -1
  17. package/dist/neutral/services/StakeIntentService/StakeIntentService.d.ts +1 -2
  18. package/dist/neutral/services/StakeIntentService/StakeIntentService.d.ts.map +1 -1
  19. package/dist/neutral/services/index.d.ts +0 -3
  20. package/dist/neutral/services/index.d.ts.map +1 -1
  21. package/package.json +1 -1
  22. package/src/services/AccountBalanceService.ts +1 -2
  23. package/src/services/AccountTransfersService.ts +1 -3
  24. package/src/services/BlockProducerService.ts +1 -3
  25. package/src/services/BlockRewardService.ts +1 -3
  26. package/src/services/Chain/BaseChainService.ts +1 -3
  27. package/src/services/Election.ts +1 -3
  28. package/src/services/NetworkStakeService.ts +1 -2
  29. package/src/services/PendingTransactionsService.ts +1 -3
  30. package/src/services/StakeIntentService/StakeIntentService.ts +1 -3
  31. package/src/services/index.ts +0 -3
  32. package/dist/neutral/services/Service.d.ts +0 -5
  33. package/dist/neutral/services/Service.d.ts.map +0 -1
  34. package/dist/neutral/services/StepStakeService.d.ts +0 -5
  35. package/dist/neutral/services/StepStakeService.d.ts.map +0 -1
  36. package/dist/neutral/services/TimeSyncService.d.ts +0 -5
  37. package/dist/neutral/services/TimeSyncService.d.ts.map +0 -1
  38. package/src/services/Service.ts +0 -5
  39. package/src/services/StepStakeService.ts +0 -4
  40. package/src/services/TimeSyncService.ts +0 -4
@@ -1,5 +1,4 @@
1
1
  import type { AccountBalancesViewerMethods, AccountBalanceViewerMethods } from '../viewers/index.ts';
2
- import type { ServiceInterface } from './Service.ts';
3
- export interface AccountBalanceService extends AccountBalancesViewerMethods, AccountBalanceViewerMethods, ServiceInterface {
2
+ export interface AccountBalanceService extends AccountBalancesViewerMethods, AccountBalanceViewerMethods {
4
3
  }
5
4
  //# sourceMappingURL=AccountBalanceService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccountBalanceService.d.ts","sourceRoot":"","sources":["../../../src/services/AccountBalanceService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAA;AACpG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,qBAAsB,SAAQ,4BAA4B,EAAE,2BAA2B,EAAE,gBAAgB;CACzH"}
1
+ {"version":3,"file":"AccountBalanceService.d.ts","sourceRoot":"","sources":["../../../src/services/AccountBalanceService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAA;AAEpG,MAAM,WAAW,qBAAsB,SAAQ,4BAA4B,EAAE,2BAA2B;CACvG"}
@@ -1,11 +1,10 @@
1
1
  import type { Address, Hash } from '@xylabs/hex';
2
2
  import type { Promisable } from '@xylabs/promise';
3
3
  import type { AttoXL1 } from '@xyo-network/xl1-protocol';
4
- import type { ServiceInterface } from './Service.ts';
5
4
  export interface AccountTransfersProvider {
6
5
  transfer(head: Hash, account: Address): Promisable<AttoXL1>;
7
6
  transfers(head: Hash, accounts: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>;
8
7
  }
9
- export interface AccountTransfersService extends AccountTransfersProvider, ServiceInterface {
8
+ export interface AccountTransfersService extends AccountTransfersProvider {
10
9
  }
11
10
  //# sourceMappingURL=AccountTransfersService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccountTransfersService.d.ts","sourceRoot":"","sources":["../../../src/services/AccountTransfersService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IAC3D,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;CAC1F;AAED,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB,EAAE,gBAAgB;CAAG"}
1
+ {"version":3,"file":"AccountTransfersService.d.ts","sourceRoot":"","sources":["../../../src/services/AccountTransfersService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IAC3D,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;CAC1F;AAED,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;CAAG"}
@@ -1,6 +1,5 @@
1
1
  import type { Addressable, BlockBoundWitness, HydratedBlock, IterableRepository } from '@xyo-network/xl1-protocol';
2
- import type { ServiceInterface } from './Service.ts';
3
2
  export type NextBlockProducer = IterableRepository<BlockBoundWitness, HydratedBlock | undefined>;
4
- export interface BlockProducerService extends Addressable, NextBlockProducer, ServiceInterface {
3
+ export interface BlockProducerService extends Addressable, NextBlockProducer {
5
4
  }
6
5
  //# sourceMappingURL=BlockProducerService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockProducerService.d.ts","sourceRoot":"","sources":["../../../src/services/BlockProducerService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,EACrD,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,iBAAiB,EAAE,aAAa,GAAG,SAAS,CAAC,CAAA;AAEhG,MAAM,WAAW,oBAAqB,SAAQ,WAAW,EAAE,iBAAiB,EAAE,gBAAgB;CAAG"}
1
+ {"version":3,"file":"BlockProducerService.d.ts","sourceRoot":"","sources":["../../../src/services/BlockProducerService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,EACrD,MAAM,2BAA2B,CAAA;AAElC,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,iBAAiB,EAAE,aAAa,GAAG,SAAS,CAAC,CAAA;AAEhG,MAAM,WAAW,oBAAqB,SAAQ,WAAW,EAAE,iBAAiB;CAAG"}
@@ -1,6 +1,5 @@
1
1
  import type { Promisable } from '@xylabs/promise';
2
- import type { ServiceInterface } from './Service.ts';
3
- export interface BlockRewardService extends ServiceInterface {
2
+ export interface BlockRewardService {
4
3
  getRewardForBlock(block: bigint): Promisable<bigint>;
5
4
  }
6
5
  //# sourceMappingURL=BlockRewardService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockRewardService.d.ts","sourceRoot":"","sources":["../../../src/services/BlockRewardService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAE1D,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACrD"}
1
+ {"version":3,"file":"BlockRewardService.d.ts","sourceRoot":"","sources":["../../../src/services/BlockRewardService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,kBAAkB;IAEjC,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACrD"}
@@ -1,6 +1,5 @@
1
1
  import type { ChainId } from '@xyo-network/xl1-protocol';
2
- import type { ServiceInterface } from '../Service.ts';
3
- export interface BaseChainService extends ServiceInterface {
2
+ export interface BaseChainService {
4
3
  chainId: ChainId;
5
4
  }
6
5
  //# sourceMappingURL=BaseChainService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseChainService.d.ts","sourceRoot":"","sources":["../../../../src/services/Chain/BaseChainService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,OAAO,EAAE,OAAO,CAAA;CACjB"}
1
+ {"version":3,"file":"BaseChainService.d.ts","sourceRoot":"","sources":["../../../../src/services/Chain/BaseChainService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAA;CACjB"}
@@ -1,8 +1,7 @@
1
1
  import type { Address } from '@xylabs/hex';
2
2
  import type { WithHashMeta } from '@xyo-network/payload-model';
3
3
  import type { BlockBoundWitness } from '@xyo-network/xl1-protocol';
4
- import type { ServiceInterface } from './Service.ts';
5
- export interface ElectionService extends ServiceInterface {
4
+ export interface ElectionService {
6
5
  /**
7
6
  * Given the current block, get the leader for the next block
8
7
  * @param current The previous block
@@ -1 +1 @@
1
- {"version":3,"file":"Election.d.ts","sourceRoot":"","sources":["../../../src/services/Election.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IAEvD;;;OAGG;IACH,+BAA+B,CAAC,OAAO,EAAE,YAAY,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;CAE9F"}
1
+ {"version":3,"file":"Election.d.ts","sourceRoot":"","sources":["../../../src/services/Election.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,MAAM,WAAW,eAAe;IAE9B;;;OAGG;IACH,+BAA+B,CAAC,OAAO,EAAE,YAAY,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;CAE9F"}
@@ -1,5 +1,4 @@
1
1
  import type { NetworkStakeStepRewardViewer } from '../viewers/index.ts';
2
- import type { ServiceInterface } from './Service.ts';
3
- export interface NetworkStakeStepRewardService extends NetworkStakeStepRewardViewer, ServiceInterface {
2
+ export interface NetworkStakeStepRewardService extends NetworkStakeStepRewardViewer {
4
3
  }
5
4
  //# sourceMappingURL=NetworkStakeService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkStakeService.d.ts","sourceRoot":"","sources":["../../../src/services/NetworkStakeService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,6BAA8B,SAAQ,4BAA4B,EAAE,gBAAgB;CAAG"}
1
+ {"version":3,"file":"NetworkStakeService.d.ts","sourceRoot":"","sources":["../../../src/services/NetworkStakeService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAA;AAEvE,MAAM,WAAW,6BAA8B,SAAQ,4BAA4B;CAAG"}
@@ -1,7 +1,6 @@
1
1
  import type { Hash } from '@xylabs/hex';
2
2
  import type { SignedHydratedTransaction } from '@xyo-network/xl1-protocol';
3
- import type { ServiceInterface } from './Service.ts';
4
- export interface PendingTransactionsService extends ServiceInterface {
3
+ export interface PendingTransactionsService {
5
4
  getPendingTransactions(head: Hash, limit: number, timeout?: number): Promise<SignedHydratedTransaction[]>;
6
5
  }
7
6
  //# sourceMappingURL=PendingTransactionsService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PendingTransactionsService.d.ts","sourceRoot":"","sources":["../../../src/services/PendingTransactionsService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB;IAClE,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAA;CAC1G"}
1
+ {"version":3,"file":"PendingTransactionsService.d.ts","sourceRoot":"","sources":["../../../src/services/PendingTransactionsService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AAE1E,MAAM,WAAW,0BAA0B;IACzC,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAA;CAC1G"}
@@ -1,7 +1,6 @@
1
1
  import type { Address } from '@xylabs/hex';
2
2
  import type { Intent } from '@xyo-network/xl1-protocol';
3
- import type { ServiceInterface } from '../Service.ts';
4
- export interface StakeIntentService extends ServiceInterface {
3
+ export interface StakeIntentService {
5
4
  /**
6
5
  * Gets the declared ranges for an address based on historical on-chain data
7
6
  * @param address The address to get the declared ranges for
@@ -1 +1 @@
1
- {"version":3,"file":"StakeIntentService.d.ts","sourceRoot":"","sources":["../../../../src/services/StakeIntentService/StakeIntentService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAE1D;;;;OAIG;IACH,0BAA0B,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAE7G;;;;OAIG;IACH,6BAA6B,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAEhF;;;;OAIG;IACH,gCAAgC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IAExD;;;;;OAKG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACpF"}
1
+ {"version":3,"file":"StakeIntentService.d.ts","sourceRoot":"","sources":["../../../../src/services/StakeIntentService/StakeIntentService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,MAAM,WAAW,kBAAkB;IAEjC;;;;OAIG;IACH,0BAA0B,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAE7G;;;;OAIG;IACH,6BAA6B,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAEhF;;;;OAIG;IACH,gCAAgC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IAExD;;;;;OAKG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACpF"}
@@ -8,8 +8,5 @@ export * from './ChainIterator/index.ts';
8
8
  export * from './Election.ts';
9
9
  export * from './NetworkStakeService.ts';
10
10
  export * from './PendingTransactionsService.ts';
11
- export * from './Service.ts';
12
11
  export * from './StakeIntentService/index.ts';
13
- export * from './StepStakeService.ts';
14
- export * from './TimeSyncService.ts';
15
12
  //# 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,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,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;AACrC,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,+BAA+B,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/xl1-protocol-sdk",
4
- "version": "1.16.7",
4
+ "version": "1.16.9",
5
5
  "description": "XYO Layer One SDK Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -1,5 +1,4 @@
1
1
  import type { AccountBalancesViewerMethods, AccountBalanceViewerMethods } from '../viewers/index.ts'
2
- import type { ServiceInterface } from './Service.ts'
3
2
 
4
- export interface AccountBalanceService extends AccountBalancesViewerMethods, AccountBalanceViewerMethods, ServiceInterface {
3
+ export interface AccountBalanceService extends AccountBalancesViewerMethods, AccountBalanceViewerMethods {
5
4
  }
@@ -2,11 +2,9 @@ import type { Address, Hash } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
3
  import type { AttoXL1 } from '@xyo-network/xl1-protocol'
4
4
 
5
- import type { ServiceInterface } from './Service.ts'
6
-
7
5
  export interface AccountTransfersProvider {
8
6
  transfer(head: Hash, account: Address): Promisable<AttoXL1>
9
7
  transfers(head: Hash, accounts: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>
10
8
  }
11
9
 
12
- export interface AccountTransfersService extends AccountTransfersProvider, ServiceInterface {}
10
+ export interface AccountTransfersService extends AccountTransfersProvider {}
@@ -3,8 +3,6 @@ import type {
3
3
  BlockBoundWitness, HydratedBlock, IterableRepository,
4
4
  } from '@xyo-network/xl1-protocol'
5
5
 
6
- import type { ServiceInterface } from './Service.ts'
7
-
8
6
  export type NextBlockProducer = IterableRepository<BlockBoundWitness, HydratedBlock | undefined>
9
7
 
10
- export interface BlockProducerService extends Addressable, NextBlockProducer, ServiceInterface {}
8
+ export interface BlockProducerService extends Addressable, NextBlockProducer {}
@@ -1,8 +1,6 @@
1
1
  import type { Promisable } from '@xylabs/promise'
2
2
 
3
- import type { ServiceInterface } from './Service.ts'
4
-
5
- export interface BlockRewardService extends ServiceInterface {
3
+ export interface BlockRewardService {
6
4
  // The amount of xl1 to send to the producer from the block reward
7
5
  getRewardForBlock(block: bigint): Promisable<bigint>
8
6
  }
@@ -1,7 +1,5 @@
1
1
  import type { ChainId } from '@xyo-network/xl1-protocol'
2
2
 
3
- import type { ServiceInterface } from '../Service.ts'
4
-
5
- export interface BaseChainService extends ServiceInterface {
3
+ export interface BaseChainService {
6
4
  chainId: ChainId
7
5
  }
@@ -2,9 +2,7 @@ import type { Address } from '@xylabs/hex'
2
2
  import type { WithHashMeta } from '@xyo-network/payload-model'
3
3
  import type { BlockBoundWitness } from '@xyo-network/xl1-protocol'
4
4
 
5
- import type { ServiceInterface } from './Service.ts'
6
-
7
- export interface ElectionService extends ServiceInterface {
5
+ export interface ElectionService {
8
6
 
9
7
  /**
10
8
  * Given the current block, get the leader for the next block
@@ -1,4 +1,3 @@
1
1
  import type { NetworkStakeStepRewardViewer } from '../viewers/index.ts'
2
- import type { ServiceInterface } from './Service.ts'
3
2
 
4
- export interface NetworkStakeStepRewardService extends NetworkStakeStepRewardViewer, ServiceInterface {}
3
+ export interface NetworkStakeStepRewardService extends NetworkStakeStepRewardViewer {}
@@ -1,8 +1,6 @@
1
1
  import type { Hash } from '@xylabs/hex'
2
2
  import type { SignedHydratedTransaction } from '@xyo-network/xl1-protocol'
3
3
 
4
- import type { ServiceInterface } from './Service.ts'
5
-
6
- export interface PendingTransactionsService extends ServiceInterface {
4
+ export interface PendingTransactionsService {
7
5
  getPendingTransactions(head: Hash, limit: number, timeout?: number): Promise<SignedHydratedTransaction[]>
8
6
  }
@@ -1,9 +1,7 @@
1
1
  import type { Address } from '@xylabs/hex'
2
2
  import type { Intent } from '@xyo-network/xl1-protocol'
3
3
 
4
- import type { ServiceInterface } from '../Service.ts'
5
-
6
- export interface StakeIntentService extends ServiceInterface {
4
+ export interface StakeIntentService {
7
5
 
8
6
  /**
9
7
  * Gets the declared ranges for an address based on historical on-chain data
@@ -8,7 +8,4 @@ export * from './ChainIterator/index.ts'
8
8
  export * from './Election.ts'
9
9
  export * from './NetworkStakeService.ts'
10
10
  export * from './PendingTransactionsService.ts'
11
- export * from './Service.ts'
12
11
  export * from './StakeIntentService/index.ts'
13
- export * from './StepStakeService.ts'
14
- export * from './TimeSyncService.ts'
@@ -1,5 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- export interface ServiceInterface {
3
- sync(head: Hash): Promise<void>;
4
- }
5
- //# sourceMappingURL=Service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Service.d.ts","sourceRoot":"","sources":["../../../src/services/Service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAChC"}
@@ -1,5 +0,0 @@
1
- import type { StepStakeViewer } from '../viewers/index.ts';
2
- import type { ServiceInterface } from './Service.ts';
3
- export interface StepStakeService extends ServiceInterface, StepStakeViewer {
4
- }
5
- //# sourceMappingURL=StepStakeService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StepStakeService.d.ts","sourceRoot":"","sources":["../../../src/services/StepStakeService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB,EAAE,eAAe;CAAG"}
@@ -1,5 +0,0 @@
1
- import type { TimeSyncViewerMethods } from '../viewers/index.ts';
2
- import type { ServiceInterface } from './Service.ts';
3
- export interface TimeSyncService extends ServiceInterface, TimeSyncViewerMethods {
4
- }
5
- //# sourceMappingURL=TimeSyncService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimeSyncService.d.ts","sourceRoot":"","sources":["../../../src/services/TimeSyncService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,eAAgB,SAAQ,gBAAgB,EAAE,qBAAqB;CAAG"}
@@ -1,5 +0,0 @@
1
- import type { Hash } from '@xylabs/hex'
2
-
3
- export interface ServiceInterface {
4
- sync(head: Hash): Promise<void>
5
- }
@@ -1,4 +0,0 @@
1
- import type { StepStakeViewer } from '../viewers/index.ts'
2
- import type { ServiceInterface } from './Service.ts'
3
-
4
- export interface StepStakeService extends ServiceInterface, StepStakeViewer {}
@@ -1,4 +0,0 @@
1
- import type { TimeSyncViewerMethods } from '../viewers/index.ts'
2
- import type { ServiceInterface } from './Service.ts'
3
-
4
- export interface TimeSyncService extends ServiceInterface, TimeSyncViewerMethods {}