ault-sdk-ts 0.0.2-alpha.8 → 0.3.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 (90) hide show
  1. package/README.md +378 -50
  2. package/dist/agent/attach.d.ts +26 -0
  3. package/dist/agent/sign-and-broadcast.d.ts +9 -2
  4. package/dist/agent/tx/clob.d.ts +8 -1
  5. package/dist/agent/tx-executor.d.ts +24 -2
  6. package/dist/client.d.ts +6 -7
  7. package/dist/core/clob-gas.d.ts +28 -0
  8. package/dist/core/clob-msgs.d.ts +31 -5
  9. package/dist/core/clob-responses.d.ts +20 -0
  10. package/dist/core/cloid.d.ts +4 -0
  11. package/dist/core/errors.d.ts +79 -0
  12. package/dist/core/manifest-fetcher.d.ts +12 -0
  13. package/dist/core/manifest-resolver.d.ts +131 -0
  14. package/dist/core/manifest-types.d.ts +104 -0
  15. package/dist/core/network.d.ts +42 -13
  16. package/dist/eip712/msg.generated.d.ts +26 -10
  17. package/dist/eip712/registry.d.ts +2 -0
  18. package/dist/eip712/sign-and-broadcast.d.ts +27 -3
  19. package/dist/high-level/cloid-lookup.d.ts +9 -0
  20. package/dist/high-level/create-client.d.ts +15 -11
  21. package/dist/high-level/tx/accountx.d.ts +3 -0
  22. package/dist/high-level/tx/agent.d.ts +1 -1
  23. package/dist/high-level/tx/clob.d.ts +1 -1
  24. package/dist/high-level/tx/context.d.ts +8 -0
  25. package/dist/high-level/tx/license.d.ts +1 -1
  26. package/dist/high-level/tx/miner.d.ts +1 -1
  27. package/dist/high-level/tx/reward.d.ts +1 -1
  28. package/dist/high-level/tx/staking.d.ts +1 -1
  29. package/dist/high-level/tx-executor.d.ts +23 -3
  30. package/dist/high-level/types.d.ts +356 -100
  31. package/dist/high-level-client.d.ts +1 -1
  32. package/dist/index.cjs +15590 -7271
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.d.ts +10 -1
  35. package/dist/index.js +15699 -7405
  36. package/dist/index.js.map +1 -1
  37. package/dist/proto/gen/ault/accountx/v1/genesis.d.ts +38 -0
  38. package/dist/proto/gen/ault/accountx/v1/params.d.ts +32 -0
  39. package/dist/proto/gen/ault/accountx/v1/query.d.ts +88 -0
  40. package/dist/proto/gen/ault/accountx/v1/tx.d.ts +52 -0
  41. package/dist/proto/gen/ault/agent/v1/tx.d.ts +4 -5
  42. package/dist/proto/gen/ault/authority/v1/authority.d.ts +2 -0
  43. package/dist/proto/gen/ault/clob/v1/genesis.d.ts +6 -5
  44. package/dist/proto/gen/ault/clob/v1/query.d.ts +14 -0
  45. package/dist/proto/gen/ault/clob/v1/tx.d.ts +30 -3
  46. package/dist/proto/gen/ault/common/v1/system.d.ts +31 -0
  47. package/dist/proto/gen/ault/license/v1/genesis.d.ts +1 -26
  48. package/dist/proto/gen/ault/license/v1/license.d.ts +0 -26
  49. package/dist/proto/gen/ault/license/v1/query.d.ts +44 -18
  50. package/dist/proto/gen/ault/market/v1/market.d.ts +1 -0
  51. package/dist/proto/gen/ault/market/v1/tx.d.ts +9 -0
  52. package/dist/proto/gen/ault/miner/v1/genesis.d.ts +52 -84
  53. package/dist/proto/gen/ault/miner/v1/miner.d.ts +10 -45
  54. package/dist/proto/gen/ault/miner/v1/query.d.ts +0 -13
  55. package/dist/proto/gen/ault/spot/v1/genesis.d.ts +2 -2
  56. package/dist/proto/gen/ault/spot/v1/order.d.ts +12 -4
  57. package/dist/proto/gen/ault/systemtx/v1/genesis.d.ts +37 -0
  58. package/dist/proto/gen/ault/tokenregistry/v1/genesis.d.ts +3 -3
  59. package/dist/proto/gen/ault/tokenregistry/v1/query.d.ts +2 -2
  60. package/dist/proto/gen/ault/tokenregistry/v1/tokenregistry.d.ts +24 -15
  61. package/dist/proto/gen/ault/tokenregistry/v1/tx.d.ts +1 -16
  62. package/dist/proto/gen/cosmos/bank/v1beta1/bank.d.ts +119 -0
  63. package/dist/proto/gen/cosmos/bank/v1beta1/query.d.ts +264 -0
  64. package/dist/proto/gen/cosmos/distribution/v1beta1/query.d.ts +203 -0
  65. package/dist/proto/gen/cosmos/query/v1/query.d.ts +1 -0
  66. package/dist/proto/gen/cosmos/staking/v1beta1/query.d.ts +275 -0
  67. package/dist/proto/gen/google/api/http.d.ts +20 -28
  68. package/dist/proto/gen/tendermint/abci/types.d.ts +23 -0
  69. package/dist/proto/tx-decode.d.ts +18 -0
  70. package/dist/rest/accountx.d.ts +8 -0
  71. package/dist/rest/bank.d.ts +15 -0
  72. package/dist/rest/clob.d.ts +9 -1
  73. package/dist/rest/context.d.ts +4 -4
  74. package/dist/rest/dex-types.generated.d.ts +434 -120
  75. package/dist/rest/dex.d.ts +7 -0
  76. package/dist/rest/dex.generated.d.ts +657 -83
  77. package/dist/rest/feemarket.d.ts +114 -0
  78. package/dist/rest/license.d.ts +21 -59
  79. package/dist/rest/miner.d.ts +16 -46
  80. package/dist/rest/portfolio.d.ts +103 -0
  81. package/dist/rest/staking.d.ts +14 -28
  82. package/dist/rest/tokenregistry.d.ts +3 -1
  83. package/dist/rest/types.d.ts +82 -858
  84. package/dist/utils/address.d.ts +2 -0
  85. package/dist/utils/opaque-id.d.ts +25 -0
  86. package/dist/utils/tx-hash.d.ts +1 -0
  87. package/dist/ws/client.d.ts +45 -5
  88. package/dist/ws/types.d.ts +379 -34
  89. package/package.json +2 -1
  90. package/dist/agent/create-agent-client.d.ts +0 -3
@@ -0,0 +1,38 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params } from "./params";
3
+ export declare const protobufPackage = "ault.accountx.v1";
4
+ /** GenesisState defines the accountx module's genesis state. */
5
+ export interface GenesisState {
6
+ /** params defines the module parameters at genesis. */
7
+ params: Params | undefined;
8
+ /** labels is the list of all account labels at genesis. */
9
+ labels: AccountLabel[];
10
+ }
11
+ /** AccountLabel defines the label for an account address. */
12
+ export interface AccountLabel {
13
+ /** address is the bech32-encoded address of the account. */
14
+ address: string;
15
+ /** label is the bitwise feature flags for the account. */
16
+ label: number;
17
+ }
18
+ export declare const GenesisState: MessageFns<GenesisState>;
19
+ export declare const AccountLabel: MessageFns<AccountLabel>;
20
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
21
+ 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 {} ? {
22
+ [K in keyof T]?: DeepPartial<T[K]>;
23
+ } : Partial<T>;
24
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
25
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
26
+ [K in keyof P]: Exact<P[K], I[K]>;
27
+ } & {
28
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
29
+ };
30
+ export interface MessageFns<T> {
31
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
32
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
33
+ fromJSON(object: any): T;
34
+ toJSON(message: T): unknown;
35
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
36
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
37
+ }
38
+ export {};
@@ -0,0 +1,32 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Coin } from "../../../cosmos/base/v1beta1/coin";
3
+ export declare const protobufPackage = "ault.accountx.v1";
4
+ /** Params defines the configurable parameters for the accountx module */
5
+ export interface Params {
6
+ /**
7
+ * allowed_fees is the list of accepted fee options for opening an account.
8
+ * Each coin specifies a denom and the required amount.
9
+ * Example: [{ denom: "uusdc", amount: "10000000" }]
10
+ */
11
+ allowedFees: Coin[];
12
+ }
13
+ export declare const Params: MessageFns<Params>;
14
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
15
+ 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 {} ? {
16
+ [K in keyof T]?: DeepPartial<T[K]>;
17
+ } : Partial<T>;
18
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
19
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
20
+ [K in keyof P]: Exact<P[K], I[K]>;
21
+ } & {
22
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
23
+ };
24
+ export interface MessageFns<T> {
25
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
26
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
27
+ fromJSON(object: any): T;
28
+ toJSON(message: T): unknown;
29
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
30
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
31
+ }
32
+ export {};
@@ -0,0 +1,88 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params } from "./params";
3
+ export declare const protobufPackage = "ault.accountx.v1";
4
+ /** QueryLabelRequest is the request type for the Query/Label RPC method. */
5
+ export interface QueryLabelRequest {
6
+ /** address is the bech32-encoded address to query the label for. */
7
+ address: string;
8
+ }
9
+ /** QueryLabelResponse is the response type for the Query/Label RPC method. */
10
+ export interface QueryLabelResponse {
11
+ /** label is the bitwise feature flags for the address. */
12
+ label: number;
13
+ }
14
+ /** QueryIsOpenedRequest is the request type for the Query/IsOpened RPC method. */
15
+ export interface QueryIsOpenedRequest {
16
+ /** address is the bech32-encoded address to check. */
17
+ address: string;
18
+ }
19
+ /** QueryIsOpenedResponse is the response type for the Query/IsOpened RPC method. */
20
+ export interface QueryIsOpenedResponse {
21
+ /** opened indicates whether the account has the open flag set. */
22
+ opened: boolean;
23
+ }
24
+ /** QueryParamsRequest is the request type for the Query/Params RPC method. */
25
+ export interface QueryParamsRequest {
26
+ }
27
+ /** QueryParamsResponse is the response type for the Query/Params RPC method. */
28
+ export interface QueryParamsResponse {
29
+ /** params defines the current module parameters. */
30
+ params: Params | undefined;
31
+ }
32
+ /**
33
+ * QueryFeeFreeGasLimitsRequest is the request type for the
34
+ * Query/FeeFreeGasLimits RPC method.
35
+ */
36
+ export interface QueryFeeFreeGasLimitsRequest {
37
+ }
38
+ /**
39
+ * QueryFeeFreeGasLimitsResponse is the response type for the
40
+ * Query/FeeFreeGasLimits RPC method.
41
+ */
42
+ export interface QueryFeeFreeGasLimitsResponse {
43
+ /** gas_limits defines the fee-free minimum gas settings by message. */
44
+ gasLimits: FeeFreeGasLimit[];
45
+ }
46
+ /** FeeFreeGasLimit defines the minimum gas setting for a fee-free message. */
47
+ export interface FeeFreeGasLimit {
48
+ /** msg_type_url is the protobuf type URL of the fee-free message. */
49
+ msgTypeUrl: string;
50
+ /**
51
+ * base_gas_limit is the fixed gas limit, or the constant term for messages
52
+ * computed as base + per_unit * n.
53
+ */
54
+ baseGasLimit: bigint;
55
+ /**
56
+ * per_unit_gas_limit is the per-item term for messages computed as base +
57
+ * per_unit * n.
58
+ */
59
+ perUnitGasLimit: bigint;
60
+ }
61
+ export declare const QueryLabelRequest: MessageFns<QueryLabelRequest>;
62
+ export declare const QueryLabelResponse: MessageFns<QueryLabelResponse>;
63
+ export declare const QueryIsOpenedRequest: MessageFns<QueryIsOpenedRequest>;
64
+ export declare const QueryIsOpenedResponse: MessageFns<QueryIsOpenedResponse>;
65
+ export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
66
+ export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
67
+ export declare const QueryFeeFreeGasLimitsRequest: MessageFns<QueryFeeFreeGasLimitsRequest>;
68
+ export declare const QueryFeeFreeGasLimitsResponse: MessageFns<QueryFeeFreeGasLimitsResponse>;
69
+ export declare const FeeFreeGasLimit: MessageFns<FeeFreeGasLimit>;
70
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
71
+ 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 {} ? {
72
+ [K in keyof T]?: DeepPartial<T[K]>;
73
+ } : Partial<T>;
74
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
75
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
76
+ [K in keyof P]: Exact<P[K], I[K]>;
77
+ } & {
78
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
79
+ };
80
+ export interface MessageFns<T> {
81
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
82
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
83
+ fromJSON(object: any): T;
84
+ toJSON(message: T): unknown;
85
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
86
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
87
+ }
88
+ export {};
@@ -0,0 +1,52 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Params } from "./params";
3
+ export declare const protobufPackage = "ault.accountx.v1";
4
+ /** MsgOpenAccount opens an account for fee-free message access. */
5
+ export interface MsgOpenAccount {
6
+ /** sender is the fee payer */
7
+ sender: string;
8
+ /** account is the account to be opened. */
9
+ account: string;
10
+ /**
11
+ * fee_denom is the denomination of the opening fee to pay (must be in
12
+ * allowed_fees)
13
+ */
14
+ feeDenom: string;
15
+ }
16
+ export interface MsgOpenAccountResponse {
17
+ }
18
+ /**
19
+ * MsgUpdateParams is the request type for updating module parameters.
20
+ * Can only be executed via governance proposal.
21
+ */
22
+ export interface MsgUpdateParams {
23
+ /** authority is the address of the governance account */
24
+ authority: string;
25
+ /** params defines the new parameter values to set */
26
+ params: Params | undefined;
27
+ }
28
+ export interface MsgUpdateParamsResponse {
29
+ }
30
+ export declare const MsgOpenAccount: MessageFns<MsgOpenAccount>;
31
+ export declare const MsgOpenAccountResponse: MessageFns<MsgOpenAccountResponse>;
32
+ export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
33
+ export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
34
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
35
+ 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 {} ? {
36
+ [K in keyof T]?: DeepPartial<T[K]>;
37
+ } : Partial<T>;
38
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
39
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
40
+ [K in keyof P]: Exact<P[K], I[K]>;
41
+ } & {
42
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
43
+ };
44
+ export interface MessageFns<T> {
45
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
46
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
47
+ fromJSON(object: any): T;
48
+ toJSON(message: T): unknown;
49
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
50
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
51
+ }
52
+ export {};
@@ -1,6 +1,5 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { Any } from "../../../google/protobuf/any";
3
- import { Duration } from "../../../google/protobuf/duration";
4
3
  import { Agent } from "./agent";
5
4
  import { Params } from "./params";
6
5
  export declare const protobufPackage = "ault.agent.v1";
@@ -23,11 +22,11 @@ export interface MsgApproveAgent {
23
22
  */
24
23
  name: string;
25
24
  /**
26
- * expiry is the duration from now until the agent authorization expires.
27
- * If not provided, params.default_expiry is used. Cannot exceed
28
- * params.max_expiry.
25
+ * expires_at is the absolute timestamp when the agent authorization expires.
26
+ * If not provided, block_time + params.default_expiry is used. Cannot exceed
27
+ * block_time + params.max_expiry.
29
28
  */
30
- expiry: Duration | undefined;
29
+ expiresAt: Date | undefined;
31
30
  }
32
31
  export interface MsgApproveAgentResponse {
33
32
  /** agent is the newly created or updated agent record. */
@@ -9,6 +9,8 @@ export declare enum Role {
9
9
  ROLE_RISK_MANAGER = 2,
10
10
  /** ROLE_REWARD_MANAGER - ROLE_REWARD_MANAGER manages reward-related operations. */
11
11
  ROLE_REWARD_MANAGER = 3,
12
+ /** ROLE_REVOKER - ROLE_REVOKER can call MsgRevokeRole without a governance proposal. */
13
+ ROLE_REVOKER = 4,
12
14
  UNRECOGNIZED = -1
13
15
  }
14
16
  export declare function roleFromJSON(object: any): Role;
@@ -9,8 +9,8 @@ export interface GenesisState {
9
9
  totalOrdersByOrderer: TotalOrdersByOrdererEntry[];
10
10
  /** Orders by deadline index entries: deadline_unix_nano + order_id */
11
11
  ordersByDeadlineIndex: OrdersByDeadlineIndexEntry[];
12
- /** Closed orders index entries: market_id + order_id */
13
- closedOrdersIndex: ClosedOrdersIndexEntry[];
12
+ /** Cloid index entries: orderer + cloid -> order_id */
13
+ ordersByCloid: OrdersByCloidEntry[];
14
14
  }
15
15
  export interface OrderBookIndexEntry {
16
16
  marketId: Uint8Array;
@@ -26,15 +26,16 @@ export interface OrdersByDeadlineIndexEntry {
26
26
  deadlineUnixNano: bigint;
27
27
  orderId: Uint8Array;
28
28
  }
29
- export interface ClosedOrdersIndexEntry {
30
- marketId: Uint8Array;
29
+ export interface OrdersByCloidEntry {
30
+ orderer: string;
31
+ cloid: Uint8Array;
31
32
  orderId: Uint8Array;
32
33
  }
33
34
  export declare const GenesisState: MessageFns<GenesisState>;
34
35
  export declare const OrderBookIndexEntry: MessageFns<OrderBookIndexEntry>;
35
36
  export declare const TotalOrdersByOrdererEntry: MessageFns<TotalOrdersByOrdererEntry>;
36
37
  export declare const OrdersByDeadlineIndexEntry: MessageFns<OrdersByDeadlineIndexEntry>;
37
- export declare const ClosedOrdersIndexEntry: MessageFns<ClosedOrdersIndexEntry>;
38
+ export declare const OrdersByCloidEntry: MessageFns<OrdersByCloidEntry>;
38
39
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
39
40
  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 {} ? {
40
41
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -1,10 +1,15 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
3
3
  import { FeeInfo } from "./fee";
4
+ import { Params } from "./params";
4
5
  export declare const protobufPackage = "ault.clob.v1";
5
6
  export interface QueryOrderRequest {
6
7
  orderId: Uint8Array;
7
8
  }
9
+ export interface QueryOrderByCloidRequest {
10
+ orderer: string;
11
+ cloid: Uint8Array;
12
+ }
8
13
  export interface QueryOrderResponse {
9
14
  order: OrderResponse | undefined;
10
15
  }
@@ -16,6 +21,11 @@ export interface QueryOrdersResponse {
16
21
  orders: OrderResponse[];
17
22
  pagination: PageResponse | undefined;
18
23
  }
24
+ export interface QueryParamsRequest {
25
+ }
26
+ export interface QueryParamsResponse {
27
+ params: Params | undefined;
28
+ }
19
29
  export interface OrderResponse {
20
30
  id: Uint8Array;
21
31
  orderer: string;
@@ -29,11 +39,15 @@ export interface OrderResponse {
29
39
  deadline: Date | undefined;
30
40
  postOnly: boolean;
31
41
  feeInfo: FeeInfo | undefined;
42
+ cloid: Uint8Array;
32
43
  }
33
44
  export declare const QueryOrderRequest: MessageFns<QueryOrderRequest>;
45
+ export declare const QueryOrderByCloidRequest: MessageFns<QueryOrderByCloidRequest>;
34
46
  export declare const QueryOrderResponse: MessageFns<QueryOrderResponse>;
35
47
  export declare const QueryOrdersRequest: MessageFns<QueryOrdersRequest>;
36
48
  export declare const QueryOrdersResponse: MessageFns<QueryOrdersResponse>;
49
+ export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
50
+ export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
37
51
  export declare const OrderResponse: MessageFns<OrderResponse>;
38
52
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
39
53
  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 {} ? {
@@ -1,6 +1,5 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { Coin } from "../../../cosmos/base/v1beta1/coin";
3
- import { Duration } from "../../../google/protobuf/duration";
4
3
  import { Params } from "./params";
5
4
  export declare const protobufPackage = "ault.clob.v1";
6
5
  export interface MsgPlaceLimitOrder {
@@ -9,7 +8,8 @@ export interface MsgPlaceLimitOrder {
9
8
  isBuy: boolean;
10
9
  price: string;
11
10
  quantity: string;
12
- lifespan: Duration | undefined;
11
+ /** deadline is the absolute time when the order expires. */
12
+ deadline: Date | undefined;
13
13
  postOnly: boolean;
14
14
  /** builder_address identifies the builder for this order (optional). */
15
15
  builderAddress: string;
@@ -18,10 +18,12 @@ export interface MsgPlaceLimitOrder {
18
18
  * optional).
19
19
  */
20
20
  builderFeeRate: string;
21
+ cloid: Uint8Array;
21
22
  }
22
23
  export interface MsgPlaceLimitOrderResponse {
23
24
  orderId: Uint8Array;
24
25
  escrowedAmount: Coin | undefined;
26
+ cloid: Uint8Array;
25
27
  }
26
28
  export interface MsgPlaceMarketOrder {
27
29
  sender: string;
@@ -37,10 +39,12 @@ export interface MsgPlaceMarketOrder {
37
39
  * optional).
38
40
  */
39
41
  builderFeeRate: string;
42
+ cloid: Uint8Array;
40
43
  }
41
44
  export interface MsgPlaceMarketOrderResponse {
42
45
  orderId: Uint8Array;
43
46
  escrowedAmount: Coin | undefined;
47
+ cloid: Uint8Array;
44
48
  }
45
49
  export interface MsgCancelOrders {
46
50
  sender: string;
@@ -50,6 +54,24 @@ export interface MsgCancelOrdersResponse {
50
54
  succeeded: Uint8Array[];
51
55
  failed: Uint8Array[];
52
56
  }
57
+ export interface MsgModifyOrders {
58
+ sender: string;
59
+ orders: ModifyOrder[];
60
+ }
61
+ export interface ModifyOrder {
62
+ orderId: Uint8Array;
63
+ newPrice: string;
64
+ newQuantity: string;
65
+ }
66
+ export interface MsgModifyOrdersResponse {
67
+ succeeded: ModifyOrderResult[];
68
+ failed: Uint8Array[];
69
+ }
70
+ export interface ModifyOrderResult {
71
+ oldOrderId: Uint8Array;
72
+ newOrderId: Uint8Array;
73
+ cloid: Uint8Array;
74
+ }
53
75
  export interface MsgPlaceScaleOrder {
54
76
  sender: string;
55
77
  marketId: Uint8Array;
@@ -59,7 +81,8 @@ export interface MsgPlaceScaleOrder {
59
81
  totalQuantity: string;
60
82
  /** In basis points (bps); sum must equal 10000 */
61
83
  weights: number[];
62
- lifespan: Duration | undefined;
84
+ /** deadline is the absolute time when the orders expire. */
85
+ deadline: Date | undefined;
63
86
  postOnly: boolean;
64
87
  /** builder_address identifies the builder for this order (optional). */
65
88
  builderAddress: string;
@@ -90,6 +113,10 @@ export declare const MsgPlaceMarketOrder: MessageFns<MsgPlaceMarketOrder>;
90
113
  export declare const MsgPlaceMarketOrderResponse: MessageFns<MsgPlaceMarketOrderResponse>;
91
114
  export declare const MsgCancelOrders: MessageFns<MsgCancelOrders>;
92
115
  export declare const MsgCancelOrdersResponse: MessageFns<MsgCancelOrdersResponse>;
116
+ export declare const MsgModifyOrders: MessageFns<MsgModifyOrders>;
117
+ export declare const ModifyOrder: MessageFns<ModifyOrder>;
118
+ export declare const MsgModifyOrdersResponse: MessageFns<MsgModifyOrdersResponse>;
119
+ export declare const ModifyOrderResult: MessageFns<ModifyOrderResult>;
93
120
  export declare const MsgPlaceScaleOrder: MessageFns<MsgPlaceScaleOrder>;
94
121
  export declare const MsgPlaceScaleOrderResponse: MessageFns<MsgPlaceScaleOrderResponse>;
95
122
  export declare const ScaleOrderResult: MessageFns<ScaleOrderResult>;
@@ -0,0 +1,31 @@
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,5 +1,5 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { LicenseStatus, Params, ProposalSnapshot, TransferRecord } from "./license";
2
+ import { LicenseStatus, Params } from "./license";
3
3
  export declare const protobufPackage = "ault.license.v1";
4
4
  /** GenesisState defines the license module's genesis state */
5
5
  export interface GenesisState {
@@ -38,12 +38,6 @@ export interface GenesisState {
38
38
  * members
39
39
  */
40
40
  totalCapped: bigint;
41
- /** proposal_snapshots stores voting power state for active proposals */
42
- proposalSnapshots: ProposalSnapshotEntry[];
43
- /** vote_voting_powers stores cached voting power for votes */
44
- voteVotingPowers: VoteVotingPowerEntry[];
45
- /** transfer_records stores license transfer history for snapshot queries */
46
- transferRecords: TransferRecord[];
47
41
  /** owner_active_counts maps owner addresses to their active license counts */
48
42
  ownerActiveCounts: OwnerActiveCount[];
49
43
  }
@@ -68,22 +62,6 @@ export interface OwnerActiveCount {
68
62
  /** count is the number of active licenses owned */
69
63
  count: bigint;
70
64
  }
71
- /** ProposalSnapshotEntry represents a proposal snapshot for genesis export */
72
- export interface ProposalSnapshotEntry {
73
- /** proposal_id is the governance proposal ID */
74
- proposalId: bigint;
75
- /** snapshot is the voting power snapshot */
76
- snapshot: ProposalSnapshot | undefined;
77
- }
78
- /** VoteVotingPowerEntry represents a vote's voting power for genesis export */
79
- export interface VoteVotingPowerEntry {
80
- /** proposal_id is the governance proposal ID */
81
- proposalId: bigint;
82
- /** voter is the voter address */
83
- voter: string;
84
- /** voting_power is the voter's capped voting power at snapshot time */
85
- votingPower: bigint;
86
- }
87
65
  /** GenesisLicense defines a soul-bound token license */
88
66
  export interface GenesisLicense {
89
67
  /** start_id is the unique identifier of the first license */
@@ -102,7 +80,6 @@ export interface GenesisLicense {
102
80
  createdAt: Date | undefined;
103
81
  /**
104
82
  * revoked_at is the timestamp when the license was revoked.
105
- * Used for snapshot-based governance voting power calculation.
106
83
  * Nil means the license has never been revoked.
107
84
  */
108
85
  revokedAt: Date | undefined;
@@ -116,8 +93,6 @@ export declare const GenesisState: MessageFns<GenesisState>;
116
93
  export declare const OwnerCount: MessageFns<OwnerCount>;
117
94
  export declare const OwnerIndex: MessageFns<OwnerIndex>;
118
95
  export declare const OwnerActiveCount: MessageFns<OwnerActiveCount>;
119
- export declare const ProposalSnapshotEntry: MessageFns<ProposalSnapshotEntry>;
120
- export declare const VoteVotingPowerEntry: MessageFns<VoteVotingPowerEntry>;
121
96
  export declare const GenesisLicense: MessageFns<GenesisLicense>;
122
97
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
123
98
  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 {} ? {
@@ -30,7 +30,6 @@ export interface License {
30
30
  createdAt: Date | undefined;
31
31
  /**
32
32
  * revoked_at is the timestamp when the license was revoked.
33
- * Used for snapshot-based governance voting power calculation.
34
33
  * Nil means the license has never been revoked.
35
34
  */
36
35
  revokedAt: Date | undefined;
@@ -103,33 +102,8 @@ export interface Params {
103
102
  */
104
103
  maxVotingPowerPerAddress: bigint;
105
104
  }
106
- /** TransferRecord records a license transfer for snapshot-based governance */
107
- export interface TransferRecord {
108
- /** license_id is the ID of the transferred license */
109
- licenseId: bigint;
110
- /** timestamp is when the transfer occurred */
111
- timestamp: Date | undefined;
112
- /** from_owner is the previous owner */
113
- fromOwner: string;
114
- /** to_owner is the new owner */
115
- toOwner: string;
116
- }
117
- /** ProposalSnapshot stores voting power state captured at proposal creation */
118
- export interface ProposalSnapshot {
119
- /** timestamp is when the snapshot was taken (proposal submission time) */
120
- timestamp: Date | undefined;
121
- /**
122
- * total_capped is the sum of min(active_licenses_i, cap) for all approved
123
- * members at snapshot time
124
- */
125
- totalCapped: bigint;
126
- /** cap is the MaxVotingPowerPerAddress parameter value at snapshot time */
127
- cap: bigint;
128
- }
129
105
  export declare const License: MessageFns<License>;
130
106
  export declare const Params: MessageFns<Params>;
131
- export declare const TransferRecord: MessageFns<TransferRecord>;
132
- export declare const ProposalSnapshot: MessageFns<ProposalSnapshot>;
133
107
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
134
108
  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 {} ? {
135
109
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -200,23 +200,46 @@ export interface QueryIsKYCApproverResponse {
200
200
  /** is_approver indicates whether the address is a KYC approver */
201
201
  isApprover: boolean;
202
202
  }
203
- /**
204
- * QueryActiveLicenseCountAtRequest is the request for the ActiveLicenseCountAt
205
- * RPC method
206
- */
207
- export interface QueryActiveLicenseCountAtRequest {
208
- /** owner is the address to query license count for */
209
- owner: string;
210
- /** snapshot_time is the time to query at */
211
- snapshotTime: Date | undefined;
203
+ /** QueryVotingPowersRequest is the request for the VotingPowers RPC method */
204
+ export interface QueryVotingPowersRequest {
205
+ /** pagination defines the pagination in the request */
206
+ pagination: PageRequest | undefined;
212
207
  }
213
- /**
214
- * QueryActiveLicenseCountAtResponse is the response for the
215
- * ActiveLicenseCountAt RPC method
216
- */
217
- export interface QueryActiveLicenseCountAtResponse {
218
- /** count is the number of active licenses owned at the snapshot time */
219
- count: bigint;
208
+ /** VotingPower is the voting power of an approved DAO member */
209
+ export interface VotingPower {
210
+ /** address is the address of the approved member */
211
+ address: string;
212
+ /** active_license_count is the number of active licenses owned by the member */
213
+ activeLicenseCount: bigint;
214
+ /**
215
+ * voting_power is the member's voting power, which is the active license
216
+ * count capped by the max voting power per address
217
+ */
218
+ votingPower: bigint;
219
+ }
220
+ /** QueryVotingPowersResponse is the response for the VotingPowers RPC method */
221
+ export interface QueryVotingPowersResponse {
222
+ /** voting_powers is the list of voting powers of approved members */
223
+ votingPowers: VotingPower[];
224
+ /** total_voting_power is the total voting power of all approved members */
225
+ totalVotingPower: bigint;
226
+ /** pagination defines the pagination in the response */
227
+ pagination: PageResponse | undefined;
228
+ }
229
+ /** QueryVotingPowerRequest is the request for the VotingPower RPC method */
230
+ export interface QueryVotingPowerRequest {
231
+ /** address is the address of the approved member */
232
+ address: string;
233
+ }
234
+ /** QueryVotingPowerResponse is the response for the VotingPower RPC method */
235
+ export interface QueryVotingPowerResponse {
236
+ /** active_license_count is the number of active licenses owned by the member */
237
+ activeLicenseCount: bigint;
238
+ /**
239
+ * voting_power is the member's voting power, which is the active license
240
+ * count capped by the max voting power per address
241
+ */
242
+ votingPower: bigint;
220
243
  }
221
244
  export declare const QueryLicenseRequest: MessageFns<QueryLicenseRequest>;
222
245
  export declare const QueryLicenseResponse: MessageFns<QueryLicenseResponse>;
@@ -250,8 +273,11 @@ export declare const QueryIsApprovedMemberRequest: MessageFns<QueryIsApprovedMem
250
273
  export declare const QueryIsApprovedMemberResponse: MessageFns<QueryIsApprovedMemberResponse>;
251
274
  export declare const QueryIsKYCApproverRequest: MessageFns<QueryIsKYCApproverRequest>;
252
275
  export declare const QueryIsKYCApproverResponse: MessageFns<QueryIsKYCApproverResponse>;
253
- export declare const QueryActiveLicenseCountAtRequest: MessageFns<QueryActiveLicenseCountAtRequest>;
254
- export declare const QueryActiveLicenseCountAtResponse: MessageFns<QueryActiveLicenseCountAtResponse>;
276
+ export declare const QueryVotingPowersRequest: MessageFns<QueryVotingPowersRequest>;
277
+ export declare const VotingPower: MessageFns<VotingPower>;
278
+ export declare const QueryVotingPowersResponse: MessageFns<QueryVotingPowersResponse>;
279
+ export declare const QueryVotingPowerRequest: MessageFns<QueryVotingPowerRequest>;
280
+ export declare const QueryVotingPowerResponse: MessageFns<QueryVotingPowerResponse>;
255
281
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
256
282
  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 {} ? {
257
283
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -40,6 +40,7 @@ export interface MarketResponse {
40
40
  lastPrice: string;
41
41
  lastMatchingHeight: bigint;
42
42
  halted: boolean;
43
+ deployer: string;
43
44
  }
44
45
  export declare const Market: MessageFns<Market>;
45
46
  export declare const MarketState: MessageFns<MarketState>;
@@ -8,9 +8,18 @@ export interface MsgCreateMarket {
8
8
  baseDenom: string;
9
9
  quoteDenom: string;
10
10
  tickPrecision: number;
11
+ makerFeeRate: string;
12
+ takerFeeRate: string;
11
13
  }
12
14
  export interface MsgCreateMarketResponse {
13
15
  marketId: Uint8Array;
16
+ /**
17
+ * maker_fee_rate is the resolved maker fee rate the market was created with
18
+ * (the provided override, or the module default when none was given).
19
+ */
20
+ makerFeeRate: string;
21
+ /** taker_fee_rate is the resolved taker fee rate the market was created with. */
22
+ takerFeeRate: string;
14
23
  }
15
24
  export interface MarketUpdate {
16
25
  marketId: Uint8Array;