ault-sdk-ts 0.0.2-alpha.10
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.
- package/LICENSE +21 -0
- package/README.md +923 -0
- package/dist/agent/create-agent-client.d.ts +3 -0
- package/dist/agent/sign-and-broadcast.d.ts +38 -0
- package/dist/agent/tx/clob.d.ts +7 -0
- package/dist/agent/tx-executor.d.ts +17 -0
- package/dist/client.d.ts +61 -0
- package/dist/core/address.d.ts +14 -0
- package/dist/core/base64.d.ts +2 -0
- package/dist/core/clob-msgs.d.ts +33 -0
- package/dist/core/errors.d.ts +17 -0
- package/dist/core/http.d.ts +14 -0
- package/dist/core/network.d.ts +59 -0
- package/dist/core/pagination.d.ts +14 -0
- package/dist/core/query.d.ts +5 -0
- package/dist/core/with-status-fallback.d.ts +5 -0
- package/dist/eip712/builder.d.ts +45 -0
- package/dist/eip712/field-order.d.ts +2 -0
- package/dist/eip712/msg-encoders.generated.d.ts +1 -0
- package/dist/eip712/msg.generated.d.ts +109 -0
- package/dist/eip712/registry.d.ts +36 -0
- package/dist/eip712/registry.generated.d.ts +2 -0
- package/dist/eip712/sign-and-broadcast.d.ts +55 -0
- package/dist/eip712/signers.d.ts +83 -0
- package/dist/eip712/types.d.ts +58 -0
- package/dist/high-level/address-utils.d.ts +2 -0
- package/dist/high-level/create-client.d.ts +26 -0
- package/dist/high-level/query-helpers.d.ts +3 -0
- package/dist/high-level/signer.d.ts +6 -0
- package/dist/high-level/tx/agent.d.ts +3 -0
- package/dist/high-level/tx/authority.d.ts +3 -0
- package/dist/high-level/tx/clob.d.ts +3 -0
- package/dist/high-level/tx/context.d.ts +5 -0
- package/dist/high-level/tx/license.d.ts +3 -0
- package/dist/high-level/tx/market.d.ts +3 -0
- package/dist/high-level/tx/miner.d.ts +3 -0
- package/dist/high-level/tx/ratelimit.d.ts +3 -0
- package/dist/high-level/tx/reward.d.ts +3 -0
- package/dist/high-level/tx/staking.d.ts +3 -0
- package/dist/high-level/tx/tokenregistry.d.ts +3 -0
- package/dist/high-level/tx-executor.d.ts +18 -0
- package/dist/high-level/types.d.ts +477 -0
- package/dist/high-level-client.d.ts +2 -0
- package/dist/index.cjs +18409 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +18137 -0
- package/dist/index.js.map +1 -0
- package/dist/proto/duration-json.d.ts +6 -0
- package/dist/proto/gen/amino/amino.d.ts +1 -0
- package/dist/proto/gen/ault/agent/v1/agent.d.ts +63 -0
- package/dist/proto/gen/ault/agent/v1/genesis.d.ts +44 -0
- package/dist/proto/gen/ault/agent/v1/params.d.ts +42 -0
- package/dist/proto/gen/ault/agent/v1/query.d.ts +73 -0
- package/dist/proto/gen/ault/agent/v1/tx.d.ts +91 -0
- package/dist/proto/gen/ault/authority/v1/authority.d.ts +15 -0
- package/dist/proto/gen/ault/authority/v1/genesis.d.ts +36 -0
- package/dist/proto/gen/ault/authority/v1/query.d.ts +53 -0
- package/dist/proto/gen/ault/authority/v1/tx.d.ts +50 -0
- package/dist/proto/gen/ault/clob/v1/fee.d.ts +37 -0
- package/dist/proto/gen/ault/clob/v1/genesis.d.ts +56 -0
- package/dist/proto/gen/ault/clob/v1/order_book.d.ts +32 -0
- package/dist/proto/gen/ault/clob/v1/params.d.ts +29 -0
- package/dist/proto/gen/ault/clob/v1/query.d.ts +56 -0
- package/dist/proto/gen/ault/clob/v1/tx.d.ts +116 -0
- package/dist/proto/gen/ault/license/v1/genesis.d.ts +140 -0
- package/dist/proto/gen/ault/license/v1/license.d.ts +151 -0
- package/dist/proto/gen/ault/license/v1/query.d.ts +273 -0
- package/dist/proto/gen/ault/license/v1/tx.d.ts +227 -0
- package/dist/proto/gen/ault/market/v1/genesis.d.ts +28 -0
- package/dist/proto/gen/ault/market/v1/market.d.ts +66 -0
- package/dist/proto/gen/ault/market/v1/params.d.ts +34 -0
- package/dist/proto/gen/ault/market/v1/query.d.ts +48 -0
- package/dist/proto/gen/ault/market/v1/tx.d.ts +87 -0
- package/dist/proto/gen/ault/miner/v1/genesis.d.ts +166 -0
- package/dist/proto/gen/ault/miner/v1/miner.d.ts +232 -0
- package/dist/proto/gen/ault/miner/v1/query.d.ts +254 -0
- package/dist/proto/gen/ault/miner/v1/tx.d.ts +207 -0
- package/dist/proto/gen/ault/ratelimit/v1/genesis.d.ts +27 -0
- package/dist/proto/gen/ault/ratelimit/v1/params.d.ts +35 -0
- package/dist/proto/gen/ault/ratelimit/v1/query.d.ts +42 -0
- package/dist/proto/gen/ault/ratelimit/v1/tx.d.ts +32 -0
- package/dist/proto/gen/ault/reward/v1/genesis.d.ts +67 -0
- package/dist/proto/gen/ault/reward/v1/query.d.ts +93 -0
- package/dist/proto/gen/ault/reward/v1/reward.d.ts +53 -0
- package/dist/proto/gen/ault/reward/v1/tx.d.ts +120 -0
- package/dist/proto/gen/ault/spot/v1/genesis.d.ts +26 -0
- package/dist/proto/gen/ault/spot/v1/order.d.ts +66 -0
- package/dist/proto/gen/ault/tokenregistry/v1/genesis.d.ts +34 -0
- package/dist/proto/gen/ault/tokenregistry/v1/query.d.ts +77 -0
- package/dist/proto/gen/ault/tokenregistry/v1/tokenregistry.d.ts +118 -0
- package/dist/proto/gen/ault/tokenregistry/v1/tx.d.ts +132 -0
- package/dist/proto/gen/cosmos/base/query/v1beta1/pagination.d.ts +82 -0
- package/dist/proto/gen/cosmos/base/v1beta1/coin.d.ts +59 -0
- package/dist/proto/gen/cosmos/distribution/v1beta1/distribution.d.ts +162 -0
- package/dist/proto/gen/cosmos/distribution/v1beta1/tx.d.ts +140 -0
- package/dist/proto/gen/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/proto/gen/cosmos/staking/v1beta1/staking.d.ts +310 -0
- package/dist/proto/gen/cosmos/staking/v1beta1/tx.d.ts +144 -0
- package/dist/proto/gen/cosmos_proto/cosmos.d.ts +80 -0
- package/dist/proto/gen/gogoproto/gogo.d.ts +1 -0
- package/dist/proto/gen/google/api/annotations.d.ts +1 -0
- package/dist/proto/gen/google/api/http.d.ts +379 -0
- package/dist/proto/gen/google/protobuf/any.d.ts +144 -0
- package/dist/proto/gen/google/protobuf/descriptor.d.ts +1285 -0
- package/dist/proto/gen/google/protobuf/duration.d.ts +99 -0
- package/dist/proto/gen/google/protobuf/timestamp.d.ts +128 -0
- package/dist/proto/gen/tendermint/abci/types.d.ts +507 -0
- package/dist/proto/gen/tendermint/crypto/keys.d.ts +27 -0
- package/dist/proto/gen/tendermint/crypto/proof.d.ts +57 -0
- package/dist/proto/gen/tendermint/types/params.d.ts +112 -0
- package/dist/proto/gen/tendermint/types/types.d.ts +197 -0
- package/dist/proto/gen/tendermint/types/validator.d.ts +54 -0
- package/dist/proto/gen/tendermint/version/types.d.ts +41 -0
- package/dist/proto/tx-encode.d.ts +78 -0
- package/dist/rest/agent.d.ts +12 -0
- package/dist/rest/authority.d.ts +12 -0
- package/dist/rest/clob.d.ts +11 -0
- package/dist/rest/context.d.ts +22 -0
- package/dist/rest/dex-fetcher.d.ts +10 -0
- package/dist/rest/dex-types.generated.d.ts +780 -0
- package/dist/rest/dex.d.ts +34 -0
- package/dist/rest/dex.generated.d.ts +1381 -0
- package/dist/rest/license.d.ts +79 -0
- package/dist/rest/market.d.ts +11 -0
- package/dist/rest/miner.d.ts +59 -0
- package/dist/rest/ratelimit.d.ts +7 -0
- package/dist/rest/reward.d.ts +25 -0
- package/dist/rest/staking.d.ts +38 -0
- package/dist/rest/tokenregistry.d.ts +11 -0
- package/dist/rest/types.d.ts +871 -0
- package/dist/utils/address.d.ts +6 -0
- package/dist/utils/chain-id.d.ts +1 -0
- package/dist/utils/cosmos-dec.d.ts +2 -0
- package/dist/ws/client.d.ts +34 -0
- package/dist/ws/index.d.ts +5 -0
- package/dist/ws/types.d.ts +72 -0
- package/package.json +103 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Duration } from "./gen/google/protobuf/duration";
|
|
2
|
+
/**
|
|
3
|
+
* Parse a proto JSON Duration value. Handles both the official string
|
|
4
|
+
* encoding ("3600s", "7200.500000001s") and the object form ({seconds, nanos}).
|
|
5
|
+
*/
|
|
6
|
+
export declare function parseDurationJson(input: unknown): ReturnType<typeof Duration.fromJSON>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const protobufPackage = "amino";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Any } from "../../../google/protobuf/any";
|
|
3
|
+
export declare const protobufPackage = "ault.agent.v1";
|
|
4
|
+
/**
|
|
5
|
+
* Agent represents a delegated key authorized by a master account to execute
|
|
6
|
+
* trading actions on the user's behalf.
|
|
7
|
+
*
|
|
8
|
+
* Agent types:
|
|
9
|
+
* - Unnamed (empty name): Default agent, limited to 1 per master. Approving a
|
|
10
|
+
* new unnamed agent automatically revokes the previous one.
|
|
11
|
+
* - Named (with identifier): Multiple allowed per master. Approving an agent
|
|
12
|
+
* with an existing name replaces that agent.
|
|
13
|
+
*/
|
|
14
|
+
export interface Agent {
|
|
15
|
+
/**
|
|
16
|
+
* master_address is the bech32-encoded address of the account that authorized
|
|
17
|
+
* this agent. The master retains full control and can revoke the agent at any
|
|
18
|
+
* time.
|
|
19
|
+
*/
|
|
20
|
+
masterAddress: string;
|
|
21
|
+
/** agent_address is the bech32-encoded address derived from agent_pubkey */
|
|
22
|
+
agentAddress: string;
|
|
23
|
+
/**
|
|
24
|
+
* agent_pubkey is the public key used for signature verification of
|
|
25
|
+
* agent-signed transactions. Stored to enable verification without requiring
|
|
26
|
+
* the pubkey in AuthInfo.SignerInfos for every agent transaction
|
|
27
|
+
*/
|
|
28
|
+
agentPubkey: Any | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* name is an optional human-readable identifier for distinguishing between
|
|
31
|
+
* multiple agents per master account. Empty string indicates an unnamed
|
|
32
|
+
* agent. Names must be unique per master account.
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* expires_at is the timestamp after which agent-signed transactions will be
|
|
37
|
+
* rejected. Must be set and cannot exceed params.max_expiry from creation
|
|
38
|
+
* time.
|
|
39
|
+
*/
|
|
40
|
+
expiresAt: Date | undefined;
|
|
41
|
+
/** created_at is the timestamp when this agent authorization was created. */
|
|
42
|
+
createdAt: Date | undefined;
|
|
43
|
+
}
|
|
44
|
+
export declare const Agent: MessageFns<Agent>;
|
|
45
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
46
|
+
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 {} ? {
|
|
47
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
48
|
+
} : Partial<T>;
|
|
49
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
50
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
51
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
52
|
+
} & {
|
|
53
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
54
|
+
};
|
|
55
|
+
export interface MessageFns<T> {
|
|
56
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
57
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
58
|
+
fromJSON(object: any): T;
|
|
59
|
+
toJSON(message: T): unknown;
|
|
60
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
61
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Agent } from "./agent";
|
|
3
|
+
import { Params } from "./params";
|
|
4
|
+
export declare const protobufPackage = "ault.agent.v1";
|
|
5
|
+
/** GenesisState defines the agent module's genesis state. */
|
|
6
|
+
export interface GenesisState {
|
|
7
|
+
/** params defines the module parameters at genesis. */
|
|
8
|
+
params: Params | undefined;
|
|
9
|
+
/** agents is the list of all authorized agent delegations. */
|
|
10
|
+
agents: Agent[];
|
|
11
|
+
/**
|
|
12
|
+
* agent_counts represents the stored agent count per master address.
|
|
13
|
+
* Used for invariant checking: must match counts computed from agents list.
|
|
14
|
+
*/
|
|
15
|
+
agentCounts: AgentCount[];
|
|
16
|
+
}
|
|
17
|
+
/** AgentCount defines the agent count for a master address. */
|
|
18
|
+
export interface AgentCount {
|
|
19
|
+
/** master_address is the address of the master account. */
|
|
20
|
+
masterAddress: string;
|
|
21
|
+
/** count is the number of agents for this master. */
|
|
22
|
+
count: number;
|
|
23
|
+
}
|
|
24
|
+
export declare const GenesisState: MessageFns<GenesisState>;
|
|
25
|
+
export declare const AgentCount: MessageFns<AgentCount>;
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export interface MessageFns<T> {
|
|
37
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
38
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
39
|
+
fromJSON(object: any): T;
|
|
40
|
+
toJSON(message: T): unknown;
|
|
41
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
42
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Duration } from "../../../google/protobuf/duration";
|
|
3
|
+
export declare const protobufPackage = "ault.agent.v1";
|
|
4
|
+
/** Params defines the configurable parameters for the agent module */
|
|
5
|
+
export interface Params {
|
|
6
|
+
/**
|
|
7
|
+
* max_agents_per_account is the maximum number of agents a single master
|
|
8
|
+
* account can have active simultaneously
|
|
9
|
+
*/
|
|
10
|
+
maxAgentsPerAccount: number;
|
|
11
|
+
/**
|
|
12
|
+
* default_expiry is the default duration until an agent authorization expires
|
|
13
|
+
* when no explicit expiration is provided in MsgApproveAgent. Applied from
|
|
14
|
+
* the time of agent creation.
|
|
15
|
+
*/
|
|
16
|
+
defaultExpiry: Duration | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* max_expiry is the maximum allowed expiration duration for any agent.
|
|
19
|
+
* Attempts to create or extend an agent beyond this duration will be rejected
|
|
20
|
+
*/
|
|
21
|
+
maxExpiry: Duration | undefined;
|
|
22
|
+
}
|
|
23
|
+
export declare const Params: MessageFns<Params>;
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export interface MessageFns<T> {
|
|
35
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
36
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
37
|
+
fromJSON(object: any): T;
|
|
38
|
+
toJSON(message: T): unknown;
|
|
39
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
40
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
3
|
+
import { Agent } from "./agent";
|
|
4
|
+
import { Params } from "./params";
|
|
5
|
+
export declare const protobufPackage = "ault.agent.v1";
|
|
6
|
+
export interface QueryAgentRequest {
|
|
7
|
+
/** master_address is the bech32-encoded address of the master account. */
|
|
8
|
+
masterAddress: string;
|
|
9
|
+
/** agent_address is the bech32-encoded address of the agent. */
|
|
10
|
+
agentAddress: string;
|
|
11
|
+
}
|
|
12
|
+
export interface QueryAgentResponse {
|
|
13
|
+
/** agent is the queried agent record. Returns nil if not found. */
|
|
14
|
+
agent: Agent | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface QueryAgentsByMasterRequest {
|
|
17
|
+
/** master_address is the bech32-encoded address of the master account. */
|
|
18
|
+
masterAddress: string;
|
|
19
|
+
/** pagination defines optional pagination for the request. */
|
|
20
|
+
pagination: PageRequest | undefined;
|
|
21
|
+
}
|
|
22
|
+
export interface QueryAgentsByMasterResponse {
|
|
23
|
+
/** agents is the list of agents authorized by the master account. */
|
|
24
|
+
agents: Agent[];
|
|
25
|
+
/** pagination defines the pagination in the response. */
|
|
26
|
+
pagination: PageResponse | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface QueryParamsRequest {
|
|
29
|
+
}
|
|
30
|
+
export interface QueryParamsResponse {
|
|
31
|
+
/** params defines the current module parameters. */
|
|
32
|
+
params: Params | undefined;
|
|
33
|
+
}
|
|
34
|
+
export interface QueryIsAuthorizedRequest {
|
|
35
|
+
/** master_address is the bech32-encoded address of the master account. */
|
|
36
|
+
masterAddress: string;
|
|
37
|
+
/** agent_address is the bech32-encoded address of the agent. */
|
|
38
|
+
agentAddress: string;
|
|
39
|
+
}
|
|
40
|
+
export interface QueryIsAuthorizedResponse {
|
|
41
|
+
/**
|
|
42
|
+
* is_authorized indicates whether the agent is authorized to execute
|
|
43
|
+
* allowed messages type on behalf of the master.
|
|
44
|
+
*/
|
|
45
|
+
isAuthorized: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare const QueryAgentRequest: MessageFns<QueryAgentRequest>;
|
|
48
|
+
export declare const QueryAgentResponse: MessageFns<QueryAgentResponse>;
|
|
49
|
+
export declare const QueryAgentsByMasterRequest: MessageFns<QueryAgentsByMasterRequest>;
|
|
50
|
+
export declare const QueryAgentsByMasterResponse: MessageFns<QueryAgentsByMasterResponse>;
|
|
51
|
+
export declare const QueryParamsRequest: MessageFns<QueryParamsRequest>;
|
|
52
|
+
export declare const QueryParamsResponse: MessageFns<QueryParamsResponse>;
|
|
53
|
+
export declare const QueryIsAuthorizedRequest: MessageFns<QueryIsAuthorizedRequest>;
|
|
54
|
+
export declare const QueryIsAuthorizedResponse: MessageFns<QueryIsAuthorizedResponse>;
|
|
55
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
56
|
+
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 {} ? {
|
|
57
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
58
|
+
} : Partial<T>;
|
|
59
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
60
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
61
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
62
|
+
} & {
|
|
63
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
64
|
+
};
|
|
65
|
+
export interface MessageFns<T> {
|
|
66
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
67
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
68
|
+
fromJSON(object: any): T;
|
|
69
|
+
toJSON(message: T): unknown;
|
|
70
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
71
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Any } from "../../../google/protobuf/any";
|
|
3
|
+
import { Duration } from "../../../google/protobuf/duration";
|
|
4
|
+
import { Agent } from "./agent";
|
|
5
|
+
import { Params } from "./params";
|
|
6
|
+
export declare const protobufPackage = "ault.agent.v1";
|
|
7
|
+
/**
|
|
8
|
+
* MsgApproveAgent creates a new agent authorization or replaces an existing
|
|
9
|
+
* one.
|
|
10
|
+
*/
|
|
11
|
+
export interface MsgApproveAgent {
|
|
12
|
+
/** master_address is the account authorizing the agent. */
|
|
13
|
+
masterAddress: string;
|
|
14
|
+
/**
|
|
15
|
+
* agent_pubkey is the public key of the agent being authorized. The
|
|
16
|
+
* agent_address is derived from this pubkey.
|
|
17
|
+
*/
|
|
18
|
+
agentPubkey: Any | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* name is an optional identifier for the agent. Empty string creates an
|
|
21
|
+
* unnamed agent (limited to 1 per master). Must be <= 32 chars, alphanumeric
|
|
22
|
+
* + underscore + hyphen.
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
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.
|
|
29
|
+
*/
|
|
30
|
+
expiry: Duration | undefined;
|
|
31
|
+
}
|
|
32
|
+
export interface MsgApproveAgentResponse {
|
|
33
|
+
/** agent is the newly created or updated agent record. */
|
|
34
|
+
agent: Agent | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* replaced_agent_address is the address of the agent that was replaced by
|
|
37
|
+
* this approval, if any. Empty string indicates no agent was replaced (first
|
|
38
|
+
* approval for this name slot or unnamed slot).
|
|
39
|
+
*/
|
|
40
|
+
replacedAgentAddress: string;
|
|
41
|
+
}
|
|
42
|
+
/** MsgRevokeAgent removes an agent's authorization from a master account. */
|
|
43
|
+
export interface MsgRevokeAgent {
|
|
44
|
+
/** master_address is the account that originally authorized the agent. */
|
|
45
|
+
masterAddress: string;
|
|
46
|
+
/** agent_address is the address of the agent to revoke. */
|
|
47
|
+
agentAddress: string;
|
|
48
|
+
}
|
|
49
|
+
export interface MsgRevokeAgentResponse {
|
|
50
|
+
}
|
|
51
|
+
/** ExtensionOptionsAgentTx is an extension option for agent-signed transactions */
|
|
52
|
+
export interface ExtensionOptionsAgentTx {
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* MsgUpdateParams is the request type for updating module parameters.
|
|
56
|
+
* Can only be executed via governance proposal.
|
|
57
|
+
*/
|
|
58
|
+
export interface MsgUpdateParams {
|
|
59
|
+
/** authority is the address of the governance account */
|
|
60
|
+
authority: string;
|
|
61
|
+
/** params defines the new parameter values to set */
|
|
62
|
+
params: Params | undefined;
|
|
63
|
+
}
|
|
64
|
+
export interface MsgUpdateParamsResponse {
|
|
65
|
+
}
|
|
66
|
+
export declare const MsgApproveAgent: MessageFns<MsgApproveAgent>;
|
|
67
|
+
export declare const MsgApproveAgentResponse: MessageFns<MsgApproveAgentResponse>;
|
|
68
|
+
export declare const MsgRevokeAgent: MessageFns<MsgRevokeAgent>;
|
|
69
|
+
export declare const MsgRevokeAgentResponse: MessageFns<MsgRevokeAgentResponse>;
|
|
70
|
+
export declare const ExtensionOptionsAgentTx: MessageFns<ExtensionOptionsAgentTx>;
|
|
71
|
+
export declare const MsgUpdateParams: MessageFns<MsgUpdateParams>;
|
|
72
|
+
export declare const MsgUpdateParamsResponse: MessageFns<MsgUpdateParamsResponse>;
|
|
73
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
74
|
+
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 {} ? {
|
|
75
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
76
|
+
} : Partial<T>;
|
|
77
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
78
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
79
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
80
|
+
} & {
|
|
81
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
82
|
+
};
|
|
83
|
+
export interface MessageFns<T> {
|
|
84
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
85
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
86
|
+
fromJSON(object: any): T;
|
|
87
|
+
toJSON(message: T): unknown;
|
|
88
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
89
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
90
|
+
}
|
|
91
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const protobufPackage = "ault.authority.v1";
|
|
2
|
+
/** Role defines a role identifier for on-chain access control. */
|
|
3
|
+
export declare enum Role {
|
|
4
|
+
/** ROLE_UNSPECIFIED - ROLE_UNSPECIFIED is the default value and is invalid for mutations. */
|
|
5
|
+
ROLE_UNSPECIFIED = 0,
|
|
6
|
+
/** ROLE_MARKET_COORDINATOR - ROLE_MARKET_COORDINATOR coordinates market operations. */
|
|
7
|
+
ROLE_MARKET_COORDINATOR = 1,
|
|
8
|
+
/** ROLE_RISK_MANAGER - ROLE_RISK_MANAGER manages risk-related operations. */
|
|
9
|
+
ROLE_RISK_MANAGER = 2,
|
|
10
|
+
/** ROLE_REWARD_MANAGER - ROLE_REWARD_MANAGER manages reward-related operations. */
|
|
11
|
+
ROLE_REWARD_MANAGER = 3,
|
|
12
|
+
UNRECOGNIZED = -1
|
|
13
|
+
}
|
|
14
|
+
export declare function roleFromJSON(object: any): Role;
|
|
15
|
+
export declare function roleToJSON(object: Role): string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Role } from "./authority";
|
|
3
|
+
export declare const protobufPackage = "ault.authority.v1";
|
|
4
|
+
/** GenesisState defines the authority module's genesis state. */
|
|
5
|
+
export interface GenesisState {
|
|
6
|
+
/** role_members defines the initial role membership set. */
|
|
7
|
+
roleMembers: GenesisRoleMember[];
|
|
8
|
+
}
|
|
9
|
+
/** GenesisRoleMember pairs a role with a member address. */
|
|
10
|
+
export interface GenesisRoleMember {
|
|
11
|
+
/** role is the assigned role. */
|
|
12
|
+
role: Role;
|
|
13
|
+
/** member is the bech32 address assigned to the role. */
|
|
14
|
+
member: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const GenesisState: MessageFns<GenesisState>;
|
|
17
|
+
export declare const GenesisRoleMember: MessageFns<GenesisRoleMember>;
|
|
18
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
19
|
+
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 {} ? {
|
|
20
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
21
|
+
} : Partial<T>;
|
|
22
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
23
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
24
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
25
|
+
} & {
|
|
26
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
27
|
+
};
|
|
28
|
+
export interface MessageFns<T> {
|
|
29
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
30
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
31
|
+
fromJSON(object: any): T;
|
|
32
|
+
toJSON(message: T): unknown;
|
|
33
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
34
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
3
|
+
import { Role } from "./authority";
|
|
4
|
+
export declare const protobufPackage = "ault.authority.v1";
|
|
5
|
+
/** QueryHasRoleRequest is the request for Query/HasRole. */
|
|
6
|
+
export interface QueryHasRoleRequest {
|
|
7
|
+
/** role is the role to check. */
|
|
8
|
+
role: Role;
|
|
9
|
+
/** member is the address to check. */
|
|
10
|
+
member: string;
|
|
11
|
+
}
|
|
12
|
+
/** QueryHasRoleResponse is the response for Query/HasRole. */
|
|
13
|
+
export interface QueryHasRoleResponse {
|
|
14
|
+
/** has_role is true if the member has the role. */
|
|
15
|
+
hasRole: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** QueryRoleMembersRequest is the request for Query/RoleMembers. */
|
|
18
|
+
export interface QueryRoleMembersRequest {
|
|
19
|
+
/** role is the role to query. */
|
|
20
|
+
role: Role;
|
|
21
|
+
/** pagination defines the pagination in the request. */
|
|
22
|
+
pagination: PageRequest | undefined;
|
|
23
|
+
}
|
|
24
|
+
/** QueryRoleMembersResponse is the response for Query/RoleMembers. */
|
|
25
|
+
export interface QueryRoleMembersResponse {
|
|
26
|
+
/** members is the list of member addresses. */
|
|
27
|
+
members: string[];
|
|
28
|
+
/** pagination defines the pagination in the response. */
|
|
29
|
+
pagination: PageResponse | undefined;
|
|
30
|
+
}
|
|
31
|
+
export declare const QueryHasRoleRequest: MessageFns<QueryHasRoleRequest>;
|
|
32
|
+
export declare const QueryHasRoleResponse: MessageFns<QueryHasRoleResponse>;
|
|
33
|
+
export declare const QueryRoleMembersRequest: MessageFns<QueryRoleMembersRequest>;
|
|
34
|
+
export declare const QueryRoleMembersResponse: MessageFns<QueryRoleMembersResponse>;
|
|
35
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
36
|
+
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 {} ? {
|
|
37
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
38
|
+
} : Partial<T>;
|
|
39
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
40
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
41
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
42
|
+
} & {
|
|
43
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
44
|
+
};
|
|
45
|
+
export interface MessageFns<T> {
|
|
46
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
47
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
48
|
+
fromJSON(object: any): T;
|
|
49
|
+
toJSON(message: T): unknown;
|
|
50
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
51
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Role } from "./authority";
|
|
3
|
+
export declare const protobufPackage = "ault.authority.v1";
|
|
4
|
+
/** MsgGrantRole defines a message to grant a role to a member. */
|
|
5
|
+
export interface MsgGrantRole {
|
|
6
|
+
/** authority is the address of the module authority. */
|
|
7
|
+
authority: string;
|
|
8
|
+
/** role is the role to grant. */
|
|
9
|
+
role: Role;
|
|
10
|
+
/** members are the addresses to assign the role to. */
|
|
11
|
+
members: string[];
|
|
12
|
+
}
|
|
13
|
+
/** MsgGrantRoleResponse is the response for MsgGrantRole. */
|
|
14
|
+
export interface MsgGrantRoleResponse {
|
|
15
|
+
}
|
|
16
|
+
/** MsgRevokeRole defines a message to revoke a role from a member. */
|
|
17
|
+
export interface MsgRevokeRole {
|
|
18
|
+
/** authority is the address of the module authority. */
|
|
19
|
+
authority: string;
|
|
20
|
+
/** role is the role to revoke. */
|
|
21
|
+
role: Role;
|
|
22
|
+
/** members are the addresses to revoke the role from. */
|
|
23
|
+
members: string[];
|
|
24
|
+
}
|
|
25
|
+
/** MsgRevokeRoleResponse is the response for MsgRevokeRole. */
|
|
26
|
+
export interface MsgRevokeRoleResponse {
|
|
27
|
+
}
|
|
28
|
+
export declare const MsgGrantRole: MessageFns<MsgGrantRole>;
|
|
29
|
+
export declare const MsgGrantRoleResponse: MessageFns<MsgGrantRoleResponse>;
|
|
30
|
+
export declare const MsgRevokeRole: MessageFns<MsgRevokeRole>;
|
|
31
|
+
export declare const MsgRevokeRoleResponse: MessageFns<MsgRevokeRoleResponse>;
|
|
32
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
33
|
+
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 {} ? {
|
|
34
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
35
|
+
} : Partial<T>;
|
|
36
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
37
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
38
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
39
|
+
} & {
|
|
40
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
41
|
+
};
|
|
42
|
+
export interface MessageFns<T> {
|
|
43
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
44
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
45
|
+
fromJSON(object: any): T;
|
|
46
|
+
toJSON(message: T): unknown;
|
|
47
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
48
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "ault.clob.v1";
|
|
3
|
+
/** FeeInfo contains fee distribution metadata captured at order placement time. */
|
|
4
|
+
export interface FeeInfo {
|
|
5
|
+
/** builder is the builder address receiving builder fees (empty if none). */
|
|
6
|
+
builder: Uint8Array;
|
|
7
|
+
/** builder_fee_rate is the builder fee rate (e.g., 0.01 = 1%). */
|
|
8
|
+
builderFeeRate: string;
|
|
9
|
+
/** referrer is the trader's referrer address (empty if none). */
|
|
10
|
+
referrer: Uint8Array;
|
|
11
|
+
/** referral_rate is the referral commission rate (e.g., 0.1 = 10%). */
|
|
12
|
+
referralRate: string;
|
|
13
|
+
/** deployer is the market deployer address (empty if none). */
|
|
14
|
+
deployer: Uint8Array;
|
|
15
|
+
/** deployer_share_rate is the deployer share rate (e.g., 0.2 = 20%). */
|
|
16
|
+
deployerShareRate: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const FeeInfo: MessageFns<FeeInfo>;
|
|
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 {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Params } from "./params";
|
|
3
|
+
export declare const protobufPackage = "ault.clob.v1";
|
|
4
|
+
export interface GenesisState {
|
|
5
|
+
params: Params | undefined;
|
|
6
|
+
/** Order book index entries: market_id + is_buy + tick + order_id */
|
|
7
|
+
orderBookIndex: OrderBookIndexEntry[];
|
|
8
|
+
/** Total orders count per orderer */
|
|
9
|
+
totalOrdersByOrderer: TotalOrdersByOrdererEntry[];
|
|
10
|
+
/** Orders by deadline index entries: deadline_unix_nano + order_id */
|
|
11
|
+
ordersByDeadlineIndex: OrdersByDeadlineIndexEntry[];
|
|
12
|
+
/** Closed orders index entries: market_id + order_id */
|
|
13
|
+
closedOrdersIndex: ClosedOrdersIndexEntry[];
|
|
14
|
+
}
|
|
15
|
+
export interface OrderBookIndexEntry {
|
|
16
|
+
marketId: Uint8Array;
|
|
17
|
+
isBuy: boolean;
|
|
18
|
+
tick: bigint;
|
|
19
|
+
orderId: Uint8Array;
|
|
20
|
+
}
|
|
21
|
+
export interface TotalOrdersByOrdererEntry {
|
|
22
|
+
orderer: string;
|
|
23
|
+
totalOrders: bigint;
|
|
24
|
+
}
|
|
25
|
+
export interface OrdersByDeadlineIndexEntry {
|
|
26
|
+
deadlineUnixNano: bigint;
|
|
27
|
+
orderId: Uint8Array;
|
|
28
|
+
}
|
|
29
|
+
export interface ClosedOrdersIndexEntry {
|
|
30
|
+
marketId: Uint8Array;
|
|
31
|
+
orderId: Uint8Array;
|
|
32
|
+
}
|
|
33
|
+
export declare const GenesisState: MessageFns<GenesisState>;
|
|
34
|
+
export declare const OrderBookIndexEntry: MessageFns<OrderBookIndexEntry>;
|
|
35
|
+
export declare const TotalOrdersByOrdererEntry: MessageFns<TotalOrdersByOrdererEntry>;
|
|
36
|
+
export declare const OrdersByDeadlineIndexEntry: MessageFns<OrdersByDeadlineIndexEntry>;
|
|
37
|
+
export declare const ClosedOrdersIndexEntry: MessageFns<ClosedOrdersIndexEntry>;
|
|
38
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
39
|
+
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
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
41
|
+
} : Partial<T>;
|
|
42
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
43
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
44
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
45
|
+
} & {
|
|
46
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
47
|
+
};
|
|
48
|
+
export interface MessageFns<T> {
|
|
49
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
50
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
51
|
+
fromJSON(object: any): T;
|
|
52
|
+
toJSON(message: T): unknown;
|
|
53
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
54
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "ault.clob.v1";
|
|
3
|
+
export interface OrderBook {
|
|
4
|
+
priceInterval: string;
|
|
5
|
+
sells: OrderBookPriceLevel[];
|
|
6
|
+
buys: OrderBookPriceLevel[];
|
|
7
|
+
}
|
|
8
|
+
export interface OrderBookPriceLevel {
|
|
9
|
+
p: string;
|
|
10
|
+
q: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const OrderBook: MessageFns<OrderBook>;
|
|
13
|
+
export declare const OrderBookPriceLevel: MessageFns<OrderBookPriceLevel>;
|
|
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,29 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Duration } from "../../../google/protobuf/duration";
|
|
3
|
+
export declare const protobufPackage = "ault.clob.v1";
|
|
4
|
+
export interface Params {
|
|
5
|
+
maxOrderPerAddress: bigint;
|
|
6
|
+
minOrderQuoteAmount: string;
|
|
7
|
+
maxOrderLifespan: Duration | undefined;
|
|
8
|
+
maxOrderPriceRatio: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Params: MessageFns<Params>;
|
|
11
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
12
|
+
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 {} ? {
|
|
13
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
14
|
+
} : Partial<T>;
|
|
15
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
16
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
17
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
18
|
+
} & {
|
|
19
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
20
|
+
};
|
|
21
|
+
export interface MessageFns<T> {
|
|
22
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
23
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
24
|
+
fromJSON(object: any): T;
|
|
25
|
+
toJSON(message: T): unknown;
|
|
26
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
27
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
28
|
+
}
|
|
29
|
+
export {};
|