@xyo-network/xl1-protocol 1.12.28 → 1.12.30

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.
@@ -0,0 +1,11 @@
1
+ import type { Address, Hash } from '@xylabs/hex';
2
+ import type { Promisable } from '@xylabs/promise';
3
+ import type { AttoXL1 } from '../xl1/index.ts';
4
+ import type { ServiceInterface } from './Service.ts';
5
+ export interface AccountTransfersProvider {
6
+ transfer(head: Hash, from: Address, to: Address): Promisable<AttoXL1>;
7
+ transfers(head: Hash, addresses: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>;
8
+ }
9
+ export interface AccountTransfersService extends AccountTransfersProvider, ServiceInterface {
10
+ }
11
+ //# sourceMappingURL=AccountTransfersService.d.ts.map
@@ -0,0 +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;AAEjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACrE,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;CAC3F;AAED,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB,EAAE,gBAAgB;CAAG"}
@@ -1,8 +1,5 @@
1
- import type { Address } from '@xylabs/hex';
2
- import type { Promisable } from '@xylabs/promise';
3
- import type { CompletedStep } from '../model.ts';
1
+ import type { NetworkStakeStepRewardViewInterface } from '../interfaces/index.ts';
4
2
  import type { ServiceInterface } from './Service.ts';
5
- export interface NetworkStakeService extends ServiceInterface {
6
- stepStakeForAddress: (address: Address, step: CompletedStep) => Promisable<bigint>;
3
+ export interface NetworkStakeStepRewardService extends NetworkStakeStepRewardViewInterface, ServiceInterface {
7
4
  }
8
5
  //# 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,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CACnF"}
1
+ {"version":3,"file":"NetworkStakeService.d.ts","sourceRoot":"","sources":["../../../src/services/NetworkStakeService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAA;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,6BAA8B,SAAQ,mCAAmC,EAAE,gBAAgB;CAAG"}
@@ -1,4 +1,5 @@
1
1
  export * from './AccountBalanceService.ts';
2
+ export * from './AccountTransfersService.ts';
2
3
  export * from './BlockProducerService.ts';
3
4
  export * from './BlockRewardService.ts';
4
5
  export * from './BlockRewardServiceV2.ts';
@@ -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,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,cAAc,CAAA;AAC5B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,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",
4
- "version": "1.12.28",
4
+ "version": "1.12.30",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -0,0 +1,12 @@
1
+ import type { Address, Hash } from '@xylabs/hex'
2
+ import type { Promisable } from '@xylabs/promise'
3
+
4
+ import type { AttoXL1 } from '../xl1/index.ts'
5
+ import type { ServiceInterface } from './Service.ts'
6
+
7
+ export interface AccountTransfersProvider {
8
+ transfer(head: Hash, from: Address, to: Address): Promisable<AttoXL1>
9
+ transfers(head: Hash, addresses: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>
10
+ }
11
+
12
+ export interface AccountTransfersService extends AccountTransfersProvider, ServiceInterface {}
@@ -1,9 +1,4 @@
1
- import type { Address } from '@xylabs/hex'
2
- import type { Promisable } from '@xylabs/promise'
3
-
4
- import type { CompletedStep } from '../model.ts'
1
+ import type { NetworkStakeStepRewardViewInterface } from '../interfaces/index.ts'
5
2
  import type { ServiceInterface } from './Service.ts'
6
3
 
7
- export interface NetworkStakeService extends ServiceInterface {
8
- stepStakeForAddress: (address: Address, step: CompletedStep) => Promisable<bigint>
9
- }
4
+ export interface NetworkStakeStepRewardService extends NetworkStakeStepRewardViewInterface, ServiceInterface {}
@@ -1,4 +1,5 @@
1
1
  export * from './AccountBalanceService.ts'
2
+ export * from './AccountTransfersService.ts'
2
3
  export * from './BlockProducerService.ts'
3
4
  export * from './BlockRewardService.ts'
4
5
  export * from './BlockRewardServiceV2.ts'