ault-sdk-ts 0.0.2-alpha.13 → 0.0.2-alpha.15
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/agent/sign-and-broadcast.d.ts +2 -2
- package/dist/core/errors.d.ts +66 -0
- package/dist/eip712/sign-and-broadcast.d.ts +2 -2
- package/dist/high-level/types.d.ts +12 -1
- package/dist/index.cjs +1072 -773
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1057 -773
- package/dist/index.js.map +1 -1
- package/dist/proto/gen/ault/clob/v1/query.d.ts +8 -0
- package/dist/rest/clob.d.ts +2 -1
- package/dist/rest/dex-types.generated.d.ts +127 -13
- package/dist/rest/dex.generated.d.ts +181 -26
- package/dist/ws/types.d.ts +12 -5
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -135,6 +135,50 @@ var WebSocketError = class extends Error {
|
|
|
135
135
|
this.reason = reason;
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
|
+
var TxError = class extends Error {
|
|
139
|
+
constructor(params, message) {
|
|
140
|
+
super(message ?? formatTxErrorMessage(params));
|
|
141
|
+
this.name = "TxError";
|
|
142
|
+
this.txHash = params.txHash;
|
|
143
|
+
this.code = params.code;
|
|
144
|
+
this.rawLog = params.rawLog;
|
|
145
|
+
this.confirmed = params.confirmed;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
var TxNotConfirmedError = class extends TxError {
|
|
149
|
+
constructor(params) {
|
|
150
|
+
super(
|
|
151
|
+
params,
|
|
152
|
+
params.rawLog ?? `Transaction ${params.txHash} was not confirmed before the deadline elapsed.`
|
|
153
|
+
);
|
|
154
|
+
this.name = "TxNotConfirmedError";
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
var TxConfirmationUnavailableError = class extends TxError {
|
|
158
|
+
constructor(params) {
|
|
159
|
+
super(
|
|
160
|
+
params,
|
|
161
|
+
params.rawLog ?? `Transaction ${params.txHash} was broadcast but the confirmation endpoint was unavailable.`
|
|
162
|
+
);
|
|
163
|
+
this.name = "TxConfirmationUnavailableError";
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
function formatTxErrorMessage(params) {
|
|
167
|
+
const head = `Transaction ${params.txHash} failed (code ${params.code})`;
|
|
168
|
+
return params.rawLog ? `${head}: ${params.rawLog}` : `${head}.`;
|
|
169
|
+
}
|
|
170
|
+
var WithdrawRewardsPartialError = class extends Error {
|
|
171
|
+
constructor(params) {
|
|
172
|
+
const completed = params.partialResults.length;
|
|
173
|
+
super(
|
|
174
|
+
`withdrawRewards failed at validator ${params.failedValidatorAddress}: ${params.cause.message} (${completed} validator(s) committed before the failure)`
|
|
175
|
+
);
|
|
176
|
+
this.name = "WithdrawRewardsPartialError";
|
|
177
|
+
this.failedValidatorAddress = params.failedValidatorAddress;
|
|
178
|
+
this.partialResults = params.partialResults;
|
|
179
|
+
this.cause = params.cause;
|
|
180
|
+
}
|
|
181
|
+
};
|
|
138
182
|
|
|
139
183
|
// src/core/http.ts
|
|
140
184
|
var DEFAULT_OPTIONS = {
|
|
@@ -2513,7 +2557,7 @@ function createBankApi(context) {
|
|
|
2513
2557
|
}
|
|
2514
2558
|
|
|
2515
2559
|
// src/proto/gen/ault/clob/v1/query.ts
|
|
2516
|
-
import { BinaryReader as
|
|
2560
|
+
import { BinaryReader as BinaryReader16, BinaryWriter as BinaryWriter16 } from "@bufbuild/protobuf/wire";
|
|
2517
2561
|
|
|
2518
2562
|
// src/proto/gen/ault/clob/v1/fee.ts
|
|
2519
2563
|
import { BinaryReader as BinaryReader14, BinaryWriter as BinaryWriter14 } from "@bufbuild/protobuf/wire";
|
|
@@ -2679,19 +2723,133 @@ function isSet13(value) {
|
|
|
2679
2723
|
return value !== null && value !== void 0;
|
|
2680
2724
|
}
|
|
2681
2725
|
|
|
2726
|
+
// src/proto/gen/ault/clob/v1/params.ts
|
|
2727
|
+
import { BinaryReader as BinaryReader15, BinaryWriter as BinaryWriter15 } from "@bufbuild/protobuf/wire";
|
|
2728
|
+
function createBaseParams3() {
|
|
2729
|
+
return {
|
|
2730
|
+
maxOrderPerAddress: 0n,
|
|
2731
|
+
minOrderQuoteAmount: "",
|
|
2732
|
+
maxOrderLifespan: void 0,
|
|
2733
|
+
maxOrderPriceRatio: ""
|
|
2734
|
+
};
|
|
2735
|
+
}
|
|
2736
|
+
var Params4 = {
|
|
2737
|
+
encode(message, writer = new BinaryWriter15()) {
|
|
2738
|
+
if (message.maxOrderPerAddress !== 0n) {
|
|
2739
|
+
if (BigInt.asUintN(64, message.maxOrderPerAddress) !== message.maxOrderPerAddress) {
|
|
2740
|
+
throw new globalThis.Error(
|
|
2741
|
+
"value provided for field message.maxOrderPerAddress of type uint64 too large"
|
|
2742
|
+
);
|
|
2743
|
+
}
|
|
2744
|
+
writer.uint32(8).uint64(message.maxOrderPerAddress);
|
|
2745
|
+
}
|
|
2746
|
+
if (message.minOrderQuoteAmount !== "") {
|
|
2747
|
+
writer.uint32(18).string(message.minOrderQuoteAmount);
|
|
2748
|
+
}
|
|
2749
|
+
if (message.maxOrderLifespan !== void 0) {
|
|
2750
|
+
Duration.encode(message.maxOrderLifespan, writer.uint32(26).fork()).join();
|
|
2751
|
+
}
|
|
2752
|
+
if (message.maxOrderPriceRatio !== "") {
|
|
2753
|
+
writer.uint32(34).string(message.maxOrderPriceRatio);
|
|
2754
|
+
}
|
|
2755
|
+
return writer;
|
|
2756
|
+
},
|
|
2757
|
+
decode(input, length) {
|
|
2758
|
+
const reader = input instanceof BinaryReader15 ? input : new BinaryReader15(input);
|
|
2759
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2760
|
+
const message = createBaseParams3();
|
|
2761
|
+
while (reader.pos < end) {
|
|
2762
|
+
const tag = reader.uint32();
|
|
2763
|
+
switch (tag >>> 3) {
|
|
2764
|
+
case 1: {
|
|
2765
|
+
if (tag !== 8) {
|
|
2766
|
+
break;
|
|
2767
|
+
}
|
|
2768
|
+
message.maxOrderPerAddress = reader.uint64();
|
|
2769
|
+
continue;
|
|
2770
|
+
}
|
|
2771
|
+
case 2: {
|
|
2772
|
+
if (tag !== 18) {
|
|
2773
|
+
break;
|
|
2774
|
+
}
|
|
2775
|
+
message.minOrderQuoteAmount = reader.string();
|
|
2776
|
+
continue;
|
|
2777
|
+
}
|
|
2778
|
+
case 3: {
|
|
2779
|
+
if (tag !== 26) {
|
|
2780
|
+
break;
|
|
2781
|
+
}
|
|
2782
|
+
message.maxOrderLifespan = Duration.decode(reader, reader.uint32());
|
|
2783
|
+
continue;
|
|
2784
|
+
}
|
|
2785
|
+
case 4: {
|
|
2786
|
+
if (tag !== 34) {
|
|
2787
|
+
break;
|
|
2788
|
+
}
|
|
2789
|
+
message.maxOrderPriceRatio = reader.string();
|
|
2790
|
+
continue;
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2794
|
+
break;
|
|
2795
|
+
}
|
|
2796
|
+
reader.skip(tag & 7);
|
|
2797
|
+
}
|
|
2798
|
+
return message;
|
|
2799
|
+
},
|
|
2800
|
+
fromJSON(object2) {
|
|
2801
|
+
return {
|
|
2802
|
+
maxOrderPerAddress: isSet14(object2.maxOrderPerAddress) ? BigInt(object2.maxOrderPerAddress) : isSet14(object2.max_order_per_address) ? BigInt(object2.max_order_per_address) : 0n,
|
|
2803
|
+
minOrderQuoteAmount: isSet14(object2.minOrderQuoteAmount) ? globalThis.String(object2.minOrderQuoteAmount) : isSet14(object2.min_order_quote_amount) ? globalThis.String(object2.min_order_quote_amount) : "",
|
|
2804
|
+
maxOrderLifespan: isSet14(object2.maxOrderLifespan) ? Duration.fromJSON(object2.maxOrderLifespan) : isSet14(object2.max_order_lifespan) ? Duration.fromJSON(object2.max_order_lifespan) : void 0,
|
|
2805
|
+
maxOrderPriceRatio: isSet14(object2.maxOrderPriceRatio) ? globalThis.String(object2.maxOrderPriceRatio) : isSet14(object2.max_order_price_ratio) ? globalThis.String(object2.max_order_price_ratio) : ""
|
|
2806
|
+
};
|
|
2807
|
+
},
|
|
2808
|
+
toJSON(message) {
|
|
2809
|
+
const obj = {};
|
|
2810
|
+
if (message.maxOrderPerAddress !== 0n) {
|
|
2811
|
+
obj.maxOrderPerAddress = message.maxOrderPerAddress.toString();
|
|
2812
|
+
}
|
|
2813
|
+
if (message.minOrderQuoteAmount !== "") {
|
|
2814
|
+
obj.minOrderQuoteAmount = message.minOrderQuoteAmount;
|
|
2815
|
+
}
|
|
2816
|
+
if (message.maxOrderLifespan !== void 0) {
|
|
2817
|
+
obj.maxOrderLifespan = Duration.toJSON(message.maxOrderLifespan);
|
|
2818
|
+
}
|
|
2819
|
+
if (message.maxOrderPriceRatio !== "") {
|
|
2820
|
+
obj.maxOrderPriceRatio = message.maxOrderPriceRatio;
|
|
2821
|
+
}
|
|
2822
|
+
return obj;
|
|
2823
|
+
},
|
|
2824
|
+
create(base) {
|
|
2825
|
+
return Params4.fromPartial(base ?? {});
|
|
2826
|
+
},
|
|
2827
|
+
fromPartial(object2) {
|
|
2828
|
+
const message = createBaseParams3();
|
|
2829
|
+
message.maxOrderPerAddress = object2.maxOrderPerAddress ?? 0n;
|
|
2830
|
+
message.minOrderQuoteAmount = object2.minOrderQuoteAmount ?? "";
|
|
2831
|
+
message.maxOrderLifespan = object2.maxOrderLifespan !== void 0 && object2.maxOrderLifespan !== null ? Duration.fromPartial(object2.maxOrderLifespan) : void 0;
|
|
2832
|
+
message.maxOrderPriceRatio = object2.maxOrderPriceRatio ?? "";
|
|
2833
|
+
return message;
|
|
2834
|
+
}
|
|
2835
|
+
};
|
|
2836
|
+
function isSet14(value) {
|
|
2837
|
+
return value !== null && value !== void 0;
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2682
2840
|
// src/proto/gen/ault/clob/v1/query.ts
|
|
2683
2841
|
function createBaseQueryOrderResponse() {
|
|
2684
2842
|
return { order: void 0 };
|
|
2685
2843
|
}
|
|
2686
2844
|
var QueryOrderResponse = {
|
|
2687
|
-
encode(message, writer = new
|
|
2845
|
+
encode(message, writer = new BinaryWriter16()) {
|
|
2688
2846
|
if (message.order !== void 0) {
|
|
2689
2847
|
OrderResponse.encode(message.order, writer.uint32(10).fork()).join();
|
|
2690
2848
|
}
|
|
2691
2849
|
return writer;
|
|
2692
2850
|
},
|
|
2693
2851
|
decode(input, length) {
|
|
2694
|
-
const reader = input instanceof
|
|
2852
|
+
const reader = input instanceof BinaryReader16 ? input : new BinaryReader16(input);
|
|
2695
2853
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2696
2854
|
const message = createBaseQueryOrderResponse();
|
|
2697
2855
|
while (reader.pos < end) {
|
|
@@ -2713,7 +2871,7 @@ var QueryOrderResponse = {
|
|
|
2713
2871
|
return message;
|
|
2714
2872
|
},
|
|
2715
2873
|
fromJSON(object2) {
|
|
2716
|
-
return { order:
|
|
2874
|
+
return { order: isSet15(object2.order) ? OrderResponse.fromJSON(object2.order) : void 0 };
|
|
2717
2875
|
},
|
|
2718
2876
|
toJSON(message) {
|
|
2719
2877
|
const obj = {};
|
|
@@ -2735,7 +2893,7 @@ function createBaseQueryOrdersResponse() {
|
|
|
2735
2893
|
return { orders: [], pagination: void 0 };
|
|
2736
2894
|
}
|
|
2737
2895
|
var QueryOrdersResponse = {
|
|
2738
|
-
encode(message, writer = new
|
|
2896
|
+
encode(message, writer = new BinaryWriter16()) {
|
|
2739
2897
|
for (const v of message.orders) {
|
|
2740
2898
|
OrderResponse.encode(v, writer.uint32(10).fork()).join();
|
|
2741
2899
|
}
|
|
@@ -2745,7 +2903,7 @@ var QueryOrdersResponse = {
|
|
|
2745
2903
|
return writer;
|
|
2746
2904
|
},
|
|
2747
2905
|
decode(input, length) {
|
|
2748
|
-
const reader = input instanceof
|
|
2906
|
+
const reader = input instanceof BinaryReader16 ? input : new BinaryReader16(input);
|
|
2749
2907
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2750
2908
|
const message = createBaseQueryOrdersResponse();
|
|
2751
2909
|
while (reader.pos < end) {
|
|
@@ -2776,7 +2934,7 @@ var QueryOrdersResponse = {
|
|
|
2776
2934
|
fromJSON(object2) {
|
|
2777
2935
|
return {
|
|
2778
2936
|
orders: globalThis.Array.isArray(object2?.orders) ? object2.orders.map((e) => OrderResponse.fromJSON(e)) : [],
|
|
2779
|
-
pagination:
|
|
2937
|
+
pagination: isSet15(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
2780
2938
|
};
|
|
2781
2939
|
},
|
|
2782
2940
|
toJSON(message) {
|
|
@@ -2799,6 +2957,57 @@ var QueryOrdersResponse = {
|
|
|
2799
2957
|
return message;
|
|
2800
2958
|
}
|
|
2801
2959
|
};
|
|
2960
|
+
function createBaseQueryParamsResponse3() {
|
|
2961
|
+
return { params: void 0 };
|
|
2962
|
+
}
|
|
2963
|
+
var QueryParamsResponse3 = {
|
|
2964
|
+
encode(message, writer = new BinaryWriter16()) {
|
|
2965
|
+
if (message.params !== void 0) {
|
|
2966
|
+
Params4.encode(message.params, writer.uint32(10).fork()).join();
|
|
2967
|
+
}
|
|
2968
|
+
return writer;
|
|
2969
|
+
},
|
|
2970
|
+
decode(input, length) {
|
|
2971
|
+
const reader = input instanceof BinaryReader16 ? input : new BinaryReader16(input);
|
|
2972
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2973
|
+
const message = createBaseQueryParamsResponse3();
|
|
2974
|
+
while (reader.pos < end) {
|
|
2975
|
+
const tag = reader.uint32();
|
|
2976
|
+
switch (tag >>> 3) {
|
|
2977
|
+
case 1: {
|
|
2978
|
+
if (tag !== 10) {
|
|
2979
|
+
break;
|
|
2980
|
+
}
|
|
2981
|
+
message.params = Params4.decode(reader, reader.uint32());
|
|
2982
|
+
continue;
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2986
|
+
break;
|
|
2987
|
+
}
|
|
2988
|
+
reader.skip(tag & 7);
|
|
2989
|
+
}
|
|
2990
|
+
return message;
|
|
2991
|
+
},
|
|
2992
|
+
fromJSON(object2) {
|
|
2993
|
+
return { params: isSet15(object2.params) ? Params4.fromJSON(object2.params) : void 0 };
|
|
2994
|
+
},
|
|
2995
|
+
toJSON(message) {
|
|
2996
|
+
const obj = {};
|
|
2997
|
+
if (message.params !== void 0) {
|
|
2998
|
+
obj.params = Params4.toJSON(message.params);
|
|
2999
|
+
}
|
|
3000
|
+
return obj;
|
|
3001
|
+
},
|
|
3002
|
+
create(base) {
|
|
3003
|
+
return QueryParamsResponse3.fromPartial(base ?? {});
|
|
3004
|
+
},
|
|
3005
|
+
fromPartial(object2) {
|
|
3006
|
+
const message = createBaseQueryParamsResponse3();
|
|
3007
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params4.fromPartial(object2.params) : void 0;
|
|
3008
|
+
return message;
|
|
3009
|
+
}
|
|
3010
|
+
};
|
|
2802
3011
|
function createBaseOrderResponse() {
|
|
2803
3012
|
return {
|
|
2804
3013
|
id: new Uint8Array(0),
|
|
@@ -2816,7 +3025,7 @@ function createBaseOrderResponse() {
|
|
|
2816
3025
|
};
|
|
2817
3026
|
}
|
|
2818
3027
|
var OrderResponse = {
|
|
2819
|
-
encode(message, writer = new
|
|
3028
|
+
encode(message, writer = new BinaryWriter16()) {
|
|
2820
3029
|
if (message.id.length !== 0) {
|
|
2821
3030
|
writer.uint32(10).bytes(message.id);
|
|
2822
3031
|
}
|
|
@@ -2859,7 +3068,7 @@ var OrderResponse = {
|
|
|
2859
3068
|
return writer;
|
|
2860
3069
|
},
|
|
2861
3070
|
decode(input, length) {
|
|
2862
|
-
const reader = input instanceof
|
|
3071
|
+
const reader = input instanceof BinaryReader16 ? input : new BinaryReader16(input);
|
|
2863
3072
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2864
3073
|
const message = createBaseOrderResponse();
|
|
2865
3074
|
while (reader.pos < end) {
|
|
@@ -2959,18 +3168,18 @@ var OrderResponse = {
|
|
|
2959
3168
|
},
|
|
2960
3169
|
fromJSON(object2) {
|
|
2961
3170
|
return {
|
|
2962
|
-
id:
|
|
2963
|
-
orderer:
|
|
2964
|
-
marketId:
|
|
2965
|
-
isBuy:
|
|
2966
|
-
price:
|
|
2967
|
-
tick:
|
|
2968
|
-
quantity:
|
|
2969
|
-
openQuantity:
|
|
2970
|
-
remainingDeposit:
|
|
2971
|
-
deadline:
|
|
2972
|
-
postOnly:
|
|
2973
|
-
feeInfo:
|
|
3171
|
+
id: isSet15(object2.id) ? bytesFromBase644(object2.id) : new Uint8Array(0),
|
|
3172
|
+
orderer: isSet15(object2.orderer) ? globalThis.String(object2.orderer) : "",
|
|
3173
|
+
marketId: isSet15(object2.marketId) ? bytesFromBase644(object2.marketId) : isSet15(object2.market_id) ? bytesFromBase644(object2.market_id) : new Uint8Array(0),
|
|
3174
|
+
isBuy: isSet15(object2.isBuy) ? globalThis.Boolean(object2.isBuy) : isSet15(object2.is_buy) ? globalThis.Boolean(object2.is_buy) : false,
|
|
3175
|
+
price: isSet15(object2.price) ? globalThis.String(object2.price) : "",
|
|
3176
|
+
tick: isSet15(object2.tick) ? BigInt(object2.tick) : 0n,
|
|
3177
|
+
quantity: isSet15(object2.quantity) ? globalThis.String(object2.quantity) : "",
|
|
3178
|
+
openQuantity: isSet15(object2.openQuantity) ? globalThis.String(object2.openQuantity) : isSet15(object2.open_quantity) ? globalThis.String(object2.open_quantity) : "",
|
|
3179
|
+
remainingDeposit: isSet15(object2.remainingDeposit) ? globalThis.String(object2.remainingDeposit) : isSet15(object2.remaining_deposit) ? globalThis.String(object2.remaining_deposit) : "",
|
|
3180
|
+
deadline: isSet15(object2.deadline) ? fromJsonTimestamp2(object2.deadline) : void 0,
|
|
3181
|
+
postOnly: isSet15(object2.postOnly) ? globalThis.Boolean(object2.postOnly) : isSet15(object2.post_only) ? globalThis.Boolean(object2.post_only) : false,
|
|
3182
|
+
feeInfo: isSet15(object2.feeInfo) ? FeeInfo.fromJSON(object2.feeInfo) : isSet15(object2.fee_info) ? FeeInfo.fromJSON(object2.fee_info) : void 0
|
|
2974
3183
|
};
|
|
2975
3184
|
},
|
|
2976
3185
|
toJSON(message) {
|
|
@@ -3075,7 +3284,7 @@ function fromJsonTimestamp2(o) {
|
|
|
3075
3284
|
return fromTimestamp2(Timestamp.fromJSON(o));
|
|
3076
3285
|
}
|
|
3077
3286
|
}
|
|
3078
|
-
function
|
|
3287
|
+
function isSet15(value) {
|
|
3079
3288
|
return value !== null && value !== void 0;
|
|
3080
3289
|
}
|
|
3081
3290
|
|
|
@@ -3088,6 +3297,9 @@ function normalizeMarketId(marketId) {
|
|
|
3088
3297
|
}
|
|
3089
3298
|
function createClobApi(context) {
|
|
3090
3299
|
return {
|
|
3300
|
+
async getParams() {
|
|
3301
|
+
return fetchProtoJson(context, "/ault/clob/v1/params", QueryParamsResponse3);
|
|
3302
|
+
},
|
|
3091
3303
|
async getOrder(orderId) {
|
|
3092
3304
|
return fetchProtoJson(
|
|
3093
3305
|
context,
|
|
@@ -3106,10 +3318,10 @@ function createClobApi(context) {
|
|
|
3106
3318
|
}
|
|
3107
3319
|
|
|
3108
3320
|
// src/proto/gen/ault/license/v1/query.ts
|
|
3109
|
-
import { BinaryReader as
|
|
3321
|
+
import { BinaryReader as BinaryReader18, BinaryWriter as BinaryWriter18 } from "@bufbuild/protobuf/wire";
|
|
3110
3322
|
|
|
3111
3323
|
// src/proto/gen/ault/license/v1/license.ts
|
|
3112
|
-
import { BinaryReader as
|
|
3324
|
+
import { BinaryReader as BinaryReader17, BinaryWriter as BinaryWriter17 } from "@bufbuild/protobuf/wire";
|
|
3113
3325
|
var LicenseStatus = /* @__PURE__ */ ((LicenseStatus3) => {
|
|
3114
3326
|
LicenseStatus3[LicenseStatus3["LICENSE_STATUS_UNSPECIFIED"] = 0] = "LICENSE_STATUS_UNSPECIFIED";
|
|
3115
3327
|
LicenseStatus3[LicenseStatus3["LICENSE_STATUS_ACTIVE"] = 1] = "LICENSE_STATUS_ACTIVE";
|
|
@@ -3166,7 +3378,7 @@ function createBaseLicense() {
|
|
|
3166
3378
|
};
|
|
3167
3379
|
}
|
|
3168
3380
|
var License = {
|
|
3169
|
-
encode(message, writer = new
|
|
3381
|
+
encode(message, writer = new BinaryWriter17()) {
|
|
3170
3382
|
if (message.id !== 0n) {
|
|
3171
3383
|
if (BigInt.asUintN(64, message.id) !== message.id) {
|
|
3172
3384
|
throw new globalThis.Error("value provided for field message.id of type uint64 too large");
|
|
@@ -3197,7 +3409,7 @@ var License = {
|
|
|
3197
3409
|
return writer;
|
|
3198
3410
|
},
|
|
3199
3411
|
decode(input, length) {
|
|
3200
|
-
const reader = input instanceof
|
|
3412
|
+
const reader = input instanceof BinaryReader17 ? input : new BinaryReader17(input);
|
|
3201
3413
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3202
3414
|
const message = createBaseLicense();
|
|
3203
3415
|
while (reader.pos < end) {
|
|
@@ -3269,14 +3481,14 @@ var License = {
|
|
|
3269
3481
|
},
|
|
3270
3482
|
fromJSON(object2) {
|
|
3271
3483
|
return {
|
|
3272
|
-
id:
|
|
3273
|
-
owner:
|
|
3274
|
-
status:
|
|
3275
|
-
className:
|
|
3276
|
-
uri:
|
|
3277
|
-
createdAt:
|
|
3278
|
-
revokedAt:
|
|
3279
|
-
burnedAt:
|
|
3484
|
+
id: isSet16(object2.id) ? BigInt(object2.id) : 0n,
|
|
3485
|
+
owner: isSet16(object2.owner) ? globalThis.String(object2.owner) : "",
|
|
3486
|
+
status: isSet16(object2.status) ? licenseStatusFromJSON(object2.status) : 0,
|
|
3487
|
+
className: isSet16(object2.className) ? globalThis.String(object2.className) : isSet16(object2.class_name) ? globalThis.String(object2.class_name) : "",
|
|
3488
|
+
uri: isSet16(object2.uri) ? globalThis.String(object2.uri) : "",
|
|
3489
|
+
createdAt: isSet16(object2.createdAt) ? fromJsonTimestamp3(object2.createdAt) : isSet16(object2.created_at) ? fromJsonTimestamp3(object2.created_at) : void 0,
|
|
3490
|
+
revokedAt: isSet16(object2.revokedAt) ? fromJsonTimestamp3(object2.revokedAt) : isSet16(object2.revoked_at) ? fromJsonTimestamp3(object2.revoked_at) : void 0,
|
|
3491
|
+
burnedAt: isSet16(object2.burnedAt) ? fromJsonTimestamp3(object2.burnedAt) : isSet16(object2.burned_at) ? fromJsonTimestamp3(object2.burned_at) : void 0
|
|
3280
3492
|
};
|
|
3281
3493
|
},
|
|
3282
3494
|
toJSON(message) {
|
|
@@ -3323,7 +3535,7 @@ var License = {
|
|
|
3323
3535
|
return message;
|
|
3324
3536
|
}
|
|
3325
3537
|
};
|
|
3326
|
-
function
|
|
3538
|
+
function createBaseParams4() {
|
|
3327
3539
|
return {
|
|
3328
3540
|
className: "",
|
|
3329
3541
|
classSymbol: "",
|
|
@@ -3342,8 +3554,8 @@ function createBaseParams3() {
|
|
|
3342
3554
|
maxVotingPowerPerAddress: 0n
|
|
3343
3555
|
};
|
|
3344
3556
|
}
|
|
3345
|
-
var
|
|
3346
|
-
encode(message, writer = new
|
|
3557
|
+
var Params5 = {
|
|
3558
|
+
encode(message, writer = new BinaryWriter17()) {
|
|
3347
3559
|
if (message.className !== "") {
|
|
3348
3560
|
writer.uint32(10).string(message.className);
|
|
3349
3561
|
}
|
|
@@ -3407,9 +3619,9 @@ var Params4 = {
|
|
|
3407
3619
|
return writer;
|
|
3408
3620
|
},
|
|
3409
3621
|
decode(input, length) {
|
|
3410
|
-
const reader = input instanceof
|
|
3622
|
+
const reader = input instanceof BinaryReader17 ? input : new BinaryReader17(input);
|
|
3411
3623
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3412
|
-
const message =
|
|
3624
|
+
const message = createBaseParams4();
|
|
3413
3625
|
while (reader.pos < end) {
|
|
3414
3626
|
const tag = reader.uint32();
|
|
3415
3627
|
switch (tag >>> 3) {
|
|
@@ -3528,21 +3740,21 @@ var Params4 = {
|
|
|
3528
3740
|
},
|
|
3529
3741
|
fromJSON(object2) {
|
|
3530
3742
|
return {
|
|
3531
|
-
className:
|
|
3532
|
-
classSymbol:
|
|
3533
|
-
baseTokenUri:
|
|
3534
|
-
mintingPaused:
|
|
3535
|
-
supplyCap:
|
|
3536
|
-
allowMetadataUpdate:
|
|
3537
|
-
adminCanRevoke:
|
|
3538
|
-
adminCanBurn:
|
|
3539
|
-
maxBatchSize:
|
|
3540
|
-
transferUnlockDays:
|
|
3541
|
-
enableTransfers:
|
|
3743
|
+
className: isSet16(object2.className) ? globalThis.String(object2.className) : isSet16(object2.class_name) ? globalThis.String(object2.class_name) : "",
|
|
3744
|
+
classSymbol: isSet16(object2.classSymbol) ? globalThis.String(object2.classSymbol) : isSet16(object2.class_symbol) ? globalThis.String(object2.class_symbol) : "",
|
|
3745
|
+
baseTokenUri: isSet16(object2.baseTokenUri) ? globalThis.String(object2.baseTokenUri) : isSet16(object2.base_token_uri) ? globalThis.String(object2.base_token_uri) : "",
|
|
3746
|
+
mintingPaused: isSet16(object2.mintingPaused) ? globalThis.Boolean(object2.mintingPaused) : isSet16(object2.minting_paused) ? globalThis.Boolean(object2.minting_paused) : false,
|
|
3747
|
+
supplyCap: isSet16(object2.supplyCap) ? BigInt(object2.supplyCap) : isSet16(object2.supply_cap) ? BigInt(object2.supply_cap) : 0n,
|
|
3748
|
+
allowMetadataUpdate: isSet16(object2.allowMetadataUpdate) ? globalThis.Boolean(object2.allowMetadataUpdate) : isSet16(object2.allow_metadata_update) ? globalThis.Boolean(object2.allow_metadata_update) : false,
|
|
3749
|
+
adminCanRevoke: isSet16(object2.adminCanRevoke) ? globalThis.Boolean(object2.adminCanRevoke) : isSet16(object2.admin_can_revoke) ? globalThis.Boolean(object2.admin_can_revoke) : false,
|
|
3750
|
+
adminCanBurn: isSet16(object2.adminCanBurn) ? globalThis.Boolean(object2.adminCanBurn) : isSet16(object2.admin_can_burn) ? globalThis.Boolean(object2.admin_can_burn) : false,
|
|
3751
|
+
maxBatchSize: isSet16(object2.maxBatchSize) ? globalThis.Number(object2.maxBatchSize) : isSet16(object2.max_batch_size) ? globalThis.Number(object2.max_batch_size) : 0,
|
|
3752
|
+
transferUnlockDays: isSet16(object2.transferUnlockDays) ? globalThis.Number(object2.transferUnlockDays) : isSet16(object2.transfer_unlock_days) ? globalThis.Number(object2.transfer_unlock_days) : 0,
|
|
3753
|
+
enableTransfers: isSet16(object2.enableTransfers) ? globalThis.Boolean(object2.enableTransfers) : isSet16(object2.enable_transfers) ? globalThis.Boolean(object2.enable_transfers) : false,
|
|
3542
3754
|
minterAllowedMsgs: globalThis.Array.isArray(object2?.minterAllowedMsgs) ? object2.minterAllowedMsgs.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object2?.minter_allowed_msgs) ? object2.minter_allowed_msgs.map((e) => globalThis.String(e)) : [],
|
|
3543
3755
|
kycApproverAllowedMsgs: globalThis.Array.isArray(object2?.kycApproverAllowedMsgs) ? object2.kycApproverAllowedMsgs.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object2?.kyc_approver_allowed_msgs) ? object2.kyc_approver_allowed_msgs.map((e) => globalThis.String(e)) : [],
|
|
3544
|
-
freeMaxGasLimit:
|
|
3545
|
-
maxVotingPowerPerAddress:
|
|
3756
|
+
freeMaxGasLimit: isSet16(object2.freeMaxGasLimit) ? BigInt(object2.freeMaxGasLimit) : isSet16(object2.free_max_gas_limit) ? BigInt(object2.free_max_gas_limit) : 0n,
|
|
3757
|
+
maxVotingPowerPerAddress: isSet16(object2.maxVotingPowerPerAddress) ? BigInt(object2.maxVotingPowerPerAddress) : isSet16(object2.max_voting_power_per_address) ? BigInt(object2.max_voting_power_per_address) : 0n
|
|
3546
3758
|
};
|
|
3547
3759
|
},
|
|
3548
3760
|
toJSON(message) {
|
|
@@ -3595,10 +3807,10 @@ var Params4 = {
|
|
|
3595
3807
|
return obj;
|
|
3596
3808
|
},
|
|
3597
3809
|
create(base) {
|
|
3598
|
-
return
|
|
3810
|
+
return Params5.fromPartial(base ?? {});
|
|
3599
3811
|
},
|
|
3600
3812
|
fromPartial(object2) {
|
|
3601
|
-
const message =
|
|
3813
|
+
const message = createBaseParams4();
|
|
3602
3814
|
message.className = object2.className ?? "";
|
|
3603
3815
|
message.classSymbol = object2.classSymbol ?? "";
|
|
3604
3816
|
message.baseTokenUri = object2.baseTokenUri ?? "";
|
|
@@ -3636,7 +3848,7 @@ function fromJsonTimestamp3(o) {
|
|
|
3636
3848
|
return fromTimestamp3(Timestamp.fromJSON(o));
|
|
3637
3849
|
}
|
|
3638
3850
|
}
|
|
3639
|
-
function
|
|
3851
|
+
function isSet16(value) {
|
|
3640
3852
|
return value !== null && value !== void 0;
|
|
3641
3853
|
}
|
|
3642
3854
|
|
|
@@ -3645,14 +3857,14 @@ function createBaseQueryLicenseResponse() {
|
|
|
3645
3857
|
return { license: void 0 };
|
|
3646
3858
|
}
|
|
3647
3859
|
var QueryLicenseResponse = {
|
|
3648
|
-
encode(message, writer = new
|
|
3860
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
3649
3861
|
if (message.license !== void 0) {
|
|
3650
3862
|
License.encode(message.license, writer.uint32(10).fork()).join();
|
|
3651
3863
|
}
|
|
3652
3864
|
return writer;
|
|
3653
3865
|
},
|
|
3654
3866
|
decode(input, length) {
|
|
3655
|
-
const reader = input instanceof
|
|
3867
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
3656
3868
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3657
3869
|
const message = createBaseQueryLicenseResponse();
|
|
3658
3870
|
while (reader.pos < end) {
|
|
@@ -3674,7 +3886,7 @@ var QueryLicenseResponse = {
|
|
|
3674
3886
|
return message;
|
|
3675
3887
|
},
|
|
3676
3888
|
fromJSON(object2) {
|
|
3677
|
-
return { license:
|
|
3889
|
+
return { license: isSet17(object2.license) ? License.fromJSON(object2.license) : void 0 };
|
|
3678
3890
|
},
|
|
3679
3891
|
toJSON(message) {
|
|
3680
3892
|
const obj = {};
|
|
@@ -3696,7 +3908,7 @@ function createBaseQueryLicensesResponse() {
|
|
|
3696
3908
|
return { licenses: [], pagination: void 0 };
|
|
3697
3909
|
}
|
|
3698
3910
|
var QueryLicensesResponse = {
|
|
3699
|
-
encode(message, writer = new
|
|
3911
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
3700
3912
|
for (const v of message.licenses) {
|
|
3701
3913
|
License.encode(v, writer.uint32(10).fork()).join();
|
|
3702
3914
|
}
|
|
@@ -3706,7 +3918,7 @@ var QueryLicensesResponse = {
|
|
|
3706
3918
|
return writer;
|
|
3707
3919
|
},
|
|
3708
3920
|
decode(input, length) {
|
|
3709
|
-
const reader = input instanceof
|
|
3921
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
3710
3922
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3711
3923
|
const message = createBaseQueryLicensesResponse();
|
|
3712
3924
|
while (reader.pos < end) {
|
|
@@ -3737,7 +3949,7 @@ var QueryLicensesResponse = {
|
|
|
3737
3949
|
fromJSON(object2) {
|
|
3738
3950
|
return {
|
|
3739
3951
|
licenses: globalThis.Array.isArray(object2?.licenses) ? object2.licenses.map((e) => License.fromJSON(e)) : [],
|
|
3740
|
-
pagination:
|
|
3952
|
+
pagination: isSet17(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
3741
3953
|
};
|
|
3742
3954
|
},
|
|
3743
3955
|
toJSON(message) {
|
|
@@ -3764,7 +3976,7 @@ function createBaseQueryLicensesByOwnerResponse() {
|
|
|
3764
3976
|
return { licenses: [], pagination: void 0 };
|
|
3765
3977
|
}
|
|
3766
3978
|
var QueryLicensesByOwnerResponse = {
|
|
3767
|
-
encode(message, writer = new
|
|
3979
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
3768
3980
|
for (const v of message.licenses) {
|
|
3769
3981
|
License.encode(v, writer.uint32(10).fork()).join();
|
|
3770
3982
|
}
|
|
@@ -3774,7 +3986,7 @@ var QueryLicensesByOwnerResponse = {
|
|
|
3774
3986
|
return writer;
|
|
3775
3987
|
},
|
|
3776
3988
|
decode(input, length) {
|
|
3777
|
-
const reader = input instanceof
|
|
3989
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
3778
3990
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3779
3991
|
const message = createBaseQueryLicensesByOwnerResponse();
|
|
3780
3992
|
while (reader.pos < end) {
|
|
@@ -3805,7 +4017,7 @@ var QueryLicensesByOwnerResponse = {
|
|
|
3805
4017
|
fromJSON(object2) {
|
|
3806
4018
|
return {
|
|
3807
4019
|
licenses: globalThis.Array.isArray(object2?.licenses) ? object2.licenses.map((e) => License.fromJSON(e)) : [],
|
|
3808
|
-
pagination:
|
|
4020
|
+
pagination: isSet17(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
3809
4021
|
};
|
|
3810
4022
|
},
|
|
3811
4023
|
toJSON(message) {
|
|
@@ -3832,7 +4044,7 @@ function createBaseQueryBalanceResponse2() {
|
|
|
3832
4044
|
return { balance: 0n };
|
|
3833
4045
|
}
|
|
3834
4046
|
var QueryBalanceResponse2 = {
|
|
3835
|
-
encode(message, writer = new
|
|
4047
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
3836
4048
|
if (message.balance !== 0n) {
|
|
3837
4049
|
if (BigInt.asUintN(64, message.balance) !== message.balance) {
|
|
3838
4050
|
throw new globalThis.Error(
|
|
@@ -3844,7 +4056,7 @@ var QueryBalanceResponse2 = {
|
|
|
3844
4056
|
return writer;
|
|
3845
4057
|
},
|
|
3846
4058
|
decode(input, length) {
|
|
3847
|
-
const reader = input instanceof
|
|
4059
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
3848
4060
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3849
4061
|
const message = createBaseQueryBalanceResponse2();
|
|
3850
4062
|
while (reader.pos < end) {
|
|
@@ -3866,7 +4078,7 @@ var QueryBalanceResponse2 = {
|
|
|
3866
4078
|
return message;
|
|
3867
4079
|
},
|
|
3868
4080
|
fromJSON(object2) {
|
|
3869
|
-
return { balance:
|
|
4081
|
+
return { balance: isSet17(object2.balance) ? BigInt(object2.balance) : 0n };
|
|
3870
4082
|
},
|
|
3871
4083
|
toJSON(message) {
|
|
3872
4084
|
const obj = {};
|
|
@@ -3888,14 +4100,14 @@ function createBaseQueryOwnerResponse() {
|
|
|
3888
4100
|
return { owner: "" };
|
|
3889
4101
|
}
|
|
3890
4102
|
var QueryOwnerResponse = {
|
|
3891
|
-
encode(message, writer = new
|
|
4103
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
3892
4104
|
if (message.owner !== "") {
|
|
3893
4105
|
writer.uint32(10).string(message.owner);
|
|
3894
4106
|
}
|
|
3895
4107
|
return writer;
|
|
3896
4108
|
},
|
|
3897
4109
|
decode(input, length) {
|
|
3898
|
-
const reader = input instanceof
|
|
4110
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
3899
4111
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3900
4112
|
const message = createBaseQueryOwnerResponse();
|
|
3901
4113
|
while (reader.pos < end) {
|
|
@@ -3917,7 +4129,7 @@ var QueryOwnerResponse = {
|
|
|
3917
4129
|
return message;
|
|
3918
4130
|
},
|
|
3919
4131
|
fromJSON(object2) {
|
|
3920
|
-
return { owner:
|
|
4132
|
+
return { owner: isSet17(object2.owner) ? globalThis.String(object2.owner) : "" };
|
|
3921
4133
|
},
|
|
3922
4134
|
toJSON(message) {
|
|
3923
4135
|
const obj = {};
|
|
@@ -3939,7 +4151,7 @@ function createBaseQueryTokenByOwnerIndexResponse() {
|
|
|
3939
4151
|
return { id: 0n };
|
|
3940
4152
|
}
|
|
3941
4153
|
var QueryTokenByOwnerIndexResponse = {
|
|
3942
|
-
encode(message, writer = new
|
|
4154
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
3943
4155
|
if (message.id !== 0n) {
|
|
3944
4156
|
if (BigInt.asUintN(64, message.id) !== message.id) {
|
|
3945
4157
|
throw new globalThis.Error("value provided for field message.id of type uint64 too large");
|
|
@@ -3949,7 +4161,7 @@ var QueryTokenByOwnerIndexResponse = {
|
|
|
3949
4161
|
return writer;
|
|
3950
4162
|
},
|
|
3951
4163
|
decode(input, length) {
|
|
3952
|
-
const reader = input instanceof
|
|
4164
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
3953
4165
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3954
4166
|
const message = createBaseQueryTokenByOwnerIndexResponse();
|
|
3955
4167
|
while (reader.pos < end) {
|
|
@@ -3971,7 +4183,7 @@ var QueryTokenByOwnerIndexResponse = {
|
|
|
3971
4183
|
return message;
|
|
3972
4184
|
},
|
|
3973
4185
|
fromJSON(object2) {
|
|
3974
|
-
return { id:
|
|
4186
|
+
return { id: isSet17(object2.id) ? BigInt(object2.id) : 0n };
|
|
3975
4187
|
},
|
|
3976
4188
|
toJSON(message) {
|
|
3977
4189
|
const obj = {};
|
|
@@ -3993,7 +4205,7 @@ function createBaseQueryOwnedByResponse() {
|
|
|
3993
4205
|
return { licenseIds: [], pagination: void 0 };
|
|
3994
4206
|
}
|
|
3995
4207
|
var QueryOwnedByResponse = {
|
|
3996
|
-
encode(message, writer = new
|
|
4208
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
3997
4209
|
writer.uint32(10).fork();
|
|
3998
4210
|
for (const v of message.licenseIds) {
|
|
3999
4211
|
if (BigInt.asUintN(64, v) !== v) {
|
|
@@ -4010,7 +4222,7 @@ var QueryOwnedByResponse = {
|
|
|
4010
4222
|
return writer;
|
|
4011
4223
|
},
|
|
4012
4224
|
decode(input, length) {
|
|
4013
|
-
const reader = input instanceof
|
|
4225
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4014
4226
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4015
4227
|
const message = createBaseQueryOwnedByResponse();
|
|
4016
4228
|
while (reader.pos < end) {
|
|
@@ -4048,7 +4260,7 @@ var QueryOwnedByResponse = {
|
|
|
4048
4260
|
fromJSON(object2) {
|
|
4049
4261
|
return {
|
|
4050
4262
|
licenseIds: globalThis.Array.isArray(object2?.licenseIds) ? object2.licenseIds.map((e) => BigInt(e)) : globalThis.Array.isArray(object2?.license_ids) ? object2.license_ids.map((e) => BigInt(e)) : [],
|
|
4051
|
-
pagination:
|
|
4263
|
+
pagination: isSet17(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
4052
4264
|
};
|
|
4053
4265
|
},
|
|
4054
4266
|
toJSON(message) {
|
|
@@ -4075,7 +4287,7 @@ function createBaseQueryTotalSupplyResponse2() {
|
|
|
4075
4287
|
return { totalSupply: 0n };
|
|
4076
4288
|
}
|
|
4077
4289
|
var QueryTotalSupplyResponse2 = {
|
|
4078
|
-
encode(message, writer = new
|
|
4290
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
4079
4291
|
if (message.totalSupply !== 0n) {
|
|
4080
4292
|
if (BigInt.asUintN(64, message.totalSupply) !== message.totalSupply) {
|
|
4081
4293
|
throw new globalThis.Error(
|
|
@@ -4087,7 +4299,7 @@ var QueryTotalSupplyResponse2 = {
|
|
|
4087
4299
|
return writer;
|
|
4088
4300
|
},
|
|
4089
4301
|
decode(input, length) {
|
|
4090
|
-
const reader = input instanceof
|
|
4302
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4091
4303
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4092
4304
|
const message = createBaseQueryTotalSupplyResponse2();
|
|
4093
4305
|
while (reader.pos < end) {
|
|
@@ -4110,7 +4322,7 @@ var QueryTotalSupplyResponse2 = {
|
|
|
4110
4322
|
},
|
|
4111
4323
|
fromJSON(object2) {
|
|
4112
4324
|
return {
|
|
4113
|
-
totalSupply:
|
|
4325
|
+
totalSupply: isSet17(object2.totalSupply) ? BigInt(object2.totalSupply) : isSet17(object2.total_supply) ? BigInt(object2.total_supply) : 0n
|
|
4114
4326
|
};
|
|
4115
4327
|
},
|
|
4116
4328
|
toJSON(message) {
|
|
@@ -4133,14 +4345,14 @@ function createBaseQueryIsActiveResponse() {
|
|
|
4133
4345
|
return { isActive: false };
|
|
4134
4346
|
}
|
|
4135
4347
|
var QueryIsActiveResponse = {
|
|
4136
|
-
encode(message, writer = new
|
|
4348
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
4137
4349
|
if (message.isActive !== false) {
|
|
4138
4350
|
writer.uint32(8).bool(message.isActive);
|
|
4139
4351
|
}
|
|
4140
4352
|
return writer;
|
|
4141
4353
|
},
|
|
4142
4354
|
decode(input, length) {
|
|
4143
|
-
const reader = input instanceof
|
|
4355
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4144
4356
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4145
4357
|
const message = createBaseQueryIsActiveResponse();
|
|
4146
4358
|
while (reader.pos < end) {
|
|
@@ -4163,7 +4375,7 @@ var QueryIsActiveResponse = {
|
|
|
4163
4375
|
},
|
|
4164
4376
|
fromJSON(object2) {
|
|
4165
4377
|
return {
|
|
4166
|
-
isActive:
|
|
4378
|
+
isActive: isSet17(object2.isActive) ? globalThis.Boolean(object2.isActive) : isSet17(object2.is_active) ? globalThis.Boolean(object2.is_active) : false
|
|
4167
4379
|
};
|
|
4168
4380
|
},
|
|
4169
4381
|
toJSON(message) {
|
|
@@ -4182,20 +4394,20 @@ var QueryIsActiveResponse = {
|
|
|
4182
4394
|
return message;
|
|
4183
4395
|
}
|
|
4184
4396
|
};
|
|
4185
|
-
function
|
|
4397
|
+
function createBaseQueryParamsResponse4() {
|
|
4186
4398
|
return { params: void 0 };
|
|
4187
4399
|
}
|
|
4188
|
-
var
|
|
4189
|
-
encode(message, writer = new
|
|
4400
|
+
var QueryParamsResponse4 = {
|
|
4401
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
4190
4402
|
if (message.params !== void 0) {
|
|
4191
|
-
|
|
4403
|
+
Params5.encode(message.params, writer.uint32(10).fork()).join();
|
|
4192
4404
|
}
|
|
4193
4405
|
return writer;
|
|
4194
4406
|
},
|
|
4195
4407
|
decode(input, length) {
|
|
4196
|
-
const reader = input instanceof
|
|
4408
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4197
4409
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4198
|
-
const message =
|
|
4410
|
+
const message = createBaseQueryParamsResponse4();
|
|
4199
4411
|
while (reader.pos < end) {
|
|
4200
4412
|
const tag = reader.uint32();
|
|
4201
4413
|
switch (tag >>> 3) {
|
|
@@ -4203,7 +4415,7 @@ var QueryParamsResponse3 = {
|
|
|
4203
4415
|
if (tag !== 10) {
|
|
4204
4416
|
break;
|
|
4205
4417
|
}
|
|
4206
|
-
message.params =
|
|
4418
|
+
message.params = Params5.decode(reader, reader.uint32());
|
|
4207
4419
|
continue;
|
|
4208
4420
|
}
|
|
4209
4421
|
}
|
|
@@ -4215,21 +4427,21 @@ var QueryParamsResponse3 = {
|
|
|
4215
4427
|
return message;
|
|
4216
4428
|
},
|
|
4217
4429
|
fromJSON(object2) {
|
|
4218
|
-
return { params:
|
|
4430
|
+
return { params: isSet17(object2.params) ? Params5.fromJSON(object2.params) : void 0 };
|
|
4219
4431
|
},
|
|
4220
4432
|
toJSON(message) {
|
|
4221
4433
|
const obj = {};
|
|
4222
4434
|
if (message.params !== void 0) {
|
|
4223
|
-
obj.params =
|
|
4435
|
+
obj.params = Params5.toJSON(message.params);
|
|
4224
4436
|
}
|
|
4225
4437
|
return obj;
|
|
4226
4438
|
},
|
|
4227
4439
|
create(base) {
|
|
4228
|
-
return
|
|
4440
|
+
return QueryParamsResponse4.fromPartial(base ?? {});
|
|
4229
4441
|
},
|
|
4230
4442
|
fromPartial(object2) {
|
|
4231
|
-
const message =
|
|
4232
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
4443
|
+
const message = createBaseQueryParamsResponse4();
|
|
4444
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params5.fromPartial(object2.params) : void 0;
|
|
4233
4445
|
return message;
|
|
4234
4446
|
}
|
|
4235
4447
|
};
|
|
@@ -4237,7 +4449,7 @@ function createBaseQueryMintersResponse() {
|
|
|
4237
4449
|
return { minters: [], pagination: void 0 };
|
|
4238
4450
|
}
|
|
4239
4451
|
var QueryMintersResponse = {
|
|
4240
|
-
encode(message, writer = new
|
|
4452
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
4241
4453
|
for (const v of message.minters) {
|
|
4242
4454
|
writer.uint32(10).string(v);
|
|
4243
4455
|
}
|
|
@@ -4247,7 +4459,7 @@ var QueryMintersResponse = {
|
|
|
4247
4459
|
return writer;
|
|
4248
4460
|
},
|
|
4249
4461
|
decode(input, length) {
|
|
4250
|
-
const reader = input instanceof
|
|
4462
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4251
4463
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4252
4464
|
const message = createBaseQueryMintersResponse();
|
|
4253
4465
|
while (reader.pos < end) {
|
|
@@ -4278,7 +4490,7 @@ var QueryMintersResponse = {
|
|
|
4278
4490
|
fromJSON(object2) {
|
|
4279
4491
|
return {
|
|
4280
4492
|
minters: globalThis.Array.isArray(object2?.minters) ? object2.minters.map((e) => globalThis.String(e)) : [],
|
|
4281
|
-
pagination:
|
|
4493
|
+
pagination: isSet17(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
4282
4494
|
};
|
|
4283
4495
|
},
|
|
4284
4496
|
toJSON(message) {
|
|
@@ -4305,7 +4517,7 @@ function createBaseQueryKYCApproversResponse() {
|
|
|
4305
4517
|
return { approvers: [], pagination: void 0 };
|
|
4306
4518
|
}
|
|
4307
4519
|
var QueryKYCApproversResponse = {
|
|
4308
|
-
encode(message, writer = new
|
|
4520
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
4309
4521
|
for (const v of message.approvers) {
|
|
4310
4522
|
writer.uint32(10).string(v);
|
|
4311
4523
|
}
|
|
@@ -4315,7 +4527,7 @@ var QueryKYCApproversResponse = {
|
|
|
4315
4527
|
return writer;
|
|
4316
4528
|
},
|
|
4317
4529
|
decode(input, length) {
|
|
4318
|
-
const reader = input instanceof
|
|
4530
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4319
4531
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4320
4532
|
const message = createBaseQueryKYCApproversResponse();
|
|
4321
4533
|
while (reader.pos < end) {
|
|
@@ -4346,7 +4558,7 @@ var QueryKYCApproversResponse = {
|
|
|
4346
4558
|
fromJSON(object2) {
|
|
4347
4559
|
return {
|
|
4348
4560
|
approvers: globalThis.Array.isArray(object2?.approvers) ? object2.approvers.map((e) => globalThis.String(e)) : [],
|
|
4349
|
-
pagination:
|
|
4561
|
+
pagination: isSet17(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
4350
4562
|
};
|
|
4351
4563
|
},
|
|
4352
4564
|
toJSON(message) {
|
|
@@ -4373,14 +4585,14 @@ function createBaseQueryTransferUnlockTimeResponse() {
|
|
|
4373
4585
|
return { unlockTime: void 0 };
|
|
4374
4586
|
}
|
|
4375
4587
|
var QueryTransferUnlockTimeResponse = {
|
|
4376
|
-
encode(message, writer = new
|
|
4588
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
4377
4589
|
if (message.unlockTime !== void 0) {
|
|
4378
4590
|
Timestamp.encode(toTimestamp4(message.unlockTime), writer.uint32(10).fork()).join();
|
|
4379
4591
|
}
|
|
4380
4592
|
return writer;
|
|
4381
4593
|
},
|
|
4382
4594
|
decode(input, length) {
|
|
4383
|
-
const reader = input instanceof
|
|
4595
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4384
4596
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4385
4597
|
const message = createBaseQueryTransferUnlockTimeResponse();
|
|
4386
4598
|
while (reader.pos < end) {
|
|
@@ -4403,7 +4615,7 @@ var QueryTransferUnlockTimeResponse = {
|
|
|
4403
4615
|
},
|
|
4404
4616
|
fromJSON(object2) {
|
|
4405
4617
|
return {
|
|
4406
|
-
unlockTime:
|
|
4618
|
+
unlockTime: isSet17(object2.unlockTime) ? fromJsonTimestamp4(object2.unlockTime) : isSet17(object2.unlock_time) ? fromJsonTimestamp4(object2.unlock_time) : void 0
|
|
4407
4619
|
};
|
|
4408
4620
|
},
|
|
4409
4621
|
toJSON(message) {
|
|
@@ -4426,7 +4638,7 @@ function createBaseQueryApprovedMembersResponse() {
|
|
|
4426
4638
|
return { members: [], pagination: void 0 };
|
|
4427
4639
|
}
|
|
4428
4640
|
var QueryApprovedMembersResponse = {
|
|
4429
|
-
encode(message, writer = new
|
|
4641
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
4430
4642
|
for (const v of message.members) {
|
|
4431
4643
|
writer.uint32(10).string(v);
|
|
4432
4644
|
}
|
|
@@ -4436,7 +4648,7 @@ var QueryApprovedMembersResponse = {
|
|
|
4436
4648
|
return writer;
|
|
4437
4649
|
},
|
|
4438
4650
|
decode(input, length) {
|
|
4439
|
-
const reader = input instanceof
|
|
4651
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4440
4652
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4441
4653
|
const message = createBaseQueryApprovedMembersResponse();
|
|
4442
4654
|
while (reader.pos < end) {
|
|
@@ -4467,7 +4679,7 @@ var QueryApprovedMembersResponse = {
|
|
|
4467
4679
|
fromJSON(object2) {
|
|
4468
4680
|
return {
|
|
4469
4681
|
members: globalThis.Array.isArray(object2?.members) ? object2.members.map((e) => globalThis.String(e)) : [],
|
|
4470
|
-
pagination:
|
|
4682
|
+
pagination: isSet17(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
4471
4683
|
};
|
|
4472
4684
|
},
|
|
4473
4685
|
toJSON(message) {
|
|
@@ -4494,14 +4706,14 @@ function createBaseQueryIsApprovedMemberResponse() {
|
|
|
4494
4706
|
return { isApproved: false };
|
|
4495
4707
|
}
|
|
4496
4708
|
var QueryIsApprovedMemberResponse = {
|
|
4497
|
-
encode(message, writer = new
|
|
4709
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
4498
4710
|
if (message.isApproved !== false) {
|
|
4499
4711
|
writer.uint32(8).bool(message.isApproved);
|
|
4500
4712
|
}
|
|
4501
4713
|
return writer;
|
|
4502
4714
|
},
|
|
4503
4715
|
decode(input, length) {
|
|
4504
|
-
const reader = input instanceof
|
|
4716
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4505
4717
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4506
4718
|
const message = createBaseQueryIsApprovedMemberResponse();
|
|
4507
4719
|
while (reader.pos < end) {
|
|
@@ -4524,7 +4736,7 @@ var QueryIsApprovedMemberResponse = {
|
|
|
4524
4736
|
},
|
|
4525
4737
|
fromJSON(object2) {
|
|
4526
4738
|
return {
|
|
4527
|
-
isApproved:
|
|
4739
|
+
isApproved: isSet17(object2.isApproved) ? globalThis.Boolean(object2.isApproved) : isSet17(object2.is_approved) ? globalThis.Boolean(object2.is_approved) : false
|
|
4528
4740
|
};
|
|
4529
4741
|
},
|
|
4530
4742
|
toJSON(message) {
|
|
@@ -4547,14 +4759,14 @@ function createBaseQueryIsKYCApproverResponse() {
|
|
|
4547
4759
|
return { isApprover: false };
|
|
4548
4760
|
}
|
|
4549
4761
|
var QueryIsKYCApproverResponse = {
|
|
4550
|
-
encode(message, writer = new
|
|
4762
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
4551
4763
|
if (message.isApprover !== false) {
|
|
4552
4764
|
writer.uint32(8).bool(message.isApprover);
|
|
4553
4765
|
}
|
|
4554
4766
|
return writer;
|
|
4555
4767
|
},
|
|
4556
4768
|
decode(input, length) {
|
|
4557
|
-
const reader = input instanceof
|
|
4769
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4558
4770
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4559
4771
|
const message = createBaseQueryIsKYCApproverResponse();
|
|
4560
4772
|
while (reader.pos < end) {
|
|
@@ -4577,7 +4789,7 @@ var QueryIsKYCApproverResponse = {
|
|
|
4577
4789
|
},
|
|
4578
4790
|
fromJSON(object2) {
|
|
4579
4791
|
return {
|
|
4580
|
-
isApprover:
|
|
4792
|
+
isApprover: isSet17(object2.isApprover) ? globalThis.Boolean(object2.isApprover) : isSet17(object2.is_approver) ? globalThis.Boolean(object2.is_approver) : false
|
|
4581
4793
|
};
|
|
4582
4794
|
},
|
|
4583
4795
|
toJSON(message) {
|
|
@@ -4600,7 +4812,7 @@ function createBaseQueryActiveLicenseCountAtResponse() {
|
|
|
4600
4812
|
return { count: 0n };
|
|
4601
4813
|
}
|
|
4602
4814
|
var QueryActiveLicenseCountAtResponse = {
|
|
4603
|
-
encode(message, writer = new
|
|
4815
|
+
encode(message, writer = new BinaryWriter18()) {
|
|
4604
4816
|
if (message.count !== 0n) {
|
|
4605
4817
|
if (BigInt.asUintN(64, message.count) !== message.count) {
|
|
4606
4818
|
throw new globalThis.Error(
|
|
@@ -4612,7 +4824,7 @@ var QueryActiveLicenseCountAtResponse = {
|
|
|
4612
4824
|
return writer;
|
|
4613
4825
|
},
|
|
4614
4826
|
decode(input, length) {
|
|
4615
|
-
const reader = input instanceof
|
|
4827
|
+
const reader = input instanceof BinaryReader18 ? input : new BinaryReader18(input);
|
|
4616
4828
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4617
4829
|
const message = createBaseQueryActiveLicenseCountAtResponse();
|
|
4618
4830
|
while (reader.pos < end) {
|
|
@@ -4634,7 +4846,7 @@ var QueryActiveLicenseCountAtResponse = {
|
|
|
4634
4846
|
return message;
|
|
4635
4847
|
},
|
|
4636
4848
|
fromJSON(object2) {
|
|
4637
|
-
return { count:
|
|
4849
|
+
return { count: isSet17(object2.count) ? BigInt(object2.count) : 0n };
|
|
4638
4850
|
},
|
|
4639
4851
|
toJSON(message) {
|
|
4640
4852
|
const obj = {};
|
|
@@ -4671,7 +4883,7 @@ function fromJsonTimestamp4(o) {
|
|
|
4671
4883
|
return fromTimestamp4(Timestamp.fromJSON(o));
|
|
4672
4884
|
}
|
|
4673
4885
|
}
|
|
4674
|
-
function
|
|
4886
|
+
function isSet17(value) {
|
|
4675
4887
|
return value !== null && value !== void 0;
|
|
4676
4888
|
}
|
|
4677
4889
|
|
|
@@ -4733,7 +4945,7 @@ function createLicenseApi(context) {
|
|
|
4733
4945
|
return fetchProtoJson(context, `/ault/license/v1/is_active/${id}`, QueryIsActiveResponse);
|
|
4734
4946
|
},
|
|
4735
4947
|
async getParams() {
|
|
4736
|
-
return fetchProtoJson(context, "/ault/license/v1/params",
|
|
4948
|
+
return fetchProtoJson(context, "/ault/license/v1/params", QueryParamsResponse4);
|
|
4737
4949
|
},
|
|
4738
4950
|
async getMinters(params = {}) {
|
|
4739
4951
|
const query = buildQuery({ ...params.pagination });
|
|
@@ -4788,10 +5000,10 @@ function createLicenseApi(context) {
|
|
|
4788
5000
|
}
|
|
4789
5001
|
|
|
4790
5002
|
// src/proto/gen/ault/market/v1/query.ts
|
|
4791
|
-
import { BinaryReader as
|
|
5003
|
+
import { BinaryReader as BinaryReader21, BinaryWriter as BinaryWriter21 } from "@bufbuild/protobuf/wire";
|
|
4792
5004
|
|
|
4793
5005
|
// src/proto/gen/ault/market/v1/market.ts
|
|
4794
|
-
import { BinaryReader as
|
|
5006
|
+
import { BinaryReader as BinaryReader19, BinaryWriter as BinaryWriter19 } from "@bufbuild/protobuf/wire";
|
|
4795
5007
|
var MarketType = /* @__PURE__ */ ((MarketType3) => {
|
|
4796
5008
|
MarketType3[MarketType3["MARKET_TYPE_UNSPECIFIED"] = 0] = "MARKET_TYPE_UNSPECIFIED";
|
|
4797
5009
|
MarketType3[MarketType3["MARKET_TYPE_SPOT"] = 1] = "MARKET_TYPE_SPOT";
|
|
@@ -4839,7 +5051,7 @@ function createBaseMarketResponse() {
|
|
|
4839
5051
|
};
|
|
4840
5052
|
}
|
|
4841
5053
|
var MarketResponse = {
|
|
4842
|
-
encode(message, writer = new
|
|
5054
|
+
encode(message, writer = new BinaryWriter19()) {
|
|
4843
5055
|
if (message.id.length !== 0) {
|
|
4844
5056
|
writer.uint32(10).bytes(message.id);
|
|
4845
5057
|
}
|
|
@@ -4881,7 +5093,7 @@ var MarketResponse = {
|
|
|
4881
5093
|
return writer;
|
|
4882
5094
|
},
|
|
4883
5095
|
decode(input, length) {
|
|
4884
|
-
const reader = input instanceof
|
|
5096
|
+
const reader = input instanceof BinaryReader19 ? input : new BinaryReader19(input);
|
|
4885
5097
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4886
5098
|
const message = createBaseMarketResponse();
|
|
4887
5099
|
while (reader.pos < end) {
|
|
@@ -4974,17 +5186,17 @@ var MarketResponse = {
|
|
|
4974
5186
|
},
|
|
4975
5187
|
fromJSON(object2) {
|
|
4976
5188
|
return {
|
|
4977
|
-
id:
|
|
4978
|
-
marketType:
|
|
4979
|
-
baseDenom:
|
|
4980
|
-
quoteDenom:
|
|
4981
|
-
escrowAddress:
|
|
4982
|
-
makerFeeRate:
|
|
4983
|
-
takerFeeRate:
|
|
4984
|
-
tickPrecision:
|
|
4985
|
-
lastPrice:
|
|
4986
|
-
lastMatchingHeight:
|
|
4987
|
-
halted:
|
|
5189
|
+
id: isSet18(object2.id) ? bytesFromBase645(object2.id) : new Uint8Array(0),
|
|
5190
|
+
marketType: isSet18(object2.marketType) ? marketTypeFromJSON(object2.marketType) : isSet18(object2.market_type) ? marketTypeFromJSON(object2.market_type) : 0,
|
|
5191
|
+
baseDenom: isSet18(object2.baseDenom) ? globalThis.String(object2.baseDenom) : isSet18(object2.base_denom) ? globalThis.String(object2.base_denom) : "",
|
|
5192
|
+
quoteDenom: isSet18(object2.quoteDenom) ? globalThis.String(object2.quoteDenom) : isSet18(object2.quote_denom) ? globalThis.String(object2.quote_denom) : "",
|
|
5193
|
+
escrowAddress: isSet18(object2.escrowAddress) ? globalThis.String(object2.escrowAddress) : isSet18(object2.escrow_address) ? globalThis.String(object2.escrow_address) : "",
|
|
5194
|
+
makerFeeRate: isSet18(object2.makerFeeRate) ? globalThis.String(object2.makerFeeRate) : isSet18(object2.maker_fee_rate) ? globalThis.String(object2.maker_fee_rate) : "",
|
|
5195
|
+
takerFeeRate: isSet18(object2.takerFeeRate) ? globalThis.String(object2.takerFeeRate) : isSet18(object2.taker_fee_rate) ? globalThis.String(object2.taker_fee_rate) : "",
|
|
5196
|
+
tickPrecision: isSet18(object2.tickPrecision) ? globalThis.Number(object2.tickPrecision) : isSet18(object2.tick_precision) ? globalThis.Number(object2.tick_precision) : 0,
|
|
5197
|
+
lastPrice: isSet18(object2.lastPrice) ? globalThis.String(object2.lastPrice) : isSet18(object2.last_price) ? globalThis.String(object2.last_price) : "",
|
|
5198
|
+
lastMatchingHeight: isSet18(object2.lastMatchingHeight) ? BigInt(object2.lastMatchingHeight) : isSet18(object2.last_matching_height) ? BigInt(object2.last_matching_height) : 0n,
|
|
5199
|
+
halted: isSet18(object2.halted) ? globalThis.Boolean(object2.halted) : false
|
|
4988
5200
|
};
|
|
4989
5201
|
},
|
|
4990
5202
|
toJSON(message) {
|
|
@@ -5066,17 +5278,17 @@ function base64FromBytes5(arr) {
|
|
|
5066
5278
|
return globalThis.btoa(bin.join(""));
|
|
5067
5279
|
}
|
|
5068
5280
|
}
|
|
5069
|
-
function
|
|
5281
|
+
function isSet18(value) {
|
|
5070
5282
|
return value !== null && value !== void 0;
|
|
5071
5283
|
}
|
|
5072
5284
|
|
|
5073
5285
|
// src/proto/gen/ault/market/v1/params.ts
|
|
5074
|
-
import { BinaryReader as
|
|
5075
|
-
function
|
|
5286
|
+
import { BinaryReader as BinaryReader20, BinaryWriter as BinaryWriter20 } from "@bufbuild/protobuf/wire";
|
|
5287
|
+
function createBaseParams5() {
|
|
5076
5288
|
return { fees: void 0, allowPermissionlessMarketCreation: false, allowedQuoteDenoms: [] };
|
|
5077
5289
|
}
|
|
5078
|
-
var
|
|
5079
|
-
encode(message, writer = new
|
|
5290
|
+
var Params6 = {
|
|
5291
|
+
encode(message, writer = new BinaryWriter20()) {
|
|
5080
5292
|
if (message.fees !== void 0) {
|
|
5081
5293
|
Fees.encode(message.fees, writer.uint32(10).fork()).join();
|
|
5082
5294
|
}
|
|
@@ -5089,9 +5301,9 @@ var Params5 = {
|
|
|
5089
5301
|
return writer;
|
|
5090
5302
|
},
|
|
5091
5303
|
decode(input, length) {
|
|
5092
|
-
const reader = input instanceof
|
|
5304
|
+
const reader = input instanceof BinaryReader20 ? input : new BinaryReader20(input);
|
|
5093
5305
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5094
|
-
const message =
|
|
5306
|
+
const message = createBaseParams5();
|
|
5095
5307
|
while (reader.pos < end) {
|
|
5096
5308
|
const tag = reader.uint32();
|
|
5097
5309
|
switch (tag >>> 3) {
|
|
@@ -5126,8 +5338,8 @@ var Params5 = {
|
|
|
5126
5338
|
},
|
|
5127
5339
|
fromJSON(object2) {
|
|
5128
5340
|
return {
|
|
5129
|
-
fees:
|
|
5130
|
-
allowPermissionlessMarketCreation:
|
|
5341
|
+
fees: isSet19(object2.fees) ? Fees.fromJSON(object2.fees) : void 0,
|
|
5342
|
+
allowPermissionlessMarketCreation: isSet19(object2.allowPermissionlessMarketCreation) ? globalThis.Boolean(object2.allowPermissionlessMarketCreation) : isSet19(object2.allow_permissionless_market_creation) ? globalThis.Boolean(object2.allow_permissionless_market_creation) : false,
|
|
5131
5343
|
allowedQuoteDenoms: globalThis.Array.isArray(object2?.allowedQuoteDenoms) ? object2.allowedQuoteDenoms.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object2?.allowed_quote_denoms) ? object2.allowed_quote_denoms.map((e) => globalThis.String(e)) : []
|
|
5132
5344
|
};
|
|
5133
5345
|
},
|
|
@@ -5145,10 +5357,10 @@ var Params5 = {
|
|
|
5145
5357
|
return obj;
|
|
5146
5358
|
},
|
|
5147
5359
|
create(base) {
|
|
5148
|
-
return
|
|
5360
|
+
return Params6.fromPartial(base ?? {});
|
|
5149
5361
|
},
|
|
5150
5362
|
fromPartial(object2) {
|
|
5151
|
-
const message =
|
|
5363
|
+
const message = createBaseParams5();
|
|
5152
5364
|
message.fees = object2.fees !== void 0 && object2.fees !== null ? Fees.fromPartial(object2.fees) : void 0;
|
|
5153
5365
|
message.allowPermissionlessMarketCreation = object2.allowPermissionlessMarketCreation ?? false;
|
|
5154
5366
|
message.allowedQuoteDenoms = object2.allowedQuoteDenoms?.map((e) => e) || [];
|
|
@@ -5164,7 +5376,7 @@ function createBaseFees() {
|
|
|
5164
5376
|
};
|
|
5165
5377
|
}
|
|
5166
5378
|
var Fees = {
|
|
5167
|
-
encode(message, writer = new
|
|
5379
|
+
encode(message, writer = new BinaryWriter20()) {
|
|
5168
5380
|
if (message.maxMakerFeeRate !== "") {
|
|
5169
5381
|
writer.uint32(10).string(message.maxMakerFeeRate);
|
|
5170
5382
|
}
|
|
@@ -5180,7 +5392,7 @@ var Fees = {
|
|
|
5180
5392
|
return writer;
|
|
5181
5393
|
},
|
|
5182
5394
|
decode(input, length) {
|
|
5183
|
-
const reader = input instanceof
|
|
5395
|
+
const reader = input instanceof BinaryReader20 ? input : new BinaryReader20(input);
|
|
5184
5396
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5185
5397
|
const message = createBaseFees();
|
|
5186
5398
|
while (reader.pos < end) {
|
|
@@ -5224,10 +5436,10 @@ var Fees = {
|
|
|
5224
5436
|
},
|
|
5225
5437
|
fromJSON(object2) {
|
|
5226
5438
|
return {
|
|
5227
|
-
maxMakerFeeRate:
|
|
5228
|
-
maxTakerFeeRate:
|
|
5229
|
-
defaultMakerFeeRate:
|
|
5230
|
-
defaultTakerFeeRate:
|
|
5439
|
+
maxMakerFeeRate: isSet19(object2.maxMakerFeeRate) ? globalThis.String(object2.maxMakerFeeRate) : isSet19(object2.max_maker_fee_rate) ? globalThis.String(object2.max_maker_fee_rate) : "",
|
|
5440
|
+
maxTakerFeeRate: isSet19(object2.maxTakerFeeRate) ? globalThis.String(object2.maxTakerFeeRate) : isSet19(object2.max_taker_fee_rate) ? globalThis.String(object2.max_taker_fee_rate) : "",
|
|
5441
|
+
defaultMakerFeeRate: isSet19(object2.defaultMakerFeeRate) ? globalThis.String(object2.defaultMakerFeeRate) : isSet19(object2.default_maker_fee_rate) ? globalThis.String(object2.default_maker_fee_rate) : "",
|
|
5442
|
+
defaultTakerFeeRate: isSet19(object2.defaultTakerFeeRate) ? globalThis.String(object2.defaultTakerFeeRate) : isSet19(object2.default_taker_fee_rate) ? globalThis.String(object2.default_taker_fee_rate) : ""
|
|
5231
5443
|
};
|
|
5232
5444
|
},
|
|
5233
5445
|
toJSON(message) {
|
|
@@ -5258,25 +5470,25 @@ var Fees = {
|
|
|
5258
5470
|
return message;
|
|
5259
5471
|
}
|
|
5260
5472
|
};
|
|
5261
|
-
function
|
|
5473
|
+
function isSet19(value) {
|
|
5262
5474
|
return value !== null && value !== void 0;
|
|
5263
5475
|
}
|
|
5264
5476
|
|
|
5265
5477
|
// src/proto/gen/ault/market/v1/query.ts
|
|
5266
|
-
function
|
|
5478
|
+
function createBaseQueryParamsResponse5() {
|
|
5267
5479
|
return { params: void 0 };
|
|
5268
5480
|
}
|
|
5269
|
-
var
|
|
5270
|
-
encode(message, writer = new
|
|
5481
|
+
var QueryParamsResponse5 = {
|
|
5482
|
+
encode(message, writer = new BinaryWriter21()) {
|
|
5271
5483
|
if (message.params !== void 0) {
|
|
5272
|
-
|
|
5484
|
+
Params6.encode(message.params, writer.uint32(10).fork()).join();
|
|
5273
5485
|
}
|
|
5274
5486
|
return writer;
|
|
5275
5487
|
},
|
|
5276
5488
|
decode(input, length) {
|
|
5277
|
-
const reader = input instanceof
|
|
5489
|
+
const reader = input instanceof BinaryReader21 ? input : new BinaryReader21(input);
|
|
5278
5490
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5279
|
-
const message =
|
|
5491
|
+
const message = createBaseQueryParamsResponse5();
|
|
5280
5492
|
while (reader.pos < end) {
|
|
5281
5493
|
const tag = reader.uint32();
|
|
5282
5494
|
switch (tag >>> 3) {
|
|
@@ -5284,7 +5496,7 @@ var QueryParamsResponse4 = {
|
|
|
5284
5496
|
if (tag !== 10) {
|
|
5285
5497
|
break;
|
|
5286
5498
|
}
|
|
5287
|
-
message.params =
|
|
5499
|
+
message.params = Params6.decode(reader, reader.uint32());
|
|
5288
5500
|
continue;
|
|
5289
5501
|
}
|
|
5290
5502
|
}
|
|
@@ -5296,21 +5508,21 @@ var QueryParamsResponse4 = {
|
|
|
5296
5508
|
return message;
|
|
5297
5509
|
},
|
|
5298
5510
|
fromJSON(object2) {
|
|
5299
|
-
return { params:
|
|
5511
|
+
return { params: isSet20(object2.params) ? Params6.fromJSON(object2.params) : void 0 };
|
|
5300
5512
|
},
|
|
5301
5513
|
toJSON(message) {
|
|
5302
5514
|
const obj = {};
|
|
5303
5515
|
if (message.params !== void 0) {
|
|
5304
|
-
obj.params =
|
|
5516
|
+
obj.params = Params6.toJSON(message.params);
|
|
5305
5517
|
}
|
|
5306
5518
|
return obj;
|
|
5307
5519
|
},
|
|
5308
5520
|
create(base) {
|
|
5309
|
-
return
|
|
5521
|
+
return QueryParamsResponse5.fromPartial(base ?? {});
|
|
5310
5522
|
},
|
|
5311
5523
|
fromPartial(object2) {
|
|
5312
|
-
const message =
|
|
5313
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
5524
|
+
const message = createBaseQueryParamsResponse5();
|
|
5525
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params6.fromPartial(object2.params) : void 0;
|
|
5314
5526
|
return message;
|
|
5315
5527
|
}
|
|
5316
5528
|
};
|
|
@@ -5318,7 +5530,7 @@ function createBaseQueryMarketsResponse() {
|
|
|
5318
5530
|
return { markets: [], pagination: void 0 };
|
|
5319
5531
|
}
|
|
5320
5532
|
var QueryMarketsResponse = {
|
|
5321
|
-
encode(message, writer = new
|
|
5533
|
+
encode(message, writer = new BinaryWriter21()) {
|
|
5322
5534
|
for (const v of message.markets) {
|
|
5323
5535
|
MarketResponse.encode(v, writer.uint32(10).fork()).join();
|
|
5324
5536
|
}
|
|
@@ -5328,7 +5540,7 @@ var QueryMarketsResponse = {
|
|
|
5328
5540
|
return writer;
|
|
5329
5541
|
},
|
|
5330
5542
|
decode(input, length) {
|
|
5331
|
-
const reader = input instanceof
|
|
5543
|
+
const reader = input instanceof BinaryReader21 ? input : new BinaryReader21(input);
|
|
5332
5544
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5333
5545
|
const message = createBaseQueryMarketsResponse();
|
|
5334
5546
|
while (reader.pos < end) {
|
|
@@ -5359,7 +5571,7 @@ var QueryMarketsResponse = {
|
|
|
5359
5571
|
fromJSON(object2) {
|
|
5360
5572
|
return {
|
|
5361
5573
|
markets: globalThis.Array.isArray(object2?.markets) ? object2.markets.map((e) => MarketResponse.fromJSON(e)) : [],
|
|
5362
|
-
pagination:
|
|
5574
|
+
pagination: isSet20(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
5363
5575
|
};
|
|
5364
5576
|
},
|
|
5365
5577
|
toJSON(message) {
|
|
@@ -5386,14 +5598,14 @@ function createBaseQueryMarketResponse() {
|
|
|
5386
5598
|
return { market: void 0 };
|
|
5387
5599
|
}
|
|
5388
5600
|
var QueryMarketResponse = {
|
|
5389
|
-
encode(message, writer = new
|
|
5601
|
+
encode(message, writer = new BinaryWriter21()) {
|
|
5390
5602
|
if (message.market !== void 0) {
|
|
5391
5603
|
MarketResponse.encode(message.market, writer.uint32(10).fork()).join();
|
|
5392
5604
|
}
|
|
5393
5605
|
return writer;
|
|
5394
5606
|
},
|
|
5395
5607
|
decode(input, length) {
|
|
5396
|
-
const reader = input instanceof
|
|
5608
|
+
const reader = input instanceof BinaryReader21 ? input : new BinaryReader21(input);
|
|
5397
5609
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5398
5610
|
const message = createBaseQueryMarketResponse();
|
|
5399
5611
|
while (reader.pos < end) {
|
|
@@ -5415,7 +5627,7 @@ var QueryMarketResponse = {
|
|
|
5415
5627
|
return message;
|
|
5416
5628
|
},
|
|
5417
5629
|
fromJSON(object2) {
|
|
5418
|
-
return { market:
|
|
5630
|
+
return { market: isSet20(object2.market) ? MarketResponse.fromJSON(object2.market) : void 0 };
|
|
5419
5631
|
},
|
|
5420
5632
|
toJSON(message) {
|
|
5421
5633
|
const obj = {};
|
|
@@ -5433,7 +5645,7 @@ var QueryMarketResponse = {
|
|
|
5433
5645
|
return message;
|
|
5434
5646
|
}
|
|
5435
5647
|
};
|
|
5436
|
-
function
|
|
5648
|
+
function isSet20(value) {
|
|
5437
5649
|
return value !== null && value !== void 0;
|
|
5438
5650
|
}
|
|
5439
5651
|
|
|
@@ -5444,7 +5656,7 @@ function normalizeMarketId2(marketId) {
|
|
|
5444
5656
|
function createMarketApi(context) {
|
|
5445
5657
|
return {
|
|
5446
5658
|
async getParams() {
|
|
5447
|
-
return fetchProtoJson(context, "/ault/market/v1/params",
|
|
5659
|
+
return fetchProtoJson(context, "/ault/market/v1/params", QueryParamsResponse5);
|
|
5448
5660
|
},
|
|
5449
5661
|
async getMarkets(params = {}) {
|
|
5450
5662
|
const query = buildQuery({ ...params.pagination });
|
|
@@ -5461,10 +5673,10 @@ function createMarketApi(context) {
|
|
|
5461
5673
|
}
|
|
5462
5674
|
|
|
5463
5675
|
// src/proto/gen/ault/miner/v1/query.ts
|
|
5464
|
-
import { BinaryReader as
|
|
5676
|
+
import { BinaryReader as BinaryReader23, BinaryWriter as BinaryWriter23 } from "@bufbuild/protobuf/wire";
|
|
5465
5677
|
|
|
5466
5678
|
// src/proto/gen/ault/miner/v1/miner.ts
|
|
5467
|
-
import { BinaryReader as
|
|
5679
|
+
import { BinaryReader as BinaryReader22, BinaryWriter as BinaryWriter22 } from "@bufbuild/protobuf/wire";
|
|
5468
5680
|
function createBaseEpochInfo() {
|
|
5469
5681
|
return {
|
|
5470
5682
|
epoch: 0n,
|
|
@@ -5475,7 +5687,7 @@ function createBaseEpochInfo() {
|
|
|
5475
5687
|
};
|
|
5476
5688
|
}
|
|
5477
5689
|
var EpochInfo = {
|
|
5478
|
-
encode(message, writer = new
|
|
5690
|
+
encode(message, writer = new BinaryWriter22()) {
|
|
5479
5691
|
if (message.epoch !== 0n) {
|
|
5480
5692
|
if (BigInt.asUintN(64, message.epoch) !== message.epoch) {
|
|
5481
5693
|
throw new globalThis.Error(
|
|
@@ -5499,7 +5711,7 @@ var EpochInfo = {
|
|
|
5499
5711
|
return writer;
|
|
5500
5712
|
},
|
|
5501
5713
|
decode(input, length) {
|
|
5502
|
-
const reader = input instanceof
|
|
5714
|
+
const reader = input instanceof BinaryReader22 ? input : new BinaryReader22(input);
|
|
5503
5715
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5504
5716
|
const message = createBaseEpochInfo();
|
|
5505
5717
|
while (reader.pos < end) {
|
|
@@ -5550,11 +5762,11 @@ var EpochInfo = {
|
|
|
5550
5762
|
},
|
|
5551
5763
|
fromJSON(object2) {
|
|
5552
5764
|
return {
|
|
5553
|
-
epoch:
|
|
5554
|
-
seed:
|
|
5555
|
-
threshold:
|
|
5556
|
-
beaconR:
|
|
5557
|
-
finalized:
|
|
5765
|
+
epoch: isSet21(object2.epoch) ? BigInt(object2.epoch) : 0n,
|
|
5766
|
+
seed: isSet21(object2.seed) ? bytesFromBase646(object2.seed) : new Uint8Array(0),
|
|
5767
|
+
threshold: isSet21(object2.threshold) ? bytesFromBase646(object2.threshold) : new Uint8Array(0),
|
|
5768
|
+
beaconR: isSet21(object2.beaconR) ? bytesFromBase646(object2.beaconR) : isSet21(object2.beacon_r) ? bytesFromBase646(object2.beacon_r) : new Uint8Array(0),
|
|
5769
|
+
finalized: isSet21(object2.finalized) ? globalThis.Boolean(object2.finalized) : false
|
|
5558
5770
|
};
|
|
5559
5771
|
},
|
|
5560
5772
|
toJSON(message) {
|
|
@@ -5593,7 +5805,7 @@ function createBaseOperatorInfo() {
|
|
|
5593
5805
|
return { operator: "", commissionRate: 0, commissionRecipient: "", lastUpdateEpoch: 0n };
|
|
5594
5806
|
}
|
|
5595
5807
|
var OperatorInfo = {
|
|
5596
|
-
encode(message, writer = new
|
|
5808
|
+
encode(message, writer = new BinaryWriter22()) {
|
|
5597
5809
|
if (message.operator !== "") {
|
|
5598
5810
|
writer.uint32(10).string(message.operator);
|
|
5599
5811
|
}
|
|
@@ -5614,7 +5826,7 @@ var OperatorInfo = {
|
|
|
5614
5826
|
return writer;
|
|
5615
5827
|
},
|
|
5616
5828
|
decode(input, length) {
|
|
5617
|
-
const reader = input instanceof
|
|
5829
|
+
const reader = input instanceof BinaryReader22 ? input : new BinaryReader22(input);
|
|
5618
5830
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5619
5831
|
const message = createBaseOperatorInfo();
|
|
5620
5832
|
while (reader.pos < end) {
|
|
@@ -5658,10 +5870,10 @@ var OperatorInfo = {
|
|
|
5658
5870
|
},
|
|
5659
5871
|
fromJSON(object2) {
|
|
5660
5872
|
return {
|
|
5661
|
-
operator:
|
|
5662
|
-
commissionRate:
|
|
5663
|
-
commissionRecipient:
|
|
5664
|
-
lastUpdateEpoch:
|
|
5873
|
+
operator: isSet21(object2.operator) ? globalThis.String(object2.operator) : "",
|
|
5874
|
+
commissionRate: isSet21(object2.commissionRate) ? globalThis.Number(object2.commissionRate) : isSet21(object2.commission_rate) ? globalThis.Number(object2.commission_rate) : 0,
|
|
5875
|
+
commissionRecipient: isSet21(object2.commissionRecipient) ? globalThis.String(object2.commissionRecipient) : isSet21(object2.commission_recipient) ? globalThis.String(object2.commission_recipient) : "",
|
|
5876
|
+
lastUpdateEpoch: isSet21(object2.lastUpdateEpoch) ? BigInt(object2.lastUpdateEpoch) : isSet21(object2.last_update_epoch) ? BigInt(object2.last_update_epoch) : 0n
|
|
5665
5877
|
};
|
|
5666
5878
|
},
|
|
5667
5879
|
toJSON(message) {
|
|
@@ -5696,7 +5908,7 @@ function createBaseMiningDelegation() {
|
|
|
5696
5908
|
return { licenseId: 0n, operator: "" };
|
|
5697
5909
|
}
|
|
5698
5910
|
var MiningDelegation = {
|
|
5699
|
-
encode(message, writer = new
|
|
5911
|
+
encode(message, writer = new BinaryWriter22()) {
|
|
5700
5912
|
if (message.licenseId !== 0n) {
|
|
5701
5913
|
if (BigInt.asUintN(64, message.licenseId) !== message.licenseId) {
|
|
5702
5914
|
throw new globalThis.Error(
|
|
@@ -5711,7 +5923,7 @@ var MiningDelegation = {
|
|
|
5711
5923
|
return writer;
|
|
5712
5924
|
},
|
|
5713
5925
|
decode(input, length) {
|
|
5714
|
-
const reader = input instanceof
|
|
5926
|
+
const reader = input instanceof BinaryReader22 ? input : new BinaryReader22(input);
|
|
5715
5927
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5716
5928
|
const message = createBaseMiningDelegation();
|
|
5717
5929
|
while (reader.pos < end) {
|
|
@@ -5741,8 +5953,8 @@ var MiningDelegation = {
|
|
|
5741
5953
|
},
|
|
5742
5954
|
fromJSON(object2) {
|
|
5743
5955
|
return {
|
|
5744
|
-
licenseId:
|
|
5745
|
-
operator:
|
|
5956
|
+
licenseId: isSet21(object2.licenseId) ? BigInt(object2.licenseId) : isSet21(object2.license_id) ? BigInt(object2.license_id) : 0n,
|
|
5957
|
+
operator: isSet21(object2.operator) ? globalThis.String(object2.operator) : ""
|
|
5746
5958
|
};
|
|
5747
5959
|
},
|
|
5748
5960
|
toJSON(message) {
|
|
@@ -5765,7 +5977,7 @@ var MiningDelegation = {
|
|
|
5765
5977
|
return message;
|
|
5766
5978
|
}
|
|
5767
5979
|
};
|
|
5768
|
-
function
|
|
5980
|
+
function createBaseParams6() {
|
|
5769
5981
|
return {
|
|
5770
5982
|
epochLengthSeconds: 0n,
|
|
5771
5983
|
targetWinnersPerEpoch: 0,
|
|
@@ -5793,8 +6005,8 @@ function createBaseParams5() {
|
|
|
5793
6005
|
maxFreeTxPerEpoch: 0
|
|
5794
6006
|
};
|
|
5795
6007
|
}
|
|
5796
|
-
var
|
|
5797
|
-
encode(message, writer = new
|
|
6008
|
+
var Params7 = {
|
|
6009
|
+
encode(message, writer = new BinaryWriter22()) {
|
|
5798
6010
|
if (message.epochLengthSeconds !== 0n) {
|
|
5799
6011
|
if (BigInt.asUintN(64, message.epochLengthSeconds) !== message.epochLengthSeconds) {
|
|
5800
6012
|
throw new globalThis.Error(
|
|
@@ -5895,9 +6107,9 @@ var Params6 = {
|
|
|
5895
6107
|
return writer;
|
|
5896
6108
|
},
|
|
5897
6109
|
decode(input, length) {
|
|
5898
|
-
const reader = input instanceof
|
|
6110
|
+
const reader = input instanceof BinaryReader22 ? input : new BinaryReader22(input);
|
|
5899
6111
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5900
|
-
const message =
|
|
6112
|
+
const message = createBaseParams6();
|
|
5901
6113
|
while (reader.pos < end) {
|
|
5902
6114
|
const tag = reader.uint32();
|
|
5903
6115
|
switch (tag >>> 3) {
|
|
@@ -6079,30 +6291,30 @@ var Params6 = {
|
|
|
6079
6291
|
},
|
|
6080
6292
|
fromJSON(object2) {
|
|
6081
6293
|
return {
|
|
6082
|
-
epochLengthSeconds:
|
|
6083
|
-
targetWinnersPerEpoch:
|
|
6084
|
-
maxWinnersPerEpoch:
|
|
6085
|
-
submissionWindowSeconds:
|
|
6086
|
-
controllerAlphaQ16:
|
|
6087
|
-
controllerWindow:
|
|
6088
|
-
thresholdMin:
|
|
6089
|
-
thresholdMax:
|
|
6090
|
-
beaconWindowEpochs:
|
|
6091
|
-
keyRotationCooldownSeconds:
|
|
6092
|
-
vrfVerifyGas:
|
|
6093
|
-
minKeyAgeEpochs:
|
|
6094
|
-
initialEmissionPerEpoch:
|
|
6095
|
-
emissionDecayRate:
|
|
6096
|
-
maxEmissionYears:
|
|
6097
|
-
maxPayoutsPerBlock:
|
|
6098
|
-
maxEpochsPerBlock:
|
|
6099
|
-
stakingRewardPercentage:
|
|
6100
|
-
maxCommissionRate:
|
|
6101
|
-
maxCommissionRateIncreasePerEpoch:
|
|
6102
|
-
freeMiningUntilEpoch:
|
|
6103
|
-
freeMiningMaxGasLimit:
|
|
6294
|
+
epochLengthSeconds: isSet21(object2.epochLengthSeconds) ? BigInt(object2.epochLengthSeconds) : isSet21(object2.epoch_length_seconds) ? BigInt(object2.epoch_length_seconds) : 0n,
|
|
6295
|
+
targetWinnersPerEpoch: isSet21(object2.targetWinnersPerEpoch) ? globalThis.Number(object2.targetWinnersPerEpoch) : isSet21(object2.target_winners_per_epoch) ? globalThis.Number(object2.target_winners_per_epoch) : 0,
|
|
6296
|
+
maxWinnersPerEpoch: isSet21(object2.maxWinnersPerEpoch) ? globalThis.Number(object2.maxWinnersPerEpoch) : isSet21(object2.max_winners_per_epoch) ? globalThis.Number(object2.max_winners_per_epoch) : 0,
|
|
6297
|
+
submissionWindowSeconds: isSet21(object2.submissionWindowSeconds) ? globalThis.Number(object2.submissionWindowSeconds) : isSet21(object2.submission_window_seconds) ? globalThis.Number(object2.submission_window_seconds) : 0,
|
|
6298
|
+
controllerAlphaQ16: isSet21(object2.controllerAlphaQ16) ? globalThis.Number(object2.controllerAlphaQ16) : isSet21(object2.controller_alpha_q16) ? globalThis.Number(object2.controller_alpha_q16) : 0,
|
|
6299
|
+
controllerWindow: isSet21(object2.controllerWindow) ? globalThis.Number(object2.controllerWindow) : isSet21(object2.controller_window) ? globalThis.Number(object2.controller_window) : 0,
|
|
6300
|
+
thresholdMin: isSet21(object2.thresholdMin) ? globalThis.String(object2.thresholdMin) : isSet21(object2.threshold_min) ? globalThis.String(object2.threshold_min) : "",
|
|
6301
|
+
thresholdMax: isSet21(object2.thresholdMax) ? globalThis.String(object2.thresholdMax) : isSet21(object2.threshold_max) ? globalThis.String(object2.threshold_max) : "",
|
|
6302
|
+
beaconWindowEpochs: isSet21(object2.beaconWindowEpochs) ? globalThis.Number(object2.beaconWindowEpochs) : isSet21(object2.beacon_window_epochs) ? globalThis.Number(object2.beacon_window_epochs) : 0,
|
|
6303
|
+
keyRotationCooldownSeconds: isSet21(object2.keyRotationCooldownSeconds) ? BigInt(object2.keyRotationCooldownSeconds) : isSet21(object2.key_rotation_cooldown_seconds) ? BigInt(object2.key_rotation_cooldown_seconds) : 0n,
|
|
6304
|
+
vrfVerifyGas: isSet21(object2.vrfVerifyGas) ? globalThis.Number(object2.vrfVerifyGas) : isSet21(object2.vrf_verify_gas) ? globalThis.Number(object2.vrf_verify_gas) : 0,
|
|
6305
|
+
minKeyAgeEpochs: isSet21(object2.minKeyAgeEpochs) ? globalThis.Number(object2.minKeyAgeEpochs) : isSet21(object2.min_key_age_epochs) ? globalThis.Number(object2.min_key_age_epochs) : 0,
|
|
6306
|
+
initialEmissionPerEpoch: isSet21(object2.initialEmissionPerEpoch) ? globalThis.String(object2.initialEmissionPerEpoch) : isSet21(object2.initial_emission_per_epoch) ? globalThis.String(object2.initial_emission_per_epoch) : "",
|
|
6307
|
+
emissionDecayRate: isSet21(object2.emissionDecayRate) ? globalThis.String(object2.emissionDecayRate) : isSet21(object2.emission_decay_rate) ? globalThis.String(object2.emission_decay_rate) : "",
|
|
6308
|
+
maxEmissionYears: isSet21(object2.maxEmissionYears) ? globalThis.Number(object2.maxEmissionYears) : isSet21(object2.max_emission_years) ? globalThis.Number(object2.max_emission_years) : 0,
|
|
6309
|
+
maxPayoutsPerBlock: isSet21(object2.maxPayoutsPerBlock) ? globalThis.Number(object2.maxPayoutsPerBlock) : isSet21(object2.max_payouts_per_block) ? globalThis.Number(object2.max_payouts_per_block) : 0,
|
|
6310
|
+
maxEpochsPerBlock: isSet21(object2.maxEpochsPerBlock) ? BigInt(object2.maxEpochsPerBlock) : isSet21(object2.max_epochs_per_block) ? BigInt(object2.max_epochs_per_block) : 0n,
|
|
6311
|
+
stakingRewardPercentage: isSet21(object2.stakingRewardPercentage) ? globalThis.Number(object2.stakingRewardPercentage) : isSet21(object2.staking_reward_percentage) ? globalThis.Number(object2.staking_reward_percentage) : 0,
|
|
6312
|
+
maxCommissionRate: isSet21(object2.maxCommissionRate) ? globalThis.Number(object2.maxCommissionRate) : isSet21(object2.max_commission_rate) ? globalThis.Number(object2.max_commission_rate) : 0,
|
|
6313
|
+
maxCommissionRateIncreasePerEpoch: isSet21(object2.maxCommissionRateIncreasePerEpoch) ? globalThis.Number(object2.maxCommissionRateIncreasePerEpoch) : isSet21(object2.max_commission_rate_increase_per_epoch) ? globalThis.Number(object2.max_commission_rate_increase_per_epoch) : 0,
|
|
6314
|
+
freeMiningUntilEpoch: isSet21(object2.freeMiningUntilEpoch) ? BigInt(object2.freeMiningUntilEpoch) : isSet21(object2.free_mining_until_epoch) ? BigInt(object2.free_mining_until_epoch) : 0n,
|
|
6315
|
+
freeMiningMaxGasLimit: isSet21(object2.freeMiningMaxGasLimit) ? BigInt(object2.freeMiningMaxGasLimit) : isSet21(object2.free_mining_max_gas_limit) ? BigInt(object2.free_mining_max_gas_limit) : 0n,
|
|
6104
6316
|
minerAllowedMsgs: globalThis.Array.isArray(object2?.minerAllowedMsgs) ? object2.minerAllowedMsgs.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object2?.miner_allowed_msgs) ? object2.miner_allowed_msgs.map((e) => globalThis.String(e)) : [],
|
|
6105
|
-
maxFreeTxPerEpoch:
|
|
6317
|
+
maxFreeTxPerEpoch: isSet21(object2.maxFreeTxPerEpoch) ? globalThis.Number(object2.maxFreeTxPerEpoch) : isSet21(object2.max_free_tx_per_epoch) ? globalThis.Number(object2.max_free_tx_per_epoch) : 0
|
|
6106
6318
|
};
|
|
6107
6319
|
},
|
|
6108
6320
|
toJSON(message) {
|
|
@@ -6182,10 +6394,10 @@ var Params6 = {
|
|
|
6182
6394
|
return obj;
|
|
6183
6395
|
},
|
|
6184
6396
|
create(base) {
|
|
6185
|
-
return
|
|
6397
|
+
return Params7.fromPartial(base ?? {});
|
|
6186
6398
|
},
|
|
6187
6399
|
fromPartial(object2) {
|
|
6188
|
-
const message =
|
|
6400
|
+
const message = createBaseParams6();
|
|
6189
6401
|
message.epochLengthSeconds = object2.epochLengthSeconds ?? 0n;
|
|
6190
6402
|
message.targetWinnersPerEpoch = object2.targetWinnersPerEpoch ?? 0;
|
|
6191
6403
|
message.maxWinnersPerEpoch = object2.maxWinnersPerEpoch ?? 0;
|
|
@@ -6236,7 +6448,7 @@ function base64FromBytes6(arr) {
|
|
|
6236
6448
|
return globalThis.btoa(bin.join(""));
|
|
6237
6449
|
}
|
|
6238
6450
|
}
|
|
6239
|
-
function
|
|
6451
|
+
function isSet21(value) {
|
|
6240
6452
|
return value !== null && value !== void 0;
|
|
6241
6453
|
}
|
|
6242
6454
|
|
|
@@ -6245,7 +6457,7 @@ function createBaseQueryEpochResponse() {
|
|
|
6245
6457
|
return { epoch: 0n, seed: new Uint8Array(0), threshold: new Uint8Array(0) };
|
|
6246
6458
|
}
|
|
6247
6459
|
var QueryEpochResponse = {
|
|
6248
|
-
encode(message, writer = new
|
|
6460
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
6249
6461
|
if (message.epoch !== 0n) {
|
|
6250
6462
|
if (BigInt.asUintN(64, message.epoch) !== message.epoch) {
|
|
6251
6463
|
throw new globalThis.Error(
|
|
@@ -6263,7 +6475,7 @@ var QueryEpochResponse = {
|
|
|
6263
6475
|
return writer;
|
|
6264
6476
|
},
|
|
6265
6477
|
decode(input, length) {
|
|
6266
|
-
const reader = input instanceof
|
|
6478
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
6267
6479
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6268
6480
|
const message = createBaseQueryEpochResponse();
|
|
6269
6481
|
while (reader.pos < end) {
|
|
@@ -6300,9 +6512,9 @@ var QueryEpochResponse = {
|
|
|
6300
6512
|
},
|
|
6301
6513
|
fromJSON(object2) {
|
|
6302
6514
|
return {
|
|
6303
|
-
epoch:
|
|
6304
|
-
seed:
|
|
6305
|
-
threshold:
|
|
6515
|
+
epoch: isSet22(object2.epoch) ? BigInt(object2.epoch) : 0n,
|
|
6516
|
+
seed: isSet22(object2.seed) ? bytesFromBase647(object2.seed) : new Uint8Array(0),
|
|
6517
|
+
threshold: isSet22(object2.threshold) ? bytesFromBase647(object2.threshold) : new Uint8Array(0)
|
|
6306
6518
|
};
|
|
6307
6519
|
},
|
|
6308
6520
|
toJSON(message) {
|
|
@@ -6341,7 +6553,7 @@ function createBaseQueryLicenseMinerInfoResponse() {
|
|
|
6341
6553
|
};
|
|
6342
6554
|
}
|
|
6343
6555
|
var QueryLicenseMinerInfoResponse = {
|
|
6344
|
-
encode(message, writer = new
|
|
6556
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
6345
6557
|
if (message.vrfPubkey.length !== 0) {
|
|
6346
6558
|
writer.uint32(10).bytes(message.vrfPubkey);
|
|
6347
6559
|
}
|
|
@@ -6376,7 +6588,7 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6376
6588
|
return writer;
|
|
6377
6589
|
},
|
|
6378
6590
|
decode(input, length) {
|
|
6379
|
-
const reader = input instanceof
|
|
6591
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
6380
6592
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6381
6593
|
const message = createBaseQueryLicenseMinerInfoResponse();
|
|
6382
6594
|
while (reader.pos < end) {
|
|
@@ -6441,13 +6653,13 @@ var QueryLicenseMinerInfoResponse = {
|
|
|
6441
6653
|
},
|
|
6442
6654
|
fromJSON(object2) {
|
|
6443
6655
|
return {
|
|
6444
|
-
vrfPubkey:
|
|
6445
|
-
lastSubmitEpoch:
|
|
6446
|
-
eligibleNow:
|
|
6447
|
-
quarantinedLocal:
|
|
6448
|
-
quarantinedSource:
|
|
6449
|
-
allTimeCredits:
|
|
6450
|
-
allTimePayouts:
|
|
6656
|
+
vrfPubkey: isSet22(object2.vrfPubkey) ? bytesFromBase647(object2.vrfPubkey) : isSet22(object2.vrf_pubkey) ? bytesFromBase647(object2.vrf_pubkey) : new Uint8Array(0),
|
|
6657
|
+
lastSubmitEpoch: isSet22(object2.lastSubmitEpoch) ? BigInt(object2.lastSubmitEpoch) : isSet22(object2.last_submit_epoch) ? BigInt(object2.last_submit_epoch) : 0n,
|
|
6658
|
+
eligibleNow: isSet22(object2.eligibleNow) ? globalThis.Boolean(object2.eligibleNow) : isSet22(object2.eligible_now) ? globalThis.Boolean(object2.eligible_now) : false,
|
|
6659
|
+
quarantinedLocal: isSet22(object2.quarantinedLocal) ? globalThis.Boolean(object2.quarantinedLocal) : isSet22(object2.quarantined_local) ? globalThis.Boolean(object2.quarantined_local) : false,
|
|
6660
|
+
quarantinedSource: isSet22(object2.quarantinedSource) ? globalThis.Boolean(object2.quarantinedSource) : isSet22(object2.quarantined_source) ? globalThis.Boolean(object2.quarantined_source) : false,
|
|
6661
|
+
allTimeCredits: isSet22(object2.allTimeCredits) ? BigInt(object2.allTimeCredits) : isSet22(object2.all_time_credits) ? BigInt(object2.all_time_credits) : 0n,
|
|
6662
|
+
allTimePayouts: isSet22(object2.allTimePayouts) ? globalThis.String(object2.allTimePayouts) : isSet22(object2.all_time_payouts) ? globalThis.String(object2.all_time_payouts) : ""
|
|
6451
6663
|
};
|
|
6452
6664
|
},
|
|
6453
6665
|
toJSON(message) {
|
|
@@ -6494,7 +6706,7 @@ function createBaseQueryBeaconResponse() {
|
|
|
6494
6706
|
return { r: new Uint8Array(0), finalized: false };
|
|
6495
6707
|
}
|
|
6496
6708
|
var QueryBeaconResponse = {
|
|
6497
|
-
encode(message, writer = new
|
|
6709
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
6498
6710
|
if (message.r.length !== 0) {
|
|
6499
6711
|
writer.uint32(10).bytes(message.r);
|
|
6500
6712
|
}
|
|
@@ -6504,7 +6716,7 @@ var QueryBeaconResponse = {
|
|
|
6504
6716
|
return writer;
|
|
6505
6717
|
},
|
|
6506
6718
|
decode(input, length) {
|
|
6507
|
-
const reader = input instanceof
|
|
6719
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
6508
6720
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6509
6721
|
const message = createBaseQueryBeaconResponse();
|
|
6510
6722
|
while (reader.pos < end) {
|
|
@@ -6534,8 +6746,8 @@ var QueryBeaconResponse = {
|
|
|
6534
6746
|
},
|
|
6535
6747
|
fromJSON(object2) {
|
|
6536
6748
|
return {
|
|
6537
|
-
r:
|
|
6538
|
-
finalized:
|
|
6749
|
+
r: isSet22(object2.r) ? bytesFromBase647(object2.r) : new Uint8Array(0),
|
|
6750
|
+
finalized: isSet22(object2.finalized) ? globalThis.Boolean(object2.finalized) : false
|
|
6539
6751
|
};
|
|
6540
6752
|
},
|
|
6541
6753
|
toJSON(message) {
|
|
@@ -6558,20 +6770,20 @@ var QueryBeaconResponse = {
|
|
|
6558
6770
|
return message;
|
|
6559
6771
|
}
|
|
6560
6772
|
};
|
|
6561
|
-
function
|
|
6773
|
+
function createBaseQueryParamsResponse6() {
|
|
6562
6774
|
return { params: void 0 };
|
|
6563
6775
|
}
|
|
6564
|
-
var
|
|
6565
|
-
encode(message, writer = new
|
|
6776
|
+
var QueryParamsResponse6 = {
|
|
6777
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
6566
6778
|
if (message.params !== void 0) {
|
|
6567
|
-
|
|
6779
|
+
Params7.encode(message.params, writer.uint32(10).fork()).join();
|
|
6568
6780
|
}
|
|
6569
6781
|
return writer;
|
|
6570
6782
|
},
|
|
6571
6783
|
decode(input, length) {
|
|
6572
|
-
const reader = input instanceof
|
|
6784
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
6573
6785
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6574
|
-
const message =
|
|
6786
|
+
const message = createBaseQueryParamsResponse6();
|
|
6575
6787
|
while (reader.pos < end) {
|
|
6576
6788
|
const tag = reader.uint32();
|
|
6577
6789
|
switch (tag >>> 3) {
|
|
@@ -6579,7 +6791,7 @@ var QueryParamsResponse5 = {
|
|
|
6579
6791
|
if (tag !== 10) {
|
|
6580
6792
|
break;
|
|
6581
6793
|
}
|
|
6582
|
-
message.params =
|
|
6794
|
+
message.params = Params7.decode(reader, reader.uint32());
|
|
6583
6795
|
continue;
|
|
6584
6796
|
}
|
|
6585
6797
|
}
|
|
@@ -6591,21 +6803,21 @@ var QueryParamsResponse5 = {
|
|
|
6591
6803
|
return message;
|
|
6592
6804
|
},
|
|
6593
6805
|
fromJSON(object2) {
|
|
6594
|
-
return { params:
|
|
6806
|
+
return { params: isSet22(object2.params) ? Params7.fromJSON(object2.params) : void 0 };
|
|
6595
6807
|
},
|
|
6596
6808
|
toJSON(message) {
|
|
6597
6809
|
const obj = {};
|
|
6598
6810
|
if (message.params !== void 0) {
|
|
6599
|
-
obj.params =
|
|
6811
|
+
obj.params = Params7.toJSON(message.params);
|
|
6600
6812
|
}
|
|
6601
6813
|
return obj;
|
|
6602
6814
|
},
|
|
6603
6815
|
create(base) {
|
|
6604
|
-
return
|
|
6816
|
+
return QueryParamsResponse6.fromPartial(base ?? {});
|
|
6605
6817
|
},
|
|
6606
6818
|
fromPartial(object2) {
|
|
6607
|
-
const message =
|
|
6608
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
6819
|
+
const message = createBaseQueryParamsResponse6();
|
|
6820
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params7.fromPartial(object2.params) : void 0;
|
|
6609
6821
|
return message;
|
|
6610
6822
|
}
|
|
6611
6823
|
};
|
|
@@ -6622,7 +6834,7 @@ function createBaseQueryEmissionInfoResponse() {
|
|
|
6622
6834
|
};
|
|
6623
6835
|
}
|
|
6624
6836
|
var QueryEmissionInfoResponse = {
|
|
6625
|
-
encode(message, writer = new
|
|
6837
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
6626
6838
|
if (message.currentYear !== 0) {
|
|
6627
6839
|
writer.uint32(8).uint32(message.currentYear);
|
|
6628
6840
|
}
|
|
@@ -6665,7 +6877,7 @@ var QueryEmissionInfoResponse = {
|
|
|
6665
6877
|
return writer;
|
|
6666
6878
|
},
|
|
6667
6879
|
decode(input, length) {
|
|
6668
|
-
const reader = input instanceof
|
|
6880
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
6669
6881
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6670
6882
|
const message = createBaseQueryEmissionInfoResponse();
|
|
6671
6883
|
while (reader.pos < end) {
|
|
@@ -6737,14 +6949,14 @@ var QueryEmissionInfoResponse = {
|
|
|
6737
6949
|
},
|
|
6738
6950
|
fromJSON(object2) {
|
|
6739
6951
|
return {
|
|
6740
|
-
currentYear:
|
|
6741
|
-
annualEmission:
|
|
6742
|
-
monthlyEmission:
|
|
6743
|
-
dailyEmission:
|
|
6744
|
-
cumulativeEmitted:
|
|
6745
|
-
epochsUntilNextYear:
|
|
6746
|
-
currentEpoch:
|
|
6747
|
-
epochsPerYear:
|
|
6952
|
+
currentYear: isSet22(object2.currentYear) ? globalThis.Number(object2.currentYear) : isSet22(object2.current_year) ? globalThis.Number(object2.current_year) : 0,
|
|
6953
|
+
annualEmission: isSet22(object2.annualEmission) ? globalThis.String(object2.annualEmission) : isSet22(object2.annual_emission) ? globalThis.String(object2.annual_emission) : "",
|
|
6954
|
+
monthlyEmission: isSet22(object2.monthlyEmission) ? globalThis.String(object2.monthlyEmission) : isSet22(object2.monthly_emission) ? globalThis.String(object2.monthly_emission) : "",
|
|
6955
|
+
dailyEmission: isSet22(object2.dailyEmission) ? globalThis.String(object2.dailyEmission) : isSet22(object2.daily_emission) ? globalThis.String(object2.daily_emission) : "",
|
|
6956
|
+
cumulativeEmitted: isSet22(object2.cumulativeEmitted) ? globalThis.String(object2.cumulativeEmitted) : isSet22(object2.cumulative_emitted) ? globalThis.String(object2.cumulative_emitted) : "",
|
|
6957
|
+
epochsUntilNextYear: isSet22(object2.epochsUntilNextYear) ? BigInt(object2.epochsUntilNextYear) : isSet22(object2.epochs_until_next_year) ? BigInt(object2.epochs_until_next_year) : 0n,
|
|
6958
|
+
currentEpoch: isSet22(object2.currentEpoch) ? BigInt(object2.currentEpoch) : isSet22(object2.current_epoch) ? BigInt(object2.current_epoch) : 0n,
|
|
6959
|
+
epochsPerYear: isSet22(object2.epochsPerYear) ? BigInt(object2.epochsPerYear) : isSet22(object2.epochs_per_year) ? BigInt(object2.epochs_per_year) : 0n
|
|
6748
6960
|
};
|
|
6749
6961
|
},
|
|
6750
6962
|
toJSON(message) {
|
|
@@ -6795,7 +7007,7 @@ function createBaseYearEmission() {
|
|
|
6795
7007
|
return { year: 0, annualEmission: "", monthlyEmission: "", dailyEmission: "" };
|
|
6796
7008
|
}
|
|
6797
7009
|
var YearEmission = {
|
|
6798
|
-
encode(message, writer = new
|
|
7010
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
6799
7011
|
if (message.year !== 0) {
|
|
6800
7012
|
writer.uint32(8).uint32(message.year);
|
|
6801
7013
|
}
|
|
@@ -6811,7 +7023,7 @@ var YearEmission = {
|
|
|
6811
7023
|
return writer;
|
|
6812
7024
|
},
|
|
6813
7025
|
decode(input, length) {
|
|
6814
|
-
const reader = input instanceof
|
|
7026
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
6815
7027
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6816
7028
|
const message = createBaseYearEmission();
|
|
6817
7029
|
while (reader.pos < end) {
|
|
@@ -6855,10 +7067,10 @@ var YearEmission = {
|
|
|
6855
7067
|
},
|
|
6856
7068
|
fromJSON(object2) {
|
|
6857
7069
|
return {
|
|
6858
|
-
year:
|
|
6859
|
-
annualEmission:
|
|
6860
|
-
monthlyEmission:
|
|
6861
|
-
dailyEmission:
|
|
7070
|
+
year: isSet22(object2.year) ? globalThis.Number(object2.year) : 0,
|
|
7071
|
+
annualEmission: isSet22(object2.annualEmission) ? globalThis.String(object2.annualEmission) : isSet22(object2.annual_emission) ? globalThis.String(object2.annual_emission) : "",
|
|
7072
|
+
monthlyEmission: isSet22(object2.monthlyEmission) ? globalThis.String(object2.monthlyEmission) : isSet22(object2.monthly_emission) ? globalThis.String(object2.monthly_emission) : "",
|
|
7073
|
+
dailyEmission: isSet22(object2.dailyEmission) ? globalThis.String(object2.dailyEmission) : isSet22(object2.daily_emission) ? globalThis.String(object2.daily_emission) : ""
|
|
6862
7074
|
};
|
|
6863
7075
|
},
|
|
6864
7076
|
toJSON(message) {
|
|
@@ -6893,14 +7105,14 @@ function createBaseQueryEmissionScheduleResponse() {
|
|
|
6893
7105
|
return { schedule: [] };
|
|
6894
7106
|
}
|
|
6895
7107
|
var QueryEmissionScheduleResponse = {
|
|
6896
|
-
encode(message, writer = new
|
|
7108
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
6897
7109
|
for (const v of message.schedule) {
|
|
6898
7110
|
YearEmission.encode(v, writer.uint32(10).fork()).join();
|
|
6899
7111
|
}
|
|
6900
7112
|
return writer;
|
|
6901
7113
|
},
|
|
6902
7114
|
decode(input, length) {
|
|
6903
|
-
const reader = input instanceof
|
|
7115
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
6904
7116
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6905
7117
|
const message = createBaseQueryEmissionScheduleResponse();
|
|
6906
7118
|
while (reader.pos < end) {
|
|
@@ -6946,14 +7158,14 @@ function createBaseQueryEpochInfoResponse() {
|
|
|
6946
7158
|
return { info: void 0 };
|
|
6947
7159
|
}
|
|
6948
7160
|
var QueryEpochInfoResponse = {
|
|
6949
|
-
encode(message, writer = new
|
|
7161
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
6950
7162
|
if (message.info !== void 0) {
|
|
6951
7163
|
EpochInfo.encode(message.info, writer.uint32(10).fork()).join();
|
|
6952
7164
|
}
|
|
6953
7165
|
return writer;
|
|
6954
7166
|
},
|
|
6955
7167
|
decode(input, length) {
|
|
6956
|
-
const reader = input instanceof
|
|
7168
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
6957
7169
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6958
7170
|
const message = createBaseQueryEpochInfoResponse();
|
|
6959
7171
|
while (reader.pos < end) {
|
|
@@ -6975,7 +7187,7 @@ var QueryEpochInfoResponse = {
|
|
|
6975
7187
|
return message;
|
|
6976
7188
|
},
|
|
6977
7189
|
fromJSON(object2) {
|
|
6978
|
-
return { info:
|
|
7190
|
+
return { info: isSet22(object2.info) ? EpochInfo.fromJSON(object2.info) : void 0 };
|
|
6979
7191
|
},
|
|
6980
7192
|
toJSON(message) {
|
|
6981
7193
|
const obj = {};
|
|
@@ -6997,7 +7209,7 @@ function createBaseQueryEpochsResponse() {
|
|
|
6997
7209
|
return { epochs: [], pagination: void 0 };
|
|
6998
7210
|
}
|
|
6999
7211
|
var QueryEpochsResponse = {
|
|
7000
|
-
encode(message, writer = new
|
|
7212
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
7001
7213
|
for (const v of message.epochs) {
|
|
7002
7214
|
EpochInfo.encode(v, writer.uint32(10).fork()).join();
|
|
7003
7215
|
}
|
|
@@ -7007,7 +7219,7 @@ var QueryEpochsResponse = {
|
|
|
7007
7219
|
return writer;
|
|
7008
7220
|
},
|
|
7009
7221
|
decode(input, length) {
|
|
7010
|
-
const reader = input instanceof
|
|
7222
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
7011
7223
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7012
7224
|
const message = createBaseQueryEpochsResponse();
|
|
7013
7225
|
while (reader.pos < end) {
|
|
@@ -7038,7 +7250,7 @@ var QueryEpochsResponse = {
|
|
|
7038
7250
|
fromJSON(object2) {
|
|
7039
7251
|
return {
|
|
7040
7252
|
epochs: globalThis.Array.isArray(object2?.epochs) ? object2.epochs.map((e) => EpochInfo.fromJSON(e)) : [],
|
|
7041
|
-
pagination:
|
|
7253
|
+
pagination: isSet22(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
7042
7254
|
};
|
|
7043
7255
|
},
|
|
7044
7256
|
toJSON(message) {
|
|
@@ -7072,7 +7284,7 @@ function createBaseQueryOwnerKeyResponse() {
|
|
|
7072
7284
|
};
|
|
7073
7285
|
}
|
|
7074
7286
|
var QueryOwnerKeyResponse = {
|
|
7075
|
-
encode(message, writer = new
|
|
7287
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
7076
7288
|
if (message.vrfPubkey.length !== 0) {
|
|
7077
7289
|
writer.uint32(10).bytes(message.vrfPubkey);
|
|
7078
7290
|
}
|
|
@@ -7114,7 +7326,7 @@ var QueryOwnerKeyResponse = {
|
|
|
7114
7326
|
return writer;
|
|
7115
7327
|
},
|
|
7116
7328
|
decode(input, length) {
|
|
7117
|
-
const reader = input instanceof
|
|
7329
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
7118
7330
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7119
7331
|
const message = createBaseQueryOwnerKeyResponse();
|
|
7120
7332
|
while (reader.pos < end) {
|
|
@@ -7172,12 +7384,12 @@ var QueryOwnerKeyResponse = {
|
|
|
7172
7384
|
},
|
|
7173
7385
|
fromJSON(object2) {
|
|
7174
7386
|
return {
|
|
7175
|
-
vrfPubkey:
|
|
7176
|
-
nonce:
|
|
7177
|
-
lastRotationTime:
|
|
7178
|
-
registrationEpoch:
|
|
7179
|
-
validFromEpoch:
|
|
7180
|
-
registrationChainId:
|
|
7387
|
+
vrfPubkey: isSet22(object2.vrfPubkey) ? bytesFromBase647(object2.vrfPubkey) : isSet22(object2.vrf_pubkey) ? bytesFromBase647(object2.vrf_pubkey) : new Uint8Array(0),
|
|
7388
|
+
nonce: isSet22(object2.nonce) ? BigInt(object2.nonce) : 0n,
|
|
7389
|
+
lastRotationTime: isSet22(object2.lastRotationTime) ? BigInt(object2.lastRotationTime) : isSet22(object2.last_rotation_time) ? BigInt(object2.last_rotation_time) : 0n,
|
|
7390
|
+
registrationEpoch: isSet22(object2.registrationEpoch) ? BigInt(object2.registrationEpoch) : isSet22(object2.registration_epoch) ? BigInt(object2.registration_epoch) : 0n,
|
|
7391
|
+
validFromEpoch: isSet22(object2.validFromEpoch) ? BigInt(object2.validFromEpoch) : isSet22(object2.valid_from_epoch) ? BigInt(object2.valid_from_epoch) : 0n,
|
|
7392
|
+
registrationChainId: isSet22(object2.registrationChainId) ? globalThis.String(object2.registrationChainId) : isSet22(object2.registration_chain_id) ? globalThis.String(object2.registration_chain_id) : ""
|
|
7181
7393
|
};
|
|
7182
7394
|
},
|
|
7183
7395
|
toJSON(message) {
|
|
@@ -7220,14 +7432,14 @@ function createBaseQueryOperatorInfoResponse() {
|
|
|
7220
7432
|
return { info: void 0 };
|
|
7221
7433
|
}
|
|
7222
7434
|
var QueryOperatorInfoResponse = {
|
|
7223
|
-
encode(message, writer = new
|
|
7435
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
7224
7436
|
if (message.info !== void 0) {
|
|
7225
7437
|
OperatorInfo.encode(message.info, writer.uint32(10).fork()).join();
|
|
7226
7438
|
}
|
|
7227
7439
|
return writer;
|
|
7228
7440
|
},
|
|
7229
7441
|
decode(input, length) {
|
|
7230
|
-
const reader = input instanceof
|
|
7442
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
7231
7443
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7232
7444
|
const message = createBaseQueryOperatorInfoResponse();
|
|
7233
7445
|
while (reader.pos < end) {
|
|
@@ -7249,7 +7461,7 @@ var QueryOperatorInfoResponse = {
|
|
|
7249
7461
|
return message;
|
|
7250
7462
|
},
|
|
7251
7463
|
fromJSON(object2) {
|
|
7252
|
-
return { info:
|
|
7464
|
+
return { info: isSet22(object2.info) ? OperatorInfo.fromJSON(object2.info) : void 0 };
|
|
7253
7465
|
},
|
|
7254
7466
|
toJSON(message) {
|
|
7255
7467
|
const obj = {};
|
|
@@ -7271,7 +7483,7 @@ function createBaseQueryOperatorsResponse() {
|
|
|
7271
7483
|
return { operators: [], pagination: void 0 };
|
|
7272
7484
|
}
|
|
7273
7485
|
var QueryOperatorsResponse = {
|
|
7274
|
-
encode(message, writer = new
|
|
7486
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
7275
7487
|
for (const v of message.operators) {
|
|
7276
7488
|
OperatorInfo.encode(v, writer.uint32(10).fork()).join();
|
|
7277
7489
|
}
|
|
@@ -7281,7 +7493,7 @@ var QueryOperatorsResponse = {
|
|
|
7281
7493
|
return writer;
|
|
7282
7494
|
},
|
|
7283
7495
|
decode(input, length) {
|
|
7284
|
-
const reader = input instanceof
|
|
7496
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
7285
7497
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7286
7498
|
const message = createBaseQueryOperatorsResponse();
|
|
7287
7499
|
while (reader.pos < end) {
|
|
@@ -7312,7 +7524,7 @@ var QueryOperatorsResponse = {
|
|
|
7312
7524
|
fromJSON(object2) {
|
|
7313
7525
|
return {
|
|
7314
7526
|
operators: globalThis.Array.isArray(object2?.operators) ? object2.operators.map((e) => OperatorInfo.fromJSON(e)) : [],
|
|
7315
|
-
pagination:
|
|
7527
|
+
pagination: isSet22(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
7316
7528
|
};
|
|
7317
7529
|
},
|
|
7318
7530
|
toJSON(message) {
|
|
@@ -7339,7 +7551,7 @@ function createBaseQueryLicenseDelegationResponse() {
|
|
|
7339
7551
|
return { delegation: void 0, isDelegated: false };
|
|
7340
7552
|
}
|
|
7341
7553
|
var QueryLicenseDelegationResponse = {
|
|
7342
|
-
encode(message, writer = new
|
|
7554
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
7343
7555
|
if (message.delegation !== void 0) {
|
|
7344
7556
|
MiningDelegation.encode(message.delegation, writer.uint32(10).fork()).join();
|
|
7345
7557
|
}
|
|
@@ -7349,7 +7561,7 @@ var QueryLicenseDelegationResponse = {
|
|
|
7349
7561
|
return writer;
|
|
7350
7562
|
},
|
|
7351
7563
|
decode(input, length) {
|
|
7352
|
-
const reader = input instanceof
|
|
7564
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
7353
7565
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7354
7566
|
const message = createBaseQueryLicenseDelegationResponse();
|
|
7355
7567
|
while (reader.pos < end) {
|
|
@@ -7379,8 +7591,8 @@ var QueryLicenseDelegationResponse = {
|
|
|
7379
7591
|
},
|
|
7380
7592
|
fromJSON(object2) {
|
|
7381
7593
|
return {
|
|
7382
|
-
delegation:
|
|
7383
|
-
isDelegated:
|
|
7594
|
+
delegation: isSet22(object2.delegation) ? MiningDelegation.fromJSON(object2.delegation) : void 0,
|
|
7595
|
+
isDelegated: isSet22(object2.isDelegated) ? globalThis.Boolean(object2.isDelegated) : isSet22(object2.is_delegated) ? globalThis.Boolean(object2.is_delegated) : false
|
|
7384
7596
|
};
|
|
7385
7597
|
},
|
|
7386
7598
|
toJSON(message) {
|
|
@@ -7407,7 +7619,7 @@ function createBaseQueryDelegatedLicensesResponse() {
|
|
|
7407
7619
|
return { licenseIds: [], pagination: void 0 };
|
|
7408
7620
|
}
|
|
7409
7621
|
var QueryDelegatedLicensesResponse = {
|
|
7410
|
-
encode(message, writer = new
|
|
7622
|
+
encode(message, writer = new BinaryWriter23()) {
|
|
7411
7623
|
writer.uint32(10).fork();
|
|
7412
7624
|
for (const v of message.licenseIds) {
|
|
7413
7625
|
if (BigInt.asUintN(64, v) !== v) {
|
|
@@ -7424,7 +7636,7 @@ var QueryDelegatedLicensesResponse = {
|
|
|
7424
7636
|
return writer;
|
|
7425
7637
|
},
|
|
7426
7638
|
decode(input, length) {
|
|
7427
|
-
const reader = input instanceof
|
|
7639
|
+
const reader = input instanceof BinaryReader23 ? input : new BinaryReader23(input);
|
|
7428
7640
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7429
7641
|
const message = createBaseQueryDelegatedLicensesResponse();
|
|
7430
7642
|
while (reader.pos < end) {
|
|
@@ -7462,7 +7674,7 @@ var QueryDelegatedLicensesResponse = {
|
|
|
7462
7674
|
fromJSON(object2) {
|
|
7463
7675
|
return {
|
|
7464
7676
|
licenseIds: globalThis.Array.isArray(object2?.licenseIds) ? object2.licenseIds.map((e) => BigInt(e)) : globalThis.Array.isArray(object2?.license_ids) ? object2.license_ids.map((e) => BigInt(e)) : [],
|
|
7465
|
-
pagination:
|
|
7677
|
+
pagination: isSet22(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
7466
7678
|
};
|
|
7467
7679
|
},
|
|
7468
7680
|
toJSON(message) {
|
|
@@ -7508,7 +7720,7 @@ function base64FromBytes7(arr) {
|
|
|
7508
7720
|
return globalThis.btoa(bin.join(""));
|
|
7509
7721
|
}
|
|
7510
7722
|
}
|
|
7511
|
-
function
|
|
7723
|
+
function isSet22(value) {
|
|
7512
7724
|
return value !== null && value !== void 0;
|
|
7513
7725
|
}
|
|
7514
7726
|
|
|
@@ -7541,7 +7753,7 @@ function createMinerApi(context) {
|
|
|
7541
7753
|
return fetchProtoJson(context, `/ault/miner/v1/beacon/${epoch}`, QueryBeaconResponse);
|
|
7542
7754
|
},
|
|
7543
7755
|
async getParams() {
|
|
7544
|
-
return fetchProtoJson(context, "/ault/miner/v1/params",
|
|
7756
|
+
return fetchProtoJson(context, "/ault/miner/v1/params", QueryParamsResponse6);
|
|
7545
7757
|
},
|
|
7546
7758
|
async getOwnerKey(owner) {
|
|
7547
7759
|
return fetchProtoJson(context, `/ault/miner/v1/owner/${owner}/key`, QueryOwnerKeyResponse);
|
|
@@ -7605,24 +7817,24 @@ function createMinerApi(context) {
|
|
|
7605
7817
|
}
|
|
7606
7818
|
|
|
7607
7819
|
// src/proto/gen/ault/ratelimit/v1/query.ts
|
|
7608
|
-
import { BinaryReader as
|
|
7820
|
+
import { BinaryReader as BinaryReader25, BinaryWriter as BinaryWriter25 } from "@bufbuild/protobuf/wire";
|
|
7609
7821
|
|
|
7610
7822
|
// src/proto/gen/ault/ratelimit/v1/params.ts
|
|
7611
|
-
import { BinaryReader as
|
|
7612
|
-
function
|
|
7823
|
+
import { BinaryReader as BinaryReader24, BinaryWriter as BinaryWriter24 } from "@bufbuild/protobuf/wire";
|
|
7824
|
+
function createBaseParams7() {
|
|
7613
7825
|
return { rateLimitConfigs: [] };
|
|
7614
7826
|
}
|
|
7615
|
-
var
|
|
7616
|
-
encode(message, writer = new
|
|
7827
|
+
var Params8 = {
|
|
7828
|
+
encode(message, writer = new BinaryWriter24()) {
|
|
7617
7829
|
for (const v of message.rateLimitConfigs) {
|
|
7618
7830
|
RateLimitConfig.encode(v, writer.uint32(10).fork()).join();
|
|
7619
7831
|
}
|
|
7620
7832
|
return writer;
|
|
7621
7833
|
},
|
|
7622
7834
|
decode(input, length) {
|
|
7623
|
-
const reader = input instanceof
|
|
7835
|
+
const reader = input instanceof BinaryReader24 ? input : new BinaryReader24(input);
|
|
7624
7836
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7625
|
-
const message =
|
|
7837
|
+
const message = createBaseParams7();
|
|
7626
7838
|
while (reader.pos < end) {
|
|
7627
7839
|
const tag = reader.uint32();
|
|
7628
7840
|
switch (tag >>> 3) {
|
|
@@ -7654,10 +7866,10 @@ var Params7 = {
|
|
|
7654
7866
|
return obj;
|
|
7655
7867
|
},
|
|
7656
7868
|
create(base) {
|
|
7657
|
-
return
|
|
7869
|
+
return Params8.fromPartial(base ?? {});
|
|
7658
7870
|
},
|
|
7659
7871
|
fromPartial(object2) {
|
|
7660
|
-
const message =
|
|
7872
|
+
const message = createBaseParams7();
|
|
7661
7873
|
message.rateLimitConfigs = object2.rateLimitConfigs?.map((e) => RateLimitConfig.fromPartial(e)) || [];
|
|
7662
7874
|
return message;
|
|
7663
7875
|
}
|
|
@@ -7666,7 +7878,7 @@ function createBaseRateLimitConfig() {
|
|
|
7666
7878
|
return { msgType: "", limit: 0 };
|
|
7667
7879
|
}
|
|
7668
7880
|
var RateLimitConfig = {
|
|
7669
|
-
encode(message, writer = new
|
|
7881
|
+
encode(message, writer = new BinaryWriter24()) {
|
|
7670
7882
|
if (message.msgType !== "") {
|
|
7671
7883
|
writer.uint32(10).string(message.msgType);
|
|
7672
7884
|
}
|
|
@@ -7676,7 +7888,7 @@ var RateLimitConfig = {
|
|
|
7676
7888
|
return writer;
|
|
7677
7889
|
},
|
|
7678
7890
|
decode(input, length) {
|
|
7679
|
-
const reader = input instanceof
|
|
7891
|
+
const reader = input instanceof BinaryReader24 ? input : new BinaryReader24(input);
|
|
7680
7892
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7681
7893
|
const message = createBaseRateLimitConfig();
|
|
7682
7894
|
while (reader.pos < end) {
|
|
@@ -7706,8 +7918,8 @@ var RateLimitConfig = {
|
|
|
7706
7918
|
},
|
|
7707
7919
|
fromJSON(object2) {
|
|
7708
7920
|
return {
|
|
7709
|
-
msgType:
|
|
7710
|
-
limit:
|
|
7921
|
+
msgType: isSet23(object2.msgType) ? globalThis.String(object2.msgType) : isSet23(object2.msg_type) ? globalThis.String(object2.msg_type) : "",
|
|
7922
|
+
limit: isSet23(object2.limit) ? globalThis.Number(object2.limit) : 0
|
|
7711
7923
|
};
|
|
7712
7924
|
},
|
|
7713
7925
|
toJSON(message) {
|
|
@@ -7730,7 +7942,7 @@ var RateLimitConfig = {
|
|
|
7730
7942
|
return message;
|
|
7731
7943
|
}
|
|
7732
7944
|
};
|
|
7733
|
-
function
|
|
7945
|
+
function isSet23(value) {
|
|
7734
7946
|
return value !== null && value !== void 0;
|
|
7735
7947
|
}
|
|
7736
7948
|
|
|
@@ -7739,14 +7951,14 @@ function createBaseQueryRateLimitConfigResponse() {
|
|
|
7739
7951
|
return { config: void 0 };
|
|
7740
7952
|
}
|
|
7741
7953
|
var QueryRateLimitConfigResponse = {
|
|
7742
|
-
encode(message, writer = new
|
|
7954
|
+
encode(message, writer = new BinaryWriter25()) {
|
|
7743
7955
|
if (message.config !== void 0) {
|
|
7744
7956
|
RateLimitConfig.encode(message.config, writer.uint32(10).fork()).join();
|
|
7745
7957
|
}
|
|
7746
7958
|
return writer;
|
|
7747
7959
|
},
|
|
7748
7960
|
decode(input, length) {
|
|
7749
|
-
const reader = input instanceof
|
|
7961
|
+
const reader = input instanceof BinaryReader25 ? input : new BinaryReader25(input);
|
|
7750
7962
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7751
7963
|
const message = createBaseQueryRateLimitConfigResponse();
|
|
7752
7964
|
while (reader.pos < end) {
|
|
@@ -7768,7 +7980,7 @@ var QueryRateLimitConfigResponse = {
|
|
|
7768
7980
|
return message;
|
|
7769
7981
|
},
|
|
7770
7982
|
fromJSON(object2) {
|
|
7771
|
-
return { config:
|
|
7983
|
+
return { config: isSet24(object2.config) ? RateLimitConfig.fromJSON(object2.config) : void 0 };
|
|
7772
7984
|
},
|
|
7773
7985
|
toJSON(message) {
|
|
7774
7986
|
const obj = {};
|
|
@@ -7786,20 +7998,20 @@ var QueryRateLimitConfigResponse = {
|
|
|
7786
7998
|
return message;
|
|
7787
7999
|
}
|
|
7788
8000
|
};
|
|
7789
|
-
function
|
|
8001
|
+
function createBaseQueryParamsResponse7() {
|
|
7790
8002
|
return { params: void 0 };
|
|
7791
8003
|
}
|
|
7792
|
-
var
|
|
7793
|
-
encode(message, writer = new
|
|
8004
|
+
var QueryParamsResponse7 = {
|
|
8005
|
+
encode(message, writer = new BinaryWriter25()) {
|
|
7794
8006
|
if (message.params !== void 0) {
|
|
7795
|
-
|
|
8007
|
+
Params8.encode(message.params, writer.uint32(10).fork()).join();
|
|
7796
8008
|
}
|
|
7797
8009
|
return writer;
|
|
7798
8010
|
},
|
|
7799
8011
|
decode(input, length) {
|
|
7800
|
-
const reader = input instanceof
|
|
8012
|
+
const reader = input instanceof BinaryReader25 ? input : new BinaryReader25(input);
|
|
7801
8013
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7802
|
-
const message =
|
|
8014
|
+
const message = createBaseQueryParamsResponse7();
|
|
7803
8015
|
while (reader.pos < end) {
|
|
7804
8016
|
const tag = reader.uint32();
|
|
7805
8017
|
switch (tag >>> 3) {
|
|
@@ -7807,7 +8019,7 @@ var QueryParamsResponse6 = {
|
|
|
7807
8019
|
if (tag !== 10) {
|
|
7808
8020
|
break;
|
|
7809
8021
|
}
|
|
7810
|
-
message.params =
|
|
8022
|
+
message.params = Params8.decode(reader, reader.uint32());
|
|
7811
8023
|
continue;
|
|
7812
8024
|
}
|
|
7813
8025
|
}
|
|
@@ -7819,25 +8031,25 @@ var QueryParamsResponse6 = {
|
|
|
7819
8031
|
return message;
|
|
7820
8032
|
},
|
|
7821
8033
|
fromJSON(object2) {
|
|
7822
|
-
return { params:
|
|
8034
|
+
return { params: isSet24(object2.params) ? Params8.fromJSON(object2.params) : void 0 };
|
|
7823
8035
|
},
|
|
7824
8036
|
toJSON(message) {
|
|
7825
8037
|
const obj = {};
|
|
7826
8038
|
if (message.params !== void 0) {
|
|
7827
|
-
obj.params =
|
|
8039
|
+
obj.params = Params8.toJSON(message.params);
|
|
7828
8040
|
}
|
|
7829
8041
|
return obj;
|
|
7830
8042
|
},
|
|
7831
8043
|
create(base) {
|
|
7832
|
-
return
|
|
8044
|
+
return QueryParamsResponse7.fromPartial(base ?? {});
|
|
7833
8045
|
},
|
|
7834
8046
|
fromPartial(object2) {
|
|
7835
|
-
const message =
|
|
7836
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
8047
|
+
const message = createBaseQueryParamsResponse7();
|
|
8048
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params8.fromPartial(object2.params) : void 0;
|
|
7837
8049
|
return message;
|
|
7838
8050
|
}
|
|
7839
8051
|
};
|
|
7840
|
-
function
|
|
8052
|
+
function isSet24(value) {
|
|
7841
8053
|
return value !== null && value !== void 0;
|
|
7842
8054
|
}
|
|
7843
8055
|
|
|
@@ -7852,17 +8064,17 @@ function createRateLimitApi(context) {
|
|
|
7852
8064
|
);
|
|
7853
8065
|
},
|
|
7854
8066
|
async getParams() {
|
|
7855
|
-
return fetchProtoJson(context, "/ault/ratelimit/v1/params",
|
|
8067
|
+
return fetchProtoJson(context, "/ault/ratelimit/v1/params", QueryParamsResponse7);
|
|
7856
8068
|
}
|
|
7857
8069
|
};
|
|
7858
8070
|
}
|
|
7859
8071
|
|
|
7860
8072
|
// src/proto/gen/ault/reward/v1/query.ts
|
|
7861
|
-
import { BinaryReader as
|
|
8073
|
+
import { BinaryReader as BinaryReader27, BinaryWriter as BinaryWriter27 } from "@bufbuild/protobuf/wire";
|
|
7862
8074
|
|
|
7863
8075
|
// src/proto/gen/ault/reward/v1/reward.ts
|
|
7864
|
-
import { BinaryReader as
|
|
7865
|
-
function
|
|
8076
|
+
import { BinaryReader as BinaryReader26, BinaryWriter as BinaryWriter26 } from "@bufbuild/protobuf/wire";
|
|
8077
|
+
function createBaseParams8() {
|
|
7866
8078
|
return {
|
|
7867
8079
|
referralRate: "",
|
|
7868
8080
|
maxDeployerShareRate: "",
|
|
@@ -7870,8 +8082,8 @@ function createBaseParams7() {
|
|
|
7870
8082
|
minBuilderBalance: ""
|
|
7871
8083
|
};
|
|
7872
8084
|
}
|
|
7873
|
-
var
|
|
7874
|
-
encode(message, writer = new
|
|
8085
|
+
var Params9 = {
|
|
8086
|
+
encode(message, writer = new BinaryWriter26()) {
|
|
7875
8087
|
if (message.referralRate !== "") {
|
|
7876
8088
|
writer.uint32(10).string(message.referralRate);
|
|
7877
8089
|
}
|
|
@@ -7887,9 +8099,9 @@ var Params8 = {
|
|
|
7887
8099
|
return writer;
|
|
7888
8100
|
},
|
|
7889
8101
|
decode(input, length) {
|
|
7890
|
-
const reader = input instanceof
|
|
8102
|
+
const reader = input instanceof BinaryReader26 ? input : new BinaryReader26(input);
|
|
7891
8103
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7892
|
-
const message =
|
|
8104
|
+
const message = createBaseParams8();
|
|
7893
8105
|
while (reader.pos < end) {
|
|
7894
8106
|
const tag = reader.uint32();
|
|
7895
8107
|
switch (tag >>> 3) {
|
|
@@ -7931,10 +8143,10 @@ var Params8 = {
|
|
|
7931
8143
|
},
|
|
7932
8144
|
fromJSON(object2) {
|
|
7933
8145
|
return {
|
|
7934
|
-
referralRate:
|
|
7935
|
-
maxDeployerShareRate:
|
|
7936
|
-
maxBuilderFeeRate:
|
|
7937
|
-
minBuilderBalance:
|
|
8146
|
+
referralRate: isSet25(object2.referralRate) ? globalThis.String(object2.referralRate) : isSet25(object2.referral_rate) ? globalThis.String(object2.referral_rate) : "",
|
|
8147
|
+
maxDeployerShareRate: isSet25(object2.maxDeployerShareRate) ? globalThis.String(object2.maxDeployerShareRate) : isSet25(object2.max_deployer_share_rate) ? globalThis.String(object2.max_deployer_share_rate) : "",
|
|
8148
|
+
maxBuilderFeeRate: isSet25(object2.maxBuilderFeeRate) ? globalThis.String(object2.maxBuilderFeeRate) : isSet25(object2.max_builder_fee_rate) ? globalThis.String(object2.max_builder_fee_rate) : "",
|
|
8149
|
+
minBuilderBalance: isSet25(object2.minBuilderBalance) ? globalThis.String(object2.minBuilderBalance) : isSet25(object2.min_builder_balance) ? globalThis.String(object2.min_builder_balance) : ""
|
|
7938
8150
|
};
|
|
7939
8151
|
},
|
|
7940
8152
|
toJSON(message) {
|
|
@@ -7954,10 +8166,10 @@ var Params8 = {
|
|
|
7954
8166
|
return obj;
|
|
7955
8167
|
},
|
|
7956
8168
|
create(base) {
|
|
7957
|
-
return
|
|
8169
|
+
return Params9.fromPartial(base ?? {});
|
|
7958
8170
|
},
|
|
7959
8171
|
fromPartial(object2) {
|
|
7960
|
-
const message =
|
|
8172
|
+
const message = createBaseParams8();
|
|
7961
8173
|
message.referralRate = object2.referralRate ?? "";
|
|
7962
8174
|
message.maxDeployerShareRate = object2.maxDeployerShareRate ?? "";
|
|
7963
8175
|
message.maxBuilderFeeRate = object2.maxBuilderFeeRate ?? "";
|
|
@@ -7969,7 +8181,7 @@ function createBaseDeployerShare() {
|
|
|
7969
8181
|
return { deployer: "", shareRate: "" };
|
|
7970
8182
|
}
|
|
7971
8183
|
var DeployerShare = {
|
|
7972
|
-
encode(message, writer = new
|
|
8184
|
+
encode(message, writer = new BinaryWriter26()) {
|
|
7973
8185
|
if (message.deployer !== "") {
|
|
7974
8186
|
writer.uint32(10).string(message.deployer);
|
|
7975
8187
|
}
|
|
@@ -7979,7 +8191,7 @@ var DeployerShare = {
|
|
|
7979
8191
|
return writer;
|
|
7980
8192
|
},
|
|
7981
8193
|
decode(input, length) {
|
|
7982
|
-
const reader = input instanceof
|
|
8194
|
+
const reader = input instanceof BinaryReader26 ? input : new BinaryReader26(input);
|
|
7983
8195
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7984
8196
|
const message = createBaseDeployerShare();
|
|
7985
8197
|
while (reader.pos < end) {
|
|
@@ -8009,8 +8221,8 @@ var DeployerShare = {
|
|
|
8009
8221
|
},
|
|
8010
8222
|
fromJSON(object2) {
|
|
8011
8223
|
return {
|
|
8012
|
-
deployer:
|
|
8013
|
-
shareRate:
|
|
8224
|
+
deployer: isSet25(object2.deployer) ? globalThis.String(object2.deployer) : "",
|
|
8225
|
+
shareRate: isSet25(object2.shareRate) ? globalThis.String(object2.shareRate) : isSet25(object2.share_rate) ? globalThis.String(object2.share_rate) : ""
|
|
8014
8226
|
};
|
|
8015
8227
|
},
|
|
8016
8228
|
toJSON(message) {
|
|
@@ -8033,25 +8245,25 @@ var DeployerShare = {
|
|
|
8033
8245
|
return message;
|
|
8034
8246
|
}
|
|
8035
8247
|
};
|
|
8036
|
-
function
|
|
8248
|
+
function isSet25(value) {
|
|
8037
8249
|
return value !== null && value !== void 0;
|
|
8038
8250
|
}
|
|
8039
8251
|
|
|
8040
8252
|
// src/proto/gen/ault/reward/v1/query.ts
|
|
8041
|
-
function
|
|
8253
|
+
function createBaseQueryParamsResponse8() {
|
|
8042
8254
|
return { params: void 0 };
|
|
8043
8255
|
}
|
|
8044
|
-
var
|
|
8045
|
-
encode(message, writer = new
|
|
8256
|
+
var QueryParamsResponse8 = {
|
|
8257
|
+
encode(message, writer = new BinaryWriter27()) {
|
|
8046
8258
|
if (message.params !== void 0) {
|
|
8047
|
-
|
|
8259
|
+
Params9.encode(message.params, writer.uint32(10).fork()).join();
|
|
8048
8260
|
}
|
|
8049
8261
|
return writer;
|
|
8050
8262
|
},
|
|
8051
8263
|
decode(input, length) {
|
|
8052
|
-
const reader = input instanceof
|
|
8264
|
+
const reader = input instanceof BinaryReader27 ? input : new BinaryReader27(input);
|
|
8053
8265
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8054
|
-
const message =
|
|
8266
|
+
const message = createBaseQueryParamsResponse8();
|
|
8055
8267
|
while (reader.pos < end) {
|
|
8056
8268
|
const tag = reader.uint32();
|
|
8057
8269
|
switch (tag >>> 3) {
|
|
@@ -8059,7 +8271,7 @@ var QueryParamsResponse7 = {
|
|
|
8059
8271
|
if (tag !== 10) {
|
|
8060
8272
|
break;
|
|
8061
8273
|
}
|
|
8062
|
-
message.params =
|
|
8274
|
+
message.params = Params9.decode(reader, reader.uint32());
|
|
8063
8275
|
continue;
|
|
8064
8276
|
}
|
|
8065
8277
|
}
|
|
@@ -8071,21 +8283,21 @@ var QueryParamsResponse7 = {
|
|
|
8071
8283
|
return message;
|
|
8072
8284
|
},
|
|
8073
8285
|
fromJSON(object2) {
|
|
8074
|
-
return { params:
|
|
8286
|
+
return { params: isSet26(object2.params) ? Params9.fromJSON(object2.params) : void 0 };
|
|
8075
8287
|
},
|
|
8076
8288
|
toJSON(message) {
|
|
8077
8289
|
const obj = {};
|
|
8078
8290
|
if (message.params !== void 0) {
|
|
8079
|
-
obj.params =
|
|
8291
|
+
obj.params = Params9.toJSON(message.params);
|
|
8080
8292
|
}
|
|
8081
8293
|
return obj;
|
|
8082
8294
|
},
|
|
8083
8295
|
create(base) {
|
|
8084
|
-
return
|
|
8296
|
+
return QueryParamsResponse8.fromPartial(base ?? {});
|
|
8085
8297
|
},
|
|
8086
8298
|
fromPartial(object2) {
|
|
8087
|
-
const message =
|
|
8088
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
8299
|
+
const message = createBaseQueryParamsResponse8();
|
|
8300
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params9.fromPartial(object2.params) : void 0;
|
|
8089
8301
|
return message;
|
|
8090
8302
|
}
|
|
8091
8303
|
};
|
|
@@ -8093,14 +8305,14 @@ function createBaseQueryReferrerResponse() {
|
|
|
8093
8305
|
return { referrer: "" };
|
|
8094
8306
|
}
|
|
8095
8307
|
var QueryReferrerResponse = {
|
|
8096
|
-
encode(message, writer = new
|
|
8308
|
+
encode(message, writer = new BinaryWriter27()) {
|
|
8097
8309
|
if (message.referrer !== "") {
|
|
8098
8310
|
writer.uint32(10).string(message.referrer);
|
|
8099
8311
|
}
|
|
8100
8312
|
return writer;
|
|
8101
8313
|
},
|
|
8102
8314
|
decode(input, length) {
|
|
8103
|
-
const reader = input instanceof
|
|
8315
|
+
const reader = input instanceof BinaryReader27 ? input : new BinaryReader27(input);
|
|
8104
8316
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8105
8317
|
const message = createBaseQueryReferrerResponse();
|
|
8106
8318
|
while (reader.pos < end) {
|
|
@@ -8122,7 +8334,7 @@ var QueryReferrerResponse = {
|
|
|
8122
8334
|
return message;
|
|
8123
8335
|
},
|
|
8124
8336
|
fromJSON(object2) {
|
|
8125
|
-
return { referrer:
|
|
8337
|
+
return { referrer: isSet26(object2.referrer) ? globalThis.String(object2.referrer) : "" };
|
|
8126
8338
|
},
|
|
8127
8339
|
toJSON(message) {
|
|
8128
8340
|
const obj = {};
|
|
@@ -8144,14 +8356,14 @@ function createBaseQueryReferralCodeResponse() {
|
|
|
8144
8356
|
return { code: "" };
|
|
8145
8357
|
}
|
|
8146
8358
|
var QueryReferralCodeResponse = {
|
|
8147
|
-
encode(message, writer = new
|
|
8359
|
+
encode(message, writer = new BinaryWriter27()) {
|
|
8148
8360
|
if (message.code !== "") {
|
|
8149
8361
|
writer.uint32(10).string(message.code);
|
|
8150
8362
|
}
|
|
8151
8363
|
return writer;
|
|
8152
8364
|
},
|
|
8153
8365
|
decode(input, length) {
|
|
8154
|
-
const reader = input instanceof
|
|
8366
|
+
const reader = input instanceof BinaryReader27 ? input : new BinaryReader27(input);
|
|
8155
8367
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8156
8368
|
const message = createBaseQueryReferralCodeResponse();
|
|
8157
8369
|
while (reader.pos < end) {
|
|
@@ -8173,7 +8385,7 @@ var QueryReferralCodeResponse = {
|
|
|
8173
8385
|
return message;
|
|
8174
8386
|
},
|
|
8175
8387
|
fromJSON(object2) {
|
|
8176
|
-
return { code:
|
|
8388
|
+
return { code: isSet26(object2.code) ? globalThis.String(object2.code) : "" };
|
|
8177
8389
|
},
|
|
8178
8390
|
toJSON(message) {
|
|
8179
8391
|
const obj = {};
|
|
@@ -8195,7 +8407,7 @@ function createBaseQueryEligibleReferrersResponse() {
|
|
|
8195
8407
|
return { referrers: [], pagination: void 0 };
|
|
8196
8408
|
}
|
|
8197
8409
|
var QueryEligibleReferrersResponse = {
|
|
8198
|
-
encode(message, writer = new
|
|
8410
|
+
encode(message, writer = new BinaryWriter27()) {
|
|
8199
8411
|
for (const v of message.referrers) {
|
|
8200
8412
|
writer.uint32(10).string(v);
|
|
8201
8413
|
}
|
|
@@ -8205,7 +8417,7 @@ var QueryEligibleReferrersResponse = {
|
|
|
8205
8417
|
return writer;
|
|
8206
8418
|
},
|
|
8207
8419
|
decode(input, length) {
|
|
8208
|
-
const reader = input instanceof
|
|
8420
|
+
const reader = input instanceof BinaryReader27 ? input : new BinaryReader27(input);
|
|
8209
8421
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8210
8422
|
const message = createBaseQueryEligibleReferrersResponse();
|
|
8211
8423
|
while (reader.pos < end) {
|
|
@@ -8236,7 +8448,7 @@ var QueryEligibleReferrersResponse = {
|
|
|
8236
8448
|
fromJSON(object2) {
|
|
8237
8449
|
return {
|
|
8238
8450
|
referrers: globalThis.Array.isArray(object2?.referrers) ? object2.referrers.map((e) => globalThis.String(e)) : [],
|
|
8239
|
-
pagination:
|
|
8451
|
+
pagination: isSet26(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
8240
8452
|
};
|
|
8241
8453
|
},
|
|
8242
8454
|
toJSON(message) {
|
|
@@ -8263,14 +8475,14 @@ function createBaseQueryDeployerShareResponse() {
|
|
|
8263
8475
|
return { deployerShare: void 0 };
|
|
8264
8476
|
}
|
|
8265
8477
|
var QueryDeployerShareResponse = {
|
|
8266
|
-
encode(message, writer = new
|
|
8478
|
+
encode(message, writer = new BinaryWriter27()) {
|
|
8267
8479
|
if (message.deployerShare !== void 0) {
|
|
8268
8480
|
DeployerShare.encode(message.deployerShare, writer.uint32(10).fork()).join();
|
|
8269
8481
|
}
|
|
8270
8482
|
return writer;
|
|
8271
8483
|
},
|
|
8272
8484
|
decode(input, length) {
|
|
8273
|
-
const reader = input instanceof
|
|
8485
|
+
const reader = input instanceof BinaryReader27 ? input : new BinaryReader27(input);
|
|
8274
8486
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8275
8487
|
const message = createBaseQueryDeployerShareResponse();
|
|
8276
8488
|
while (reader.pos < end) {
|
|
@@ -8293,7 +8505,7 @@ var QueryDeployerShareResponse = {
|
|
|
8293
8505
|
},
|
|
8294
8506
|
fromJSON(object2) {
|
|
8295
8507
|
return {
|
|
8296
|
-
deployerShare:
|
|
8508
|
+
deployerShare: isSet26(object2.deployerShare) ? DeployerShare.fromJSON(object2.deployerShare) : isSet26(object2.deployer_share) ? DeployerShare.fromJSON(object2.deployer_share) : void 0
|
|
8297
8509
|
};
|
|
8298
8510
|
},
|
|
8299
8511
|
toJSON(message) {
|
|
@@ -8316,7 +8528,7 @@ function createBaseQueryBuilderAllowancesResponse() {
|
|
|
8316
8528
|
return { allowances: [], pagination: void 0 };
|
|
8317
8529
|
}
|
|
8318
8530
|
var QueryBuilderAllowancesResponse = {
|
|
8319
|
-
encode(message, writer = new
|
|
8531
|
+
encode(message, writer = new BinaryWriter27()) {
|
|
8320
8532
|
for (const v of message.allowances) {
|
|
8321
8533
|
BuilderAllowanceEntry.encode(v, writer.uint32(10).fork()).join();
|
|
8322
8534
|
}
|
|
@@ -8326,7 +8538,7 @@ var QueryBuilderAllowancesResponse = {
|
|
|
8326
8538
|
return writer;
|
|
8327
8539
|
},
|
|
8328
8540
|
decode(input, length) {
|
|
8329
|
-
const reader = input instanceof
|
|
8541
|
+
const reader = input instanceof BinaryReader27 ? input : new BinaryReader27(input);
|
|
8330
8542
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8331
8543
|
const message = createBaseQueryBuilderAllowancesResponse();
|
|
8332
8544
|
while (reader.pos < end) {
|
|
@@ -8357,7 +8569,7 @@ var QueryBuilderAllowancesResponse = {
|
|
|
8357
8569
|
fromJSON(object2) {
|
|
8358
8570
|
return {
|
|
8359
8571
|
allowances: globalThis.Array.isArray(object2?.allowances) ? object2.allowances.map((e) => BuilderAllowanceEntry.fromJSON(e)) : [],
|
|
8360
|
-
pagination:
|
|
8572
|
+
pagination: isSet26(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
8361
8573
|
};
|
|
8362
8574
|
},
|
|
8363
8575
|
toJSON(message) {
|
|
@@ -8384,7 +8596,7 @@ function createBaseBuilderAllowanceEntry() {
|
|
|
8384
8596
|
return { builder: "", maxFee: "" };
|
|
8385
8597
|
}
|
|
8386
8598
|
var BuilderAllowanceEntry = {
|
|
8387
|
-
encode(message, writer = new
|
|
8599
|
+
encode(message, writer = new BinaryWriter27()) {
|
|
8388
8600
|
if (message.builder !== "") {
|
|
8389
8601
|
writer.uint32(10).string(message.builder);
|
|
8390
8602
|
}
|
|
@@ -8394,7 +8606,7 @@ var BuilderAllowanceEntry = {
|
|
|
8394
8606
|
return writer;
|
|
8395
8607
|
},
|
|
8396
8608
|
decode(input, length) {
|
|
8397
|
-
const reader = input instanceof
|
|
8609
|
+
const reader = input instanceof BinaryReader27 ? input : new BinaryReader27(input);
|
|
8398
8610
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8399
8611
|
const message = createBaseBuilderAllowanceEntry();
|
|
8400
8612
|
while (reader.pos < end) {
|
|
@@ -8424,8 +8636,8 @@ var BuilderAllowanceEntry = {
|
|
|
8424
8636
|
},
|
|
8425
8637
|
fromJSON(object2) {
|
|
8426
8638
|
return {
|
|
8427
|
-
builder:
|
|
8428
|
-
maxFee:
|
|
8639
|
+
builder: isSet26(object2.builder) ? globalThis.String(object2.builder) : "",
|
|
8640
|
+
maxFee: isSet26(object2.maxFee) ? globalThis.String(object2.maxFee) : isSet26(object2.max_fee) ? globalThis.String(object2.max_fee) : ""
|
|
8429
8641
|
};
|
|
8430
8642
|
},
|
|
8431
8643
|
toJSON(message) {
|
|
@@ -8448,7 +8660,7 @@ var BuilderAllowanceEntry = {
|
|
|
8448
8660
|
return message;
|
|
8449
8661
|
}
|
|
8450
8662
|
};
|
|
8451
|
-
function
|
|
8663
|
+
function isSet26(value) {
|
|
8452
8664
|
return value !== null && value !== void 0;
|
|
8453
8665
|
}
|
|
8454
8666
|
|
|
@@ -8463,7 +8675,7 @@ function assertExactlyOneReferrerLookupParam(params) {
|
|
|
8463
8675
|
function createRewardApi(context) {
|
|
8464
8676
|
return {
|
|
8465
8677
|
async getParams() {
|
|
8466
|
-
return fetchProtoJson(context, "/ault/reward/v1/params",
|
|
8678
|
+
return fetchProtoJson(context, "/ault/reward/v1/params", QueryParamsResponse8);
|
|
8467
8679
|
},
|
|
8468
8680
|
async getReferrer(params) {
|
|
8469
8681
|
assertExactlyOneReferrerLookupParam(params);
|
|
@@ -8513,10 +8725,10 @@ function createRewardApi(context) {
|
|
|
8513
8725
|
}
|
|
8514
8726
|
|
|
8515
8727
|
// src/proto/gen/cosmos/staking/v1beta1/query.ts
|
|
8516
|
-
import { BinaryReader as
|
|
8728
|
+
import { BinaryReader as BinaryReader29, BinaryWriter as BinaryWriter29 } from "@bufbuild/protobuf/wire";
|
|
8517
8729
|
|
|
8518
8730
|
// src/proto/gen/cosmos/staking/v1beta1/staking.ts
|
|
8519
|
-
import { BinaryReader as
|
|
8731
|
+
import { BinaryReader as BinaryReader28, BinaryWriter as BinaryWriter28 } from "@bufbuild/protobuf/wire";
|
|
8520
8732
|
var BondStatus = /* @__PURE__ */ ((BondStatus3) => {
|
|
8521
8733
|
BondStatus3[BondStatus3["BOND_STATUS_UNSPECIFIED"] = 0] = "BOND_STATUS_UNSPECIFIED";
|
|
8522
8734
|
BondStatus3[BondStatus3["BOND_STATUS_UNBONDED"] = 1] = "BOND_STATUS_UNBONDED";
|
|
@@ -8564,7 +8776,7 @@ function createBaseCommissionRates() {
|
|
|
8564
8776
|
return { rate: "", maxRate: "", maxChangeRate: "" };
|
|
8565
8777
|
}
|
|
8566
8778
|
var CommissionRates = {
|
|
8567
|
-
encode(message, writer = new
|
|
8779
|
+
encode(message, writer = new BinaryWriter28()) {
|
|
8568
8780
|
if (message.rate !== "") {
|
|
8569
8781
|
writer.uint32(10).string(message.rate);
|
|
8570
8782
|
}
|
|
@@ -8577,7 +8789,7 @@ var CommissionRates = {
|
|
|
8577
8789
|
return writer;
|
|
8578
8790
|
},
|
|
8579
8791
|
decode(input, length) {
|
|
8580
|
-
const reader = input instanceof
|
|
8792
|
+
const reader = input instanceof BinaryReader28 ? input : new BinaryReader28(input);
|
|
8581
8793
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8582
8794
|
const message = createBaseCommissionRates();
|
|
8583
8795
|
while (reader.pos < end) {
|
|
@@ -8614,9 +8826,9 @@ var CommissionRates = {
|
|
|
8614
8826
|
},
|
|
8615
8827
|
fromJSON(object2) {
|
|
8616
8828
|
return {
|
|
8617
|
-
rate:
|
|
8618
|
-
maxRate:
|
|
8619
|
-
maxChangeRate:
|
|
8829
|
+
rate: isSet27(object2.rate) ? globalThis.String(object2.rate) : "",
|
|
8830
|
+
maxRate: isSet27(object2.maxRate) ? globalThis.String(object2.maxRate) : isSet27(object2.max_rate) ? globalThis.String(object2.max_rate) : "",
|
|
8831
|
+
maxChangeRate: isSet27(object2.maxChangeRate) ? globalThis.String(object2.maxChangeRate) : isSet27(object2.max_change_rate) ? globalThis.String(object2.max_change_rate) : ""
|
|
8620
8832
|
};
|
|
8621
8833
|
},
|
|
8622
8834
|
toJSON(message) {
|
|
@@ -8647,7 +8859,7 @@ function createBaseCommission() {
|
|
|
8647
8859
|
return { commissionRates: void 0, updateTime: void 0 };
|
|
8648
8860
|
}
|
|
8649
8861
|
var Commission = {
|
|
8650
|
-
encode(message, writer = new
|
|
8862
|
+
encode(message, writer = new BinaryWriter28()) {
|
|
8651
8863
|
if (message.commissionRates !== void 0) {
|
|
8652
8864
|
CommissionRates.encode(message.commissionRates, writer.uint32(10).fork()).join();
|
|
8653
8865
|
}
|
|
@@ -8657,7 +8869,7 @@ var Commission = {
|
|
|
8657
8869
|
return writer;
|
|
8658
8870
|
},
|
|
8659
8871
|
decode(input, length) {
|
|
8660
|
-
const reader = input instanceof
|
|
8872
|
+
const reader = input instanceof BinaryReader28 ? input : new BinaryReader28(input);
|
|
8661
8873
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8662
8874
|
const message = createBaseCommission();
|
|
8663
8875
|
while (reader.pos < end) {
|
|
@@ -8687,8 +8899,8 @@ var Commission = {
|
|
|
8687
8899
|
},
|
|
8688
8900
|
fromJSON(object2) {
|
|
8689
8901
|
return {
|
|
8690
|
-
commissionRates:
|
|
8691
|
-
updateTime:
|
|
8902
|
+
commissionRates: isSet27(object2.commissionRates) ? CommissionRates.fromJSON(object2.commissionRates) : isSet27(object2.commission_rates) ? CommissionRates.fromJSON(object2.commission_rates) : void 0,
|
|
8903
|
+
updateTime: isSet27(object2.updateTime) ? fromJsonTimestamp5(object2.updateTime) : isSet27(object2.update_time) ? fromJsonTimestamp5(object2.update_time) : void 0
|
|
8692
8904
|
};
|
|
8693
8905
|
},
|
|
8694
8906
|
toJSON(message) {
|
|
@@ -8715,7 +8927,7 @@ function createBaseDescription() {
|
|
|
8715
8927
|
return { moniker: "", identity: "", website: "", securityContact: "", details: "" };
|
|
8716
8928
|
}
|
|
8717
8929
|
var Description = {
|
|
8718
|
-
encode(message, writer = new
|
|
8930
|
+
encode(message, writer = new BinaryWriter28()) {
|
|
8719
8931
|
if (message.moniker !== "") {
|
|
8720
8932
|
writer.uint32(10).string(message.moniker);
|
|
8721
8933
|
}
|
|
@@ -8734,7 +8946,7 @@ var Description = {
|
|
|
8734
8946
|
return writer;
|
|
8735
8947
|
},
|
|
8736
8948
|
decode(input, length) {
|
|
8737
|
-
const reader = input instanceof
|
|
8949
|
+
const reader = input instanceof BinaryReader28 ? input : new BinaryReader28(input);
|
|
8738
8950
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8739
8951
|
const message = createBaseDescription();
|
|
8740
8952
|
while (reader.pos < end) {
|
|
@@ -8785,11 +8997,11 @@ var Description = {
|
|
|
8785
8997
|
},
|
|
8786
8998
|
fromJSON(object2) {
|
|
8787
8999
|
return {
|
|
8788
|
-
moniker:
|
|
8789
|
-
identity:
|
|
8790
|
-
website:
|
|
8791
|
-
securityContact:
|
|
8792
|
-
details:
|
|
9000
|
+
moniker: isSet27(object2.moniker) ? globalThis.String(object2.moniker) : "",
|
|
9001
|
+
identity: isSet27(object2.identity) ? globalThis.String(object2.identity) : "",
|
|
9002
|
+
website: isSet27(object2.website) ? globalThis.String(object2.website) : "",
|
|
9003
|
+
securityContact: isSet27(object2.securityContact) ? globalThis.String(object2.securityContact) : isSet27(object2.security_contact) ? globalThis.String(object2.security_contact) : "",
|
|
9004
|
+
details: isSet27(object2.details) ? globalThis.String(object2.details) : ""
|
|
8793
9005
|
};
|
|
8794
9006
|
},
|
|
8795
9007
|
toJSON(message) {
|
|
@@ -8842,7 +9054,7 @@ function createBaseValidator() {
|
|
|
8842
9054
|
};
|
|
8843
9055
|
}
|
|
8844
9056
|
var Validator = {
|
|
8845
|
-
encode(message, writer = new
|
|
9057
|
+
encode(message, writer = new BinaryWriter28()) {
|
|
8846
9058
|
if (message.operatorAddress !== "") {
|
|
8847
9059
|
writer.uint32(10).string(message.operatorAddress);
|
|
8848
9060
|
}
|
|
@@ -8902,7 +9114,7 @@ var Validator = {
|
|
|
8902
9114
|
return writer;
|
|
8903
9115
|
},
|
|
8904
9116
|
decode(input, length) {
|
|
8905
|
-
const reader = input instanceof
|
|
9117
|
+
const reader = input instanceof BinaryReader28 ? input : new BinaryReader28(input);
|
|
8906
9118
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8907
9119
|
const message = createBaseValidator();
|
|
8908
9120
|
while (reader.pos < end) {
|
|
@@ -9016,18 +9228,18 @@ var Validator = {
|
|
|
9016
9228
|
},
|
|
9017
9229
|
fromJSON(object2) {
|
|
9018
9230
|
return {
|
|
9019
|
-
operatorAddress:
|
|
9020
|
-
consensusPubkey:
|
|
9021
|
-
jailed:
|
|
9022
|
-
status:
|
|
9023
|
-
tokens:
|
|
9024
|
-
delegatorShares:
|
|
9025
|
-
description:
|
|
9026
|
-
unbondingHeight:
|
|
9027
|
-
unbondingTime:
|
|
9028
|
-
commission:
|
|
9029
|
-
minSelfDelegation:
|
|
9030
|
-
unbondingOnHoldRefCount:
|
|
9231
|
+
operatorAddress: isSet27(object2.operatorAddress) ? globalThis.String(object2.operatorAddress) : isSet27(object2.operator_address) ? globalThis.String(object2.operator_address) : "",
|
|
9232
|
+
consensusPubkey: isSet27(object2.consensusPubkey) ? Any.fromJSON(object2.consensusPubkey) : isSet27(object2.consensus_pubkey) ? Any.fromJSON(object2.consensus_pubkey) : void 0,
|
|
9233
|
+
jailed: isSet27(object2.jailed) ? globalThis.Boolean(object2.jailed) : false,
|
|
9234
|
+
status: isSet27(object2.status) ? bondStatusFromJSON(object2.status) : 0,
|
|
9235
|
+
tokens: isSet27(object2.tokens) ? globalThis.String(object2.tokens) : "",
|
|
9236
|
+
delegatorShares: isSet27(object2.delegatorShares) ? globalThis.String(object2.delegatorShares) : isSet27(object2.delegator_shares) ? globalThis.String(object2.delegator_shares) : "",
|
|
9237
|
+
description: isSet27(object2.description) ? Description.fromJSON(object2.description) : void 0,
|
|
9238
|
+
unbondingHeight: isSet27(object2.unbondingHeight) ? BigInt(object2.unbondingHeight) : isSet27(object2.unbonding_height) ? BigInt(object2.unbonding_height) : 0n,
|
|
9239
|
+
unbondingTime: isSet27(object2.unbondingTime) ? fromJsonTimestamp5(object2.unbondingTime) : isSet27(object2.unbonding_time) ? fromJsonTimestamp5(object2.unbonding_time) : void 0,
|
|
9240
|
+
commission: isSet27(object2.commission) ? Commission.fromJSON(object2.commission) : void 0,
|
|
9241
|
+
minSelfDelegation: isSet27(object2.minSelfDelegation) ? globalThis.String(object2.minSelfDelegation) : isSet27(object2.min_self_delegation) ? globalThis.String(object2.min_self_delegation) : "",
|
|
9242
|
+
unbondingOnHoldRefCount: isSet27(object2.unbondingOnHoldRefCount) ? BigInt(object2.unbondingOnHoldRefCount) : isSet27(object2.unbonding_on_hold_ref_count) ? BigInt(object2.unbonding_on_hold_ref_count) : 0n,
|
|
9031
9243
|
unbondingIds: globalThis.Array.isArray(object2?.unbondingIds) ? object2.unbondingIds.map((e) => BigInt(e)) : globalThis.Array.isArray(object2?.unbonding_ids) ? object2.unbonding_ids.map((e) => BigInt(e)) : []
|
|
9032
9244
|
};
|
|
9033
9245
|
},
|
|
@@ -9099,7 +9311,7 @@ function createBaseDelegation() {
|
|
|
9099
9311
|
return { delegatorAddress: "", validatorAddress: "", shares: "" };
|
|
9100
9312
|
}
|
|
9101
9313
|
var Delegation = {
|
|
9102
|
-
encode(message, writer = new
|
|
9314
|
+
encode(message, writer = new BinaryWriter28()) {
|
|
9103
9315
|
if (message.delegatorAddress !== "") {
|
|
9104
9316
|
writer.uint32(10).string(message.delegatorAddress);
|
|
9105
9317
|
}
|
|
@@ -9112,7 +9324,7 @@ var Delegation = {
|
|
|
9112
9324
|
return writer;
|
|
9113
9325
|
},
|
|
9114
9326
|
decode(input, length) {
|
|
9115
|
-
const reader = input instanceof
|
|
9327
|
+
const reader = input instanceof BinaryReader28 ? input : new BinaryReader28(input);
|
|
9116
9328
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9117
9329
|
const message = createBaseDelegation();
|
|
9118
9330
|
while (reader.pos < end) {
|
|
@@ -9149,9 +9361,9 @@ var Delegation = {
|
|
|
9149
9361
|
},
|
|
9150
9362
|
fromJSON(object2) {
|
|
9151
9363
|
return {
|
|
9152
|
-
delegatorAddress:
|
|
9153
|
-
validatorAddress:
|
|
9154
|
-
shares:
|
|
9364
|
+
delegatorAddress: isSet27(object2.delegatorAddress) ? globalThis.String(object2.delegatorAddress) : isSet27(object2.delegator_address) ? globalThis.String(object2.delegator_address) : "",
|
|
9365
|
+
validatorAddress: isSet27(object2.validatorAddress) ? globalThis.String(object2.validatorAddress) : isSet27(object2.validator_address) ? globalThis.String(object2.validator_address) : "",
|
|
9366
|
+
shares: isSet27(object2.shares) ? globalThis.String(object2.shares) : ""
|
|
9155
9367
|
};
|
|
9156
9368
|
},
|
|
9157
9369
|
toJSON(message) {
|
|
@@ -9182,7 +9394,7 @@ function createBaseUnbondingDelegation() {
|
|
|
9182
9394
|
return { delegatorAddress: "", validatorAddress: "", entries: [] };
|
|
9183
9395
|
}
|
|
9184
9396
|
var UnbondingDelegation = {
|
|
9185
|
-
encode(message, writer = new
|
|
9397
|
+
encode(message, writer = new BinaryWriter28()) {
|
|
9186
9398
|
if (message.delegatorAddress !== "") {
|
|
9187
9399
|
writer.uint32(10).string(message.delegatorAddress);
|
|
9188
9400
|
}
|
|
@@ -9195,7 +9407,7 @@ var UnbondingDelegation = {
|
|
|
9195
9407
|
return writer;
|
|
9196
9408
|
},
|
|
9197
9409
|
decode(input, length) {
|
|
9198
|
-
const reader = input instanceof
|
|
9410
|
+
const reader = input instanceof BinaryReader28 ? input : new BinaryReader28(input);
|
|
9199
9411
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9200
9412
|
const message = createBaseUnbondingDelegation();
|
|
9201
9413
|
while (reader.pos < end) {
|
|
@@ -9232,8 +9444,8 @@ var UnbondingDelegation = {
|
|
|
9232
9444
|
},
|
|
9233
9445
|
fromJSON(object2) {
|
|
9234
9446
|
return {
|
|
9235
|
-
delegatorAddress:
|
|
9236
|
-
validatorAddress:
|
|
9447
|
+
delegatorAddress: isSet27(object2.delegatorAddress) ? globalThis.String(object2.delegatorAddress) : isSet27(object2.delegator_address) ? globalThis.String(object2.delegator_address) : "",
|
|
9448
|
+
validatorAddress: isSet27(object2.validatorAddress) ? globalThis.String(object2.validatorAddress) : isSet27(object2.validator_address) ? globalThis.String(object2.validator_address) : "",
|
|
9237
9449
|
entries: globalThis.Array.isArray(object2?.entries) ? object2.entries.map((e) => UnbondingDelegationEntry.fromJSON(e)) : []
|
|
9238
9450
|
};
|
|
9239
9451
|
},
|
|
@@ -9272,7 +9484,7 @@ function createBaseUnbondingDelegationEntry() {
|
|
|
9272
9484
|
};
|
|
9273
9485
|
}
|
|
9274
9486
|
var UnbondingDelegationEntry = {
|
|
9275
|
-
encode(message, writer = new
|
|
9487
|
+
encode(message, writer = new BinaryWriter28()) {
|
|
9276
9488
|
if (message.creationHeight !== 0n) {
|
|
9277
9489
|
if (BigInt.asIntN(64, message.creationHeight) !== message.creationHeight) {
|
|
9278
9490
|
throw new globalThis.Error(
|
|
@@ -9309,7 +9521,7 @@ var UnbondingDelegationEntry = {
|
|
|
9309
9521
|
return writer;
|
|
9310
9522
|
},
|
|
9311
9523
|
decode(input, length) {
|
|
9312
|
-
const reader = input instanceof
|
|
9524
|
+
const reader = input instanceof BinaryReader28 ? input : new BinaryReader28(input);
|
|
9313
9525
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9314
9526
|
const message = createBaseUnbondingDelegationEntry();
|
|
9315
9527
|
while (reader.pos < end) {
|
|
@@ -9367,12 +9579,12 @@ var UnbondingDelegationEntry = {
|
|
|
9367
9579
|
},
|
|
9368
9580
|
fromJSON(object2) {
|
|
9369
9581
|
return {
|
|
9370
|
-
creationHeight:
|
|
9371
|
-
completionTime:
|
|
9372
|
-
initialBalance:
|
|
9373
|
-
balance:
|
|
9374
|
-
unbondingId:
|
|
9375
|
-
unbondingOnHoldRefCount:
|
|
9582
|
+
creationHeight: isSet27(object2.creationHeight) ? BigInt(object2.creationHeight) : isSet27(object2.creation_height) ? BigInt(object2.creation_height) : 0n,
|
|
9583
|
+
completionTime: isSet27(object2.completionTime) ? fromJsonTimestamp5(object2.completionTime) : isSet27(object2.completion_time) ? fromJsonTimestamp5(object2.completion_time) : void 0,
|
|
9584
|
+
initialBalance: isSet27(object2.initialBalance) ? globalThis.String(object2.initialBalance) : isSet27(object2.initial_balance) ? globalThis.String(object2.initial_balance) : "",
|
|
9585
|
+
balance: isSet27(object2.balance) ? globalThis.String(object2.balance) : "",
|
|
9586
|
+
unbondingId: isSet27(object2.unbondingId) ? BigInt(object2.unbondingId) : isSet27(object2.unbonding_id) ? BigInt(object2.unbonding_id) : 0n,
|
|
9587
|
+
unbondingOnHoldRefCount: isSet27(object2.unbondingOnHoldRefCount) ? BigInt(object2.unbondingOnHoldRefCount) : isSet27(object2.unbonding_on_hold_ref_count) ? BigInt(object2.unbonding_on_hold_ref_count) : 0n
|
|
9376
9588
|
};
|
|
9377
9589
|
},
|
|
9378
9590
|
toJSON(message) {
|
|
@@ -9411,7 +9623,7 @@ var UnbondingDelegationEntry = {
|
|
|
9411
9623
|
return message;
|
|
9412
9624
|
}
|
|
9413
9625
|
};
|
|
9414
|
-
function
|
|
9626
|
+
function createBaseParams9() {
|
|
9415
9627
|
return {
|
|
9416
9628
|
unbondingTime: void 0,
|
|
9417
9629
|
maxValidators: 0,
|
|
@@ -9421,8 +9633,8 @@ function createBaseParams8() {
|
|
|
9421
9633
|
minCommissionRate: ""
|
|
9422
9634
|
};
|
|
9423
9635
|
}
|
|
9424
|
-
var
|
|
9425
|
-
encode(message, writer = new
|
|
9636
|
+
var Params10 = {
|
|
9637
|
+
encode(message, writer = new BinaryWriter28()) {
|
|
9426
9638
|
if (message.unbondingTime !== void 0) {
|
|
9427
9639
|
Duration.encode(message.unbondingTime, writer.uint32(10).fork()).join();
|
|
9428
9640
|
}
|
|
@@ -9444,9 +9656,9 @@ var Params9 = {
|
|
|
9444
9656
|
return writer;
|
|
9445
9657
|
},
|
|
9446
9658
|
decode(input, length) {
|
|
9447
|
-
const reader = input instanceof
|
|
9659
|
+
const reader = input instanceof BinaryReader28 ? input : new BinaryReader28(input);
|
|
9448
9660
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9449
|
-
const message =
|
|
9661
|
+
const message = createBaseParams9();
|
|
9450
9662
|
while (reader.pos < end) {
|
|
9451
9663
|
const tag = reader.uint32();
|
|
9452
9664
|
switch (tag >>> 3) {
|
|
@@ -9502,12 +9714,12 @@ var Params9 = {
|
|
|
9502
9714
|
},
|
|
9503
9715
|
fromJSON(object2) {
|
|
9504
9716
|
return {
|
|
9505
|
-
unbondingTime:
|
|
9506
|
-
maxValidators:
|
|
9507
|
-
maxEntries:
|
|
9508
|
-
historicalEntries:
|
|
9509
|
-
bondDenom:
|
|
9510
|
-
minCommissionRate:
|
|
9717
|
+
unbondingTime: isSet27(object2.unbondingTime) ? Duration.fromJSON(object2.unbondingTime) : isSet27(object2.unbonding_time) ? Duration.fromJSON(object2.unbonding_time) : void 0,
|
|
9718
|
+
maxValidators: isSet27(object2.maxValidators) ? globalThis.Number(object2.maxValidators) : isSet27(object2.max_validators) ? globalThis.Number(object2.max_validators) : 0,
|
|
9719
|
+
maxEntries: isSet27(object2.maxEntries) ? globalThis.Number(object2.maxEntries) : isSet27(object2.max_entries) ? globalThis.Number(object2.max_entries) : 0,
|
|
9720
|
+
historicalEntries: isSet27(object2.historicalEntries) ? globalThis.Number(object2.historicalEntries) : isSet27(object2.historical_entries) ? globalThis.Number(object2.historical_entries) : 0,
|
|
9721
|
+
bondDenom: isSet27(object2.bondDenom) ? globalThis.String(object2.bondDenom) : isSet27(object2.bond_denom) ? globalThis.String(object2.bond_denom) : "",
|
|
9722
|
+
minCommissionRate: isSet27(object2.minCommissionRate) ? globalThis.String(object2.minCommissionRate) : isSet27(object2.min_commission_rate) ? globalThis.String(object2.min_commission_rate) : ""
|
|
9511
9723
|
};
|
|
9512
9724
|
},
|
|
9513
9725
|
toJSON(message) {
|
|
@@ -9533,10 +9745,10 @@ var Params9 = {
|
|
|
9533
9745
|
return obj;
|
|
9534
9746
|
},
|
|
9535
9747
|
create(base) {
|
|
9536
|
-
return
|
|
9748
|
+
return Params10.fromPartial(base ?? {});
|
|
9537
9749
|
},
|
|
9538
9750
|
fromPartial(object2) {
|
|
9539
|
-
const message =
|
|
9751
|
+
const message = createBaseParams9();
|
|
9540
9752
|
message.unbondingTime = object2.unbondingTime !== void 0 && object2.unbondingTime !== null ? Duration.fromPartial(object2.unbondingTime) : void 0;
|
|
9541
9753
|
message.maxValidators = object2.maxValidators ?? 0;
|
|
9542
9754
|
message.maxEntries = object2.maxEntries ?? 0;
|
|
@@ -9550,7 +9762,7 @@ function createBaseDelegationResponse() {
|
|
|
9550
9762
|
return { delegation: void 0, balance: void 0 };
|
|
9551
9763
|
}
|
|
9552
9764
|
var DelegationResponse = {
|
|
9553
|
-
encode(message, writer = new
|
|
9765
|
+
encode(message, writer = new BinaryWriter28()) {
|
|
9554
9766
|
if (message.delegation !== void 0) {
|
|
9555
9767
|
Delegation.encode(message.delegation, writer.uint32(10).fork()).join();
|
|
9556
9768
|
}
|
|
@@ -9560,7 +9772,7 @@ var DelegationResponse = {
|
|
|
9560
9772
|
return writer;
|
|
9561
9773
|
},
|
|
9562
9774
|
decode(input, length) {
|
|
9563
|
-
const reader = input instanceof
|
|
9775
|
+
const reader = input instanceof BinaryReader28 ? input : new BinaryReader28(input);
|
|
9564
9776
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9565
9777
|
const message = createBaseDelegationResponse();
|
|
9566
9778
|
while (reader.pos < end) {
|
|
@@ -9590,8 +9802,8 @@ var DelegationResponse = {
|
|
|
9590
9802
|
},
|
|
9591
9803
|
fromJSON(object2) {
|
|
9592
9804
|
return {
|
|
9593
|
-
delegation:
|
|
9594
|
-
balance:
|
|
9805
|
+
delegation: isSet27(object2.delegation) ? Delegation.fromJSON(object2.delegation) : void 0,
|
|
9806
|
+
balance: isSet27(object2.balance) ? Coin.fromJSON(object2.balance) : void 0
|
|
9595
9807
|
};
|
|
9596
9808
|
},
|
|
9597
9809
|
toJSON(message) {
|
|
@@ -9618,7 +9830,7 @@ function createBasePool() {
|
|
|
9618
9830
|
return { notBondedTokens: "", bondedTokens: "" };
|
|
9619
9831
|
}
|
|
9620
9832
|
var Pool = {
|
|
9621
|
-
encode(message, writer = new
|
|
9833
|
+
encode(message, writer = new BinaryWriter28()) {
|
|
9622
9834
|
if (message.notBondedTokens !== "") {
|
|
9623
9835
|
writer.uint32(10).string(message.notBondedTokens);
|
|
9624
9836
|
}
|
|
@@ -9628,7 +9840,7 @@ var Pool = {
|
|
|
9628
9840
|
return writer;
|
|
9629
9841
|
},
|
|
9630
9842
|
decode(input, length) {
|
|
9631
|
-
const reader = input instanceof
|
|
9843
|
+
const reader = input instanceof BinaryReader28 ? input : new BinaryReader28(input);
|
|
9632
9844
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9633
9845
|
const message = createBasePool();
|
|
9634
9846
|
while (reader.pos < end) {
|
|
@@ -9658,8 +9870,8 @@ var Pool = {
|
|
|
9658
9870
|
},
|
|
9659
9871
|
fromJSON(object2) {
|
|
9660
9872
|
return {
|
|
9661
|
-
notBondedTokens:
|
|
9662
|
-
bondedTokens:
|
|
9873
|
+
notBondedTokens: isSet27(object2.notBondedTokens) ? globalThis.String(object2.notBondedTokens) : isSet27(object2.not_bonded_tokens) ? globalThis.String(object2.not_bonded_tokens) : "",
|
|
9874
|
+
bondedTokens: isSet27(object2.bondedTokens) ? globalThis.String(object2.bondedTokens) : isSet27(object2.bonded_tokens) ? globalThis.String(object2.bonded_tokens) : ""
|
|
9663
9875
|
};
|
|
9664
9876
|
},
|
|
9665
9877
|
toJSON(message) {
|
|
@@ -9701,7 +9913,7 @@ function fromJsonTimestamp5(o) {
|
|
|
9701
9913
|
return fromTimestamp5(Timestamp.fromJSON(o));
|
|
9702
9914
|
}
|
|
9703
9915
|
}
|
|
9704
|
-
function
|
|
9916
|
+
function isSet27(value) {
|
|
9705
9917
|
return value !== null && value !== void 0;
|
|
9706
9918
|
}
|
|
9707
9919
|
|
|
@@ -9710,7 +9922,7 @@ function createBaseQueryValidatorsResponse() {
|
|
|
9710
9922
|
return { validators: [], pagination: void 0 };
|
|
9711
9923
|
}
|
|
9712
9924
|
var QueryValidatorsResponse = {
|
|
9713
|
-
encode(message, writer = new
|
|
9925
|
+
encode(message, writer = new BinaryWriter29()) {
|
|
9714
9926
|
for (const v of message.validators) {
|
|
9715
9927
|
Validator.encode(v, writer.uint32(10).fork()).join();
|
|
9716
9928
|
}
|
|
@@ -9720,7 +9932,7 @@ var QueryValidatorsResponse = {
|
|
|
9720
9932
|
return writer;
|
|
9721
9933
|
},
|
|
9722
9934
|
decode(input, length) {
|
|
9723
|
-
const reader = input instanceof
|
|
9935
|
+
const reader = input instanceof BinaryReader29 ? input : new BinaryReader29(input);
|
|
9724
9936
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9725
9937
|
const message = createBaseQueryValidatorsResponse();
|
|
9726
9938
|
while (reader.pos < end) {
|
|
@@ -9751,7 +9963,7 @@ var QueryValidatorsResponse = {
|
|
|
9751
9963
|
fromJSON(object2) {
|
|
9752
9964
|
return {
|
|
9753
9965
|
validators: globalThis.Array.isArray(object2?.validators) ? object2.validators.map((e) => Validator.fromJSON(e)) : [],
|
|
9754
|
-
pagination:
|
|
9966
|
+
pagination: isSet28(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
9755
9967
|
};
|
|
9756
9968
|
},
|
|
9757
9969
|
toJSON(message) {
|
|
@@ -9778,14 +9990,14 @@ function createBaseQueryValidatorResponse() {
|
|
|
9778
9990
|
return { validator: void 0 };
|
|
9779
9991
|
}
|
|
9780
9992
|
var QueryValidatorResponse = {
|
|
9781
|
-
encode(message, writer = new
|
|
9993
|
+
encode(message, writer = new BinaryWriter29()) {
|
|
9782
9994
|
if (message.validator !== void 0) {
|
|
9783
9995
|
Validator.encode(message.validator, writer.uint32(10).fork()).join();
|
|
9784
9996
|
}
|
|
9785
9997
|
return writer;
|
|
9786
9998
|
},
|
|
9787
9999
|
decode(input, length) {
|
|
9788
|
-
const reader = input instanceof
|
|
10000
|
+
const reader = input instanceof BinaryReader29 ? input : new BinaryReader29(input);
|
|
9789
10001
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9790
10002
|
const message = createBaseQueryValidatorResponse();
|
|
9791
10003
|
while (reader.pos < end) {
|
|
@@ -9808,7 +10020,7 @@ var QueryValidatorResponse = {
|
|
|
9808
10020
|
},
|
|
9809
10021
|
fromJSON(object2) {
|
|
9810
10022
|
return {
|
|
9811
|
-
validator:
|
|
10023
|
+
validator: isSet28(object2.validator) ? Validator.fromJSON(object2.validator) : void 0
|
|
9812
10024
|
};
|
|
9813
10025
|
},
|
|
9814
10026
|
toJSON(message) {
|
|
@@ -9831,14 +10043,14 @@ function createBaseQueryDelegationResponse() {
|
|
|
9831
10043
|
return { delegationResponse: void 0 };
|
|
9832
10044
|
}
|
|
9833
10045
|
var QueryDelegationResponse = {
|
|
9834
|
-
encode(message, writer = new
|
|
10046
|
+
encode(message, writer = new BinaryWriter29()) {
|
|
9835
10047
|
if (message.delegationResponse !== void 0) {
|
|
9836
10048
|
DelegationResponse.encode(message.delegationResponse, writer.uint32(10).fork()).join();
|
|
9837
10049
|
}
|
|
9838
10050
|
return writer;
|
|
9839
10051
|
},
|
|
9840
10052
|
decode(input, length) {
|
|
9841
|
-
const reader = input instanceof
|
|
10053
|
+
const reader = input instanceof BinaryReader29 ? input : new BinaryReader29(input);
|
|
9842
10054
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9843
10055
|
const message = createBaseQueryDelegationResponse();
|
|
9844
10056
|
while (reader.pos < end) {
|
|
@@ -9861,7 +10073,7 @@ var QueryDelegationResponse = {
|
|
|
9861
10073
|
},
|
|
9862
10074
|
fromJSON(object2) {
|
|
9863
10075
|
return {
|
|
9864
|
-
delegationResponse:
|
|
10076
|
+
delegationResponse: isSet28(object2.delegationResponse) ? DelegationResponse.fromJSON(object2.delegationResponse) : isSet28(object2.delegation_response) ? DelegationResponse.fromJSON(object2.delegation_response) : void 0
|
|
9865
10077
|
};
|
|
9866
10078
|
},
|
|
9867
10079
|
toJSON(message) {
|
|
@@ -9884,7 +10096,7 @@ function createBaseQueryDelegatorDelegationsResponse() {
|
|
|
9884
10096
|
return { delegationResponses: [], pagination: void 0 };
|
|
9885
10097
|
}
|
|
9886
10098
|
var QueryDelegatorDelegationsResponse = {
|
|
9887
|
-
encode(message, writer = new
|
|
10099
|
+
encode(message, writer = new BinaryWriter29()) {
|
|
9888
10100
|
for (const v of message.delegationResponses) {
|
|
9889
10101
|
DelegationResponse.encode(v, writer.uint32(10).fork()).join();
|
|
9890
10102
|
}
|
|
@@ -9894,7 +10106,7 @@ var QueryDelegatorDelegationsResponse = {
|
|
|
9894
10106
|
return writer;
|
|
9895
10107
|
},
|
|
9896
10108
|
decode(input, length) {
|
|
9897
|
-
const reader = input instanceof
|
|
10109
|
+
const reader = input instanceof BinaryReader29 ? input : new BinaryReader29(input);
|
|
9898
10110
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9899
10111
|
const message = createBaseQueryDelegatorDelegationsResponse();
|
|
9900
10112
|
while (reader.pos < end) {
|
|
@@ -9925,7 +10137,7 @@ var QueryDelegatorDelegationsResponse = {
|
|
|
9925
10137
|
fromJSON(object2) {
|
|
9926
10138
|
return {
|
|
9927
10139
|
delegationResponses: globalThis.Array.isArray(object2?.delegationResponses) ? object2.delegationResponses.map((e) => DelegationResponse.fromJSON(e)) : globalThis.Array.isArray(object2?.delegation_responses) ? object2.delegation_responses.map((e) => DelegationResponse.fromJSON(e)) : [],
|
|
9928
|
-
pagination:
|
|
10140
|
+
pagination: isSet28(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
9929
10141
|
};
|
|
9930
10142
|
},
|
|
9931
10143
|
toJSON(message) {
|
|
@@ -9954,7 +10166,7 @@ function createBaseQueryDelegatorUnbondingDelegationsResponse() {
|
|
|
9954
10166
|
return { unbondingResponses: [], pagination: void 0 };
|
|
9955
10167
|
}
|
|
9956
10168
|
var QueryDelegatorUnbondingDelegationsResponse = {
|
|
9957
|
-
encode(message, writer = new
|
|
10169
|
+
encode(message, writer = new BinaryWriter29()) {
|
|
9958
10170
|
for (const v of message.unbondingResponses) {
|
|
9959
10171
|
UnbondingDelegation.encode(v, writer.uint32(10).fork()).join();
|
|
9960
10172
|
}
|
|
@@ -9964,7 +10176,7 @@ var QueryDelegatorUnbondingDelegationsResponse = {
|
|
|
9964
10176
|
return writer;
|
|
9965
10177
|
},
|
|
9966
10178
|
decode(input, length) {
|
|
9967
|
-
const reader = input instanceof
|
|
10179
|
+
const reader = input instanceof BinaryReader29 ? input : new BinaryReader29(input);
|
|
9968
10180
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9969
10181
|
const message = createBaseQueryDelegatorUnbondingDelegationsResponse();
|
|
9970
10182
|
while (reader.pos < end) {
|
|
@@ -9995,7 +10207,7 @@ var QueryDelegatorUnbondingDelegationsResponse = {
|
|
|
9995
10207
|
fromJSON(object2) {
|
|
9996
10208
|
return {
|
|
9997
10209
|
unbondingResponses: globalThis.Array.isArray(object2?.unbondingResponses) ? object2.unbondingResponses.map((e) => UnbondingDelegation.fromJSON(e)) : globalThis.Array.isArray(object2?.unbonding_responses) ? object2.unbonding_responses.map((e) => UnbondingDelegation.fromJSON(e)) : [],
|
|
9998
|
-
pagination:
|
|
10210
|
+
pagination: isSet28(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
9999
10211
|
};
|
|
10000
10212
|
},
|
|
10001
10213
|
toJSON(message) {
|
|
@@ -10024,14 +10236,14 @@ function createBaseQueryPoolResponse() {
|
|
|
10024
10236
|
return { pool: void 0 };
|
|
10025
10237
|
}
|
|
10026
10238
|
var QueryPoolResponse = {
|
|
10027
|
-
encode(message, writer = new
|
|
10239
|
+
encode(message, writer = new BinaryWriter29()) {
|
|
10028
10240
|
if (message.pool !== void 0) {
|
|
10029
10241
|
Pool.encode(message.pool, writer.uint32(10).fork()).join();
|
|
10030
10242
|
}
|
|
10031
10243
|
return writer;
|
|
10032
10244
|
},
|
|
10033
10245
|
decode(input, length) {
|
|
10034
|
-
const reader = input instanceof
|
|
10246
|
+
const reader = input instanceof BinaryReader29 ? input : new BinaryReader29(input);
|
|
10035
10247
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10036
10248
|
const message = createBaseQueryPoolResponse();
|
|
10037
10249
|
while (reader.pos < end) {
|
|
@@ -10053,7 +10265,7 @@ var QueryPoolResponse = {
|
|
|
10053
10265
|
return message;
|
|
10054
10266
|
},
|
|
10055
10267
|
fromJSON(object2) {
|
|
10056
|
-
return { pool:
|
|
10268
|
+
return { pool: isSet28(object2.pool) ? Pool.fromJSON(object2.pool) : void 0 };
|
|
10057
10269
|
},
|
|
10058
10270
|
toJSON(message) {
|
|
10059
10271
|
const obj = {};
|
|
@@ -10071,20 +10283,20 @@ var QueryPoolResponse = {
|
|
|
10071
10283
|
return message;
|
|
10072
10284
|
}
|
|
10073
10285
|
};
|
|
10074
|
-
function
|
|
10286
|
+
function createBaseQueryParamsResponse9() {
|
|
10075
10287
|
return { params: void 0 };
|
|
10076
10288
|
}
|
|
10077
|
-
var
|
|
10078
|
-
encode(message, writer = new
|
|
10289
|
+
var QueryParamsResponse9 = {
|
|
10290
|
+
encode(message, writer = new BinaryWriter29()) {
|
|
10079
10291
|
if (message.params !== void 0) {
|
|
10080
|
-
|
|
10292
|
+
Params10.encode(message.params, writer.uint32(10).fork()).join();
|
|
10081
10293
|
}
|
|
10082
10294
|
return writer;
|
|
10083
10295
|
},
|
|
10084
10296
|
decode(input, length) {
|
|
10085
|
-
const reader = input instanceof
|
|
10297
|
+
const reader = input instanceof BinaryReader29 ? input : new BinaryReader29(input);
|
|
10086
10298
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10087
|
-
const message =
|
|
10299
|
+
const message = createBaseQueryParamsResponse9();
|
|
10088
10300
|
while (reader.pos < end) {
|
|
10089
10301
|
const tag = reader.uint32();
|
|
10090
10302
|
switch (tag >>> 3) {
|
|
@@ -10092,7 +10304,7 @@ var QueryParamsResponse8 = {
|
|
|
10092
10304
|
if (tag !== 10) {
|
|
10093
10305
|
break;
|
|
10094
10306
|
}
|
|
10095
|
-
message.params =
|
|
10307
|
+
message.params = Params10.decode(reader, reader.uint32());
|
|
10096
10308
|
continue;
|
|
10097
10309
|
}
|
|
10098
10310
|
}
|
|
@@ -10104,38 +10316,38 @@ var QueryParamsResponse8 = {
|
|
|
10104
10316
|
return message;
|
|
10105
10317
|
},
|
|
10106
10318
|
fromJSON(object2) {
|
|
10107
|
-
return { params:
|
|
10319
|
+
return { params: isSet28(object2.params) ? Params10.fromJSON(object2.params) : void 0 };
|
|
10108
10320
|
},
|
|
10109
10321
|
toJSON(message) {
|
|
10110
10322
|
const obj = {};
|
|
10111
10323
|
if (message.params !== void 0) {
|
|
10112
|
-
obj.params =
|
|
10324
|
+
obj.params = Params10.toJSON(message.params);
|
|
10113
10325
|
}
|
|
10114
10326
|
return obj;
|
|
10115
10327
|
},
|
|
10116
10328
|
create(base) {
|
|
10117
|
-
return
|
|
10329
|
+
return QueryParamsResponse9.fromPartial(base ?? {});
|
|
10118
10330
|
},
|
|
10119
10331
|
fromPartial(object2) {
|
|
10120
|
-
const message =
|
|
10121
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
10332
|
+
const message = createBaseQueryParamsResponse9();
|
|
10333
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params10.fromPartial(object2.params) : void 0;
|
|
10122
10334
|
return message;
|
|
10123
10335
|
}
|
|
10124
10336
|
};
|
|
10125
|
-
function
|
|
10337
|
+
function isSet28(value) {
|
|
10126
10338
|
return value !== null && value !== void 0;
|
|
10127
10339
|
}
|
|
10128
10340
|
|
|
10129
10341
|
// src/proto/gen/cosmos/distribution/v1beta1/query.ts
|
|
10130
|
-
import { BinaryReader as
|
|
10342
|
+
import { BinaryReader as BinaryReader31, BinaryWriter as BinaryWriter31 } from "@bufbuild/protobuf/wire";
|
|
10131
10343
|
|
|
10132
10344
|
// src/proto/gen/cosmos/distribution/v1beta1/distribution.ts
|
|
10133
|
-
import { BinaryReader as
|
|
10345
|
+
import { BinaryReader as BinaryReader30, BinaryWriter as BinaryWriter30 } from "@bufbuild/protobuf/wire";
|
|
10134
10346
|
function createBaseDelegationDelegatorReward() {
|
|
10135
10347
|
return { validatorAddress: "", reward: [] };
|
|
10136
10348
|
}
|
|
10137
10349
|
var DelegationDelegatorReward = {
|
|
10138
|
-
encode(message, writer = new
|
|
10350
|
+
encode(message, writer = new BinaryWriter30()) {
|
|
10139
10351
|
if (message.validatorAddress !== "") {
|
|
10140
10352
|
writer.uint32(10).string(message.validatorAddress);
|
|
10141
10353
|
}
|
|
@@ -10145,7 +10357,7 @@ var DelegationDelegatorReward = {
|
|
|
10145
10357
|
return writer;
|
|
10146
10358
|
},
|
|
10147
10359
|
decode(input, length) {
|
|
10148
|
-
const reader = input instanceof
|
|
10360
|
+
const reader = input instanceof BinaryReader30 ? input : new BinaryReader30(input);
|
|
10149
10361
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10150
10362
|
const message = createBaseDelegationDelegatorReward();
|
|
10151
10363
|
while (reader.pos < end) {
|
|
@@ -10175,7 +10387,7 @@ var DelegationDelegatorReward = {
|
|
|
10175
10387
|
},
|
|
10176
10388
|
fromJSON(object2) {
|
|
10177
10389
|
return {
|
|
10178
|
-
validatorAddress:
|
|
10390
|
+
validatorAddress: isSet29(object2.validatorAddress) ? globalThis.String(object2.validatorAddress) : isSet29(object2.validator_address) ? globalThis.String(object2.validator_address) : "",
|
|
10179
10391
|
reward: globalThis.Array.isArray(object2?.reward) ? object2.reward.map((e) => DecCoin.fromJSON(e)) : []
|
|
10180
10392
|
};
|
|
10181
10393
|
},
|
|
@@ -10199,7 +10411,7 @@ var DelegationDelegatorReward = {
|
|
|
10199
10411
|
return message;
|
|
10200
10412
|
}
|
|
10201
10413
|
};
|
|
10202
|
-
function
|
|
10414
|
+
function isSet29(value) {
|
|
10203
10415
|
return value !== null && value !== void 0;
|
|
10204
10416
|
}
|
|
10205
10417
|
|
|
@@ -10208,7 +10420,7 @@ function createBaseQueryDelegationTotalRewardsResponse() {
|
|
|
10208
10420
|
return { rewards: [], total: [] };
|
|
10209
10421
|
}
|
|
10210
10422
|
var QueryDelegationTotalRewardsResponse = {
|
|
10211
|
-
encode(message, writer = new
|
|
10423
|
+
encode(message, writer = new BinaryWriter31()) {
|
|
10212
10424
|
for (const v of message.rewards) {
|
|
10213
10425
|
DelegationDelegatorReward.encode(v, writer.uint32(10).fork()).join();
|
|
10214
10426
|
}
|
|
@@ -10218,7 +10430,7 @@ var QueryDelegationTotalRewardsResponse = {
|
|
|
10218
10430
|
return writer;
|
|
10219
10431
|
},
|
|
10220
10432
|
decode(input, length) {
|
|
10221
|
-
const reader = input instanceof
|
|
10433
|
+
const reader = input instanceof BinaryReader31 ? input : new BinaryReader31(input);
|
|
10222
10434
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10223
10435
|
const message = createBaseQueryDelegationTotalRewardsResponse();
|
|
10224
10436
|
while (reader.pos < end) {
|
|
@@ -10325,7 +10537,7 @@ function createStakingApi(context) {
|
|
|
10325
10537
|
);
|
|
10326
10538
|
},
|
|
10327
10539
|
async getStakingParams() {
|
|
10328
|
-
return fetchProtoJson(context, "/cosmos/staking/v1beta1/params",
|
|
10540
|
+
return fetchProtoJson(context, "/cosmos/staking/v1beta1/params", QueryParamsResponse9);
|
|
10329
10541
|
},
|
|
10330
10542
|
async getStakingPool() {
|
|
10331
10543
|
return fetchProtoJson(context, "/cosmos/staking/v1beta1/pool", QueryPoolResponse);
|
|
@@ -10392,6 +10604,8 @@ __export(dex_generated_exports, {
|
|
|
10392
10604
|
ListOrdersStatus: () => ListOrdersStatus,
|
|
10393
10605
|
LiveResponseStatus: () => LiveResponseStatus,
|
|
10394
10606
|
MarketResponseType: () => MarketResponseType,
|
|
10607
|
+
OrderInfoChainStatus: () => OrderInfoChainStatus,
|
|
10608
|
+
OrderInfoChainType: () => OrderInfoChainType,
|
|
10395
10609
|
OrderResponseSide: () => OrderResponseSide,
|
|
10396
10610
|
OrderResponseStatus: () => OrderResponseStatus,
|
|
10397
10611
|
OrderResponseType: () => OrderResponseType,
|
|
@@ -10454,6 +10668,20 @@ __export(dex_generated_exports, {
|
|
|
10454
10668
|
listTrades: () => listTrades,
|
|
10455
10669
|
searchUDFSymbols: () => searchUDFSymbols
|
|
10456
10670
|
});
|
|
10671
|
+
var OrderInfoChainStatus = {
|
|
10672
|
+
open: "open",
|
|
10673
|
+
partially_filled: "partially_filled",
|
|
10674
|
+
filled: "filled",
|
|
10675
|
+
cancelled: "cancelled",
|
|
10676
|
+
expired: "expired",
|
|
10677
|
+
triggered_pending: "triggered_pending"
|
|
10678
|
+
};
|
|
10679
|
+
var OrderInfoChainType = {
|
|
10680
|
+
limit: "limit",
|
|
10681
|
+
market: "market",
|
|
10682
|
+
scale: "scale",
|
|
10683
|
+
stop: "stop"
|
|
10684
|
+
};
|
|
10457
10685
|
var HealthResponseStatus = {
|
|
10458
10686
|
healthy: "healthy",
|
|
10459
10687
|
unhealthy: "unhealthy"
|
|
@@ -11192,15 +11420,15 @@ var DexWsClient = class {
|
|
|
11192
11420
|
};
|
|
11193
11421
|
|
|
11194
11422
|
// src/proto/gen/ault/tokenregistry/v1/query.ts
|
|
11195
|
-
import { BinaryReader as
|
|
11423
|
+
import { BinaryReader as BinaryReader33, BinaryWriter as BinaryWriter33 } from "@bufbuild/protobuf/wire";
|
|
11196
11424
|
|
|
11197
11425
|
// src/proto/gen/ault/tokenregistry/v1/tokenregistry.ts
|
|
11198
|
-
import { BinaryReader as
|
|
11426
|
+
import { BinaryReader as BinaryReader32, BinaryWriter as BinaryWriter32 } from "@bufbuild/protobuf/wire";
|
|
11199
11427
|
function createBaseLimiter() {
|
|
11200
11428
|
return { baselineMinimum: "", baselineSupplyBps: 0 };
|
|
11201
11429
|
}
|
|
11202
11430
|
var Limiter = {
|
|
11203
|
-
encode(message, writer = new
|
|
11431
|
+
encode(message, writer = new BinaryWriter32()) {
|
|
11204
11432
|
if (message.baselineMinimum !== "") {
|
|
11205
11433
|
writer.uint32(10).string(message.baselineMinimum);
|
|
11206
11434
|
}
|
|
@@ -11210,7 +11438,7 @@ var Limiter = {
|
|
|
11210
11438
|
return writer;
|
|
11211
11439
|
},
|
|
11212
11440
|
decode(input, length) {
|
|
11213
|
-
const reader = input instanceof
|
|
11441
|
+
const reader = input instanceof BinaryReader32 ? input : new BinaryReader32(input);
|
|
11214
11442
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11215
11443
|
const message = createBaseLimiter();
|
|
11216
11444
|
while (reader.pos < end) {
|
|
@@ -11240,8 +11468,8 @@ var Limiter = {
|
|
|
11240
11468
|
},
|
|
11241
11469
|
fromJSON(object2) {
|
|
11242
11470
|
return {
|
|
11243
|
-
baselineMinimum:
|
|
11244
|
-
baselineSupplyBps:
|
|
11471
|
+
baselineMinimum: isSet30(object2.baselineMinimum) ? globalThis.String(object2.baselineMinimum) : isSet30(object2.baseline_minimum) ? globalThis.String(object2.baseline_minimum) : "",
|
|
11472
|
+
baselineSupplyBps: isSet30(object2.baselineSupplyBps) ? globalThis.Number(object2.baselineSupplyBps) : isSet30(object2.baseline_supply_bps) ? globalThis.Number(object2.baseline_supply_bps) : 0
|
|
11245
11473
|
};
|
|
11246
11474
|
},
|
|
11247
11475
|
toJSON(message) {
|
|
@@ -11268,7 +11496,7 @@ function createBaseTransferLimitConfig() {
|
|
|
11268
11496
|
return { hourly: void 0, daily: void 0 };
|
|
11269
11497
|
}
|
|
11270
11498
|
var TransferLimitConfig = {
|
|
11271
|
-
encode(message, writer = new
|
|
11499
|
+
encode(message, writer = new BinaryWriter32()) {
|
|
11272
11500
|
if (message.hourly !== void 0) {
|
|
11273
11501
|
Limiter.encode(message.hourly, writer.uint32(10).fork()).join();
|
|
11274
11502
|
}
|
|
@@ -11278,7 +11506,7 @@ var TransferLimitConfig = {
|
|
|
11278
11506
|
return writer;
|
|
11279
11507
|
},
|
|
11280
11508
|
decode(input, length) {
|
|
11281
|
-
const reader = input instanceof
|
|
11509
|
+
const reader = input instanceof BinaryReader32 ? input : new BinaryReader32(input);
|
|
11282
11510
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11283
11511
|
const message = createBaseTransferLimitConfig();
|
|
11284
11512
|
while (reader.pos < end) {
|
|
@@ -11308,8 +11536,8 @@ var TransferLimitConfig = {
|
|
|
11308
11536
|
},
|
|
11309
11537
|
fromJSON(object2) {
|
|
11310
11538
|
return {
|
|
11311
|
-
hourly:
|
|
11312
|
-
daily:
|
|
11539
|
+
hourly: isSet30(object2.hourly) ? Limiter.fromJSON(object2.hourly) : void 0,
|
|
11540
|
+
daily: isSet30(object2.daily) ? Limiter.fromJSON(object2.daily) : void 0
|
|
11313
11541
|
};
|
|
11314
11542
|
},
|
|
11315
11543
|
toJSON(message) {
|
|
@@ -11336,7 +11564,7 @@ function createBaseTokenPair() {
|
|
|
11336
11564
|
return { erc20Address: "", denom: "", erc20Decimals: 0, enabled: false };
|
|
11337
11565
|
}
|
|
11338
11566
|
var TokenPair = {
|
|
11339
|
-
encode(message, writer = new
|
|
11567
|
+
encode(message, writer = new BinaryWriter32()) {
|
|
11340
11568
|
if (message.erc20Address !== "") {
|
|
11341
11569
|
writer.uint32(10).string(message.erc20Address);
|
|
11342
11570
|
}
|
|
@@ -11352,7 +11580,7 @@ var TokenPair = {
|
|
|
11352
11580
|
return writer;
|
|
11353
11581
|
},
|
|
11354
11582
|
decode(input, length) {
|
|
11355
|
-
const reader = input instanceof
|
|
11583
|
+
const reader = input instanceof BinaryReader32 ? input : new BinaryReader32(input);
|
|
11356
11584
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11357
11585
|
const message = createBaseTokenPair();
|
|
11358
11586
|
while (reader.pos < end) {
|
|
@@ -11396,10 +11624,10 @@ var TokenPair = {
|
|
|
11396
11624
|
},
|
|
11397
11625
|
fromJSON(object2) {
|
|
11398
11626
|
return {
|
|
11399
|
-
erc20Address:
|
|
11400
|
-
denom:
|
|
11401
|
-
erc20Decimals:
|
|
11402
|
-
enabled:
|
|
11627
|
+
erc20Address: isSet30(object2.erc20Address) ? globalThis.String(object2.erc20Address) : isSet30(object2.erc20_address) ? globalThis.String(object2.erc20_address) : "",
|
|
11628
|
+
denom: isSet30(object2.denom) ? globalThis.String(object2.denom) : "",
|
|
11629
|
+
erc20Decimals: isSet30(object2.erc20Decimals) ? globalThis.Number(object2.erc20Decimals) : isSet30(object2.erc20_decimals) ? globalThis.Number(object2.erc20_decimals) : 0,
|
|
11630
|
+
enabled: isSet30(object2.enabled) ? globalThis.Boolean(object2.enabled) : false
|
|
11403
11631
|
};
|
|
11404
11632
|
},
|
|
11405
11633
|
toJSON(message) {
|
|
@@ -11430,20 +11658,20 @@ var TokenPair = {
|
|
|
11430
11658
|
return message;
|
|
11431
11659
|
}
|
|
11432
11660
|
};
|
|
11433
|
-
function
|
|
11661
|
+
function createBaseParams10() {
|
|
11434
11662
|
return { enabled: false };
|
|
11435
11663
|
}
|
|
11436
|
-
var
|
|
11437
|
-
encode(message, writer = new
|
|
11664
|
+
var Params12 = {
|
|
11665
|
+
encode(message, writer = new BinaryWriter32()) {
|
|
11438
11666
|
if (message.enabled !== false) {
|
|
11439
11667
|
writer.uint32(8).bool(message.enabled);
|
|
11440
11668
|
}
|
|
11441
11669
|
return writer;
|
|
11442
11670
|
},
|
|
11443
11671
|
decode(input, length) {
|
|
11444
|
-
const reader = input instanceof
|
|
11672
|
+
const reader = input instanceof BinaryReader32 ? input : new BinaryReader32(input);
|
|
11445
11673
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11446
|
-
const message =
|
|
11674
|
+
const message = createBaseParams10();
|
|
11447
11675
|
while (reader.pos < end) {
|
|
11448
11676
|
const tag = reader.uint32();
|
|
11449
11677
|
switch (tag >>> 3) {
|
|
@@ -11463,7 +11691,7 @@ var Params11 = {
|
|
|
11463
11691
|
return message;
|
|
11464
11692
|
},
|
|
11465
11693
|
fromJSON(object2) {
|
|
11466
|
-
return { enabled:
|
|
11694
|
+
return { enabled: isSet30(object2.enabled) ? globalThis.Boolean(object2.enabled) : false };
|
|
11467
11695
|
},
|
|
11468
11696
|
toJSON(message) {
|
|
11469
11697
|
const obj = {};
|
|
@@ -11473,15 +11701,15 @@ var Params11 = {
|
|
|
11473
11701
|
return obj;
|
|
11474
11702
|
},
|
|
11475
11703
|
create(base) {
|
|
11476
|
-
return
|
|
11704
|
+
return Params12.fromPartial(base ?? {});
|
|
11477
11705
|
},
|
|
11478
11706
|
fromPartial(object2) {
|
|
11479
|
-
const message =
|
|
11707
|
+
const message = createBaseParams10();
|
|
11480
11708
|
message.enabled = object2.enabled ?? false;
|
|
11481
11709
|
return message;
|
|
11482
11710
|
}
|
|
11483
11711
|
};
|
|
11484
|
-
function
|
|
11712
|
+
function isSet30(value) {
|
|
11485
11713
|
return value !== null && value !== void 0;
|
|
11486
11714
|
}
|
|
11487
11715
|
|
|
@@ -11490,14 +11718,14 @@ function createBaseQueryTokenPairResponse() {
|
|
|
11490
11718
|
return { tokenPair: void 0 };
|
|
11491
11719
|
}
|
|
11492
11720
|
var QueryTokenPairResponse = {
|
|
11493
|
-
encode(message, writer = new
|
|
11721
|
+
encode(message, writer = new BinaryWriter33()) {
|
|
11494
11722
|
if (message.tokenPair !== void 0) {
|
|
11495
11723
|
TokenPair.encode(message.tokenPair, writer.uint32(10).fork()).join();
|
|
11496
11724
|
}
|
|
11497
11725
|
return writer;
|
|
11498
11726
|
},
|
|
11499
11727
|
decode(input, length) {
|
|
11500
|
-
const reader = input instanceof
|
|
11728
|
+
const reader = input instanceof BinaryReader33 ? input : new BinaryReader33(input);
|
|
11501
11729
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11502
11730
|
const message = createBaseQueryTokenPairResponse();
|
|
11503
11731
|
while (reader.pos < end) {
|
|
@@ -11520,7 +11748,7 @@ var QueryTokenPairResponse = {
|
|
|
11520
11748
|
},
|
|
11521
11749
|
fromJSON(object2) {
|
|
11522
11750
|
return {
|
|
11523
|
-
tokenPair:
|
|
11751
|
+
tokenPair: isSet31(object2.tokenPair) ? TokenPair.fromJSON(object2.tokenPair) : isSet31(object2.token_pair) ? TokenPair.fromJSON(object2.token_pair) : void 0
|
|
11524
11752
|
};
|
|
11525
11753
|
},
|
|
11526
11754
|
toJSON(message) {
|
|
@@ -11543,7 +11771,7 @@ function createBaseQueryTokenPairsResponse() {
|
|
|
11543
11771
|
return { tokenPairs: [], pagination: void 0 };
|
|
11544
11772
|
}
|
|
11545
11773
|
var QueryTokenPairsResponse = {
|
|
11546
|
-
encode(message, writer = new
|
|
11774
|
+
encode(message, writer = new BinaryWriter33()) {
|
|
11547
11775
|
for (const v of message.tokenPairs) {
|
|
11548
11776
|
TokenPair.encode(v, writer.uint32(10).fork()).join();
|
|
11549
11777
|
}
|
|
@@ -11553,7 +11781,7 @@ var QueryTokenPairsResponse = {
|
|
|
11553
11781
|
return writer;
|
|
11554
11782
|
},
|
|
11555
11783
|
decode(input, length) {
|
|
11556
|
-
const reader = input instanceof
|
|
11784
|
+
const reader = input instanceof BinaryReader33 ? input : new BinaryReader33(input);
|
|
11557
11785
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11558
11786
|
const message = createBaseQueryTokenPairsResponse();
|
|
11559
11787
|
while (reader.pos < end) {
|
|
@@ -11584,7 +11812,7 @@ var QueryTokenPairsResponse = {
|
|
|
11584
11812
|
fromJSON(object2) {
|
|
11585
11813
|
return {
|
|
11586
11814
|
tokenPairs: globalThis.Array.isArray(object2?.tokenPairs) ? object2.tokenPairs.map((e) => TokenPair.fromJSON(e)) : globalThis.Array.isArray(object2?.token_pairs) ? object2.token_pairs.map((e) => TokenPair.fromJSON(e)) : [],
|
|
11587
|
-
pagination:
|
|
11815
|
+
pagination: isSet31(object2.pagination) ? PageResponse.fromJSON(object2.pagination) : void 0
|
|
11588
11816
|
};
|
|
11589
11817
|
},
|
|
11590
11818
|
toJSON(message) {
|
|
@@ -11607,20 +11835,20 @@ var QueryTokenPairsResponse = {
|
|
|
11607
11835
|
return message;
|
|
11608
11836
|
}
|
|
11609
11837
|
};
|
|
11610
|
-
function
|
|
11838
|
+
function createBaseQueryParamsResponse10() {
|
|
11611
11839
|
return { params: void 0 };
|
|
11612
11840
|
}
|
|
11613
|
-
var
|
|
11614
|
-
encode(message, writer = new
|
|
11841
|
+
var QueryParamsResponse10 = {
|
|
11842
|
+
encode(message, writer = new BinaryWriter33()) {
|
|
11615
11843
|
if (message.params !== void 0) {
|
|
11616
|
-
|
|
11844
|
+
Params12.encode(message.params, writer.uint32(10).fork()).join();
|
|
11617
11845
|
}
|
|
11618
11846
|
return writer;
|
|
11619
11847
|
},
|
|
11620
11848
|
decode(input, length) {
|
|
11621
|
-
const reader = input instanceof
|
|
11849
|
+
const reader = input instanceof BinaryReader33 ? input : new BinaryReader33(input);
|
|
11622
11850
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11623
|
-
const message =
|
|
11851
|
+
const message = createBaseQueryParamsResponse10();
|
|
11624
11852
|
while (reader.pos < end) {
|
|
11625
11853
|
const tag = reader.uint32();
|
|
11626
11854
|
switch (tag >>> 3) {
|
|
@@ -11628,7 +11856,7 @@ var QueryParamsResponse9 = {
|
|
|
11628
11856
|
if (tag !== 10) {
|
|
11629
11857
|
break;
|
|
11630
11858
|
}
|
|
11631
|
-
message.params =
|
|
11859
|
+
message.params = Params12.decode(reader, reader.uint32());
|
|
11632
11860
|
continue;
|
|
11633
11861
|
}
|
|
11634
11862
|
}
|
|
@@ -11640,25 +11868,25 @@ var QueryParamsResponse9 = {
|
|
|
11640
11868
|
return message;
|
|
11641
11869
|
},
|
|
11642
11870
|
fromJSON(object2) {
|
|
11643
|
-
return { params:
|
|
11871
|
+
return { params: isSet31(object2.params) ? Params12.fromJSON(object2.params) : void 0 };
|
|
11644
11872
|
},
|
|
11645
11873
|
toJSON(message) {
|
|
11646
11874
|
const obj = {};
|
|
11647
11875
|
if (message.params !== void 0) {
|
|
11648
|
-
obj.params =
|
|
11876
|
+
obj.params = Params12.toJSON(message.params);
|
|
11649
11877
|
}
|
|
11650
11878
|
return obj;
|
|
11651
11879
|
},
|
|
11652
11880
|
create(base) {
|
|
11653
|
-
return
|
|
11881
|
+
return QueryParamsResponse10.fromPartial(base ?? {});
|
|
11654
11882
|
},
|
|
11655
11883
|
fromPartial(object2) {
|
|
11656
|
-
const message =
|
|
11657
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
11884
|
+
const message = createBaseQueryParamsResponse10();
|
|
11885
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params12.fromPartial(object2.params) : void 0;
|
|
11658
11886
|
return message;
|
|
11659
11887
|
}
|
|
11660
11888
|
};
|
|
11661
|
-
function
|
|
11889
|
+
function isSet31(value) {
|
|
11662
11890
|
return value !== null && value !== void 0;
|
|
11663
11891
|
}
|
|
11664
11892
|
|
|
@@ -11666,7 +11894,7 @@ function isSet30(value) {
|
|
|
11666
11894
|
function createTokenRegistryApi(context) {
|
|
11667
11895
|
return {
|
|
11668
11896
|
async getParams() {
|
|
11669
|
-
return fetchProtoJson(context, "/ault/tokenregistry/v1/params",
|
|
11897
|
+
return fetchProtoJson(context, "/ault/tokenregistry/v1/params", QueryParamsResponse10);
|
|
11670
11898
|
},
|
|
11671
11899
|
async getTokenPair(token) {
|
|
11672
11900
|
return fetchProtoJson(
|
|
@@ -13840,7 +14068,7 @@ function normalizeTxHash(raw) {
|
|
|
13840
14068
|
// src/proto/tx-encode.ts
|
|
13841
14069
|
var WIRE_VARINT = 0;
|
|
13842
14070
|
var WIRE_LENGTH_DELIMITED = 2;
|
|
13843
|
-
var
|
|
14071
|
+
var BinaryWriter34 = class {
|
|
13844
14072
|
constructor() {
|
|
13845
14073
|
this.chunks = [];
|
|
13846
14074
|
}
|
|
@@ -13924,19 +14152,19 @@ var BinaryWriter33 = class {
|
|
|
13924
14152
|
}
|
|
13925
14153
|
};
|
|
13926
14154
|
function encodeAny(typeUrl, value) {
|
|
13927
|
-
const writer = new
|
|
14155
|
+
const writer = new BinaryWriter34();
|
|
13928
14156
|
writer.writeString(1, typeUrl);
|
|
13929
14157
|
writer.writeBytes(2, value);
|
|
13930
14158
|
return writer.finish();
|
|
13931
14159
|
}
|
|
13932
14160
|
function encodeCoin(denom, amount) {
|
|
13933
|
-
const writer = new
|
|
14161
|
+
const writer = new BinaryWriter34();
|
|
13934
14162
|
writer.writeString(1, denom);
|
|
13935
14163
|
writer.writeString(2, amount);
|
|
13936
14164
|
return writer.finish();
|
|
13937
14165
|
}
|
|
13938
14166
|
function encodeFee(fee) {
|
|
13939
|
-
const writer = new
|
|
14167
|
+
const writer = new BinaryWriter34();
|
|
13940
14168
|
for (const coin of fee.amount) {
|
|
13941
14169
|
const coinBytes = encodeCoin(coin.denom, coin.amount);
|
|
13942
14170
|
writer.writeBytes(1, coinBytes);
|
|
@@ -13945,18 +14173,18 @@ function encodeFee(fee) {
|
|
|
13945
14173
|
return writer.finish();
|
|
13946
14174
|
}
|
|
13947
14175
|
function encodeModeInfoSingle(mode) {
|
|
13948
|
-
const writer = new
|
|
14176
|
+
const writer = new BinaryWriter34();
|
|
13949
14177
|
writer.writeInt32(1, mode);
|
|
13950
14178
|
return writer.finish();
|
|
13951
14179
|
}
|
|
13952
14180
|
function encodeModeInfo(mode) {
|
|
13953
|
-
const writer = new
|
|
14181
|
+
const writer = new BinaryWriter34();
|
|
13954
14182
|
const singleBytes = encodeModeInfoSingle(mode);
|
|
13955
14183
|
writer.writeBytes(1, singleBytes);
|
|
13956
14184
|
return writer.finish();
|
|
13957
14185
|
}
|
|
13958
14186
|
function encodeSignerInfo(info) {
|
|
13959
|
-
const writer = new
|
|
14187
|
+
const writer = new BinaryWriter34();
|
|
13960
14188
|
const pubKeyAny = encodeAny(info.publicKey.typeUrl, info.publicKey.value);
|
|
13961
14189
|
writer.writeBytes(1, pubKeyAny);
|
|
13962
14190
|
const modeInfoBytes = encodeModeInfo(info.mode);
|
|
@@ -13965,7 +14193,7 @@ function encodeSignerInfo(info) {
|
|
|
13965
14193
|
return writer.finish();
|
|
13966
14194
|
}
|
|
13967
14195
|
function encodeAuthInfo(authInfo) {
|
|
13968
|
-
const writer = new
|
|
14196
|
+
const writer = new BinaryWriter34();
|
|
13969
14197
|
for (const signerInfo of authInfo.signerInfos) {
|
|
13970
14198
|
writer.writeBytes(1, encodeSignerInfo(signerInfo));
|
|
13971
14199
|
}
|
|
@@ -13973,7 +14201,7 @@ function encodeAuthInfo(authInfo) {
|
|
|
13973
14201
|
return writer.finish();
|
|
13974
14202
|
}
|
|
13975
14203
|
function encodeTxBody(body) {
|
|
13976
|
-
const writer = new
|
|
14204
|
+
const writer = new BinaryWriter34();
|
|
13977
14205
|
for (const msg2 of body.messages) {
|
|
13978
14206
|
writer.writeBytes(1, encodeAny(msg2.typeUrl, msg2.value));
|
|
13979
14207
|
}
|
|
@@ -13986,27 +14214,27 @@ function encodeTxBody(body) {
|
|
|
13986
14214
|
return writer.finish();
|
|
13987
14215
|
}
|
|
13988
14216
|
function encodeTxRaw(txRaw) {
|
|
13989
|
-
const writer = new
|
|
14217
|
+
const writer = new BinaryWriter34();
|
|
13990
14218
|
writer.writeBytes(1, txRaw.bodyBytes);
|
|
13991
14219
|
writer.writeBytes(2, txRaw.authInfoBytes);
|
|
13992
14220
|
writer.writeRepeatedBytes(3, txRaw.signatures);
|
|
13993
14221
|
return writer.finish();
|
|
13994
14222
|
}
|
|
13995
14223
|
function encodeEthSecp256k1PubKey(key) {
|
|
13996
|
-
const writer = new
|
|
14224
|
+
const writer = new BinaryWriter34();
|
|
13997
14225
|
writer.writeBytes(1, key);
|
|
13998
14226
|
return writer.finish();
|
|
13999
14227
|
}
|
|
14000
14228
|
var SIGN_MODE_LEGACY_AMINO_JSON = 127;
|
|
14001
14229
|
var SIGN_MODE_DIRECT = 1;
|
|
14002
14230
|
function encodeTimestamp(seconds, nanos) {
|
|
14003
|
-
const writer = new
|
|
14231
|
+
const writer = new BinaryWriter34();
|
|
14004
14232
|
writer.writeUint64(1, seconds);
|
|
14005
14233
|
writer.writeInt32(2, nanos);
|
|
14006
14234
|
return writer.finish();
|
|
14007
14235
|
}
|
|
14008
14236
|
function encodeTxBodyAgent(body) {
|
|
14009
|
-
const writer = new
|
|
14237
|
+
const writer = new BinaryWriter34();
|
|
14010
14238
|
for (const msg2 of body.messages) {
|
|
14011
14239
|
writer.writeBytes(1, encodeAny(msg2.typeUrl, msg2.value));
|
|
14012
14240
|
}
|
|
@@ -14025,7 +14253,7 @@ function encodeTxBodyAgent(body) {
|
|
|
14025
14253
|
return writer.finish();
|
|
14026
14254
|
}
|
|
14027
14255
|
function encodeSignDoc(doc) {
|
|
14028
|
-
const writer = new
|
|
14256
|
+
const writer = new BinaryWriter34();
|
|
14029
14257
|
writer.writeBytes(1, doc.bodyBytes);
|
|
14030
14258
|
writer.writeBytes(2, doc.authInfoBytes);
|
|
14031
14259
|
writer.writeString(3, doc.chainId);
|
|
@@ -14034,12 +14262,12 @@ function encodeSignDoc(doc) {
|
|
|
14034
14262
|
}
|
|
14035
14263
|
|
|
14036
14264
|
// src/proto/gen/ault/accountx/v1/tx.ts
|
|
14037
|
-
import { BinaryReader as
|
|
14265
|
+
import { BinaryReader as BinaryReader34, BinaryWriter as BinaryWriter35 } from "@bufbuild/protobuf/wire";
|
|
14038
14266
|
function createBaseMsgOpenAccount() {
|
|
14039
14267
|
return { sender: "", account: "", feeDenom: "" };
|
|
14040
14268
|
}
|
|
14041
14269
|
var MsgOpenAccount = {
|
|
14042
|
-
encode(message, writer = new
|
|
14270
|
+
encode(message, writer = new BinaryWriter35()) {
|
|
14043
14271
|
if (message.sender !== "") {
|
|
14044
14272
|
writer.uint32(10).string(message.sender);
|
|
14045
14273
|
}
|
|
@@ -14052,7 +14280,7 @@ var MsgOpenAccount = {
|
|
|
14052
14280
|
return writer;
|
|
14053
14281
|
},
|
|
14054
14282
|
decode(input, length) {
|
|
14055
|
-
const reader = input instanceof
|
|
14283
|
+
const reader = input instanceof BinaryReader34 ? input : new BinaryReader34(input);
|
|
14056
14284
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14057
14285
|
const message = createBaseMsgOpenAccount();
|
|
14058
14286
|
while (reader.pos < end) {
|
|
@@ -14089,9 +14317,9 @@ var MsgOpenAccount = {
|
|
|
14089
14317
|
},
|
|
14090
14318
|
fromJSON(object2) {
|
|
14091
14319
|
return {
|
|
14092
|
-
sender:
|
|
14093
|
-
account:
|
|
14094
|
-
feeDenom:
|
|
14320
|
+
sender: isSet32(object2.sender) ? globalThis.String(object2.sender) : "",
|
|
14321
|
+
account: isSet32(object2.account) ? globalThis.String(object2.account) : "",
|
|
14322
|
+
feeDenom: isSet32(object2.feeDenom) ? globalThis.String(object2.feeDenom) : isSet32(object2.fee_denom) ? globalThis.String(object2.fee_denom) : ""
|
|
14095
14323
|
};
|
|
14096
14324
|
},
|
|
14097
14325
|
toJSON(message) {
|
|
@@ -14122,7 +14350,7 @@ function createBaseMsgUpdateParams() {
|
|
|
14122
14350
|
return { authority: "", params: void 0 };
|
|
14123
14351
|
}
|
|
14124
14352
|
var MsgUpdateParams = {
|
|
14125
|
-
encode(message, writer = new
|
|
14353
|
+
encode(message, writer = new BinaryWriter35()) {
|
|
14126
14354
|
if (message.authority !== "") {
|
|
14127
14355
|
writer.uint32(10).string(message.authority);
|
|
14128
14356
|
}
|
|
@@ -14132,7 +14360,7 @@ var MsgUpdateParams = {
|
|
|
14132
14360
|
return writer;
|
|
14133
14361
|
},
|
|
14134
14362
|
decode(input, length) {
|
|
14135
|
-
const reader = input instanceof
|
|
14363
|
+
const reader = input instanceof BinaryReader34 ? input : new BinaryReader34(input);
|
|
14136
14364
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14137
14365
|
const message = createBaseMsgUpdateParams();
|
|
14138
14366
|
while (reader.pos < end) {
|
|
@@ -14162,8 +14390,8 @@ var MsgUpdateParams = {
|
|
|
14162
14390
|
},
|
|
14163
14391
|
fromJSON(object2) {
|
|
14164
14392
|
return {
|
|
14165
|
-
authority:
|
|
14166
|
-
params:
|
|
14393
|
+
authority: isSet32(object2.authority) ? globalThis.String(object2.authority) : "",
|
|
14394
|
+
params: isSet32(object2.params) ? Params.fromJSON(object2.params) : void 0
|
|
14167
14395
|
};
|
|
14168
14396
|
},
|
|
14169
14397
|
toJSON(message) {
|
|
@@ -14186,17 +14414,17 @@ var MsgUpdateParams = {
|
|
|
14186
14414
|
return message;
|
|
14187
14415
|
}
|
|
14188
14416
|
};
|
|
14189
|
-
function
|
|
14417
|
+
function isSet32(value) {
|
|
14190
14418
|
return value !== null && value !== void 0;
|
|
14191
14419
|
}
|
|
14192
14420
|
|
|
14193
14421
|
// src/proto/gen/ault/agent/v1/tx.ts
|
|
14194
|
-
import { BinaryReader as
|
|
14422
|
+
import { BinaryReader as BinaryReader35, BinaryWriter as BinaryWriter36 } from "@bufbuild/protobuf/wire";
|
|
14195
14423
|
function createBaseMsgApproveAgent() {
|
|
14196
14424
|
return { masterAddress: "", agentPubkey: void 0, name: "", expiry: void 0 };
|
|
14197
14425
|
}
|
|
14198
14426
|
var MsgApproveAgent = {
|
|
14199
|
-
encode(message, writer = new
|
|
14427
|
+
encode(message, writer = new BinaryWriter36()) {
|
|
14200
14428
|
if (message.masterAddress !== "") {
|
|
14201
14429
|
writer.uint32(10).string(message.masterAddress);
|
|
14202
14430
|
}
|
|
@@ -14212,7 +14440,7 @@ var MsgApproveAgent = {
|
|
|
14212
14440
|
return writer;
|
|
14213
14441
|
},
|
|
14214
14442
|
decode(input, length) {
|
|
14215
|
-
const reader = input instanceof
|
|
14443
|
+
const reader = input instanceof BinaryReader35 ? input : new BinaryReader35(input);
|
|
14216
14444
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14217
14445
|
const message = createBaseMsgApproveAgent();
|
|
14218
14446
|
while (reader.pos < end) {
|
|
@@ -14256,10 +14484,10 @@ var MsgApproveAgent = {
|
|
|
14256
14484
|
},
|
|
14257
14485
|
fromJSON(object2) {
|
|
14258
14486
|
return {
|
|
14259
|
-
masterAddress:
|
|
14260
|
-
agentPubkey:
|
|
14261
|
-
name:
|
|
14262
|
-
expiry:
|
|
14487
|
+
masterAddress: isSet33(object2.masterAddress) ? globalThis.String(object2.masterAddress) : isSet33(object2.master_address) ? globalThis.String(object2.master_address) : "",
|
|
14488
|
+
agentPubkey: isSet33(object2.agentPubkey) ? Any.fromJSON(object2.agentPubkey) : isSet33(object2.agent_pubkey) ? Any.fromJSON(object2.agent_pubkey) : void 0,
|
|
14489
|
+
name: isSet33(object2.name) ? globalThis.String(object2.name) : "",
|
|
14490
|
+
expiry: isSet33(object2.expiry) ? Duration.fromJSON(object2.expiry) : void 0
|
|
14263
14491
|
};
|
|
14264
14492
|
},
|
|
14265
14493
|
toJSON(message) {
|
|
@@ -14294,7 +14522,7 @@ function createBaseMsgRevokeAgent() {
|
|
|
14294
14522
|
return { masterAddress: "", agentAddress: "" };
|
|
14295
14523
|
}
|
|
14296
14524
|
var MsgRevokeAgent = {
|
|
14297
|
-
encode(message, writer = new
|
|
14525
|
+
encode(message, writer = new BinaryWriter36()) {
|
|
14298
14526
|
if (message.masterAddress !== "") {
|
|
14299
14527
|
writer.uint32(10).string(message.masterAddress);
|
|
14300
14528
|
}
|
|
@@ -14304,7 +14532,7 @@ var MsgRevokeAgent = {
|
|
|
14304
14532
|
return writer;
|
|
14305
14533
|
},
|
|
14306
14534
|
decode(input, length) {
|
|
14307
|
-
const reader = input instanceof
|
|
14535
|
+
const reader = input instanceof BinaryReader35 ? input : new BinaryReader35(input);
|
|
14308
14536
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14309
14537
|
const message = createBaseMsgRevokeAgent();
|
|
14310
14538
|
while (reader.pos < end) {
|
|
@@ -14334,8 +14562,8 @@ var MsgRevokeAgent = {
|
|
|
14334
14562
|
},
|
|
14335
14563
|
fromJSON(object2) {
|
|
14336
14564
|
return {
|
|
14337
|
-
masterAddress:
|
|
14338
|
-
agentAddress:
|
|
14565
|
+
masterAddress: isSet33(object2.masterAddress) ? globalThis.String(object2.masterAddress) : isSet33(object2.master_address) ? globalThis.String(object2.master_address) : "",
|
|
14566
|
+
agentAddress: isSet33(object2.agentAddress) ? globalThis.String(object2.agentAddress) : isSet33(object2.agent_address) ? globalThis.String(object2.agent_address) : ""
|
|
14339
14567
|
};
|
|
14340
14568
|
},
|
|
14341
14569
|
toJSON(message) {
|
|
@@ -14362,7 +14590,7 @@ function createBaseMsgUpdateParams2() {
|
|
|
14362
14590
|
return { authority: "", params: void 0 };
|
|
14363
14591
|
}
|
|
14364
14592
|
var MsgUpdateParams2 = {
|
|
14365
|
-
encode(message, writer = new
|
|
14593
|
+
encode(message, writer = new BinaryWriter36()) {
|
|
14366
14594
|
if (message.authority !== "") {
|
|
14367
14595
|
writer.uint32(10).string(message.authority);
|
|
14368
14596
|
}
|
|
@@ -14372,7 +14600,7 @@ var MsgUpdateParams2 = {
|
|
|
14372
14600
|
return writer;
|
|
14373
14601
|
},
|
|
14374
14602
|
decode(input, length) {
|
|
14375
|
-
const reader = input instanceof
|
|
14603
|
+
const reader = input instanceof BinaryReader35 ? input : new BinaryReader35(input);
|
|
14376
14604
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14377
14605
|
const message = createBaseMsgUpdateParams2();
|
|
14378
14606
|
while (reader.pos < end) {
|
|
@@ -14402,8 +14630,8 @@ var MsgUpdateParams2 = {
|
|
|
14402
14630
|
},
|
|
14403
14631
|
fromJSON(object2) {
|
|
14404
14632
|
return {
|
|
14405
|
-
authority:
|
|
14406
|
-
params:
|
|
14633
|
+
authority: isSet33(object2.authority) ? globalThis.String(object2.authority) : "",
|
|
14634
|
+
params: isSet33(object2.params) ? Params2.fromJSON(object2.params) : void 0
|
|
14407
14635
|
};
|
|
14408
14636
|
},
|
|
14409
14637
|
toJSON(message) {
|
|
@@ -14426,17 +14654,17 @@ var MsgUpdateParams2 = {
|
|
|
14426
14654
|
return message;
|
|
14427
14655
|
}
|
|
14428
14656
|
};
|
|
14429
|
-
function
|
|
14657
|
+
function isSet33(value) {
|
|
14430
14658
|
return value !== null && value !== void 0;
|
|
14431
14659
|
}
|
|
14432
14660
|
|
|
14433
14661
|
// src/proto/gen/ault/authority/v1/tx.ts
|
|
14434
|
-
import { BinaryReader as
|
|
14662
|
+
import { BinaryReader as BinaryReader36, BinaryWriter as BinaryWriter37 } from "@bufbuild/protobuf/wire";
|
|
14435
14663
|
function createBaseMsgGrantRole() {
|
|
14436
14664
|
return { authority: "", role: 0, members: [] };
|
|
14437
14665
|
}
|
|
14438
14666
|
var MsgGrantRole = {
|
|
14439
|
-
encode(message, writer = new
|
|
14667
|
+
encode(message, writer = new BinaryWriter37()) {
|
|
14440
14668
|
if (message.authority !== "") {
|
|
14441
14669
|
writer.uint32(10).string(message.authority);
|
|
14442
14670
|
}
|
|
@@ -14449,7 +14677,7 @@ var MsgGrantRole = {
|
|
|
14449
14677
|
return writer;
|
|
14450
14678
|
},
|
|
14451
14679
|
decode(input, length) {
|
|
14452
|
-
const reader = input instanceof
|
|
14680
|
+
const reader = input instanceof BinaryReader36 ? input : new BinaryReader36(input);
|
|
14453
14681
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14454
14682
|
const message = createBaseMsgGrantRole();
|
|
14455
14683
|
while (reader.pos < end) {
|
|
@@ -14486,8 +14714,8 @@ var MsgGrantRole = {
|
|
|
14486
14714
|
},
|
|
14487
14715
|
fromJSON(object2) {
|
|
14488
14716
|
return {
|
|
14489
|
-
authority:
|
|
14490
|
-
role:
|
|
14717
|
+
authority: isSet34(object2.authority) ? globalThis.String(object2.authority) : "",
|
|
14718
|
+
role: isSet34(object2.role) ? roleFromJSON(object2.role) : 0,
|
|
14491
14719
|
members: globalThis.Array.isArray(object2?.members) ? object2.members.map((e) => globalThis.String(e)) : []
|
|
14492
14720
|
};
|
|
14493
14721
|
},
|
|
@@ -14519,7 +14747,7 @@ function createBaseMsgRevokeRole() {
|
|
|
14519
14747
|
return { authority: "", role: 0, members: [] };
|
|
14520
14748
|
}
|
|
14521
14749
|
var MsgRevokeRole = {
|
|
14522
|
-
encode(message, writer = new
|
|
14750
|
+
encode(message, writer = new BinaryWriter37()) {
|
|
14523
14751
|
if (message.authority !== "") {
|
|
14524
14752
|
writer.uint32(10).string(message.authority);
|
|
14525
14753
|
}
|
|
@@ -14532,7 +14760,7 @@ var MsgRevokeRole = {
|
|
|
14532
14760
|
return writer;
|
|
14533
14761
|
},
|
|
14534
14762
|
decode(input, length) {
|
|
14535
|
-
const reader = input instanceof
|
|
14763
|
+
const reader = input instanceof BinaryReader36 ? input : new BinaryReader36(input);
|
|
14536
14764
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14537
14765
|
const message = createBaseMsgRevokeRole();
|
|
14538
14766
|
while (reader.pos < end) {
|
|
@@ -14569,8 +14797,8 @@ var MsgRevokeRole = {
|
|
|
14569
14797
|
},
|
|
14570
14798
|
fromJSON(object2) {
|
|
14571
14799
|
return {
|
|
14572
|
-
authority:
|
|
14573
|
-
role:
|
|
14800
|
+
authority: isSet34(object2.authority) ? globalThis.String(object2.authority) : "",
|
|
14801
|
+
role: isSet34(object2.role) ? roleFromJSON(object2.role) : 0,
|
|
14574
14802
|
members: globalThis.Array.isArray(object2?.members) ? object2.members.map((e) => globalThis.String(e)) : []
|
|
14575
14803
|
};
|
|
14576
14804
|
},
|
|
@@ -14598,128 +14826,12 @@ var MsgRevokeRole = {
|
|
|
14598
14826
|
return message;
|
|
14599
14827
|
}
|
|
14600
14828
|
};
|
|
14601
|
-
function isSet33(value) {
|
|
14602
|
-
return value !== null && value !== void 0;
|
|
14603
|
-
}
|
|
14604
|
-
|
|
14605
|
-
// src/proto/gen/ault/clob/v1/tx.ts
|
|
14606
|
-
import { BinaryReader as BinaryReader37, BinaryWriter as BinaryWriter38 } from "@bufbuild/protobuf/wire";
|
|
14607
|
-
|
|
14608
|
-
// src/proto/gen/ault/clob/v1/params.ts
|
|
14609
|
-
import { BinaryReader as BinaryReader36, BinaryWriter as BinaryWriter37 } from "@bufbuild/protobuf/wire";
|
|
14610
|
-
function createBaseParams10() {
|
|
14611
|
-
return {
|
|
14612
|
-
maxOrderPerAddress: 0n,
|
|
14613
|
-
minOrderQuoteAmount: "",
|
|
14614
|
-
maxOrderLifespan: void 0,
|
|
14615
|
-
maxOrderPriceRatio: ""
|
|
14616
|
-
};
|
|
14617
|
-
}
|
|
14618
|
-
var Params12 = {
|
|
14619
|
-
encode(message, writer = new BinaryWriter37()) {
|
|
14620
|
-
if (message.maxOrderPerAddress !== 0n) {
|
|
14621
|
-
if (BigInt.asUintN(64, message.maxOrderPerAddress) !== message.maxOrderPerAddress) {
|
|
14622
|
-
throw new globalThis.Error(
|
|
14623
|
-
"value provided for field message.maxOrderPerAddress of type uint64 too large"
|
|
14624
|
-
);
|
|
14625
|
-
}
|
|
14626
|
-
writer.uint32(8).uint64(message.maxOrderPerAddress);
|
|
14627
|
-
}
|
|
14628
|
-
if (message.minOrderQuoteAmount !== "") {
|
|
14629
|
-
writer.uint32(18).string(message.minOrderQuoteAmount);
|
|
14630
|
-
}
|
|
14631
|
-
if (message.maxOrderLifespan !== void 0) {
|
|
14632
|
-
Duration.encode(message.maxOrderLifespan, writer.uint32(26).fork()).join();
|
|
14633
|
-
}
|
|
14634
|
-
if (message.maxOrderPriceRatio !== "") {
|
|
14635
|
-
writer.uint32(34).string(message.maxOrderPriceRatio);
|
|
14636
|
-
}
|
|
14637
|
-
return writer;
|
|
14638
|
-
},
|
|
14639
|
-
decode(input, length) {
|
|
14640
|
-
const reader = input instanceof BinaryReader36 ? input : new BinaryReader36(input);
|
|
14641
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
14642
|
-
const message = createBaseParams10();
|
|
14643
|
-
while (reader.pos < end) {
|
|
14644
|
-
const tag = reader.uint32();
|
|
14645
|
-
switch (tag >>> 3) {
|
|
14646
|
-
case 1: {
|
|
14647
|
-
if (tag !== 8) {
|
|
14648
|
-
break;
|
|
14649
|
-
}
|
|
14650
|
-
message.maxOrderPerAddress = reader.uint64();
|
|
14651
|
-
continue;
|
|
14652
|
-
}
|
|
14653
|
-
case 2: {
|
|
14654
|
-
if (tag !== 18) {
|
|
14655
|
-
break;
|
|
14656
|
-
}
|
|
14657
|
-
message.minOrderQuoteAmount = reader.string();
|
|
14658
|
-
continue;
|
|
14659
|
-
}
|
|
14660
|
-
case 3: {
|
|
14661
|
-
if (tag !== 26) {
|
|
14662
|
-
break;
|
|
14663
|
-
}
|
|
14664
|
-
message.maxOrderLifespan = Duration.decode(reader, reader.uint32());
|
|
14665
|
-
continue;
|
|
14666
|
-
}
|
|
14667
|
-
case 4: {
|
|
14668
|
-
if (tag !== 34) {
|
|
14669
|
-
break;
|
|
14670
|
-
}
|
|
14671
|
-
message.maxOrderPriceRatio = reader.string();
|
|
14672
|
-
continue;
|
|
14673
|
-
}
|
|
14674
|
-
}
|
|
14675
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
14676
|
-
break;
|
|
14677
|
-
}
|
|
14678
|
-
reader.skip(tag & 7);
|
|
14679
|
-
}
|
|
14680
|
-
return message;
|
|
14681
|
-
},
|
|
14682
|
-
fromJSON(object2) {
|
|
14683
|
-
return {
|
|
14684
|
-
maxOrderPerAddress: isSet34(object2.maxOrderPerAddress) ? BigInt(object2.maxOrderPerAddress) : isSet34(object2.max_order_per_address) ? BigInt(object2.max_order_per_address) : 0n,
|
|
14685
|
-
minOrderQuoteAmount: isSet34(object2.minOrderQuoteAmount) ? globalThis.String(object2.minOrderQuoteAmount) : isSet34(object2.min_order_quote_amount) ? globalThis.String(object2.min_order_quote_amount) : "",
|
|
14686
|
-
maxOrderLifespan: isSet34(object2.maxOrderLifespan) ? Duration.fromJSON(object2.maxOrderLifespan) : isSet34(object2.max_order_lifespan) ? Duration.fromJSON(object2.max_order_lifespan) : void 0,
|
|
14687
|
-
maxOrderPriceRatio: isSet34(object2.maxOrderPriceRatio) ? globalThis.String(object2.maxOrderPriceRatio) : isSet34(object2.max_order_price_ratio) ? globalThis.String(object2.max_order_price_ratio) : ""
|
|
14688
|
-
};
|
|
14689
|
-
},
|
|
14690
|
-
toJSON(message) {
|
|
14691
|
-
const obj = {};
|
|
14692
|
-
if (message.maxOrderPerAddress !== 0n) {
|
|
14693
|
-
obj.maxOrderPerAddress = message.maxOrderPerAddress.toString();
|
|
14694
|
-
}
|
|
14695
|
-
if (message.minOrderQuoteAmount !== "") {
|
|
14696
|
-
obj.minOrderQuoteAmount = message.minOrderQuoteAmount;
|
|
14697
|
-
}
|
|
14698
|
-
if (message.maxOrderLifespan !== void 0) {
|
|
14699
|
-
obj.maxOrderLifespan = Duration.toJSON(message.maxOrderLifespan);
|
|
14700
|
-
}
|
|
14701
|
-
if (message.maxOrderPriceRatio !== "") {
|
|
14702
|
-
obj.maxOrderPriceRatio = message.maxOrderPriceRatio;
|
|
14703
|
-
}
|
|
14704
|
-
return obj;
|
|
14705
|
-
},
|
|
14706
|
-
create(base) {
|
|
14707
|
-
return Params12.fromPartial(base ?? {});
|
|
14708
|
-
},
|
|
14709
|
-
fromPartial(object2) {
|
|
14710
|
-
const message = createBaseParams10();
|
|
14711
|
-
message.maxOrderPerAddress = object2.maxOrderPerAddress ?? 0n;
|
|
14712
|
-
message.minOrderQuoteAmount = object2.minOrderQuoteAmount ?? "";
|
|
14713
|
-
message.maxOrderLifespan = object2.maxOrderLifespan !== void 0 && object2.maxOrderLifespan !== null ? Duration.fromPartial(object2.maxOrderLifespan) : void 0;
|
|
14714
|
-
message.maxOrderPriceRatio = object2.maxOrderPriceRatio ?? "";
|
|
14715
|
-
return message;
|
|
14716
|
-
}
|
|
14717
|
-
};
|
|
14718
14829
|
function isSet34(value) {
|
|
14719
14830
|
return value !== null && value !== void 0;
|
|
14720
14831
|
}
|
|
14721
14832
|
|
|
14722
14833
|
// src/proto/gen/ault/clob/v1/tx.ts
|
|
14834
|
+
import { BinaryReader as BinaryReader37, BinaryWriter as BinaryWriter38 } from "@bufbuild/protobuf/wire";
|
|
14723
14835
|
function createBaseMsgPlaceLimitOrder() {
|
|
14724
14836
|
return {
|
|
14725
14837
|
sender: "",
|
|
@@ -15371,7 +15483,7 @@ var MsgUpdateParams3 = {
|
|
|
15371
15483
|
writer.uint32(10).string(message.authority);
|
|
15372
15484
|
}
|
|
15373
15485
|
if (message.params !== void 0) {
|
|
15374
|
-
|
|
15486
|
+
Params4.encode(message.params, writer.uint32(18).fork()).join();
|
|
15375
15487
|
}
|
|
15376
15488
|
return writer;
|
|
15377
15489
|
},
|
|
@@ -15393,7 +15505,7 @@ var MsgUpdateParams3 = {
|
|
|
15393
15505
|
if (tag !== 18) {
|
|
15394
15506
|
break;
|
|
15395
15507
|
}
|
|
15396
|
-
message.params =
|
|
15508
|
+
message.params = Params4.decode(reader, reader.uint32());
|
|
15397
15509
|
continue;
|
|
15398
15510
|
}
|
|
15399
15511
|
}
|
|
@@ -15407,7 +15519,7 @@ var MsgUpdateParams3 = {
|
|
|
15407
15519
|
fromJSON(object2) {
|
|
15408
15520
|
return {
|
|
15409
15521
|
authority: isSet35(object2.authority) ? globalThis.String(object2.authority) : "",
|
|
15410
|
-
params: isSet35(object2.params) ?
|
|
15522
|
+
params: isSet35(object2.params) ? Params4.fromJSON(object2.params) : void 0
|
|
15411
15523
|
};
|
|
15412
15524
|
},
|
|
15413
15525
|
toJSON(message) {
|
|
@@ -15416,7 +15528,7 @@ var MsgUpdateParams3 = {
|
|
|
15416
15528
|
obj.authority = message.authority;
|
|
15417
15529
|
}
|
|
15418
15530
|
if (message.params !== void 0) {
|
|
15419
|
-
obj.params =
|
|
15531
|
+
obj.params = Params4.toJSON(message.params);
|
|
15420
15532
|
}
|
|
15421
15533
|
return obj;
|
|
15422
15534
|
},
|
|
@@ -15426,7 +15538,7 @@ var MsgUpdateParams3 = {
|
|
|
15426
15538
|
fromPartial(object2) {
|
|
15427
15539
|
const message = createBaseMsgUpdateParams3();
|
|
15428
15540
|
message.authority = object2.authority ?? "";
|
|
15429
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
15541
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params4.fromPartial(object2.params) : void 0;
|
|
15430
15542
|
return message;
|
|
15431
15543
|
}
|
|
15432
15544
|
};
|
|
@@ -16005,7 +16117,7 @@ var MsgUpdateParams4 = {
|
|
|
16005
16117
|
writer.uint32(10).string(message.authority);
|
|
16006
16118
|
}
|
|
16007
16119
|
if (message.params !== void 0) {
|
|
16008
|
-
|
|
16120
|
+
Params5.encode(message.params, writer.uint32(18).fork()).join();
|
|
16009
16121
|
}
|
|
16010
16122
|
return writer;
|
|
16011
16123
|
},
|
|
@@ -16027,7 +16139,7 @@ var MsgUpdateParams4 = {
|
|
|
16027
16139
|
if (tag !== 18) {
|
|
16028
16140
|
break;
|
|
16029
16141
|
}
|
|
16030
|
-
message.params =
|
|
16142
|
+
message.params = Params5.decode(reader, reader.uint32());
|
|
16031
16143
|
continue;
|
|
16032
16144
|
}
|
|
16033
16145
|
}
|
|
@@ -16041,7 +16153,7 @@ var MsgUpdateParams4 = {
|
|
|
16041
16153
|
fromJSON(object2) {
|
|
16042
16154
|
return {
|
|
16043
16155
|
authority: isSet36(object2.authority) ? globalThis.String(object2.authority) : "",
|
|
16044
|
-
params: isSet36(object2.params) ?
|
|
16156
|
+
params: isSet36(object2.params) ? Params5.fromJSON(object2.params) : void 0
|
|
16045
16157
|
};
|
|
16046
16158
|
},
|
|
16047
16159
|
toJSON(message) {
|
|
@@ -16050,7 +16162,7 @@ var MsgUpdateParams4 = {
|
|
|
16050
16162
|
obj.authority = message.authority;
|
|
16051
16163
|
}
|
|
16052
16164
|
if (message.params !== void 0) {
|
|
16053
|
-
obj.params =
|
|
16165
|
+
obj.params = Params5.toJSON(message.params);
|
|
16054
16166
|
}
|
|
16055
16167
|
return obj;
|
|
16056
16168
|
},
|
|
@@ -16060,7 +16172,7 @@ var MsgUpdateParams4 = {
|
|
|
16060
16172
|
fromPartial(object2) {
|
|
16061
16173
|
const message = createBaseMsgUpdateParams4();
|
|
16062
16174
|
message.authority = object2.authority ?? "";
|
|
16063
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
16175
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params5.fromPartial(object2.params) : void 0;
|
|
16064
16176
|
return message;
|
|
16065
16177
|
}
|
|
16066
16178
|
};
|
|
@@ -16801,7 +16913,7 @@ var MsgUpdateParams5 = {
|
|
|
16801
16913
|
writer.uint32(10).string(message.authority);
|
|
16802
16914
|
}
|
|
16803
16915
|
if (message.params !== void 0) {
|
|
16804
|
-
|
|
16916
|
+
Params6.encode(message.params, writer.uint32(18).fork()).join();
|
|
16805
16917
|
}
|
|
16806
16918
|
return writer;
|
|
16807
16919
|
},
|
|
@@ -16823,7 +16935,7 @@ var MsgUpdateParams5 = {
|
|
|
16823
16935
|
if (tag !== 18) {
|
|
16824
16936
|
break;
|
|
16825
16937
|
}
|
|
16826
|
-
message.params =
|
|
16938
|
+
message.params = Params6.decode(reader, reader.uint32());
|
|
16827
16939
|
continue;
|
|
16828
16940
|
}
|
|
16829
16941
|
}
|
|
@@ -16837,7 +16949,7 @@ var MsgUpdateParams5 = {
|
|
|
16837
16949
|
fromJSON(object2) {
|
|
16838
16950
|
return {
|
|
16839
16951
|
authority: isSet37(object2.authority) ? globalThis.String(object2.authority) : "",
|
|
16840
|
-
params: isSet37(object2.params) ?
|
|
16952
|
+
params: isSet37(object2.params) ? Params6.fromJSON(object2.params) : void 0
|
|
16841
16953
|
};
|
|
16842
16954
|
},
|
|
16843
16955
|
toJSON(message) {
|
|
@@ -16846,7 +16958,7 @@ var MsgUpdateParams5 = {
|
|
|
16846
16958
|
obj.authority = message.authority;
|
|
16847
16959
|
}
|
|
16848
16960
|
if (message.params !== void 0) {
|
|
16849
|
-
obj.params =
|
|
16961
|
+
obj.params = Params6.toJSON(message.params);
|
|
16850
16962
|
}
|
|
16851
16963
|
return obj;
|
|
16852
16964
|
},
|
|
@@ -16856,7 +16968,7 @@ var MsgUpdateParams5 = {
|
|
|
16856
16968
|
fromPartial(object2) {
|
|
16857
16969
|
const message = createBaseMsgUpdateParams5();
|
|
16858
16970
|
message.authority = object2.authority ?? "";
|
|
16859
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
16971
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params6.fromPartial(object2.params) : void 0;
|
|
16860
16972
|
return message;
|
|
16861
16973
|
}
|
|
16862
16974
|
};
|
|
@@ -17581,7 +17693,7 @@ var MsgUpdateParams6 = {
|
|
|
17581
17693
|
writer.uint32(10).string(message.authority);
|
|
17582
17694
|
}
|
|
17583
17695
|
if (message.params !== void 0) {
|
|
17584
|
-
|
|
17696
|
+
Params7.encode(message.params, writer.uint32(18).fork()).join();
|
|
17585
17697
|
}
|
|
17586
17698
|
return writer;
|
|
17587
17699
|
},
|
|
@@ -17603,7 +17715,7 @@ var MsgUpdateParams6 = {
|
|
|
17603
17715
|
if (tag !== 18) {
|
|
17604
17716
|
break;
|
|
17605
17717
|
}
|
|
17606
|
-
message.params =
|
|
17718
|
+
message.params = Params7.decode(reader, reader.uint32());
|
|
17607
17719
|
continue;
|
|
17608
17720
|
}
|
|
17609
17721
|
}
|
|
@@ -17617,7 +17729,7 @@ var MsgUpdateParams6 = {
|
|
|
17617
17729
|
fromJSON(object2) {
|
|
17618
17730
|
return {
|
|
17619
17731
|
authority: isSet38(object2.authority) ? globalThis.String(object2.authority) : "",
|
|
17620
|
-
params: isSet38(object2.params) ?
|
|
17732
|
+
params: isSet38(object2.params) ? Params7.fromJSON(object2.params) : void 0
|
|
17621
17733
|
};
|
|
17622
17734
|
},
|
|
17623
17735
|
toJSON(message) {
|
|
@@ -17626,7 +17738,7 @@ var MsgUpdateParams6 = {
|
|
|
17626
17738
|
obj.authority = message.authority;
|
|
17627
17739
|
}
|
|
17628
17740
|
if (message.params !== void 0) {
|
|
17629
|
-
obj.params =
|
|
17741
|
+
obj.params = Params7.toJSON(message.params);
|
|
17630
17742
|
}
|
|
17631
17743
|
return obj;
|
|
17632
17744
|
},
|
|
@@ -17636,7 +17748,7 @@ var MsgUpdateParams6 = {
|
|
|
17636
17748
|
fromPartial(object2) {
|
|
17637
17749
|
const message = createBaseMsgUpdateParams6();
|
|
17638
17750
|
message.authority = object2.authority ?? "";
|
|
17639
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
17751
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params7.fromPartial(object2.params) : void 0;
|
|
17640
17752
|
return message;
|
|
17641
17753
|
}
|
|
17642
17754
|
};
|
|
@@ -18171,7 +18283,7 @@ var MsgUpdateParams7 = {
|
|
|
18171
18283
|
writer.uint32(10).string(message.authority);
|
|
18172
18284
|
}
|
|
18173
18285
|
if (message.params !== void 0) {
|
|
18174
|
-
|
|
18286
|
+
Params8.encode(message.params, writer.uint32(18).fork()).join();
|
|
18175
18287
|
}
|
|
18176
18288
|
return writer;
|
|
18177
18289
|
},
|
|
@@ -18193,7 +18305,7 @@ var MsgUpdateParams7 = {
|
|
|
18193
18305
|
if (tag !== 18) {
|
|
18194
18306
|
break;
|
|
18195
18307
|
}
|
|
18196
|
-
message.params =
|
|
18308
|
+
message.params = Params8.decode(reader, reader.uint32());
|
|
18197
18309
|
continue;
|
|
18198
18310
|
}
|
|
18199
18311
|
}
|
|
@@ -18207,7 +18319,7 @@ var MsgUpdateParams7 = {
|
|
|
18207
18319
|
fromJSON(object2) {
|
|
18208
18320
|
return {
|
|
18209
18321
|
authority: isSet39(object2.authority) ? globalThis.String(object2.authority) : "",
|
|
18210
|
-
params: isSet39(object2.params) ?
|
|
18322
|
+
params: isSet39(object2.params) ? Params8.fromJSON(object2.params) : void 0
|
|
18211
18323
|
};
|
|
18212
18324
|
},
|
|
18213
18325
|
toJSON(message) {
|
|
@@ -18216,7 +18328,7 @@ var MsgUpdateParams7 = {
|
|
|
18216
18328
|
obj.authority = message.authority;
|
|
18217
18329
|
}
|
|
18218
18330
|
if (message.params !== void 0) {
|
|
18219
|
-
obj.params =
|
|
18331
|
+
obj.params = Params8.toJSON(message.params);
|
|
18220
18332
|
}
|
|
18221
18333
|
return obj;
|
|
18222
18334
|
},
|
|
@@ -18226,7 +18338,7 @@ var MsgUpdateParams7 = {
|
|
|
18226
18338
|
fromPartial(object2) {
|
|
18227
18339
|
const message = createBaseMsgUpdateParams7();
|
|
18228
18340
|
message.authority = object2.authority ?? "";
|
|
18229
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
18341
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params8.fromPartial(object2.params) : void 0;
|
|
18230
18342
|
return message;
|
|
18231
18343
|
}
|
|
18232
18344
|
};
|
|
@@ -18464,7 +18576,7 @@ var MsgUpdateParams8 = {
|
|
|
18464
18576
|
writer.uint32(10).string(message.authority);
|
|
18465
18577
|
}
|
|
18466
18578
|
if (message.params !== void 0) {
|
|
18467
|
-
|
|
18579
|
+
Params9.encode(message.params, writer.uint32(18).fork()).join();
|
|
18468
18580
|
}
|
|
18469
18581
|
return writer;
|
|
18470
18582
|
},
|
|
@@ -18486,7 +18598,7 @@ var MsgUpdateParams8 = {
|
|
|
18486
18598
|
if (tag !== 18) {
|
|
18487
18599
|
break;
|
|
18488
18600
|
}
|
|
18489
|
-
message.params =
|
|
18601
|
+
message.params = Params9.decode(reader, reader.uint32());
|
|
18490
18602
|
continue;
|
|
18491
18603
|
}
|
|
18492
18604
|
}
|
|
@@ -18500,7 +18612,7 @@ var MsgUpdateParams8 = {
|
|
|
18500
18612
|
fromJSON(object2) {
|
|
18501
18613
|
return {
|
|
18502
18614
|
authority: isSet40(object2.authority) ? globalThis.String(object2.authority) : "",
|
|
18503
|
-
params: isSet40(object2.params) ?
|
|
18615
|
+
params: isSet40(object2.params) ? Params9.fromJSON(object2.params) : void 0
|
|
18504
18616
|
};
|
|
18505
18617
|
},
|
|
18506
18618
|
toJSON(message) {
|
|
@@ -18509,7 +18621,7 @@ var MsgUpdateParams8 = {
|
|
|
18509
18621
|
obj.authority = message.authority;
|
|
18510
18622
|
}
|
|
18511
18623
|
if (message.params !== void 0) {
|
|
18512
|
-
obj.params =
|
|
18624
|
+
obj.params = Params9.toJSON(message.params);
|
|
18513
18625
|
}
|
|
18514
18626
|
return obj;
|
|
18515
18627
|
},
|
|
@@ -18519,7 +18631,7 @@ var MsgUpdateParams8 = {
|
|
|
18519
18631
|
fromPartial(object2) {
|
|
18520
18632
|
const message = createBaseMsgUpdateParams8();
|
|
18521
18633
|
message.authority = object2.authority ?? "";
|
|
18522
|
-
message.params = object2.params !== void 0 && object2.params !== null ?
|
|
18634
|
+
message.params = object2.params !== void 0 && object2.params !== null ? Params9.fromPartial(object2.params) : void 0;
|
|
18523
18635
|
return message;
|
|
18524
18636
|
}
|
|
18525
18637
|
};
|
|
@@ -21141,12 +21253,12 @@ async function signAndBroadcastEip712({
|
|
|
21141
21253
|
const txHash = normalizeTxHash(result.tx_response.txhash);
|
|
21142
21254
|
if (result.tx_response.code !== 0) {
|
|
21143
21255
|
clearCachedSequence(cache);
|
|
21144
|
-
|
|
21256
|
+
throw new TxError({
|
|
21145
21257
|
txHash,
|
|
21146
21258
|
code: result.tx_response.code,
|
|
21147
21259
|
rawLog: result.tx_response.raw_log,
|
|
21148
21260
|
confirmed: true
|
|
21149
|
-
};
|
|
21261
|
+
});
|
|
21150
21262
|
}
|
|
21151
21263
|
const deliverResult = await pollTxInclusion(
|
|
21152
21264
|
network,
|
|
@@ -21163,18 +21275,34 @@ async function signAndBroadcastEip712({
|
|
|
21163
21275
|
}
|
|
21164
21276
|
}
|
|
21165
21277
|
if (deliverResult.confirmed === void 0) {
|
|
21166
|
-
|
|
21278
|
+
throw new TxConfirmationUnavailableError({
|
|
21167
21279
|
txHash,
|
|
21168
|
-
code:
|
|
21280
|
+
code: deliverResult.code,
|
|
21169
21281
|
rawLog: deliverResult.rawLog ?? result.tx_response.raw_log,
|
|
21170
21282
|
confirmed: void 0
|
|
21171
|
-
};
|
|
21283
|
+
});
|
|
21284
|
+
}
|
|
21285
|
+
if (deliverResult.confirmed === false) {
|
|
21286
|
+
throw new TxNotConfirmedError({
|
|
21287
|
+
txHash,
|
|
21288
|
+
code: deliverResult.code,
|
|
21289
|
+
rawLog: deliverResult.rawLog,
|
|
21290
|
+
confirmed: false
|
|
21291
|
+
});
|
|
21292
|
+
}
|
|
21293
|
+
if (deliverResult.code !== 0) {
|
|
21294
|
+
throw new TxError({
|
|
21295
|
+
txHash,
|
|
21296
|
+
code: deliverResult.code,
|
|
21297
|
+
rawLog: deliverResult.rawLog,
|
|
21298
|
+
confirmed: true
|
|
21299
|
+
});
|
|
21172
21300
|
}
|
|
21173
21301
|
return {
|
|
21174
21302
|
txHash,
|
|
21175
|
-
code:
|
|
21303
|
+
code: 0,
|
|
21176
21304
|
rawLog: deliverResult.rawLog,
|
|
21177
|
-
confirmed:
|
|
21305
|
+
confirmed: true
|
|
21178
21306
|
};
|
|
21179
21307
|
}
|
|
21180
21308
|
|
|
@@ -22374,13 +22502,35 @@ function createStakingTxApi({ signerAddress, exec }) {
|
|
|
22374
22502
|
if (validatorAddresses.length === 0) {
|
|
22375
22503
|
throw new Error("validatorAddresses must include at least one validator address.");
|
|
22376
22504
|
}
|
|
22377
|
-
const
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
|
|
22382
|
-
|
|
22383
|
-
|
|
22505
|
+
const normalized = validatorAddresses.map(assertValidatorAddress);
|
|
22506
|
+
const results = [];
|
|
22507
|
+
const partial = [];
|
|
22508
|
+
for (let i = 0; i < normalized.length; i++) {
|
|
22509
|
+
const validatorAddress = normalized[i];
|
|
22510
|
+
try {
|
|
22511
|
+
const result = await exec(
|
|
22512
|
+
[
|
|
22513
|
+
msg.distribution.withdrawDelegatorReward({
|
|
22514
|
+
delegatorAddress: signerAddress,
|
|
22515
|
+
validatorAddress
|
|
22516
|
+
})
|
|
22517
|
+
],
|
|
22518
|
+
{ gasLimit, feeAmount, memo, confirmationTimeoutMs }
|
|
22519
|
+
);
|
|
22520
|
+
results.push(result);
|
|
22521
|
+
partial.push({ txHash: result.txHash, validatorAddress });
|
|
22522
|
+
} catch (error) {
|
|
22523
|
+
if (partial.length > 0) {
|
|
22524
|
+
throw new WithdrawRewardsPartialError({
|
|
22525
|
+
failedValidatorAddress: validatorAddress,
|
|
22526
|
+
partialResults: partial,
|
|
22527
|
+
cause: error instanceof Error ? error : new Error(String(error))
|
|
22528
|
+
});
|
|
22529
|
+
}
|
|
22530
|
+
throw error;
|
|
22531
|
+
}
|
|
22532
|
+
}
|
|
22533
|
+
return results;
|
|
22384
22534
|
}
|
|
22385
22535
|
};
|
|
22386
22536
|
}
|
|
@@ -22493,10 +22643,10 @@ function createTxExecutor(options) {
|
|
|
22493
22643
|
});
|
|
22494
22644
|
return {
|
|
22495
22645
|
txHash: result.txHash,
|
|
22496
|
-
code:
|
|
22646
|
+
code: 0,
|
|
22497
22647
|
rawLog: result.rawLog,
|
|
22498
|
-
confirmed:
|
|
22499
|
-
success:
|
|
22648
|
+
confirmed: true,
|
|
22649
|
+
success: true
|
|
22500
22650
|
};
|
|
22501
22651
|
};
|
|
22502
22652
|
}
|
|
@@ -22666,12 +22816,12 @@ async function signAndBroadcastAgentTx({
|
|
|
22666
22816
|
);
|
|
22667
22817
|
const txHash = normalizeTxHash(result.tx_response.txhash);
|
|
22668
22818
|
if (result.tx_response.code !== 0) {
|
|
22669
|
-
|
|
22819
|
+
throw new TxError({
|
|
22670
22820
|
txHash,
|
|
22671
22821
|
code: result.tx_response.code,
|
|
22672
22822
|
rawLog: result.tx_response.raw_log,
|
|
22673
22823
|
confirmed: true
|
|
22674
|
-
};
|
|
22824
|
+
});
|
|
22675
22825
|
}
|
|
22676
22826
|
const deliverResult = await pollTxInclusion(
|
|
22677
22827
|
network,
|
|
@@ -22681,18 +22831,34 @@ async function signAndBroadcastAgentTx({
|
|
|
22681
22831
|
confirmationTimeoutMs
|
|
22682
22832
|
);
|
|
22683
22833
|
if (deliverResult.confirmed === void 0) {
|
|
22684
|
-
|
|
22834
|
+
throw new TxConfirmationUnavailableError({
|
|
22685
22835
|
txHash,
|
|
22686
|
-
code:
|
|
22836
|
+
code: deliverResult.code,
|
|
22687
22837
|
rawLog: deliverResult.rawLog ?? result.tx_response.raw_log,
|
|
22688
22838
|
confirmed: void 0
|
|
22689
|
-
};
|
|
22839
|
+
});
|
|
22840
|
+
}
|
|
22841
|
+
if (deliverResult.confirmed === false) {
|
|
22842
|
+
throw new TxNotConfirmedError({
|
|
22843
|
+
txHash,
|
|
22844
|
+
code: deliverResult.code,
|
|
22845
|
+
rawLog: deliverResult.rawLog,
|
|
22846
|
+
confirmed: false
|
|
22847
|
+
});
|
|
22848
|
+
}
|
|
22849
|
+
if (deliverResult.code !== 0) {
|
|
22850
|
+
throw new TxError({
|
|
22851
|
+
txHash,
|
|
22852
|
+
code: deliverResult.code,
|
|
22853
|
+
rawLog: deliverResult.rawLog,
|
|
22854
|
+
confirmed: true
|
|
22855
|
+
});
|
|
22690
22856
|
}
|
|
22691
22857
|
return {
|
|
22692
22858
|
txHash,
|
|
22693
|
-
code:
|
|
22859
|
+
code: 0,
|
|
22694
22860
|
rawLog: deliverResult.rawLog,
|
|
22695
|
-
confirmed:
|
|
22861
|
+
confirmed: true
|
|
22696
22862
|
};
|
|
22697
22863
|
}
|
|
22698
22864
|
|
|
@@ -22725,10 +22891,10 @@ function createAgentTxExecutor(options) {
|
|
|
22725
22891
|
});
|
|
22726
22892
|
return {
|
|
22727
22893
|
txHash: result.txHash,
|
|
22728
|
-
code:
|
|
22894
|
+
code: 0,
|
|
22729
22895
|
rawLog: result.rawLog,
|
|
22730
|
-
confirmed:
|
|
22731
|
-
success:
|
|
22896
|
+
confirmed: true,
|
|
22897
|
+
success: true
|
|
22732
22898
|
};
|
|
22733
22899
|
};
|
|
22734
22900
|
}
|
|
@@ -22933,6 +23099,7 @@ var GetStatusResponse = zod.object({
|
|
|
22933
23099
|
});
|
|
22934
23100
|
var listMarketsResponseTakerRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
22935
23101
|
var listMarketsResponseMakerRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23102
|
+
var listMarketsResponseInfoEscrowAddressOneRegExp = new RegExp("^ault1[a-z0-9]{38,}$");
|
|
22936
23103
|
var ListMarketsResponseItem = zod.object({
|
|
22937
23104
|
id: zod.string(),
|
|
22938
23105
|
symbol: zod.string(),
|
|
@@ -22988,7 +23155,19 @@ var ListMarketsResponseItem = zod.object({
|
|
|
22988
23155
|
}).optional()
|
|
22989
23156
|
}),
|
|
22990
23157
|
created: zod.number().nullish(),
|
|
22991
|
-
info: zod.
|
|
23158
|
+
info: zod.object({
|
|
23159
|
+
escrow_address: zod.string().regex(listMarketsResponseInfoEscrowAddressOneRegExp).describe(
|
|
23160
|
+
"Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n"
|
|
23161
|
+
).optional().describe(
|
|
23162
|
+
"Bech32 address of the per-market escrow account that holds\nuser deposits while orders are resting.\n"
|
|
23163
|
+
),
|
|
23164
|
+
block_height: zod.number().optional().describe("Height of the block at which the market was registered."),
|
|
23165
|
+
market_type: zod.number().optional().describe(
|
|
23166
|
+
"On-chain market type code (e.g. spot). Stable across the\nlifecycle of the market; `MarketResponse.type` carries the\nCCXT label.\n"
|
|
23167
|
+
)
|
|
23168
|
+
}).describe(
|
|
23169
|
+
"Exchange-specific extension on `MarketResponse`. Mirrors the\n`Info` map populated in `internal/domain/market/service.go`.\n"
|
|
23170
|
+
)
|
|
22992
23171
|
});
|
|
22993
23172
|
var ListMarketsResponse = zod.array(ListMarketsResponseItem);
|
|
22994
23173
|
var ListCurrenciesResponse = zod.record(
|
|
@@ -23089,12 +23268,16 @@ var GetOrderbookResponse = zod.object({
|
|
|
23089
23268
|
zod.string().describe("price, decimal string"),
|
|
23090
23269
|
zod.string().describe("quantity, decimal string")
|
|
23091
23270
|
])
|
|
23271
|
+
).describe(
|
|
23272
|
+
"Bid levels as `[price, qty]` decimal-string tuples. Ordered by\nprice descending \u2014 index 0 is the best bid. Matches the WS\n`book` topic (`docs/websocket-api.md`), so consumers that switch\nbetween REST snapshots and WS deltas don't need to re-sort.\n"
|
|
23092
23273
|
),
|
|
23093
23274
|
asks: zod.array(
|
|
23094
23275
|
zod.tuple([
|
|
23095
23276
|
zod.string().describe("price, decimal string"),
|
|
23096
23277
|
zod.string().describe("quantity, decimal string")
|
|
23097
23278
|
])
|
|
23279
|
+
).describe(
|
|
23280
|
+
"Ask levels as `[price, qty]` decimal-string tuples. Ordered by\nprice ascending \u2014 index 0 is the best ask. Matches the WS\n`book` topic, so consumers that switch between REST snapshots\nand WS deltas don't need to re-sort.\n"
|
|
23098
23281
|
),
|
|
23099
23282
|
timestamp: zod.number(),
|
|
23100
23283
|
datetime: zod.iso.datetime({}),
|
|
@@ -23114,6 +23297,8 @@ var listTradesResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
|
23114
23297
|
var listTradesResponseCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23115
23298
|
var listTradesResponseFeeCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23116
23299
|
var listTradesResponseFeeRateRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23300
|
+
var listTradesResponseInfoAddressOneRegExp = new RegExp("^ault1[a-z0-9]{38,}$");
|
|
23301
|
+
var listTradesResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
|
|
23117
23302
|
var ListTradesResponseItem = zod.object({
|
|
23118
23303
|
id: zod.string(),
|
|
23119
23304
|
order: zod.string().nullish(),
|
|
@@ -23131,7 +23316,20 @@ var ListTradesResponseItem = zod.object({
|
|
|
23131
23316
|
currency: zod.string().optional().describe('Quote currency ticker (e.g., "USDT")'),
|
|
23132
23317
|
rate: zod.string().regex(listTradesResponseFeeRateRegExp).optional().describe("Taker fee rate from the market, decimal string.")
|
|
23133
23318
|
}).optional().describe("Estimated fee for the trade: cost = amount * price * taker_fee_rate"),
|
|
23134
|
-
info: zod.
|
|
23319
|
+
info: zod.object({
|
|
23320
|
+
address: zod.string().regex(listTradesResponseInfoAddressOneRegExp).describe(
|
|
23321
|
+
"Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n"
|
|
23322
|
+
).describe("Bech32 address of the orderer that owns this leg of the fill."),
|
|
23323
|
+
paid: zod.string().describe(
|
|
23324
|
+
'Atto-precision amount the orderer paid for this fill, suffixed\nwith the chain denom (e.g. `"1500000000000000000uusdt"`). Empty\nstring when the chain did not record this side.\n'
|
|
23325
|
+
),
|
|
23326
|
+
received: zod.string().describe(
|
|
23327
|
+
"Atto-precision amount the orderer received for this fill,\nsuffixed with the chain denom. Empty string when the chain did\nnot record this side.\n"
|
|
23328
|
+
),
|
|
23329
|
+
block_height: zod.string().regex(listTradesResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event.")
|
|
23330
|
+
}).describe(
|
|
23331
|
+
"Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n"
|
|
23332
|
+
)
|
|
23135
23333
|
}).describe(
|
|
23136
23334
|
"All numeric fields are canonical decimal strings \u2014 quantities at any\nmagnitude survive the JSON round-trip without rounding through\nfloat64. Consumers parse with their own bigdecimal.\n"
|
|
23137
23335
|
);
|
|
@@ -23149,11 +23347,22 @@ var GetTradingFeesResponse = zod.record(
|
|
|
23149
23347
|
info: zod.looseObject({})
|
|
23150
23348
|
})
|
|
23151
23349
|
);
|
|
23350
|
+
var listOrdersQueryAddressOneRegExp = new RegExp("^ault1[a-z0-9]{38,}$");
|
|
23351
|
+
var listOrdersQueryAddressTwoRegExp = new RegExp("^0x[a-f0-9]{40}$");
|
|
23152
23352
|
var listOrdersQueryMarketIdRegExp = new RegExp("^[0-9a-fA-F]+$");
|
|
23153
23353
|
var listOrdersQueryLimitDefault = 50;
|
|
23154
23354
|
var listOrdersQueryLimitMax = 200;
|
|
23155
23355
|
var ListOrdersQueryParams = zod.object({
|
|
23156
|
-
address: zod.
|
|
23356
|
+
address: zod.union([
|
|
23357
|
+
zod.string().regex(listOrdersQueryAddressOneRegExp).describe(
|
|
23358
|
+
"Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n"
|
|
23359
|
+
),
|
|
23360
|
+
zod.string().regex(listOrdersQueryAddressTwoRegExp).describe(
|
|
23361
|
+
"EVM hex form of the same 20-byte account address. Always\n`0x`-prefixed and lowercased; mixed-case bodies are rejected so a\nnon-checksummed and a checksummed copy of the same address never\ncompare unequal at the API boundary.\n"
|
|
23362
|
+
)
|
|
23363
|
+
]).describe(
|
|
23364
|
+
"Account address. Accepts either bech32 (`ault1...`) or 0x-hex\n(`0x...`) form; the API normalizes to the canonical bech32\nstored in the indexer before querying.\n"
|
|
23365
|
+
),
|
|
23157
23366
|
status: zod.enum(["open", "closed", "canceled"]).optional(),
|
|
23158
23367
|
symbol: zod.string().optional().describe("Symbol to filter by (e.g., AULT/USDT). Alternative to market_id."),
|
|
23159
23368
|
market_id: zod.string().regex(listOrdersQueryMarketIdRegExp).optional().describe("Hex-encoded binary market ID to filter by. Takes precedence over symbol."),
|
|
@@ -23167,6 +23376,8 @@ var listOrdersResponseRemainingRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
|
23167
23376
|
var listOrdersResponseCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23168
23377
|
var listOrdersResponseFeeCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23169
23378
|
var listOrdersResponseFeeRateRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23379
|
+
var listOrdersResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
|
|
23380
|
+
var listOrdersResponseInfoRemainingDepositRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23170
23381
|
var ListOrdersResponseItem = zod.object({
|
|
23171
23382
|
id: zod.string(),
|
|
23172
23383
|
clientOrderId: zod.string().nullish().describe("Always null \u2014 not applicable for on-chain DEX orders."),
|
|
@@ -23183,18 +23394,38 @@ var ListOrdersResponseItem = zod.object({
|
|
|
23183
23394
|
amount: zod.string().regex(listOrdersResponseAmountRegExp),
|
|
23184
23395
|
filled: zod.string().regex(listOrdersResponseFilledRegExp),
|
|
23185
23396
|
remaining: zod.string().regex(listOrdersResponseRemainingRegExp),
|
|
23186
|
-
cost: zod.string().regex(listOrdersResponseCostRegExp).describe(
|
|
23397
|
+
cost: zod.string().regex(listOrdersResponseCostRegExp).describe(
|
|
23398
|
+
'Quote-asset notional accumulated across all fills for this order.\n\nWhen the order has at least one indexed fill, the value is summed\nfrom the trades table (`SUM(filled_quantity * price)`) \u2014 it\nreflects the realized average across every level the order\nwalked, not `filled * price`. Until the indexer has caught up\nwith a freshly-matched fill, the value falls back to\n`filled * price` so consumers never see a misleading "0" while\nthe trade row is still in flight.\n'
|
|
23399
|
+
),
|
|
23187
23400
|
trades: zod.array(zod.looseObject({})).optional(),
|
|
23188
23401
|
fee: zod.object({
|
|
23189
23402
|
cost: zod.string().regex(listOrdersResponseFeeCostRegExp).optional().describe("Fee cost in quote currency, decimal string."),
|
|
23190
23403
|
currency: zod.string().optional().describe('Quote currency ticker (e.g., "USDT")'),
|
|
23191
23404
|
rate: zod.string().regex(listOrdersResponseFeeRateRegExp).optional().describe("Fee rate from the market, decimal string.")
|
|
23192
|
-
}).optional().describe(
|
|
23405
|
+
}).optional().describe(
|
|
23406
|
+
"Fee for the order. `cost` is `cost * taker_fee_rate` \u2014 applied to\nthe realized cost above, so it is more accurate than the previous\n`filled * price * taker_fee_rate` approximation. The rate is the\nmarket's taker rate; per-trade maker/taker resolution depends on\nthe dbindexer `is_taker` column landing first.\n"
|
|
23407
|
+
),
|
|
23193
23408
|
reduceOnly: zod.boolean().optional(),
|
|
23194
23409
|
postOnly: zod.boolean().optional(),
|
|
23195
23410
|
stopPrice: zod.string().nullish(),
|
|
23196
23411
|
triggerPrice: zod.string().nullish(),
|
|
23197
|
-
info: zod.
|
|
23412
|
+
info: zod.object({
|
|
23413
|
+
block_height: zod.string().regex(listOrdersResponseInfoBlockHeightRegExp).describe(
|
|
23414
|
+
"Height of the block that wrote the order. Decimal string for\nparity with the WS order `info.block_height`.\n"
|
|
23415
|
+
),
|
|
23416
|
+
tx_index: zod.number().describe("Index of the order tx within its block."),
|
|
23417
|
+
remaining_deposit: zod.string().regex(listOrdersResponseInfoRemainingDepositRegExp).describe(
|
|
23418
|
+
"Remaining quote-asset escrow (raw decimal string at the chain's\natto-precision) that has not yet been spent on fills.\n"
|
|
23419
|
+
),
|
|
23420
|
+
chain_status: zod.enum(["open", "partially_filled", "filled", "cancelled", "expired", "triggered_pending"]).describe(
|
|
23421
|
+
"Granular chain-level status \u2014 the WS view exposes the same\nstring. The CCXT view at `OrderResponse.status` collapses these\ninto open | closed | canceled.\n"
|
|
23422
|
+
),
|
|
23423
|
+
chain_type: zod.enum(["limit", "market", "scale", "stop"]).describe(
|
|
23424
|
+
"Granular chain-level order type. The CCXT view at\n`OrderResponse.type` collapses these into limit | market.\n"
|
|
23425
|
+
)
|
|
23426
|
+
}).describe(
|
|
23427
|
+
"Exchange-specific extension on `OrderResponse`. Mirrors the\n`info` map populated in `internal/domain/order/service.go`.\n"
|
|
23428
|
+
)
|
|
23198
23429
|
}).describe(
|
|
23199
23430
|
"All numeric fields (price, amount, filled, remaining, cost,\nfee.cost, fee.rate, average, triggerPrice, stopPrice) are canonical\ndecimal strings.\n"
|
|
23200
23431
|
);
|
|
@@ -23209,6 +23440,8 @@ var getOrderResponseRemainingRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
|
23209
23440
|
var getOrderResponseCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23210
23441
|
var getOrderResponseFeeCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23211
23442
|
var getOrderResponseFeeRateRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23443
|
+
var getOrderResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
|
|
23444
|
+
var getOrderResponseInfoRemainingDepositRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23212
23445
|
var GetOrderResponse = zod.object({
|
|
23213
23446
|
id: zod.string(),
|
|
23214
23447
|
clientOrderId: zod.string().nullish().describe("Always null \u2014 not applicable for on-chain DEX orders."),
|
|
@@ -23225,18 +23458,38 @@ var GetOrderResponse = zod.object({
|
|
|
23225
23458
|
amount: zod.string().regex(getOrderResponseAmountRegExp),
|
|
23226
23459
|
filled: zod.string().regex(getOrderResponseFilledRegExp),
|
|
23227
23460
|
remaining: zod.string().regex(getOrderResponseRemainingRegExp),
|
|
23228
|
-
cost: zod.string().regex(getOrderResponseCostRegExp).describe(
|
|
23461
|
+
cost: zod.string().regex(getOrderResponseCostRegExp).describe(
|
|
23462
|
+
'Quote-asset notional accumulated across all fills for this order.\n\nWhen the order has at least one indexed fill, the value is summed\nfrom the trades table (`SUM(filled_quantity * price)`) \u2014 it\nreflects the realized average across every level the order\nwalked, not `filled * price`. Until the indexer has caught up\nwith a freshly-matched fill, the value falls back to\n`filled * price` so consumers never see a misleading "0" while\nthe trade row is still in flight.\n'
|
|
23463
|
+
),
|
|
23229
23464
|
trades: zod.array(zod.looseObject({})).optional(),
|
|
23230
23465
|
fee: zod.object({
|
|
23231
23466
|
cost: zod.string().regex(getOrderResponseFeeCostRegExp).optional().describe("Fee cost in quote currency, decimal string."),
|
|
23232
23467
|
currency: zod.string().optional().describe('Quote currency ticker (e.g., "USDT")'),
|
|
23233
23468
|
rate: zod.string().regex(getOrderResponseFeeRateRegExp).optional().describe("Fee rate from the market, decimal string.")
|
|
23234
|
-
}).optional().describe(
|
|
23469
|
+
}).optional().describe(
|
|
23470
|
+
"Fee for the order. `cost` is `cost * taker_fee_rate` \u2014 applied to\nthe realized cost above, so it is more accurate than the previous\n`filled * price * taker_fee_rate` approximation. The rate is the\nmarket's taker rate; per-trade maker/taker resolution depends on\nthe dbindexer `is_taker` column landing first.\n"
|
|
23471
|
+
),
|
|
23235
23472
|
reduceOnly: zod.boolean().optional(),
|
|
23236
23473
|
postOnly: zod.boolean().optional(),
|
|
23237
23474
|
stopPrice: zod.string().nullish(),
|
|
23238
23475
|
triggerPrice: zod.string().nullish(),
|
|
23239
|
-
info: zod.
|
|
23476
|
+
info: zod.object({
|
|
23477
|
+
block_height: zod.string().regex(getOrderResponseInfoBlockHeightRegExp).describe(
|
|
23478
|
+
"Height of the block that wrote the order. Decimal string for\nparity with the WS order `info.block_height`.\n"
|
|
23479
|
+
),
|
|
23480
|
+
tx_index: zod.number().describe("Index of the order tx within its block."),
|
|
23481
|
+
remaining_deposit: zod.string().regex(getOrderResponseInfoRemainingDepositRegExp).describe(
|
|
23482
|
+
"Remaining quote-asset escrow (raw decimal string at the chain's\natto-precision) that has not yet been spent on fills.\n"
|
|
23483
|
+
),
|
|
23484
|
+
chain_status: zod.enum(["open", "partially_filled", "filled", "cancelled", "expired", "triggered_pending"]).describe(
|
|
23485
|
+
"Granular chain-level status \u2014 the WS view exposes the same\nstring. The CCXT view at `OrderResponse.status` collapses these\ninto open | closed | canceled.\n"
|
|
23486
|
+
),
|
|
23487
|
+
chain_type: zod.enum(["limit", "market", "scale", "stop"]).describe(
|
|
23488
|
+
"Granular chain-level order type. The CCXT view at\n`OrderResponse.type` collapses these into limit | market.\n"
|
|
23489
|
+
)
|
|
23490
|
+
}).describe(
|
|
23491
|
+
"Exchange-specific extension on `OrderResponse`. Mirrors the\n`info` map populated in `internal/domain/order/service.go`.\n"
|
|
23492
|
+
)
|
|
23240
23493
|
}).describe(
|
|
23241
23494
|
"All numeric fields (price, amount, filled, remaining, cost,\nfee.cost, fee.rate, average, triggerPrice, stopPrice) are canonical\ndecimal strings.\n"
|
|
23242
23495
|
);
|
|
@@ -23253,6 +23506,8 @@ var listMyTradesResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
|
23253
23506
|
var listMyTradesResponseCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23254
23507
|
var listMyTradesResponseFeeCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23255
23508
|
var listMyTradesResponseFeeRateRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
23509
|
+
var listMyTradesResponseInfoAddressOneRegExp = new RegExp("^ault1[a-z0-9]{38,}$");
|
|
23510
|
+
var listMyTradesResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
|
|
23256
23511
|
var ListMyTradesResponseItem = zod.object({
|
|
23257
23512
|
id: zod.string(),
|
|
23258
23513
|
order: zod.string().nullish(),
|
|
@@ -23270,7 +23525,20 @@ var ListMyTradesResponseItem = zod.object({
|
|
|
23270
23525
|
currency: zod.string().optional().describe('Quote currency ticker (e.g., "USDT")'),
|
|
23271
23526
|
rate: zod.string().regex(listMyTradesResponseFeeRateRegExp).optional().describe("Taker fee rate from the market, decimal string.")
|
|
23272
23527
|
}).optional().describe("Estimated fee for the trade: cost = amount * price * taker_fee_rate"),
|
|
23273
|
-
info: zod.
|
|
23528
|
+
info: zod.object({
|
|
23529
|
+
address: zod.string().regex(listMyTradesResponseInfoAddressOneRegExp).describe(
|
|
23530
|
+
"Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n"
|
|
23531
|
+
).describe("Bech32 address of the orderer that owns this leg of the fill."),
|
|
23532
|
+
paid: zod.string().describe(
|
|
23533
|
+
'Atto-precision amount the orderer paid for this fill, suffixed\nwith the chain denom (e.g. `"1500000000000000000uusdt"`). Empty\nstring when the chain did not record this side.\n'
|
|
23534
|
+
),
|
|
23535
|
+
received: zod.string().describe(
|
|
23536
|
+
"Atto-precision amount the orderer received for this fill,\nsuffixed with the chain denom. Empty string when the chain did\nnot record this side.\n"
|
|
23537
|
+
),
|
|
23538
|
+
block_height: zod.string().regex(listMyTradesResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event.")
|
|
23539
|
+
}).describe(
|
|
23540
|
+
"Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n"
|
|
23541
|
+
)
|
|
23274
23542
|
}).describe(
|
|
23275
23543
|
"All numeric fields are canonical decimal strings \u2014 quantities at any\nmagnitude survive the JSON round-trip without rounding through\nfloat64. Consumers parse with their own bigdecimal.\n"
|
|
23276
23544
|
);
|
|
@@ -23308,9 +23576,10 @@ var GetOHLCVResponseItem = zod.tuple([
|
|
|
23308
23576
|
zod.string().describe("high price, decimal string"),
|
|
23309
23577
|
zod.string().describe("low price, decimal string"),
|
|
23310
23578
|
zod.string().describe("close price, decimal string"),
|
|
23311
|
-
zod.string().describe("
|
|
23579
|
+
zod.string().describe("base-asset volume, decimal string"),
|
|
23580
|
+
zod.string().describe("quote-asset volume, decimal string (approximation of `baseVolume * close`)")
|
|
23312
23581
|
]).describe(
|
|
23313
|
-
"[timestamp_ms, open, high, low, close,
|
|
23582
|
+
"`[timestamp_ms, open, high, low, close, baseVolume, quoteVolume]`.\nTimestamp is a numeric ms epoch; the o/h/l/c/baseVolume/quoteVolume\nfields are canonical decimal strings so quantities at any magnitude\nsurvive the JSON round-trip. The trailing `quoteVolume` slot is\nderived as `baseVolume * close_price` until the chain indexer\nemits a realized `volume_quote` column. Both SDK clients\n(`ault-sdk-ts`, `ault-sdk-py`) consume the 7-tuple as the\ncanonical shape.\n(Patterns omitted on tuple items because orval generates broken\nregex references when `prefixItems` carry `pattern`; the format is\ndocumented in the descriptions.)\n"
|
|
23314
23583
|
);
|
|
23315
23584
|
var GetOHLCVResponse = zod.array(GetOHLCVResponseItem);
|
|
23316
23585
|
var GetUDFConfigResponse = zod.object({
|
|
@@ -23454,13 +23723,13 @@ function createDexWs(url, options) {
|
|
|
23454
23723
|
}
|
|
23455
23724
|
|
|
23456
23725
|
// src/index.ts
|
|
23457
|
-
var SDK_VERSION = "0.0.2-alpha.
|
|
23726
|
+
var SDK_VERSION = "0.0.2-alpha.15";
|
|
23458
23727
|
export {
|
|
23459
23728
|
AGENT_DEFAULTS,
|
|
23460
23729
|
AULT_SIGNER_MARKER,
|
|
23461
23730
|
ApiError,
|
|
23462
23731
|
dex_generated_exports as AultDex,
|
|
23463
|
-
|
|
23732
|
+
BinaryWriter34 as BinaryWriter,
|
|
23464
23733
|
BondStatus,
|
|
23465
23734
|
COIN_TYPE,
|
|
23466
23735
|
DEFAULT_CHAIN_ID,
|
|
@@ -23532,8 +23801,12 @@ export {
|
|
|
23532
23801
|
TIMING_CONSTANTS,
|
|
23533
23802
|
TX_BASE_FIELDS,
|
|
23534
23803
|
TimeoutError,
|
|
23804
|
+
TxConfirmationUnavailableError,
|
|
23805
|
+
TxError,
|
|
23806
|
+
TxNotConfirmedError,
|
|
23535
23807
|
BondStatus as ValidatorStatus,
|
|
23536
23808
|
WebSocketError,
|
|
23809
|
+
WithdrawRewardsPartialError,
|
|
23537
23810
|
_resetIndexingCache,
|
|
23538
23811
|
addressEquals,
|
|
23539
23812
|
assertValidatorAddress,
|
|
@@ -23607,6 +23880,8 @@ export {
|
|
|
23607
23880
|
getOrderResponseFeeCostRegExp,
|
|
23608
23881
|
getOrderResponseFeeRateRegExp,
|
|
23609
23882
|
getOrderResponseFilledRegExp,
|
|
23883
|
+
getOrderResponseInfoBlockHeightRegExp,
|
|
23884
|
+
getOrderResponseInfoRemainingDepositRegExp,
|
|
23610
23885
|
getOrderResponsePriceRegExp,
|
|
23611
23886
|
getOrderResponseRemainingRegExp,
|
|
23612
23887
|
getOrderbookQueryLimitDefault,
|
|
@@ -23620,6 +23895,7 @@ export {
|
|
|
23620
23895
|
isValidAultAddress,
|
|
23621
23896
|
isValidEvmAddress,
|
|
23622
23897
|
isValidValidatorAddress,
|
|
23898
|
+
listMarketsResponseInfoEscrowAddressOneRegExp,
|
|
23623
23899
|
listMarketsResponseMakerRegExp,
|
|
23624
23900
|
listMarketsResponseTakerRegExp,
|
|
23625
23901
|
listMyTradesQueryLimitDefault,
|
|
@@ -23628,7 +23904,11 @@ export {
|
|
|
23628
23904
|
listMyTradesResponseCostRegExp,
|
|
23629
23905
|
listMyTradesResponseFeeCostRegExp,
|
|
23630
23906
|
listMyTradesResponseFeeRateRegExp,
|
|
23907
|
+
listMyTradesResponseInfoAddressOneRegExp,
|
|
23908
|
+
listMyTradesResponseInfoBlockHeightRegExp,
|
|
23631
23909
|
listMyTradesResponsePriceRegExp,
|
|
23910
|
+
listOrdersQueryAddressOneRegExp,
|
|
23911
|
+
listOrdersQueryAddressTwoRegExp,
|
|
23632
23912
|
listOrdersQueryLimitDefault,
|
|
23633
23913
|
listOrdersQueryLimitMax,
|
|
23634
23914
|
listOrdersQueryMarketIdRegExp,
|
|
@@ -23637,6 +23917,8 @@ export {
|
|
|
23637
23917
|
listOrdersResponseFeeCostRegExp,
|
|
23638
23918
|
listOrdersResponseFeeRateRegExp,
|
|
23639
23919
|
listOrdersResponseFilledRegExp,
|
|
23920
|
+
listOrdersResponseInfoBlockHeightRegExp,
|
|
23921
|
+
listOrdersResponseInfoRemainingDepositRegExp,
|
|
23640
23922
|
listOrdersResponsePriceRegExp,
|
|
23641
23923
|
listOrdersResponseRemainingRegExp,
|
|
23642
23924
|
listTradesQueryLimitDefault,
|
|
@@ -23645,6 +23927,8 @@ export {
|
|
|
23645
23927
|
listTradesResponseCostRegExp,
|
|
23646
23928
|
listTradesResponseFeeCostRegExp,
|
|
23647
23929
|
listTradesResponseFeeRateRegExp,
|
|
23930
|
+
listTradesResponseInfoAddressOneRegExp,
|
|
23931
|
+
listTradesResponseInfoBlockHeightRegExp,
|
|
23648
23932
|
listTradesResponsePriceRegExp,
|
|
23649
23933
|
msg,
|
|
23650
23934
|
normalizeSignature,
|