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.cjs
CHANGED
|
@@ -5099,62 +5099,6 @@ var QueryIsKYCApproverResponse = {
|
|
|
5099
5099
|
return message;
|
|
5100
5100
|
}
|
|
5101
5101
|
};
|
|
5102
|
-
function createBaseQueryActiveLicenseCountAtResponse() {
|
|
5103
|
-
return { count: 0n };
|
|
5104
|
-
}
|
|
5105
|
-
var QueryActiveLicenseCountAtResponse = {
|
|
5106
|
-
encode(message, writer = new import_wire18.BinaryWriter()) {
|
|
5107
|
-
if (message.count !== 0n) {
|
|
5108
|
-
if (BigInt.asUintN(64, message.count) !== message.count) {
|
|
5109
|
-
throw new globalThis.Error(
|
|
5110
|
-
"value provided for field message.count of type uint64 too large"
|
|
5111
|
-
);
|
|
5112
|
-
}
|
|
5113
|
-
writer.uint32(8).uint64(message.count);
|
|
5114
|
-
}
|
|
5115
|
-
return writer;
|
|
5116
|
-
},
|
|
5117
|
-
decode(input, length) {
|
|
5118
|
-
const reader = input instanceof import_wire18.BinaryReader ? input : new import_wire18.BinaryReader(input);
|
|
5119
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5120
|
-
const message = createBaseQueryActiveLicenseCountAtResponse();
|
|
5121
|
-
while (reader.pos < end) {
|
|
5122
|
-
const tag = reader.uint32();
|
|
5123
|
-
switch (tag >>> 3) {
|
|
5124
|
-
case 1: {
|
|
5125
|
-
if (tag !== 8) {
|
|
5126
|
-
break;
|
|
5127
|
-
}
|
|
5128
|
-
message.count = reader.uint64();
|
|
5129
|
-
continue;
|
|
5130
|
-
}
|
|
5131
|
-
}
|
|
5132
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
5133
|
-
break;
|
|
5134
|
-
}
|
|
5135
|
-
reader.skip(tag & 7);
|
|
5136
|
-
}
|
|
5137
|
-
return message;
|
|
5138
|
-
},
|
|
5139
|
-
fromJSON(object2) {
|
|
5140
|
-
return { count: isSet17(object2.count) ? BigInt(object2.count) : 0n };
|
|
5141
|
-
},
|
|
5142
|
-
toJSON(message) {
|
|
5143
|
-
const obj = {};
|
|
5144
|
-
if (message.count !== 0n) {
|
|
5145
|
-
obj.count = message.count.toString();
|
|
5146
|
-
}
|
|
5147
|
-
return obj;
|
|
5148
|
-
},
|
|
5149
|
-
create(base) {
|
|
5150
|
-
return QueryActiveLicenseCountAtResponse.fromPartial(base ?? {});
|
|
5151
|
-
},
|
|
5152
|
-
fromPartial(object2) {
|
|
5153
|
-
const message = createBaseQueryActiveLicenseCountAtResponse();
|
|
5154
|
-
message.count = object2.count ?? 0n;
|
|
5155
|
-
return message;
|
|
5156
|
-
}
|
|
5157
|
-
};
|
|
5158
5102
|
function toTimestamp4(date) {
|
|
5159
5103
|
const seconds = BigInt(Math.trunc(date.getTime() / 1e3));
|
|
5160
5104
|
const nanos = date.getTime() % 1e3 * 1e6;
|
|
@@ -5278,14 +5222,6 @@ function createLicenseApi(context) {
|
|
|
5278
5222
|
`/ault/license/v1/is_kyc_approver/${address}`,
|
|
5279
5223
|
QueryIsKYCApproverResponse
|
|
5280
5224
|
);
|
|
5281
|
-
},
|
|
5282
|
-
async getActiveLicenseCountAt(owner, snapshotTime) {
|
|
5283
|
-
const query = buildQuery({ snapshot_time: snapshotTime });
|
|
5284
|
-
return fetchProtoJson(
|
|
5285
|
-
context,
|
|
5286
|
-
`/ault/license/v1/active_license_count_at/${owner}${query}`,
|
|
5287
|
-
QueryActiveLicenseCountAtResponse
|
|
5288
|
-
);
|
|
5289
5225
|
}
|
|
5290
5226
|
};
|
|
5291
5227
|
}
|
|
@@ -5338,7 +5274,8 @@ function createBaseMarketResponse() {
|
|
|
5338
5274
|
tickPrecision: 0,
|
|
5339
5275
|
lastPrice: "",
|
|
5340
5276
|
lastMatchingHeight: 0n,
|
|
5341
|
-
halted: false
|
|
5277
|
+
halted: false,
|
|
5278
|
+
deployer: ""
|
|
5342
5279
|
};
|
|
5343
5280
|
}
|
|
5344
5281
|
var MarketResponse = {
|
|
@@ -5381,6 +5318,9 @@ var MarketResponse = {
|
|
|
5381
5318
|
if (message.halted !== false) {
|
|
5382
5319
|
writer.uint32(88).bool(message.halted);
|
|
5383
5320
|
}
|
|
5321
|
+
if (message.deployer !== "") {
|
|
5322
|
+
writer.uint32(98).string(message.deployer);
|
|
5323
|
+
}
|
|
5384
5324
|
return writer;
|
|
5385
5325
|
},
|
|
5386
5326
|
decode(input, length) {
|
|
@@ -5467,6 +5407,13 @@ var MarketResponse = {
|
|
|
5467
5407
|
message.halted = reader.bool();
|
|
5468
5408
|
continue;
|
|
5469
5409
|
}
|
|
5410
|
+
case 12: {
|
|
5411
|
+
if (tag !== 98) {
|
|
5412
|
+
break;
|
|
5413
|
+
}
|
|
5414
|
+
message.deployer = reader.string();
|
|
5415
|
+
continue;
|
|
5416
|
+
}
|
|
5470
5417
|
}
|
|
5471
5418
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5472
5419
|
break;
|
|
@@ -5487,7 +5434,8 @@ var MarketResponse = {
|
|
|
5487
5434
|
tickPrecision: isSet18(object2.tickPrecision) ? globalThis.Number(object2.tickPrecision) : isSet18(object2.tick_precision) ? globalThis.Number(object2.tick_precision) : 0,
|
|
5488
5435
|
lastPrice: isSet18(object2.lastPrice) ? globalThis.String(object2.lastPrice) : isSet18(object2.last_price) ? globalThis.String(object2.last_price) : "",
|
|
5489
5436
|
lastMatchingHeight: isSet18(object2.lastMatchingHeight) ? BigInt(object2.lastMatchingHeight) : isSet18(object2.last_matching_height) ? BigInt(object2.last_matching_height) : 0n,
|
|
5490
|
-
halted: isSet18(object2.halted) ? globalThis.Boolean(object2.halted) : false
|
|
5437
|
+
halted: isSet18(object2.halted) ? globalThis.Boolean(object2.halted) : false,
|
|
5438
|
+
deployer: isSet18(object2.deployer) ? globalThis.String(object2.deployer) : ""
|
|
5491
5439
|
};
|
|
5492
5440
|
},
|
|
5493
5441
|
toJSON(message) {
|
|
@@ -5525,6 +5473,9 @@ var MarketResponse = {
|
|
|
5525
5473
|
if (message.halted !== false) {
|
|
5526
5474
|
obj.halted = message.halted;
|
|
5527
5475
|
}
|
|
5476
|
+
if (message.deployer !== "") {
|
|
5477
|
+
obj.deployer = message.deployer;
|
|
5478
|
+
}
|
|
5528
5479
|
return obj;
|
|
5529
5480
|
},
|
|
5530
5481
|
create(base) {
|
|
@@ -5543,6 +5494,7 @@ var MarketResponse = {
|
|
|
5543
5494
|
message.lastPrice = object2.lastPrice ?? "";
|
|
5544
5495
|
message.lastMatchingHeight = object2.lastMatchingHeight ?? 0n;
|
|
5545
5496
|
message.halted = object2.halted ?? false;
|
|
5497
|
+
message.deployer = object2.deployer ?? "";
|
|
5546
5498
|
return message;
|
|
5547
5499
|
}
|
|
5548
5500
|
};
|
|
@@ -6093,7 +6045,7 @@ var EpochInfo = {
|
|
|
6093
6045
|
}
|
|
6094
6046
|
};
|
|
6095
6047
|
function createBaseOperatorInfo() {
|
|
6096
|
-
return { operator: "", commissionRate: 0, commissionRecipient: ""
|
|
6048
|
+
return { operator: "", commissionRate: 0, commissionRecipient: "" };
|
|
6097
6049
|
}
|
|
6098
6050
|
var OperatorInfo = {
|
|
6099
6051
|
encode(message, writer = new import_wire22.BinaryWriter()) {
|
|
@@ -6106,14 +6058,6 @@ var OperatorInfo = {
|
|
|
6106
6058
|
if (message.commissionRecipient !== "") {
|
|
6107
6059
|
writer.uint32(26).string(message.commissionRecipient);
|
|
6108
6060
|
}
|
|
6109
|
-
if (message.lastUpdateEpoch !== 0n) {
|
|
6110
|
-
if (BigInt.asUintN(64, message.lastUpdateEpoch) !== message.lastUpdateEpoch) {
|
|
6111
|
-
throw new globalThis.Error(
|
|
6112
|
-
"value provided for field message.lastUpdateEpoch of type uint64 too large"
|
|
6113
|
-
);
|
|
6114
|
-
}
|
|
6115
|
-
writer.uint32(32).uint64(message.lastUpdateEpoch);
|
|
6116
|
-
}
|
|
6117
6061
|
return writer;
|
|
6118
6062
|
},
|
|
6119
6063
|
decode(input, length) {
|
|
@@ -6144,13 +6088,6 @@ var OperatorInfo = {
|
|
|
6144
6088
|
message.commissionRecipient = reader.string();
|
|
6145
6089
|
continue;
|
|
6146
6090
|
}
|
|
6147
|
-
case 4: {
|
|
6148
|
-
if (tag !== 32) {
|
|
6149
|
-
break;
|
|
6150
|
-
}
|
|
6151
|
-
message.lastUpdateEpoch = reader.uint64();
|
|
6152
|
-
continue;
|
|
6153
|
-
}
|
|
6154
6091
|
}
|
|
6155
6092
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6156
6093
|
break;
|
|
@@ -6163,8 +6100,7 @@ var OperatorInfo = {
|
|
|
6163
6100
|
return {
|
|
6164
6101
|
operator: isSet21(object2.operator) ? globalThis.String(object2.operator) : "",
|
|
6165
6102
|
commissionRate: isSet21(object2.commissionRate) ? globalThis.Number(object2.commissionRate) : isSet21(object2.commission_rate) ? globalThis.Number(object2.commission_rate) : 0,
|
|
6166
|
-
commissionRecipient: isSet21(object2.commissionRecipient) ? globalThis.String(object2.commissionRecipient) : isSet21(object2.commission_recipient) ? globalThis.String(object2.commission_recipient) : ""
|
|
6167
|
-
lastUpdateEpoch: isSet21(object2.lastUpdateEpoch) ? BigInt(object2.lastUpdateEpoch) : isSet21(object2.last_update_epoch) ? BigInt(object2.last_update_epoch) : 0n
|
|
6103
|
+
commissionRecipient: isSet21(object2.commissionRecipient) ? globalThis.String(object2.commissionRecipient) : isSet21(object2.commission_recipient) ? globalThis.String(object2.commission_recipient) : ""
|
|
6168
6104
|
};
|
|
6169
6105
|
},
|
|
6170
6106
|
toJSON(message) {
|
|
@@ -6178,9 +6114,6 @@ var OperatorInfo = {
|
|
|
6178
6114
|
if (message.commissionRecipient !== "") {
|
|
6179
6115
|
obj.commissionRecipient = message.commissionRecipient;
|
|
6180
6116
|
}
|
|
6181
|
-
if (message.lastUpdateEpoch !== 0n) {
|
|
6182
|
-
obj.lastUpdateEpoch = message.lastUpdateEpoch.toString();
|
|
6183
|
-
}
|
|
6184
6117
|
return obj;
|
|
6185
6118
|
},
|
|
6186
6119
|
create(base) {
|
|
@@ -6191,7 +6124,6 @@ var OperatorInfo = {
|
|
|
6191
6124
|
message.operator = object2.operator ?? "";
|
|
6192
6125
|
message.commissionRate = object2.commissionRate ?? 0;
|
|
6193
6126
|
message.commissionRecipient = object2.commissionRecipient ?? "";
|
|
6194
|
-
message.lastUpdateEpoch = object2.lastUpdateEpoch ?? 0n;
|
|
6195
6127
|
return message;
|
|
6196
6128
|
}
|
|
6197
6129
|
};
|
|
@@ -6833,49 +6765,16 @@ var QueryEpochResponse = {
|
|
|
6833
6765
|
}
|
|
6834
6766
|
};
|
|
6835
6767
|
function createBaseQueryLicenseMinerInfoResponse() {
|
|
6836
|
-
return {
|
|
6837
|
-
vrfPubkey: new Uint8Array(0),
|
|
6838
|
-
lastSubmitEpoch: 0n,
|
|
6839
|
-
eligibleNow: false,
|
|
6840
|
-
quarantinedLocal: false,
|
|
6841
|
-
quarantinedSource: false,
|
|
6842
|
-
allTimeCredits: 0n,
|
|
6843
|
-
allTimePayouts: ""
|
|
6844
|
-
};
|
|
6768
|
+
return { vrfPubkey: new Uint8Array(0), eligibleNow: false };
|
|
6845
6769
|
}
|
|
6846
6770
|
var QueryLicenseMinerInfoResponse = {
|
|
6847
6771
|
encode(message, writer = new import_wire23.BinaryWriter()) {
|
|
6848
6772
|
if (message.vrfPubkey.length !== 0) {
|
|
6849
6773
|
writer.uint32(10).bytes(message.vrfPubkey);
|
|
6850
6774
|
}
|
|
6851
|
-
if (message.lastSubmitEpoch !== 0n) {
|
|
6852
|
-
if (BigInt.asUintN(64, message.lastSubmitEpoch) !== message.lastSubmitEpoch) {
|
|
6853
|
-
throw new globalThis.Error(
|
|
6854
|
-
"value provided for field message.lastSubmitEpoch of type uint64 too large"
|
|
6855
|
-
);
|
|
6856
|
-
}
|
|
6857
|
-
writer.uint32(16).uint64(message.lastSubmitEpoch);
|
|
6858
|
-
}
|
|
6859
6775
|
if (message.eligibleNow !== false) {
|
|
6860
6776
|
writer.uint32(24).bool(message.eligibleNow);
|
|
6861
6777
|
}
|
|
6862
|
-
if (message.quarantinedLocal !== false) {
|
|
6863
|
-
writer.uint32(32).bool(message.quarantinedLocal);
|
|
6864
|
-
}
|
|
6865
|
-
if (message.quarantinedSource !== false) {
|
|
6866
|
-
writer.uint32(40).bool(message.quarantinedSource);
|
|
6867
|
-
}
|
|
6868
|
-
if (message.allTimeCredits !== 0n) {
|
|
6869
|
-
if (BigInt.asUintN(64, message.allTimeCredits) !== message.allTimeCredits) {
|
|
6870
|
-
throw new globalThis.Error(
|
|
6871
|
-
"value provided for field message.allTimeCredits of type uint64 too large"
|
|
6872
|
-
);
|
|
6873
|
-
}
|
|
6874
|
-
writer.uint32(48).uint64(message.allTimeCredits);
|
|
6875
|
-
}
|
|
6876
|
-
if (message.allTimePayouts !== "") {
|
|
6877
|
-
writer.uint32(58).string(message.allTimePayouts);
|
|
6878
|
-
}
|
|
6879
6778
|
return writer;
|
|
6880
6779
|
},
|
|
6881
6780
|
decode(input, length) {
|
|
@@ -6892,13 +6791,6 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6892
6791
|
message.vrfPubkey = reader.bytes();
|
|
6893
6792
|
continue;
|
|
6894
6793
|
}
|
|
6895
|
-
case 2: {
|
|
6896
|
-
if (tag !== 16) {
|
|
6897
|
-
break;
|
|
6898
|
-
}
|
|
6899
|
-
message.lastSubmitEpoch = reader.uint64();
|
|
6900
|
-
continue;
|
|
6901
|
-
}
|
|
6902
6794
|
case 3: {
|
|
6903
6795
|
if (tag !== 24) {
|
|
6904
6796
|
break;
|
|
@@ -6906,34 +6798,6 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6906
6798
|
message.eligibleNow = reader.bool();
|
|
6907
6799
|
continue;
|
|
6908
6800
|
}
|
|
6909
|
-
case 4: {
|
|
6910
|
-
if (tag !== 32) {
|
|
6911
|
-
break;
|
|
6912
|
-
}
|
|
6913
|
-
message.quarantinedLocal = reader.bool();
|
|
6914
|
-
continue;
|
|
6915
|
-
}
|
|
6916
|
-
case 5: {
|
|
6917
|
-
if (tag !== 40) {
|
|
6918
|
-
break;
|
|
6919
|
-
}
|
|
6920
|
-
message.quarantinedSource = reader.bool();
|
|
6921
|
-
continue;
|
|
6922
|
-
}
|
|
6923
|
-
case 6: {
|
|
6924
|
-
if (tag !== 48) {
|
|
6925
|
-
break;
|
|
6926
|
-
}
|
|
6927
|
-
message.allTimeCredits = reader.uint64();
|
|
6928
|
-
continue;
|
|
6929
|
-
}
|
|
6930
|
-
case 7: {
|
|
6931
|
-
if (tag !== 58) {
|
|
6932
|
-
break;
|
|
6933
|
-
}
|
|
6934
|
-
message.allTimePayouts = reader.string();
|
|
6935
|
-
continue;
|
|
6936
|
-
}
|
|
6937
6801
|
}
|
|
6938
6802
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6939
6803
|
break;
|
|
@@ -6945,12 +6809,7 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6945
6809
|
fromJSON(object2) {
|
|
6946
6810
|
return {
|
|
6947
6811
|
vrfPubkey: isSet22(object2.vrfPubkey) ? bytesFromBase647(object2.vrfPubkey) : isSet22(object2.vrf_pubkey) ? bytesFromBase647(object2.vrf_pubkey) : new Uint8Array(0),
|
|
6948
|
-
|
|
6949
|
-
eligibleNow: isSet22(object2.eligibleNow) ? globalThis.Boolean(object2.eligibleNow) : isSet22(object2.eligible_now) ? globalThis.Boolean(object2.eligible_now) : false,
|
|
6950
|
-
quarantinedLocal: isSet22(object2.quarantinedLocal) ? globalThis.Boolean(object2.quarantinedLocal) : isSet22(object2.quarantined_local) ? globalThis.Boolean(object2.quarantined_local) : false,
|
|
6951
|
-
quarantinedSource: isSet22(object2.quarantinedSource) ? globalThis.Boolean(object2.quarantinedSource) : isSet22(object2.quarantined_source) ? globalThis.Boolean(object2.quarantined_source) : false,
|
|
6952
|
-
allTimeCredits: isSet22(object2.allTimeCredits) ? BigInt(object2.allTimeCredits) : isSet22(object2.all_time_credits) ? BigInt(object2.all_time_credits) : 0n,
|
|
6953
|
-
allTimePayouts: isSet22(object2.allTimePayouts) ? globalThis.String(object2.allTimePayouts) : isSet22(object2.all_time_payouts) ? globalThis.String(object2.all_time_payouts) : ""
|
|
6812
|
+
eligibleNow: isSet22(object2.eligibleNow) ? globalThis.Boolean(object2.eligibleNow) : isSet22(object2.eligible_now) ? globalThis.Boolean(object2.eligible_now) : false
|
|
6954
6813
|
};
|
|
6955
6814
|
},
|
|
6956
6815
|
toJSON(message) {
|
|
@@ -6958,24 +6817,9 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6958
6817
|
if (message.vrfPubkey.length !== 0) {
|
|
6959
6818
|
obj.vrfPubkey = base64FromBytes7(message.vrfPubkey);
|
|
6960
6819
|
}
|
|
6961
|
-
if (message.lastSubmitEpoch !== 0n) {
|
|
6962
|
-
obj.lastSubmitEpoch = message.lastSubmitEpoch.toString();
|
|
6963
|
-
}
|
|
6964
6820
|
if (message.eligibleNow !== false) {
|
|
6965
6821
|
obj.eligibleNow = message.eligibleNow;
|
|
6966
6822
|
}
|
|
6967
|
-
if (message.quarantinedLocal !== false) {
|
|
6968
|
-
obj.quarantinedLocal = message.quarantinedLocal;
|
|
6969
|
-
}
|
|
6970
|
-
if (message.quarantinedSource !== false) {
|
|
6971
|
-
obj.quarantinedSource = message.quarantinedSource;
|
|
6972
|
-
}
|
|
6973
|
-
if (message.allTimeCredits !== 0n) {
|
|
6974
|
-
obj.allTimeCredits = message.allTimeCredits.toString();
|
|
6975
|
-
}
|
|
6976
|
-
if (message.allTimePayouts !== "") {
|
|
6977
|
-
obj.allTimePayouts = message.allTimePayouts;
|
|
6978
|
-
}
|
|
6979
6823
|
return obj;
|
|
6980
6824
|
},
|
|
6981
6825
|
create(base) {
|
|
@@ -6984,12 +6828,7 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6984
6828
|
fromPartial(object2) {
|
|
6985
6829
|
const message = createBaseQueryLicenseMinerInfoResponse();
|
|
6986
6830
|
message.vrfPubkey = object2.vrfPubkey ?? new Uint8Array(0);
|
|
6987
|
-
message.lastSubmitEpoch = object2.lastSubmitEpoch ?? 0n;
|
|
6988
6831
|
message.eligibleNow = object2.eligibleNow ?? false;
|
|
6989
|
-
message.quarantinedLocal = object2.quarantinedLocal ?? false;
|
|
6990
|
-
message.quarantinedSource = object2.quarantinedSource ?? false;
|
|
6991
|
-
message.allTimeCredits = object2.allTimeCredits ?? 0n;
|
|
6992
|
-
message.allTimePayouts = object2.allTimePayouts ?? "";
|
|
6993
6832
|
return message;
|
|
6994
6833
|
}
|
|
6995
6834
|
};
|
|
@@ -12111,74 +11950,6 @@ var Limiter = {
|
|
|
12111
11950
|
return message;
|
|
12112
11951
|
}
|
|
12113
11952
|
};
|
|
12114
|
-
function createBaseTransferLimitConfig() {
|
|
12115
|
-
return { hourly: void 0, daily: void 0 };
|
|
12116
|
-
}
|
|
12117
|
-
var TransferLimitConfig = {
|
|
12118
|
-
encode(message, writer = new import_wire32.BinaryWriter()) {
|
|
12119
|
-
if (message.hourly !== void 0) {
|
|
12120
|
-
Limiter.encode(message.hourly, writer.uint32(10).fork()).join();
|
|
12121
|
-
}
|
|
12122
|
-
if (message.daily !== void 0) {
|
|
12123
|
-
Limiter.encode(message.daily, writer.uint32(18).fork()).join();
|
|
12124
|
-
}
|
|
12125
|
-
return writer;
|
|
12126
|
-
},
|
|
12127
|
-
decode(input, length) {
|
|
12128
|
-
const reader = input instanceof import_wire32.BinaryReader ? input : new import_wire32.BinaryReader(input);
|
|
12129
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12130
|
-
const message = createBaseTransferLimitConfig();
|
|
12131
|
-
while (reader.pos < end) {
|
|
12132
|
-
const tag = reader.uint32();
|
|
12133
|
-
switch (tag >>> 3) {
|
|
12134
|
-
case 1: {
|
|
12135
|
-
if (tag !== 10) {
|
|
12136
|
-
break;
|
|
12137
|
-
}
|
|
12138
|
-
message.hourly = Limiter.decode(reader, reader.uint32());
|
|
12139
|
-
continue;
|
|
12140
|
-
}
|
|
12141
|
-
case 2: {
|
|
12142
|
-
if (tag !== 18) {
|
|
12143
|
-
break;
|
|
12144
|
-
}
|
|
12145
|
-
message.daily = Limiter.decode(reader, reader.uint32());
|
|
12146
|
-
continue;
|
|
12147
|
-
}
|
|
12148
|
-
}
|
|
12149
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
12150
|
-
break;
|
|
12151
|
-
}
|
|
12152
|
-
reader.skip(tag & 7);
|
|
12153
|
-
}
|
|
12154
|
-
return message;
|
|
12155
|
-
},
|
|
12156
|
-
fromJSON(object2) {
|
|
12157
|
-
return {
|
|
12158
|
-
hourly: isSet30(object2.hourly) ? Limiter.fromJSON(object2.hourly) : void 0,
|
|
12159
|
-
daily: isSet30(object2.daily) ? Limiter.fromJSON(object2.daily) : void 0
|
|
12160
|
-
};
|
|
12161
|
-
},
|
|
12162
|
-
toJSON(message) {
|
|
12163
|
-
const obj = {};
|
|
12164
|
-
if (message.hourly !== void 0) {
|
|
12165
|
-
obj.hourly = Limiter.toJSON(message.hourly);
|
|
12166
|
-
}
|
|
12167
|
-
if (message.daily !== void 0) {
|
|
12168
|
-
obj.daily = Limiter.toJSON(message.daily);
|
|
12169
|
-
}
|
|
12170
|
-
return obj;
|
|
12171
|
-
},
|
|
12172
|
-
create(base) {
|
|
12173
|
-
return TransferLimitConfig.fromPartial(base ?? {});
|
|
12174
|
-
},
|
|
12175
|
-
fromPartial(object2) {
|
|
12176
|
-
const message = createBaseTransferLimitConfig();
|
|
12177
|
-
message.hourly = object2.hourly !== void 0 && object2.hourly !== null ? Limiter.fromPartial(object2.hourly) : void 0;
|
|
12178
|
-
message.daily = object2.daily !== void 0 && object2.daily !== null ? Limiter.fromPartial(object2.daily) : void 0;
|
|
12179
|
-
return message;
|
|
12180
|
-
}
|
|
12181
|
-
};
|
|
12182
11953
|
function createBaseTokenPair() {
|
|
12183
11954
|
return { erc20Address: "", denom: "", erc20Decimals: 0, enabled: false };
|
|
12184
11955
|
}
|
|
@@ -12277,6 +12048,74 @@ var TokenPair = {
|
|
|
12277
12048
|
return message;
|
|
12278
12049
|
}
|
|
12279
12050
|
};
|
|
12051
|
+
function createBaseTransferLimitConfig() {
|
|
12052
|
+
return { hourly: void 0, daily: void 0 };
|
|
12053
|
+
}
|
|
12054
|
+
var TransferLimitConfig = {
|
|
12055
|
+
encode(message, writer = new import_wire32.BinaryWriter()) {
|
|
12056
|
+
if (message.hourly !== void 0) {
|
|
12057
|
+
Limiter.encode(message.hourly, writer.uint32(10).fork()).join();
|
|
12058
|
+
}
|
|
12059
|
+
if (message.daily !== void 0) {
|
|
12060
|
+
Limiter.encode(message.daily, writer.uint32(18).fork()).join();
|
|
12061
|
+
}
|
|
12062
|
+
return writer;
|
|
12063
|
+
},
|
|
12064
|
+
decode(input, length) {
|
|
12065
|
+
const reader = input instanceof import_wire32.BinaryReader ? input : new import_wire32.BinaryReader(input);
|
|
12066
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12067
|
+
const message = createBaseTransferLimitConfig();
|
|
12068
|
+
while (reader.pos < end) {
|
|
12069
|
+
const tag = reader.uint32();
|
|
12070
|
+
switch (tag >>> 3) {
|
|
12071
|
+
case 1: {
|
|
12072
|
+
if (tag !== 10) {
|
|
12073
|
+
break;
|
|
12074
|
+
}
|
|
12075
|
+
message.hourly = Limiter.decode(reader, reader.uint32());
|
|
12076
|
+
continue;
|
|
12077
|
+
}
|
|
12078
|
+
case 2: {
|
|
12079
|
+
if (tag !== 18) {
|
|
12080
|
+
break;
|
|
12081
|
+
}
|
|
12082
|
+
message.daily = Limiter.decode(reader, reader.uint32());
|
|
12083
|
+
continue;
|
|
12084
|
+
}
|
|
12085
|
+
}
|
|
12086
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12087
|
+
break;
|
|
12088
|
+
}
|
|
12089
|
+
reader.skip(tag & 7);
|
|
12090
|
+
}
|
|
12091
|
+
return message;
|
|
12092
|
+
},
|
|
12093
|
+
fromJSON(object2) {
|
|
12094
|
+
return {
|
|
12095
|
+
hourly: isSet30(object2.hourly) ? Limiter.fromJSON(object2.hourly) : void 0,
|
|
12096
|
+
daily: isSet30(object2.daily) ? Limiter.fromJSON(object2.daily) : void 0
|
|
12097
|
+
};
|
|
12098
|
+
},
|
|
12099
|
+
toJSON(message) {
|
|
12100
|
+
const obj = {};
|
|
12101
|
+
if (message.hourly !== void 0) {
|
|
12102
|
+
obj.hourly = Limiter.toJSON(message.hourly);
|
|
12103
|
+
}
|
|
12104
|
+
if (message.daily !== void 0) {
|
|
12105
|
+
obj.daily = Limiter.toJSON(message.daily);
|
|
12106
|
+
}
|
|
12107
|
+
return obj;
|
|
12108
|
+
},
|
|
12109
|
+
create(base) {
|
|
12110
|
+
return TransferLimitConfig.fromPartial(base ?? {});
|
|
12111
|
+
},
|
|
12112
|
+
fromPartial(object2) {
|
|
12113
|
+
const message = createBaseTransferLimitConfig();
|
|
12114
|
+
message.hourly = object2.hourly !== void 0 && object2.hourly !== null ? Limiter.fromPartial(object2.hourly) : void 0;
|
|
12115
|
+
message.daily = object2.daily !== void 0 && object2.daily !== null ? Limiter.fromPartial(object2.daily) : void 0;
|
|
12116
|
+
return message;
|
|
12117
|
+
}
|
|
12118
|
+
};
|
|
12280
12119
|
function createBaseParams10() {
|
|
12281
12120
|
return { enabled: false };
|
|
12282
12121
|
}
|
|
@@ -12576,7 +12415,7 @@ var EIP712_MSG_TYPES = {
|
|
|
12576
12415
|
valueFields: [
|
|
12577
12416
|
{ name: "name", type: "string" },
|
|
12578
12417
|
{ name: "master_address", type: "string", jsName: "masterAddress" },
|
|
12579
|
-
{ name: "
|
|
12418
|
+
{ name: "expires_at", type: "string", jsName: "expiresAt" },
|
|
12580
12419
|
{ name: "agent_pubkey", type: "NESTED", jsName: "agentPubkey" }
|
|
12581
12420
|
],
|
|
12582
12421
|
nestedTypes: {
|
|
@@ -12586,8 +12425,8 @@ var EIP712_MSG_TYPES = {
|
|
|
12586
12425
|
],
|
|
12587
12426
|
value: [{ name: "key", type: "string" }]
|
|
12588
12427
|
},
|
|
12589
|
-
|
|
12590
|
-
optionalFields: ["
|
|
12428
|
+
timestampFields: ["expires_at"],
|
|
12429
|
+
optionalFields: ["expires_at"],
|
|
12591
12430
|
fieldSemantics: {
|
|
12592
12431
|
agent_pubkey: { isPubKey: true },
|
|
12593
12432
|
master_address: { isAddress: true }
|
|
@@ -12681,7 +12520,27 @@ var EIP712_MSG_TYPES = {
|
|
|
12681
12520
|
{ name: "order_ids", type: "string[]", jsName: "orderIds" }
|
|
12682
12521
|
],
|
|
12683
12522
|
fieldSemantics: {
|
|
12684
|
-
order_ids: { isBinary: true }
|
|
12523
|
+
order_ids: { isBinary: true }
|
|
12524
|
+
}
|
|
12525
|
+
},
|
|
12526
|
+
"/ault.clob.v1.MsgModifyOrders": {
|
|
12527
|
+
aminoType: "clob/MsgModifyOrders",
|
|
12528
|
+
eip712TypeName: "TypeMsgModifyOrders",
|
|
12529
|
+
valueFields: [
|
|
12530
|
+
{ name: "sender", type: "string" },
|
|
12531
|
+
{ name: "orders", type: "NESTED[]" }
|
|
12532
|
+
],
|
|
12533
|
+
nestedTypes: {
|
|
12534
|
+
orders: [
|
|
12535
|
+
{ name: "order_id", type: "string", jsName: "orderId" },
|
|
12536
|
+
{ name: "new_quantity", type: "string", jsName: "newQuantity" },
|
|
12537
|
+
{ name: "new_price", type: "string", jsName: "newPrice" }
|
|
12538
|
+
]
|
|
12539
|
+
},
|
|
12540
|
+
fieldSemantics: {
|
|
12541
|
+
new_price: { isLegacyDec: true },
|
|
12542
|
+
new_quantity: { isLegacyDec: true },
|
|
12543
|
+
order_id: { isBinary: true }
|
|
12685
12544
|
}
|
|
12686
12545
|
},
|
|
12687
12546
|
"/ault.clob.v1.MsgPlaceLimitOrder": {
|
|
@@ -12693,12 +12552,12 @@ var EIP712_MSG_TYPES = {
|
|
|
12693
12552
|
{ name: "price", type: "string" },
|
|
12694
12553
|
{ name: "post_only", type: "bool", jsName: "postOnly" },
|
|
12695
12554
|
{ name: "market_id", type: "string", jsName: "marketId" },
|
|
12696
|
-
{ name: "lifespan", type: "string" },
|
|
12697
12555
|
{ name: "is_buy", type: "bool", jsName: "isBuy" },
|
|
12556
|
+
{ name: "deadline", type: "string" },
|
|
12698
12557
|
{ name: "builder_fee_rate", type: "string", jsName: "builderFeeRate" },
|
|
12699
12558
|
{ name: "builder_address", type: "string", jsName: "builderAddress" }
|
|
12700
12559
|
],
|
|
12701
|
-
|
|
12560
|
+
timestampFields: ["deadline"],
|
|
12702
12561
|
optionalFields: ["builder_address", "builder_fee_rate"],
|
|
12703
12562
|
fieldSemantics: {
|
|
12704
12563
|
builder_address: { isAddress: true },
|
|
@@ -12741,13 +12600,13 @@ var EIP712_MSG_TYPES = {
|
|
|
12741
12600
|
{ name: "post_only", type: "bool", jsName: "postOnly" },
|
|
12742
12601
|
{ name: "market_id", type: "string", jsName: "marketId" },
|
|
12743
12602
|
{ name: "low_price", type: "string", jsName: "lowPrice" },
|
|
12744
|
-
{ name: "lifespan", type: "string" },
|
|
12745
12603
|
{ name: "is_buy", type: "bool", jsName: "isBuy" },
|
|
12746
12604
|
{ name: "high_price", type: "string", jsName: "highPrice" },
|
|
12605
|
+
{ name: "deadline", type: "string" },
|
|
12747
12606
|
{ name: "builder_fee_rate", type: "string", jsName: "builderFeeRate" },
|
|
12748
12607
|
{ name: "builder_address", type: "string", jsName: "builderAddress" }
|
|
12749
12608
|
],
|
|
12750
|
-
|
|
12609
|
+
timestampFields: ["deadline"],
|
|
12751
12610
|
optionalFields: ["builder_address", "builder_fee_rate"],
|
|
12752
12611
|
fieldSemantics: {
|
|
12753
12612
|
builder_address: { isAddress: true },
|
|
@@ -12992,9 +12851,11 @@ var EIP712_MSG_TYPES = {
|
|
|
12992
12851
|
eip712TypeName: "TypeMsgCreateMarket",
|
|
12993
12852
|
valueFields: [
|
|
12994
12853
|
{ name: "tick_precision", type: "string", jsName: "tickPrecision", protoHint: "uint32" },
|
|
12854
|
+
{ name: "taker_fee_rate", type: "string", jsName: "takerFeeRate" },
|
|
12995
12855
|
{ name: "sender", type: "string" },
|
|
12996
12856
|
{ name: "quote_denom", type: "string", jsName: "quoteDenom" },
|
|
12997
12857
|
{ name: "market_type", type: "int64", jsName: "marketType" },
|
|
12858
|
+
{ name: "maker_fee_rate", type: "string", jsName: "makerFeeRate" },
|
|
12998
12859
|
{ name: "base_denom", type: "string", jsName: "baseDenom" }
|
|
12999
12860
|
],
|
|
13000
12861
|
enumFieldPaths: {
|
|
@@ -13002,6 +12863,11 @@ var EIP712_MSG_TYPES = {
|
|
|
13002
12863
|
"0": "MARKET_TYPE_UNSPECIFIED",
|
|
13003
12864
|
"1": "MARKET_TYPE_SPOT"
|
|
13004
12865
|
}
|
|
12866
|
+
},
|
|
12867
|
+
optionalFields: ["maker_fee_rate", "taker_fee_rate"],
|
|
12868
|
+
fieldSemantics: {
|
|
12869
|
+
maker_fee_rate: { isLegacyDec: true },
|
|
12870
|
+
taker_fee_rate: { isLegacyDec: true }
|
|
13005
12871
|
}
|
|
13006
12872
|
},
|
|
13007
12873
|
"/ault.market.v1.MsgHaltAllMarkets": {
|
|
@@ -13816,6 +13682,7 @@ var msg = {
|
|
|
13816
13682
|
},
|
|
13817
13683
|
clob: {
|
|
13818
13684
|
cancelOrders: (value) => buildMsg("/ault.clob.v1.MsgCancelOrders", value),
|
|
13685
|
+
modifyOrders: (value) => buildMsg("/ault.clob.v1.MsgModifyOrders", value),
|
|
13819
13686
|
placeLimitOrder: (value) => buildMsg("/ault.clob.v1.MsgPlaceLimitOrder", value),
|
|
13820
13687
|
placeMarketOrder: (value) => buildMsg("/ault.clob.v1.MsgPlaceMarketOrder", value),
|
|
13821
13688
|
placeScaleOrder: (value) => buildMsg("/ault.clob.v1.MsgPlaceScaleOrder", value),
|
|
@@ -14085,6 +13952,51 @@ function durationToNanosecondsString(value, fieldName) {
|
|
|
14085
13952
|
}
|
|
14086
13953
|
return (seconds * 1000000000n + nanos).toString();
|
|
14087
13954
|
}
|
|
13955
|
+
var MAX_RFC3339_SECONDS = 253402300799n;
|
|
13956
|
+
function timestampToRfc3339String(value, fieldName) {
|
|
13957
|
+
let seconds;
|
|
13958
|
+
let nanos;
|
|
13959
|
+
if (value instanceof Date) {
|
|
13960
|
+
const ms = value.getTime();
|
|
13961
|
+
if (Number.isNaN(ms)) {
|
|
13962
|
+
throw new Error(`Timestamp field "${fieldName}" must be a valid Date.`);
|
|
13963
|
+
}
|
|
13964
|
+
const secondsNum = Math.floor(ms / 1e3);
|
|
13965
|
+
seconds = BigInt(secondsNum);
|
|
13966
|
+
nanos = BigInt(ms - secondsNum * 1e3) * 1000000n;
|
|
13967
|
+
} else if (typeof value === "string") {
|
|
13968
|
+
const ms = Date.parse(value);
|
|
13969
|
+
if (Number.isNaN(ms)) {
|
|
13970
|
+
throw new Error(`Timestamp field "${fieldName}" must be a valid RFC 3339 date string.`);
|
|
13971
|
+
}
|
|
13972
|
+
return timestampToRfc3339String(new Date(ms), fieldName);
|
|
13973
|
+
} else if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
13974
|
+
const record2 = value;
|
|
13975
|
+
if (record2.seconds === void 0 && record2.nanos === void 0) {
|
|
13976
|
+
throw new Error(`Timestamp field "${fieldName}" must include seconds or nanos.`);
|
|
13977
|
+
}
|
|
13978
|
+
seconds = toBigIntLike(record2.seconds ?? 0n, `${fieldName}.seconds`);
|
|
13979
|
+
nanos = toBigIntLike(record2.nanos ?? 0, `${fieldName}.nanos`);
|
|
13980
|
+
} else {
|
|
13981
|
+
throw new Error(
|
|
13982
|
+
`Timestamp field "${fieldName}" must be a Date, RFC 3339 string, or protobuf Timestamp object.`
|
|
13983
|
+
);
|
|
13984
|
+
}
|
|
13985
|
+
if (nanos < 0n || nanos > 999999999n) {
|
|
13986
|
+
throw new Error(`Timestamp field "${fieldName}.nanos" must be between 0 and 999999999.`);
|
|
13987
|
+
}
|
|
13988
|
+
if (seconds < 0n || seconds > MAX_RFC3339_SECONDS) {
|
|
13989
|
+
throw new Error(
|
|
13990
|
+
`Timestamp field "${fieldName}.seconds" must be between 1970-01-01 and 9999-12-31.`
|
|
13991
|
+
);
|
|
13992
|
+
}
|
|
13993
|
+
const datePart = new Date(Number(seconds) * 1e3).toISOString().slice(0, 19);
|
|
13994
|
+
if (nanos === 0n) {
|
|
13995
|
+
return `${datePart}Z`;
|
|
13996
|
+
}
|
|
13997
|
+
const fraction = nanos.toString().padStart(9, "0").replace(/0+$/, "");
|
|
13998
|
+
return `${datePart}.${fraction}Z`;
|
|
13999
|
+
}
|
|
14088
14000
|
function normalizeEnumValue(value, fieldPath, enumFieldPaths) {
|
|
14089
14001
|
const values = enumFieldPaths?.[fieldPath];
|
|
14090
14002
|
if (!values) {
|
|
@@ -14110,10 +14022,11 @@ function normalizeEnumValue(value, fieldPath, enumFieldPaths) {
|
|
|
14110
14022
|
}
|
|
14111
14023
|
return value;
|
|
14112
14024
|
}
|
|
14113
|
-
function mapValueToAmino(value, fields, nestedTypes, durationFields, enumFieldPaths, optionalFields, pathPrefix = "", fieldSemantics) {
|
|
14025
|
+
function mapValueToAmino(value, fields, nestedTypes, durationFields, timestampFields, enumFieldPaths, optionalFields, pathPrefix = "", fieldSemantics) {
|
|
14114
14026
|
const record2 = value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
14115
14027
|
const normalized = {};
|
|
14116
14028
|
const durationSet = durationFields ? new Set(durationFields) : void 0;
|
|
14029
|
+
const timestampSet = timestampFields ? new Set(timestampFields) : void 0;
|
|
14117
14030
|
const optionalSet = optionalFields ? new Set(optionalFields) : void 0;
|
|
14118
14031
|
for (const field of fields) {
|
|
14119
14032
|
const jsKey = fieldJsName(field);
|
|
@@ -14146,6 +14059,7 @@ function mapValueToAmino(value, fields, nestedTypes, durationFields, enumFieldPa
|
|
|
14146
14059
|
nestedFields,
|
|
14147
14060
|
nestedTypes,
|
|
14148
14061
|
durationFields,
|
|
14062
|
+
timestampFields,
|
|
14149
14063
|
enumFieldPaths,
|
|
14150
14064
|
optionalFields,
|
|
14151
14065
|
fieldPath,
|
|
@@ -14161,6 +14075,7 @@ function mapValueToAmino(value, fields, nestedTypes, durationFields, enumFieldPa
|
|
|
14161
14075
|
nestedFields,
|
|
14162
14076
|
nestedTypes,
|
|
14163
14077
|
durationFields,
|
|
14078
|
+
timestampFields,
|
|
14164
14079
|
enumFieldPaths,
|
|
14165
14080
|
optionalFields,
|
|
14166
14081
|
fieldPath,
|
|
@@ -14179,6 +14094,16 @@ function mapValueToAmino(value, fields, nestedTypes, durationFields, enumFieldPa
|
|
|
14179
14094
|
normalized[field.name] = durationToNanosecondsString(raw, field.name);
|
|
14180
14095
|
continue;
|
|
14181
14096
|
}
|
|
14097
|
+
if (timestampSet?.has(field.name)) {
|
|
14098
|
+
if (raw === void 0 || raw === null) {
|
|
14099
|
+
if (optionalSet?.has(field.name)) {
|
|
14100
|
+
continue;
|
|
14101
|
+
}
|
|
14102
|
+
throw new Error(`Timestamp field "${field.name}" is required.`);
|
|
14103
|
+
}
|
|
14104
|
+
normalized[field.name] = timestampToRfc3339String(raw, field.name);
|
|
14105
|
+
continue;
|
|
14106
|
+
}
|
|
14182
14107
|
if (raw === void 0) {
|
|
14183
14108
|
continue;
|
|
14184
14109
|
}
|
|
@@ -14323,6 +14248,7 @@ function buildEip712AminoMsg(msg2) {
|
|
|
14323
14248
|
msgConfig.valueFields,
|
|
14324
14249
|
msgConfig.nestedTypes,
|
|
14325
14250
|
msgConfig.durationFields,
|
|
14251
|
+
msgConfig.timestampFields,
|
|
14326
14252
|
msgConfig.enumFieldPaths,
|
|
14327
14253
|
msgConfig.optionalFields,
|
|
14328
14254
|
"",
|
|
@@ -15007,7 +14933,7 @@ function isSet32(value) {
|
|
|
15007
14933
|
// src/proto/gen/ault/agent/v1/tx.ts
|
|
15008
14934
|
var import_wire35 = require("@bufbuild/protobuf/wire");
|
|
15009
14935
|
function createBaseMsgApproveAgent() {
|
|
15010
|
-
return { masterAddress: "", agentPubkey: void 0, name: "",
|
|
14936
|
+
return { masterAddress: "", agentPubkey: void 0, name: "", expiresAt: void 0 };
|
|
15011
14937
|
}
|
|
15012
14938
|
var MsgApproveAgent = {
|
|
15013
14939
|
encode(message, writer = new import_wire35.BinaryWriter()) {
|
|
@@ -15020,8 +14946,8 @@ var MsgApproveAgent = {
|
|
|
15020
14946
|
if (message.name !== "") {
|
|
15021
14947
|
writer.uint32(26).string(message.name);
|
|
15022
14948
|
}
|
|
15023
|
-
if (message.
|
|
15024
|
-
|
|
14949
|
+
if (message.expiresAt !== void 0) {
|
|
14950
|
+
Timestamp.encode(toTimestamp6(message.expiresAt), writer.uint32(34).fork()).join();
|
|
15025
14951
|
}
|
|
15026
14952
|
return writer;
|
|
15027
14953
|
},
|
|
@@ -15057,7 +14983,7 @@ var MsgApproveAgent = {
|
|
|
15057
14983
|
if (tag !== 34) {
|
|
15058
14984
|
break;
|
|
15059
14985
|
}
|
|
15060
|
-
message.
|
|
14986
|
+
message.expiresAt = fromTimestamp6(Timestamp.decode(reader, reader.uint32()));
|
|
15061
14987
|
continue;
|
|
15062
14988
|
}
|
|
15063
14989
|
}
|
|
@@ -15073,7 +14999,7 @@ var MsgApproveAgent = {
|
|
|
15073
14999
|
masterAddress: isSet33(object2.masterAddress) ? globalThis.String(object2.masterAddress) : isSet33(object2.master_address) ? globalThis.String(object2.master_address) : "",
|
|
15074
15000
|
agentPubkey: isSet33(object2.agentPubkey) ? Any.fromJSON(object2.agentPubkey) : isSet33(object2.agent_pubkey) ? Any.fromJSON(object2.agent_pubkey) : void 0,
|
|
15075
15001
|
name: isSet33(object2.name) ? globalThis.String(object2.name) : "",
|
|
15076
|
-
|
|
15002
|
+
expiresAt: isSet33(object2.expiresAt) ? fromJsonTimestamp6(object2.expiresAt) : isSet33(object2.expires_at) ? fromJsonTimestamp6(object2.expires_at) : void 0
|
|
15077
15003
|
};
|
|
15078
15004
|
},
|
|
15079
15005
|
toJSON(message) {
|
|
@@ -15087,8 +15013,8 @@ var MsgApproveAgent = {
|
|
|
15087
15013
|
if (message.name !== "") {
|
|
15088
15014
|
obj.name = message.name;
|
|
15089
15015
|
}
|
|
15090
|
-
if (message.
|
|
15091
|
-
obj.
|
|
15016
|
+
if (message.expiresAt !== void 0) {
|
|
15017
|
+
obj.expiresAt = message.expiresAt.toISOString();
|
|
15092
15018
|
}
|
|
15093
15019
|
return obj;
|
|
15094
15020
|
},
|
|
@@ -15100,7 +15026,7 @@ var MsgApproveAgent = {
|
|
|
15100
15026
|
message.masterAddress = object2.masterAddress ?? "";
|
|
15101
15027
|
message.agentPubkey = object2.agentPubkey !== void 0 && object2.agentPubkey !== null ? Any.fromPartial(object2.agentPubkey) : void 0;
|
|
15102
15028
|
message.name = object2.name ?? "";
|
|
15103
|
-
message.
|
|
15029
|
+
message.expiresAt = object2.expiresAt ?? void 0;
|
|
15104
15030
|
return message;
|
|
15105
15031
|
}
|
|
15106
15032
|
};
|
|
@@ -15240,6 +15166,25 @@ var MsgUpdateParams2 = {
|
|
|
15240
15166
|
return message;
|
|
15241
15167
|
}
|
|
15242
15168
|
};
|
|
15169
|
+
function toTimestamp6(date) {
|
|
15170
|
+
const seconds = BigInt(Math.trunc(date.getTime() / 1e3));
|
|
15171
|
+
const nanos = date.getTime() % 1e3 * 1e6;
|
|
15172
|
+
return { seconds, nanos };
|
|
15173
|
+
}
|
|
15174
|
+
function fromTimestamp6(t) {
|
|
15175
|
+
let millis = (globalThis.Number(t.seconds.toString()) || 0) * 1e3;
|
|
15176
|
+
millis += (t.nanos || 0) / 1e6;
|
|
15177
|
+
return new globalThis.Date(millis);
|
|
15178
|
+
}
|
|
15179
|
+
function fromJsonTimestamp6(o) {
|
|
15180
|
+
if (o instanceof globalThis.Date) {
|
|
15181
|
+
return o;
|
|
15182
|
+
} else if (typeof o === "string") {
|
|
15183
|
+
return new globalThis.Date(o);
|
|
15184
|
+
} else {
|
|
15185
|
+
return fromTimestamp6(Timestamp.fromJSON(o));
|
|
15186
|
+
}
|
|
15187
|
+
}
|
|
15243
15188
|
function isSet33(value) {
|
|
15244
15189
|
return value !== null && value !== void 0;
|
|
15245
15190
|
}
|
|
@@ -15425,7 +15370,7 @@ function createBaseMsgPlaceLimitOrder() {
|
|
|
15425
15370
|
isBuy: false,
|
|
15426
15371
|
price: "",
|
|
15427
15372
|
quantity: "",
|
|
15428
|
-
|
|
15373
|
+
deadline: void 0,
|
|
15429
15374
|
postOnly: false,
|
|
15430
15375
|
builderAddress: "",
|
|
15431
15376
|
builderFeeRate: ""
|
|
@@ -15448,8 +15393,8 @@ var MsgPlaceLimitOrder = {
|
|
|
15448
15393
|
if (message.quantity !== "") {
|
|
15449
15394
|
writer.uint32(42).string(message.quantity);
|
|
15450
15395
|
}
|
|
15451
|
-
if (message.
|
|
15452
|
-
|
|
15396
|
+
if (message.deadline !== void 0) {
|
|
15397
|
+
Timestamp.encode(toTimestamp7(message.deadline), writer.uint32(50).fork()).join();
|
|
15453
15398
|
}
|
|
15454
15399
|
if (message.postOnly !== false) {
|
|
15455
15400
|
writer.uint32(56).bool(message.postOnly);
|
|
@@ -15508,7 +15453,7 @@ var MsgPlaceLimitOrder = {
|
|
|
15508
15453
|
if (tag !== 50) {
|
|
15509
15454
|
break;
|
|
15510
15455
|
}
|
|
15511
|
-
message.
|
|
15456
|
+
message.deadline = fromTimestamp7(Timestamp.decode(reader, reader.uint32()));
|
|
15512
15457
|
continue;
|
|
15513
15458
|
}
|
|
15514
15459
|
case 7: {
|
|
@@ -15547,7 +15492,7 @@ var MsgPlaceLimitOrder = {
|
|
|
15547
15492
|
isBuy: isSet35(object2.isBuy) ? globalThis.Boolean(object2.isBuy) : isSet35(object2.is_buy) ? globalThis.Boolean(object2.is_buy) : false,
|
|
15548
15493
|
price: isSet35(object2.price) ? globalThis.String(object2.price) : "",
|
|
15549
15494
|
quantity: isSet35(object2.quantity) ? globalThis.String(object2.quantity) : "",
|
|
15550
|
-
|
|
15495
|
+
deadline: isSet35(object2.deadline) ? fromJsonTimestamp7(object2.deadline) : void 0,
|
|
15551
15496
|
postOnly: isSet35(object2.postOnly) ? globalThis.Boolean(object2.postOnly) : isSet35(object2.post_only) ? globalThis.Boolean(object2.post_only) : false,
|
|
15552
15497
|
builderAddress: isSet35(object2.builderAddress) ? globalThis.String(object2.builderAddress) : isSet35(object2.builder_address) ? globalThis.String(object2.builder_address) : "",
|
|
15553
15498
|
builderFeeRate: isSet35(object2.builderFeeRate) ? globalThis.String(object2.builderFeeRate) : isSet35(object2.builder_fee_rate) ? globalThis.String(object2.builder_fee_rate) : ""
|
|
@@ -15570,8 +15515,8 @@ var MsgPlaceLimitOrder = {
|
|
|
15570
15515
|
if (message.quantity !== "") {
|
|
15571
15516
|
obj.quantity = message.quantity;
|
|
15572
15517
|
}
|
|
15573
|
-
if (message.
|
|
15574
|
-
obj.
|
|
15518
|
+
if (message.deadline !== void 0) {
|
|
15519
|
+
obj.deadline = message.deadline.toISOString();
|
|
15575
15520
|
}
|
|
15576
15521
|
if (message.postOnly !== false) {
|
|
15577
15522
|
obj.postOnly = message.postOnly;
|
|
@@ -15594,7 +15539,7 @@ var MsgPlaceLimitOrder = {
|
|
|
15594
15539
|
message.isBuy = object2.isBuy ?? false;
|
|
15595
15540
|
message.price = object2.price ?? "";
|
|
15596
15541
|
message.quantity = object2.quantity ?? "";
|
|
15597
|
-
message.
|
|
15542
|
+
message.deadline = object2.deadline ?? void 0;
|
|
15598
15543
|
message.postOnly = object2.postOnly ?? false;
|
|
15599
15544
|
message.builderAddress = object2.builderAddress ?? "";
|
|
15600
15545
|
message.builderFeeRate = object2.builderFeeRate ?? "";
|
|
@@ -15836,6 +15781,157 @@ var MsgCancelOrders = {
|
|
|
15836
15781
|
return message;
|
|
15837
15782
|
}
|
|
15838
15783
|
};
|
|
15784
|
+
function createBaseMsgModifyOrders() {
|
|
15785
|
+
return { sender: "", orders: [] };
|
|
15786
|
+
}
|
|
15787
|
+
var MsgModifyOrders = {
|
|
15788
|
+
encode(message, writer = new import_wire37.BinaryWriter()) {
|
|
15789
|
+
if (message.sender !== "") {
|
|
15790
|
+
writer.uint32(10).string(message.sender);
|
|
15791
|
+
}
|
|
15792
|
+
for (const v of message.orders) {
|
|
15793
|
+
ModifyOrder.encode(v, writer.uint32(18).fork()).join();
|
|
15794
|
+
}
|
|
15795
|
+
return writer;
|
|
15796
|
+
},
|
|
15797
|
+
decode(input, length) {
|
|
15798
|
+
const reader = input instanceof import_wire37.BinaryReader ? input : new import_wire37.BinaryReader(input);
|
|
15799
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
15800
|
+
const message = createBaseMsgModifyOrders();
|
|
15801
|
+
while (reader.pos < end) {
|
|
15802
|
+
const tag = reader.uint32();
|
|
15803
|
+
switch (tag >>> 3) {
|
|
15804
|
+
case 1: {
|
|
15805
|
+
if (tag !== 10) {
|
|
15806
|
+
break;
|
|
15807
|
+
}
|
|
15808
|
+
message.sender = reader.string();
|
|
15809
|
+
continue;
|
|
15810
|
+
}
|
|
15811
|
+
case 2: {
|
|
15812
|
+
if (tag !== 18) {
|
|
15813
|
+
break;
|
|
15814
|
+
}
|
|
15815
|
+
message.orders.push(ModifyOrder.decode(reader, reader.uint32()));
|
|
15816
|
+
continue;
|
|
15817
|
+
}
|
|
15818
|
+
}
|
|
15819
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15820
|
+
break;
|
|
15821
|
+
}
|
|
15822
|
+
reader.skip(tag & 7);
|
|
15823
|
+
}
|
|
15824
|
+
return message;
|
|
15825
|
+
},
|
|
15826
|
+
fromJSON(object2) {
|
|
15827
|
+
return {
|
|
15828
|
+
sender: isSet35(object2.sender) ? globalThis.String(object2.sender) : "",
|
|
15829
|
+
orders: globalThis.Array.isArray(object2?.orders) ? object2.orders.map((e) => ModifyOrder.fromJSON(e)) : []
|
|
15830
|
+
};
|
|
15831
|
+
},
|
|
15832
|
+
toJSON(message) {
|
|
15833
|
+
const obj = {};
|
|
15834
|
+
if (message.sender !== "") {
|
|
15835
|
+
obj.sender = message.sender;
|
|
15836
|
+
}
|
|
15837
|
+
if (message.orders?.length) {
|
|
15838
|
+
obj.orders = message.orders.map((e) => ModifyOrder.toJSON(e));
|
|
15839
|
+
}
|
|
15840
|
+
return obj;
|
|
15841
|
+
},
|
|
15842
|
+
create(base) {
|
|
15843
|
+
return MsgModifyOrders.fromPartial(base ?? {});
|
|
15844
|
+
},
|
|
15845
|
+
fromPartial(object2) {
|
|
15846
|
+
const message = createBaseMsgModifyOrders();
|
|
15847
|
+
message.sender = object2.sender ?? "";
|
|
15848
|
+
message.orders = object2.orders?.map((e) => ModifyOrder.fromPartial(e)) || [];
|
|
15849
|
+
return message;
|
|
15850
|
+
}
|
|
15851
|
+
};
|
|
15852
|
+
function createBaseModifyOrder() {
|
|
15853
|
+
return { orderId: new Uint8Array(0), newPrice: "", newQuantity: "" };
|
|
15854
|
+
}
|
|
15855
|
+
var ModifyOrder = {
|
|
15856
|
+
encode(message, writer = new import_wire37.BinaryWriter()) {
|
|
15857
|
+
if (message.orderId.length !== 0) {
|
|
15858
|
+
writer.uint32(10).bytes(message.orderId);
|
|
15859
|
+
}
|
|
15860
|
+
if (message.newPrice !== "") {
|
|
15861
|
+
writer.uint32(18).string(message.newPrice);
|
|
15862
|
+
}
|
|
15863
|
+
if (message.newQuantity !== "") {
|
|
15864
|
+
writer.uint32(26).string(message.newQuantity);
|
|
15865
|
+
}
|
|
15866
|
+
return writer;
|
|
15867
|
+
},
|
|
15868
|
+
decode(input, length) {
|
|
15869
|
+
const reader = input instanceof import_wire37.BinaryReader ? input : new import_wire37.BinaryReader(input);
|
|
15870
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
15871
|
+
const message = createBaseModifyOrder();
|
|
15872
|
+
while (reader.pos < end) {
|
|
15873
|
+
const tag = reader.uint32();
|
|
15874
|
+
switch (tag >>> 3) {
|
|
15875
|
+
case 1: {
|
|
15876
|
+
if (tag !== 10) {
|
|
15877
|
+
break;
|
|
15878
|
+
}
|
|
15879
|
+
message.orderId = reader.bytes();
|
|
15880
|
+
continue;
|
|
15881
|
+
}
|
|
15882
|
+
case 2: {
|
|
15883
|
+
if (tag !== 18) {
|
|
15884
|
+
break;
|
|
15885
|
+
}
|
|
15886
|
+
message.newPrice = reader.string();
|
|
15887
|
+
continue;
|
|
15888
|
+
}
|
|
15889
|
+
case 3: {
|
|
15890
|
+
if (tag !== 26) {
|
|
15891
|
+
break;
|
|
15892
|
+
}
|
|
15893
|
+
message.newQuantity = reader.string();
|
|
15894
|
+
continue;
|
|
15895
|
+
}
|
|
15896
|
+
}
|
|
15897
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15898
|
+
break;
|
|
15899
|
+
}
|
|
15900
|
+
reader.skip(tag & 7);
|
|
15901
|
+
}
|
|
15902
|
+
return message;
|
|
15903
|
+
},
|
|
15904
|
+
fromJSON(object2) {
|
|
15905
|
+
return {
|
|
15906
|
+
orderId: isSet35(object2.orderId) ? bytesFromBase648(object2.orderId) : isSet35(object2.order_id) ? bytesFromBase648(object2.order_id) : new Uint8Array(0),
|
|
15907
|
+
newPrice: isSet35(object2.newPrice) ? globalThis.String(object2.newPrice) : isSet35(object2.new_price) ? globalThis.String(object2.new_price) : "",
|
|
15908
|
+
newQuantity: isSet35(object2.newQuantity) ? globalThis.String(object2.newQuantity) : isSet35(object2.new_quantity) ? globalThis.String(object2.new_quantity) : ""
|
|
15909
|
+
};
|
|
15910
|
+
},
|
|
15911
|
+
toJSON(message) {
|
|
15912
|
+
const obj = {};
|
|
15913
|
+
if (message.orderId.length !== 0) {
|
|
15914
|
+
obj.orderId = base64FromBytes8(message.orderId);
|
|
15915
|
+
}
|
|
15916
|
+
if (message.newPrice !== "") {
|
|
15917
|
+
obj.newPrice = message.newPrice;
|
|
15918
|
+
}
|
|
15919
|
+
if (message.newQuantity !== "") {
|
|
15920
|
+
obj.newQuantity = message.newQuantity;
|
|
15921
|
+
}
|
|
15922
|
+
return obj;
|
|
15923
|
+
},
|
|
15924
|
+
create(base) {
|
|
15925
|
+
return ModifyOrder.fromPartial(base ?? {});
|
|
15926
|
+
},
|
|
15927
|
+
fromPartial(object2) {
|
|
15928
|
+
const message = createBaseModifyOrder();
|
|
15929
|
+
message.orderId = object2.orderId ?? new Uint8Array(0);
|
|
15930
|
+
message.newPrice = object2.newPrice ?? "";
|
|
15931
|
+
message.newQuantity = object2.newQuantity ?? "";
|
|
15932
|
+
return message;
|
|
15933
|
+
}
|
|
15934
|
+
};
|
|
15839
15935
|
function createBaseMsgPlaceScaleOrder() {
|
|
15840
15936
|
return {
|
|
15841
15937
|
sender: "",
|
|
@@ -15845,7 +15941,7 @@ function createBaseMsgPlaceScaleOrder() {
|
|
|
15845
15941
|
highPrice: "",
|
|
15846
15942
|
totalQuantity: "",
|
|
15847
15943
|
weights: [],
|
|
15848
|
-
|
|
15944
|
+
deadline: void 0,
|
|
15849
15945
|
postOnly: false,
|
|
15850
15946
|
builderAddress: "",
|
|
15851
15947
|
builderFeeRate: ""
|
|
@@ -15876,8 +15972,8 @@ var MsgPlaceScaleOrder = {
|
|
|
15876
15972
|
writer.uint32(v);
|
|
15877
15973
|
}
|
|
15878
15974
|
writer.join();
|
|
15879
|
-
if (message.
|
|
15880
|
-
|
|
15975
|
+
if (message.deadline !== void 0) {
|
|
15976
|
+
Timestamp.encode(toTimestamp7(message.deadline), writer.uint32(66).fork()).join();
|
|
15881
15977
|
}
|
|
15882
15978
|
if (message.postOnly !== false) {
|
|
15883
15979
|
writer.uint32(72).bool(message.postOnly);
|
|
@@ -15957,7 +16053,7 @@ var MsgPlaceScaleOrder = {
|
|
|
15957
16053
|
if (tag !== 66) {
|
|
15958
16054
|
break;
|
|
15959
16055
|
}
|
|
15960
|
-
message.
|
|
16056
|
+
message.deadline = fromTimestamp7(Timestamp.decode(reader, reader.uint32()));
|
|
15961
16057
|
continue;
|
|
15962
16058
|
}
|
|
15963
16059
|
case 9: {
|
|
@@ -15998,7 +16094,7 @@ var MsgPlaceScaleOrder = {
|
|
|
15998
16094
|
highPrice: isSet35(object2.highPrice) ? globalThis.String(object2.highPrice) : isSet35(object2.high_price) ? globalThis.String(object2.high_price) : "",
|
|
15999
16095
|
totalQuantity: isSet35(object2.totalQuantity) ? globalThis.String(object2.totalQuantity) : isSet35(object2.total_quantity) ? globalThis.String(object2.total_quantity) : "",
|
|
16000
16096
|
weights: globalThis.Array.isArray(object2?.weights) ? object2.weights.map((e) => globalThis.Number(e)) : [],
|
|
16001
|
-
|
|
16097
|
+
deadline: isSet35(object2.deadline) ? fromJsonTimestamp7(object2.deadline) : void 0,
|
|
16002
16098
|
postOnly: isSet35(object2.postOnly) ? globalThis.Boolean(object2.postOnly) : isSet35(object2.post_only) ? globalThis.Boolean(object2.post_only) : false,
|
|
16003
16099
|
builderAddress: isSet35(object2.builderAddress) ? globalThis.String(object2.builderAddress) : isSet35(object2.builder_address) ? globalThis.String(object2.builder_address) : "",
|
|
16004
16100
|
builderFeeRate: isSet35(object2.builderFeeRate) ? globalThis.String(object2.builderFeeRate) : isSet35(object2.builder_fee_rate) ? globalThis.String(object2.builder_fee_rate) : ""
|
|
@@ -16027,8 +16123,8 @@ var MsgPlaceScaleOrder = {
|
|
|
16027
16123
|
if (message.weights?.length) {
|
|
16028
16124
|
obj.weights = message.weights.map((e) => Math.round(e));
|
|
16029
16125
|
}
|
|
16030
|
-
if (message.
|
|
16031
|
-
obj.
|
|
16126
|
+
if (message.deadline !== void 0) {
|
|
16127
|
+
obj.deadline = message.deadline.toISOString();
|
|
16032
16128
|
}
|
|
16033
16129
|
if (message.postOnly !== false) {
|
|
16034
16130
|
obj.postOnly = message.postOnly;
|
|
@@ -16053,7 +16149,7 @@ var MsgPlaceScaleOrder = {
|
|
|
16053
16149
|
message.highPrice = object2.highPrice ?? "";
|
|
16054
16150
|
message.totalQuantity = object2.totalQuantity ?? "";
|
|
16055
16151
|
message.weights = object2.weights?.map((e) => e) || [];
|
|
16056
|
-
message.
|
|
16152
|
+
message.deadline = object2.deadline ?? void 0;
|
|
16057
16153
|
message.postOnly = object2.postOnly ?? false;
|
|
16058
16154
|
message.builderAddress = object2.builderAddress ?? "";
|
|
16059
16155
|
message.builderFeeRate = object2.builderFeeRate ?? "";
|
|
@@ -16151,6 +16247,25 @@ function base64FromBytes8(arr) {
|
|
|
16151
16247
|
return globalThis.btoa(bin.join(""));
|
|
16152
16248
|
}
|
|
16153
16249
|
}
|
|
16250
|
+
function toTimestamp7(date) {
|
|
16251
|
+
const seconds = BigInt(Math.trunc(date.getTime() / 1e3));
|
|
16252
|
+
const nanos = date.getTime() % 1e3 * 1e6;
|
|
16253
|
+
return { seconds, nanos };
|
|
16254
|
+
}
|
|
16255
|
+
function fromTimestamp7(t) {
|
|
16256
|
+
let millis = (globalThis.Number(t.seconds.toString()) || 0) * 1e3;
|
|
16257
|
+
millis += (t.nanos || 0) / 1e6;
|
|
16258
|
+
return new globalThis.Date(millis);
|
|
16259
|
+
}
|
|
16260
|
+
function fromJsonTimestamp7(o) {
|
|
16261
|
+
if (o instanceof globalThis.Date) {
|
|
16262
|
+
return o;
|
|
16263
|
+
} else if (typeof o === "string") {
|
|
16264
|
+
return new globalThis.Date(o);
|
|
16265
|
+
} else {
|
|
16266
|
+
return fromTimestamp7(Timestamp.fromJSON(o));
|
|
16267
|
+
}
|
|
16268
|
+
}
|
|
16154
16269
|
function isSet35(value) {
|
|
16155
16270
|
return value !== null && value !== void 0;
|
|
16156
16271
|
}
|
|
@@ -17227,7 +17342,15 @@ function isSet36(value) {
|
|
|
17227
17342
|
// src/proto/gen/ault/market/v1/tx.ts
|
|
17228
17343
|
var import_wire39 = require("@bufbuild/protobuf/wire");
|
|
17229
17344
|
function createBaseMsgCreateMarket() {
|
|
17230
|
-
return {
|
|
17345
|
+
return {
|
|
17346
|
+
sender: "",
|
|
17347
|
+
marketType: 0,
|
|
17348
|
+
baseDenom: "",
|
|
17349
|
+
quoteDenom: "",
|
|
17350
|
+
tickPrecision: 0,
|
|
17351
|
+
makerFeeRate: "",
|
|
17352
|
+
takerFeeRate: ""
|
|
17353
|
+
};
|
|
17231
17354
|
}
|
|
17232
17355
|
var MsgCreateMarket = {
|
|
17233
17356
|
encode(message, writer = new import_wire39.BinaryWriter()) {
|
|
@@ -17246,6 +17369,12 @@ var MsgCreateMarket = {
|
|
|
17246
17369
|
if (message.tickPrecision !== 0) {
|
|
17247
17370
|
writer.uint32(40).uint32(message.tickPrecision);
|
|
17248
17371
|
}
|
|
17372
|
+
if (message.makerFeeRate !== "") {
|
|
17373
|
+
writer.uint32(50).string(message.makerFeeRate);
|
|
17374
|
+
}
|
|
17375
|
+
if (message.takerFeeRate !== "") {
|
|
17376
|
+
writer.uint32(58).string(message.takerFeeRate);
|
|
17377
|
+
}
|
|
17249
17378
|
return writer;
|
|
17250
17379
|
},
|
|
17251
17380
|
decode(input, length) {
|
|
@@ -17290,6 +17419,20 @@ var MsgCreateMarket = {
|
|
|
17290
17419
|
message.tickPrecision = reader.uint32();
|
|
17291
17420
|
continue;
|
|
17292
17421
|
}
|
|
17422
|
+
case 6: {
|
|
17423
|
+
if (tag !== 50) {
|
|
17424
|
+
break;
|
|
17425
|
+
}
|
|
17426
|
+
message.makerFeeRate = reader.string();
|
|
17427
|
+
continue;
|
|
17428
|
+
}
|
|
17429
|
+
case 7: {
|
|
17430
|
+
if (tag !== 58) {
|
|
17431
|
+
break;
|
|
17432
|
+
}
|
|
17433
|
+
message.takerFeeRate = reader.string();
|
|
17434
|
+
continue;
|
|
17435
|
+
}
|
|
17293
17436
|
}
|
|
17294
17437
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17295
17438
|
break;
|
|
@@ -17304,7 +17447,9 @@ var MsgCreateMarket = {
|
|
|
17304
17447
|
marketType: isSet37(object2.marketType) ? marketTypeFromJSON(object2.marketType) : isSet37(object2.market_type) ? marketTypeFromJSON(object2.market_type) : 0,
|
|
17305
17448
|
baseDenom: isSet37(object2.baseDenom) ? globalThis.String(object2.baseDenom) : isSet37(object2.base_denom) ? globalThis.String(object2.base_denom) : "",
|
|
17306
17449
|
quoteDenom: isSet37(object2.quoteDenom) ? globalThis.String(object2.quoteDenom) : isSet37(object2.quote_denom) ? globalThis.String(object2.quote_denom) : "",
|
|
17307
|
-
tickPrecision: isSet37(object2.tickPrecision) ? globalThis.Number(object2.tickPrecision) : isSet37(object2.tick_precision) ? globalThis.Number(object2.tick_precision) : 0
|
|
17450
|
+
tickPrecision: isSet37(object2.tickPrecision) ? globalThis.Number(object2.tickPrecision) : isSet37(object2.tick_precision) ? globalThis.Number(object2.tick_precision) : 0,
|
|
17451
|
+
makerFeeRate: isSet37(object2.makerFeeRate) ? globalThis.String(object2.makerFeeRate) : isSet37(object2.maker_fee_rate) ? globalThis.String(object2.maker_fee_rate) : "",
|
|
17452
|
+
takerFeeRate: isSet37(object2.takerFeeRate) ? globalThis.String(object2.takerFeeRate) : isSet37(object2.taker_fee_rate) ? globalThis.String(object2.taker_fee_rate) : ""
|
|
17308
17453
|
};
|
|
17309
17454
|
},
|
|
17310
17455
|
toJSON(message) {
|
|
@@ -17324,6 +17469,12 @@ var MsgCreateMarket = {
|
|
|
17324
17469
|
if (message.tickPrecision !== 0) {
|
|
17325
17470
|
obj.tickPrecision = Math.round(message.tickPrecision);
|
|
17326
17471
|
}
|
|
17472
|
+
if (message.makerFeeRate !== "") {
|
|
17473
|
+
obj.makerFeeRate = message.makerFeeRate;
|
|
17474
|
+
}
|
|
17475
|
+
if (message.takerFeeRate !== "") {
|
|
17476
|
+
obj.takerFeeRate = message.takerFeeRate;
|
|
17477
|
+
}
|
|
17327
17478
|
return obj;
|
|
17328
17479
|
},
|
|
17329
17480
|
create(base) {
|
|
@@ -17336,6 +17487,8 @@ var MsgCreateMarket = {
|
|
|
17336
17487
|
message.baseDenom = object2.baseDenom ?? "";
|
|
17337
17488
|
message.quoteDenom = object2.quoteDenom ?? "";
|
|
17338
17489
|
message.tickPrecision = object2.tickPrecision ?? 0;
|
|
17490
|
+
message.makerFeeRate = object2.makerFeeRate ?? "";
|
|
17491
|
+
message.takerFeeRate = object2.takerFeeRate ?? "";
|
|
17339
17492
|
return message;
|
|
17340
17493
|
}
|
|
17341
17494
|
};
|
|
@@ -20496,12 +20649,6 @@ function requireRecordArray(value, label) {
|
|
|
20496
20649
|
return item;
|
|
20497
20650
|
});
|
|
20498
20651
|
}
|
|
20499
|
-
function optionalDuration(value, label) {
|
|
20500
|
-
if (value === void 0) {
|
|
20501
|
-
return void 0;
|
|
20502
|
-
}
|
|
20503
|
-
return requireDuration(value, label);
|
|
20504
|
-
}
|
|
20505
20652
|
function requireDuration(value, label) {
|
|
20506
20653
|
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
20507
20654
|
throw new Error(`${label} must be a protobuf Duration object.`);
|
|
@@ -20529,6 +20676,40 @@ function requireDurationOrDefault(value, label, defaultValue = { seconds: 0n, na
|
|
|
20529
20676
|
}
|
|
20530
20677
|
return requireDuration(value, label);
|
|
20531
20678
|
}
|
|
20679
|
+
function optionalTimestamp(value, label) {
|
|
20680
|
+
if (value === void 0 || value === null) {
|
|
20681
|
+
return void 0;
|
|
20682
|
+
}
|
|
20683
|
+
return requireTimestamp(value, label);
|
|
20684
|
+
}
|
|
20685
|
+
function requireTimestamp(value, label) {
|
|
20686
|
+
if (value instanceof Date) {
|
|
20687
|
+
if (Number.isNaN(value.getTime())) {
|
|
20688
|
+
throw new Error(`${label} must be a valid Date.`);
|
|
20689
|
+
}
|
|
20690
|
+
return value;
|
|
20691
|
+
}
|
|
20692
|
+
if (typeof value === "string") {
|
|
20693
|
+
const parsed = new Date(value);
|
|
20694
|
+
if (Number.isNaN(parsed.getTime())) {
|
|
20695
|
+
throw new Error(`${label} must be a valid RFC 3339 date string.`);
|
|
20696
|
+
}
|
|
20697
|
+
return parsed;
|
|
20698
|
+
}
|
|
20699
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
20700
|
+
const record2 = asRecord(value);
|
|
20701
|
+
if (record2.seconds === void 0 && record2.nanos === void 0) {
|
|
20702
|
+
throw new Error(`${label} must include seconds or nanos.`);
|
|
20703
|
+
}
|
|
20704
|
+
const seconds = requireBigIntLike(record2.seconds ?? 0n, `${label}.seconds`);
|
|
20705
|
+
const nanos = requireInt32Like(record2.nanos ?? 0, `${label}.nanos`);
|
|
20706
|
+
if (nanos < 0 || nanos > 999999999) {
|
|
20707
|
+
throw new Error(`${label}.nanos must be between 0 and 999999999.`);
|
|
20708
|
+
}
|
|
20709
|
+
return new Date(Number(seconds) * 1e3 + Math.floor(nanos / 1e6));
|
|
20710
|
+
}
|
|
20711
|
+
throw new Error(`${label} must be a Date, RFC 3339 string, or protobuf Timestamp object.`);
|
|
20712
|
+
}
|
|
20532
20713
|
function mapAultAccountxV1MsgOpenAccount(input, label = "value") {
|
|
20533
20714
|
const record2 = asRecord(input);
|
|
20534
20715
|
const prefix = label ? `${label}.` : "";
|
|
@@ -20562,7 +20743,7 @@ function mapAultAgentV1MsgApproveAgent(input, label = "value") {
|
|
|
20562
20743
|
masterAddress: requireString(record2["masterAddress"], `${prefix}masterAddress`),
|
|
20563
20744
|
agentPubkey: mapGoogleProtobufAny(asRecord(record2["agentPubkey"]), `${prefix}agentPubkey`),
|
|
20564
20745
|
name: requireStringOrDefault(record2["name"], `${prefix}name`),
|
|
20565
|
-
|
|
20746
|
+
expiresAt: optionalTimestamp(record2["expiresAt"], `${prefix}expiresAt`)
|
|
20566
20747
|
};
|
|
20567
20748
|
}
|
|
20568
20749
|
function mapAultAgentV1MsgRevokeAgent(input, label = "value") {
|
|
@@ -20611,6 +20792,17 @@ function mapAultAuthorityV1MsgRevokeRole(input, label = "value") {
|
|
|
20611
20792
|
members: requireStringArray(record2["members"], `${prefix}members`)
|
|
20612
20793
|
};
|
|
20613
20794
|
}
|
|
20795
|
+
function mapAultClobV1ModifyOrder(input, label = "value") {
|
|
20796
|
+
const record2 = asRecord(input);
|
|
20797
|
+
const prefix = label ? `${label}.` : "";
|
|
20798
|
+
return {
|
|
20799
|
+
orderId: requireBytes(record2["orderId"], `${prefix}orderId`),
|
|
20800
|
+
newPrice: cosmosDecToProtoInt(requireStringOrDefault(record2["newPrice"], `${prefix}newPrice`)),
|
|
20801
|
+
newQuantity: cosmosDecToProtoInt(
|
|
20802
|
+
requireStringOrDefault(record2["newQuantity"], `${prefix}newQuantity`)
|
|
20803
|
+
)
|
|
20804
|
+
};
|
|
20805
|
+
}
|
|
20614
20806
|
function mapAultClobV1MsgCancelOrders(input, label = "value") {
|
|
20615
20807
|
const record2 = asRecord(input);
|
|
20616
20808
|
const prefix = label ? `${label}.` : "";
|
|
@@ -20619,6 +20811,16 @@ function mapAultClobV1MsgCancelOrders(input, label = "value") {
|
|
|
20619
20811
|
orderIds: requireBytesArray(record2["orderIds"], `${prefix}orderIds`)
|
|
20620
20812
|
};
|
|
20621
20813
|
}
|
|
20814
|
+
function mapAultClobV1MsgModifyOrders(input, label = "value") {
|
|
20815
|
+
const record2 = asRecord(input);
|
|
20816
|
+
const prefix = label ? `${label}.` : "";
|
|
20817
|
+
return {
|
|
20818
|
+
sender: requireString(record2["sender"], `${prefix}sender`),
|
|
20819
|
+
orders: requireRecordArray(record2["orders"], `${prefix}orders`).map(
|
|
20820
|
+
(item, index) => mapAultClobV1ModifyOrder(item, `${prefix}orders[${index}]`)
|
|
20821
|
+
)
|
|
20822
|
+
};
|
|
20823
|
+
}
|
|
20622
20824
|
function mapAultClobV1MsgPlaceLimitOrder(input, label = "value") {
|
|
20623
20825
|
const record2 = asRecord(input);
|
|
20624
20826
|
const prefix = label ? `${label}.` : "";
|
|
@@ -20628,7 +20830,7 @@ function mapAultClobV1MsgPlaceLimitOrder(input, label = "value") {
|
|
|
20628
20830
|
isBuy: requireBool(record2["isBuy"], `${prefix}isBuy`),
|
|
20629
20831
|
price: cosmosDecToProtoInt(requireString(record2["price"], `${prefix}price`)),
|
|
20630
20832
|
quantity: cosmosDecToProtoInt(requireString(record2["quantity"], `${prefix}quantity`)),
|
|
20631
|
-
|
|
20833
|
+
deadline: requireTimestamp(record2["deadline"], `${prefix}deadline`),
|
|
20632
20834
|
postOnly: requireBoolOrDefault(record2["postOnly"], `${prefix}postOnly`),
|
|
20633
20835
|
builderAddress: requireStringOrDefault(record2["builderAddress"], `${prefix}builderAddress`),
|
|
20634
20836
|
builderFeeRate: cosmosDecToProtoInt(
|
|
@@ -20669,7 +20871,7 @@ function mapAultClobV1MsgPlaceScaleOrder(input, label = "value") {
|
|
|
20669
20871
|
requireString(record2["totalQuantity"], `${prefix}totalQuantity`)
|
|
20670
20872
|
),
|
|
20671
20873
|
weights: requireUint32Array(record2["weights"], `${prefix}weights`),
|
|
20672
|
-
|
|
20874
|
+
deadline: requireTimestamp(record2["deadline"], `${prefix}deadline`),
|
|
20673
20875
|
postOnly: requireBoolOrDefault(record2["postOnly"], `${prefix}postOnly`),
|
|
20674
20876
|
builderAddress: requireStringOrDefault(record2["builderAddress"], `${prefix}builderAddress`),
|
|
20675
20877
|
builderFeeRate: cosmosDecToProtoInt(
|
|
@@ -20900,7 +21102,13 @@ function mapAultMarketV1MsgCreateMarket(input, label = "value") {
|
|
|
20900
21102
|
),
|
|
20901
21103
|
baseDenom: requireString(record2["baseDenom"], `${prefix}baseDenom`),
|
|
20902
21104
|
quoteDenom: requireString(record2["quoteDenom"], `${prefix}quoteDenom`),
|
|
20903
|
-
tickPrecision: requireUint32Like(record2["tickPrecision"], `${prefix}tickPrecision`)
|
|
21105
|
+
tickPrecision: requireUint32Like(record2["tickPrecision"], `${prefix}tickPrecision`),
|
|
21106
|
+
makerFeeRate: cosmosDecToProtoInt(
|
|
21107
|
+
requireStringOrDefault(record2["makerFeeRate"], `${prefix}makerFeeRate`)
|
|
21108
|
+
),
|
|
21109
|
+
takerFeeRate: cosmosDecToProtoInt(
|
|
21110
|
+
requireStringOrDefault(record2["takerFeeRate"], `${prefix}takerFeeRate`)
|
|
21111
|
+
)
|
|
20904
21112
|
};
|
|
20905
21113
|
}
|
|
20906
21114
|
function mapAultMarketV1MsgHaltAllMarkets(input, label = "value") {
|
|
@@ -21434,6 +21642,9 @@ var MSG_ENCODERS = {
|
|
|
21434
21642
|
"/ault.clob.v1.MsgCancelOrders": (value) => MsgCancelOrders.encode(
|
|
21435
21643
|
MsgCancelOrders.fromPartial(mapAultClobV1MsgCancelOrders(value))
|
|
21436
21644
|
).finish(),
|
|
21645
|
+
"/ault.clob.v1.MsgModifyOrders": (value) => MsgModifyOrders.encode(
|
|
21646
|
+
MsgModifyOrders.fromPartial(mapAultClobV1MsgModifyOrders(value))
|
|
21647
|
+
).finish(),
|
|
21437
21648
|
"/ault.clob.v1.MsgPlaceLimitOrder": (value) => MsgPlaceLimitOrder.encode(
|
|
21438
21649
|
MsgPlaceLimitOrder.fromPartial(mapAultClobV1MsgPlaceLimitOrder(value))
|
|
21439
21650
|
).finish(),
|
|
@@ -22162,7 +22373,7 @@ function createAgentTxApi({ signerAddress, exec, getGas }) {
|
|
|
22162
22373
|
async approveAgent({
|
|
22163
22374
|
agentPubkey,
|
|
22164
22375
|
name = "",
|
|
22165
|
-
|
|
22376
|
+
expiresAt,
|
|
22166
22377
|
gasLimit,
|
|
22167
22378
|
feeAmount,
|
|
22168
22379
|
memo,
|
|
@@ -22175,7 +22386,7 @@ function createAgentTxApi({ signerAddress, exec, getGas }) {
|
|
|
22175
22386
|
masterAddress: signerAddress,
|
|
22176
22387
|
agentPubkey,
|
|
22177
22388
|
name,
|
|
22178
|
-
|
|
22389
|
+
expiresAt
|
|
22179
22390
|
})
|
|
22180
22391
|
],
|
|
22181
22392
|
{
|
|
@@ -22255,7 +22466,7 @@ function buildLimitOrderMsg(sender, params) {
|
|
|
22255
22466
|
isBuy: params.isBuy,
|
|
22256
22467
|
price: params.price,
|
|
22257
22468
|
quantity: params.quantity,
|
|
22258
|
-
|
|
22469
|
+
deadline: params.deadline,
|
|
22259
22470
|
...params.postOnly !== void 0 && { postOnly: params.postOnly },
|
|
22260
22471
|
...params.builderAddress !== void 0 && {
|
|
22261
22472
|
builderAddress: normalizeAddress(params.builderAddress)
|
|
@@ -22289,7 +22500,7 @@ function buildScaleOrderMsg(sender, params) {
|
|
|
22289
22500
|
highPrice: params.highPrice,
|
|
22290
22501
|
totalQuantity: params.totalQuantity,
|
|
22291
22502
|
weights: params.weights,
|
|
22292
|
-
|
|
22503
|
+
deadline: params.deadline,
|
|
22293
22504
|
...params.postOnly !== void 0 && { postOnly: params.postOnly },
|
|
22294
22505
|
...params.builderAddress !== void 0 && {
|
|
22295
22506
|
builderAddress: normalizeAddress(params.builderAddress)
|
|
@@ -24307,22 +24518,22 @@ var GetStatsResponse = zod.object({
|
|
|
24307
24518
|
window: zod.enum(["24h"]),
|
|
24308
24519
|
totals: zod.object({
|
|
24309
24520
|
quoteVolume: zod.string().regex(getStatsResponseTotalsQuoteVolumeRegExp).nullable().describe(
|
|
24310
|
-
"Total quote volume over the window as a canonical decimal string.\nNull when
|
|
24521
|
+
"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"
|
|
24311
24522
|
),
|
|
24312
24523
|
quoteAsset: zod.string().nullable().describe(
|
|
24313
|
-
'
|
|
24524
|
+
'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'
|
|
24314
24525
|
),
|
|
24315
24526
|
estimatedFee: zod.string().regex(getStatsResponseTotalsEstimatedFeeRegExp).nullable().describe(
|
|
24316
|
-
"Estimated total fees (`\u03A3 quoteVolume \xD7 takerFeeRate`) as a
|
|
24527
|
+
"Estimated total fees (`\u03A3 quoteVolume \xD7 takerFeeRate`) as a decimal\nstring; an estimate, not booked revenue. Null on multi-quote.\n"
|
|
24317
24528
|
),
|
|
24318
24529
|
tradeCount: zod.number().describe("Number of fills (maker legs) in the window."),
|
|
24319
24530
|
traderCount: zod.number().describe("Distinct trading addresses in the window."),
|
|
24320
24531
|
activeMarkets: zod.number().describe("Number of markets with at least one fill in the window."),
|
|
24321
24532
|
dailyActiveUsers: zod.number().nullable().describe(
|
|
24322
|
-
"Distinct trading addresses in the window
|
|
24533
|
+
"Distinct trading addresses in the window. Currently an alias of\n`traderCount`; separate so a precise DAU source can diverge later.\n"
|
|
24323
24534
|
),
|
|
24324
24535
|
averageSlippageBps: zod.string().regex(getStatsResponseTotalsAverageSlippageBpsRegExp).nullable().describe(
|
|
24325
|
-
"Volume-weighted taker slippage (fill vs book-mid) in
|
|
24536
|
+
"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"
|
|
24326
24537
|
),
|
|
24327
24538
|
depositUsdcVolume24h: zod.string().regex(getStatsResponseTotalsDepositUsdcVolume24hRegExp).nullable().describe("Reserved. Currently always null."),
|
|
24328
24539
|
builderCodesFee24h: zod.string().regex(getStatsResponseTotalsBuilderCodesFee24hRegExp).nullable().describe("Reserved. Currently always null.")
|
|
@@ -24718,7 +24929,7 @@ function createDexWs(url, options) {
|
|
|
24718
24929
|
}
|
|
24719
24930
|
|
|
24720
24931
|
// src/index.ts
|
|
24721
|
-
var SDK_VERSION = "0.0.2-alpha.
|
|
24932
|
+
var SDK_VERSION = "0.0.2-alpha.23";
|
|
24722
24933
|
// Annotate the CommonJS export names for ESM import in node:
|
|
24723
24934
|
0 && (module.exports = {
|
|
24724
24935
|
AGENT_DEFAULTS,
|