ault-sdk-ts 0.0.2-alpha.21 → 0.0.2-alpha.23
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/README.md +10 -0
- package/dist/core/clob-msgs.d.ts +2 -3
- package/dist/eip712/msg.generated.d.ts +10 -4
- package/dist/eip712/registry.d.ts +2 -0
- package/dist/high-level/types.d.ts +10 -6
- package/dist/index.cjs +618 -307
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +607 -307
- package/dist/index.js.map +1 -1
- package/dist/proto/gen/ault/accountx/v1/query.d.ts +32 -0
- package/dist/proto/gen/ault/agent/v1/tx.d.ts +4 -5
- package/dist/proto/gen/ault/clob/v1/genesis.d.ts +0 -7
- package/dist/proto/gen/ault/clob/v1/tx.d.ts +25 -3
- package/dist/proto/gen/ault/license/v1/genesis.d.ts +1 -26
- package/dist/proto/gen/ault/license/v1/license.d.ts +0 -14
- package/dist/proto/gen/ault/license/v1/query.d.ts +44 -18
- package/dist/proto/gen/ault/market/v1/market.d.ts +1 -0
- package/dist/proto/gen/ault/market/v1/tx.d.ts +9 -0
- package/dist/proto/gen/ault/miner/v1/genesis.d.ts +52 -84
- package/dist/proto/gen/ault/miner/v1/miner.d.ts +10 -45
- package/dist/proto/gen/ault/miner/v1/query.d.ts +0 -13
- package/dist/proto/gen/ault/spot/v1/genesis.d.ts +2 -2
- package/dist/proto/gen/ault/spot/v1/order.d.ts +12 -4
- package/dist/proto/gen/ault/tokenregistry/v1/genesis.d.ts +3 -3
- package/dist/proto/gen/ault/tokenregistry/v1/query.d.ts +2 -2
- package/dist/proto/gen/ault/tokenregistry/v1/tokenregistry.d.ts +24 -15
- package/dist/proto/gen/ault/tokenregistry/v1/tx.d.ts +1 -1
- package/dist/rest/dex-types.generated.d.ts +59 -1
- package/dist/rest/dex.d.ts +1 -0
- package/dist/rest/dex.generated.d.ts +151 -4
- package/dist/rest/license.d.ts +1 -2
- package/dist/rest/types.d.ts +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -377,8 +377,18 @@ const candles = await dex.getOHLCV("AULT/USDT", {
|
|
|
377
377
|
timeframe: "1h",
|
|
378
378
|
limit: 100,
|
|
379
379
|
});
|
|
380
|
+
|
|
381
|
+
// Protocol stats (24h window)
|
|
382
|
+
const stats = await dex.getStats(); // defaults to { window: "24h" }
|
|
383
|
+
console.log(stats.totals.quoteVolume); // "1234567.89" or null when markets span multiple quotes
|
|
384
|
+
console.log(stats.totals.tradeCount, stats.totals.traderCount);
|
|
385
|
+
for (const m of stats.markets) {
|
|
386
|
+
console.log(m.symbol, m.quoteVolume, m.tradeCount);
|
|
387
|
+
}
|
|
380
388
|
```
|
|
381
389
|
|
|
390
|
+
Monetary fields like `quoteVolume`, `estimatedFee`, and `averageSlippageBps` come back as canonical decimal strings, so parse them with a decimal library rather than `parseFloat`. `totals.quoteVolume` and its related fee fields are `null` when the markets that traded in the window span more than one quote asset, since summing notionals across quotes is meaningless. `markets[]` can briefly lag `totals` while the symbol map updates, so the per-market trade counts need not add up to `totals.tradeCount`.
|
|
391
|
+
|
|
382
392
|
### User Queries
|
|
383
393
|
|
|
384
394
|
```typescript
|
package/dist/core/clob-msgs.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type { Duration } from "../proto/gen/google/protobuf/duration";
|
|
2
1
|
export declare function buildLimitOrderMsg(sender: string, params: {
|
|
3
2
|
marketId: Uint8Array;
|
|
4
3
|
isBuy: boolean;
|
|
5
4
|
price: string;
|
|
6
5
|
quantity: string;
|
|
7
|
-
|
|
6
|
+
deadline: Date;
|
|
8
7
|
postOnly?: boolean;
|
|
9
8
|
builderAddress?: string;
|
|
10
9
|
builderFeeRate?: string;
|
|
@@ -26,7 +25,7 @@ export declare function buildScaleOrderMsg(sender: string, params: {
|
|
|
26
25
|
highPrice: string;
|
|
27
26
|
totalQuantity: string;
|
|
28
27
|
weights: number[];
|
|
29
|
-
|
|
28
|
+
deadline: Date;
|
|
30
29
|
postOnly?: boolean;
|
|
31
30
|
builderAddress?: string;
|
|
32
31
|
builderFeeRate?: string;
|
|
@@ -2,7 +2,7 @@ import type { Eip712Msg } from "./builder";
|
|
|
2
2
|
import type { MsgOpenAccount, MsgUpdateParams as MsgUpdateParamsAultAccountxV1 } from "../proto/gen/ault/accountx/v1/tx";
|
|
3
3
|
import type { MsgApproveAgent, MsgRevokeAgent, MsgUpdateParams as MsgUpdateParamsAultAgentV1 } from "../proto/gen/ault/agent/v1/tx";
|
|
4
4
|
import type { MsgGrantRole, MsgRevokeRole } from "../proto/gen/ault/authority/v1/tx";
|
|
5
|
-
import type { MsgCancelOrders, MsgPlaceLimitOrder, MsgPlaceMarketOrder, MsgPlaceScaleOrder, MsgUpdateParams as MsgUpdateParamsAultClobV1 } from "../proto/gen/ault/clob/v1/tx";
|
|
5
|
+
import type { ModifyOrder, MsgCancelOrders, MsgModifyOrders, MsgPlaceLimitOrder, MsgPlaceMarketOrder, MsgPlaceScaleOrder, MsgUpdateParams as MsgUpdateParamsAultClobV1 } from "../proto/gen/ault/clob/v1/tx";
|
|
6
6
|
import type { MsgApproveMember, MsgBatchApproveMember, MsgBatchMintLicense, MsgBatchRevokeMember, MsgBurnLicense, MsgMintLicense, MsgRevokeLicense, MsgRevokeMember, MsgSetKYCApprovers, MsgSetMinters, MsgSetTokenURI, MsgTransferLicense, MsgUpdateParams as MsgUpdateParamsAultLicenseV1 } from "../proto/gen/ault/license/v1/tx";
|
|
7
7
|
import type { MsgCreateMarket, MsgHaltAllMarkets, MsgHaltMarkets, MsgResumeAllMarkets, MsgResumeMarkets, MsgUpdateMarket, MsgUpdateParams as MsgUpdateParamsAultMarketV1 } from "../proto/gen/ault/market/v1/tx";
|
|
8
8
|
import type { MsgBatchSubmitWork, MsgCancelMiningDelegation, MsgDelegateMining, MsgRedelegateMining, MsgRegisterOperator, MsgSetOwnerVrfKey, MsgSubmitWork, MsgUnregisterOperator, MsgUpdateOperatorInfo, MsgUpdateParams as MsgUpdateParamsAultMinerV1, WorkSubmission } from "../proto/gen/ault/miner/v1/tx";
|
|
@@ -12,12 +12,17 @@ import type { TransferLimitConfig } from "../proto/gen/ault/tokenregistry/v1/tok
|
|
|
12
12
|
import type { MsgDisableTokenPair, MsgDisableTransfers, MsgEnableTokenPair, MsgEnableTransfers, MsgRegisterTokenPair, MsgRemoveTransferLimit, MsgSetTransferLimit } from "../proto/gen/ault/tokenregistry/v1/tx";
|
|
13
13
|
import type { MsgWithdrawDelegatorReward } from "../proto/gen/cosmos/distribution/v1beta1/tx";
|
|
14
14
|
import type { MsgBeginRedelegate, MsgDelegate, MsgUndelegate } from "../proto/gen/cosmos/staking/v1beta1/tx";
|
|
15
|
+
type ModifyOrderInput = Omit<ModifyOrder, "newPrice" | "newQuantity"> & Partial<Pick<ModifyOrder, "newPrice" | "newQuantity">>;
|
|
15
16
|
type TransferLimitConfigInput = TransferLimitConfig;
|
|
16
17
|
type WorkSubmissionInput = Omit<WorkSubmission, "nonce"> & Partial<Pick<WorkSubmission, "nonce">>;
|
|
17
|
-
type MsgApproveAgentInput = Omit<MsgApproveAgent, "
|
|
18
|
+
type MsgApproveAgentInput = Omit<MsgApproveAgent, "expiresAt" | "name"> & Partial<Pick<MsgApproveAgent, "expiresAt" | "name">>;
|
|
18
19
|
type MsgBatchSubmitWorkInput = Omit<MsgBatchSubmitWork, "submissions"> & {
|
|
19
20
|
submissions: WorkSubmissionInput[];
|
|
20
21
|
};
|
|
22
|
+
type MsgCreateMarketInput = Omit<MsgCreateMarket, "makerFeeRate" | "takerFeeRate"> & Partial<Pick<MsgCreateMarket, "makerFeeRate" | "takerFeeRate">>;
|
|
23
|
+
type MsgModifyOrdersInput = Omit<MsgModifyOrders, "orders"> & {
|
|
24
|
+
orders: ModifyOrderInput[];
|
|
25
|
+
};
|
|
21
26
|
type MsgPlaceLimitOrderInput = Omit<MsgPlaceLimitOrder, "builderAddress" | "builderFeeRate" | "postOnly"> & Partial<Pick<MsgPlaceLimitOrder, "builderAddress" | "builderFeeRate" | "postOnly">>;
|
|
22
27
|
type MsgPlaceMarketOrderInput = Omit<MsgPlaceMarketOrder, "builderAddress" | "builderFeeRate" | "priceTolerance" | "worstPrice"> & Partial<Pick<MsgPlaceMarketOrder, "builderAddress" | "builderFeeRate" | "priceTolerance" | "worstPrice">>;
|
|
23
28
|
type MsgPlaceScaleOrderInput = Omit<MsgPlaceScaleOrder, "builderAddress" | "builderFeeRate" | "postOnly"> & Partial<Pick<MsgPlaceScaleOrder, "builderAddress" | "builderFeeRate" | "postOnly">>;
|
|
@@ -44,6 +49,7 @@ export declare const msg: {
|
|
|
44
49
|
};
|
|
45
50
|
readonly clob: {
|
|
46
51
|
readonly cancelOrders: (value: MsgCancelOrders) => Eip712Msg<MsgCancelOrders, "/ault.clob.v1.MsgCancelOrders">;
|
|
52
|
+
readonly modifyOrders: (value: MsgModifyOrdersInput) => Eip712Msg<MsgModifyOrdersInput, "/ault.clob.v1.MsgModifyOrders">;
|
|
47
53
|
readonly placeLimitOrder: (value: MsgPlaceLimitOrderInput) => Eip712Msg<MsgPlaceLimitOrderInput, "/ault.clob.v1.MsgPlaceLimitOrder">;
|
|
48
54
|
readonly placeMarketOrder: (value: MsgPlaceMarketOrderInput) => Eip712Msg<MsgPlaceMarketOrderInput, "/ault.clob.v1.MsgPlaceMarketOrder">;
|
|
49
55
|
readonly placeScaleOrder: (value: MsgPlaceScaleOrderInput) => Eip712Msg<MsgPlaceScaleOrderInput, "/ault.clob.v1.MsgPlaceScaleOrder">;
|
|
@@ -68,7 +74,7 @@ export declare const msg: {
|
|
|
68
74
|
readonly updateParams: (value: MsgUpdateParamsAultLicenseV1) => Eip712Msg<MsgUpdateParamsAultLicenseV1, "/ault.license.v1.MsgUpdateParams">;
|
|
69
75
|
};
|
|
70
76
|
readonly market: {
|
|
71
|
-
readonly createMarket: (value:
|
|
77
|
+
readonly createMarket: (value: MsgCreateMarketInput) => Eip712Msg<MsgCreateMarketInput, "/ault.market.v1.MsgCreateMarket">;
|
|
72
78
|
readonly haltAllMarkets: (value: MsgHaltAllMarkets) => Eip712Msg<MsgHaltAllMarkets, "/ault.market.v1.MsgHaltAllMarkets">;
|
|
73
79
|
readonly haltMarkets: (value: MsgHaltMarkets) => Eip712Msg<MsgHaltMarkets, "/ault.market.v1.MsgHaltMarkets">;
|
|
74
80
|
readonly resumeAllMarkets: (value: MsgResumeAllMarkets) => Eip712Msg<MsgResumeAllMarkets, "/ault.market.v1.MsgResumeAllMarkets">;
|
|
@@ -115,5 +121,5 @@ export declare const msg: {
|
|
|
115
121
|
readonly setTransferLimit: (value: MsgSetTransferLimitInput) => Eip712Msg<MsgSetTransferLimitInput, "/ault.tokenregistry.v1.MsgSetTransferLimit">;
|
|
116
122
|
};
|
|
117
123
|
};
|
|
118
|
-
export type AnyEip712Msg = Eip712Msg<MsgOpenAccount, "/ault.accountx.v1.MsgOpenAccount"> | Eip712Msg<MsgUpdateParamsAultAccountxV1, "/ault.accountx.v1.MsgUpdateParams"> | Eip712Msg<MsgApproveAgentInput, "/ault.agent.v1.MsgApproveAgent"> | Eip712Msg<MsgRevokeAgent, "/ault.agent.v1.MsgRevokeAgent"> | Eip712Msg<MsgUpdateParamsAultAgentV1, "/ault.agent.v1.MsgUpdateParams"> | Eip712Msg<MsgGrantRole, "/ault.authority.v1.MsgGrantRole"> | Eip712Msg<MsgRevokeRole, "/ault.authority.v1.MsgRevokeRole"> | Eip712Msg<MsgCancelOrders, "/ault.clob.v1.MsgCancelOrders"> | Eip712Msg<MsgPlaceLimitOrderInput, "/ault.clob.v1.MsgPlaceLimitOrder"> | Eip712Msg<MsgPlaceMarketOrderInput, "/ault.clob.v1.MsgPlaceMarketOrder"> | Eip712Msg<MsgPlaceScaleOrderInput, "/ault.clob.v1.MsgPlaceScaleOrder"> | Eip712Msg<MsgUpdateParamsAultClobV1, "/ault.clob.v1.MsgUpdateParams"> | Eip712Msg<MsgApproveMember, "/ault.license.v1.MsgApproveMember"> | Eip712Msg<MsgBatchApproveMember, "/ault.license.v1.MsgBatchApproveMember"> | Eip712Msg<MsgBatchMintLicense, "/ault.license.v1.MsgBatchMintLicense"> | Eip712Msg<MsgBatchRevokeMember, "/ault.license.v1.MsgBatchRevokeMember"> | Eip712Msg<MsgBurnLicense, "/ault.license.v1.MsgBurnLicense"> | Eip712Msg<MsgMintLicense, "/ault.license.v1.MsgMintLicense"> | Eip712Msg<MsgRevokeLicense, "/ault.license.v1.MsgRevokeLicense"> | Eip712Msg<MsgRevokeMember, "/ault.license.v1.MsgRevokeMember"> | Eip712Msg<MsgSetKYCApprovers, "/ault.license.v1.MsgSetKYCApprovers"> | Eip712Msg<MsgSetMinters, "/ault.license.v1.MsgSetMinters"> | Eip712Msg<MsgSetTokenURI, "/ault.license.v1.MsgSetTokenURI"> | Eip712Msg<MsgTransferLicense, "/ault.license.v1.MsgTransferLicense"> | Eip712Msg<MsgUpdateParamsAultLicenseV1, "/ault.license.v1.MsgUpdateParams"> | Eip712Msg<
|
|
124
|
+
export type AnyEip712Msg = Eip712Msg<MsgOpenAccount, "/ault.accountx.v1.MsgOpenAccount"> | Eip712Msg<MsgUpdateParamsAultAccountxV1, "/ault.accountx.v1.MsgUpdateParams"> | Eip712Msg<MsgApproveAgentInput, "/ault.agent.v1.MsgApproveAgent"> | Eip712Msg<MsgRevokeAgent, "/ault.agent.v1.MsgRevokeAgent"> | Eip712Msg<MsgUpdateParamsAultAgentV1, "/ault.agent.v1.MsgUpdateParams"> | Eip712Msg<MsgGrantRole, "/ault.authority.v1.MsgGrantRole"> | Eip712Msg<MsgRevokeRole, "/ault.authority.v1.MsgRevokeRole"> | Eip712Msg<MsgCancelOrders, "/ault.clob.v1.MsgCancelOrders"> | Eip712Msg<MsgModifyOrdersInput, "/ault.clob.v1.MsgModifyOrders"> | Eip712Msg<MsgPlaceLimitOrderInput, "/ault.clob.v1.MsgPlaceLimitOrder"> | Eip712Msg<MsgPlaceMarketOrderInput, "/ault.clob.v1.MsgPlaceMarketOrder"> | Eip712Msg<MsgPlaceScaleOrderInput, "/ault.clob.v1.MsgPlaceScaleOrder"> | Eip712Msg<MsgUpdateParamsAultClobV1, "/ault.clob.v1.MsgUpdateParams"> | Eip712Msg<MsgApproveMember, "/ault.license.v1.MsgApproveMember"> | Eip712Msg<MsgBatchApproveMember, "/ault.license.v1.MsgBatchApproveMember"> | Eip712Msg<MsgBatchMintLicense, "/ault.license.v1.MsgBatchMintLicense"> | Eip712Msg<MsgBatchRevokeMember, "/ault.license.v1.MsgBatchRevokeMember"> | Eip712Msg<MsgBurnLicense, "/ault.license.v1.MsgBurnLicense"> | Eip712Msg<MsgMintLicense, "/ault.license.v1.MsgMintLicense"> | Eip712Msg<MsgRevokeLicense, "/ault.license.v1.MsgRevokeLicense"> | Eip712Msg<MsgRevokeMember, "/ault.license.v1.MsgRevokeMember"> | Eip712Msg<MsgSetKYCApprovers, "/ault.license.v1.MsgSetKYCApprovers"> | Eip712Msg<MsgSetMinters, "/ault.license.v1.MsgSetMinters"> | Eip712Msg<MsgSetTokenURI, "/ault.license.v1.MsgSetTokenURI"> | Eip712Msg<MsgTransferLicense, "/ault.license.v1.MsgTransferLicense"> | Eip712Msg<MsgUpdateParamsAultLicenseV1, "/ault.license.v1.MsgUpdateParams"> | Eip712Msg<MsgCreateMarketInput, "/ault.market.v1.MsgCreateMarket"> | Eip712Msg<MsgHaltAllMarkets, "/ault.market.v1.MsgHaltAllMarkets"> | Eip712Msg<MsgHaltMarkets, "/ault.market.v1.MsgHaltMarkets"> | Eip712Msg<MsgResumeAllMarkets, "/ault.market.v1.MsgResumeAllMarkets"> | Eip712Msg<MsgResumeMarkets, "/ault.market.v1.MsgResumeMarkets"> | Eip712Msg<MsgUpdateMarket, "/ault.market.v1.MsgUpdateMarket"> | Eip712Msg<MsgUpdateParamsAultMarketV1, "/ault.market.v1.MsgUpdateParams"> | Eip712Msg<MsgBatchSubmitWorkInput, "/ault.miner.v1.MsgBatchSubmitWork"> | Eip712Msg<MsgCancelMiningDelegation, "/ault.miner.v1.MsgCancelMiningDelegation"> | Eip712Msg<MsgDelegateMining, "/ault.miner.v1.MsgDelegateMining"> | Eip712Msg<MsgRedelegateMining, "/ault.miner.v1.MsgRedelegateMining"> | Eip712Msg<MsgRegisterOperatorInput, "/ault.miner.v1.MsgRegisterOperator"> | Eip712Msg<MsgSetOwnerVrfKey, "/ault.miner.v1.MsgSetOwnerVrfKey"> | Eip712Msg<MsgSubmitWorkInput, "/ault.miner.v1.MsgSubmitWork"> | Eip712Msg<MsgUnregisterOperator, "/ault.miner.v1.MsgUnregisterOperator"> | Eip712Msg<MsgUpdateOperatorInfoInput, "/ault.miner.v1.MsgUpdateOperatorInfo"> | Eip712Msg<MsgUpdateParamsAultMinerV1, "/ault.miner.v1.MsgUpdateParams"> | Eip712Msg<MsgUpdateParamsAultRatelimitV1, "/ault.ratelimit.v1.MsgUpdateParams"> | Eip712Msg<MsgApproveBuilder, "/ault.reward.v1.MsgApproveBuilder"> | Eip712Msg<MsgRevokeBuilder, "/ault.reward.v1.MsgRevokeBuilder"> | Eip712Msg<MsgSetDeployerShare, "/ault.reward.v1.MsgSetDeployerShare"> | Eip712Msg<MsgSetReferral, "/ault.reward.v1.MsgSetReferral"> | Eip712Msg<MsgSetReferralCode, "/ault.reward.v1.MsgSetReferralCode"> | Eip712Msg<MsgUpdateEligibleReferrers, "/ault.reward.v1.MsgUpdateEligibleReferrers"> | Eip712Msg<MsgUpdateParamsAultRewardV1, "/ault.reward.v1.MsgUpdateParams"> | Eip712Msg<MsgDisableTokenPair, "/ault.tokenregistry.v1.MsgDisableTokenPair"> | Eip712Msg<MsgDisableTransfers, "/ault.tokenregistry.v1.MsgDisableTransfers"> | Eip712Msg<MsgEnableTokenPair, "/ault.tokenregistry.v1.MsgEnableTokenPair"> | Eip712Msg<MsgEnableTransfers, "/ault.tokenregistry.v1.MsgEnableTransfers"> | Eip712Msg<MsgRegisterTokenPairInput, "/ault.tokenregistry.v1.MsgRegisterTokenPair"> | Eip712Msg<MsgRemoveTransferLimit, "/ault.tokenregistry.v1.MsgRemoveTransferLimit"> | Eip712Msg<MsgSetTransferLimitInput, "/ault.tokenregistry.v1.MsgSetTransferLimit"> | Eip712Msg<MsgWithdrawDelegatorReward, "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"> | Eip712Msg<MsgBeginRedelegate, "/cosmos.staking.v1beta1.MsgBeginRedelegate"> | Eip712Msg<MsgDelegate, "/cosmos.staking.v1beta1.MsgDelegate"> | Eip712Msg<MsgUndelegate, "/cosmos.staking.v1beta1.MsgUndelegate">;
|
|
119
125
|
export {};
|
|
@@ -17,6 +17,8 @@ export interface Eip712MsgTypeConfig {
|
|
|
17
17
|
valueFields: readonly Eip712Field[];
|
|
18
18
|
nestedTypes?: Record<string, readonly Eip712Field[]>;
|
|
19
19
|
durationFields?: readonly string[];
|
|
20
|
+
/** Fields amino-encoded by the chain as RFC 3339 strings (gogoproto stdtime). */
|
|
21
|
+
timestampFields?: readonly string[];
|
|
20
22
|
enumFieldPaths?: Record<string, Record<string, string>>;
|
|
21
23
|
optionalFields?: readonly string[];
|
|
22
24
|
legacyAminoRegistered?: boolean;
|
|
@@ -26,7 +26,6 @@ import type { Params as MinerChainParams } from "../proto/gen/ault/miner/v1/mine
|
|
|
26
26
|
import type { Params as RateLimitParams } from "../proto/gen/ault/ratelimit/v1/params";
|
|
27
27
|
import type { Params as RewardParams } from "../proto/gen/ault/reward/v1/reward";
|
|
28
28
|
import type { Any as ProtoAny } from "../proto/gen/google/protobuf/any";
|
|
29
|
-
import type { Duration } from "../proto/gen/google/protobuf/duration";
|
|
30
29
|
import type { Eip1193ProviderLike, EthersSignerLike, PrivySignTypedDataLike, SignerInput, ViemWalletLike } from "../eip712/signers";
|
|
31
30
|
import type { BigIntLike } from "../core/address";
|
|
32
31
|
export type { BigIntLike };
|
|
@@ -224,7 +223,12 @@ export interface AgentTxApi {
|
|
|
224
223
|
approveAgent(params: {
|
|
225
224
|
agentPubkey: ProtoAny;
|
|
226
225
|
name?: string;
|
|
227
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Absolute time at which the agent authorization expires. When omitted
|
|
228
|
+
* the chain uses block_time + params.default_expiry; cannot exceed
|
|
229
|
+
* block_time + params.max_expiry.
|
|
230
|
+
*/
|
|
231
|
+
expiresAt?: Date;
|
|
228
232
|
} & TxOptions): Promise<TxResult>;
|
|
229
233
|
revokeAgent(params: {
|
|
230
234
|
agentAddress: string;
|
|
@@ -289,7 +293,7 @@ export interface ClobTxApi {
|
|
|
289
293
|
isBuy: boolean;
|
|
290
294
|
price: string;
|
|
291
295
|
quantity: string;
|
|
292
|
-
|
|
296
|
+
deadline: Date;
|
|
293
297
|
postOnly?: boolean;
|
|
294
298
|
builderAddress?: string;
|
|
295
299
|
builderFeeRate?: string;
|
|
@@ -313,7 +317,7 @@ export interface ClobTxApi {
|
|
|
313
317
|
highPrice: string;
|
|
314
318
|
totalQuantity: string;
|
|
315
319
|
weights: number[];
|
|
316
|
-
|
|
320
|
+
deadline: Date;
|
|
317
321
|
postOnly?: boolean;
|
|
318
322
|
builderAddress?: string;
|
|
319
323
|
builderFeeRate?: string;
|
|
@@ -436,7 +440,7 @@ export interface AgentClobTxApi {
|
|
|
436
440
|
isBuy: boolean;
|
|
437
441
|
price: string;
|
|
438
442
|
quantity: string;
|
|
439
|
-
|
|
443
|
+
deadline: Date;
|
|
440
444
|
postOnly?: boolean;
|
|
441
445
|
builderAddress?: string;
|
|
442
446
|
builderFeeRate?: string;
|
|
@@ -460,7 +464,7 @@ export interface AgentClobTxApi {
|
|
|
460
464
|
highPrice: string;
|
|
461
465
|
totalQuantity: string;
|
|
462
466
|
weights: number[];
|
|
463
|
-
|
|
467
|
+
deadline: Date;
|
|
464
468
|
postOnly?: boolean;
|
|
465
469
|
builderAddress?: string;
|
|
466
470
|
builderFeeRate?: string;
|