ault-sdk-ts 0.0.2-alpha.22 → 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/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 +517 -306
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +517 -306
- 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 +12 -27
- package/dist/rest/dex.generated.d.ts +24 -52
- package/dist/rest/license.d.ts +1 -2
- package/dist/rest/types.d.ts +1 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4824,62 +4824,6 @@ var QueryIsKYCApproverResponse = {
|
|
|
4824
4824
|
return message;
|
|
4825
4825
|
}
|
|
4826
4826
|
};
|
|
4827
|
-
function createBaseQueryActiveLicenseCountAtResponse() {
|
|
4828
|
-
return { count: 0n };
|
|
4829
|
-
}
|
|
4830
|
-
var QueryActiveLicenseCountAtResponse = {
|
|
4831
|
-
encode(message, writer = new BinaryWriter18()) {
|
|
4832
|
-
if (message.count !== 0n) {
|
|
4833
|
-
if (BigInt.asUintN(64, message.count) !== message.count) {
|
|
4834
|
-
throw new globalThis.Error(
|
|
4835
|
-
"value provided for field message.count of type uint64 too large"
|
|
4836
|
-
);
|
|
4837
|
-
}
|
|
4838
|
-
writer.uint32(8).uint64(message.count);
|
|
4839
|
-
}
|
|
4840
|
-
return writer;
|
|
4841
|
-
},
|
|
4842
|
-
decode(input, length) {
|
|
4843
|
-
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4844
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4845
|
-
const message = createBaseQueryActiveLicenseCountAtResponse();
|
|
4846
|
-
while (reader.pos < end) {
|
|
4847
|
-
const tag = reader.uint32();
|
|
4848
|
-
switch (tag >>> 3) {
|
|
4849
|
-
case 1: {
|
|
4850
|
-
if (tag !== 8) {
|
|
4851
|
-
break;
|
|
4852
|
-
}
|
|
4853
|
-
message.count = reader.uint64();
|
|
4854
|
-
continue;
|
|
4855
|
-
}
|
|
4856
|
-
}
|
|
4857
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4858
|
-
break;
|
|
4859
|
-
}
|
|
4860
|
-
reader.skip(tag & 7);
|
|
4861
|
-
}
|
|
4862
|
-
return message;
|
|
4863
|
-
},
|
|
4864
|
-
fromJSON(object2) {
|
|
4865
|
-
return { count: isSet17(object2.count) ? BigInt(object2.count) : 0n };
|
|
4866
|
-
},
|
|
4867
|
-
toJSON(message) {
|
|
4868
|
-
const obj = {};
|
|
4869
|
-
if (message.count !== 0n) {
|
|
4870
|
-
obj.count = message.count.toString();
|
|
4871
|
-
}
|
|
4872
|
-
return obj;
|
|
4873
|
-
},
|
|
4874
|
-
create(base) {
|
|
4875
|
-
return QueryActiveLicenseCountAtResponse.fromPartial(base ?? {});
|
|
4876
|
-
},
|
|
4877
|
-
fromPartial(object2) {
|
|
4878
|
-
const message = createBaseQueryActiveLicenseCountAtResponse();
|
|
4879
|
-
message.count = object2.count ?? 0n;
|
|
4880
|
-
return message;
|
|
4881
|
-
}
|
|
4882
|
-
};
|
|
4883
4827
|
function toTimestamp4(date) {
|
|
4884
4828
|
const seconds = BigInt(Math.trunc(date.getTime() / 1e3));
|
|
4885
4829
|
const nanos = date.getTime() % 1e3 * 1e6;
|
|
@@ -5003,14 +4947,6 @@ function createLicenseApi(context) {
|
|
|
5003
4947
|
`/ault/license/v1/is_kyc_approver/${address}`,
|
|
5004
4948
|
QueryIsKYCApproverResponse
|
|
5005
4949
|
);
|
|
5006
|
-
},
|
|
5007
|
-
async getActiveLicenseCountAt(owner, snapshotTime) {
|
|
5008
|
-
const query = buildQuery({ snapshot_time: snapshotTime });
|
|
5009
|
-
return fetchProtoJson(
|
|
5010
|
-
context,
|
|
5011
|
-
`/ault/license/v1/active_license_count_at/${owner}${query}`,
|
|
5012
|
-
QueryActiveLicenseCountAtResponse
|
|
5013
|
-
);
|
|
5014
4950
|
}
|
|
5015
4951
|
};
|
|
5016
4952
|
}
|
|
@@ -5063,7 +4999,8 @@ function createBaseMarketResponse() {
|
|
|
5063
4999
|
tickPrecision: 0,
|
|
5064
5000
|
lastPrice: "",
|
|
5065
5001
|
lastMatchingHeight: 0n,
|
|
5066
|
-
halted: false
|
|
5002
|
+
halted: false,
|
|
5003
|
+
deployer: ""
|
|
5067
5004
|
};
|
|
5068
5005
|
}
|
|
5069
5006
|
var MarketResponse = {
|
|
@@ -5106,6 +5043,9 @@ var MarketResponse = {
|
|
|
5106
5043
|
if (message.halted !== false) {
|
|
5107
5044
|
writer.uint32(88).bool(message.halted);
|
|
5108
5045
|
}
|
|
5046
|
+
if (message.deployer !== "") {
|
|
5047
|
+
writer.uint32(98).string(message.deployer);
|
|
5048
|
+
}
|
|
5109
5049
|
return writer;
|
|
5110
5050
|
},
|
|
5111
5051
|
decode(input, length) {
|
|
@@ -5192,6 +5132,13 @@ var MarketResponse = {
|
|
|
5192
5132
|
message.halted = reader.bool();
|
|
5193
5133
|
continue;
|
|
5194
5134
|
}
|
|
5135
|
+
case 12: {
|
|
5136
|
+
if (tag !== 98) {
|
|
5137
|
+
break;
|
|
5138
|
+
}
|
|
5139
|
+
message.deployer = reader.string();
|
|
5140
|
+
continue;
|
|
5141
|
+
}
|
|
5195
5142
|
}
|
|
5196
5143
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5197
5144
|
break;
|
|
@@ -5212,7 +5159,8 @@ var MarketResponse = {
|
|
|
5212
5159
|
tickPrecision: isSet18(object2.tickPrecision) ? globalThis.Number(object2.tickPrecision) : isSet18(object2.tick_precision) ? globalThis.Number(object2.tick_precision) : 0,
|
|
5213
5160
|
lastPrice: isSet18(object2.lastPrice) ? globalThis.String(object2.lastPrice) : isSet18(object2.last_price) ? globalThis.String(object2.last_price) : "",
|
|
5214
5161
|
lastMatchingHeight: isSet18(object2.lastMatchingHeight) ? BigInt(object2.lastMatchingHeight) : isSet18(object2.last_matching_height) ? BigInt(object2.last_matching_height) : 0n,
|
|
5215
|
-
halted: isSet18(object2.halted) ? globalThis.Boolean(object2.halted) : false
|
|
5162
|
+
halted: isSet18(object2.halted) ? globalThis.Boolean(object2.halted) : false,
|
|
5163
|
+
deployer: isSet18(object2.deployer) ? globalThis.String(object2.deployer) : ""
|
|
5216
5164
|
};
|
|
5217
5165
|
},
|
|
5218
5166
|
toJSON(message) {
|
|
@@ -5250,6 +5198,9 @@ var MarketResponse = {
|
|
|
5250
5198
|
if (message.halted !== false) {
|
|
5251
5199
|
obj.halted = message.halted;
|
|
5252
5200
|
}
|
|
5201
|
+
if (message.deployer !== "") {
|
|
5202
|
+
obj.deployer = message.deployer;
|
|
5203
|
+
}
|
|
5253
5204
|
return obj;
|
|
5254
5205
|
},
|
|
5255
5206
|
create(base) {
|
|
@@ -5268,6 +5219,7 @@ var MarketResponse = {
|
|
|
5268
5219
|
message.lastPrice = object2.lastPrice ?? "";
|
|
5269
5220
|
message.lastMatchingHeight = object2.lastMatchingHeight ?? 0n;
|
|
5270
5221
|
message.halted = object2.halted ?? false;
|
|
5222
|
+
message.deployer = object2.deployer ?? "";
|
|
5271
5223
|
return message;
|
|
5272
5224
|
}
|
|
5273
5225
|
};
|
|
@@ -5818,7 +5770,7 @@ var EpochInfo = {
|
|
|
5818
5770
|
}
|
|
5819
5771
|
};
|
|
5820
5772
|
function createBaseOperatorInfo() {
|
|
5821
|
-
return { operator: "", commissionRate: 0, commissionRecipient: ""
|
|
5773
|
+
return { operator: "", commissionRate: 0, commissionRecipient: "" };
|
|
5822
5774
|
}
|
|
5823
5775
|
var OperatorInfo = {
|
|
5824
5776
|
encode(message, writer = new BinaryWriter22()) {
|
|
@@ -5831,14 +5783,6 @@ var OperatorInfo = {
|
|
|
5831
5783
|
if (message.commissionRecipient !== "") {
|
|
5832
5784
|
writer.uint32(26).string(message.commissionRecipient);
|
|
5833
5785
|
}
|
|
5834
|
-
if (message.lastUpdateEpoch !== 0n) {
|
|
5835
|
-
if (BigInt.asUintN(64, message.lastUpdateEpoch) !== message.lastUpdateEpoch) {
|
|
5836
|
-
throw new globalThis.Error(
|
|
5837
|
-
"value provided for field message.lastUpdateEpoch of type uint64 too large"
|
|
5838
|
-
);
|
|
5839
|
-
}
|
|
5840
|
-
writer.uint32(32).uint64(message.lastUpdateEpoch);
|
|
5841
|
-
}
|
|
5842
5786
|
return writer;
|
|
5843
5787
|
},
|
|
5844
5788
|
decode(input, length) {
|
|
@@ -5869,13 +5813,6 @@ var OperatorInfo = {
|
|
|
5869
5813
|
message.commissionRecipient = reader.string();
|
|
5870
5814
|
continue;
|
|
5871
5815
|
}
|
|
5872
|
-
case 4: {
|
|
5873
|
-
if (tag !== 32) {
|
|
5874
|
-
break;
|
|
5875
|
-
}
|
|
5876
|
-
message.lastUpdateEpoch = reader.uint64();
|
|
5877
|
-
continue;
|
|
5878
|
-
}
|
|
5879
5816
|
}
|
|
5880
5817
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5881
5818
|
break;
|
|
@@ -5888,8 +5825,7 @@ var OperatorInfo = {
|
|
|
5888
5825
|
return {
|
|
5889
5826
|
operator: isSet21(object2.operator) ? globalThis.String(object2.operator) : "",
|
|
5890
5827
|
commissionRate: isSet21(object2.commissionRate) ? globalThis.Number(object2.commissionRate) : isSet21(object2.commission_rate) ? globalThis.Number(object2.commission_rate) : 0,
|
|
5891
|
-
commissionRecipient: isSet21(object2.commissionRecipient) ? globalThis.String(object2.commissionRecipient) : isSet21(object2.commission_recipient) ? globalThis.String(object2.commission_recipient) : ""
|
|
5892
|
-
lastUpdateEpoch: isSet21(object2.lastUpdateEpoch) ? BigInt(object2.lastUpdateEpoch) : isSet21(object2.last_update_epoch) ? BigInt(object2.last_update_epoch) : 0n
|
|
5828
|
+
commissionRecipient: isSet21(object2.commissionRecipient) ? globalThis.String(object2.commissionRecipient) : isSet21(object2.commission_recipient) ? globalThis.String(object2.commission_recipient) : ""
|
|
5893
5829
|
};
|
|
5894
5830
|
},
|
|
5895
5831
|
toJSON(message) {
|
|
@@ -5903,9 +5839,6 @@ var OperatorInfo = {
|
|
|
5903
5839
|
if (message.commissionRecipient !== "") {
|
|
5904
5840
|
obj.commissionRecipient = message.commissionRecipient;
|
|
5905
5841
|
}
|
|
5906
|
-
if (message.lastUpdateEpoch !== 0n) {
|
|
5907
|
-
obj.lastUpdateEpoch = message.lastUpdateEpoch.toString();
|
|
5908
|
-
}
|
|
5909
5842
|
return obj;
|
|
5910
5843
|
},
|
|
5911
5844
|
create(base) {
|
|
@@ -5916,7 +5849,6 @@ var OperatorInfo = {
|
|
|
5916
5849
|
message.operator = object2.operator ?? "";
|
|
5917
5850
|
message.commissionRate = object2.commissionRate ?? 0;
|
|
5918
5851
|
message.commissionRecipient = object2.commissionRecipient ?? "";
|
|
5919
|
-
message.lastUpdateEpoch = object2.lastUpdateEpoch ?? 0n;
|
|
5920
5852
|
return message;
|
|
5921
5853
|
}
|
|
5922
5854
|
};
|
|
@@ -6558,49 +6490,16 @@ var QueryEpochResponse = {
|
|
|
6558
6490
|
}
|
|
6559
6491
|
};
|
|
6560
6492
|
function createBaseQueryLicenseMinerInfoResponse() {
|
|
6561
|
-
return {
|
|
6562
|
-
vrfPubkey: new Uint8Array(0),
|
|
6563
|
-
lastSubmitEpoch: 0n,
|
|
6564
|
-
eligibleNow: false,
|
|
6565
|
-
quarantinedLocal: false,
|
|
6566
|
-
quarantinedSource: false,
|
|
6567
|
-
allTimeCredits: 0n,
|
|
6568
|
-
allTimePayouts: ""
|
|
6569
|
-
};
|
|
6493
|
+
return { vrfPubkey: new Uint8Array(0), eligibleNow: false };
|
|
6570
6494
|
}
|
|
6571
6495
|
var QueryLicenseMinerInfoResponse = {
|
|
6572
6496
|
encode(message, writer = new BinaryWriter23()) {
|
|
6573
6497
|
if (message.vrfPubkey.length !== 0) {
|
|
6574
6498
|
writer.uint32(10).bytes(message.vrfPubkey);
|
|
6575
6499
|
}
|
|
6576
|
-
if (message.lastSubmitEpoch !== 0n) {
|
|
6577
|
-
if (BigInt.asUintN(64, message.lastSubmitEpoch) !== message.lastSubmitEpoch) {
|
|
6578
|
-
throw new globalThis.Error(
|
|
6579
|
-
"value provided for field message.lastSubmitEpoch of type uint64 too large"
|
|
6580
|
-
);
|
|
6581
|
-
}
|
|
6582
|
-
writer.uint32(16).uint64(message.lastSubmitEpoch);
|
|
6583
|
-
}
|
|
6584
6500
|
if (message.eligibleNow !== false) {
|
|
6585
6501
|
writer.uint32(24).bool(message.eligibleNow);
|
|
6586
6502
|
}
|
|
6587
|
-
if (message.quarantinedLocal !== false) {
|
|
6588
|
-
writer.uint32(32).bool(message.quarantinedLocal);
|
|
6589
|
-
}
|
|
6590
|
-
if (message.quarantinedSource !== false) {
|
|
6591
|
-
writer.uint32(40).bool(message.quarantinedSource);
|
|
6592
|
-
}
|
|
6593
|
-
if (message.allTimeCredits !== 0n) {
|
|
6594
|
-
if (BigInt.asUintN(64, message.allTimeCredits) !== message.allTimeCredits) {
|
|
6595
|
-
throw new globalThis.Error(
|
|
6596
|
-
"value provided for field message.allTimeCredits of type uint64 too large"
|
|
6597
|
-
);
|
|
6598
|
-
}
|
|
6599
|
-
writer.uint32(48).uint64(message.allTimeCredits);
|
|
6600
|
-
}
|
|
6601
|
-
if (message.allTimePayouts !== "") {
|
|
6602
|
-
writer.uint32(58).string(message.allTimePayouts);
|
|
6603
|
-
}
|
|
6604
6503
|
return writer;
|
|
6605
6504
|
},
|
|
6606
6505
|
decode(input, length) {
|
|
@@ -6617,13 +6516,6 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6617
6516
|
message.vrfPubkey = reader.bytes();
|
|
6618
6517
|
continue;
|
|
6619
6518
|
}
|
|
6620
|
-
case 2: {
|
|
6621
|
-
if (tag !== 16) {
|
|
6622
|
-
break;
|
|
6623
|
-
}
|
|
6624
|
-
message.lastSubmitEpoch = reader.uint64();
|
|
6625
|
-
continue;
|
|
6626
|
-
}
|
|
6627
6519
|
case 3: {
|
|
6628
6520
|
if (tag !== 24) {
|
|
6629
6521
|
break;
|
|
@@ -6631,34 +6523,6 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6631
6523
|
message.eligibleNow = reader.bool();
|
|
6632
6524
|
continue;
|
|
6633
6525
|
}
|
|
6634
|
-
case 4: {
|
|
6635
|
-
if (tag !== 32) {
|
|
6636
|
-
break;
|
|
6637
|
-
}
|
|
6638
|
-
message.quarantinedLocal = reader.bool();
|
|
6639
|
-
continue;
|
|
6640
|
-
}
|
|
6641
|
-
case 5: {
|
|
6642
|
-
if (tag !== 40) {
|
|
6643
|
-
break;
|
|
6644
|
-
}
|
|
6645
|
-
message.quarantinedSource = reader.bool();
|
|
6646
|
-
continue;
|
|
6647
|
-
}
|
|
6648
|
-
case 6: {
|
|
6649
|
-
if (tag !== 48) {
|
|
6650
|
-
break;
|
|
6651
|
-
}
|
|
6652
|
-
message.allTimeCredits = reader.uint64();
|
|
6653
|
-
continue;
|
|
6654
|
-
}
|
|
6655
|
-
case 7: {
|
|
6656
|
-
if (tag !== 58) {
|
|
6657
|
-
break;
|
|
6658
|
-
}
|
|
6659
|
-
message.allTimePayouts = reader.string();
|
|
6660
|
-
continue;
|
|
6661
|
-
}
|
|
6662
6526
|
}
|
|
6663
6527
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6664
6528
|
break;
|
|
@@ -6670,12 +6534,7 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6670
6534
|
fromJSON(object2) {
|
|
6671
6535
|
return {
|
|
6672
6536
|
vrfPubkey: isSet22(object2.vrfPubkey) ? bytesFromBase647(object2.vrfPubkey) : isSet22(object2.vrf_pubkey) ? bytesFromBase647(object2.vrf_pubkey) : new Uint8Array(0),
|
|
6673
|
-
|
|
6674
|
-
eligibleNow: isSet22(object2.eligibleNow) ? globalThis.Boolean(object2.eligibleNow) : isSet22(object2.eligible_now) ? globalThis.Boolean(object2.eligible_now) : false,
|
|
6675
|
-
quarantinedLocal: isSet22(object2.quarantinedLocal) ? globalThis.Boolean(object2.quarantinedLocal) : isSet22(object2.quarantined_local) ? globalThis.Boolean(object2.quarantined_local) : false,
|
|
6676
|
-
quarantinedSource: isSet22(object2.quarantinedSource) ? globalThis.Boolean(object2.quarantinedSource) : isSet22(object2.quarantined_source) ? globalThis.Boolean(object2.quarantined_source) : false,
|
|
6677
|
-
allTimeCredits: isSet22(object2.allTimeCredits) ? BigInt(object2.allTimeCredits) : isSet22(object2.all_time_credits) ? BigInt(object2.all_time_credits) : 0n,
|
|
6678
|
-
allTimePayouts: isSet22(object2.allTimePayouts) ? globalThis.String(object2.allTimePayouts) : isSet22(object2.all_time_payouts) ? globalThis.String(object2.all_time_payouts) : ""
|
|
6537
|
+
eligibleNow: isSet22(object2.eligibleNow) ? globalThis.Boolean(object2.eligibleNow) : isSet22(object2.eligible_now) ? globalThis.Boolean(object2.eligible_now) : false
|
|
6679
6538
|
};
|
|
6680
6539
|
},
|
|
6681
6540
|
toJSON(message) {
|
|
@@ -6683,24 +6542,9 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6683
6542
|
if (message.vrfPubkey.length !== 0) {
|
|
6684
6543
|
obj.vrfPubkey = base64FromBytes7(message.vrfPubkey);
|
|
6685
6544
|
}
|
|
6686
|
-
if (message.lastSubmitEpoch !== 0n) {
|
|
6687
|
-
obj.lastSubmitEpoch = message.lastSubmitEpoch.toString();
|
|
6688
|
-
}
|
|
6689
6545
|
if (message.eligibleNow !== false) {
|
|
6690
6546
|
obj.eligibleNow = message.eligibleNow;
|
|
6691
6547
|
}
|
|
6692
|
-
if (message.quarantinedLocal !== false) {
|
|
6693
|
-
obj.quarantinedLocal = message.quarantinedLocal;
|
|
6694
|
-
}
|
|
6695
|
-
if (message.quarantinedSource !== false) {
|
|
6696
|
-
obj.quarantinedSource = message.quarantinedSource;
|
|
6697
|
-
}
|
|
6698
|
-
if (message.allTimeCredits !== 0n) {
|
|
6699
|
-
obj.allTimeCredits = message.allTimeCredits.toString();
|
|
6700
|
-
}
|
|
6701
|
-
if (message.allTimePayouts !== "") {
|
|
6702
|
-
obj.allTimePayouts = message.allTimePayouts;
|
|
6703
|
-
}
|
|
6704
6548
|
return obj;
|
|
6705
6549
|
},
|
|
6706
6550
|
create(base) {
|
|
@@ -6709,12 +6553,7 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6709
6553
|
fromPartial(object2) {
|
|
6710
6554
|
const message = createBaseQueryLicenseMinerInfoResponse();
|
|
6711
6555
|
message.vrfPubkey = object2.vrfPubkey ?? new Uint8Array(0);
|
|
6712
|
-
message.lastSubmitEpoch = object2.lastSubmitEpoch ?? 0n;
|
|
6713
6556
|
message.eligibleNow = object2.eligibleNow ?? false;
|
|
6714
|
-
message.quarantinedLocal = object2.quarantinedLocal ?? false;
|
|
6715
|
-
message.quarantinedSource = object2.quarantinedSource ?? false;
|
|
6716
|
-
message.allTimeCredits = object2.allTimeCredits ?? 0n;
|
|
6717
|
-
message.allTimePayouts = object2.allTimePayouts ?? "";
|
|
6718
6557
|
return message;
|
|
6719
6558
|
}
|
|
6720
6559
|
};
|
|
@@ -11836,74 +11675,6 @@ var Limiter = {
|
|
|
11836
11675
|
return message;
|
|
11837
11676
|
}
|
|
11838
11677
|
};
|
|
11839
|
-
function createBaseTransferLimitConfig() {
|
|
11840
|
-
return { hourly: void 0, daily: void 0 };
|
|
11841
|
-
}
|
|
11842
|
-
var TransferLimitConfig = {
|
|
11843
|
-
encode(message, writer = new BinaryWriter32()) {
|
|
11844
|
-
if (message.hourly !== void 0) {
|
|
11845
|
-
Limiter.encode(message.hourly, writer.uint32(10).fork()).join();
|
|
11846
|
-
}
|
|
11847
|
-
if (message.daily !== void 0) {
|
|
11848
|
-
Limiter.encode(message.daily, writer.uint32(18).fork()).join();
|
|
11849
|
-
}
|
|
11850
|
-
return writer;
|
|
11851
|
-
},
|
|
11852
|
-
decode(input, length) {
|
|
11853
|
-
const reader = input instanceof BinaryReader32 ? input : new BinaryReader32(input);
|
|
11854
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11855
|
-
const message = createBaseTransferLimitConfig();
|
|
11856
|
-
while (reader.pos < end) {
|
|
11857
|
-
const tag = reader.uint32();
|
|
11858
|
-
switch (tag >>> 3) {
|
|
11859
|
-
case 1: {
|
|
11860
|
-
if (tag !== 10) {
|
|
11861
|
-
break;
|
|
11862
|
-
}
|
|
11863
|
-
message.hourly = Limiter.decode(reader, reader.uint32());
|
|
11864
|
-
continue;
|
|
11865
|
-
}
|
|
11866
|
-
case 2: {
|
|
11867
|
-
if (tag !== 18) {
|
|
11868
|
-
break;
|
|
11869
|
-
}
|
|
11870
|
-
message.daily = Limiter.decode(reader, reader.uint32());
|
|
11871
|
-
continue;
|
|
11872
|
-
}
|
|
11873
|
-
}
|
|
11874
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
11875
|
-
break;
|
|
11876
|
-
}
|
|
11877
|
-
reader.skip(tag & 7);
|
|
11878
|
-
}
|
|
11879
|
-
return message;
|
|
11880
|
-
},
|
|
11881
|
-
fromJSON(object2) {
|
|
11882
|
-
return {
|
|
11883
|
-
hourly: isSet30(object2.hourly) ? Limiter.fromJSON(object2.hourly) : void 0,
|
|
11884
|
-
daily: isSet30(object2.daily) ? Limiter.fromJSON(object2.daily) : void 0
|
|
11885
|
-
};
|
|
11886
|
-
},
|
|
11887
|
-
toJSON(message) {
|
|
11888
|
-
const obj = {};
|
|
11889
|
-
if (message.hourly !== void 0) {
|
|
11890
|
-
obj.hourly = Limiter.toJSON(message.hourly);
|
|
11891
|
-
}
|
|
11892
|
-
if (message.daily !== void 0) {
|
|
11893
|
-
obj.daily = Limiter.toJSON(message.daily);
|
|
11894
|
-
}
|
|
11895
|
-
return obj;
|
|
11896
|
-
},
|
|
11897
|
-
create(base) {
|
|
11898
|
-
return TransferLimitConfig.fromPartial(base ?? {});
|
|
11899
|
-
},
|
|
11900
|
-
fromPartial(object2) {
|
|
11901
|
-
const message = createBaseTransferLimitConfig();
|
|
11902
|
-
message.hourly = object2.hourly !== void 0 && object2.hourly !== null ? Limiter.fromPartial(object2.hourly) : void 0;
|
|
11903
|
-
message.daily = object2.daily !== void 0 && object2.daily !== null ? Limiter.fromPartial(object2.daily) : void 0;
|
|
11904
|
-
return message;
|
|
11905
|
-
}
|
|
11906
|
-
};
|
|
11907
11678
|
function createBaseTokenPair() {
|
|
11908
11679
|
return { erc20Address: "", denom: "", erc20Decimals: 0, enabled: false };
|
|
11909
11680
|
}
|
|
@@ -12002,6 +11773,74 @@ var TokenPair = {
|
|
|
12002
11773
|
return message;
|
|
12003
11774
|
}
|
|
12004
11775
|
};
|
|
11776
|
+
function createBaseTransferLimitConfig() {
|
|
11777
|
+
return { hourly: void 0, daily: void 0 };
|
|
11778
|
+
}
|
|
11779
|
+
var TransferLimitConfig = {
|
|
11780
|
+
encode(message, writer = new BinaryWriter32()) {
|
|
11781
|
+
if (message.hourly !== void 0) {
|
|
11782
|
+
Limiter.encode(message.hourly, writer.uint32(10).fork()).join();
|
|
11783
|
+
}
|
|
11784
|
+
if (message.daily !== void 0) {
|
|
11785
|
+
Limiter.encode(message.daily, writer.uint32(18).fork()).join();
|
|
11786
|
+
}
|
|
11787
|
+
return writer;
|
|
11788
|
+
},
|
|
11789
|
+
decode(input, length) {
|
|
11790
|
+
const reader = input instanceof BinaryReader32 ? input : new BinaryReader32(input);
|
|
11791
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11792
|
+
const message = createBaseTransferLimitConfig();
|
|
11793
|
+
while (reader.pos < end) {
|
|
11794
|
+
const tag = reader.uint32();
|
|
11795
|
+
switch (tag >>> 3) {
|
|
11796
|
+
case 1: {
|
|
11797
|
+
if (tag !== 10) {
|
|
11798
|
+
break;
|
|
11799
|
+
}
|
|
11800
|
+
message.hourly = Limiter.decode(reader, reader.uint32());
|
|
11801
|
+
continue;
|
|
11802
|
+
}
|
|
11803
|
+
case 2: {
|
|
11804
|
+
if (tag !== 18) {
|
|
11805
|
+
break;
|
|
11806
|
+
}
|
|
11807
|
+
message.daily = Limiter.decode(reader, reader.uint32());
|
|
11808
|
+
continue;
|
|
11809
|
+
}
|
|
11810
|
+
}
|
|
11811
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
11812
|
+
break;
|
|
11813
|
+
}
|
|
11814
|
+
reader.skip(tag & 7);
|
|
11815
|
+
}
|
|
11816
|
+
return message;
|
|
11817
|
+
},
|
|
11818
|
+
fromJSON(object2) {
|
|
11819
|
+
return {
|
|
11820
|
+
hourly: isSet30(object2.hourly) ? Limiter.fromJSON(object2.hourly) : void 0,
|
|
11821
|
+
daily: isSet30(object2.daily) ? Limiter.fromJSON(object2.daily) : void 0
|
|
11822
|
+
};
|
|
11823
|
+
},
|
|
11824
|
+
toJSON(message) {
|
|
11825
|
+
const obj = {};
|
|
11826
|
+
if (message.hourly !== void 0) {
|
|
11827
|
+
obj.hourly = Limiter.toJSON(message.hourly);
|
|
11828
|
+
}
|
|
11829
|
+
if (message.daily !== void 0) {
|
|
11830
|
+
obj.daily = Limiter.toJSON(message.daily);
|
|
11831
|
+
}
|
|
11832
|
+
return obj;
|
|
11833
|
+
},
|
|
11834
|
+
create(base) {
|
|
11835
|
+
return TransferLimitConfig.fromPartial(base ?? {});
|
|
11836
|
+
},
|
|
11837
|
+
fromPartial(object2) {
|
|
11838
|
+
const message = createBaseTransferLimitConfig();
|
|
11839
|
+
message.hourly = object2.hourly !== void 0 && object2.hourly !== null ? Limiter.fromPartial(object2.hourly) : void 0;
|
|
11840
|
+
message.daily = object2.daily !== void 0 && object2.daily !== null ? Limiter.fromPartial(object2.daily) : void 0;
|
|
11841
|
+
return message;
|
|
11842
|
+
}
|
|
11843
|
+
};
|
|
12005
11844
|
function createBaseParams10() {
|
|
12006
11845
|
return { enabled: false };
|
|
12007
11846
|
}
|
|
@@ -12301,7 +12140,7 @@ var EIP712_MSG_TYPES = {
|
|
|
12301
12140
|
valueFields: [
|
|
12302
12141
|
{ name: "name", type: "string" },
|
|
12303
12142
|
{ name: "master_address", type: "string", jsName: "masterAddress" },
|
|
12304
|
-
{ name: "
|
|
12143
|
+
{ name: "expires_at", type: "string", jsName: "expiresAt" },
|
|
12305
12144
|
{ name: "agent_pubkey", type: "NESTED", jsName: "agentPubkey" }
|
|
12306
12145
|
],
|
|
12307
12146
|
nestedTypes: {
|
|
@@ -12311,8 +12150,8 @@ var EIP712_MSG_TYPES = {
|
|
|
12311
12150
|
],
|
|
12312
12151
|
value: [{ name: "key", type: "string" }]
|
|
12313
12152
|
},
|
|
12314
|
-
|
|
12315
|
-
optionalFields: ["
|
|
12153
|
+
timestampFields: ["expires_at"],
|
|
12154
|
+
optionalFields: ["expires_at"],
|
|
12316
12155
|
fieldSemantics: {
|
|
12317
12156
|
agent_pubkey: { isPubKey: true },
|
|
12318
12157
|
master_address: { isAddress: true }
|
|
@@ -12406,7 +12245,27 @@ var EIP712_MSG_TYPES = {
|
|
|
12406
12245
|
{ name: "order_ids", type: "string[]", jsName: "orderIds" }
|
|
12407
12246
|
],
|
|
12408
12247
|
fieldSemantics: {
|
|
12409
|
-
order_ids: { isBinary: true }
|
|
12248
|
+
order_ids: { isBinary: true }
|
|
12249
|
+
}
|
|
12250
|
+
},
|
|
12251
|
+
"/ault.clob.v1.MsgModifyOrders": {
|
|
12252
|
+
aminoType: "clob/MsgModifyOrders",
|
|
12253
|
+
eip712TypeName: "TypeMsgModifyOrders",
|
|
12254
|
+
valueFields: [
|
|
12255
|
+
{ name: "sender", type: "string" },
|
|
12256
|
+
{ name: "orders", type: "NESTED[]" }
|
|
12257
|
+
],
|
|
12258
|
+
nestedTypes: {
|
|
12259
|
+
orders: [
|
|
12260
|
+
{ name: "order_id", type: "string", jsName: "orderId" },
|
|
12261
|
+
{ name: "new_quantity", type: "string", jsName: "newQuantity" },
|
|
12262
|
+
{ name: "new_price", type: "string", jsName: "newPrice" }
|
|
12263
|
+
]
|
|
12264
|
+
},
|
|
12265
|
+
fieldSemantics: {
|
|
12266
|
+
new_price: { isLegacyDec: true },
|
|
12267
|
+
new_quantity: { isLegacyDec: true },
|
|
12268
|
+
order_id: { isBinary: true }
|
|
12410
12269
|
}
|
|
12411
12270
|
},
|
|
12412
12271
|
"/ault.clob.v1.MsgPlaceLimitOrder": {
|
|
@@ -12418,12 +12277,12 @@ var EIP712_MSG_TYPES = {
|
|
|
12418
12277
|
{ name: "price", type: "string" },
|
|
12419
12278
|
{ name: "post_only", type: "bool", jsName: "postOnly" },
|
|
12420
12279
|
{ name: "market_id", type: "string", jsName: "marketId" },
|
|
12421
|
-
{ name: "lifespan", type: "string" },
|
|
12422
12280
|
{ name: "is_buy", type: "bool", jsName: "isBuy" },
|
|
12281
|
+
{ name: "deadline", type: "string" },
|
|
12423
12282
|
{ name: "builder_fee_rate", type: "string", jsName: "builderFeeRate" },
|
|
12424
12283
|
{ name: "builder_address", type: "string", jsName: "builderAddress" }
|
|
12425
12284
|
],
|
|
12426
|
-
|
|
12285
|
+
timestampFields: ["deadline"],
|
|
12427
12286
|
optionalFields: ["builder_address", "builder_fee_rate"],
|
|
12428
12287
|
fieldSemantics: {
|
|
12429
12288
|
builder_address: { isAddress: true },
|
|
@@ -12466,13 +12325,13 @@ var EIP712_MSG_TYPES = {
|
|
|
12466
12325
|
{ name: "post_only", type: "bool", jsName: "postOnly" },
|
|
12467
12326
|
{ name: "market_id", type: "string", jsName: "marketId" },
|
|
12468
12327
|
{ name: "low_price", type: "string", jsName: "lowPrice" },
|
|
12469
|
-
{ name: "lifespan", type: "string" },
|
|
12470
12328
|
{ name: "is_buy", type: "bool", jsName: "isBuy" },
|
|
12471
12329
|
{ name: "high_price", type: "string", jsName: "highPrice" },
|
|
12330
|
+
{ name: "deadline", type: "string" },
|
|
12472
12331
|
{ name: "builder_fee_rate", type: "string", jsName: "builderFeeRate" },
|
|
12473
12332
|
{ name: "builder_address", type: "string", jsName: "builderAddress" }
|
|
12474
12333
|
],
|
|
12475
|
-
|
|
12334
|
+
timestampFields: ["deadline"],
|
|
12476
12335
|
optionalFields: ["builder_address", "builder_fee_rate"],
|
|
12477
12336
|
fieldSemantics: {
|
|
12478
12337
|
builder_address: { isAddress: true },
|
|
@@ -12717,9 +12576,11 @@ var EIP712_MSG_TYPES = {
|
|
|
12717
12576
|
eip712TypeName: "TypeMsgCreateMarket",
|
|
12718
12577
|
valueFields: [
|
|
12719
12578
|
{ name: "tick_precision", type: "string", jsName: "tickPrecision", protoHint: "uint32" },
|
|
12579
|
+
{ name: "taker_fee_rate", type: "string", jsName: "takerFeeRate" },
|
|
12720
12580
|
{ name: "sender", type: "string" },
|
|
12721
12581
|
{ name: "quote_denom", type: "string", jsName: "quoteDenom" },
|
|
12722
12582
|
{ name: "market_type", type: "int64", jsName: "marketType" },
|
|
12583
|
+
{ name: "maker_fee_rate", type: "string", jsName: "makerFeeRate" },
|
|
12723
12584
|
{ name: "base_denom", type: "string", jsName: "baseDenom" }
|
|
12724
12585
|
],
|
|
12725
12586
|
enumFieldPaths: {
|
|
@@ -12727,6 +12588,11 @@ var EIP712_MSG_TYPES = {
|
|
|
12727
12588
|
"0": "MARKET_TYPE_UNSPECIFIED",
|
|
12728
12589
|
"1": "MARKET_TYPE_SPOT"
|
|
12729
12590
|
}
|
|
12591
|
+
},
|
|
12592
|
+
optionalFields: ["maker_fee_rate", "taker_fee_rate"],
|
|
12593
|
+
fieldSemantics: {
|
|
12594
|
+
maker_fee_rate: { isLegacyDec: true },
|
|
12595
|
+
taker_fee_rate: { isLegacyDec: true }
|
|
12730
12596
|
}
|
|
12731
12597
|
},
|
|
12732
12598
|
"/ault.market.v1.MsgHaltAllMarkets": {
|
|
@@ -13541,6 +13407,7 @@ var msg = {
|
|
|
13541
13407
|
},
|
|
13542
13408
|
clob: {
|
|
13543
13409
|
cancelOrders: (value) => buildMsg("/ault.clob.v1.MsgCancelOrders", value),
|
|
13410
|
+
modifyOrders: (value) => buildMsg("/ault.clob.v1.MsgModifyOrders", value),
|
|
13544
13411
|
placeLimitOrder: (value) => buildMsg("/ault.clob.v1.MsgPlaceLimitOrder", value),
|
|
13545
13412
|
placeMarketOrder: (value) => buildMsg("/ault.clob.v1.MsgPlaceMarketOrder", value),
|
|
13546
13413
|
placeScaleOrder: (value) => buildMsg("/ault.clob.v1.MsgPlaceScaleOrder", value),
|
|
@@ -13810,6 +13677,51 @@ function durationToNanosecondsString(value, fieldName) {
|
|
|
13810
13677
|
}
|
|
13811
13678
|
return (seconds * 1000000000n + nanos).toString();
|
|
13812
13679
|
}
|
|
13680
|
+
var MAX_RFC3339_SECONDS = 253402300799n;
|
|
13681
|
+
function timestampToRfc3339String(value, fieldName) {
|
|
13682
|
+
let seconds;
|
|
13683
|
+
let nanos;
|
|
13684
|
+
if (value instanceof Date) {
|
|
13685
|
+
const ms = value.getTime();
|
|
13686
|
+
if (Number.isNaN(ms)) {
|
|
13687
|
+
throw new Error(`Timestamp field "${fieldName}" must be a valid Date.`);
|
|
13688
|
+
}
|
|
13689
|
+
const secondsNum = Math.floor(ms / 1e3);
|
|
13690
|
+
seconds = BigInt(secondsNum);
|
|
13691
|
+
nanos = BigInt(ms - secondsNum * 1e3) * 1000000n;
|
|
13692
|
+
} else if (typeof value === "string") {
|
|
13693
|
+
const ms = Date.parse(value);
|
|
13694
|
+
if (Number.isNaN(ms)) {
|
|
13695
|
+
throw new Error(`Timestamp field "${fieldName}" must be a valid RFC 3339 date string.`);
|
|
13696
|
+
}
|
|
13697
|
+
return timestampToRfc3339String(new Date(ms), fieldName);
|
|
13698
|
+
} else if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
13699
|
+
const record2 = value;
|
|
13700
|
+
if (record2.seconds === void 0 && record2.nanos === void 0) {
|
|
13701
|
+
throw new Error(`Timestamp field "${fieldName}" must include seconds or nanos.`);
|
|
13702
|
+
}
|
|
13703
|
+
seconds = toBigIntLike(record2.seconds ?? 0n, `${fieldName}.seconds`);
|
|
13704
|
+
nanos = toBigIntLike(record2.nanos ?? 0, `${fieldName}.nanos`);
|
|
13705
|
+
} else {
|
|
13706
|
+
throw new Error(
|
|
13707
|
+
`Timestamp field "${fieldName}" must be a Date, RFC 3339 string, or protobuf Timestamp object.`
|
|
13708
|
+
);
|
|
13709
|
+
}
|
|
13710
|
+
if (nanos < 0n || nanos > 999999999n) {
|
|
13711
|
+
throw new Error(`Timestamp field "${fieldName}.nanos" must be between 0 and 999999999.`);
|
|
13712
|
+
}
|
|
13713
|
+
if (seconds < 0n || seconds > MAX_RFC3339_SECONDS) {
|
|
13714
|
+
throw new Error(
|
|
13715
|
+
`Timestamp field "${fieldName}.seconds" must be between 1970-01-01 and 9999-12-31.`
|
|
13716
|
+
);
|
|
13717
|
+
}
|
|
13718
|
+
const datePart = new Date(Number(seconds) * 1e3).toISOString().slice(0, 19);
|
|
13719
|
+
if (nanos === 0n) {
|
|
13720
|
+
return `${datePart}Z`;
|
|
13721
|
+
}
|
|
13722
|
+
const fraction = nanos.toString().padStart(9, "0").replace(/0+$/, "");
|
|
13723
|
+
return `${datePart}.${fraction}Z`;
|
|
13724
|
+
}
|
|
13813
13725
|
function normalizeEnumValue(value, fieldPath, enumFieldPaths) {
|
|
13814
13726
|
const values = enumFieldPaths?.[fieldPath];
|
|
13815
13727
|
if (!values) {
|
|
@@ -13835,10 +13747,11 @@ function normalizeEnumValue(value, fieldPath, enumFieldPaths) {
|
|
|
13835
13747
|
}
|
|
13836
13748
|
return value;
|
|
13837
13749
|
}
|
|
13838
|
-
function mapValueToAmino(value, fields, nestedTypes, durationFields, enumFieldPaths, optionalFields, pathPrefix = "", fieldSemantics) {
|
|
13750
|
+
function mapValueToAmino(value, fields, nestedTypes, durationFields, timestampFields, enumFieldPaths, optionalFields, pathPrefix = "", fieldSemantics) {
|
|
13839
13751
|
const record2 = value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
13840
13752
|
const normalized = {};
|
|
13841
13753
|
const durationSet = durationFields ? new Set(durationFields) : void 0;
|
|
13754
|
+
const timestampSet = timestampFields ? new Set(timestampFields) : void 0;
|
|
13842
13755
|
const optionalSet = optionalFields ? new Set(optionalFields) : void 0;
|
|
13843
13756
|
for (const field of fields) {
|
|
13844
13757
|
const jsKey = fieldJsName(field);
|
|
@@ -13871,6 +13784,7 @@ function mapValueToAmino(value, fields, nestedTypes, durationFields, enumFieldPa
|
|
|
13871
13784
|
nestedFields,
|
|
13872
13785
|
nestedTypes,
|
|
13873
13786
|
durationFields,
|
|
13787
|
+
timestampFields,
|
|
13874
13788
|
enumFieldPaths,
|
|
13875
13789
|
optionalFields,
|
|
13876
13790
|
fieldPath,
|
|
@@ -13886,6 +13800,7 @@ function mapValueToAmino(value, fields, nestedTypes, durationFields, enumFieldPa
|
|
|
13886
13800
|
nestedFields,
|
|
13887
13801
|
nestedTypes,
|
|
13888
13802
|
durationFields,
|
|
13803
|
+
timestampFields,
|
|
13889
13804
|
enumFieldPaths,
|
|
13890
13805
|
optionalFields,
|
|
13891
13806
|
fieldPath,
|
|
@@ -13904,6 +13819,16 @@ function mapValueToAmino(value, fields, nestedTypes, durationFields, enumFieldPa
|
|
|
13904
13819
|
normalized[field.name] = durationToNanosecondsString(raw, field.name);
|
|
13905
13820
|
continue;
|
|
13906
13821
|
}
|
|
13822
|
+
if (timestampSet?.has(field.name)) {
|
|
13823
|
+
if (raw === void 0 || raw === null) {
|
|
13824
|
+
if (optionalSet?.has(field.name)) {
|
|
13825
|
+
continue;
|
|
13826
|
+
}
|
|
13827
|
+
throw new Error(`Timestamp field "${field.name}" is required.`);
|
|
13828
|
+
}
|
|
13829
|
+
normalized[field.name] = timestampToRfc3339String(raw, field.name);
|
|
13830
|
+
continue;
|
|
13831
|
+
}
|
|
13907
13832
|
if (raw === void 0) {
|
|
13908
13833
|
continue;
|
|
13909
13834
|
}
|
|
@@ -14048,6 +13973,7 @@ function buildEip712AminoMsg(msg2) {
|
|
|
14048
13973
|
msgConfig.valueFields,
|
|
14049
13974
|
msgConfig.nestedTypes,
|
|
14050
13975
|
msgConfig.durationFields,
|
|
13976
|
+
msgConfig.timestampFields,
|
|
14051
13977
|
msgConfig.enumFieldPaths,
|
|
14052
13978
|
msgConfig.optionalFields,
|
|
14053
13979
|
"",
|
|
@@ -14732,7 +14658,7 @@ function isSet32(value) {
|
|
|
14732
14658
|
// src/proto/gen/ault/agent/v1/tx.ts
|
|
14733
14659
|
import { BinaryReader as BinaryReader35, BinaryWriter as BinaryWriter36 } from "@bufbuild/protobuf/wire";
|
|
14734
14660
|
function createBaseMsgApproveAgent() {
|
|
14735
|
-
return { masterAddress: "", agentPubkey: void 0, name: "",
|
|
14661
|
+
return { masterAddress: "", agentPubkey: void 0, name: "", expiresAt: void 0 };
|
|
14736
14662
|
}
|
|
14737
14663
|
var MsgApproveAgent = {
|
|
14738
14664
|
encode(message, writer = new BinaryWriter36()) {
|
|
@@ -14745,8 +14671,8 @@ var MsgApproveAgent = {
|
|
|
14745
14671
|
if (message.name !== "") {
|
|
14746
14672
|
writer.uint32(26).string(message.name);
|
|
14747
14673
|
}
|
|
14748
|
-
if (message.
|
|
14749
|
-
|
|
14674
|
+
if (message.expiresAt !== void 0) {
|
|
14675
|
+
Timestamp.encode(toTimestamp6(message.expiresAt), writer.uint32(34).fork()).join();
|
|
14750
14676
|
}
|
|
14751
14677
|
return writer;
|
|
14752
14678
|
},
|
|
@@ -14782,7 +14708,7 @@ var MsgApproveAgent = {
|
|
|
14782
14708
|
if (tag !== 34) {
|
|
14783
14709
|
break;
|
|
14784
14710
|
}
|
|
14785
|
-
message.
|
|
14711
|
+
message.expiresAt = fromTimestamp6(Timestamp.decode(reader, reader.uint32()));
|
|
14786
14712
|
continue;
|
|
14787
14713
|
}
|
|
14788
14714
|
}
|
|
@@ -14798,7 +14724,7 @@ var MsgApproveAgent = {
|
|
|
14798
14724
|
masterAddress: isSet33(object2.masterAddress) ? globalThis.String(object2.masterAddress) : isSet33(object2.master_address) ? globalThis.String(object2.master_address) : "",
|
|
14799
14725
|
agentPubkey: isSet33(object2.agentPubkey) ? Any.fromJSON(object2.agentPubkey) : isSet33(object2.agent_pubkey) ? Any.fromJSON(object2.agent_pubkey) : void 0,
|
|
14800
14726
|
name: isSet33(object2.name) ? globalThis.String(object2.name) : "",
|
|
14801
|
-
|
|
14727
|
+
expiresAt: isSet33(object2.expiresAt) ? fromJsonTimestamp6(object2.expiresAt) : isSet33(object2.expires_at) ? fromJsonTimestamp6(object2.expires_at) : void 0
|
|
14802
14728
|
};
|
|
14803
14729
|
},
|
|
14804
14730
|
toJSON(message) {
|
|
@@ -14812,8 +14738,8 @@ var MsgApproveAgent = {
|
|
|
14812
14738
|
if (message.name !== "") {
|
|
14813
14739
|
obj.name = message.name;
|
|
14814
14740
|
}
|
|
14815
|
-
if (message.
|
|
14816
|
-
obj.
|
|
14741
|
+
if (message.expiresAt !== void 0) {
|
|
14742
|
+
obj.expiresAt = message.expiresAt.toISOString();
|
|
14817
14743
|
}
|
|
14818
14744
|
return obj;
|
|
14819
14745
|
},
|
|
@@ -14825,7 +14751,7 @@ var MsgApproveAgent = {
|
|
|
14825
14751
|
message.masterAddress = object2.masterAddress ?? "";
|
|
14826
14752
|
message.agentPubkey = object2.agentPubkey !== void 0 && object2.agentPubkey !== null ? Any.fromPartial(object2.agentPubkey) : void 0;
|
|
14827
14753
|
message.name = object2.name ?? "";
|
|
14828
|
-
message.
|
|
14754
|
+
message.expiresAt = object2.expiresAt ?? void 0;
|
|
14829
14755
|
return message;
|
|
14830
14756
|
}
|
|
14831
14757
|
};
|
|
@@ -14965,6 +14891,25 @@ var MsgUpdateParams2 = {
|
|
|
14965
14891
|
return message;
|
|
14966
14892
|
}
|
|
14967
14893
|
};
|
|
14894
|
+
function toTimestamp6(date) {
|
|
14895
|
+
const seconds = BigInt(Math.trunc(date.getTime() / 1e3));
|
|
14896
|
+
const nanos = date.getTime() % 1e3 * 1e6;
|
|
14897
|
+
return { seconds, nanos };
|
|
14898
|
+
}
|
|
14899
|
+
function fromTimestamp6(t) {
|
|
14900
|
+
let millis = (globalThis.Number(t.seconds.toString()) || 0) * 1e3;
|
|
14901
|
+
millis += (t.nanos || 0) / 1e6;
|
|
14902
|
+
return new globalThis.Date(millis);
|
|
14903
|
+
}
|
|
14904
|
+
function fromJsonTimestamp6(o) {
|
|
14905
|
+
if (o instanceof globalThis.Date) {
|
|
14906
|
+
return o;
|
|
14907
|
+
} else if (typeof o === "string") {
|
|
14908
|
+
return new globalThis.Date(o);
|
|
14909
|
+
} else {
|
|
14910
|
+
return fromTimestamp6(Timestamp.fromJSON(o));
|
|
14911
|
+
}
|
|
14912
|
+
}
|
|
14968
14913
|
function isSet33(value) {
|
|
14969
14914
|
return value !== null && value !== void 0;
|
|
14970
14915
|
}
|
|
@@ -15150,7 +15095,7 @@ function createBaseMsgPlaceLimitOrder() {
|
|
|
15150
15095
|
isBuy: false,
|
|
15151
15096
|
price: "",
|
|
15152
15097
|
quantity: "",
|
|
15153
|
-
|
|
15098
|
+
deadline: void 0,
|
|
15154
15099
|
postOnly: false,
|
|
15155
15100
|
builderAddress: "",
|
|
15156
15101
|
builderFeeRate: ""
|
|
@@ -15173,8 +15118,8 @@ var MsgPlaceLimitOrder = {
|
|
|
15173
15118
|
if (message.quantity !== "") {
|
|
15174
15119
|
writer.uint32(42).string(message.quantity);
|
|
15175
15120
|
}
|
|
15176
|
-
if (message.
|
|
15177
|
-
|
|
15121
|
+
if (message.deadline !== void 0) {
|
|
15122
|
+
Timestamp.encode(toTimestamp7(message.deadline), writer.uint32(50).fork()).join();
|
|
15178
15123
|
}
|
|
15179
15124
|
if (message.postOnly !== false) {
|
|
15180
15125
|
writer.uint32(56).bool(message.postOnly);
|
|
@@ -15233,7 +15178,7 @@ var MsgPlaceLimitOrder = {
|
|
|
15233
15178
|
if (tag !== 50) {
|
|
15234
15179
|
break;
|
|
15235
15180
|
}
|
|
15236
|
-
message.
|
|
15181
|
+
message.deadline = fromTimestamp7(Timestamp.decode(reader, reader.uint32()));
|
|
15237
15182
|
continue;
|
|
15238
15183
|
}
|
|
15239
15184
|
case 7: {
|
|
@@ -15272,7 +15217,7 @@ var MsgPlaceLimitOrder = {
|
|
|
15272
15217
|
isBuy: isSet35(object2.isBuy) ? globalThis.Boolean(object2.isBuy) : isSet35(object2.is_buy) ? globalThis.Boolean(object2.is_buy) : false,
|
|
15273
15218
|
price: isSet35(object2.price) ? globalThis.String(object2.price) : "",
|
|
15274
15219
|
quantity: isSet35(object2.quantity) ? globalThis.String(object2.quantity) : "",
|
|
15275
|
-
|
|
15220
|
+
deadline: isSet35(object2.deadline) ? fromJsonTimestamp7(object2.deadline) : void 0,
|
|
15276
15221
|
postOnly: isSet35(object2.postOnly) ? globalThis.Boolean(object2.postOnly) : isSet35(object2.post_only) ? globalThis.Boolean(object2.post_only) : false,
|
|
15277
15222
|
builderAddress: isSet35(object2.builderAddress) ? globalThis.String(object2.builderAddress) : isSet35(object2.builder_address) ? globalThis.String(object2.builder_address) : "",
|
|
15278
15223
|
builderFeeRate: isSet35(object2.builderFeeRate) ? globalThis.String(object2.builderFeeRate) : isSet35(object2.builder_fee_rate) ? globalThis.String(object2.builder_fee_rate) : ""
|
|
@@ -15295,8 +15240,8 @@ var MsgPlaceLimitOrder = {
|
|
|
15295
15240
|
if (message.quantity !== "") {
|
|
15296
15241
|
obj.quantity = message.quantity;
|
|
15297
15242
|
}
|
|
15298
|
-
if (message.
|
|
15299
|
-
obj.
|
|
15243
|
+
if (message.deadline !== void 0) {
|
|
15244
|
+
obj.deadline = message.deadline.toISOString();
|
|
15300
15245
|
}
|
|
15301
15246
|
if (message.postOnly !== false) {
|
|
15302
15247
|
obj.postOnly = message.postOnly;
|
|
@@ -15319,7 +15264,7 @@ var MsgPlaceLimitOrder = {
|
|
|
15319
15264
|
message.isBuy = object2.isBuy ?? false;
|
|
15320
15265
|
message.price = object2.price ?? "";
|
|
15321
15266
|
message.quantity = object2.quantity ?? "";
|
|
15322
|
-
message.
|
|
15267
|
+
message.deadline = object2.deadline ?? void 0;
|
|
15323
15268
|
message.postOnly = object2.postOnly ?? false;
|
|
15324
15269
|
message.builderAddress = object2.builderAddress ?? "";
|
|
15325
15270
|
message.builderFeeRate = object2.builderFeeRate ?? "";
|
|
@@ -15561,6 +15506,157 @@ var MsgCancelOrders = {
|
|
|
15561
15506
|
return message;
|
|
15562
15507
|
}
|
|
15563
15508
|
};
|
|
15509
|
+
function createBaseMsgModifyOrders() {
|
|
15510
|
+
return { sender: "", orders: [] };
|
|
15511
|
+
}
|
|
15512
|
+
var MsgModifyOrders = {
|
|
15513
|
+
encode(message, writer = new BinaryWriter38()) {
|
|
15514
|
+
if (message.sender !== "") {
|
|
15515
|
+
writer.uint32(10).string(message.sender);
|
|
15516
|
+
}
|
|
15517
|
+
for (const v of message.orders) {
|
|
15518
|
+
ModifyOrder.encode(v, writer.uint32(18).fork()).join();
|
|
15519
|
+
}
|
|
15520
|
+
return writer;
|
|
15521
|
+
},
|
|
15522
|
+
decode(input, length) {
|
|
15523
|
+
const reader = input instanceof BinaryReader37 ? input : new BinaryReader37(input);
|
|
15524
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
15525
|
+
const message = createBaseMsgModifyOrders();
|
|
15526
|
+
while (reader.pos < end) {
|
|
15527
|
+
const tag = reader.uint32();
|
|
15528
|
+
switch (tag >>> 3) {
|
|
15529
|
+
case 1: {
|
|
15530
|
+
if (tag !== 10) {
|
|
15531
|
+
break;
|
|
15532
|
+
}
|
|
15533
|
+
message.sender = reader.string();
|
|
15534
|
+
continue;
|
|
15535
|
+
}
|
|
15536
|
+
case 2: {
|
|
15537
|
+
if (tag !== 18) {
|
|
15538
|
+
break;
|
|
15539
|
+
}
|
|
15540
|
+
message.orders.push(ModifyOrder.decode(reader, reader.uint32()));
|
|
15541
|
+
continue;
|
|
15542
|
+
}
|
|
15543
|
+
}
|
|
15544
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15545
|
+
break;
|
|
15546
|
+
}
|
|
15547
|
+
reader.skip(tag & 7);
|
|
15548
|
+
}
|
|
15549
|
+
return message;
|
|
15550
|
+
},
|
|
15551
|
+
fromJSON(object2) {
|
|
15552
|
+
return {
|
|
15553
|
+
sender: isSet35(object2.sender) ? globalThis.String(object2.sender) : "",
|
|
15554
|
+
orders: globalThis.Array.isArray(object2?.orders) ? object2.orders.map((e) => ModifyOrder.fromJSON(e)) : []
|
|
15555
|
+
};
|
|
15556
|
+
},
|
|
15557
|
+
toJSON(message) {
|
|
15558
|
+
const obj = {};
|
|
15559
|
+
if (message.sender !== "") {
|
|
15560
|
+
obj.sender = message.sender;
|
|
15561
|
+
}
|
|
15562
|
+
if (message.orders?.length) {
|
|
15563
|
+
obj.orders = message.orders.map((e) => ModifyOrder.toJSON(e));
|
|
15564
|
+
}
|
|
15565
|
+
return obj;
|
|
15566
|
+
},
|
|
15567
|
+
create(base) {
|
|
15568
|
+
return MsgModifyOrders.fromPartial(base ?? {});
|
|
15569
|
+
},
|
|
15570
|
+
fromPartial(object2) {
|
|
15571
|
+
const message = createBaseMsgModifyOrders();
|
|
15572
|
+
message.sender = object2.sender ?? "";
|
|
15573
|
+
message.orders = object2.orders?.map((e) => ModifyOrder.fromPartial(e)) || [];
|
|
15574
|
+
return message;
|
|
15575
|
+
}
|
|
15576
|
+
};
|
|
15577
|
+
function createBaseModifyOrder() {
|
|
15578
|
+
return { orderId: new Uint8Array(0), newPrice: "", newQuantity: "" };
|
|
15579
|
+
}
|
|
15580
|
+
var ModifyOrder = {
|
|
15581
|
+
encode(message, writer = new BinaryWriter38()) {
|
|
15582
|
+
if (message.orderId.length !== 0) {
|
|
15583
|
+
writer.uint32(10).bytes(message.orderId);
|
|
15584
|
+
}
|
|
15585
|
+
if (message.newPrice !== "") {
|
|
15586
|
+
writer.uint32(18).string(message.newPrice);
|
|
15587
|
+
}
|
|
15588
|
+
if (message.newQuantity !== "") {
|
|
15589
|
+
writer.uint32(26).string(message.newQuantity);
|
|
15590
|
+
}
|
|
15591
|
+
return writer;
|
|
15592
|
+
},
|
|
15593
|
+
decode(input, length) {
|
|
15594
|
+
const reader = input instanceof BinaryReader37 ? input : new BinaryReader37(input);
|
|
15595
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
15596
|
+
const message = createBaseModifyOrder();
|
|
15597
|
+
while (reader.pos < end) {
|
|
15598
|
+
const tag = reader.uint32();
|
|
15599
|
+
switch (tag >>> 3) {
|
|
15600
|
+
case 1: {
|
|
15601
|
+
if (tag !== 10) {
|
|
15602
|
+
break;
|
|
15603
|
+
}
|
|
15604
|
+
message.orderId = reader.bytes();
|
|
15605
|
+
continue;
|
|
15606
|
+
}
|
|
15607
|
+
case 2: {
|
|
15608
|
+
if (tag !== 18) {
|
|
15609
|
+
break;
|
|
15610
|
+
}
|
|
15611
|
+
message.newPrice = reader.string();
|
|
15612
|
+
continue;
|
|
15613
|
+
}
|
|
15614
|
+
case 3: {
|
|
15615
|
+
if (tag !== 26) {
|
|
15616
|
+
break;
|
|
15617
|
+
}
|
|
15618
|
+
message.newQuantity = reader.string();
|
|
15619
|
+
continue;
|
|
15620
|
+
}
|
|
15621
|
+
}
|
|
15622
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15623
|
+
break;
|
|
15624
|
+
}
|
|
15625
|
+
reader.skip(tag & 7);
|
|
15626
|
+
}
|
|
15627
|
+
return message;
|
|
15628
|
+
},
|
|
15629
|
+
fromJSON(object2) {
|
|
15630
|
+
return {
|
|
15631
|
+
orderId: isSet35(object2.orderId) ? bytesFromBase648(object2.orderId) : isSet35(object2.order_id) ? bytesFromBase648(object2.order_id) : new Uint8Array(0),
|
|
15632
|
+
newPrice: isSet35(object2.newPrice) ? globalThis.String(object2.newPrice) : isSet35(object2.new_price) ? globalThis.String(object2.new_price) : "",
|
|
15633
|
+
newQuantity: isSet35(object2.newQuantity) ? globalThis.String(object2.newQuantity) : isSet35(object2.new_quantity) ? globalThis.String(object2.new_quantity) : ""
|
|
15634
|
+
};
|
|
15635
|
+
},
|
|
15636
|
+
toJSON(message) {
|
|
15637
|
+
const obj = {};
|
|
15638
|
+
if (message.orderId.length !== 0) {
|
|
15639
|
+
obj.orderId = base64FromBytes8(message.orderId);
|
|
15640
|
+
}
|
|
15641
|
+
if (message.newPrice !== "") {
|
|
15642
|
+
obj.newPrice = message.newPrice;
|
|
15643
|
+
}
|
|
15644
|
+
if (message.newQuantity !== "") {
|
|
15645
|
+
obj.newQuantity = message.newQuantity;
|
|
15646
|
+
}
|
|
15647
|
+
return obj;
|
|
15648
|
+
},
|
|
15649
|
+
create(base) {
|
|
15650
|
+
return ModifyOrder.fromPartial(base ?? {});
|
|
15651
|
+
},
|
|
15652
|
+
fromPartial(object2) {
|
|
15653
|
+
const message = createBaseModifyOrder();
|
|
15654
|
+
message.orderId = object2.orderId ?? new Uint8Array(0);
|
|
15655
|
+
message.newPrice = object2.newPrice ?? "";
|
|
15656
|
+
message.newQuantity = object2.newQuantity ?? "";
|
|
15657
|
+
return message;
|
|
15658
|
+
}
|
|
15659
|
+
};
|
|
15564
15660
|
function createBaseMsgPlaceScaleOrder() {
|
|
15565
15661
|
return {
|
|
15566
15662
|
sender: "",
|
|
@@ -15570,7 +15666,7 @@ function createBaseMsgPlaceScaleOrder() {
|
|
|
15570
15666
|
highPrice: "",
|
|
15571
15667
|
totalQuantity: "",
|
|
15572
15668
|
weights: [],
|
|
15573
|
-
|
|
15669
|
+
deadline: void 0,
|
|
15574
15670
|
postOnly: false,
|
|
15575
15671
|
builderAddress: "",
|
|
15576
15672
|
builderFeeRate: ""
|
|
@@ -15601,8 +15697,8 @@ var MsgPlaceScaleOrder = {
|
|
|
15601
15697
|
writer.uint32(v);
|
|
15602
15698
|
}
|
|
15603
15699
|
writer.join();
|
|
15604
|
-
if (message.
|
|
15605
|
-
|
|
15700
|
+
if (message.deadline !== void 0) {
|
|
15701
|
+
Timestamp.encode(toTimestamp7(message.deadline), writer.uint32(66).fork()).join();
|
|
15606
15702
|
}
|
|
15607
15703
|
if (message.postOnly !== false) {
|
|
15608
15704
|
writer.uint32(72).bool(message.postOnly);
|
|
@@ -15682,7 +15778,7 @@ var MsgPlaceScaleOrder = {
|
|
|
15682
15778
|
if (tag !== 66) {
|
|
15683
15779
|
break;
|
|
15684
15780
|
}
|
|
15685
|
-
message.
|
|
15781
|
+
message.deadline = fromTimestamp7(Timestamp.decode(reader, reader.uint32()));
|
|
15686
15782
|
continue;
|
|
15687
15783
|
}
|
|
15688
15784
|
case 9: {
|
|
@@ -15723,7 +15819,7 @@ var MsgPlaceScaleOrder = {
|
|
|
15723
15819
|
highPrice: isSet35(object2.highPrice) ? globalThis.String(object2.highPrice) : isSet35(object2.high_price) ? globalThis.String(object2.high_price) : "",
|
|
15724
15820
|
totalQuantity: isSet35(object2.totalQuantity) ? globalThis.String(object2.totalQuantity) : isSet35(object2.total_quantity) ? globalThis.String(object2.total_quantity) : "",
|
|
15725
15821
|
weights: globalThis.Array.isArray(object2?.weights) ? object2.weights.map((e) => globalThis.Number(e)) : [],
|
|
15726
|
-
|
|
15822
|
+
deadline: isSet35(object2.deadline) ? fromJsonTimestamp7(object2.deadline) : void 0,
|
|
15727
15823
|
postOnly: isSet35(object2.postOnly) ? globalThis.Boolean(object2.postOnly) : isSet35(object2.post_only) ? globalThis.Boolean(object2.post_only) : false,
|
|
15728
15824
|
builderAddress: isSet35(object2.builderAddress) ? globalThis.String(object2.builderAddress) : isSet35(object2.builder_address) ? globalThis.String(object2.builder_address) : "",
|
|
15729
15825
|
builderFeeRate: isSet35(object2.builderFeeRate) ? globalThis.String(object2.builderFeeRate) : isSet35(object2.builder_fee_rate) ? globalThis.String(object2.builder_fee_rate) : ""
|
|
@@ -15752,8 +15848,8 @@ var MsgPlaceScaleOrder = {
|
|
|
15752
15848
|
if (message.weights?.length) {
|
|
15753
15849
|
obj.weights = message.weights.map((e) => Math.round(e));
|
|
15754
15850
|
}
|
|
15755
|
-
if (message.
|
|
15756
|
-
obj.
|
|
15851
|
+
if (message.deadline !== void 0) {
|
|
15852
|
+
obj.deadline = message.deadline.toISOString();
|
|
15757
15853
|
}
|
|
15758
15854
|
if (message.postOnly !== false) {
|
|
15759
15855
|
obj.postOnly = message.postOnly;
|
|
@@ -15778,7 +15874,7 @@ var MsgPlaceScaleOrder = {
|
|
|
15778
15874
|
message.highPrice = object2.highPrice ?? "";
|
|
15779
15875
|
message.totalQuantity = object2.totalQuantity ?? "";
|
|
15780
15876
|
message.weights = object2.weights?.map((e) => e) || [];
|
|
15781
|
-
message.
|
|
15877
|
+
message.deadline = object2.deadline ?? void 0;
|
|
15782
15878
|
message.postOnly = object2.postOnly ?? false;
|
|
15783
15879
|
message.builderAddress = object2.builderAddress ?? "";
|
|
15784
15880
|
message.builderFeeRate = object2.builderFeeRate ?? "";
|
|
@@ -15876,6 +15972,25 @@ function base64FromBytes8(arr) {
|
|
|
15876
15972
|
return globalThis.btoa(bin.join(""));
|
|
15877
15973
|
}
|
|
15878
15974
|
}
|
|
15975
|
+
function toTimestamp7(date) {
|
|
15976
|
+
const seconds = BigInt(Math.trunc(date.getTime() / 1e3));
|
|
15977
|
+
const nanos = date.getTime() % 1e3 * 1e6;
|
|
15978
|
+
return { seconds, nanos };
|
|
15979
|
+
}
|
|
15980
|
+
function fromTimestamp7(t) {
|
|
15981
|
+
let millis = (globalThis.Number(t.seconds.toString()) || 0) * 1e3;
|
|
15982
|
+
millis += (t.nanos || 0) / 1e6;
|
|
15983
|
+
return new globalThis.Date(millis);
|
|
15984
|
+
}
|
|
15985
|
+
function fromJsonTimestamp7(o) {
|
|
15986
|
+
if (o instanceof globalThis.Date) {
|
|
15987
|
+
return o;
|
|
15988
|
+
} else if (typeof o === "string") {
|
|
15989
|
+
return new globalThis.Date(o);
|
|
15990
|
+
} else {
|
|
15991
|
+
return fromTimestamp7(Timestamp.fromJSON(o));
|
|
15992
|
+
}
|
|
15993
|
+
}
|
|
15879
15994
|
function isSet35(value) {
|
|
15880
15995
|
return value !== null && value !== void 0;
|
|
15881
15996
|
}
|
|
@@ -16952,7 +17067,15 @@ function isSet36(value) {
|
|
|
16952
17067
|
// src/proto/gen/ault/market/v1/tx.ts
|
|
16953
17068
|
import { BinaryReader as BinaryReader39, BinaryWriter as BinaryWriter40 } from "@bufbuild/protobuf/wire";
|
|
16954
17069
|
function createBaseMsgCreateMarket() {
|
|
16955
|
-
return {
|
|
17070
|
+
return {
|
|
17071
|
+
sender: "",
|
|
17072
|
+
marketType: 0,
|
|
17073
|
+
baseDenom: "",
|
|
17074
|
+
quoteDenom: "",
|
|
17075
|
+
tickPrecision: 0,
|
|
17076
|
+
makerFeeRate: "",
|
|
17077
|
+
takerFeeRate: ""
|
|
17078
|
+
};
|
|
16956
17079
|
}
|
|
16957
17080
|
var MsgCreateMarket = {
|
|
16958
17081
|
encode(message, writer = new BinaryWriter40()) {
|
|
@@ -16971,6 +17094,12 @@ var MsgCreateMarket = {
|
|
|
16971
17094
|
if (message.tickPrecision !== 0) {
|
|
16972
17095
|
writer.uint32(40).uint32(message.tickPrecision);
|
|
16973
17096
|
}
|
|
17097
|
+
if (message.makerFeeRate !== "") {
|
|
17098
|
+
writer.uint32(50).string(message.makerFeeRate);
|
|
17099
|
+
}
|
|
17100
|
+
if (message.takerFeeRate !== "") {
|
|
17101
|
+
writer.uint32(58).string(message.takerFeeRate);
|
|
17102
|
+
}
|
|
16974
17103
|
return writer;
|
|
16975
17104
|
},
|
|
16976
17105
|
decode(input, length) {
|
|
@@ -17015,6 +17144,20 @@ var MsgCreateMarket = {
|
|
|
17015
17144
|
message.tickPrecision = reader.uint32();
|
|
17016
17145
|
continue;
|
|
17017
17146
|
}
|
|
17147
|
+
case 6: {
|
|
17148
|
+
if (tag !== 50) {
|
|
17149
|
+
break;
|
|
17150
|
+
}
|
|
17151
|
+
message.makerFeeRate = reader.string();
|
|
17152
|
+
continue;
|
|
17153
|
+
}
|
|
17154
|
+
case 7: {
|
|
17155
|
+
if (tag !== 58) {
|
|
17156
|
+
break;
|
|
17157
|
+
}
|
|
17158
|
+
message.takerFeeRate = reader.string();
|
|
17159
|
+
continue;
|
|
17160
|
+
}
|
|
17018
17161
|
}
|
|
17019
17162
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17020
17163
|
break;
|
|
@@ -17029,7 +17172,9 @@ var MsgCreateMarket = {
|
|
|
17029
17172
|
marketType: isSet37(object2.marketType) ? marketTypeFromJSON(object2.marketType) : isSet37(object2.market_type) ? marketTypeFromJSON(object2.market_type) : 0,
|
|
17030
17173
|
baseDenom: isSet37(object2.baseDenom) ? globalThis.String(object2.baseDenom) : isSet37(object2.base_denom) ? globalThis.String(object2.base_denom) : "",
|
|
17031
17174
|
quoteDenom: isSet37(object2.quoteDenom) ? globalThis.String(object2.quoteDenom) : isSet37(object2.quote_denom) ? globalThis.String(object2.quote_denom) : "",
|
|
17032
|
-
tickPrecision: isSet37(object2.tickPrecision) ? globalThis.Number(object2.tickPrecision) : isSet37(object2.tick_precision) ? globalThis.Number(object2.tick_precision) : 0
|
|
17175
|
+
tickPrecision: isSet37(object2.tickPrecision) ? globalThis.Number(object2.tickPrecision) : isSet37(object2.tick_precision) ? globalThis.Number(object2.tick_precision) : 0,
|
|
17176
|
+
makerFeeRate: isSet37(object2.makerFeeRate) ? globalThis.String(object2.makerFeeRate) : isSet37(object2.maker_fee_rate) ? globalThis.String(object2.maker_fee_rate) : "",
|
|
17177
|
+
takerFeeRate: isSet37(object2.takerFeeRate) ? globalThis.String(object2.takerFeeRate) : isSet37(object2.taker_fee_rate) ? globalThis.String(object2.taker_fee_rate) : ""
|
|
17033
17178
|
};
|
|
17034
17179
|
},
|
|
17035
17180
|
toJSON(message) {
|
|
@@ -17049,6 +17194,12 @@ var MsgCreateMarket = {
|
|
|
17049
17194
|
if (message.tickPrecision !== 0) {
|
|
17050
17195
|
obj.tickPrecision = Math.round(message.tickPrecision);
|
|
17051
17196
|
}
|
|
17197
|
+
if (message.makerFeeRate !== "") {
|
|
17198
|
+
obj.makerFeeRate = message.makerFeeRate;
|
|
17199
|
+
}
|
|
17200
|
+
if (message.takerFeeRate !== "") {
|
|
17201
|
+
obj.takerFeeRate = message.takerFeeRate;
|
|
17202
|
+
}
|
|
17052
17203
|
return obj;
|
|
17053
17204
|
},
|
|
17054
17205
|
create(base) {
|
|
@@ -17061,6 +17212,8 @@ var MsgCreateMarket = {
|
|
|
17061
17212
|
message.baseDenom = object2.baseDenom ?? "";
|
|
17062
17213
|
message.quoteDenom = object2.quoteDenom ?? "";
|
|
17063
17214
|
message.tickPrecision = object2.tickPrecision ?? 0;
|
|
17215
|
+
message.makerFeeRate = object2.makerFeeRate ?? "";
|
|
17216
|
+
message.takerFeeRate = object2.takerFeeRate ?? "";
|
|
17064
17217
|
return message;
|
|
17065
17218
|
}
|
|
17066
17219
|
};
|
|
@@ -20221,12 +20374,6 @@ function requireRecordArray(value, label) {
|
|
|
20221
20374
|
return item;
|
|
20222
20375
|
});
|
|
20223
20376
|
}
|
|
20224
|
-
function optionalDuration(value, label) {
|
|
20225
|
-
if (value === void 0) {
|
|
20226
|
-
return void 0;
|
|
20227
|
-
}
|
|
20228
|
-
return requireDuration(value, label);
|
|
20229
|
-
}
|
|
20230
20377
|
function requireDuration(value, label) {
|
|
20231
20378
|
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
20232
20379
|
throw new Error(`${label} must be a protobuf Duration object.`);
|
|
@@ -20254,6 +20401,40 @@ function requireDurationOrDefault(value, label, defaultValue = { seconds: 0n, na
|
|
|
20254
20401
|
}
|
|
20255
20402
|
return requireDuration(value, label);
|
|
20256
20403
|
}
|
|
20404
|
+
function optionalTimestamp(value, label) {
|
|
20405
|
+
if (value === void 0 || value === null) {
|
|
20406
|
+
return void 0;
|
|
20407
|
+
}
|
|
20408
|
+
return requireTimestamp(value, label);
|
|
20409
|
+
}
|
|
20410
|
+
function requireTimestamp(value, label) {
|
|
20411
|
+
if (value instanceof Date) {
|
|
20412
|
+
if (Number.isNaN(value.getTime())) {
|
|
20413
|
+
throw new Error(`${label} must be a valid Date.`);
|
|
20414
|
+
}
|
|
20415
|
+
return value;
|
|
20416
|
+
}
|
|
20417
|
+
if (typeof value === "string") {
|
|
20418
|
+
const parsed = new Date(value);
|
|
20419
|
+
if (Number.isNaN(parsed.getTime())) {
|
|
20420
|
+
throw new Error(`${label} must be a valid RFC 3339 date string.`);
|
|
20421
|
+
}
|
|
20422
|
+
return parsed;
|
|
20423
|
+
}
|
|
20424
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
20425
|
+
const record2 = asRecord(value);
|
|
20426
|
+
if (record2.seconds === void 0 && record2.nanos === void 0) {
|
|
20427
|
+
throw new Error(`${label} must include seconds or nanos.`);
|
|
20428
|
+
}
|
|
20429
|
+
const seconds = requireBigIntLike(record2.seconds ?? 0n, `${label}.seconds`);
|
|
20430
|
+
const nanos = requireInt32Like(record2.nanos ?? 0, `${label}.nanos`);
|
|
20431
|
+
if (nanos < 0 || nanos > 999999999) {
|
|
20432
|
+
throw new Error(`${label}.nanos must be between 0 and 999999999.`);
|
|
20433
|
+
}
|
|
20434
|
+
return new Date(Number(seconds) * 1e3 + Math.floor(nanos / 1e6));
|
|
20435
|
+
}
|
|
20436
|
+
throw new Error(`${label} must be a Date, RFC 3339 string, or protobuf Timestamp object.`);
|
|
20437
|
+
}
|
|
20257
20438
|
function mapAultAccountxV1MsgOpenAccount(input, label = "value") {
|
|
20258
20439
|
const record2 = asRecord(input);
|
|
20259
20440
|
const prefix = label ? `${label}.` : "";
|
|
@@ -20287,7 +20468,7 @@ function mapAultAgentV1MsgApproveAgent(input, label = "value") {
|
|
|
20287
20468
|
masterAddress: requireString(record2["masterAddress"], `${prefix}masterAddress`),
|
|
20288
20469
|
agentPubkey: mapGoogleProtobufAny(asRecord(record2["agentPubkey"]), `${prefix}agentPubkey`),
|
|
20289
20470
|
name: requireStringOrDefault(record2["name"], `${prefix}name`),
|
|
20290
|
-
|
|
20471
|
+
expiresAt: optionalTimestamp(record2["expiresAt"], `${prefix}expiresAt`)
|
|
20291
20472
|
};
|
|
20292
20473
|
}
|
|
20293
20474
|
function mapAultAgentV1MsgRevokeAgent(input, label = "value") {
|
|
@@ -20336,6 +20517,17 @@ function mapAultAuthorityV1MsgRevokeRole(input, label = "value") {
|
|
|
20336
20517
|
members: requireStringArray(record2["members"], `${prefix}members`)
|
|
20337
20518
|
};
|
|
20338
20519
|
}
|
|
20520
|
+
function mapAultClobV1ModifyOrder(input, label = "value") {
|
|
20521
|
+
const record2 = asRecord(input);
|
|
20522
|
+
const prefix = label ? `${label}.` : "";
|
|
20523
|
+
return {
|
|
20524
|
+
orderId: requireBytes(record2["orderId"], `${prefix}orderId`),
|
|
20525
|
+
newPrice: cosmosDecToProtoInt(requireStringOrDefault(record2["newPrice"], `${prefix}newPrice`)),
|
|
20526
|
+
newQuantity: cosmosDecToProtoInt(
|
|
20527
|
+
requireStringOrDefault(record2["newQuantity"], `${prefix}newQuantity`)
|
|
20528
|
+
)
|
|
20529
|
+
};
|
|
20530
|
+
}
|
|
20339
20531
|
function mapAultClobV1MsgCancelOrders(input, label = "value") {
|
|
20340
20532
|
const record2 = asRecord(input);
|
|
20341
20533
|
const prefix = label ? `${label}.` : "";
|
|
@@ -20344,6 +20536,16 @@ function mapAultClobV1MsgCancelOrders(input, label = "value") {
|
|
|
20344
20536
|
orderIds: requireBytesArray(record2["orderIds"], `${prefix}orderIds`)
|
|
20345
20537
|
};
|
|
20346
20538
|
}
|
|
20539
|
+
function mapAultClobV1MsgModifyOrders(input, label = "value") {
|
|
20540
|
+
const record2 = asRecord(input);
|
|
20541
|
+
const prefix = label ? `${label}.` : "";
|
|
20542
|
+
return {
|
|
20543
|
+
sender: requireString(record2["sender"], `${prefix}sender`),
|
|
20544
|
+
orders: requireRecordArray(record2["orders"], `${prefix}orders`).map(
|
|
20545
|
+
(item, index) => mapAultClobV1ModifyOrder(item, `${prefix}orders[${index}]`)
|
|
20546
|
+
)
|
|
20547
|
+
};
|
|
20548
|
+
}
|
|
20347
20549
|
function mapAultClobV1MsgPlaceLimitOrder(input, label = "value") {
|
|
20348
20550
|
const record2 = asRecord(input);
|
|
20349
20551
|
const prefix = label ? `${label}.` : "";
|
|
@@ -20353,7 +20555,7 @@ function mapAultClobV1MsgPlaceLimitOrder(input, label = "value") {
|
|
|
20353
20555
|
isBuy: requireBool(record2["isBuy"], `${prefix}isBuy`),
|
|
20354
20556
|
price: cosmosDecToProtoInt(requireString(record2["price"], `${prefix}price`)),
|
|
20355
20557
|
quantity: cosmosDecToProtoInt(requireString(record2["quantity"], `${prefix}quantity`)),
|
|
20356
|
-
|
|
20558
|
+
deadline: requireTimestamp(record2["deadline"], `${prefix}deadline`),
|
|
20357
20559
|
postOnly: requireBoolOrDefault(record2["postOnly"], `${prefix}postOnly`),
|
|
20358
20560
|
builderAddress: requireStringOrDefault(record2["builderAddress"], `${prefix}builderAddress`),
|
|
20359
20561
|
builderFeeRate: cosmosDecToProtoInt(
|
|
@@ -20394,7 +20596,7 @@ function mapAultClobV1MsgPlaceScaleOrder(input, label = "value") {
|
|
|
20394
20596
|
requireString(record2["totalQuantity"], `${prefix}totalQuantity`)
|
|
20395
20597
|
),
|
|
20396
20598
|
weights: requireUint32Array(record2["weights"], `${prefix}weights`),
|
|
20397
|
-
|
|
20599
|
+
deadline: requireTimestamp(record2["deadline"], `${prefix}deadline`),
|
|
20398
20600
|
postOnly: requireBoolOrDefault(record2["postOnly"], `${prefix}postOnly`),
|
|
20399
20601
|
builderAddress: requireStringOrDefault(record2["builderAddress"], `${prefix}builderAddress`),
|
|
20400
20602
|
builderFeeRate: cosmosDecToProtoInt(
|
|
@@ -20625,7 +20827,13 @@ function mapAultMarketV1MsgCreateMarket(input, label = "value") {
|
|
|
20625
20827
|
),
|
|
20626
20828
|
baseDenom: requireString(record2["baseDenom"], `${prefix}baseDenom`),
|
|
20627
20829
|
quoteDenom: requireString(record2["quoteDenom"], `${prefix}quoteDenom`),
|
|
20628
|
-
tickPrecision: requireUint32Like(record2["tickPrecision"], `${prefix}tickPrecision`)
|
|
20830
|
+
tickPrecision: requireUint32Like(record2["tickPrecision"], `${prefix}tickPrecision`),
|
|
20831
|
+
makerFeeRate: cosmosDecToProtoInt(
|
|
20832
|
+
requireStringOrDefault(record2["makerFeeRate"], `${prefix}makerFeeRate`)
|
|
20833
|
+
),
|
|
20834
|
+
takerFeeRate: cosmosDecToProtoInt(
|
|
20835
|
+
requireStringOrDefault(record2["takerFeeRate"], `${prefix}takerFeeRate`)
|
|
20836
|
+
)
|
|
20629
20837
|
};
|
|
20630
20838
|
}
|
|
20631
20839
|
function mapAultMarketV1MsgHaltAllMarkets(input, label = "value") {
|
|
@@ -21159,6 +21367,9 @@ var MSG_ENCODERS = {
|
|
|
21159
21367
|
"/ault.clob.v1.MsgCancelOrders": (value) => MsgCancelOrders.encode(
|
|
21160
21368
|
MsgCancelOrders.fromPartial(mapAultClobV1MsgCancelOrders(value))
|
|
21161
21369
|
).finish(),
|
|
21370
|
+
"/ault.clob.v1.MsgModifyOrders": (value) => MsgModifyOrders.encode(
|
|
21371
|
+
MsgModifyOrders.fromPartial(mapAultClobV1MsgModifyOrders(value))
|
|
21372
|
+
).finish(),
|
|
21162
21373
|
"/ault.clob.v1.MsgPlaceLimitOrder": (value) => MsgPlaceLimitOrder.encode(
|
|
21163
21374
|
MsgPlaceLimitOrder.fromPartial(mapAultClobV1MsgPlaceLimitOrder(value))
|
|
21164
21375
|
).finish(),
|
|
@@ -21887,7 +22098,7 @@ function createAgentTxApi({ signerAddress, exec, getGas }) {
|
|
|
21887
22098
|
async approveAgent({
|
|
21888
22099
|
agentPubkey,
|
|
21889
22100
|
name = "",
|
|
21890
|
-
|
|
22101
|
+
expiresAt,
|
|
21891
22102
|
gasLimit,
|
|
21892
22103
|
feeAmount,
|
|
21893
22104
|
memo,
|
|
@@ -21900,7 +22111,7 @@ function createAgentTxApi({ signerAddress, exec, getGas }) {
|
|
|
21900
22111
|
masterAddress: signerAddress,
|
|
21901
22112
|
agentPubkey,
|
|
21902
22113
|
name,
|
|
21903
|
-
|
|
22114
|
+
expiresAt
|
|
21904
22115
|
})
|
|
21905
22116
|
],
|
|
21906
22117
|
{
|
|
@@ -21980,7 +22191,7 @@ function buildLimitOrderMsg(sender, params) {
|
|
|
21980
22191
|
isBuy: params.isBuy,
|
|
21981
22192
|
price: params.price,
|
|
21982
22193
|
quantity: params.quantity,
|
|
21983
|
-
|
|
22194
|
+
deadline: params.deadline,
|
|
21984
22195
|
...params.postOnly !== void 0 && { postOnly: params.postOnly },
|
|
21985
22196
|
...params.builderAddress !== void 0 && {
|
|
21986
22197
|
builderAddress: normalizeAddress(params.builderAddress)
|
|
@@ -22014,7 +22225,7 @@ function buildScaleOrderMsg(sender, params) {
|
|
|
22014
22225
|
highPrice: params.highPrice,
|
|
22015
22226
|
totalQuantity: params.totalQuantity,
|
|
22016
22227
|
weights: params.weights,
|
|
22017
|
-
|
|
22228
|
+
deadline: params.deadline,
|
|
22018
22229
|
...params.postOnly !== void 0 && { postOnly: params.postOnly },
|
|
22019
22230
|
...params.builderAddress !== void 0 && {
|
|
22020
22231
|
builderAddress: normalizeAddress(params.builderAddress)
|
|
@@ -24032,22 +24243,22 @@ var GetStatsResponse = zod.object({
|
|
|
24032
24243
|
window: zod.enum(["24h"]),
|
|
24033
24244
|
totals: zod.object({
|
|
24034
24245
|
quoteVolume: zod.string().regex(getStatsResponseTotalsQuoteVolumeRegExp).nullable().describe(
|
|
24035
|
-
"Total quote volume over the window as a canonical decimal string.\nNull when
|
|
24246
|
+
"Total quote volume over the window as a canonical decimal string.\nNull when contributing markets span more than one quote (then\n`estimatedFee` and `quoteAsset` are null too).\n"
|
|
24036
24247
|
),
|
|
24037
24248
|
quoteAsset: zod.string().nullable().describe(
|
|
24038
|
-
'
|
|
24249
|
+
'Shared quote ticker of the markets that had volume. Null when they\nspan more than one quote, or on an idle window (then `quoteVolume`\nis "0"; a null `quoteVolume` means multi-quote).\n'
|
|
24039
24250
|
),
|
|
24040
24251
|
estimatedFee: zod.string().regex(getStatsResponseTotalsEstimatedFeeRegExp).nullable().describe(
|
|
24041
|
-
"Estimated total fees (`\u03A3 quoteVolume \xD7 takerFeeRate`) as a
|
|
24252
|
+
"Estimated total fees (`\u03A3 quoteVolume \xD7 takerFeeRate`) as a decimal\nstring; an estimate, not booked revenue. Null on multi-quote.\n"
|
|
24042
24253
|
),
|
|
24043
24254
|
tradeCount: zod.number().describe("Number of fills (maker legs) in the window."),
|
|
24044
24255
|
traderCount: zod.number().describe("Distinct trading addresses in the window."),
|
|
24045
24256
|
activeMarkets: zod.number().describe("Number of markets with at least one fill in the window."),
|
|
24046
24257
|
dailyActiveUsers: zod.number().nullable().describe(
|
|
24047
|
-
"Distinct trading addresses in the window
|
|
24258
|
+
"Distinct trading addresses in the window. Currently an alias of\n`traderCount`; separate so a precise DAU source can diverge later.\n"
|
|
24048
24259
|
),
|
|
24049
24260
|
averageSlippageBps: zod.string().regex(getStatsResponseTotalsAverageSlippageBpsRegExp).nullable().describe(
|
|
24050
|
-
"Volume-weighted taker slippage (fill vs book-mid) in
|
|
24261
|
+
"Volume-weighted taker slippage (fill vs book-mid) in bps as a\ndecimal string. Null with no benchmarkable taker fill or when\nfills span more than one quote.\n"
|
|
24051
24262
|
),
|
|
24052
24263
|
depositUsdcVolume24h: zod.string().regex(getStatsResponseTotalsDepositUsdcVolume24hRegExp).nullable().describe("Reserved. Currently always null."),
|
|
24053
24264
|
builderCodesFee24h: zod.string().regex(getStatsResponseTotalsBuilderCodesFee24hRegExp).nullable().describe("Reserved. Currently always null.")
|
|
@@ -24443,7 +24654,7 @@ function createDexWs(url, options) {
|
|
|
24443
24654
|
}
|
|
24444
24655
|
|
|
24445
24656
|
// src/index.ts
|
|
24446
|
-
var SDK_VERSION = "0.0.2-alpha.
|
|
24657
|
+
var SDK_VERSION = "0.0.2-alpha.23";
|
|
24447
24658
|
export {
|
|
24448
24659
|
AGENT_DEFAULTS,
|
|
24449
24660
|
AULT_SIGNER_MARKER,
|