ault-sdk-ts 0.4.1 → 0.5.0

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 (34) hide show
  1. package/README.md +1 -1
  2. package/dist/core/clob-gas.d.ts +1 -0
  3. package/dist/core/clob-msgs.d.ts +19 -2
  4. package/dist/core/clob-responses.d.ts +2 -1
  5. package/dist/core/manifest-types.d.ts +2 -0
  6. package/dist/core/network.d.ts +8 -6
  7. package/dist/eip712/msg.generated.d.ts +16 -7
  8. package/dist/high-level/types.d.ts +63 -3
  9. package/dist/high-level-client.d.ts +1 -1
  10. package/dist/index.cjs +3340 -1251
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.js +3342 -1253
  13. package/dist/index.js.map +1 -1
  14. package/dist/proto/gen/ault/accountx/v1/query.d.ts +20 -0
  15. package/dist/proto/gen/ault/accountx/v1/tx.d.ts +37 -0
  16. package/dist/proto/gen/ault/clob/v1/fee.d.ts +17 -1
  17. package/dist/proto/gen/ault/clob/v1/genesis.d.ts +9 -0
  18. package/dist/proto/gen/ault/clob/v1/query.d.ts +19 -1
  19. package/dist/proto/gen/ault/clob/v1/twap.d.ts +61 -0
  20. package/dist/proto/gen/ault/clob/v1/tx.d.ts +44 -0
  21. package/dist/proto/gen/ault/license/v1/tx.d.ts +9 -0
  22. package/dist/proto/gen/ault/market/v1/tx.d.ts +9 -0
  23. package/dist/proto/gen/ault/miner/v1/miner.d.ts +8 -1
  24. package/dist/proto/gen/ault/reward/v1/genesis.d.ts +10 -1
  25. package/dist/proto/gen/ault/reward/v1/query.d.ts +27 -1
  26. package/dist/proto/gen/ault/reward/v1/reward.d.ts +30 -0
  27. package/dist/proto/gen/ault/reward/v1/tx.d.ts +46 -1
  28. package/dist/proto/gen/ault/spot/v1/order.d.ts +2 -0
  29. package/dist/rest/clob.d.ts +9 -3
  30. package/dist/rest/dex-types.generated.d.ts +9 -6
  31. package/dist/rest/dex.generated.d.ts +8 -2
  32. package/package.json +1 -1
  33. package/dist/proto/gen/ault/common/v1/system.d.ts +0 -31
  34. package/dist/proto/gen/ault/systemtx/v1/genesis.d.ts +0 -37
@@ -589,6 +589,7 @@ export declare const ListOrdersResponseItem: zod.ZodObject<{
589
589
  type: zod.ZodEnum<{
590
590
  unknown: "unknown";
591
591
  limit: "limit";
592
+ twap: "twap";
592
593
  market: "market";
593
594
  }>;
594
595
  timeInForce: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -628,10 +629,10 @@ export declare const ListOrdersResponseItem: zod.ZodObject<{
628
629
  chain_type: zod.ZodEnum<{
629
630
  unknown: "unknown";
630
631
  limit: "limit";
632
+ twap: "twap";
631
633
  market: "market";
632
- scale: "scale";
633
- stop: "stop";
634
634
  }>;
635
+ close_reason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
635
636
  }, zod.z.core.$strip>;
636
637
  }, zod.z.core.$strip>;
637
638
  export declare const ListOrdersResponse: zod.ZodArray<zod.ZodObject<{
@@ -650,6 +651,7 @@ export declare const ListOrdersResponse: zod.ZodArray<zod.ZodObject<{
650
651
  type: zod.ZodEnum<{
651
652
  unknown: "unknown";
652
653
  limit: "limit";
654
+ twap: "twap";
653
655
  market: "market";
654
656
  }>;
655
657
  timeInForce: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -689,10 +691,10 @@ export declare const ListOrdersResponse: zod.ZodArray<zod.ZodObject<{
689
691
  chain_type: zod.ZodEnum<{
690
692
  unknown: "unknown";
691
693
  limit: "limit";
694
+ twap: "twap";
692
695
  market: "market";
693
- scale: "scale";
694
- stop: "stop";
695
696
  }>;
697
+ close_reason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
696
698
  }, zod.z.core.$strip>;
697
699
  }, zod.z.core.$strip>>;
698
700
  /**
@@ -727,6 +729,7 @@ export declare const GetOrderResponse: zod.ZodObject<{
727
729
  type: zod.ZodEnum<{
728
730
  unknown: "unknown";
729
731
  limit: "limit";
732
+ twap: "twap";
730
733
  market: "market";
731
734
  }>;
732
735
  timeInForce: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -766,10 +769,10 @@ export declare const GetOrderResponse: zod.ZodObject<{
766
769
  chain_type: zod.ZodEnum<{
767
770
  unknown: "unknown";
768
771
  limit: "limit";
772
+ twap: "twap";
769
773
  market: "market";
770
- scale: "scale";
771
- stop: "stop";
772
774
  }>;
775
+ close_reason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
773
776
  }, zod.z.core.$strip>;
774
777
  }, zod.z.core.$strip>;
775
778
  /**
@@ -44,8 +44,7 @@ export type OrderInfoChainType = (typeof OrderInfoChainType)[keyof typeof OrderI
44
44
  export declare const OrderInfoChainType: {
45
45
  readonly limit: "limit";
46
46
  readonly market: "market";
47
- readonly scale: "scale";
48
- readonly stop: "stop";
47
+ readonly twap: "twap";
49
48
  readonly unknown: "unknown";
50
49
  };
51
50
  /**
@@ -82,6 +81,11 @@ export interface OrderInfo {
82
81
  recognize.
83
82
  */
84
83
  chain_type: OrderInfoChainType;
84
+ /** Free-form chain close reason for a terminal order — e.g.
85
+ `completed`, `canceled`, `expired`, `ioc_canceled`, `self_trade`,
86
+ `post_only_rejected`, `replaced`. Null while the order is still live.
87
+ */
88
+ close_reason?: string | null;
85
89
  }
86
90
  /**
87
91
  * Exchange-specific extension on `TradeResponse`. Mirrors the
@@ -540,6 +544,7 @@ export type TradeResponseType = (typeof TradeResponseType)[keyof typeof TradeRes
540
544
  export declare const TradeResponseType: {
541
545
  readonly limit: "limit";
542
546
  readonly market: "market";
547
+ readonly twap: "twap";
543
548
  readonly unknown: "unknown";
544
549
  };
545
550
  export type TradeResponseSide = (typeof TradeResponseSide)[keyof typeof TradeResponseSide];
@@ -628,6 +633,7 @@ export type OrderResponseType = (typeof OrderResponseType)[keyof typeof OrderRes
628
633
  export declare const OrderResponseType: {
629
634
  readonly limit: "limit";
630
635
  readonly market: "market";
636
+ readonly twap: "twap";
631
637
  readonly unknown: "unknown";
632
638
  };
633
639
  export type OrderResponseSide = (typeof OrderResponseSide)[keyof typeof OrderResponseSide];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ault-sdk-ts",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "TypeScript SDK for the Ault blockchain with high-level transaction methods and REST query clients",
5
5
  "keywords": [
6
6
  "ault",
@@ -1,31 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "ault.common.v1";
3
- /**
4
- * ExtensionOptionsSystemTx is the tx extension option marking a system
5
- * transaction injected by the block proposer in PrepareProposal (e.g. oracle
6
- * price injection). It routes the tx to the dedicated prepare-proposal ante
7
- * handler; system txs are unsigned and fee-free by design and can never enter
8
- * through the mempool.
9
- */
10
- export interface ExtensionOptionsSystemTx {
11
- }
12
- export declare const ExtensionOptionsSystemTx: MessageFns<ExtensionOptionsSystemTx>;
13
- type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
14
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
15
- [K in keyof T]?: DeepPartial<T[K]>;
16
- } : Partial<T>;
17
- type KeysOfUnion<T> = T extends T ? keyof T : never;
18
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
19
- [K in keyof P]: Exact<P[K], I[K]>;
20
- } & {
21
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
22
- };
23
- export interface MessageFns<T> {
24
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
25
- decode(input: BinaryReader | Uint8Array, length?: number): T;
26
- fromJSON(object: any): T;
27
- toJSON(message: T): unknown;
28
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
29
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
30
- }
31
- export {};
@@ -1,37 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "ault.systemtx.v1";
3
- /**
4
- * GenesisState defines the systemtx module's genesis state.
5
- *
6
- * The systemtx module maintains a queue of EVM logs derived from non-EVM Cosmos
7
- * events (e.g. unbonding completion). The queue is normally drained each block
8
- * by the protocol system transaction, but any logs still queued at export time
9
- * must be carried across an upgrade so they are not lost.
10
- */
11
- export interface GenesisState {
12
- /**
13
- * system_tx_logs are the queued EVM logs, hex-encoded (JSON-marshaled
14
- * ethtypes.Log).
15
- */
16
- systemTxLogs: string[];
17
- }
18
- export declare const GenesisState: MessageFns<GenesisState>;
19
- type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
20
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
21
- [K in keyof T]?: DeepPartial<T[K]>;
22
- } : Partial<T>;
23
- type KeysOfUnion<T> = T extends T ? keyof T : never;
24
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
25
- [K in keyof P]: Exact<P[K], I[K]>;
26
- } & {
27
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
28
- };
29
- export interface MessageFns<T> {
30
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
31
- decode(input: BinaryReader | Uint8Array, length?: number): T;
32
- fromJSON(object: any): T;
33
- toJSON(message: T): unknown;
34
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
35
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
36
- }
37
- export {};