@sparkdreamnft/sparkdreamjs 0.0.9 → 0.0.11
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/blog/v1/params.js +25 -1
- package/esm/sparkdream/blog/v1/post.js +16 -1
- package/esm/sparkdream/blog/v1/query.js +165 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +11 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +10 -1
- package/esm/sparkdream/blog/v1/tx.js +32 -2
- package/esm/sparkdream/bundle.js +343 -339
- package/esm/sparkdream/collect/v1/curator_activity.js +158 -0
- package/esm/sparkdream/collect/v1/genesis.js +12 -11
- package/esm/sparkdream/collect/v1/params.js +37 -1
- package/esm/sparkdream/collect/v1/query.js +201 -186
- package/esm/sparkdream/collect/v1/query.lcd.js +16 -16
- package/esm/sparkdream/collect/v1/query.rpc.Query.js +19 -19
- package/esm/sparkdream/collect/v1/tx.amino.js +1 -11
- package/esm/sparkdream/collect/v1/tx.js +0 -258
- package/esm/sparkdream/collect/v1/tx.registry.js +2 -38
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +3 -14
- package/esm/sparkdream/collect/v1/types.js +50 -143
- package/esm/sparkdream/federation/v1/genesis.js +12 -11
- package/esm/sparkdream/federation/v1/query.js +37 -187
- package/esm/sparkdream/federation/v1/query.lcd.js +6 -16
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +11 -19
- package/esm/sparkdream/federation/v1/tx.amino.js +1 -11
- package/esm/sparkdream/federation/v1/tx.js +0 -270
- package/esm/sparkdream/federation/v1/tx.registry.js +2 -38
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +4 -14
- package/esm/sparkdream/federation/v1/types.js +13 -318
- package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
- package/esm/sparkdream/forum/v1/params.js +146 -2
- package/esm/sparkdream/futarchy/v1/market.js +13 -1
- package/esm/sparkdream/name/v1/owner_info.js +13 -1
- package/esm/sparkdream/name/v1/query.js +141 -0
- package/esm/sparkdream/name/v1/query.lcd.js +7 -0
- package/esm/sparkdream/name/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/name/v1/tx.amino.js +6 -1
- package/esm/sparkdream/name/v1/tx.js +147 -0
- package/esm/sparkdream/name/v1/tx.registry.js +20 -2
- package/esm/sparkdream/name/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
- package/esm/sparkdream/rep/v1/genesis.js +32 -17
- package/esm/sparkdream/rep/v1/member_report.js +98 -1
- package/esm/sparkdream/rep/v1/query.js +297 -306
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -16
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +36 -35
- package/esm/sparkdream/rep/v1/tx.amino.js +9 -9
- package/esm/sparkdream/rep/v1/tx.js +86 -58
- package/esm/sparkdream/rep/v1/tx.registry.js +18 -18
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -14
- package/esm/sparkdream/season/v1/enums.js +10 -0
- package/esm/tendermint/bundle.js +18 -18
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +16 -0
- package/sparkdream/blog/v1/params.js +25 -1
- package/sparkdream/blog/v1/post.d.ts +8 -0
- package/sparkdream/blog/v1/post.js +16 -1
- package/sparkdream/blog/v1/query.d.ts +92 -0
- package/sparkdream/blog/v1/query.js +166 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +2 -1
- package/sparkdream/blog/v1/query.lcd.js +11 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +5 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +9 -0
- package/sparkdream/blog/v1/tx.d.ts +16 -0
- package/sparkdream/blog/v1/tx.js +32 -2
- package/sparkdream/bundle.d.ts +14445 -14514
- package/sparkdream/bundle.js +343 -339
- package/sparkdream/client.d.ts +11 -26
- package/sparkdream/collect/v1/curator_activity.d.ts +123 -0
- package/sparkdream/collect/v1/curator_activity.js +161 -0
- package/sparkdream/collect/v1/genesis.d.ts +4 -3
- package/sparkdream/collect/v1/genesis.js +11 -10
- package/sparkdream/collect/v1/params.d.ts +32 -0
- package/sparkdream/collect/v1/params.js +37 -1
- package/sparkdream/collect/v1/query.d.ts +142 -133
- package/sparkdream/collect/v1/query.js +201 -186
- package/sparkdream/collect/v1/query.lcd.d.ts +3 -3
- package/sparkdream/collect/v1/query.lcd.js +16 -16
- package/sparkdream/collect/v1/query.rpc.Query.d.ts +13 -7
- package/sparkdream/collect/v1/query.rpc.Query.js +18 -18
- package/sparkdream/collect/v1/tx.amino.d.ts +1 -11
- package/sparkdream/collect/v1/tx.amino.js +0 -10
- package/sparkdream/collect/v1/tx.d.ts +0 -162
- package/sparkdream/collect/v1/tx.js +2 -260
- package/sparkdream/collect/v1/tx.registry.d.ts +1 -25
- package/sparkdream/collect/v1/tx.registry.js +1 -37
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +5 -5
- package/sparkdream/collect/v1/tx.rpc.msg.js +2 -13
- package/sparkdream/collect/v1/types.d.ts +26 -56
- package/sparkdream/collect/v1/types.js +51 -144
- package/sparkdream/federation/v1/genesis.d.ts +4 -3
- package/sparkdream/federation/v1/genesis.js +11 -10
- package/sparkdream/federation/v1/query.d.ts +53 -136
- package/sparkdream/federation/v1/query.js +37 -187
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -3
- package/sparkdream/federation/v1/query.lcd.js +6 -16
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +10 -18
- package/sparkdream/federation/v1/tx.amino.d.ts +1 -11
- package/sparkdream/federation/v1/tx.amino.js +0 -10
- package/sparkdream/federation/v1/tx.d.ts +0 -164
- package/sparkdream/federation/v1/tx.js +1 -272
- package/sparkdream/federation/v1/tx.registry.d.ts +1 -25
- package/sparkdream/federation/v1/tx.registry.js +1 -37
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +6 -5
- package/sparkdream/federation/v1/tx.rpc.msg.js +3 -13
- package/sparkdream/federation/v1/types.d.ts +10 -106
- package/sparkdream/federation/v1/types.js +14 -321
- package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
- package/sparkdream/federation/v1/verifier_activity.js +197 -0
- package/sparkdream/forum/v1/params.d.ts +112 -0
- package/sparkdream/forum/v1/params.js +146 -2
- package/sparkdream/futarchy/v1/market.d.ts +14 -0
- package/sparkdream/futarchy/v1/market.js +13 -1
- package/sparkdream/name/v1/owner_info.d.ts +12 -0
- package/sparkdream/name/v1/owner_info.js +13 -1
- package/sparkdream/name/v1/query.d.ts +95 -0
- package/sparkdream/name/v1/query.js +142 -1
- package/sparkdream/name/v1/query.lcd.d.ts +2 -1
- package/sparkdream/name/v1/query.lcd.js +7 -0
- package/sparkdream/name/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/name/v1/query.rpc.Query.js +11 -0
- package/sparkdream/name/v1/tx.amino.d.ts +6 -1
- package/sparkdream/name/v1/tx.amino.js +5 -0
- package/sparkdream/name/v1/tx.d.ts +105 -0
- package/sparkdream/name/v1/tx.js +148 -1
- package/sparkdream/name/v1/tx.registry.d.ts +13 -1
- package/sparkdream/name/v1/tx.registry.js +19 -1
- package/sparkdream/name/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/name/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
- package/sparkdream/rep/v1/bonded_role.js +453 -0
- package/sparkdream/rep/v1/genesis.d.ts +11 -9
- package/sparkdream/rep/v1/genesis.js +32 -17
- package/sparkdream/rep/v1/member_report.d.ts +61 -0
- package/sparkdream/rep/v1/member_report.js +99 -2
- package/sparkdream/rep/v1/query.d.ts +259 -261
- package/sparkdream/rep/v1/query.js +299 -308
- package/sparkdream/rep/v1/query.lcd.d.ts +5 -5
- package/sparkdream/rep/v1/query.lcd.js +23 -16
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +20 -17
- package/sparkdream/rep/v1/query.rpc.Query.js +35 -34
- package/sparkdream/rep/v1/tx.amino.d.ts +7 -7
- package/sparkdream/rep/v1/tx.amino.js +9 -9
- package/sparkdream/rep/v1/tx.d.ts +121 -104
- package/sparkdream/rep/v1/tx.js +87 -59
- package/sparkdream/rep/v1/tx.registry.d.ts +11 -11
- package/sparkdream/rep/v1/tx.registry.js +17 -17
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +11 -9
- package/sparkdream/rep/v1/tx.rpc.msg.js +15 -13
- package/sparkdream/rpc.query.d.ts +9 -8
- package/sparkdream/season/v1/enums.d.ts +5 -0
- package/sparkdream/season/v1/enums.js +10 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +18 -18
- package/esm/sparkdream/rep/v1/sentinel_activity.js +0 -214
- package/sparkdream/rep/v1/sentinel_activity.d.ts +0 -79
- package/sparkdream/rep/v1/sentinel_activity.js +0 -219
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
3
|
+
import { BondedRole, BondedRoleConfig } from "./bonded_role";
|
|
3
4
|
import { Params } from "./params";
|
|
4
5
|
import { Member } from "./member";
|
|
5
6
|
import { Invitation } from "./invitation";
|
|
@@ -16,7 +17,6 @@ import { ReservedTag } from "./reserved_tag";
|
|
|
16
17
|
import { TagReport } from "./tag_report";
|
|
17
18
|
import { TagBudget } from "./tag_budget";
|
|
18
19
|
import { TagBudgetAward } from "./tag_budget_award";
|
|
19
|
-
import { SentinelActivity } from "./sentinel_activity";
|
|
20
20
|
import { MemberReport } from "./member_report";
|
|
21
21
|
import { MemberWarning } from "./member_warning";
|
|
22
22
|
import { GovActionAppeal } from "./gov_action_appeal";
|
|
@@ -5731,6 +5731,159 @@ export const QueryGetTagStakePoolResponse = {
|
|
|
5731
5731
|
};
|
|
5732
5732
|
}
|
|
5733
5733
|
};
|
|
5734
|
+
function createBaseQueryListTagStakePoolsRequest() {
|
|
5735
|
+
return {
|
|
5736
|
+
pagination: undefined
|
|
5737
|
+
};
|
|
5738
|
+
}
|
|
5739
|
+
/**
|
|
5740
|
+
* QueryListTagStakePoolsRequest defines the request for listing tag stake pools.
|
|
5741
|
+
* @name QueryListTagStakePoolsRequest
|
|
5742
|
+
* @package sparkdream.rep.v1
|
|
5743
|
+
* @see proto type: sparkdream.rep.v1.QueryListTagStakePoolsRequest
|
|
5744
|
+
*/
|
|
5745
|
+
export const QueryListTagStakePoolsRequest = {
|
|
5746
|
+
typeUrl: "/sparkdream.rep.v1.QueryListTagStakePoolsRequest",
|
|
5747
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5748
|
+
if (message.pagination !== undefined) {
|
|
5749
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
5750
|
+
}
|
|
5751
|
+
return writer;
|
|
5752
|
+
},
|
|
5753
|
+
decode(input, length) {
|
|
5754
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5755
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5756
|
+
const message = createBaseQueryListTagStakePoolsRequest();
|
|
5757
|
+
while (reader.pos < end) {
|
|
5758
|
+
const tag = reader.uint32();
|
|
5759
|
+
switch (tag >>> 3) {
|
|
5760
|
+
case 1:
|
|
5761
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
5762
|
+
break;
|
|
5763
|
+
default:
|
|
5764
|
+
reader.skipType(tag & 7);
|
|
5765
|
+
break;
|
|
5766
|
+
}
|
|
5767
|
+
}
|
|
5768
|
+
return message;
|
|
5769
|
+
},
|
|
5770
|
+
fromPartial(object) {
|
|
5771
|
+
const message = createBaseQueryListTagStakePoolsRequest();
|
|
5772
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
5773
|
+
return message;
|
|
5774
|
+
},
|
|
5775
|
+
fromAmino(object) {
|
|
5776
|
+
const message = createBaseQueryListTagStakePoolsRequest();
|
|
5777
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
5778
|
+
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
5779
|
+
}
|
|
5780
|
+
return message;
|
|
5781
|
+
},
|
|
5782
|
+
toAmino(message) {
|
|
5783
|
+
const obj = {};
|
|
5784
|
+
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
5785
|
+
return obj;
|
|
5786
|
+
},
|
|
5787
|
+
fromAminoMsg(object) {
|
|
5788
|
+
return QueryListTagStakePoolsRequest.fromAmino(object.value);
|
|
5789
|
+
},
|
|
5790
|
+
fromProtoMsg(message) {
|
|
5791
|
+
return QueryListTagStakePoolsRequest.decode(message.value);
|
|
5792
|
+
},
|
|
5793
|
+
toProto(message) {
|
|
5794
|
+
return QueryListTagStakePoolsRequest.encode(message).finish();
|
|
5795
|
+
},
|
|
5796
|
+
toProtoMsg(message) {
|
|
5797
|
+
return {
|
|
5798
|
+
typeUrl: "/sparkdream.rep.v1.QueryListTagStakePoolsRequest",
|
|
5799
|
+
value: QueryListTagStakePoolsRequest.encode(message).finish()
|
|
5800
|
+
};
|
|
5801
|
+
}
|
|
5802
|
+
};
|
|
5803
|
+
function createBaseQueryListTagStakePoolsResponse() {
|
|
5804
|
+
return {
|
|
5805
|
+
pool: [],
|
|
5806
|
+
pagination: undefined
|
|
5807
|
+
};
|
|
5808
|
+
}
|
|
5809
|
+
/**
|
|
5810
|
+
* QueryListTagStakePoolsResponse defines the response for listing tag stake pools.
|
|
5811
|
+
* @name QueryListTagStakePoolsResponse
|
|
5812
|
+
* @package sparkdream.rep.v1
|
|
5813
|
+
* @see proto type: sparkdream.rep.v1.QueryListTagStakePoolsResponse
|
|
5814
|
+
*/
|
|
5815
|
+
export const QueryListTagStakePoolsResponse = {
|
|
5816
|
+
typeUrl: "/sparkdream.rep.v1.QueryListTagStakePoolsResponse",
|
|
5817
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
5818
|
+
for (const v of message.pool) {
|
|
5819
|
+
TagStakePool.encode(v, writer.uint32(10).fork()).ldelim();
|
|
5820
|
+
}
|
|
5821
|
+
if (message.pagination !== undefined) {
|
|
5822
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
5823
|
+
}
|
|
5824
|
+
return writer;
|
|
5825
|
+
},
|
|
5826
|
+
decode(input, length) {
|
|
5827
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5828
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5829
|
+
const message = createBaseQueryListTagStakePoolsResponse();
|
|
5830
|
+
while (reader.pos < end) {
|
|
5831
|
+
const tag = reader.uint32();
|
|
5832
|
+
switch (tag >>> 3) {
|
|
5833
|
+
case 1:
|
|
5834
|
+
message.pool.push(TagStakePool.decode(reader, reader.uint32()));
|
|
5835
|
+
break;
|
|
5836
|
+
case 2:
|
|
5837
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
5838
|
+
break;
|
|
5839
|
+
default:
|
|
5840
|
+
reader.skipType(tag & 7);
|
|
5841
|
+
break;
|
|
5842
|
+
}
|
|
5843
|
+
}
|
|
5844
|
+
return message;
|
|
5845
|
+
},
|
|
5846
|
+
fromPartial(object) {
|
|
5847
|
+
const message = createBaseQueryListTagStakePoolsResponse();
|
|
5848
|
+
message.pool = object.pool?.map(e => TagStakePool.fromPartial(e)) || [];
|
|
5849
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
5850
|
+
return message;
|
|
5851
|
+
},
|
|
5852
|
+
fromAmino(object) {
|
|
5853
|
+
const message = createBaseQueryListTagStakePoolsResponse();
|
|
5854
|
+
message.pool = object.pool?.map(e => TagStakePool.fromAmino(e)) || [];
|
|
5855
|
+
if (object.pagination !== undefined && object.pagination !== null) {
|
|
5856
|
+
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
5857
|
+
}
|
|
5858
|
+
return message;
|
|
5859
|
+
},
|
|
5860
|
+
toAmino(message) {
|
|
5861
|
+
const obj = {};
|
|
5862
|
+
if (message.pool) {
|
|
5863
|
+
obj.pool = message.pool.map(e => e ? TagStakePool.toAmino(e) : undefined);
|
|
5864
|
+
}
|
|
5865
|
+
else {
|
|
5866
|
+
obj.pool = message.pool;
|
|
5867
|
+
}
|
|
5868
|
+
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
5869
|
+
return obj;
|
|
5870
|
+
},
|
|
5871
|
+
fromAminoMsg(object) {
|
|
5872
|
+
return QueryListTagStakePoolsResponse.fromAmino(object.value);
|
|
5873
|
+
},
|
|
5874
|
+
fromProtoMsg(message) {
|
|
5875
|
+
return QueryListTagStakePoolsResponse.decode(message.value);
|
|
5876
|
+
},
|
|
5877
|
+
toProto(message) {
|
|
5878
|
+
return QueryListTagStakePoolsResponse.encode(message).finish();
|
|
5879
|
+
},
|
|
5880
|
+
toProtoMsg(message) {
|
|
5881
|
+
return {
|
|
5882
|
+
typeUrl: "/sparkdream.rep.v1.QueryListTagStakePoolsResponse",
|
|
5883
|
+
value: QueryListTagStakePoolsResponse.encode(message).finish()
|
|
5884
|
+
};
|
|
5885
|
+
}
|
|
5886
|
+
};
|
|
5734
5887
|
function createBaseQueryGetProjectStakeInfoRequest() {
|
|
5735
5888
|
return {
|
|
5736
5889
|
projectId: BigInt(0)
|
|
@@ -9865,33 +10018,40 @@ export const QueryTagBudgetAwardsResponse = {
|
|
|
9865
10018
|
};
|
|
9866
10019
|
}
|
|
9867
10020
|
};
|
|
9868
|
-
function
|
|
10021
|
+
function createBaseQueryBondedRoleRequest() {
|
|
9869
10022
|
return {
|
|
10023
|
+
roleType: 0,
|
|
9870
10024
|
address: ""
|
|
9871
10025
|
};
|
|
9872
10026
|
}
|
|
9873
10027
|
/**
|
|
9874
|
-
*
|
|
9875
|
-
* @name
|
|
10028
|
+
* QueryBondedRoleRequest fetches a single BondedRole record.
|
|
10029
|
+
* @name QueryBondedRoleRequest
|
|
9876
10030
|
* @package sparkdream.rep.v1
|
|
9877
|
-
* @see proto type: sparkdream.rep.v1.
|
|
10031
|
+
* @see proto type: sparkdream.rep.v1.QueryBondedRoleRequest
|
|
9878
10032
|
*/
|
|
9879
|
-
export const
|
|
9880
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10033
|
+
export const QueryBondedRoleRequest = {
|
|
10034
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRoleRequest",
|
|
9881
10035
|
encode(message, writer = BinaryWriter.create()) {
|
|
10036
|
+
if (message.roleType !== 0) {
|
|
10037
|
+
writer.uint32(8).int32(message.roleType);
|
|
10038
|
+
}
|
|
9882
10039
|
if (message.address !== "") {
|
|
9883
|
-
writer.uint32(
|
|
10040
|
+
writer.uint32(18).string(message.address);
|
|
9884
10041
|
}
|
|
9885
10042
|
return writer;
|
|
9886
10043
|
},
|
|
9887
10044
|
decode(input, length) {
|
|
9888
10045
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9889
10046
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9890
|
-
const message =
|
|
10047
|
+
const message = createBaseQueryBondedRoleRequest();
|
|
9891
10048
|
while (reader.pos < end) {
|
|
9892
10049
|
const tag = reader.uint32();
|
|
9893
10050
|
switch (tag >>> 3) {
|
|
9894
10051
|
case 1:
|
|
10052
|
+
message.roleType = reader.int32();
|
|
10053
|
+
break;
|
|
10054
|
+
case 2:
|
|
9895
10055
|
message.address = reader.string();
|
|
9896
10056
|
break;
|
|
9897
10057
|
default:
|
|
@@ -9902,12 +10062,16 @@ export const QueryGetSentinelActivityRequest = {
|
|
|
9902
10062
|
return message;
|
|
9903
10063
|
},
|
|
9904
10064
|
fromPartial(object) {
|
|
9905
|
-
const message =
|
|
10065
|
+
const message = createBaseQueryBondedRoleRequest();
|
|
10066
|
+
message.roleType = object.roleType ?? 0;
|
|
9906
10067
|
message.address = object.address ?? "";
|
|
9907
10068
|
return message;
|
|
9908
10069
|
},
|
|
9909
10070
|
fromAmino(object) {
|
|
9910
|
-
const message =
|
|
10071
|
+
const message = createBaseQueryBondedRoleRequest();
|
|
10072
|
+
if (object.role_type !== undefined && object.role_type !== null) {
|
|
10073
|
+
message.roleType = object.role_type;
|
|
10074
|
+
}
|
|
9911
10075
|
if (object.address !== undefined && object.address !== null) {
|
|
9912
10076
|
message.address = object.address;
|
|
9913
10077
|
}
|
|
@@ -9915,53 +10079,54 @@ export const QueryGetSentinelActivityRequest = {
|
|
|
9915
10079
|
},
|
|
9916
10080
|
toAmino(message) {
|
|
9917
10081
|
const obj = {};
|
|
10082
|
+
obj.role_type = message.roleType === 0 ? undefined : message.roleType;
|
|
9918
10083
|
obj.address = message.address === "" ? undefined : message.address;
|
|
9919
10084
|
return obj;
|
|
9920
10085
|
},
|
|
9921
10086
|
fromAminoMsg(object) {
|
|
9922
|
-
return
|
|
10087
|
+
return QueryBondedRoleRequest.fromAmino(object.value);
|
|
9923
10088
|
},
|
|
9924
10089
|
fromProtoMsg(message) {
|
|
9925
|
-
return
|
|
10090
|
+
return QueryBondedRoleRequest.decode(message.value);
|
|
9926
10091
|
},
|
|
9927
10092
|
toProto(message) {
|
|
9928
|
-
return
|
|
10093
|
+
return QueryBondedRoleRequest.encode(message).finish();
|
|
9929
10094
|
},
|
|
9930
10095
|
toProtoMsg(message) {
|
|
9931
10096
|
return {
|
|
9932
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
9933
|
-
value:
|
|
10097
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRoleRequest",
|
|
10098
|
+
value: QueryBondedRoleRequest.encode(message).finish()
|
|
9934
10099
|
};
|
|
9935
10100
|
}
|
|
9936
10101
|
};
|
|
9937
|
-
function
|
|
10102
|
+
function createBaseQueryBondedRoleResponse() {
|
|
9938
10103
|
return {
|
|
9939
|
-
|
|
10104
|
+
bondedRole: BondedRole.fromPartial({})
|
|
9940
10105
|
};
|
|
9941
10106
|
}
|
|
9942
10107
|
/**
|
|
9943
|
-
*
|
|
9944
|
-
* @name
|
|
10108
|
+
* QueryBondedRoleResponse holds the fetched BondedRole record.
|
|
10109
|
+
* @name QueryBondedRoleResponse
|
|
9945
10110
|
* @package sparkdream.rep.v1
|
|
9946
|
-
* @see proto type: sparkdream.rep.v1.
|
|
10111
|
+
* @see proto type: sparkdream.rep.v1.QueryBondedRoleResponse
|
|
9947
10112
|
*/
|
|
9948
|
-
export const
|
|
9949
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10113
|
+
export const QueryBondedRoleResponse = {
|
|
10114
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRoleResponse",
|
|
9950
10115
|
encode(message, writer = BinaryWriter.create()) {
|
|
9951
|
-
if (message.
|
|
9952
|
-
|
|
10116
|
+
if (message.bondedRole !== undefined) {
|
|
10117
|
+
BondedRole.encode(message.bondedRole, writer.uint32(10).fork()).ldelim();
|
|
9953
10118
|
}
|
|
9954
10119
|
return writer;
|
|
9955
10120
|
},
|
|
9956
10121
|
decode(input, length) {
|
|
9957
10122
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9958
10123
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9959
|
-
const message =
|
|
10124
|
+
const message = createBaseQueryBondedRoleResponse();
|
|
9960
10125
|
while (reader.pos < end) {
|
|
9961
10126
|
const tag = reader.uint32();
|
|
9962
10127
|
switch (tag >>> 3) {
|
|
9963
10128
|
case 1:
|
|
9964
|
-
message.
|
|
10129
|
+
message.bondedRole = BondedRole.decode(reader, reader.uint32());
|
|
9965
10130
|
break;
|
|
9966
10131
|
default:
|
|
9967
10132
|
reader.skipType(tag & 7);
|
|
@@ -9971,65 +10136,72 @@ export const QueryGetSentinelActivityResponse = {
|
|
|
9971
10136
|
return message;
|
|
9972
10137
|
},
|
|
9973
10138
|
fromPartial(object) {
|
|
9974
|
-
const message =
|
|
9975
|
-
message.
|
|
10139
|
+
const message = createBaseQueryBondedRoleResponse();
|
|
10140
|
+
message.bondedRole = object.bondedRole !== undefined && object.bondedRole !== null ? BondedRole.fromPartial(object.bondedRole) : undefined;
|
|
9976
10141
|
return message;
|
|
9977
10142
|
},
|
|
9978
10143
|
fromAmino(object) {
|
|
9979
|
-
const message =
|
|
9980
|
-
if (object.
|
|
9981
|
-
message.
|
|
10144
|
+
const message = createBaseQueryBondedRoleResponse();
|
|
10145
|
+
if (object.bonded_role !== undefined && object.bonded_role !== null) {
|
|
10146
|
+
message.bondedRole = BondedRole.fromAmino(object.bonded_role);
|
|
9982
10147
|
}
|
|
9983
10148
|
return message;
|
|
9984
10149
|
},
|
|
9985
10150
|
toAmino(message) {
|
|
9986
10151
|
const obj = {};
|
|
9987
|
-
obj.
|
|
10152
|
+
obj.bonded_role = message.bondedRole ? BondedRole.toAmino(message.bondedRole) : undefined;
|
|
9988
10153
|
return obj;
|
|
9989
10154
|
},
|
|
9990
10155
|
fromAminoMsg(object) {
|
|
9991
|
-
return
|
|
10156
|
+
return QueryBondedRoleResponse.fromAmino(object.value);
|
|
9992
10157
|
},
|
|
9993
10158
|
fromProtoMsg(message) {
|
|
9994
|
-
return
|
|
10159
|
+
return QueryBondedRoleResponse.decode(message.value);
|
|
9995
10160
|
},
|
|
9996
10161
|
toProto(message) {
|
|
9997
|
-
return
|
|
10162
|
+
return QueryBondedRoleResponse.encode(message).finish();
|
|
9998
10163
|
},
|
|
9999
10164
|
toProtoMsg(message) {
|
|
10000
10165
|
return {
|
|
10001
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10002
|
-
value:
|
|
10166
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRoleResponse",
|
|
10167
|
+
value: QueryBondedRoleResponse.encode(message).finish()
|
|
10003
10168
|
};
|
|
10004
10169
|
}
|
|
10005
10170
|
};
|
|
10006
|
-
function
|
|
10171
|
+
function createBaseQueryBondedRolesByTypeRequest() {
|
|
10007
10172
|
return {
|
|
10173
|
+
roleType: 0,
|
|
10008
10174
|
pagination: undefined
|
|
10009
10175
|
};
|
|
10010
10176
|
}
|
|
10011
10177
|
/**
|
|
10012
|
-
*
|
|
10013
|
-
* @name
|
|
10178
|
+
* QueryBondedRolesByTypeRequest lists all BondedRole records for role_type.
|
|
10179
|
+
* @name QueryBondedRolesByTypeRequest
|
|
10014
10180
|
* @package sparkdream.rep.v1
|
|
10015
|
-
* @see proto type: sparkdream.rep.v1.
|
|
10181
|
+
* @see proto type: sparkdream.rep.v1.QueryBondedRolesByTypeRequest
|
|
10016
10182
|
*/
|
|
10017
|
-
export const
|
|
10018
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10183
|
+
export const QueryBondedRolesByTypeRequest = {
|
|
10184
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRolesByTypeRequest",
|
|
10019
10185
|
encode(message, writer = BinaryWriter.create()) {
|
|
10186
|
+
if (message.roleType !== 0) {
|
|
10187
|
+
writer.uint32(8).int32(message.roleType);
|
|
10188
|
+
}
|
|
10020
10189
|
if (message.pagination !== undefined) {
|
|
10021
|
-
PageRequest.encode(message.pagination, writer.uint32(
|
|
10190
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
10022
10191
|
}
|
|
10023
10192
|
return writer;
|
|
10024
10193
|
},
|
|
10025
10194
|
decode(input, length) {
|
|
10026
10195
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10027
10196
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10028
|
-
const message =
|
|
10197
|
+
const message = createBaseQueryBondedRolesByTypeRequest();
|
|
10029
10198
|
while (reader.pos < end) {
|
|
10030
10199
|
const tag = reader.uint32();
|
|
10031
10200
|
switch (tag >>> 3) {
|
|
10032
10201
|
case 1:
|
|
10202
|
+
message.roleType = reader.int32();
|
|
10203
|
+
break;
|
|
10204
|
+
case 2:
|
|
10033
10205
|
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
10034
10206
|
break;
|
|
10035
10207
|
default:
|
|
@@ -10040,12 +10212,16 @@ export const QueryAllSentinelActivityRequest = {
|
|
|
10040
10212
|
return message;
|
|
10041
10213
|
},
|
|
10042
10214
|
fromPartial(object) {
|
|
10043
|
-
const message =
|
|
10215
|
+
const message = createBaseQueryBondedRolesByTypeRequest();
|
|
10216
|
+
message.roleType = object.roleType ?? 0;
|
|
10044
10217
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
10045
10218
|
return message;
|
|
10046
10219
|
},
|
|
10047
10220
|
fromAmino(object) {
|
|
10048
|
-
const message =
|
|
10221
|
+
const message = createBaseQueryBondedRolesByTypeRequest();
|
|
10222
|
+
if (object.role_type !== undefined && object.role_type !== null) {
|
|
10223
|
+
message.roleType = object.role_type;
|
|
10224
|
+
}
|
|
10049
10225
|
if (object.pagination !== undefined && object.pagination !== null) {
|
|
10050
10226
|
message.pagination = PageRequest.fromAmino(object.pagination);
|
|
10051
10227
|
}
|
|
@@ -10053,42 +10229,43 @@ export const QueryAllSentinelActivityRequest = {
|
|
|
10053
10229
|
},
|
|
10054
10230
|
toAmino(message) {
|
|
10055
10231
|
const obj = {};
|
|
10232
|
+
obj.role_type = message.roleType === 0 ? undefined : message.roleType;
|
|
10056
10233
|
obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
|
|
10057
10234
|
return obj;
|
|
10058
10235
|
},
|
|
10059
10236
|
fromAminoMsg(object) {
|
|
10060
|
-
return
|
|
10237
|
+
return QueryBondedRolesByTypeRequest.fromAmino(object.value);
|
|
10061
10238
|
},
|
|
10062
10239
|
fromProtoMsg(message) {
|
|
10063
|
-
return
|
|
10240
|
+
return QueryBondedRolesByTypeRequest.decode(message.value);
|
|
10064
10241
|
},
|
|
10065
10242
|
toProto(message) {
|
|
10066
|
-
return
|
|
10243
|
+
return QueryBondedRolesByTypeRequest.encode(message).finish();
|
|
10067
10244
|
},
|
|
10068
10245
|
toProtoMsg(message) {
|
|
10069
10246
|
return {
|
|
10070
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10071
|
-
value:
|
|
10247
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRolesByTypeRequest",
|
|
10248
|
+
value: QueryBondedRolesByTypeRequest.encode(message).finish()
|
|
10072
10249
|
};
|
|
10073
10250
|
}
|
|
10074
10251
|
};
|
|
10075
|
-
function
|
|
10252
|
+
function createBaseQueryBondedRolesByTypeResponse() {
|
|
10076
10253
|
return {
|
|
10077
|
-
|
|
10254
|
+
bondedRoles: [],
|
|
10078
10255
|
pagination: undefined
|
|
10079
10256
|
};
|
|
10080
10257
|
}
|
|
10081
10258
|
/**
|
|
10082
|
-
*
|
|
10083
|
-
* @name
|
|
10259
|
+
* QueryBondedRolesByTypeResponse holds the paginated list of BondedRole records.
|
|
10260
|
+
* @name QueryBondedRolesByTypeResponse
|
|
10084
10261
|
* @package sparkdream.rep.v1
|
|
10085
|
-
* @see proto type: sparkdream.rep.v1.
|
|
10262
|
+
* @see proto type: sparkdream.rep.v1.QueryBondedRolesByTypeResponse
|
|
10086
10263
|
*/
|
|
10087
|
-
export const
|
|
10088
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10264
|
+
export const QueryBondedRolesByTypeResponse = {
|
|
10265
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRolesByTypeResponse",
|
|
10089
10266
|
encode(message, writer = BinaryWriter.create()) {
|
|
10090
|
-
for (const v of message.
|
|
10091
|
-
|
|
10267
|
+
for (const v of message.bondedRoles) {
|
|
10268
|
+
BondedRole.encode(v, writer.uint32(10).fork()).ldelim();
|
|
10092
10269
|
}
|
|
10093
10270
|
if (message.pagination !== undefined) {
|
|
10094
10271
|
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
@@ -10098,12 +10275,12 @@ export const QueryAllSentinelActivityResponse = {
|
|
|
10098
10275
|
decode(input, length) {
|
|
10099
10276
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10100
10277
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10101
|
-
const message =
|
|
10278
|
+
const message = createBaseQueryBondedRolesByTypeResponse();
|
|
10102
10279
|
while (reader.pos < end) {
|
|
10103
10280
|
const tag = reader.uint32();
|
|
10104
10281
|
switch (tag >>> 3) {
|
|
10105
10282
|
case 1:
|
|
10106
|
-
message.
|
|
10283
|
+
message.bondedRoles.push(BondedRole.decode(reader, reader.uint32()));
|
|
10107
10284
|
break;
|
|
10108
10285
|
case 2:
|
|
10109
10286
|
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
@@ -10116,14 +10293,14 @@ export const QueryAllSentinelActivityResponse = {
|
|
|
10116
10293
|
return message;
|
|
10117
10294
|
},
|
|
10118
10295
|
fromPartial(object) {
|
|
10119
|
-
const message =
|
|
10120
|
-
message.
|
|
10296
|
+
const message = createBaseQueryBondedRolesByTypeResponse();
|
|
10297
|
+
message.bondedRoles = object.bondedRoles?.map(e => BondedRole.fromPartial(e)) || [];
|
|
10121
10298
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
10122
10299
|
return message;
|
|
10123
10300
|
},
|
|
10124
10301
|
fromAmino(object) {
|
|
10125
|
-
const message =
|
|
10126
|
-
message.
|
|
10302
|
+
const message = createBaseQueryBondedRolesByTypeResponse();
|
|
10303
|
+
message.bondedRoles = object.bonded_roles?.map(e => BondedRole.fromAmino(e)) || [];
|
|
10127
10304
|
if (object.pagination !== undefined && object.pagination !== null) {
|
|
10128
10305
|
message.pagination = PageResponse.fromAmino(object.pagination);
|
|
10129
10306
|
}
|
|
@@ -10131,59 +10308,59 @@ export const QueryAllSentinelActivityResponse = {
|
|
|
10131
10308
|
},
|
|
10132
10309
|
toAmino(message) {
|
|
10133
10310
|
const obj = {};
|
|
10134
|
-
if (message.
|
|
10135
|
-
obj.
|
|
10311
|
+
if (message.bondedRoles) {
|
|
10312
|
+
obj.bonded_roles = message.bondedRoles.map(e => e ? BondedRole.toAmino(e) : undefined);
|
|
10136
10313
|
}
|
|
10137
10314
|
else {
|
|
10138
|
-
obj.
|
|
10315
|
+
obj.bonded_roles = message.bondedRoles;
|
|
10139
10316
|
}
|
|
10140
10317
|
obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
|
|
10141
10318
|
return obj;
|
|
10142
10319
|
},
|
|
10143
10320
|
fromAminoMsg(object) {
|
|
10144
|
-
return
|
|
10321
|
+
return QueryBondedRolesByTypeResponse.fromAmino(object.value);
|
|
10145
10322
|
},
|
|
10146
10323
|
fromProtoMsg(message) {
|
|
10147
|
-
return
|
|
10324
|
+
return QueryBondedRolesByTypeResponse.decode(message.value);
|
|
10148
10325
|
},
|
|
10149
10326
|
toProto(message) {
|
|
10150
|
-
return
|
|
10327
|
+
return QueryBondedRolesByTypeResponse.encode(message).finish();
|
|
10151
10328
|
},
|
|
10152
10329
|
toProtoMsg(message) {
|
|
10153
10330
|
return {
|
|
10154
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10155
|
-
value:
|
|
10331
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRolesByTypeResponse",
|
|
10332
|
+
value: QueryBondedRolesByTypeResponse.encode(message).finish()
|
|
10156
10333
|
};
|
|
10157
10334
|
}
|
|
10158
10335
|
};
|
|
10159
|
-
function
|
|
10336
|
+
function createBaseQueryBondedRoleConfigRequest() {
|
|
10160
10337
|
return {
|
|
10161
|
-
|
|
10338
|
+
roleType: 0
|
|
10162
10339
|
};
|
|
10163
10340
|
}
|
|
10164
10341
|
/**
|
|
10165
|
-
*
|
|
10166
|
-
* @name
|
|
10342
|
+
* QueryBondedRoleConfigRequest fetches the policy config for a role_type.
|
|
10343
|
+
* @name QueryBondedRoleConfigRequest
|
|
10167
10344
|
* @package sparkdream.rep.v1
|
|
10168
|
-
* @see proto type: sparkdream.rep.v1.
|
|
10345
|
+
* @see proto type: sparkdream.rep.v1.QueryBondedRoleConfigRequest
|
|
10169
10346
|
*/
|
|
10170
|
-
export const
|
|
10171
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10347
|
+
export const QueryBondedRoleConfigRequest = {
|
|
10348
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRoleConfigRequest",
|
|
10172
10349
|
encode(message, writer = BinaryWriter.create()) {
|
|
10173
|
-
if (message.
|
|
10174
|
-
writer.uint32(
|
|
10350
|
+
if (message.roleType !== 0) {
|
|
10351
|
+
writer.uint32(8).int32(message.roleType);
|
|
10175
10352
|
}
|
|
10176
10353
|
return writer;
|
|
10177
10354
|
},
|
|
10178
10355
|
decode(input, length) {
|
|
10179
10356
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10180
10357
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10181
|
-
const message =
|
|
10358
|
+
const message = createBaseQueryBondedRoleConfigRequest();
|
|
10182
10359
|
while (reader.pos < end) {
|
|
10183
10360
|
const tag = reader.uint32();
|
|
10184
10361
|
switch (tag >>> 3) {
|
|
10185
10362
|
case 1:
|
|
10186
|
-
message.
|
|
10363
|
+
message.roleType = reader.int32();
|
|
10187
10364
|
break;
|
|
10188
10365
|
default:
|
|
10189
10366
|
reader.skipType(tag & 7);
|
|
@@ -10193,242 +10370,66 @@ export const QuerySentinelStatusRequest = {
|
|
|
10193
10370
|
return message;
|
|
10194
10371
|
},
|
|
10195
10372
|
fromPartial(object) {
|
|
10196
|
-
const message =
|
|
10197
|
-
message.
|
|
10198
|
-
return message;
|
|
10199
|
-
},
|
|
10200
|
-
fromAmino(object) {
|
|
10201
|
-
const message = createBaseQuerySentinelStatusRequest();
|
|
10202
|
-
if (object.address !== undefined && object.address !== null) {
|
|
10203
|
-
message.address = object.address;
|
|
10204
|
-
}
|
|
10205
|
-
return message;
|
|
10206
|
-
},
|
|
10207
|
-
toAmino(message) {
|
|
10208
|
-
const obj = {};
|
|
10209
|
-
obj.address = message.address === "" ? undefined : message.address;
|
|
10210
|
-
return obj;
|
|
10211
|
-
},
|
|
10212
|
-
fromAminoMsg(object) {
|
|
10213
|
-
return QuerySentinelStatusRequest.fromAmino(object.value);
|
|
10214
|
-
},
|
|
10215
|
-
fromProtoMsg(message) {
|
|
10216
|
-
return QuerySentinelStatusRequest.decode(message.value);
|
|
10217
|
-
},
|
|
10218
|
-
toProto(message) {
|
|
10219
|
-
return QuerySentinelStatusRequest.encode(message).finish();
|
|
10220
|
-
},
|
|
10221
|
-
toProtoMsg(message) {
|
|
10222
|
-
return {
|
|
10223
|
-
typeUrl: "/sparkdream.rep.v1.QuerySentinelStatusRequest",
|
|
10224
|
-
value: QuerySentinelStatusRequest.encode(message).finish()
|
|
10225
|
-
};
|
|
10226
|
-
}
|
|
10227
|
-
};
|
|
10228
|
-
function createBaseQuerySentinelStatusResponse() {
|
|
10229
|
-
return {
|
|
10230
|
-
address: "",
|
|
10231
|
-
bondStatus: BigInt(0),
|
|
10232
|
-
currentBond: ""
|
|
10233
|
-
};
|
|
10234
|
-
}
|
|
10235
|
-
/**
|
|
10236
|
-
* QuerySentinelStatusResponse defines the QuerySentinelStatusResponse message.
|
|
10237
|
-
* @name QuerySentinelStatusResponse
|
|
10238
|
-
* @package sparkdream.rep.v1
|
|
10239
|
-
* @see proto type: sparkdream.rep.v1.QuerySentinelStatusResponse
|
|
10240
|
-
*/
|
|
10241
|
-
export const QuerySentinelStatusResponse = {
|
|
10242
|
-
typeUrl: "/sparkdream.rep.v1.QuerySentinelStatusResponse",
|
|
10243
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
10244
|
-
if (message.address !== "") {
|
|
10245
|
-
writer.uint32(10).string(message.address);
|
|
10246
|
-
}
|
|
10247
|
-
if (message.bondStatus !== BigInt(0)) {
|
|
10248
|
-
writer.uint32(16).uint64(message.bondStatus);
|
|
10249
|
-
}
|
|
10250
|
-
if (message.currentBond !== "") {
|
|
10251
|
-
writer.uint32(26).string(message.currentBond);
|
|
10252
|
-
}
|
|
10253
|
-
return writer;
|
|
10254
|
-
},
|
|
10255
|
-
decode(input, length) {
|
|
10256
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10257
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10258
|
-
const message = createBaseQuerySentinelStatusResponse();
|
|
10259
|
-
while (reader.pos < end) {
|
|
10260
|
-
const tag = reader.uint32();
|
|
10261
|
-
switch (tag >>> 3) {
|
|
10262
|
-
case 1:
|
|
10263
|
-
message.address = reader.string();
|
|
10264
|
-
break;
|
|
10265
|
-
case 2:
|
|
10266
|
-
message.bondStatus = reader.uint64();
|
|
10267
|
-
break;
|
|
10268
|
-
case 3:
|
|
10269
|
-
message.currentBond = reader.string();
|
|
10270
|
-
break;
|
|
10271
|
-
default:
|
|
10272
|
-
reader.skipType(tag & 7);
|
|
10273
|
-
break;
|
|
10274
|
-
}
|
|
10275
|
-
}
|
|
10276
|
-
return message;
|
|
10277
|
-
},
|
|
10278
|
-
fromPartial(object) {
|
|
10279
|
-
const message = createBaseQuerySentinelStatusResponse();
|
|
10280
|
-
message.address = object.address ?? "";
|
|
10281
|
-
message.bondStatus = object.bondStatus !== undefined && object.bondStatus !== null ? BigInt(object.bondStatus.toString()) : BigInt(0);
|
|
10282
|
-
message.currentBond = object.currentBond ?? "";
|
|
10283
|
-
return message;
|
|
10284
|
-
},
|
|
10285
|
-
fromAmino(object) {
|
|
10286
|
-
const message = createBaseQuerySentinelStatusResponse();
|
|
10287
|
-
if (object.address !== undefined && object.address !== null) {
|
|
10288
|
-
message.address = object.address;
|
|
10289
|
-
}
|
|
10290
|
-
if (object.bond_status !== undefined && object.bond_status !== null) {
|
|
10291
|
-
message.bondStatus = BigInt(object.bond_status);
|
|
10292
|
-
}
|
|
10293
|
-
if (object.current_bond !== undefined && object.current_bond !== null) {
|
|
10294
|
-
message.currentBond = object.current_bond;
|
|
10295
|
-
}
|
|
10296
|
-
return message;
|
|
10297
|
-
},
|
|
10298
|
-
toAmino(message) {
|
|
10299
|
-
const obj = {};
|
|
10300
|
-
obj.address = message.address === "" ? undefined : message.address;
|
|
10301
|
-
obj.bond_status = message.bondStatus !== BigInt(0) ? message.bondStatus?.toString() : undefined;
|
|
10302
|
-
obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
|
|
10303
|
-
return obj;
|
|
10304
|
-
},
|
|
10305
|
-
fromAminoMsg(object) {
|
|
10306
|
-
return QuerySentinelStatusResponse.fromAmino(object.value);
|
|
10307
|
-
},
|
|
10308
|
-
fromProtoMsg(message) {
|
|
10309
|
-
return QuerySentinelStatusResponse.decode(message.value);
|
|
10310
|
-
},
|
|
10311
|
-
toProto(message) {
|
|
10312
|
-
return QuerySentinelStatusResponse.encode(message).finish();
|
|
10313
|
-
},
|
|
10314
|
-
toProtoMsg(message) {
|
|
10315
|
-
return {
|
|
10316
|
-
typeUrl: "/sparkdream.rep.v1.QuerySentinelStatusResponse",
|
|
10317
|
-
value: QuerySentinelStatusResponse.encode(message).finish()
|
|
10318
|
-
};
|
|
10319
|
-
}
|
|
10320
|
-
};
|
|
10321
|
-
function createBaseQuerySentinelBondCommitmentRequest() {
|
|
10322
|
-
return {
|
|
10323
|
-
address: ""
|
|
10324
|
-
};
|
|
10325
|
-
}
|
|
10326
|
-
/**
|
|
10327
|
-
* QuerySentinelBondCommitmentRequest defines the QuerySentinelBondCommitmentRequest message.
|
|
10328
|
-
* @name QuerySentinelBondCommitmentRequest
|
|
10329
|
-
* @package sparkdream.rep.v1
|
|
10330
|
-
* @see proto type: sparkdream.rep.v1.QuerySentinelBondCommitmentRequest
|
|
10331
|
-
*/
|
|
10332
|
-
export const QuerySentinelBondCommitmentRequest = {
|
|
10333
|
-
typeUrl: "/sparkdream.rep.v1.QuerySentinelBondCommitmentRequest",
|
|
10334
|
-
encode(message, writer = BinaryWriter.create()) {
|
|
10335
|
-
if (message.address !== "") {
|
|
10336
|
-
writer.uint32(10).string(message.address);
|
|
10337
|
-
}
|
|
10338
|
-
return writer;
|
|
10339
|
-
},
|
|
10340
|
-
decode(input, length) {
|
|
10341
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10342
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10343
|
-
const message = createBaseQuerySentinelBondCommitmentRequest();
|
|
10344
|
-
while (reader.pos < end) {
|
|
10345
|
-
const tag = reader.uint32();
|
|
10346
|
-
switch (tag >>> 3) {
|
|
10347
|
-
case 1:
|
|
10348
|
-
message.address = reader.string();
|
|
10349
|
-
break;
|
|
10350
|
-
default:
|
|
10351
|
-
reader.skipType(tag & 7);
|
|
10352
|
-
break;
|
|
10353
|
-
}
|
|
10354
|
-
}
|
|
10355
|
-
return message;
|
|
10356
|
-
},
|
|
10357
|
-
fromPartial(object) {
|
|
10358
|
-
const message = createBaseQuerySentinelBondCommitmentRequest();
|
|
10359
|
-
message.address = object.address ?? "";
|
|
10373
|
+
const message = createBaseQueryBondedRoleConfigRequest();
|
|
10374
|
+
message.roleType = object.roleType ?? 0;
|
|
10360
10375
|
return message;
|
|
10361
10376
|
},
|
|
10362
10377
|
fromAmino(object) {
|
|
10363
|
-
const message =
|
|
10364
|
-
if (object.
|
|
10365
|
-
message.
|
|
10378
|
+
const message = createBaseQueryBondedRoleConfigRequest();
|
|
10379
|
+
if (object.role_type !== undefined && object.role_type !== null) {
|
|
10380
|
+
message.roleType = object.role_type;
|
|
10366
10381
|
}
|
|
10367
10382
|
return message;
|
|
10368
10383
|
},
|
|
10369
10384
|
toAmino(message) {
|
|
10370
10385
|
const obj = {};
|
|
10371
|
-
obj.
|
|
10386
|
+
obj.role_type = message.roleType === 0 ? undefined : message.roleType;
|
|
10372
10387
|
return obj;
|
|
10373
10388
|
},
|
|
10374
10389
|
fromAminoMsg(object) {
|
|
10375
|
-
return
|
|
10390
|
+
return QueryBondedRoleConfigRequest.fromAmino(object.value);
|
|
10376
10391
|
},
|
|
10377
10392
|
fromProtoMsg(message) {
|
|
10378
|
-
return
|
|
10393
|
+
return QueryBondedRoleConfigRequest.decode(message.value);
|
|
10379
10394
|
},
|
|
10380
10395
|
toProto(message) {
|
|
10381
|
-
return
|
|
10396
|
+
return QueryBondedRoleConfigRequest.encode(message).finish();
|
|
10382
10397
|
},
|
|
10383
10398
|
toProtoMsg(message) {
|
|
10384
10399
|
return {
|
|
10385
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10386
|
-
value:
|
|
10400
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRoleConfigRequest",
|
|
10401
|
+
value: QueryBondedRoleConfigRequest.encode(message).finish()
|
|
10387
10402
|
};
|
|
10388
10403
|
}
|
|
10389
10404
|
};
|
|
10390
|
-
function
|
|
10405
|
+
function createBaseQueryBondedRoleConfigResponse() {
|
|
10391
10406
|
return {
|
|
10392
|
-
|
|
10393
|
-
totalCommittedBond: "",
|
|
10394
|
-
availableBond: ""
|
|
10407
|
+
bondedRoleConfig: BondedRoleConfig.fromPartial({})
|
|
10395
10408
|
};
|
|
10396
10409
|
}
|
|
10397
10410
|
/**
|
|
10398
|
-
*
|
|
10399
|
-
* @name
|
|
10411
|
+
* QueryBondedRoleConfigResponse holds the fetched BondedRoleConfig.
|
|
10412
|
+
* @name QueryBondedRoleConfigResponse
|
|
10400
10413
|
* @package sparkdream.rep.v1
|
|
10401
|
-
* @see proto type: sparkdream.rep.v1.
|
|
10414
|
+
* @see proto type: sparkdream.rep.v1.QueryBondedRoleConfigResponse
|
|
10402
10415
|
*/
|
|
10403
|
-
export const
|
|
10404
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10416
|
+
export const QueryBondedRoleConfigResponse = {
|
|
10417
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRoleConfigResponse",
|
|
10405
10418
|
encode(message, writer = BinaryWriter.create()) {
|
|
10406
|
-
if (message.
|
|
10407
|
-
writer.uint32(10).
|
|
10408
|
-
}
|
|
10409
|
-
if (message.totalCommittedBond !== "") {
|
|
10410
|
-
writer.uint32(18).string(message.totalCommittedBond);
|
|
10411
|
-
}
|
|
10412
|
-
if (message.availableBond !== "") {
|
|
10413
|
-
writer.uint32(26).string(message.availableBond);
|
|
10419
|
+
if (message.bondedRoleConfig !== undefined) {
|
|
10420
|
+
BondedRoleConfig.encode(message.bondedRoleConfig, writer.uint32(10).fork()).ldelim();
|
|
10414
10421
|
}
|
|
10415
10422
|
return writer;
|
|
10416
10423
|
},
|
|
10417
10424
|
decode(input, length) {
|
|
10418
10425
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10419
10426
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
10420
|
-
const message =
|
|
10427
|
+
const message = createBaseQueryBondedRoleConfigResponse();
|
|
10421
10428
|
while (reader.pos < end) {
|
|
10422
10429
|
const tag = reader.uint32();
|
|
10423
10430
|
switch (tag >>> 3) {
|
|
10424
10431
|
case 1:
|
|
10425
|
-
message.
|
|
10426
|
-
break;
|
|
10427
|
-
case 2:
|
|
10428
|
-
message.totalCommittedBond = reader.string();
|
|
10429
|
-
break;
|
|
10430
|
-
case 3:
|
|
10431
|
-
message.availableBond = reader.string();
|
|
10432
|
+
message.bondedRoleConfig = BondedRoleConfig.decode(reader, reader.uint32());
|
|
10432
10433
|
break;
|
|
10433
10434
|
default:
|
|
10434
10435
|
reader.skipType(tag & 7);
|
|
@@ -10438,45 +10439,35 @@ export const QuerySentinelBondCommitmentResponse = {
|
|
|
10438
10439
|
return message;
|
|
10439
10440
|
},
|
|
10440
10441
|
fromPartial(object) {
|
|
10441
|
-
const message =
|
|
10442
|
-
message.
|
|
10443
|
-
message.totalCommittedBond = object.totalCommittedBond ?? "";
|
|
10444
|
-
message.availableBond = object.availableBond ?? "";
|
|
10442
|
+
const message = createBaseQueryBondedRoleConfigResponse();
|
|
10443
|
+
message.bondedRoleConfig = object.bondedRoleConfig !== undefined && object.bondedRoleConfig !== null ? BondedRoleConfig.fromPartial(object.bondedRoleConfig) : undefined;
|
|
10445
10444
|
return message;
|
|
10446
10445
|
},
|
|
10447
10446
|
fromAmino(object) {
|
|
10448
|
-
const message =
|
|
10449
|
-
if (object.
|
|
10450
|
-
message.
|
|
10451
|
-
}
|
|
10452
|
-
if (object.total_committed_bond !== undefined && object.total_committed_bond !== null) {
|
|
10453
|
-
message.totalCommittedBond = object.total_committed_bond;
|
|
10454
|
-
}
|
|
10455
|
-
if (object.available_bond !== undefined && object.available_bond !== null) {
|
|
10456
|
-
message.availableBond = object.available_bond;
|
|
10447
|
+
const message = createBaseQueryBondedRoleConfigResponse();
|
|
10448
|
+
if (object.bonded_role_config !== undefined && object.bonded_role_config !== null) {
|
|
10449
|
+
message.bondedRoleConfig = BondedRoleConfig.fromAmino(object.bonded_role_config);
|
|
10457
10450
|
}
|
|
10458
10451
|
return message;
|
|
10459
10452
|
},
|
|
10460
10453
|
toAmino(message) {
|
|
10461
10454
|
const obj = {};
|
|
10462
|
-
obj.
|
|
10463
|
-
obj.total_committed_bond = message.totalCommittedBond === "" ? undefined : message.totalCommittedBond;
|
|
10464
|
-
obj.available_bond = message.availableBond === "" ? undefined : message.availableBond;
|
|
10455
|
+
obj.bonded_role_config = message.bondedRoleConfig ? BondedRoleConfig.toAmino(message.bondedRoleConfig) : undefined;
|
|
10465
10456
|
return obj;
|
|
10466
10457
|
},
|
|
10467
10458
|
fromAminoMsg(object) {
|
|
10468
|
-
return
|
|
10459
|
+
return QueryBondedRoleConfigResponse.fromAmino(object.value);
|
|
10469
10460
|
},
|
|
10470
10461
|
fromProtoMsg(message) {
|
|
10471
|
-
return
|
|
10462
|
+
return QueryBondedRoleConfigResponse.decode(message.value);
|
|
10472
10463
|
},
|
|
10473
10464
|
toProto(message) {
|
|
10474
|
-
return
|
|
10465
|
+
return QueryBondedRoleConfigResponse.encode(message).finish();
|
|
10475
10466
|
},
|
|
10476
10467
|
toProtoMsg(message) {
|
|
10477
10468
|
return {
|
|
10478
|
-
typeUrl: "/sparkdream.rep.v1.
|
|
10479
|
-
value:
|
|
10469
|
+
typeUrl: "/sparkdream.rep.v1.QueryBondedRoleConfigResponse",
|
|
10470
|
+
value: QueryBondedRoleConfigResponse.encode(message).finish()
|
|
10480
10471
|
};
|
|
10481
10472
|
}
|
|
10482
10473
|
};
|