@xyo-network/xl1-protocol 1.12.10 → 1.12.12

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.
@@ -1,8 +1,9 @@
1
- import type { Address, Hex } from '@xylabs/hex';
1
+ import type { Address } from '@xylabs/hex';
2
2
  import type { Promisable } from '@xylabs/promise';
3
+ import type { AttoXL1 } from '../../xl1/index.ts';
3
4
  export type Stake = {
4
5
  addBlock: number;
5
- amount: Hex;
6
+ amount: AttoXL1;
6
7
  id: number;
7
8
  removeBlock: number;
8
9
  staked: Address;
@@ -1 +1 @@
1
- {"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/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,kBAAkB;IACjC,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
+ {"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,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,MAAM,KAAK,GAAG;IAElB,QAAQ,EAAE,MAAM,CAAA;IAEhB,MAAM,EAAE,OAAO,CAAA;IAEf,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,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"}
@@ -2,5 +2,6 @@ import type { Promisable } from '@xylabs/promise';
2
2
  import type { TimeDomain } from '../../payload/index.ts';
3
3
  export interface TimeSyncViewInterface {
4
4
  convertTime: (from: TimeDomain, to: TimeDomain) => Promisable<number>;
5
+ currentTime: (domain: TimeDomain) => Promisable<number>;
5
6
  }
6
7
  //# sourceMappingURL=TimeSync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimeSync.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/TimeSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CACtE"}
1
+ {"version":3,"file":"TimeSync.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/TimeSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;IACrE,WAAW,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CACxD"}
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.10",
4
+ "version": "1.12.12",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -48,7 +48,6 @@
48
48
  "@xyo-network/boundwitness-model": "~5.1.0",
49
49
  "@xyo-network/payload-model": "~5.1.0",
50
50
  "@xyo-network/schema-payload-plugin": "~5.1.0",
51
- "@xyo-network/wallet-model": "~5.1.0",
52
51
  "zod": "~4.1.3"
53
52
  },
54
53
  "devDependencies": {
@@ -1,11 +1,13 @@
1
- import type { Address, Hex } from '@xylabs/hex'
1
+ import type { Address } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
3
 
4
+ import type { AttoXL1 } from '../../xl1/index.ts'
5
+
4
6
  export type Stake = {
5
7
  // the block number when the stake was added
6
8
  addBlock: number
7
9
  // the amount that is staked
8
- amount: Hex
10
+ amount: AttoXL1
9
11
  // the unique id for the stake item
10
12
  id: number
11
13
  // the block number when the stake was removed (set to 0 if not removed)
@@ -4,4 +4,5 @@ import type { TimeDomain } from '../../payload/index.ts'
4
4
 
5
5
  export interface TimeSyncViewInterface {
6
6
  convertTime: (from: TimeDomain, to: TimeDomain) => Promisable<number>
7
+ currentTime: (domain: TimeDomain) => Promisable<number>
7
8
  }