@n1xyz/nord-ts 0.7.1 → 0.7.2

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.
@@ -1775,6 +1775,10 @@ export type VaultSyncEpochsReceipt = Message<"nord.VaultSyncEpochsReceipt"> & {
1775
1775
  * @generated from field: int64 quote_balance = 7;
1776
1776
  */
1777
1777
  quoteBalance: bigint;
1778
+ /**
1779
+ * @generated from field: uint32 vault_account_id = 8;
1780
+ */
1781
+ vaultAccountId: number;
1778
1782
  };
1779
1783
  /**
1780
1784
  * @generated from message nord.VaultSyncEpochsReceipt
@@ -1808,6 +1812,10 @@ export type VaultSyncEpochsReceiptJson = {
1808
1812
  * @generated from field: int64 quote_balance = 7;
1809
1813
  */
1810
1814
  quoteBalance?: string;
1815
+ /**
1816
+ * @generated from field: uint32 vault_account_id = 8;
1817
+ */
1818
+ vaultAccountId?: number;
1811
1819
  };
1812
1820
  /**
1813
1821
  * Describes the message nord.VaultSyncEpochsReceipt.
@@ -8762,12 +8770,16 @@ export declare enum SpecialAccount {
8762
8770
  /**
8763
8771
  * @generated from enum value: FEE_VAULT = 0;
8764
8772
  */
8765
- FEE_VAULT = 0
8773
+ FEE_VAULT = 0,
8774
+ /**
8775
+ * @generated from enum value: CLAIM_VAULT = 1;
8776
+ */
8777
+ CLAIM_VAULT = 1
8766
8778
  }
8767
8779
  /**
8768
8780
  * @generated from enum nord.SpecialAccount
8769
8781
  */
8770
- export type SpecialAccountJson = "FEE_VAULT";
8782
+ export type SpecialAccountJson = "FEE_VAULT" | "CLAIM_VAULT";
8771
8783
  /**
8772
8784
  * Describes the enum nord.SpecialAccount.
8773
8785
  */
@@ -432,11 +432,6 @@ export interface paths {
432
432
  };
433
433
  requestBody?: never;
434
434
  responses: {
435
- /**
436
- * @description Non negative time in seconds (oracle precision).
437
- * In production within engine determinsitic code,
438
- * this time can only go forward and cannot be `Default`.
439
- */
440
435
  200: {
441
436
  headers: {
442
437
  [name: string]: unknown;
@@ -2672,6 +2667,49 @@ export interface paths {
2672
2667
  patch?: never;
2673
2668
  trace?: never;
2674
2669
  };
2670
+ "/account/claim-vault/history/transfer": {
2671
+ parameters: {
2672
+ query?: never;
2673
+ header?: never;
2674
+ path?: never;
2675
+ cookie?: never;
2676
+ };
2677
+ get: {
2678
+ parameters: {
2679
+ query?: {
2680
+ /** @description start with this timestamp (RFC3339); defaults to UNIX epoch start */
2681
+ since?: string;
2682
+ /** @description end with this timestamp (RFC3339); defaults to current date-time */
2683
+ until?: string;
2684
+ /** @description fetch results starting with this page; query starts with first entry if page isn't specified */
2685
+ startInclusive?: number;
2686
+ /** @description Query returns up to 50 trades in one go. */
2687
+ pageSize?: number;
2688
+ };
2689
+ header?: never;
2690
+ path?: never;
2691
+ cookie?: never;
2692
+ };
2693
+ requestBody?: never;
2694
+ responses: {
2695
+ 200: {
2696
+ headers: {
2697
+ [name: string]: unknown;
2698
+ };
2699
+ content: {
2700
+ "application/json": components["schemas"]["PageResult_for_uint64_and_TransferRow"];
2701
+ };
2702
+ };
2703
+ };
2704
+ };
2705
+ put?: never;
2706
+ post?: never;
2707
+ delete?: never;
2708
+ options?: never;
2709
+ head?: never;
2710
+ patch?: never;
2711
+ trace?: never;
2712
+ };
2675
2713
  "/account/{account_id}/history/liquidation": {
2676
2714
  parameters: {
2677
2715
  query?: never;
@@ -2762,6 +2800,40 @@ export interface paths {
2762
2800
  patch?: never;
2763
2801
  trace?: never;
2764
2802
  };
2803
+ "/account/claim-vault": {
2804
+ parameters: {
2805
+ query?: never;
2806
+ header?: never;
2807
+ path?: never;
2808
+ cookie?: never;
2809
+ };
2810
+ get: {
2811
+ parameters: {
2812
+ query?: never;
2813
+ header?: never;
2814
+ path?: never;
2815
+ cookie?: never;
2816
+ };
2817
+ requestBody?: never;
2818
+ responses: {
2819
+ 200: {
2820
+ headers: {
2821
+ [name: string]: unknown;
2822
+ };
2823
+ content: {
2824
+ "application/json": components["schemas"]["Balance"][];
2825
+ };
2826
+ };
2827
+ };
2828
+ };
2829
+ put?: never;
2830
+ post?: never;
2831
+ delete?: never;
2832
+ options?: never;
2833
+ head?: never;
2834
+ patch?: never;
2835
+ trace?: never;
2836
+ };
2765
2837
  "/accounts/liquidations/takes": {
2766
2838
  parameters: {
2767
2839
  query?: never;
@@ -4406,13 +4478,7 @@ export interface components {
4406
4478
  message: string;
4407
4479
  };
4408
4480
  ActionNotFound: null;
4409
- /**
4410
- * Format: uint64
4411
- * @description Non negative time in seconds (oracle precision).
4412
- * In production within engine determinsitic code,
4413
- * this time can only go forward and cannot be `Default`.
4414
- */
4415
- Timestamp: number;
4481
+ Timestamp: string;
4416
4482
  /**
4417
4483
  * @description Returns fee parts per market per balance change per action per account.
4418
4484
  * Fee is taken from user without return.
@@ -4779,17 +4845,6 @@ export interface components {
4779
4845
  */
4780
4846
  freeze_bps: number;
4781
4847
  };
4782
- /**
4783
- * Format: uint32
4784
- * @description Positive duration, in units.
4785
- * Zero is avoided as it will not lead to any change/progress,
4786
- * which is what time for in protocols.
4787
- * Is small enough to fit into any `Timestamp` change,
4788
- * big enough to fit hundreds of years of weighted aggregation.
4789
- * Also it uses 31 bit instead of 32, so can easy to do i32 arithmetics without any checkes on edge
4790
- * I tried to use existing primitices directly, but that leads to more boilerplate on caller side and less type safety
4791
- * (cannot limit what is possible with traits well).
4792
- */
4793
4848
  Duration: number;
4794
4849
  /**
4795
4850
  * @description Aggregate withdrawal bucket and epoch state
@@ -4810,7 +4865,7 @@ export interface components {
4810
4865
  */
4811
4866
  EpochId: number;
4812
4867
  /**
4813
- * @description Withdrawal buckets
4868
+ * @description Withdrawal buckets (accounting state)
4814
4869
  *
4815
4870
  * Buckets store `Q_current`, `Q_previous`, and `Q_claimable`
4816
4871
  */
@@ -5437,9 +5492,10 @@ export interface components {
5437
5492
  action_id: number;
5438
5493
  /** Format: uint64 */
5439
5494
  action_nonce: number;
5440
- timestamp: components["schemas"]["Timestamp"];
5495
+ timestamp: components["schemas"]["TimestampMillis"];
5441
5496
  paused: boolean;
5442
5497
  };
5498
+ TimestampMillis: string;
5443
5499
  StateHistInfo: {
5444
5500
  versions: [
5445
5501
  number,
@@ -5622,9 +5678,15 @@ export interface components {
5622
5678
  fromAccountId?: components["schemas"]["AccountId"] | null;
5623
5679
  /** @description `None` when the destination is the fee vault (`Transfer` with `AccountRef::Special`). */
5624
5680
  toAccountId?: components["schemas"]["AccountId"] | null;
5681
+ specialAccount?: components["schemas"]["SpecialAccount"] | null;
5625
5682
  tokenId: components["schemas"]["TokenId"];
5626
5683
  amount: components["schemas"]["PositiveBalanceMantissa"];
5627
5684
  };
5685
+ /**
5686
+ * @description Unlike normal account, this account does not issues any action nor has key.
5687
+ * @enum {string}
5688
+ */
5689
+ SpecialAccount: "FeeVault" | "ClaimVault";
5628
5690
  /**
5629
5691
  * Format: uint64
5630
5692
  * @description 63 bit positive number of tokens.
@@ -6266,7 +6328,6 @@ export interface components {
6266
6328
  */
6267
6329
  timestamp: number;
6268
6330
  };
6269
- /** Format: uint32 */
6270
6331
  DurationMillis: number;
6271
6332
  CandleUpdate: {
6272
6333
  /** @description TradingView resolution. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n1xyz/nord-ts",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Typescript for Nord",
5
5
  "keywords": [],
6
6
  "author": "",